@deanwu/vue-component-library 1.3.96 → 1.3.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,13 +9,13 @@
9
9
 
10
10
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11
11
  */
12
- return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,a,p,y,w,x,k,S,D,C,E,A=this._hash.words,T=d.words,F=h.words,B=s.words,$=l.words,L=c.words,I=u.words;x=o=A[0],k=a=A[1],S=p=A[2],D=y=A[3],C=w=A[4];for(n=0;n<80;n+=1)E=o+t[e+B[n]]|0,E+=n<16?f(a,p,y)+T[0]:n<32?m(a,p,y)+T[1]:n<48?g(a,p,y)+T[2]:n<64?v(a,p,y)+T[3]:b(a,p,y)+T[4],E|=0,E=_(E,L[n]),E=E+w|0,o=w,w=y,y=_(p,10),p=a,a=E,E=x+t[e+$[n]]|0,E+=n<16?b(k,S,D)+F[0]:n<32?v(k,S,D)+F[1]:n<48?g(k,S,D)+F[2]:n<64?m(k,S,D)+F[3]:f(k,S,D)+F[4],E|=0,E=_(E,I[n]),E=E+C|0,x=C,C=D,D=_(S,10),S=k,k=E;E=A[1]+p+D|0,A[1]=A[2]+y+C|0,A[2]=A[3]+w+x|0,A[3]=A[4]+o+k|0,A[4]=A[0]+a+S|0,A[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}n.RIPEMD160=o._createHelper(p),n.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160}))},1132:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=e[o>>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return o(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64}))},1382:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(l)}(),t.Rabbit}))},"13d2":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),l=n("5e77").CONFIGURABLE,c=n("8925"),u=n("69f3"),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=d(t);return a(i,"source")||(i.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&h(this).source||c(this)}),"toString")},"13e2":function(t,e,n){},"146c":function(t,e,n){},"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},1626:function(t,e,n){"use strict";var i=n("8ea1"),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},1638:function(t,e,n){},"17e1":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,i=n.WordArray,r=i.init,o=i.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};o.prototype=i}}(),t.lib.WordArray}))},"191b":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224}))},"195a":function(t,e,n){"use strict";n("4180")},"19dd":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\n\n```\r\nthis.$preview({\n\tsrc\n})\r\n```\n\n## 配置项\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nsrc | String | - | 媒体文件地址"},"1a2d":function(t,e,n){"use strict";var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1ba6":function(t,e,n){"use strict";n("6fc4")},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},"1d80":function(t,e,n){"use strict";var i=n("7234"),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},"1e39":function(t,e,n){},"1e71":function(t,e,n){"use strict";n("ed5e")},"21bf":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,i){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e&&e.crypto&&(r=e.crypto),!r)try{r=n(0)}catch(v){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},l=s.lib={},c=l.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=i?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)e[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),d=s.enc={},h=d.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new u.init(n,e/2)}},p=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new u.init(n,e)}},f=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},m=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var c=l*a,d=t.min(4*c,o);if(c){for(var h=0;h<c;h+=a)this._doProcessBlock(r,h);n=r.splice(0,c),i.sigBytes-=d}return new u.init(n,d)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(l.Hasher=m.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("c8ba"))},"23cb":function(t,e,n){"use strict";var i=n("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){"use strict";var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,d,h,p,f,m=t.target,g=t.global,v=t.stat;if(u=g?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(f=r(u,d),h=f&&f.value):h=u[d],n=c(g?d:m+(v?".":"#")+d,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(u,d,p,t)}}},"241c":function(t,e,n){"use strict";var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var l={adapter:s(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){l.headers[t]=i.merge(o)})),t.exports=l}).call(this,n("4362"))},"25c5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-progress></c-progress>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | line | 进度条样式<br>**line**: 线形<br>**circle**: 环形\r\ncolor | String | - | 进度条颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nbackground | String | - | 进度条底色\r\nsize | String \\| Number | 100 | 线性进度条的长度或环形进度条直径\r\nline-size | String \\| Number | 6 | 进度条粗细\r\nfont-size | String \\| Number | 14 | 百分比文字大小\r\nrate | String \\| Number \\| Array | 0 | 0-100:进度百分比<br>10,110:当前值,最大值,也可传入数组\r\ndecimal | String \\| Number | 0 | 保留小数位数"},"25f9":function(t,e,n){"use strict";n("1638")},"26b7":function(t,e,n){"use strict";n("8474")},"271a":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.getAll),u=r(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||i(l,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=c(this,t);a(e,1);var r=o(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},"271f":function(t,e,n){},2732:function(t,e,n){const i=n("699e");e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let o=0;o<e.length;o++)n[r+o]^=i.mul(t[r],e[o]);return n},e.mod=function(t,e){let n=new Uint8Array(t);while(n.length-e.length>=0){const t=n[0];for(let o=0;o<e.length;o++)n[o]^=i.mul(e[o],t);let r=0;while(r<n.length&&0===n[r])r++;n=n.slice(r)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=e.mul(n,new Uint8Array([1,i.exp(r)]));return n}},"27a3":function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2815:function(t,e,n){"use strict";n("dd13")},2992:function(t,e,n){"use strict";n("4973")},"2a66":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2b79":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length<l){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},"2ba4":function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},"2d00":function(t,e,n){"use strict";var i,r,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f3a":function(t,e,n){const i=n("bbf0"),r=n("7bf0");function o(t){this.mode=i.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=o},"30b5":function(t,e,n){"use strict";var i=n("c532");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},3123:function(t,e,n){},3252:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=n.x64={};a.Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}})}(),t}))},3278:function(t,e,n){var i;n("c73d"),n("d9e2"),n("14d9"),function(e){t.exports=e()}((function(){var t;return function t(e,n,r){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof i&&i;if(!l&&c)return i(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return o(n||t)}),d,d.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){function i(t,e){for(;t&&t.nodeType!==r;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}e.exports=i},{}],2:[function(t,e,n){function i(t,e,n,i,o){var a=r.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}function r(t,e,n,i){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&i.call(t,n)}}var o=t("./closest");e.exports=i},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(t))return r(t,e,n);if(s.nodeList(t))return o(t,e,n);if(s.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function o(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function a(t,e,n){return l(document.body,t,e,n)}var s=t("./is"),l=t("delegate");e.exports=i},{"./is":3,delegate:2}],5:[function(t,e,n){function i(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}e.exports=i},{}],6:[function(t,e,n){function i(){}i.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function i(){r.off(t,i),e.apply(n,arguments)}var r=this;return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;for(i;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,a=i.length;o<a;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},e.exports=i},{}],7:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","select"],o);else if(void 0!==i)o(n,e("select"));else{var a={exports:{}};o(a,r.select),r.clipboardAction=a.exports}}(this,(function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(){function t(e){i(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s}))},{select:5}],8:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],o);else if(void 0!==i)o(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};o(a,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=a.exports}}(this,(function(t,e,n,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var c=r(e),u=r(n),d=r(i),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),f=function(t){function e(t,n){o(this,e);var i=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(n),i.listenClick(t),i}return s(e,t),p(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,d.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(u.default);t.exports=f}))},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}))},"342f":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3452:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(t){return t}))},"34fc":function(t,e,n){const i=n("7a43"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return o[4*(t-1)+0];case i.M:return o[4*(t-1)+1];case i.Q:return o[4*(t-1)+2];case i.H:return o[4*(t-1)+3];default:return}}},3511:function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},3565:function(t,e,n){t.exports=n.p+"img/empty.png"},"35d5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-button>按钮</c--button>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsize | String | normal | 按钮尺寸<br>**normal**: 普通按钮<br>**form**: 表单操作按钮\r\ncolor | String | - | 按钮颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nhollow | Boolean | false | 是否为中空按钮\r\nprepend-icon | String | - | 前置图标样式名\r\nappend-icon | String | - | 前置图标样式名\r\ndisabled | Boolean | false | 是否禁用按钮\r\n@click | Function | - | 点击事件"},"37f6":function(t,e,n){},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38ac":function(t,e,n){"use strict";n("4582")},"38ba":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?k:y}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=h.CBC=function(){var t=p.extend();function n(t,n,i){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var a=0;a<i;a++)t[n+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this._prevBlock=o}}),t}(),m=n.pad={},g=m.Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:f,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=n.format={},_=b.OpenSSL={stringify:function(t){var e,n=t.ciphertext,i=t.salt;return e=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,e.toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},y=i.SerializableCipher=r.extend({cfg:r.extend({format:_}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=n.kdf={},x=w.OpenSSL={execute:function(t,e,n,i){i||(i=o.random(8));var r=u.create({keySize:e+n}).compute(t,i),a=o.create(r.words.slice(e),4*n);return r.sigBytes=4*e,v.create({key:r,iv:a,salt:i})}},k=i.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,t.keySize,t.ivSize);i.iv=r.iv;var o=y.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);i.iv=r.iv;var o=y.decrypt.call(this,t,e,r.key,i);return o}})}()}))},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3955:function(t,e,n){},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){"use strict";var i=n("e330");t.exports=i({}.isPrototypeOf)},"3bbe":function(t,e,n){"use strict";var i=n("1626"),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},"3c65":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("083a"),l=n("3511"),c=1!==[].unshift(0),u=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(t){var e=r(this),n=o(e),i=arguments.length;if(i){l(n+i);var c=n;while(c--){var u=c+i;c in e?e[u]=e[c]:s(e,u)}for(var d=0;d<i;d++)e[d]=arguments[d]}return a(e,n+i)}})},"3d5a":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=i._createHelper(l)}(),t.RabbitLegacy}))},"3eaa":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-draw-sort v-model="sortList" class="flex-wrap">\r\n\t<template #default="{item, id, index}">\r\n\t\t<c-draw-item :key="id" :index="index">\r\n\t\t\t// 内容\r\n\t\t</c-draw-item>\r\n\t</template>\r\n</c-draw-sort>\r\n```'},4006:function(t,e,n){const i=n("45be");function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function a(t,e,n){let i="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(i+=a?o("M",c+n,.5+u+n):o("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(i+=o("h",s),s=0)):r++}return i}e.render=function(t,e,n){const o=i.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*o.margin,u=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(o.color.dark,"stroke")+' d="'+a(l,s,o.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+p+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,f),f}},"40d5":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4146:function(t,e,n){const i=n("45be");function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,n){let a=n,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=o()),a=i.getOptions(a);const l=i.getImageWidth(t.modules.size,a),c=s.getContext("2d"),u=c.createImageData(l,l);return i.qrToImageData(u.data,t,a),r(c,s,l),c.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const o=e.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},4180:function(t,e,n){},"428b":function(t,e,n){"use strict";n("13e2")},"429b":function(t,e,n){"use strict";n("c600")},"42e6":function(t,e,n){"use strict";n("ab07")},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("c6b6"),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"44e7":function(t,e,n){"use strict";var i=n("861d"),r=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===r(t))}},4582:function(t,e,n){},"45be":function(t,e){function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,o=n.modules.data,a=e.getScale(r,i),s=Math.floor((r+2*i.margin)*a),l=i.margin*a,c=[i.color.light,i.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=4*(e*s+n),d=i.color.light;if(e>=l&&n>=l&&e<s-l&&n<s-l){const t=Math.floor((e-l)/a),i=Math.floor((n-l)/a);d=c[o[t*r+i]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}},"467f":function(t,e,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"47c2":function(t,e,n){},"485a":function(t,e,n){"use strict";var i=n("c65b"),r=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},"495a":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tab-list ref="tabList"></c-tab-list>\r\n\r\n// 切换到指定序号项\r\nthis.$refs.tabList.changeIndex(0);\r\n\r\n// 切换到指定value项\r\nthis.$refs.tabList.changeValue(val);\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntabs | Array | - | 标签列表数据,[{"name": "选项卡一"}, {"name": "选项卡二"}]\r\ntype | String | tab | 选项卡样式<br>**tab**: 普通选项卡<br>**border-tab**: 带边框的选项卡<br>**card**: 卡片式\r\nimmediate | Boolean | true | 是否立即选中第一项\r\n@change | Function(tab) | - | 标签切换事件,返回对应的标签数据'},4973:function(t,e,n){},"4a7b":function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function c(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,c),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var u=r.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,c),n}},"4ac4":function(t,e,n){},"4acb":function(t,e,n){"use strict";n("61d8")},"4ba9":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)t[e+a]^=o[a]}});return e.Decryptor=n,e}(),t.mode.OFB}))},"4d64":function(t,e,n){"use strict";var i=n("fc6a"),r=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l),u=r(a,c);if(t&&n!==n){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4e02":function(t,e,n){},"4e91":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-editor></c-editor>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名"},"4eeb":function(t,e,n){"use strict";n("6e13")},"4ef8":function(t,e,n){},"4f25":function(t,e,n){},"50c4":function(t,e,n){"use strict";var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"50f6":function(t,e,n){},5270:function(t,e,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5378:function(t,e,n){"use strict";n("4ac4")},5494:function(t,e,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("edd0"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5692:function(t,e,n){"use strict";var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){"use strict";var i=n("d066"),r=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},5778:function(t,e,n){},"577e":function(t,e,n){"use strict";var i=n("f5df"),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},"577e4":function(t,e){function n(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}n.prototype.set=function(t,e,n,i){const r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},n.prototype.get=function(t,e){return this.data[t*this.size+e]},n.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},n.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=n},"58b4":function(t,e,n){"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);if(r>=55296&&r<=56319&&n>i+1){var o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(r=1024*(r-55296)+o-56320+65536,i+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},5926:function(t,e,n){"use strict";var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},5972:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\n\n```\r\n// 消息弹窗\r\nthis.$message({\n\tmessage: '消息弹窗内容'\n})\r\n\r\n// 通知弹窗\nthis.$notice({\n\ttitle: '通知标题',\n\tmessage: '通知弹窗内容',\n\tbutton: [{\n\t\tname: '不再提醒',\n\t\tcallback() {}\n\t}]\n})\r\n\r\n// 确认弹窗\nthis.$confirm({\n\ttitle: '确认弹窗标题',\n\tmessage: '确认弹窗内容',\n\tresolve: () => {},\n\tcancel: () => {}\n})\r\n\r\n// 加载弹窗\nthis.$loading();\r\n```\n\n## 配置项\r\n\r\n### 消息弹窗 $message\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 2500 | 自动消失时长\r\nmask | Boolean | false | 消息弹窗存在时是否允许点击页面其他区域\r\n\r\n### 通知弹窗 $notice\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\ntitle | String | - | 标题\r\nmessage | String | - | 通知内容\r\ntimeout | Number | 1000 | 自动消失时长\r\nbutton | Array | - | 为通知弹窗定义按钮\r\n-- button.name | String | - | 按钮名称\r\n-- button.callback(close) | String | - | 按钮回到函数<br>**close**: 调用该方法可立即关闭通知弹窗\r\n\r\n### 确认弹窗 $confirm\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**enquire**: 询问<br>**warn**: 警告\r\ntitle | String | \"系统提醒\" | 标题\r\nmessage | String | - | 消息内容\r\nbuttonName | String | \"确定\" | 确定按钮名称\r\ncancelButtonName | String | \"取消\" | 取消按钮名称\r\ncancelButton | Boolean | true | 是否显示取消按钮\r\nresolve | Function | - | 确定按钮回调函数\r\ncancel | Function | - | 取消按钮回调函数\r\n\r\n### 加载弹窗 $loading\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 10000 | 自动消失时长"},5980:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){(function(){var e=t,n=e.lib,i=n.Base,r=e.enc,o=r.Utf8,a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(n));return i}})})()}))},"59ed":function(t,e,n){"use strict";var i=n("1626"),r=n("0d51"),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a function")}},"5a08":function(t,e,n){},"5aa3":function(t,e,n){var i={"./button.md":"35d5","./countdown.md":"e3ee","./detail.md":"b74a","./dialog.md":"796e","./drag_sort.md":"3eaa","./editor.md":"4e91","./file.md":"6184","./form.md":"7741","./input.md":"b035","./layout/flex.md":"a46c","./layout/grid.md":"d013","./link.md":"a29b","./module/complex.md":"9d1b","./module/multi.md":"89e3","./module/normal.md":"8fde","./module/tabs.md":"7daf","./options.md":"e6c5","./popup.md":"5972","./preview.md":"19dd","./progress.md":"25c5","./qrcode.md":"9927","./selector.md":"c0c9","./steps.md":"6627","./switch.md":"e474","./tab.md":"495a","./table.md":"90f9","./test.md":"d429","./title.md":"674c","./tooltip.md":"9abb","./tree.md":"6298","./window.md":"d278"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="5aa3"},"5af5":function(t,e,n){"use strict";n("89b9")},"5b48":function(t,e,n){},"5b81":function(t,e,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("e330"),a=n("1d80"),s=n("1626"),l=n("7234"),c=n("44e7"),u=n("577e"),d=n("dc4a"),h=n("90d8"),p=n("0cb2"),f=n("b622"),m=n("c430"),g=f("replace"),v=TypeError,b=o("".indexOf),_=o("".replace),y=o("".slice),w=Math.max,x=function(t,e,n){return n>t.length?-1:""===e?n:b(t,e,n)};i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,o,f,k,S,D,C,E,A=a(this),T=0,F=0,B="";if(!l(t)){if(n=c(t),n&&(i=u(a(h(t))),!~b(i,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(o=d(t,g),o)return r(o,t,A,e);if(m&&n)return _(u(A),t,e)}f=u(A),k=u(t),S=s(e),S||(e=u(e)),D=k.length,C=w(1,D),T=x(f,k,0);while(-1!==T)E=S?u(e(k,T,f)):p(k,f,T,[],void 0,e),B+=y(f,F,T)+E,F=T+D,T=x(f,k,T+C);return F<f.length&&(B+=y(f,F)),B}})},"5bd0":function(t,e,n){},"5c6c":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cb0":function(t,e,n){},"5d56":function(t,e,n){"use strict";n("1e39")},"5e77":function(t,e,n){"use strict";var i=n("83ab"),r=n("1a2d"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},"5e90":function(t,e,n){"use strict";n("271f")},6184:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-upload-file></c-upload-file> // 文件上传\r\n<c-upload-file>\r\n\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t<template #tip="{type}">\r\n\t\t<p>自定义的提示说明</p>\r\n\t\t<p>{{type}}</p> // type为根据属性生成的提示说明,例如:"支持格式:图片,mp4"\r\n\t</template>\r\n</c-upload-file>\r\n\r\n<c-file></c-file> // 文件展示\r\n```\r\n\r\n## 属性配置\r\n\r\n### 文件上传 <c-upload-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 文件上传的值,可使用v-model属性绑定变量,multiple为true时可传入逗号隔开的字符串或数组\r\nname | String | - | 字段名\r\ntype | String | - | 支持文件类型<br>**image**: 图片<br>**video**: 视频<br>**word**: word文档<br>**excel**: excel文档<br>**zip**: 压缩包\r\nsize | String \\| Number | - | 文件大小上限,单位MB\r\nmedia | Boolean | false | 是否以媒体预览的方式展示\r\nbutton | String | "上传文件" | 上传按钮文字\r\ntip | String | - | 提示说明\r\nmultiple | Boolean \\| String \\| Number | false | 是否支持上传多个文件,可传入数字限制最多可上传文件数\r\n\r\n### 文件展示 <c-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsrc | String | - | 文件地址\r\nmedia | Boolean | false | 是否以媒体预览的方式展示'},"61d8":function(t,e,n){},6286:function(t,e,n){"use strict";n("5778")},6298:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tree></c-tree>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 节点数据:[{<br>"name": "节点名", <br>"id": "节点值", <br>"pId": "父节点值",<br>"leaf": "是否为叶子节点", <br>"checked": "是否勾选", <br>"data": "自定义数据", <br>"children": "子节点"<br>}]\r\nsimple | Boolean | false | 节点数据是否为简单结构\r\nselect | Boolean \\| Object | false | 节点是否可以选中\r\nselect.unselect | Boolean | true | 选中后是否可以取消选中\r\ncheck | Boolean \\| Object | false | 节点是否可以勾选\r\ncheck.linked | Boolean \\| String | both | 关联方式<br>**false**: 不关联<br>**parent**: 只关联父级<br>**child**: 只关联子级<br>**both**: 都关联\r\nckeck.clickCheck | Boolean | false | 点击节点触发勾选\r\nicon | Boolean | true | 是否显示图标\r\n@load | Function(node, resolve) | - | 加载子节点数据\r\n@click | Function(node) | - | 节点点击事件\r\n@check | Function(node) | - | 节点勾选事件'},6374:function(t,e,n){"use strict";var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},6460:function(t,e,n){"use strict";n("a134")},"647a":function(t,e,n){"use strict";n("9c9b")},6627:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-steps></c-steps>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsteps | Array | - | 步骤数据:[{"name": "步骤名", "message": "步骤描述,可不填"}]\r\nactive | String \\| Number | 1 | 当前步骤\r\ngap | String \\| Number | 100 | 步骤节点之间的距离'},"674c":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-title>标题名称</c-title>\r\n```"},"67dd":function(t,e){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},6864:function(t,e,n){"use strict";n("6c23")},"699e":function(t,e){const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},"69b1":function(t,e,n){},"69f3":function(t,e,n){"use strict";var i,r,o,a=n("cdce"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("1a2d"),d=n("c6cd"),h=n("f772"),p=n("d012"),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},b=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw m(f);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var y=h("state");p[y]=!0,i=function(t,e){if(u(t,y))throw m(f);return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:b}},"6a16":function(t,e,n){"use strict";n("3123")},"6c23":function(t,e,n){},"6d08":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex}))},"6d4f":function(t,e,n){"use strict";n("84e8")},"6ddf":function(t,e,n){"use strict";n("c6ce")},"6e13":function(t,e,n){},"6f19":function(t,e,n){"use strict";var i=n("9112"),r=n("0d26"),o=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"6fc4":function(t,e,n){},"70f6":function(t,e,n){"use strict";n("47c2")},7156:function(t,e,n){"use strict";var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},7185:function(t,e,n){"use strict";n("e84a")},7234:function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){"use strict";var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},"72fe":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],p=t[e+2],f=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],b=t[e+7],_=t[e+8],y=t[e+9],w=t[e+10],x=t[e+11],k=t[e+12],S=t[e+13],D=t[e+14],C=t[e+15],E=o[0],A=o[1],T=o[2],F=o[3];E=c(E,A,T,F,a,7,s[0]),F=c(F,E,A,T,l,12,s[1]),T=c(T,F,E,A,p,17,s[2]),A=c(A,T,F,E,f,22,s[3]),E=c(E,A,T,F,m,7,s[4]),F=c(F,E,A,T,g,12,s[5]),T=c(T,F,E,A,v,17,s[6]),A=c(A,T,F,E,b,22,s[7]),E=c(E,A,T,F,_,7,s[8]),F=c(F,E,A,T,y,12,s[9]),T=c(T,F,E,A,w,17,s[10]),A=c(A,T,F,E,x,22,s[11]),E=c(E,A,T,F,k,7,s[12]),F=c(F,E,A,T,S,12,s[13]),T=c(T,F,E,A,D,17,s[14]),A=c(A,T,F,E,C,22,s[15]),E=u(E,A,T,F,l,5,s[16]),F=u(F,E,A,T,v,9,s[17]),T=u(T,F,E,A,x,14,s[18]),A=u(A,T,F,E,a,20,s[19]),E=u(E,A,T,F,g,5,s[20]),F=u(F,E,A,T,w,9,s[21]),T=u(T,F,E,A,C,14,s[22]),A=u(A,T,F,E,m,20,s[23]),E=u(E,A,T,F,y,5,s[24]),F=u(F,E,A,T,D,9,s[25]),T=u(T,F,E,A,f,14,s[26]),A=u(A,T,F,E,_,20,s[27]),E=u(E,A,T,F,S,5,s[28]),F=u(F,E,A,T,p,9,s[29]),T=u(T,F,E,A,b,14,s[30]),A=u(A,T,F,E,k,20,s[31]),E=d(E,A,T,F,g,4,s[32]),F=d(F,E,A,T,_,11,s[33]),T=d(T,F,E,A,x,16,s[34]),A=d(A,T,F,E,D,23,s[35]),E=d(E,A,T,F,l,4,s[36]),F=d(F,E,A,T,m,11,s[37]),T=d(T,F,E,A,b,16,s[38]),A=d(A,T,F,E,w,23,s[39]),E=d(E,A,T,F,S,4,s[40]),F=d(F,E,A,T,a,11,s[41]),T=d(T,F,E,A,f,16,s[42]),A=d(A,T,F,E,v,23,s[43]),E=d(E,A,T,F,y,4,s[44]),F=d(F,E,A,T,k,11,s[45]),T=d(T,F,E,A,C,16,s[46]),A=d(A,T,F,E,p,23,s[47]),E=h(E,A,T,F,a,6,s[48]),F=h(F,E,A,T,b,10,s[49]),T=h(T,F,E,A,D,15,s[50]),A=h(A,T,F,E,g,21,s[51]),E=h(E,A,T,F,k,6,s[52]),F=h(F,E,A,T,f,10,s[53]),T=h(T,F,E,A,w,15,s[54]),A=h(A,T,F,E,l,21,s[55]),E=h(E,A,T,F,_,6,s[56]),F=h(F,E,A,T,C,10,s[57]),T=h(T,F,E,A,v,15,s[58]),A=h(A,T,F,E,S,21,s[59]),E=h(E,A,T,F,m,6,s[60]),F=h(F,E,A,T,x,10,s[61]),T=h(T,F,E,A,p,15,s[62]),A=h(A,T,F,E,y,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+F|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<<o|s>>>32-o)+e}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5}))},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"75c0":function(t,e,n){},7741:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n// 普通表单\r\n<c-form ref=\"form\">\r\n\t<c-form-item>\r\n\t\t// 表单项内容写在组件内部,输入框、单复选框、选择器和文件上传组件定义name属性后即可通过get方法获取数据\r\n\t\t<c-input name=\"name\"></c-input>\r\n\t\t\r\n\t\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t\t<template #tip>\r\n\t\t\t<p>自定义提示信息</p>\r\n\t\t</template>\r\n\t\t\r\n\t\t// 表单项操作\r\n\t\t<template #handle>\r\n\t\t\t<c-link>跳转链接</c-link>\r\n\t\t</template>\r\n\t</c-form-item>\r\n</c-form>\r\n\r\n// 多列表单\r\n<c-form ref=\"form\">\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n\t\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n</c-form>\r\n\r\n// 表单项多列表单\r\n<c-form ref=\"form\" column=\"2\">\r\n\t<c-form-item></c-form-item>\r\n\t<c-form-item></c-form-item>\r\n</c-form>\r\n\r\n// 嵌套表单\r\n<c-form ref=\"form\">\r\n\t// 当一个子表单处于另一个父表单内时,可以定义子表单的name属性,获取父表单的数据时会将子表单的数据封装在对应的name字段中;不定义name属性则将父子表单的数据合并\r\n\t<c-form name=\"subForm\"></c-form>\r\n\t\r\n\t// 父表单获取到的数据为\r\n\t// {\r\n\t// \t...父表单的数据,\r\n\t// \tsubForm: {\r\n\t// \t\t...子表单的数据\r\n\t// \t}\r\n\t// }\r\n</c-form>\r\n\r\n// 回填数据\r\nthis.$refs.form.set({\r\n\tname: 'value'\r\n});\r\n\r\n// 获取数据\r\nthis.$refs.form.get();\r\n\r\n// 清空数据\r\nthis.$refs.form.clear();\r\n\r\n// 提交数据\r\nthis.$refs.form.submit({\r\n\turl: '', // 接口地址\r\n\t\r\n\t// 校验规则\r\n\trule: {\r\n\t\tname: '提示信息', // 仅校验非空可简写\r\n\t\t\r\n\t\tname: [...check], // 仅定义校验项可简写\r\n\r\n\t\tname: { // 完整配置项\r\n\t\t\tcheck: [{\r\n\t\t\t\ttype: 'empty', // 非空校验\r\n\t\t\t\tmessage: '提示信息, // 提示信息\r\n\t\t\t\tskip: (value, data) {} // 跳过字段单项校验\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'regexp', // 正则校验\r\n\t\t\t\tregexp: ['phone', 'email'] // 正则表达式,满足其一即通过校验(phone: 手机号; tel: 固定电话; email: 邮箱; realname: 姓名; idcard: 身份证号; username: 用户名; password: 密码)\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'function', // 自定义函数校验\r\n\t\t\t\tfun: (value, data) => {} // 校验函数,参数value为该字段的值,参数data为表单数据\r\n\t\t\t}],\r\n\t\t\tskip: (value, data) {}, // 跳过字段校验\r\n\t\t\tfail: (value, data) {} // 字段校验未通过回调\r\n\t\t},\r\n\r\n\t\tname: data => { // 复杂表单项校验,name对应c-form-item组件的name属性\r\n\t\t\treturn true; // 成功返回true\r\n\t\t\treturn '错误信息'; // 失败返回错误信息\r\n\t\t}\r\n\t},\r\n\r\n\t// 校验前处理数据\r\n\tbeforeValid: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交前处理数据\r\n\tdataFormatter: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交成功\r\n\tsuccess: (data, res, msg) => {},\r\n\r\n\t// 校验或提交失败\r\n\tfail: (data, code, res, msg) => {}\r\n});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表单 <c-form\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ncolumn | String | 1 | 表单项多列展示\r\nvertical | Boolean | false | 表单项纵向排列\r\nunit-width | String | - | 表单项控件区域宽度\r\nname | String | - | 表单数据字段名\r\nlink-parent | Boolean | false | 子表单是否联动父表单的column、vertical、unit-width属性\r\n\r\n### 表单项 <c-form-item\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\nrequired | Boolean | false | 字段名是否带*号\r\nwidth | String | - | 表单项控件区域宽度\r\ntip | String | - | 提示说明"},"77a0":function(t,e,n){(function(e,i){t.exports=i(n("8bbf"))})(0,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};function s(){if(c())return!1;var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}var l=function(){if(c())return!1;var t=navigator.userAgent;return!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},c=function(){return t.prototype.$isServer},u=function(){function t(){n(this,t)}return i(t,[{key:"getEventObject",value:function(t){return this.touchObject?this.isTouch?t.touches:[t]:null}},{key:"getTouchObject",value:function(){if(c())return null;this.isTouch=!1;var t=navigator.userAgent,e=navigator.platform,n={};switch(n.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.nonDeskTouch=n.touch&&!/win32/i.test(e)||n.touch&&/win32/i.test(e)&&/mobile/i.test(t),n.eventType="onmousedown"in window&&!n.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",n.eventType){case"mouse":n.touchstart="mousedown",n.touchend="mouseup",n.touchmove="mousemove",n.touchenter="mouseenter",n.touchmove="mousemove",n.touchleave="mouseleave";break;case"touch":n.touchstart="touchstart",n.touchend="touchend",n.touchmove="touchmove",n.touchcancel="touchcancel",n.touchenter="touchstart",n.touchmove="touchmove",n.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":n.touchstart="MSPointerDown",n.touchend="MSPointerUp",n.touchmove="MSPointerMove",n.touchcancel="MSPointerCancel",n.touchenter="MSPointerDown",n.touchmove="MSPointerMove",n.touchleave="MSPointerUp";break;case"touchpoints":n.touchstart="pointerdown",n.touchend="pointerup",n.touchmove="pointermove",n.touchcancel="pointercancel",n.touchenter="pointerdown",n.touchmove="pointermove",n.touchleave="pointerup";break}return this.touchObject=n}}]),t}(),d=function(){function t(){var e=this;n(this,t),this.originPixelRatio=this.getRatio(),this.lastPixelRatio=this.originPixelRatio,window.addEventListener("resize",(function(){e.lastPixelRatio=e.getRatio()}))}return i(t,[{key:"getRatio",value:function(){var t=0,e=window.screen,n=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?t=window.devicePixelRatio:~n.indexOf("msie")?e.deviceXDPI&&e.logicalXDPI&&(t=e.deviceXDPI/e.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(t=window.outerWidth/window.innerWidth),t&&(t=Math.round(100*t)),t}},{key:"getRatioBetweenPreAndCurrent",value:function(){return this.originPixelRatio/this.lastPixelRatio}}]),t}();function h(t,n,i){if(i&&T(n))return t;if(E(t))n=[],t.forEach((function(t,e){n[e]=h(t,n[e])}));else if(t){if(!A(t))return t;for(var r in n={},t)n[r]="object"===e(t[r])?h(t[r],n[r]):t[r]}return n}function p(t,n,i,r){if(r&&T(n))return t;if(n=n||{},E(t))!E(n)&&i&&(n=[]),E(n)&&t.forEach((function(t,e){n[e]=p(t,n[e],i,r)}));else if(t)if(A(t))for(var o in t)"object"===e(t[o])?T(n[o])?n[o]=h(t[o],n[o],r):p(t[o],n[o],i,r):(T(n[o])||i)&&(n[o]=t[o]);else i&&(n=t);return n}function f(t,e,n,i){(n[e]||"function"===typeof n)&&(i=i||e,Object.defineProperty(t,e,{get:function(){return n[i]},configurable:!0}))}var m=void 0,g=void 0;function v(){if(c())return 0;if(g||(g=new d),void 0!==m)return m*g.getRatioBetweenPreAndCurrent();var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var i=n.offsetWidth;return t.parentNode.removeChild(t),m=e-i,g||(g=new d),m*g.getRatioBetweenPreAndCurrent()}function b(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"on";"on"==r?t.addEventListener(e,n,i):t.removeEventListener(e,n,i)}var _=function(t){console.error("[vuescroll] "+t)},y=function(t){console.warn("[vuescroll] "+t)};function w(t,e){var n=!1;if(!t||!e)return n;while(t.parentNode!==e&&9!==t.parentNode.nodeType&&!t.parentNode._isVuescroll)t=t.parentNode;return t.parentNode==e&&(n=!0),n}function x(t){var e,n=document.documentElement.style;t.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?e="presto":"MozAppearance"in n?e="gecko":"WebkitAppearance"in n?e="webkit":"string"===typeof navigator.cpuClass&&(e="trident");var i={trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[e];return i}function k(t,e){if(c())return!1;var n="-"+x(window)+"-"+e,i=document.createElement("div");return i.style[t]=n,i.style[t]==n&&n}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(e&&e.length>1)return r?[].concat(a(n),a(e)):[].concat(a(e),a(n));e=e[0];var o=D(e),s=o.ch,l=o.tag,c=o.isComponent;return c&&(e.data=p({attrs:e.componentOptions.propsData},e.data,!1,!0)),s=r?[].concat(a(n),a(s)):[].concat(a(s),a(n)),delete e.data.slot,t(l,p(i,e.data,!1,!0),s)}function D(t){if(!t||t.length>1)return{};t=t[0]?t[0]:t;var e=!!t.componentOptions,n=void 0,i=void 0;return e?(n=t.componentOptions.children||[],i=t.componentOptions.tag):(n=t.children||[],i=t.tag),{isComponent:e,ch:n,tag:i}}function C(t){var e=t.$parent;return!e._isVuescrollRoot&&e&&(e=e.$parent),e}var E=function(t){return Array.isArray(t)},A=function(t){return"[object Object]"==Object.prototype.toString.call(t)},T=function(t){return"undefined"===typeof t};function F(t,e){var n=void 0;return(n=/(-?\d+(?:\.\d+?)?)%$/.exec(t))?(n=n[1]-0,n=e*n/100):n=t-0,n}function B(t,e){if(!c()&&!document.getElementById(t)){var n=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),n.appendChild(i)}}function $(){var t=".__hidebar::-webkit-scrollbar {\n width: 0;\n height: 0;\n }";B("vuescroll-hide-ios-bar",t)}function L(){var t="\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ";B("vuescroll-silde-mode-style",t)}var I={mounted:function(){M[this._uid]=this},beforeDestroy:function(){delete M[this._uid]},methods:{scrollTo:function(t,e,n){var i=t.x,r=t.y;!0!==e&&"undefined"!=typeof e||(e=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,e,n)},scrollBy:function(t,e,n){var i=t.dx,r=void 0===i?0:i,o=t.dy,a=void 0===o?0:o,s=this.getPosition(),l=s.scrollLeft,c=void 0===l?0:l,u=s.scrollTop,d=void 0===u?0:u;r&&(c+=F(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),a&&(d+=F(a,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,d,e,n)},scrollIntoView:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.$el;if("string"===typeof t&&(t=n.querySelector(t)),w(t,n)){var i=this.$el.getBoundingClientRect(),r=i.left,o=i.top,a=t.getBoundingClientRect(),s=a.left,l=a.top,c=r-s,u=o-l;this.scrollBy({dx:-c,dy:-u},e)}else y("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},M={};function P(){for(var t in M)M[t].refresh()}var N={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function H(t){var e=!1,n=t.scrollPanel,i=t.bar,r=i.vBar,o=i.hBar,a=t.rail,s=a.vRail,l=a.hRail,c=n["initialScrollY"],u=n["initialScrollX"];return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),u&&!String(u).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||o||s||l)&&y("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),O&&(O=[].concat(O),O.forEach((function(n){n(t)&&(e=!0)}))),e}var O=null,R=function(t,e){t=[].concat(t),t.forEach((function(t){p(t,N)})),O=e},z=["slide","native"],U=function(){},K=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],W="refreshDom",j="loadDom",V={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function q(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame,n=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(n=!1),n)return function(t,n){e(t,n)};var i=60,r={},o=1,a=null,s=+new Date;return function(t){var e=o++;return r[e]=t,null===a&&(a=setInterval((function(){var t=+new Date,e=r;for(var n in r={},e)e.hasOwnProperty(n)&&(e[n](t),s=t);t-s>2500&&(clearInterval(a),a=null)}),1e3/i)),e}}var Y={},X=/rgb\(/,G=/rgb\((.*)\)/;function Z(t,e){var n=t+"&"+e;if(Y[n])return Y[n];var i=document.createElement("div");i.style.background=t,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),X.test(r)?Y[n]="rgba("+G.exec(r)[1]+", "+e+")":t}var Q={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return V[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(t){var e,n,i,o=this,a=Z(o.ops.rail.background,o.ops.rail.opacity);this.touchManager||(this.touchManager=new u);var s,l=o.ops.rail.size,c=o.otherBarHide?0:l,d=o.touchManager.getTouchObject(),h={class:"__rail-is-"+o.type,style:(e={position:"absolute","z-index":"1",borderRadius:o.ops.rail.specifyBorderRadius||l,background:a,border:o.ops.rail.border},r(e,o.bar.opsSize,l),r(e,o.bar.posName,o.ops.rail["gutterOfEnds"]||0),r(e,o.bar.opposName,o.ops.rail["gutterOfEnds"]||c),r(e,o.bar.sidePosName,o.ops.rail["gutterOfSide"]),e)};d&&(h.on=(s={},r(s,d.touchenter,(function(){o.setRailHover()})),r(s,d.touchleave,(function(){o.setRailLeave()})),s));var p=o.ops.scrollButton.enable?l:0,f={class:"__bar-wrap-is-"+o.type,style:(n={position:"absolute",borderRadius:o.ops.rail.specifyBorderRadius||l},r(n,o.bar.posName,p),r(n,o.bar.opposName,p),n),on:{}},m=o.state.posValue*o.state.size,g=m*o.barRatio/o.barSize,v=o.state.opacity,b=C(this);b.setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!v);var _=(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r(i,o.bar.size,100*o.barSize+"%"),r(i,"background",o.ops.bar.background),r(i,o.bar.opsSize,o.ops.bar.size),r(i,"opacity",v),r(i,"transform","translate"+V[o.type].axis+"("+g+"%)"),i),y={style:_,class:"__bar-is-"+o.type,ref:"thumb",on:{}};"vertical"==o.type?(f.style.width="100%",y.style.left=0,y.style.right=0):(f.style.height="100%",y.style.top=0,y.style.bottom=0);var w=this.touchManager.getTouchObject();return y.on[w.touchstart]=this.createBarEvent(),f.on[w.touchstart]=this.createTrackEvent(),t("div",h,[this.createScrollbarButton(t,"start"),this.hideBar?null:t("div",f,[t("div",y)]),this.createScrollbarButton(t,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover||(e.isRailHover=!0,t.showBar())},setRailLeave:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover=!1,t.hideBar()},setBarDrag:function(t){this.$emit("setBarDrag",this.isBarDragging=t);var e=C(this);e.setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!t)},createBarEvent:function(){var t=this,e=C(t),n=t.touchManager.getTouchObject();function i(e){var i=t.touchManager.getEventObject(e);i&&(e.stopImmediatePropagation(),e.preventDefault(),i=i[0],document.onselectstart=function(){return!1},t.axisStartPos=i[t.bar.client]-t.$refs["thumb"].getBoundingClientRect()[t.bar.posName],t.setBarDrag(!0),b(document,n.touchmove,o),b(document,n.touchend,a))}function o(n){if(t.axisStartPos){var i=t.touchManager.getEventObject(n);if(i){i=i[0];var o=t.$refs.thumb.parentNode,a=i[t.bar.client]-o.getBoundingClientRect()[t.bar.posName];a/=t.barRatio;var s=(a-t.axisStartPos)/o[t.bar.offset];e.scrollTo(r({},t.bar.axis.toLowerCase(),e.scrollPanelElm[t.bar.scrollSize]*s),!1)}}}function a(){t.setBarDrag(!1),e.hideBar(),document.onselectstart=null,t.axisStartPos=0,b(document,n.touchmove,o,!1,"off"),b(document,n.touchend,a,!1,"off")}return i},createTrackEvent:function(){var t=this;return function(e){var n=C(t),i=t.bar,o=i.client,a=i.offset,s=i.posName,l=i.axis,c=t.$refs["thumb"];if(e.preventDefault(),e.stopImmediatePropagation(),c){var u=c[a],d=t.touchManager.getEventObject(e)[0],h=(d[o]-e.currentTarget.getBoundingClientRect()[s]-u/2)/(e.currentTarget[a]-u);n.scrollTo(r({},l.toLowerCase(),100*h+"%"))}}},createScrollbarButton:function(t,e){var n,i=this;if(!i.ops.scrollButton.enable)return null;var o=i.ops.rail.size,a=i.ops.scrollButton,s=a.opacity,l=a.background,c=Z(l,s),u={class:["__bar-button","__bar-button-is-"+i.type+"-"+e],style:(n={},r(n,i.bar.scrollButton[e],0),r(n,"width",o),r(n,"height",o),r(n,"position","absolute"),r(n,"cursor","pointer"),r(n,"display","table"),n),ref:e},d={class:"__bar-button-inner",style:{border:"calc("+o+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==e?(d.style["border-bottom-color"]=c,d.style["transform"]="translateY(-25%)"):(d.style["border-top-color"]=c,d.style["transform"]="translateY(25%)"):"start"==e?(d.style["border-right-color"]=c,d.style["transform"]="translateX(-25%)"):(d.style["border-left-color"]=c,d.style["transform"]="translateX(25%)");var h=this.touchManager.getTouchObject();return d.on[h.touchstart]=this.createScrollButtonEvent(e,h),t("div",u,[t("div",d)])},createScrollButtonEvent:function(t,e){var n=this,i=C(n),o=n.ops.scrollButton,a=o.step,s=o.mousedownStep,l="start"==t?-a:a,c="start"==t?-s:s,u=q(window),d=n.type,h=!1,p=!0,f=void 0;function m(o){if(3!=o.which){if(i.setClassHook("cliking"+d+t+"Button",!0),o.stopImmediatePropagation(),o.preventDefault(),p=!1,i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),l)),b(document,e.touchend,v,!1),"mousedown"==e.touchstart){var a=n.$refs[t];b(a,"mouseenter",_,!1),b(a,"mouseleave",y,!1)}clearTimeout(f),f=setTimeout((function(){h=!0,u(g,window)}),500)}}function g(){h&&!p&&(i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),c),!1),u(g,window))}function v(){if(clearTimeout(f),h=!1,b(document,e.touchend,v,!1,"off"),"mousedown"==e.touchstart){var r=n.$refs[t];b(r,"mouseenter",_,!1,"off"),b(r,"mouseleave",y,!1,"off")}i.setClassHook("cliking"+d+t+"Button",!1)}function _(){p=!1,g()}function y(){p=!0}return m}}};function J(t,e){var n=V[e].axis,i=e.charAt(0)+"Bar",r=!t.bar[i].state.size||!t.mergedOptions.scrollPanel["scrolling"+n]||t.refreshLoad&&"vertical"!==e||t.mergedOptions.bar.disable,o=t.mergedOptions.rail.keepShow;return r&&!o?null:{hideBar:r,props:{type:e,ops:{bar:t.mergedOptions.bar,rail:t.mergedOptions.rail,scrollButton:t.mergedOptions.scrollButton},state:t.bar[i].state,hideBar:r},on:{setBarDrag:t.setBarDrag},ref:e+"Bar",key:e}}function tt(t,e){var n=J(e,"vertical"),i=J(e,"horizontal");return e.setClassHook("hasVBar",!(!n||n.hideBar)),e.setClassHook("hasHBar",!(!i||i.hideBar)),[n?t("bar",o({},n,{props:o({otherBarHide:!i},n.props)})):null,i?t("bar",o({},i,{props:o({otherBarHide:!n},i.props)})):null]}var et=function(t){var e=t.render,n=t.components,i=t.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:n,mixins:[I].concat(a([].concat(i))),created:function(){var t=this,e=p(this.$vuescrollConfig||{},{}),n=p(N,e);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach((function(e){f(t.mergedOptions,e,t.$options.propsData.ops)})),p(n,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=H(this.mergedOptions)},render:function(t){var n=this;if(n.renderError)return t("div",[[n.$slots["default"]]]);n.touchManager||(n.touchManager=new u);var i,s={style:{height:n.vuescroll.state.height,width:n.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:o({__vuescroll:!0},n.classHooks)},l=n.touchManager.getTouchObject();l&&(s.on=(i={},r(i,l.touchenter,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent(),n.setClassHook("mouseEnter",!0)})),r(i,l.touchleave,(function(){n.vuescroll.state.pointerLeave=!0,n.hideBar(),n.setClassHook("mouseEnter",!1)})),r(i,l.touchmove,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent()})),i));var c=[e(t,n)].concat(a(tt(t,n))),d=this.$slots["scroll-container"];return d?S(t,d,c,s):t("div",s,[c])},mounted:function(){var t=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push((function(){t.scrollToAnchor(),t.updateBarStateAndEmitEvent()})))},updated:function(){var t=this;this.updatedCbs.forEach((function(e){e.call(t)})),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs["scrollPanel"]._isVue?this.$refs["scrollPanel"].$el:this.$refs["scrollPanel"]}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(t){this.vuescroll.state.isDragging=t},setClassHook:function(t,e){this.classHooks[t]=e},showAndDefferedHideBar:function(t){var e=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout((function(){e.timeoutId=0,e.hideBar(t)}),this.mergedOptions.bar.showDelay)},showBar:function(){var t=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=t,this.bar.hBar.state.opacity=t},hideBar:function(t){var e=this.vuescroll.state,n=e.isDragging,i=e.isRailHover;n||i||(t&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var t=this.mergedOptions.scrollPanel,e=t.maxHeight,n=t.maxWidth,i=this.$el.parentNode,r=i.clientHeight,o=i.clientWidth,a=this.scrollPanelElm,s=a.scrollHeight,l=a.scrollWidth,c=void 0,u=void 0;e||n?(u=s<=e?void 0:e,c=l<=n?void 0:n):(u=r,c=o),this.vuescroll.state.height=u?u+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var t=this.mergedOptions.vuescroll.sizeStrategy,e=this.mergedOptions.scrollPanel,n=e.maxHeight,i=e.maxWidth,r=this.scrollPanelElm,o=r.clientHeight,a=r.clientWidth;"number"==t||n&&o>n||i&&a>i?this.useNumbericSize():"percent"==t&&o!=n&&a!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,e={deep:!0,sync:!0};this.$watch("mergedOptions",(function(){setTimeout((function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()}),0)}),e),K.forEach((function(n){t.$watch(n,(function(){t.isSmallChangeThisTick=!0}),e)}))},scrollToAnchor:function(){var t=function(t){return/^#[a-zA-Z_]\d*$/.test(t)},e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||t(e))){var n=document.querySelector(e);!w(n,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(n)}}}}},nt={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var t=0,e=0,n=C(this);this.ops.initialScrollX&&(t=this.ops.initialScrollX),this.ops.initialScrollY&&(e=this.ops.initialScrollY),(t||e)&&n.scrollTo({x:t,y:e})}},mounted:function(){var t=this;setTimeout((function(){t._isDestroyed||t.updateInitialScroll()}),0)},render:function(t){var e={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},n=C(this),i=n.$slots["scroll-panel"];return i?S(t,i,this.$slots.default,e):t("div",e,[[this.$slots.default]])}};function it(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=(n={},r(n,nt.name,nt),r(n,Q.name,Q),n),s={};s.components=a,s.render=e,s.mixins=t;var l=et(s);return R(i,o),l}function rt(t,e){for(var n=t.children,i=[],r=function(t){var n=t.getBoundingClientRect(),i=n.left,r=n.top,o=n.width,a=n.height,s=e.getBoundingClientRect(),l=s.left,c=s.top,u=s.height,d=s.width;return i-l+o>0&&i-l<d&&r-c+a>0&&r-c<u},o=0;o<n.length;o++){var a=n.item(o);r(a)&&!a.isResizeElm&&i.push(a)}return i}function ot(t,e){return function(n){return e(t,n)}}function at(t,e){var n=null;return"easeInQuad"===t&&(n=e*e),"easeOutQuad"===t&&(n=e*(2-e)),"easeInOutQuad"===t&&(n=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t&&(n=e*e*e),"easeOutCubic"===t&&(n=--e*e*e+1),"easeInOutCubic"===t&&(n=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t&&(n=e*e*e*e),"easeOutQuart"===t&&(n=1- --e*e*e*e),"easeInOutQuart"===t&&(n=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t&&(n=e*e*e*e*e),"easeOutQuint"===t&&(n=1+--e*e*e*e*e),"easeInOutQuint"===t&&(n=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),n||e}function st(){return!0}var lt=Date.now||function(){return(new Date).getTime()},ct=function(){function t(){n(this,t),this.init(),this.isRunning=!1}return i(t,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=lt()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:st,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:st,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:st,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:st,s=e-t,l=s>0?-1:1,c=lt();this.isRunning||this.init(),l!=this.dir||c-this.ts>200?(this.ts=c,this.dir=l,this.st=t,this.ed=e,this.df=s):this.df+=s,this.spd=n,this.completeCb=r,this.vertifyCb=o,this.stepCb=i,this.easingMethod=a,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var t=this;if(this.df){var e=this.percent||0;this.percent=0,this.isRunning=!0;var n=function n(){if(t.isRunning&&t.vertifyCb(e)&&!t.isStopped){if(e=(lt()-t.ts)/t.spd,t.isPaused)return t.percent=e,void(t.isRunning=!1);if(e<1){var i=t.st+t.df*t.easingMethod(e);t.stepCb(i),t.ref(n)}else t.stepCb(t.st+t.df),t.completeCb(),t.isRunning=!1}else t.isRunning=!1};this.ref(n)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=q(window),this.isPaused=!1,this.isStopped=!1}}]),t}();function ut(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments[4],o=arguments[5],a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,h=t,p=h.nodeType,f=new ct,m=new ct;if(p){9==p&&(t=t.scrollingElement);var g=t;a=g.scrollLeft,s=g.scrollTop,l=g.scrollHeight,c=g.scrollWidth,u=g.clientWidth,d=g.clientHeight,e="undefined"===typeof e?a:F(e,c-u),n="undefined"===typeof n?s:F(n,l-d);var v=ot(r,at);f.startScroll(a,e,i,(function(e){t.scrollLeft=e}),o,void 0,v),m.startScroll(s,n,i,(function(e){t.scrollTop=e}),o,void 0,v)}else y("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}var dt={mounted:function(){this.scrollX=new ct,this.scrollY=new ct},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(t,e,n,i){!1===n||"undefined"===typeof n&&(n=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,o=r.scrollTop,a=r.scrollLeft,s=r.scrollWidth,l=r.clientWidth,c=r.scrollHeight,u=r.clientHeight;if(t="undefined"===typeof t?a:F(t,s-l),e="undefined"===typeof e?o:F(e,c-u),n){i=i||this.mergedOptions.scrollPanel.easing;var d=ot(i,at);t!=a&&this.scrollX.startScroll(a,t,n,(function(t){r.scrollLeft=t}),this.scrollingComplete.bind(this),void 0,d),e!=o&&this.scrollY.startScroll(o,e,n,(function(t){r.scrollTop=t}),this.scrollingComplete.bind(this),void 0,d)}else r.scrollTop=e,r.scrollLeft=t},getCurrentviewDomNative:function(){var t=this.scrollContentElm,e=rt(t,this.$el);return e}}};function ht(t){var e={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":t.handleScroll},props:{ops:t.mergedOptions.scrollPanel}};t.scrollYEnable=!0,t.scrollXEnable=!0,e.nativeOn.DOMMouseScroll=e.nativeOn.mousewheel=t.onMouseWheel;var n=t.mergedOptions.scrollPanel,i=n.scrollingY,r=n.scrollingX;t.bar.hBar.state.size&&r||(t.scrollXEnable=!1,e.style.overflowX="hidden"),t.bar.vBar.state.size&&i||(t.scrollYEnable=!1,e.style.overflowY="hidden");var o=v();return o?(t.bar.vBar.state.size&&t.mergedOptions.scrollPanel.scrollingY&&("right"==t.mergedOptions.scrollPanel.verticalNativeBarPos?e.style.marginRight="-"+o+"px":e.style.marginLeft="-"+o+"px"),t.bar.hBar.state.size&&t.mergedOptions.scrollPanel.scrollingX&&(e.style.height="calc(100% + "+o+"px)")):($(),e.class.push("__hidebar"),l()&&(e.style["-webkit-overflow-scrolling"]="touch")),e.style.transformOrigin="",e.style.transform="",e}function pt(t,e){var n={};return n=ht(e),t("scrollPanel",n,[ft(t,e)])}function ft(t,e){var n={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:n,ref:"scrollContent",class:"__view"},r=e.$slots["scroll-content"];return e.mergedOptions.scrollPanel.scrollingX?n.width=k("width","fit-content"):i.style["width"]="100%",e.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=e.mergedOptions.rail.size),r?S(t,r,e.$slots.default,i):t("div",i,[e.$slots.default])}function mt(t){var e={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:t.mergedOptions.scrollPanel}};e.class.push("__slide"),l()&&(e.style=r({},"-webkit-overflow-scrolling","touch")),"transform"==t.mergedOptions.vuescroll.renderMethod&&(e.style["transform-origin"]="left top 0px");var n=t.mergedOptions.scrollPanel,i=n.scrollingX,o=n.scrollingY,a=n.padding;if(i&&!t.refreshLoad){var s=k("width","fit-content");s?e.style["width"]=s:e["display"]="inline-block"}return i||e.class.push("x-hidden"),o||e.class.push("y-hidden"),a&&(e.style.paddingRight=t.mergedOptions.rail.size),e}function gt(t,e){var n=D(e.$slots["scroll-panel"]).ch||e.$slots.default,i=[];return n||(e.$slots.default=n=[]),e.mergedOptions.vuescroll.pullRefresh.enable&&i.push(t("div",{class:"__refresh",style:{visibility:e.refrehDomVisiable?"":"hidden"},ref:W,key:W},[vt(t,e,"refresh",e.pullRefreshTip)])),i.push(n),e.mergedOptions.vuescroll.pushLoad.enable&&i.push(t("div",{ref:j,key:j,class:"__load",style:{visibility:e.loadDomVisiable?"":"hidden"}},[vt(t,e,"load",e.pushLoadTip)])),i}function vt(t,e,n,i){var r=e.vuescroll.state[n+"Stage"],o=null;if(o=e.$slots[n+"-"+r])return o;switch(r){case"deactive":case"active":var a="active";"deactive"==r&&(a+=" deactive"),o=t("svg",{class:a,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[t("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),t("g",[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[t("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":o=t("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[t("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),t("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":o=t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[t("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})]);break}return[o,i]}function bt(t,e){var n=mt(e);return t("scrollPanel",n,[gt(t,e)])}function _t(t,e){return"native"==e.mode?pt(t,e):"slide"==e.mode?bt(t,e):void 0}function yt(t,e){return wt(t,e)}function wt(t,e){if(!t.hasResized){var n="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=n;var r=document.createElement("object");return r.style.cssText=n,r.type="text/html",r.tabIndex=-1,r.onload=function(){b(r.contentDocument.defaultView,"resize",e)},s()||(r.data="about:blank"),i.isResizeElm=!0,i.appendChild(r),t.appendChild(i),s()&&(r.data="about:blank"),function(){r.contentDocument&&b(r.contentDocument.defaultView,"resize",e,"off"),t.removeChild(i),t.hasResized=!1}}}var xt={methods:{slideScrollTo:function(t,e,n,i){var r=this.getPosition(),o=r.scrollLeft,a=r.scrollTop;t=F(t||o,this.scroller.__maxScrollLeft),e=F(e||a,this.scroller.__maxScrollTop),this.scroller.scrollTo(t,e,n>0,void 0,!1,n,i)},zoomBy:function(t,e,n,i,r){this.scroller?this.scroller.zoomBy(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(t,e):y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(t){if(this.scroller){var e=this.mergedOptions.vuescroll.pullRefresh.enable,n=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=t||e)if("load"!=t||n)if("refresh"===t||"load"===t){if("start"!=this.vuescroll.state[t+"Stage"])return this.scroller.triggerRefreshOrLoad(t),!0}else y("param must be one of load and refresh!");else y("load must be enabled and content's height > container's height!");else y("refresh must be enabled!")}else y("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){var t=this.scrollPanelElm,e=rt(t,this.$el);return e}}},kt={mixins:[xt,dt],methods:{internalScrollTo:function(t,e,n,i){"native"==this.mode?this.nativeScrollTo(t,e,n,i):"slide"==this.mode&&this.slideScrollTo(t,e,n,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},St=Date.now||function(){return+new Date},Dt=60,Ct=1e3,Et={},At=1,Tt={effect:{}},Ft=null;Ft="undefined"!==typeof window?window:{},Tt.effect.Animate={requestAnimationFrame:q(Ft),stop:function(t){var e=null!=Et[t];return e&&(Et[t]=null),e},isRunning:function(t){return null!=Et[t]},start:function(t,e,n,i,r,o){var a=St(),s=a,l=0,c=0,u=At++;if(o||(o=document.body),u%20===0){var d={};for(var h in Et)d[h]=!0;Et=d}var p=function d(h){var p=!0!==h,f=St();if(!Et[u]||e&&!e(u))return Et[u]=null,void(n&&n(Dt-c/((f-a)/Ct),u,!1));if(p)for(var m=Math.round((f-s)/(Ct/Dt))-1,g=0;g<Math.min(m,4);g++)d(!0),c++;if(Et[u]){i&&(l=(f-a)/i,l>1&&(l=1));var v=r?r(l):l;!1!==t(v,f,p)&&1!==l||!p?p&&(s=f,Tt.effect.Animate.requestAnimationFrame(d,o)):(Et[u]=null,n&&n(Dt-c/((f-a)/Ct),u,1===l||null==i))}};return Et[u]=!0,Tt.effect.Animate.requestAnimationFrame(p,o),u}};var Bt=null,$t=null;function Lt(t,e){for(var n in this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:U,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},e)this.options[n]=e[n];Bt=ot(this.options.animatingEasing,at),$t=ot(this.options.noAnimatingEasing,at)}var It={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=this;t===+t&&(a.__clientWidth=t),e===+e&&(a.__clientHeight=e),n===+n&&(a.__contentWidth=n),i===+i&&(a.__contentHeight=i),a.__computeScrollMax(),o||a.scrollTo(a.__scrollLeft,a.__scrollTop,r)},setPosition:function(t,e){var n=this;n.__clientLeft=t||0,n.__clientTop=e||0},setSnapSize:function(t,e){var n=this;n.__snapWidth=t,n.__snapHeight=e},activatePullToRefresh:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__refreshHeight=t,s.__refreshActivate=n,s.__refreshBeforeDeactivate=o,s.__refreshBeforeDeactiveEnd=a,s.__refreshDeactivate=i,s.__refreshStart=r},activatePushToLoad:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__loadHeight=t,s.__loadActivate=n,s.__loadBeforeDeactivate=o,s.__loadBeforeDeactiveEnd=a,s.__loadDeactivate=i,s.__loadStart=r},triggerRefreshOrLoad:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"refresh",e=this.__isDecelerating;if(e&&(Tt.effect.Animate.stop(e),this.__isDecelerating=!1),"refresh"==t){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==t){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var t=this;if(t.__refreshActive){t.__refreshActive=!1;var e=function(){t.__refreshBeforeDeactiveEnd&&t.__refreshBeforeDeactiveEnd(),t.__refreshBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__refreshBeforeDeactivate?t.__refreshBeforeDeactivate(e):e()}if(t.__loadActive){t.__loadActive=!1;var n=function(){t.__loadBeforeDeactiveEnd&&t.__loadBeforeDeactiveEnd(),t.__loadBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__loadBeforeDeactivate?t.__loadBeforeDeactivate(n):n()}},getValues:function(){var t=this;return{left:t.__scrollLeft,top:t.__scrollTop,zoom:t.__zoomLevel}},getScrollMax:function(){var t=this;return{left:t.__maxScrollLeft,top:t.__maxScrollTop}},zoomTo:function(t,e,n,i,r){var o=this;if(!o.options.zooming)throw new Error("Zooming is not enabled!");r&&(o.__zoomComplete=r),o.__isDecelerating&&(Tt.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1);var a=o.__zoomLevel;null==n&&(n=o.__clientWidth/2),null==i&&(i=o.__clientHeight/2),t=Math.max(Math.min(t,o.options.maxZoom),o.options.minZoom),o.__computeScrollMax(t);var s=(n+o.__scrollLeft)*t/a-n,l=(i+o.__scrollTop)*t/a-i;s>o.__maxScrollLeft?s=o.__maxScrollLeft:s<0&&(s=0),l>o.__maxScrollTop?l=o.__maxScrollTop:l<0&&(l=0),o.__publish(s,l,t,e)},zoomBy:function(t,e,n,i,r){var o=this;o.zoomTo(o.__zoomLevel*t,e,n,i,r)},scrollTo:function(t,e,n,i,r,o,a){var s=this;if(s.__isDecelerating&&(Tt.effect.Animate.stop(s.__isDecelerating),s.__isDecelerating=!1),null!=i&&i!==s.__zoomLevel){if(!s.options.zooming)throw new Error("Zooming is not enabled!");t*=i,e*=i,s.__computeScrollMax(i)}else i=s.__zoomLevel;s.options.scrollingX||r?s.options.paging?t=Math.round(t/s.__clientWidth)*s.__clientWidth:s.options.snapping&&(t=Math.round(t/s.__snapWidth)*s.__snapWidth):t=s.__scrollLeft,s.options.scrollingY||r?s.options.paging?e=Math.round(e/s.__clientHeight)*s.__clientHeight:s.options.snapping&&(e=Math.round(e/s.__snapHeight)*s.__snapHeight):e=s.__scrollTop,r||(t=Math.max(Math.min(s.__maxScrollLeft,t),0),e=Math.max(Math.min(s.__maxScrollTop,e),0)),t===s.__scrollLeft&&e===s.__scrollTop&&(n=!1),s.__isTracking||s.__publish(t,e,i,n,o,a)},scrollBy:function(t,e,n){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(t||0),o+(e||0),n)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(t,e){var n=t.x,i=t.y;isNaN(n)&&(n=1),isNaN(i)&&(i=1),this.scrollTo((n-1)*this.__clientWidth,(i-1)*this.__clientHeight,e)},doMouseZoom:function(t,e,n,i){var r=this,o=t>0?.97:1.03;return r.zoomTo(r.__zoomLevel*o,!1,n-r.__clientLeft,i-r.__clientTop)},doTouchStart:function(t,e){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var n,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(Tt.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(Tt.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var o=1===t.length;o?(n=t[0].pageX,i=t[0].pageY):(n=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2),r.__initialTouchLeft=n,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=n,r.__lastTouchTop=i,r.__lastTouchMove=e,r.__lastScale=1,r.__enableScrollX=!o&&r.options.scrollingX,r.__enableScrollY=!o&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!o,r.__isSingleTouch=o,r.__positions=[]},doTouchMove:function(t,e,n){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var i=this;if(i.__isTracking){var r,o;2===t.length?(r=Math.abs(t[0].pageX+t[1].pageX)/2,o=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,o=t[0].pageY);var a=i.__positions;if(i.__isDragging){var s=r-i.__lastTouchLeft,l=o-i.__lastTouchTop,c=i.__scrollLeft,u=i.__scrollTop,d=i.__zoomLevel;if(null!=n&&i.options.zooming){var h=d;if(d=d/i.__lastScale*n,d=Math.max(Math.min(d,i.options.maxZoom),i.options.minZoom),h!==d){var p=r-i.__clientLeft,f=o-i.__clientTop;c=(p+c)*d/h-p,u=(f+u)*d/h-f,i.__computeScrollMax(d)}}var m=i.options.bouncing;if(i.__enableScrollX){c-=s*this.options.speedMultiplier;var g=i.__maxScrollLeft;(c>g||c<0)&&(c+=s/2*this.options.speedMultiplier,c=Math.min(Math.max(-m.left,c),g+m.right))}if(i.__enableScrollY){u-=l*this.options.speedMultiplier;var v=i.__maxScrollTop;(u>v||u<0)&&(u+=l/2*this.options.speedMultiplier,u=Math.min(Math.max(-m.top,u),v+m.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&u<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&u>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&u>=i.__maxScrollTop+i.__loadHeight&&i.__loadHeight>0?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&u<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}a.length>60&&a.splice(0,30),a.push(c,u,e),i.__publish(c,u,d)}else{var b=i.options.locking?3:0,_=5,y=Math.abs(r-i.__initialTouchLeft),w=Math.abs(o-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&y>=b,i.__enableScrollY=i.options.scrollingY&&w>=b,a.push(i.__scrollLeft,i.__scrollTop,e),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(y>=_||w>=_),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=o,i.__lastTouchMove=e,i.__lastScale=n}},doTouchEnd:function(t){if(t instanceof Date&&(t=t.valueOf()),"number"!==typeof t)throw new Error("Invalid timestamp value: "+t);var e=this;if(e.__isTracking){if(e.__isTracking=!1,e.__isDragging)if(e.__isDragging=!1,e.__isSingleTouch&&e.options.animating&&t-e.__lastTouchMove<=100){for(var n=e.__positions,i=n.length-1,r=i,o=i;o>0&&n[o]>e.__lastTouchMove-100;o-=3)r=o;if(r!==i){var a=n[i]-n[r],s=e.__scrollLeft-n[r-2],l=e.__scrollTop-n[r-1];e.__decelerationVelocityX=s/a*(1e3/60),e.__decelerationVelocityY=l/a*(1e3/60);var c=e.options.paging||e.options.snapping?4:1;Math.abs(e.__decelerationVelocityX)>c||Math.abs(e.__decelerationVelocityY)>c?e.__refreshActive||e.__loadActive||e.__startDeceleration(t):e.__scrollComplete()}else e.__scrollComplete()}else t-e.__lastTouchMove>100&&e.__scrollComplete();e.__isDecelerating||(e.__refreshActive&&e.__refreshStart?(e.__publish(e.__scrollLeft,-e.__refreshHeight,e.__zoomLevel,!0),e.__refreshStart&&e.__refreshStart()):e.__loadActive&&e.__loadStart?(e.__publish(e.__scrollLeft,e.__maxScrollTop+e.__loadHeight,e.__zoomLevel,!0),e.__loadStart&&e.__loadStart()):((e.__interruptedAnimation||e.__isDragging)&&e.__scrollComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0,e.__zoomLevel),e.__refreshActive?(e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate()):e.__loadActive&&(e.__loadActive=!1,e.__loadDeactivate&&e.__loadDeactivate()))),e.__positions.length=0}},onScroll:U,stop:function(){var t=this;t.__disable=!0},start:function(){var t=this;t.__disable=!0},__publish:function(t,e,n,i,r,o){var a=this;if(!a.__disable){isNaN(t)&&(t=this.__scrollLeft),isNaN(e)&&(e=this.__scrollTop);var s=a.__isAnimating;if(s&&(Tt.effect.Animate.stop(s),a.__isAnimating=!1),i&&(a.options.animating||r)){a.__scheduledLeft=t,a.__scheduledTop=e,a.__scheduledZoom=n;var l=a.__scrollLeft,c=a.__scrollTop,u=a.__zoomLevel,d=t-l,h=e-c,p=n-u,f=function(t,e,n){n&&(a.__scrollLeft=l+d*t,a.__scrollTop=c+h*t,a.__zoomLevel=u+p*t,a.__callback&&(a.__callback(a.__scrollLeft,a.__scrollTop,a.__zoomLevel),a.onScroll()))},m=function(t){return a.__isAnimating===t},g=function(t,e,n){e===a.__isAnimating&&(a.__isAnimating=!1),(a.__didDecelerationComplete||n)&&a.__scrollComplete(),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())},v=Bt;o&&(v=ot(o,at)),a.__isAnimating=Tt.effect.Animate.start(f,m,g,r||a.options.animationDuration,s?v:$t)}else a.__scheduledLeft=a.__scrollLeft=t,a.__scheduledTop=a.__scrollTop=e,a.__scheduledZoom=a.__zoomLevel=n,a.__callback&&(a.__callback(t,e,n),a.onScroll()),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())}},__computeScrollMax:function(t){var e=this;null==t&&(t=e.__zoomLevel),e.__maxScrollLeft=Math.max(e.__contentWidth*t-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight*t-e.__clientHeight,0)},__computePage:function(){var t=this,e=t.__clientWidth,n=t.__clientHeight,i=t.__scrollLeft,r=t.__scrollTop;t.__totalXPage=Math.ceil(t.__contentWidth/e),t.__currentPageX=Math.ceil(i/e+1),t.__totalYPage=Math.ceil(t.__contentHeight/n),t.__currentPageY=Math.ceil(r/n+1)},__scrollComplete:function(){var t=this;t.options.scrollingComplete()},__startDeceleration:function(){var t=this;if(t.options.paging){var e=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),n=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),i=t.__clientWidth,r=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(e/i)*i,t.__minDecelerationScrollTop=Math.floor(n/r)*r,t.__maxDecelerationScrollLeft=Math.ceil(e/i)*i,t.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var o=function(e,n,i){t.__stepThroughDeceleration(i)},a=t.options.snapping?4:.001,s=function(){var e=Math.abs(t.__decelerationVelocityX)>=a||Math.abs(t.__decelerationVelocityY)>=a;return e||(t.__didDecelerationComplete=!0),e},l=function(){t.__isDecelerating&&(t.__isDecelerating=!1,t.__didDecelerationComplete&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping))};t.__isDecelerating=Tt.effect.Animate.start(o,s,l)},__stepThroughDeceleration:function(t){var e=this,n=e.options.bouncing,i=e.__minDecelerationScrollLeft,r=e.__maxDecelerationScrollLeft,o=e.__minDecelerationScrollTop,a=e.__maxDecelerationScrollTop,s=e.__scrollLeft+e.__decelerationVelocityX,l=e.__scrollTop+e.__decelerationVelocityY,c=s<i||s>r,u=l<o||l>a,d=Math.min(Math.max(i-n.left,s),r+n.right),h=Math.min(Math.max(o-n.top,l),a+n.bottom);if(t?e.__publish(d,h,e.__zoomLevel):(e.__scrollLeft=s,e.__scrollTop=l),!e.options.paging){var p=.95;e.__decelerationVelocityX*=p,e.__decelerationVelocityY*=p}var f=0,m=0,g=e.options.penetrationDeceleration,v=e.options.penetrationAcceleration;c&&(s<e.__minDecelerationScrollLeft?f=e.__minDecelerationScrollLeft-s:s>e.__maxDecelerationScrollLeft&&(f=e.__maxDecelerationScrollLeft-s)),u&&(l<e.__minDecelerationScrollTop?m=e.__minDecelerationScrollTop-l:l>e.__maxDecelerationScrollTop&&(m=e.__maxDecelerationScrollTop-l)),0!==f&&(f*e.__decelerationVelocityX<=0?(e.__decelerationVelocityX+=f*g,f<0&&-f>=n.right&&e.__decelerationVelocityX>0&&(e.__decelerationVelocityX=-n.right/2),f>0&&f>=n.left&&e.__decelerationVelocityX<0&&(e.__decelerationVelocityX=n.left/2)):e.__decelerationVelocityX=f*v),0!==m&&(m*e.__decelerationVelocityY<=0?(e.__decelerationVelocityY+=m*g,m<0&&-m>=n.bottom&&e.__decelerationVelocityY>0&&(e.__decelerationVelocityY=-n.bottom/2),m>0&&m>=n.top&&e.__decelerationVelocityY<0&&(e.__decelerationVelocityY=n.top/2)):e.__decelerationVelocityY=m*v/2)}};for(var Mt in It)Lt.prototype[Mt]=It[Mt];function Pt(t,e,n,i){if("position"==i)return function(e,n){t.style.left=-e+"px",t.style.top=-n+"px"};var r,o=x(e),a=document.createElement("div"),s=o+"Perspective",l="transform";return a.style[s]!==r?function(e,i,r){t.style[l]="translate3d("+-e+n+","+-i+n+",0) scale("+r+")"}:a.style[l]!==r?function(e,i,r){t.style[l]="translate("+-e+n+","+-i+n+") scale("+r+")"}:void 0}var Nt=new u;function Ht(t,e,n,i,r,o){var a=null,s=!1,l=Nt.getTouchObject();function c(t){var i=Nt.getEventObject(t);i[0]&&i[0].target&&i[0].target.tagName.match(/input|textarea|select/i)||e.__disable||(n("mousedown"),s=!0,e.doTouchStart(i,t.timeStamp),r&&t.preventDefault(),t.stopPropagation(),document.addEventListener(l.touchmove,u,{passive:!1}))}function u(t){if(!e.__disable&&s){var i=Nt.getEventObject(t);n("mousemove"),e.doTouchMove(i,t.timeStamp,t.scale),o&&t.preventDefault()}}function d(t){n("mouseup"),s=!1,e.doTouchEnd(t.timeStamp),document.removeEventListener(l.touchmove,u)}function h(t){e.doTouchEnd(t.timeStamp)}function p(t){e.doMouseZoom(t.detail?-120*t.detail:t.wheelDelta,t.timeStamp,t.pageX,t.pageY)}return t.addEventListener(l.touchstart,c,!1),document.addEventListener(l.touchend,d,!1),document.addEventListener(l.touchcancel,h,!1),i&&!Nt.isTouch&&t.addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1),a=function(){t.removeEventListener(l.touchstart,c,!1),document.removeEventListener(l.touchend,d,!1),document.removeEventListener(l.touchcancel,h,!1),t.removeEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1)},e.onScroll=function(){n("onscroll")},a}function Ot(t,e,n,i){var r=n.$listeners,o=function(){n.vuescroll.state[e]="active",n.$emit(t+"-activate",n,i)},a=function(){n.vuescroll.state[e]="deactive",n.$emit(t+"-deactivate",n,i)},s=function(){n.vuescroll.state[e]="beforeDeactiveEnd",n.$emit(t+"-before-deactivate-end",n,i)},l=function(){n.vuescroll.state[e]="start",setTimeout((function(){n.scroller.finishRefreshOrLoad()}),2e3)},c=void 0;return r[t+"-before-deactivate"]&&(c=function(r){n.vuescroll.state[e]="beforeDeactive",n.$emit(t+"-before-deactivate",n,i,r.bind(n.scroller))}),r[t+"-start"]&&(l=function(){n.vuescroll.state[e]="start",n.$emit(t+"-start",n,i,n.scroller.finishRefreshOrLoad.bind(n.scroller))}),{activateCallback:o,deactivateCallback:a,startCallback:l,beforeDeactivateCallback:c,beforeDeactiveEnd:s}}L();var Rt={mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var t=this.$el.clientWidth,e=this.$el.clientHeight,n=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,o=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var a=this.$refs[W].elm||this.$refs[W];r=a.offsetHeight,a.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var s=this.$refs[j].elm||this.$refs[j];o=s.offsetHeight,i-=o,s.style.bottom="-"+o+"px"}this.scroller&&this.scroller.setDimensions(t,e,n,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.left,i=void 0===n?0:n,r=e.top,a=void 0===r?0:r,s=e.zoom,l=void 0===s?1:s,c=this.mergedOptions.vuescroll.scroller,u=c.preventDefault,d=c.preventDefaultOnMove,h=this.mergedOptions.vuescroll,p=h.paging,f=h.snapping.enable,m=h.renderMethod,g=h.zooming,v=h.locking;g=!this.refreshLoad&&!p&&!f&&g;var b=this.mergedOptions.scrollPanel,_=b.scrollingY,y=b.scrollingX,w=this.scrollingComplete.bind(this);this.scroller=new Lt(Pt(this.scrollPanelElm,window,"px",m),o({},this.mergedOptions.vuescroll.scroller,{zooming:g,scrollingY:_,scrollingX:y&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:p,snapping:f,scrollingComplete:w,locking:v})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=a,this.scroller.__zoomLevel=l,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var x=this.$el.getBoundingClientRect();this.scroller.setPosition(x.left+this.$el.clientLeft,x.top+this.$el.clientTop);var k=Ht(this.$el,this.scroller,(function(e){switch(e){case"mousedown":t.vuescroll.state.isDragging=!0;break;case"onscroll":var n=t.vuescroll.state["loadStage"],i=t.mergedOptions.vuescroll.pushLoad,r=i.enable,o=i.auto,a=i.autoLoadDistance,s=t.scroller,l=s.__scrollTop,c=s.__maxScrollTop;"start"!=n&&r&&o&&!t.lockAutoLoad&&a>=c-l&&l>0&&(t.lockAutoLoad=!0,t.triggerRefreshOrLoad("load")),a<c-l&&(t.lockAutoLoad=!1),t.handleScroll(!1);break;case"mouseup":t.vuescroll.state.isDragging=!1;break}}),g,u,d);return this.updateScroller(),k},updateSlideModeBarState:function(){var t=void 0,e=void 0,n=this.$el,i=this.scroller,r=0,o=0,a=this.$el,s=a.clientWidth,l=a.clientHeight,c=s+this.scroller.__maxScrollLeft,u=l+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(o=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(o=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,t=l/(u+o),e=s/(c+r);var d=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),h=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(d+o)/n.clientHeight,this.bar.hBar.state.posValue=100*(h+r)/n.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=t<1?t:0,this.bar.hBar.state.size=e<1?e:0},registryEvent:function(t){var e="refresh"==t?W:j,n="refresh"==t?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,i="refresh"==t?"refreshStage":"loadStage",r=this.$refs[e].elm||this.$refs[e],o=Ot(t,i,this,r),a=r.offsetHeight;n.bind(this.scroller)(a,o)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},zt={methods:{updateNativeModeBarState:function(){var t=this.scrollPanelElm,e="percent"==this.vuescroll.state.currentSizeStrategy,n=this.vuescroll.state,i=n.width,r=n.height,o=e||!i?t.clientWidth:i.slice(0,-2),a=e||!r?t.clientHeight:r.slice(0,-2),s=a/t.scrollHeight,l=o/t.scrollWidth;this.bar.vBar.state.posValue=100*t.scrollTop/a,this.bar.hBar.state.posValue=100*t.scrollLeft/o,this.bar.vBar.state.size=s<1?s:0,this.bar.hBar.state.size=l<1?l:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(t,e){return window.getComputedStyle(t)[e]},checkScrollable:function(t,e,n){var i=!1,r=t.target?t.target:t;while(r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName)){var o=this.css(r,"overflow")||"";if(/scroll|auto/.test(o)){var a=this.getScrollProcess(r),s=a.v,l=a.h,c="hidden"!==this.css(r,"overflowX"),u="hidden"!==this.css(r,"overflowY");if(c&&(e<0&&l>0||e>0&&l<1)||u&&(n<0&&s>0||n>0&&s<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(t){var e=this.mergedOptions.vuescroll,n=e.wheelDirectionReverse,i=e.wheelScrollDuration,r=e.checkShiftKey,o=e.locking,a=e.deltaPercent,s=void 0,l=void 0;t.wheelDelta?t.deltaY||t.deltaX?(s=t.deltaX*a,l=t.deltaY*a,o&&(Math.abs(t.deltaX)>Math.abs(t.deltaY)?l=0:s=0)):(s=0,l=-1*t.wheelDelta/2):t.detail&&(l=s=16*t.detail,1==t.axis?l=0:2==t.axis&&(s=0)),r&&t.shiftKey&&(s^=l,l^=s,s^=l),n&&(s^=l,l^=s,s^=l),this.checkScrollable(t,s,l)&&(t.stopPropagation(),t.preventDefault(),this.scrollBy({dx:s,dy:l},i))}},computed:{scrollContentElm:function(){return this.$refs["scrollContent"]._isVue?this.$refs["scrollContent"].$el:this.$refs["scrollContent"]}}},Ut=[Rt,zt],Kt=[kt].concat(a(Ut)),Wt={mixins:Kt,mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(t){this.scroller&&(this.scroller.__disable=t)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(t){this.updateBarStateAndEmitEvent("handle-scroll",t)},updateBarStateAndEmitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}t&&this.emitEvent(t,e),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=t&&"handle-resize"!=t&&"refresh-status"!=t&&"window-resize"!=t&&"options-change"!=t||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var t=this.scrollPanelElm,e=t.scrollHeight,n=t.scrollWidth,i=t.clientHeight,r=t.clientWidth,o=t.scrollTop,a=t.scrollLeft;"slide"==this.mode&&(e=this.scroller.__contentHeight,n=this.scroller.__contentWidth,o=this.scroller.__scrollTop,a=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth);var s=Math.min(o/(e-i||1),1),l=Math.min(a/(n-r||1),1);return{v:s,h:l}},emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.scrollPanelElm,i=n.scrollTop,r=n.scrollLeft,o={type:"vertical"},a={type:"horizontal"},s=this.getScrollProcess(),l=s.v,c=s.h;o["process"]=l,a["process"]=c,o["barSize"]=this.bar.vBar.state.size,a["barSize"]=this.bar.hBar.state.size,o["scrollTop"]=i,a["scrollLeft"]=r,this.$emit(t,o,a,e)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var t=void 0;this.scroller&&(t=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(t):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize,n=!1;if(this.lastMode!=this.mode&&(n=!0,this.lastMode=this.mode),(!this.destroyResize||!e||n)&&(this.destroyResize&&this.destroyResize(),e)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,o=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())},a=function(){var e={};"slide"==t.mode?(e["width"]=t.scroller.__contentWidth,e["height"]=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate()):"native"==t.mode&&(e["width"]=t.scrollPanelElm.scrollWidth,e["height"]=t.scrollPanelElm.scrollHeight,t.updateBarStateAndEmitEvent("handle-resize",e)),t.setVsSize()};window.addEventListener("resize",o,!1);var s=yt(i,a),l=function(){window.removeEventListener("resize",o,!1)};this.destroyResize=function(){l(),s(),t.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}},jt={vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}};function Vt(t){var e=!1,n=t.vuescroll;return n.paging==n.snapping.enable&&n.paging&&(n.pullRefresh||n.pushLoad)&&_("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),e}var qt={vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0,deltaPercent:1}},Yt={vuescroll:{mode:"native"}};function Xt(t){var e=!1,n=t.vuescroll;return~z.indexOf(n.mode)||(_("Unknown mode: "+n.mode+',the vuescroll\'s option "mode" should be one of the '+z),e=!0),e}var Gt=[Yt,jt,qt],Zt=[Xt,Vt],Qt=it(Wt,_t,Gt,Zt);function Jt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.name||Qt.name,Qt),t.prototype.$vuescrollConfig=e.ops||{}}var te=o({install:Jt,version:"4.18.1",refreshAll:P,scrollTo:ut},Qt);return"undefined"!==typeof window&&window.Vue&&window.Vue.use(te),te}))},7800:function(t,e,n){"use strict";n("5bd0")},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7903:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,r=0,o=0,a=null,s=null;for(let l=0;l<e;l++){r=o=0,a=s=null;for(let c=0;c<e;c++){let e=t.get(l,c);e===a?r++:(r>=5&&(i+=n.N1+(r-5)),a=e,r=1),e=t.get(c,l),e===s?o++:(o>=5&&(i+=n.N1+(o-5)),s=e,o=1)}r>=5&&(i+=n.N1+(r-5)),o>=5&&(i+=n.N1+(o-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n<e-1;n++)for(let r=0;r<e-1;r++){const e=t.get(n,r)+t.get(n,r+1)+t.get(n+1,r)+t.get(n+1,r+1);4!==e&&0!==e||i++}return i*n.N2},e.getPenaltyN3=function(t){const e=t.size;let i=0,r=0,o=0;for(let n=0;n<e;n++){r=o=0;for(let a=0;a<e;a++)r=r<<1&2047|t.get(n,a),a>=10&&(1488===r||93===r)&&i++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n<i;n++)e+=t.data[n];const r=Math.abs(Math.ceil(100*e/i/5)-10);return r*n.N4},e.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},e.getBestMask=function(t,n){const i=Object.keys(e.Patterns).length;let r=0,o=1/0;for(let a=0;a<i;a++){n(a),e.applyMask(a,t);const i=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),i<o&&(o=i,r=a)}return r}},"796e":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-dialog ref="dialog" title="会话弹窗标题">\r\n\t会话弹窗内容\r\n\t\r\n\t// 如需要自定义按钮,可在组件内插入以下代码\r\n\t<template #button>\r\n\t\t<c-button>按钮名称</c-button>\r\n\t</template>\r\n</c-dialog>\r\n\r\nthis.$refs.dialog.open() // 打开会话弹窗\r\nthis.$refs.dialog.close() // 关闭会话弹窗\r\n\r\n// 打开会话时可以修改属性\r\nthis.$refs.dialog.open({\r\n\ttitle,\r\n\tbutton,\r\n\tbuttonName,\r\n\tcancelButton,\r\n\tcancelButtonName\r\n})\r\n\r\n// 弹窗回调方式\r\n// 1.定义绑定事件\r\n<c-dialog @resolve="确定按钮回调方法" @cancel="取消按钮回调方法"></c-dialog>\r\n// 2.传入回调方法\r\nthis.$refs.dialog.open({\r\n\tresolve: () => {},\r\n\tcancel: () => {},\r\n\t...\r\n})\r\n// 3.使用异步函数\r\nlet {type, stop, next} = await this.$refs.dialog.open();\r\n或\r\nthis.$refs.dialog.open().then(({type, stop, next}) => {});\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nmode | String | - | 模式<br>**popup**: 弹出<br>**slide**: 侧滑\r\ntitle | String | - | 会话弹窗标题\r\nwidth | Number \\| String | - | 会话弹窗宽度\r\nheight | Number \\| String | - | 会话弹窗内容区域高度\r\nresize-button | Boolean | false | 是否显示最大化最小化按钮\r\nclose-button | Boolean | true | 是否显示关闭按钮\r\nbutton | Boolean | true | 是否显示按钮\r\nbutton-name | String | "确定" | 确定按钮名称\r\ncancel-button | Boolean | true | 是否显示取消按钮\r\ncancel-button-name | String | "取消" | 取消按钮名称\r\nmove | Boolean | true | 是否支持移动\r\nmove-limit | Boolean | true | 移动范围限制\r\nmask | Booelan | true | 是否显示遮罩层\r\nmask-close | Boolean | true | 点击遮罩层是否关闭弹窗\r\n@resolve | Function(stop, next) | - | 确定按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@cancel | Function(stop, next) | - | 取消按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@close | Function | - | 弹窗关闭回调'},"79d9":function(module,exports,__webpack_require__){__webpack_require__("14d9"),__webpack_require__("c73d");const IMAGE_ALIGN_TOP=__webpack_require__("072b"),IMAGE_ALIGN_LEFT=__webpack_require__("9ca8"),IMAGE_ALIGN_RIGHT=__webpack_require__("d359");(function(window,undefined){if(!window.KindEditor){window.console||(window.console={}),console.log||(console.log=function(){});var _VERSION="4.1.11 (2016-03-31)",_ua=navigator.userAgent.toLowerCase(),_IE=_ua.indexOf("msie")>-1&&-1==_ua.indexOf("opera"),_NEWIE=-1==_ua.indexOf("msie")&&_ua.indexOf("trident")>-1,_GECKO=_ua.indexOf("gecko")>-1&&-1==_ua.indexOf("khtml"),_WEBKIT=_ua.indexOf("applewebkit")>-1,_OPERA=_ua.indexOf("opera")>-1,_MOBILE=_ua.indexOf("mobile")>-1,_IOS=/ipad|iphone|ipod/.test(_ua),_QUIRKS="CSS1Compat"!=document.compatMode,_IERANGE=!window.getSelection,_matches=/(?:msie|firefox|webkit|opera)[\/:\s](\d+)/.exec(_ua),_V=_matches?_matches[1]:"0",_TIME=(new Date).getTime(),_round=Math.round,K={DEBUG:!1,VERSION:_VERSION,IE:_IE,GECKO:_GECKO,WEBKIT:_WEBKIT,OPERA:_OPERA,V:_V,TIME:_TIME,each:_each,isArray:_isArray,isFunction:_isFunction,inArray:_inArray,inString:_inString,trim:_trim,addUnit:_addUnit,removeUnit:_removeUnit,escape:_escape,unescape:_unescape,toCamel:_toCamel,toHex:_toHex,toMap:_toMap,toArray:_toArray,undef:_undef,invalidUrl:_invalidUrl,addParam:_addParam,extend:_extend,json:_json},_INLINE_TAG_MAP=_toMap("a,abbr,acronym,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,img,input,ins,kbd,label,map,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),_BLOCK_TAG_MAP=_toMap("address,applet,blockquote,body,center,dd,dir,div,dl,dt,fieldset,form,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,iframe,ins,isindex,li,map,menu,meta,noframes,noscript,object,ol,p,pre,script,style,table,tbody,td,tfoot,th,thead,title,tr,ul"),_SINGLE_TAG_MAP=_toMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),_STYLE_TAG_MAP=_toMap("b,basefont,big,del,em,font,i,s,small,span,strike,strong,sub,sup,u"),_CONTROL_TAG_MAP=_toMap("img,table,input,textarea,button"),_PRE_TAG_MAP=_toMap("pre,style,script"),_NOSPLIT_TAG_MAP=_toMap("html,head,body,td,tr,table,ol,ul,li"),_AUTOCLOSE_TAG_MAP=_toMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),_FILL_ATTR_MAP=_toMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),_VALUE_TAG_MAP=_toMap("input,button,textarea,select");K.basePath=_getBasePath(),K.options={designMode:!0,fullscreenMode:!1,filterMode:!1,wellFormatMode:!0,shadowMode:!0,loadStyleMode:!0,basePath:K.basePath,themesPath:K.basePath+"themes/",langPath:K.basePath+"lang/",pluginsPath:K.basePath+"plugins/",themeType:"default",langType:"zh-CN",urlType:"",newlineTag:"p",resizeType:2,syncType:"form",pasteType:2,dialogAlignType:"page",useContextmenu:!0,fullscreenShortcut:!1,bodyClass:"ke-content",indentChar:"\t",cssPath:"",cssData:"",minWidth:650,minHeight:100,minChangeSize:50,zIndex:811213,items:["source","|","undo","redo","|","formatblock","fontname","fontsize","forecolor","hilitecolor","bold","italic","underline","strikethrough","removeformat","|","justifyleft","justifycenter","justifyright","justifyfull","|","indent","outdent","subscript","superscript","|","uploadImage"],noDisableItems:["source","fullscreen"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],fontSizeTable:["9px","10px","12px","14px","16px","18px","24px","32px"],htmlTags:{font:["id","class","color","size","face",".background-color"],span:["id","class",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".line-height"],div:["id","class","align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["id","class","border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height",".border-collapse"],"td,th":["id","class","align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background",".border"],a:["id","class","href","target","name"],embed:["id","class","src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess","wmode"],img:["id","class","src","width","height","border","alt","title","align",".width",".height",".border"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["id","class","align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],pre:["id","class"],hr:["id","class",".page-break-after"],"br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del":["id","class"],iframe:["id","class","src","frameborder","width","height",".width",".height"]},layout:'<div class="container"><div class="toolbar"></div><div class="edit"></div><div class="statusbar"></div></div>'};var _useCapture=!1,_INPUT_KEY_MAP=_toMap("8,9,13,32,46,48..57,59,61,65..90,106,109..111,188,190..192,219..222"),_CURSORMOVE_KEY_MAP=_toMap("33..40"),_CHANGE_KEY_MAP={};_each(_INPUT_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e})),_each(_CURSORMOVE_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e}));var _EVENT_PROPS="altKey,attrChange,attrName,bubbles,button,cancelable,charCode,clientX,clientY,ctrlKey,currentTarget,data,detail,eventPhase,fromElement,handler,keyCode,metaKey,newValue,offsetX,offsetY,originalTarget,pageX,pageY,prevValue,relatedNode,relatedTarget,screenX,screenY,shiftKey,srcElement,target,toElement,view,wheelDelta,which".split(",");_extend(KEvent,{init:function(t,e){var n=this,i=t.ownerDocument||t.document||t;if(n.event=e,_each(_EVENT_PROPS,(function(t,i){n[i]=e[i]})),n.target||(n.target=n.srcElement||i),3===n.target.nodeType&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),null==n.pageX&&null!=n.clientX){var r=i.documentElement,o=i.body;n.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}switch(!n.which&&(n.charCode||0===n.charCode?n.charCode:n.keyCode)&&(n.which=n.charCode||n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),n.which||n.button===undefined||(n.which=1&n.button?1:2&n.button?3:4&n.button?2:0),n.which){case 186:n.which=59;break;case 187:case 107:case 43:n.which=61;break;case 189:case 45:n.which=109;break;case 42:n.which=106;break;case 47:n.which=111;break;case 78:n.which=110;break}n.which>=96&&n.which<=105&&(n.which-=48)},preventDefault:function(){var t=this.event;t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){var t=this.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},stop:function(){this.preventDefault(),this.stopPropagation()}});var _eventExpendo="kindeditor_"+_TIME,_eventId=0,_eventData={},_readyFinished=!1;window.attachEvent&&window.attachEvent("onunload",(function(){_each(_eventData,(function(t,e){e.el&&_unbind(e.el)}))})),K.ctrl=_ctrl,K.ready=_ready,K.formatUrl=_formatUrl,K.formatHtml=_formatHtml,K.getCssList=_getCssList,K.getAttrList=_getAttrList,K.mediaType=_mediaType,K.mediaAttrs=_mediaAttrs,K.mediaEmbed=_mediaEmbed,K.mediaImg=_mediaImg,K.clearMsWord=_clearMsWord,K.tmpl=_tmpl;var _getSetAttrDiv=document.createElement("div");_getSetAttrDiv.setAttribute("className","t");var _GET_SET_ATTRIBUTE="t"!==_getSetAttrDiv.className;K.query=_query,K.queryAll=_queryAll,_extend(KNode,{init:function(t){var e=this;t=_isArray(t)?t:[t];for(var n=0,i=0,r=t.length;i<r;i++)t[i]&&(e[i]=t[i].constructor===KNode?t[i][0]:t[i],n++);e.length=n,e.doc=_getDoc(e[0]),e.name=_getNodeName(e[0]),e.type=e.length>0?e[0].nodeType:null,e.win=_getWin(e[0])},each:function(t){for(var e=this,n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e;return e},bind:function(t,e){return this.each((function(){_bind(this,t,e)})),this},unbind:function(t,e){return this.each((function(){_unbind(this,t,e)})),this},fire:function(t){return this.length<1||_fire(this[0],t),this},hasAttr:function(t){return!(this.length<1)&&!!_getAttr(this[0],t)},attr:function(t,e){var n=this;return t===undefined?_getAttrList(n.outer()):"object"===typeof t?(_each(t,(function(t,e){n.attr(t,e)})),n):e===undefined?(e=n.length<1?null:_getAttr(n[0],t),null===e?"":e):(n.each((function(){_setAttr(this,t,e)})),n)},removeAttr:function(t){return this.each((function(){_removeAttr(this,t)})),this},get:function(t){return this.length<1?null:this[t||0]},eq:function(t){return this.length<1?null:this[t]?new KNode(this[t]):null},hasClass:function(t){return!(this.length<1)&&_hasClass(this[0],t)},addClass:function(t){return this.each((function(){_hasClass(this,t)||(this.className=_trim(this.className+" "+t))})),this},removeClass:function(t){return this.each((function(){_hasClass(this,t)&&(this.className=_trim(this.className.replace(new RegExp("(^|\\s)"+t+"(\\s|$)")," ")))})),this},html:function(t){var e=this;return t===undefined?e.length<1||1!=e.type?"":_formatHtml(e[0].innerHTML):(e.each((function(){_setHtml(this,t)})),e)},text:function(){var t=this;return t.length<1?"":_IE?t[0].innerText:t[0].textContent},hasVal:function(){return!(this.length<1)&&_hasVal(this[0])},val:function(t){var e=this;return t===undefined?e.length<1?"":e.hasVal()?e[0].value:e.attr("value"):(e.each((function(){_hasVal(this)?this.value=t:_setAttr(this,"value",t)})),e)},css:function(t,e){var n=this;return t===undefined?_getCssList(n.attr("style")):"object"===typeof t?(_each(t,(function(t,e){n.css(t,e)})),n):e===undefined?n.length<1?"":n[0].style[_toCamel(t)]||_computedCss(n[0],t)||"":(n.each((function(){this.style[_toCamel(t)]=e})),n)},width:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetWidth:e.css("width",_addUnit(t))},height:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetHeight:e.css("height",_addUnit(t))},opacity:function(t){return this.each((function(){this.style.opacity===undefined?this.style.filter=1==t?"":"alpha(opacity="+100*t+")":this.style.opacity=1==t?"":t})),this},data:function(t,e){var n=this;return t="kindeditor_data_"+t,e===undefined?n.length<1?null:n[0][t]:(this.each((function(){this[t]=e})),n)},pos:function(){var t=this,e=t[0],n=0,i=0;if(e)if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),o=_getScrollPos(t.doc);n=r.left+o.x,i=r.top+o.y}else while(e)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:_round(n),y:_round(i)}},clone:function(t){return this.length<1?new KNode([]):new KNode(this[0].cloneNode(t))},append:function(t){return this.each((function(){this.appendChild&&this.appendChild(_get(t))})),this},appendTo:function(t){return this.each((function(){_get(t).appendChild(this)})),this},before:function(t){return this.each((function(){this.parentNode.insertBefore(_get(t),this)})),this},after:function(t){return this.each((function(){this.nextSibling?this.parentNode.insertBefore(_get(t),this.nextSibling):this.parentNode.appendChild(_get(t))})),this},replaceWith:function(t){var e=[];return this.each((function(n,i){_unbind(i);var r=_get(t);i.parentNode.replaceChild(r,i),e.push(r)})),K(e)},empty:function(){var t=this;return t.each((function(t,e){var n=e.firstChild;while(n){if(!e.parentNode)return;var i=n.nextSibling;n.parentNode.removeChild(n),n=i}})),t},remove:function(t){var e=this;return e.each((function(n,i){if(i.parentNode){if(_unbind(i),t){var r=i.firstChild;while(r){var o=r.nextSibling;i.parentNode.insertBefore(r,i),r=o}}i.parentNode.removeChild(i),delete e[n]}})),e.length=0,e},show:function(t){var e=this;return t===undefined&&(t=e._originDisplay||""),"none"!=e.css("display")?e:e.css("display",t)},hide:function(){var t=this;return t.length<1?t:(t._originDisplay=t[0].style.display,t.css("display","none"))},outer:function(){var t=this;if(t.length<1)return"";var e,n=t.doc.createElement("div");return n.appendChild(t[0].cloneNode(!0)),e=_formatHtml(n.innerHTML),n=null,e},isSingle:function(){return!!_SINGLE_TAG_MAP[this.name]},isInline:function(){return!!_INLINE_TAG_MAP[this.name]},isBlock:function(){return!!_BLOCK_TAG_MAP[this.name]},isStyle:function(){return!!_STYLE_TAG_MAP[this.name]},isControl:function(){return!!_CONTROL_TAG_MAP[this.name]},contains:function(t){return!(this.length<1)&&_contains(this[0],_get(t))},parent:function(){if(this.length<1)return null;var t=this[0].parentNode;return t?new KNode(t):null},children:function(){if(this.length<1)return new KNode([]);var t=[],e=this[0].firstChild;while(e)3==e.nodeType&&""===_trim(e.nodeValue)||t.push(e),e=e.nextSibling;return new KNode(t)},first:function(){var t=this.children();return t.length>0?t.eq(0):null},last:function(){var t=this.children();return t.length>0?t.eq(t.length-1):null},index:function(){if(this.length<1)return-1;var t=-1,e=this[0];while(e)t++,e=e.previousSibling;return t},prev:function(){if(this.length<1)return null;var t=this[0].previousSibling;return t?new KNode(t):null},next:function(){if(this.length<1)return null;var t=this[0].nextSibling;return t?new KNode(t):null},scan:function(t,e){if(!(this.length<1))return e=e===undefined||e,n(this[0]),this;function n(i){var r=e?i.firstChild:i.lastChild;while(r){var o=e?r.nextSibling:r.previousSibling;if(!1===t(r))return!1;if(!1===n(r))return!1;r=o}}}}),_each("blur,focus,focusin,focusout,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error,contextmenu".split(","),(function(t,e){KNode.prototype[e]=function(t){return t?this.bind(e,t):this.fire(e)}}));var _K=K;K=function(t,e){if(t!==undefined&&null!==t){if("string"===typeof t){e&&(e=_get(e));var n=t.length;if("@"===t.charAt(0)&&(t=t.substr(1)),t.length!==n||/<.+>/.test(t)){var i=e?e.ownerDocument||e:document,r=i.createElement("div"),o=[];r.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+t;for(var a=0,s=r.childNodes.length;a<s;a++){var l=r.childNodes[a];"__kindeditor_temp_tag__"!=l.id&&o.push(l)}return c(o)}return c(_queryAll(t,e))}return t&&t.constructor===KNode?t:(t.toArray&&(t=t.toArray()),_isArray(t)?c(t):c(_toArray(arguments)))}function c(t){return t[0]||(t=[]),new KNode(t)}},_each(_K,(function(t,e){K[t]=e})),K.NodeClass=KNode,window.KindEditor=K;var _START_TO_START=0,_START_TO_END=1,_END_TO_END=2,_END_TO_START=3,_BOOKMARK_ID=0;_extend(KRange,{init:function(t){var e=this;e.startContainer=t,e.startOffset=0,e.endContainer=t,e.endOffset=0,e.collapsed=!0,e.doc=t},commonAncestor:function(){function t(t){var e=[];while(t)e.push(t),t=t.parentNode;return e}var e,n,i=t(this.startContainer),r=t(this.endContainer),o=0,a=i.length,s=r.length;while(++o)if(e=i[a-o],n=r[s-o],!e||!n||e!==n)break;return i[a-o+1]},setStart:function(t,e){var n=this,i=n.doc;return n.startContainer=t,n.startOffset=e,n.endContainer===i&&(n.endContainer=t,n.endOffset=e),_updateCollapsed(this)},setEnd:function(t,e){var n=this,i=n.doc;return n.endContainer=t,n.endOffset=e,n.startContainer===i&&(n.startContainer=t,n.startOffset=e),_updateCollapsed(this)},setStartBefore:function(t){return this.setStart(t.parentNode||this.doc,K(t).index())},setStartAfter:function(t){return this.setStart(t.parentNode||this.doc,K(t).index()+1)},setEndBefore:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index())},setEndAfter:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index()+1)},selectNode:function(t){return this.setStartBefore(t).setEndAfter(t)},selectNodeContents:function(t){var e=K(t);if(3==e.type||e.isSingle())return this.selectNode(t);var n=e.children();return n.length>0?this.setStartBefore(n[0]).setEndAfter(n[n.length-1]):this.setStart(t,0).setEnd(t,0)},collapse:function(t){return t?this.setEnd(this.startContainer,this.startOffset):this.setStart(this.endContainer,this.endOffset)},compareBoundaryPoints:function(t,e){var n=this.get(),i=e.get();if(!_IERANGE)return n.compareBoundaryPoints(t,i);var r={};r[_START_TO_START]="StartToStart",r[_START_TO_END]="EndToStart",r[_END_TO_END]="EndToEnd",r[_END_TO_START]="StartToEnd";var o,a,s,l,c,u=n.compareEndPoints(r[t],i);if(0!==u)return u;if(t!==_START_TO_START&&t!==_END_TO_START||(o=this.startContainer,l=this.startOffset),t!==_START_TO_END&&t!==_END_TO_END||(o=this.endContainer,l=this.endOffset),t!==_START_TO_START&&t!==_START_TO_END||(a=e.startContainer,c=e.startOffset),t!==_END_TO_END&&t!==_END_TO_START||(a=e.endContainer,c=e.endOffset),o===a){var d=l-c;return d>0?1:d<0?-1:0}s=a;while(s&&s.parentNode!==o)s=s.parentNode;if(s)return K(s).index()>=l?-1:1;s=o;while(s&&s.parentNode!==a)s=s.parentNode;return s?K(s).index()>=c?1:-1:(s=K(a).next(),s&&s.contains(o)?1:(s=K(o).next(),s&&s.contains(a)?-1:void 0))},cloneRange:function(){return new KRange(this.doc).setStart(this.startContainer,this.startOffset).setEnd(this.endContainer,this.endOffset)},toString:function(){var t=this.get(),e=_IERANGE?t.text:t.toString();return e.replace(/\r\n|\n|\r/g,"")},cloneContents:function(){return _copyAndDelete(this,!0,!1)},deleteContents:function(){return _copyAndDelete(this,!1,!0)},extractContents:function(){return _copyAndDelete(this,!0,!0)},insertNode:function(t){var e,n,i,r=this,o=r.startContainer,a=r.startOffset,s=r.endContainer,l=r.endOffset,c=1;return"#document-fragment"===t.nodeName.toLowerCase()&&(e=t.firstChild,n=t.lastChild,c=t.childNodes.length),1==o.nodeType?(i=o.childNodes[a],i?(o.insertBefore(t,i),o===s&&(l+=c)):o.appendChild(t)):3==o.nodeType&&(0===a?(o.parentNode.insertBefore(t,o),o.parentNode===s&&(l+=c)):a>=o.nodeValue.length?o.nextSibling?o.parentNode.insertBefore(t,o.nextSibling):o.parentNode.appendChild(t):(i=a>0?o.splitText(a):o,o.parentNode.insertBefore(t,i),o===s&&(s=i,l-=a))),e?r.setStartBefore(e).setEndAfter(n):r.selectNode(t),r.compareBoundaryPoints(_END_TO_END,r.cloneRange().setEnd(s,l))>=1?r:r.setEnd(s,l)},surroundContents:function(t){return t.appendChild(this.extractContents()),this.insertNode(t).selectNode(t)},isControl:function(){var t=this,e=t.startContainer,n=t.startOffset,i=t.endContainer,r=t.endOffset;return 1==e.nodeType&&e===i&&n+1===r&&K(e.childNodes[n]).isControl()},get:function(t){var e,n=this,i=n.doc;if(!_IERANGE){e=i.createRange();try{e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset)}catch(o){}return e}if(t&&n.isControl())return e=i.body.createControlRange(),e.addElement(n.startContainer.childNodes[n.startOffset]),e;var r=n.cloneRange().down();return e=i.body.createTextRange(),e.setEndPoint("StartToStart",_getEndRange(r.startContainer,r.startOffset)),e.setEndPoint("EndToStart",_getEndRange(r.endContainer,r.endOffset)),e},html:function(){return K(this.cloneContents()).outer()},down:function(){var t=this;function e(e,n,i){if(1==e.nodeType){var r,o,a,s,l=K(e).children();if(0!==l.length)n>0&&(r=l.eq(n-1)),n<l.length&&(o=l.eq(n)),r&&3==r.type&&(a=r[0],s=a.nodeValue.length),o&&3==o.type&&(a=o[0],s=0),a&&(i?t.setStart(a,s):t.setEnd(a,s))}}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},up:function(){var t=this;function e(e,n,i){3==e.nodeType&&(0===n?i?t.setStartBefore(e):t.setEndBefore(e):n==e.nodeValue.length&&(i?t.setStartAfter(e):t.setEndAfter(e)))}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},enlarge:function(t){var e=this;function n(n,i,r){var o,a=K(n);if(!(3==a.type||_NOSPLIT_TAG_MAP[a.name]||!t&&a.isBlock()))if(0===i){while(!a.prev()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartBefore(a[0]):e.setEndBefore(a[0])}else if(i==a.children().length){while(!a.next()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartAfter(a[0]):e.setEndAfter(a[0])}}return e.up(),n(e.startContainer,e.startOffset,!0),n(e.endContainer,e.endOffset,!1),e},shrink:function(){var t,e=this,n=e.collapsed;while(1==e.startContainer.nodeType&&(t=e.startContainer.childNodes[e.startOffset])&&1==t.nodeType&&!K(t).isSingle())e.setStart(t,0);if(n)return e.collapse(n);while(1==e.endContainer.nodeType&&e.endOffset>0&&(t=e.endContainer.childNodes[e.endOffset-1])&&1==t.nodeType&&!K(t).isSingle())e.setEnd(t,t.childNodes.length);return e},createBookmark:function(t){var e,n=this,i=n.doc,r=K('<span style="display:none;"></span>',i)[0];return r.id="__kindeditor_bookmark_start_"+_BOOKMARK_ID+++"__",n.collapsed||(e=r.cloneNode(!0),e.id="__kindeditor_bookmark_end_"+_BOOKMARK_ID+++"__"),e&&n.cloneRange().collapse(!1).insertNode(e).setEndBefore(e),n.insertNode(r).setStartAfter(r),{start:t?"#"+r.id:r,end:e?t?"#"+e.id:e:null}},moveToBookmark:function(t){var e=this,n=e.doc,i=K(t.start,n),r=t.end?K(t.end,n):null;return!i||i.length<1||(e.setStartBefore(i[0]),i.remove(),r&&r.length>0?(e.setEndBefore(r[0]),r.remove()):e.collapse(!0)),e},dump:function(){console.log("--------------------"),console.log(3==this.startContainer.nodeType?this.startContainer.nodeValue:this.startContainer,this.startOffset),console.log(3==this.endContainer.nodeType?this.endContainer.nodeValue:this.endContainer,this.endOffset)}}),K.RangeClass=KRange,K.range=_range,K.START_TO_START=_START_TO_START,K.START_TO_END=_START_TO_END,K.END_TO_END=_END_TO_END,K.END_TO_START=_END_TO_START,_extend(KCmd,{init:function(t){var e=this,n=t.doc;e.doc=n,e.win=_getWin(n),e.sel=_getSel(n),e.range=t},selection:function(t){var e=this,n=e.doc,i=_getRng(n);return e.sel=_getSel(n),i?(e.range=_range(i),"html"==K(e.range.startContainer).name&&e.range.selectNodeContents(n.body).collapse(!1),e):(t&&e.range.selectNodeContents(n.body).collapse(!1),e)},select:function(t){t=_undef(t,!0);var e,n=this,i=n.sel,r=n.range.cloneRange().shrink(),o=r.startContainer,a=r.startOffset,s=(r.endContainer,r.endOffset,_getDoc(o)),l=n.win,c=!1;if(t&&1==o.nodeType&&r.collapsed){if(_IERANGE){var u=K("<span>&nbsp;</span>",s);r.insertNode(u[0]),e=s.body.createTextRange();try{e.moveToElementText(u[0])}catch(p){}return e.collapse(!1),e.select(),u.remove(),l.focus(),n}if(_WEBKIT){var d=o.childNodes;(K(o).isInline()||a>0&&K(d[a-1]).isInline()||d[a]&&K(d[a]).isInline())&&(r.insertNode(s.createTextNode("​")),c=!0)}}if(_IERANGE)try{e=r.get(!0),e.select()}catch(f){}else if(c&&r.collapse(!1),e=r.get(!0),i.removeAllRanges(),i.addRange(e),s!==document){var h=K(e.endContainer).pos();l.scrollTo(h.x,h.y)}return l.focus(),n},wrap:function(t){var e,n=this,i=n.doc,r=n.range;if(e=K(t,i),r.collapsed)return r.shrink(),r.insertNode(e[0]).selectNodeContents(e[0]),n;if(e.isBlock()){var o=e.clone(!0),a=o;while(a.first())a=a.first();return a.append(r.extractContents()),r.insertNode(o[0]).selectNode(o[0]),n}r.enlarge();var s=r.createBookmark(),l=r.commonAncestor(),c=!1;return K(l).scan((function(t){if(c||t!=s.start){if(c){if(t==s.end)return!1;var n=K(t);if(_inPreElement(n))return;if(3==n.type&&_trim(t.nodeValue).length>0){var i;while((i=n.parent())&&i.isStyle()&&1==i.children().length)n=i;_wrapNode(n,e)}}}else c=!0})),r.moveToBookmark(s),n},split:function(t,e){var n,i=this.range,r=i.doc,o=i.cloneRange().collapse(t),a=o.startContainer,s=o.startOffset,l=3==a.nodeType?a.parentNode:a,c=!1;while(l&&l.parentNode){if(n=K(l),e){if(!n.isStyle())break;if(!_hasAttrOrCss(n,e))break}else if(_NOSPLIT_TAG_MAP[n.name])break;c=!0,l=l.parentNode}if(c){var u=r.createElement("span");i.cloneRange().collapse(!t).insertNode(u),t?o.setStartBefore(l.firstChild).setEnd(a,s):o.setStart(a,s).setEndAfter(l.lastChild);var d=o.extractContents(),h=d.firstChild,p=d.lastChild;t?(o.insertNode(d),i.setStartAfter(p).setEndBefore(u)):(l.appendChild(d),i.setStartBefore(u).setEndBefore(h));var f=u.parentNode;if(f==i.endContainer){var m=K(u).prev(),g=K(u).next();m&&g&&3==m.type&&3==g.type?i.setEnd(m[0],m[0].nodeValue.length):t||i.setEnd(i.endContainer,i.endOffset-1)}f.removeChild(u)}return this},remove:function(t){var e,n,i=this,r=i.doc,o=i.range;if(o.enlarge(),0===o.startOffset){var a,s=K(o.startContainer);while((a=s.parent())&&a.isStyle()&&1==a.children().length)s=a;o.setStart(s[0],0),s=K(o.startContainer),s.isBlock()&&_removeAttrOrCss(s,t);var l=s.parent();l&&l.isBlock()&&_removeAttrOrCss(l,t)}if(o.collapsed){if(i.split(!0,t),e=o.startContainer,n=o.startOffset,n>0){var c=K(e.childNodes[n-1]);c&&_isEmptyNode(c)&&(c.remove(),o.setStart(e,n-1))}var u=K(e.childNodes[n]);return u&&_isEmptyNode(u)&&u.remove(),_isEmptyNode(e)&&(o.startBefore(e),e.remove()),o.collapse(!0),i}i.split(!0,t),i.split(!1,t);var d=r.createElement("span"),h=r.createElement("span");o.cloneRange().collapse(!1).insertNode(h),o.cloneRange().collapse(!0).insertNode(d);var p=[],f=!1;K(o.commonAncestor()).scan((function(t){if(f||t!=d)return t!=h&&void(f&&p.push(t));f=!0})),K(d).remove(),K(h).remove(),e=o.startContainer,n=o.startOffset;var m=o.endContainer,g=o.endOffset;if(n>0){var v=K(e.childNodes[n-1]);v&&_isEmptyNode(v)&&(v.remove(),o.setStart(e,n-1),e==m&&o.setEnd(m,g-1));var b=K(e.childNodes[n]);b&&_isEmptyNode(b)&&(b.remove(),e==m&&o.setEnd(m,g-1))}var _=K(m.childNodes[o.endOffset]);_&&_isEmptyNode(_)&&_.remove();var y=o.createBookmark(!0);return _each(p,(function(e,n){_removeAttrOrCss(K(n),t)})),o.moveToBookmark(y),i},commonNode:function(t){var e=this.range,n=e.endContainer,i=e.endOffset,r=3==n.nodeType||0===i?n:n.childNodes[i-1];function o(e){var n=e,i=e;while(i){if(_hasAttrOrCss(K(i),t))return K(i);i=i.parentNode}while(n&&(n=n.lastChild))if(_hasAttrOrCss(K(n),t))return K(n);return null}var a=o(r);if(a)return a;if(1==r.nodeType||3==n.nodeType&&0===i){var s=K(r).prev();if(s)return o(s)}return null},commonAncestor:function(t){var e=this.range,n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=3==n.nodeType||0===i?n:n.childNodes[i-1],s=3==r.nodeType||0===o?r:r.childNodes[o-1];function l(e){while(e){if(1==e.nodeType&&e.tagName.toLowerCase()===t)return e;e=e.parentNode}return null}var c=l(a),u=l(s);return c&&u&&c===u?K(c):null},state:function(t){var e=this,n=e.doc,i=!1;try{i=n.queryCommandState(t)}catch(r){}return i},val:function(t){var e=this,n=e.doc;e.range;function i(t){return t.toLowerCase()}t=i(t);var r,o="";return"fontfamily"===t||"fontname"===t?(o=_nativeCommandValue(n,"fontname"),o=o.replace(/['"]/g,""),i(o)):"formatblock"===t?(o=_nativeCommandValue(n,t),""===o&&(r=e.commonNode({"h1,h2,h3,h4,h5,h6,p,div,pre,address":"*"}),r&&(o=r.name)),"Normal"===o&&(o="p"),i(o)):"fontsize"===t?(r=e.commonNode({"*":".font-size"}),r&&(o=r.css("font-size")),i(o)):"forecolor"===t?(r=e.commonNode({"*":".color"}),r&&(o=r.css("color")),o=_toHex(o),""===o&&(o="default"),i(o)):"hilitecolor"===t?(r=e.commonNode({"*":".background-color"}),r&&(o=r.css("background-color")),o=_toHex(o),""===o&&(o="default"),i(o)):o},toggle:function(t,e){var n=this;return n.commonNode(e)?n.remove(e):n.wrap(t),n.select()},bold:function(){return this.toggle("<strong></strong>",{span:".font-weight=bold",strong:"*",b:"*"})},italic:function(){return this.toggle("<em></em>",{span:".font-style=italic",em:"*",i:"*"})},underline:function(){return this.toggle("<u></u>",{span:".text-decoration=underline",u:"*"})},strikethrough:function(){return this.toggle("<s></s>",{span:".text-decoration=line-through",s:"*"})},forecolor:function(t){return this.wrap('<span style="color:'+t+';"></span>').select()},hilitecolor:function(t){return this.wrap('<span style="background-color:'+t+';"></span>').select()},fontsize:function(t){return this.wrap('<span style="font-size:'+t+';"></span>').select()},fontname:function(t){return this.fontfamily(t)},fontfamily:function(t){return this.wrap('<span style="font-family:'+t+';"></span>').select()},removeformat:function(){var t={"*":".font-weight,.font-style,.text-decoration,.color,.background-color,.font-size,.font-family,.text-indent"},e=_STYLE_TAG_MAP;return _each(e,(function(e,n){t[e]="*"})),this.remove(t),this.select()},inserthtml:function(t,e){var n=this,i=n.range;if(""===t)return n;function r(t,e){e='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=t.get();i.item?i.item(0).outerHTML=e:i.pasteHTML(e);var r=t.doc.getElementById("__kindeditor_temp_tag__");r.parentNode.removeChild(r);var o=_toRange(i);t.setEnd(o.endContainer,o.endOffset),t.collapse(!1),n.select(!1)}function o(t,e){var i=t.doc,r=i.createDocumentFragment();K("@"+e,i).each((function(){r.appendChild(this)})),t.deleteContents(),t.insertNode(r),t.collapse(!1),n.select(!1)}if(_IERANGE&&e){try{r(i,t)}catch(a){o(i,t)}return n}return o(i,t),n},hr:function(){return this.inserthtml("<hr />")},print:function(){return this.win.print(),this},insertimage:function(t,e,n,i,r,o){e=_undef(e,""),r=_undef(r,0);var a='<img src="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';return n&&(a+='width="'+_escape(n)+'" '),i&&(a+='height="'+_escape(i)+'" '),e&&(a+='title="'+_escape(e)+'" '),o&&(a+='align="'+_escape(o)+'" '),a+='alt="'+_escape(e)+'" ',a+="/>",this.inserthtml(a)},createlink:function(t,e){var n=this,i=n.doc,r=n.range;n.select();var o=n.commonNode({a:"*"});o&&!r.isControl()&&(r.selectNode(o.get()),n.select());var a='<a href="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';if(e&&(a+=' target="'+_escape(e)+'"'),r.collapsed)return a+=">"+_escape(t)+"</a>",n.inserthtml(a);if(r.isControl()){var s=K(r.startContainer.childNodes[r.startOffset]);return a+="></a>",s.after(K(a,i)),s.next().append(s),r.selectNode(s[0]),n.select()}function l(t,e,n){K(t).attr("href",e).attr("data-ke-src",e),n?K(t).attr("target",n):K(t).removeAttr("target")}var c=r.startContainer,u=r.startOffset,d=r.endContainer,h=r.endOffset;if(1==c.nodeType&&c===d&&u+1===h){var p=c.childNodes[u];if("a"==p.nodeName.toLowerCase())return l(p,t,e),n}return _nativeCommand(i,"createlink","__kindeditor_temp_url__"),K('a[href="__kindeditor_temp_url__"]',i).each((function(){l(this,t,e)})),n},unlink:function(){var t=this,e=t.doc,n=t.range;if(t.select(),n.collapsed){var i=t.commonNode({a:"*"});if(i&&(n.selectNode(i.get()),t.select()),_nativeCommand(e,"unlink",null),_WEBKIT&&"img"===K(n.startContainer).name){var r=K(n.startContainer).parent();"a"===r.name&&r.remove(!0)}}else _nativeCommand(e,"unlink",null);return t}}),_each("formatblock,selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript".split(","),(function(t,e){KCmd.prototype[e]=function(t){var n=this;return n.select(),_nativeCommand(n.doc,e,t),_IERANGE&&_inArray(e,"justifyleft,justifycenter,justifyright,justifyfull".split(","))>=0&&n.selection(),(!_IERANGE||_inArray(e,"formatblock,selectall,insertorderedlist,insertunorderedlist".split(","))>=0)&&n.selection(),n}})),_each("cut,copy,paste".split(","),(function(t,e){KCmd.prototype[e]=function(){var t=this;if(!t.doc.queryCommandSupported(e))throw"not supported";return t.select(),_nativeCommand(t.doc,e,null),t}})),K.CmdClass=KCmd,K.cmd=_cmd,_extend(KWidget,{init:function(t){var e=this;if(e.name=t.name||"",e.doc=t.doc||document,e.win=_getWin(e.doc),e.x=_addUnit(t.x),e.y=_addUnit(t.y),e.z=t.z,e.width=_addUnit(t.width),e.height=_addUnit(t.height),e.div=K('<div style="display:block;"></div>'),e.options=t,e._alignEl=t.alignEl,e.width&&e.div.css("width",e.width),e.height&&e.div.css("height",e.height),e.z&&e.div.css({position:"absolute",left:e.x,top:e.y,"z-index":e.z}),!e.z||e.x!==undefined&&e.y!==undefined||e.autoPos(e.width,e.height),t.cls&&e.div.addClass(t.cls),t.shadowMode&&e.div.addClass("ke-shadow"),t.css&&e.div.css(t.css),t.src?K(t.src).replaceWith(e.div):K(e.doc.body).append(e.div),t.html&&e.div.html(t.html),t.autoScroll)if(_IE&&_V<7||_QUIRKS){var n=_getScrollPos();K(e.win).bind("scroll",(function(t){var i=_getScrollPos(),r=i.x-n.x,o=i.y-n.y;e.pos(_removeUnit(e.x)+r,_removeUnit(e.y)+o,!1)}))}else e.div.css("position","fixed")},pos:function(t,e,n){var i=this;return n=_undef(n,!0),null!==t&&(t=t<0?0:_addUnit(t),i.div.css("left",t),n&&(i.x=t)),null!==e&&(e=e<0?0:_addUnit(e),i.div.css("top",e),n&&(i.y=e)),i},autoPos:function(t,e){var n=this,i=_removeUnit(t)||0,r=_removeUnit(e)||0,o=_getScrollPos();if(n._alignEl){var a=K(n._alignEl),s=a.pos(),l=_round(a[0].clientWidth/2-i/2),c=_round(a[0].clientHeight/2-r/2);x=l<0?s.x:s.x+l,y=c<0?s.y:s.y+c}else{var u=_docElement(n.doc);x=_round(o.x+(u.clientWidth-i)/2),y=_round(o.y+(u.clientHeight-r)/2)}return _IE&&_V<7||_QUIRKS||(x-=o.x,y-=o.y),n.pos(x,y)},remove:function(){var t=this;return(_IE&&_V<7||_QUIRKS)&&K(t.win).unbind("scroll"),t.div.remove(),_each(t,(function(e){t[e]=null})),this},show:function(){return this.div.show(),this},hide:function(){return this.div.hide(),this},draggable:function(t){var e=this;return t=t||{},t.moveEl=e.div,t.moveFn=function(t,n,i,r,o,a){(t+=o)<0&&(t=0),(n+=a)<0&&(n=0),e.pos(t,n)},_drag(t),e}}),K.WidgetClass=KWidget,K.widget=_widget;var html,_direction="";(html=document.getElementsByTagName("html"))&&(_direction=html[0].dir),_extend(KEdit,KWidget,{init:function(t){var e=this;KEdit.parent.init.call(e,t),e.srcElement=K(t.srcElement),e.div.addClass("ke-edit"),e.designMode=_undef(t.designMode,!0),e.beforeGetHtml=t.beforeGetHtml,e.beforeSetHtml=t.beforeSetHtml,e.afterSetHtml=t.afterSetHtml;var n=_undef(t.themesPath,""),i=t.bodyClass,r=t.cssPath,o=t.cssData,a="res:"!=location.protocol&&location.host.replace(/:\d+/,"")!==document.domain,s="document.open();"+(a?'document.domain="'+document.domain+'";':"")+"document.close();",l=_IE?' src="javascript:void(function(){'+encodeURIComponent(s)+'}())"':"";function c(){var s=_iframeDoc(e.iframe);s.open(),a&&(s.domain=document.domain),s.write(_getInitHtml(n,i,r,o)),s.close(),e.win=e.iframe[0].contentWindow,e.doc=s;var l=_cmd(s);e.afterChange((function(t){l.selection()})),_WEBKIT&&K(s).click((function(t){"img"===K(t.target).name&&(l.selection(!0),l.range.selectNode(t.target),l.select())})),_IE&&(e._mousedownHandler=function(){var t=l.range.cloneRange();t.shrink(),t.isControl()&&e.blur()},K(document).mousedown(e._mousedownHandler),K(s).keydown((function(t){if(8==t.which){l.selection();var e=l.range;e.isControl()&&(e.collapse(!0),K(e.startContainer.childNodes[e.startOffset]).remove(),t.preventDefault())}}))),e.cmd=l,e.html(_elementVal(e.srcElement)),_IE?(s.body.disabled=!0,s.body.contentEditable=!0,s.body.removeAttribute("disabled")):s.designMode="on",t.afterCreate&&t.afterCreate.call(e)}e.iframe=K('<iframe class="ke-edit-iframe" hidefocus="true" frameborder="0"'+l+"></iframe>").css("width","100%"),e.textarea=K('<textarea class="ke-edit-textarea" hidefocus="true"></textarea>').css("width","100%"),e.tabIndex=isNaN(parseInt(t.tabIndex,10))?e.srcElement.attr("tabindex"):parseInt(t.tabIndex,10),e.iframe.attr("tabindex",e.tabIndex),e.textarea.attr("tabindex",e.tabIndex),e.width&&e.setWidth(e.width),e.height&&e.setHeight(e.height),e.designMode?e.textarea.hide():e.iframe.hide(),a&&e.iframe.bind("load",(function(t){e.iframe.unbind("load"),_IE?c():setTimeout(c,0)})),e.div.append(e.iframe),e.div.append(e.textarea),e.srcElement.hide(),!a&&c()},setWidth:function(t){var e=this;return t=_addUnit(t),e.width=t,e.div.css("width",t),e},setHeight:function(t){var e=this;return t=_addUnit(t),e.height=t,e.div.css("height",t),e.iframe.css("height",t),(_IE&&_V<8||_QUIRKS)&&(t=_addUnit(_removeUnit(t)-2)),e.textarea.css("height",t),e},remove:function(){var t=this,e=t.doc;K(e.body).unbind(),K(e).unbind(),K(t.win).unbind(),t._mousedownHandler&&K(document).unbind("mousedown",t._mousedownHandler),_elementVal(t.srcElement,t.html()),t.srcElement.show(),t.iframe.unbind(),t.textarea.unbind(),KEdit.parent.remove.call(t)},html:function(t,e){var n=this,i=n.doc;if(n.designMode){var r=i.body;return t===undefined?(t=e?"<!doctype html><html>"+r.parentNode.innerHTML+"</html>":r.innerHTML,n.beforeGetHtml&&(t=n.beforeGetHtml(t)),_GECKO&&"<br />"==t&&(t=""),t):(n.beforeSetHtml&&(t=n.beforeSetHtml(t)),_IE&&_V>=9&&(t=t.replace(/(<.*?checked=")checked(".*>)/gi,"$1$2")),K(r).html(t),n.afterSetHtml&&n.afterSetHtml(),n)}return t===undefined?n.textarea.val():(n.textarea.val(t),n)},design:function(t){var e,n=this;if(t===undefined?!n.designMode:t){if(!n.designMode){e=n.html(),n.designMode=!0,n.textarea.hide(),n.html(e);var i=n.iframe,r=_removeUnit(n.height);i.height(r-2),i.show(),setTimeout((function(){i.height(r)}),0)}}else n.designMode&&(e=n.html(),n.designMode=!1,n.html(e),n.iframe.hide(),n.textarea.show());return n.focus()},focus:function(){var t=this;return t.designMode?t.win.focus():t.textarea[0].focus(),t},blur:function(){var t=this;if(_IE){var e=K('<input type="text" style="float:left;width:0;height:0;padding:0;margin:0;border:0;" value="" />',t.div);t.div.append(e),e[0].focus(),e.remove()}else t.designMode?t.win.blur():t.textarea[0].blur();return t},afterChange:function(t){var e=this,n=e.doc,i=n.body;function r(e){setTimeout((function(){t(e)}),1)}return K(n).keyup((function(e){e.ctrlKey||e.altKey||!_CHANGE_KEY_MAP[e.which]||t(e)})),K(n).mouseup(t).contextmenu(t),K(e.win).blur(t),K(i).bind("paste",r),K(i).bind("cut",r),e}}),K.EditClass=KEdit,K.edit=_edit,K.iframeDoc=_iframeDoc,_extend(KToolbar,KWidget,{init:function(t){var e=this;function n(t){var e=K(t);return e.hasClass("ke-outline")?e:e.hasClass("ke-toolbar-icon")?e.parent():void 0}function i(t,e){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;if(i.hasClass("ke-selected"))return;i[e]("ke-on")}}KToolbar.parent.init.call(e,t),e.disableMode=_undef(t.disableMode,!1),e.noDisableItemMap=_toMap(_undef(t.noDisableItems,[])),e._itemMap={},e.div.addClass("ke-toolbar").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()})).attr("unselectable","on"),e.div.mouseover((function(t){i(t,"addClass")})).mouseout((function(t){i(t,"removeClass")})).click((function(t){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;e.options.click.call(this,t,i.attr("data-name"))}}))},get:function(t){return this._itemMap[t]?this._itemMap[t]:this._itemMap[t]=K("span.ke-icon-"+t,this.div).parent()},select:function(t){return _selectToolbar.call(this,t,(function(t){t.addClass("ke-selected")})),self},unselect:function(t){return _selectToolbar.call(this,t,(function(t){t.removeClass("ke-selected").removeClass("ke-on")})),self},enable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-disabled"),n.opacity(1)),e},disable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-selected").addClass("ke-disabled"),n.opacity(.5)),e},disableAll:function(t,e){var n=this,i=n.noDisableItemMap;return e&&(i=_toMap(e)),(t===undefined?!n.disableMode:t)?(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.disable(t)})),n.disableMode=!0):(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.enable(t)})),n.disableMode=!1),n}}),K.ToolbarClass=KToolbar,K.toolbar=_toolbar,_extend(KMenu,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KMenu.parent.init.call(e,t),e.centerLineMode=_undef(t.centerLineMode,!0),e.div.addClass("ke-menu").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on")},addItem:function(t){var e=this;if("-"!==t.title){var n,i=K('<div class="ke-menu-item" unselectable="on"></div>'),r=K('<div class="ke-inline-block ke-menu-item-left"></div>'),o=K('<div class="ke-inline-block ke-menu-item-right"></div>'),a=_addUnit(t.height),s=_undef(t.iconClass,"");return e.div.append(i),a&&(i.css("height",a),o.css("line-height",a)),e.centerLineMode&&(n=K('<div class="ke-inline-block ke-menu-item-center"></div>'),a&&n.css("height",a)),i.mouseover((function(t){K(this).addClass("ke-menu-item-on"),n&&n.addClass("ke-menu-item-center-on")})).mouseout((function(t){K(this).removeClass("ke-menu-item-on"),n&&n.removeClass("ke-menu-item-center-on")})).click((function(e){t.click.call(K(this)),e.stopPropagation()})).append(r),n&&i.append(n),i.append(o),t.checked&&(s="ke-icon-checked"),""!==s&&r.html('<span class="ke-inline-block ke-toolbar-icon ke-toolbar-icon-url '+s+'"></span>'),o.html(t.title),e}e.div.append(K('<div class="ke-menu-separator"></div>'))},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),K(".ke-menu-item",t.div[0]).unbind(),KMenu.parent.remove.call(t),t}}),K.MenuClass=KMenu,K.menu=_menu,_extend(KColorPicker,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KColorPicker.parent.init.call(e,t);var n=t.colors||[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]];e.selectedColor=(t.selectedColor||"").toLowerCase(),e._cells=[],e.div.addClass("ke-colorpicker").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on");var i=e.doc.createElement("table");e.div.append(i),i.className="ke-colorpicker-table",i.cellPadding=0,i.cellSpacing=0,i.border=0;var r=i.insertRow(0),o=r.insertCell(0);o.colSpan=n[0].length,e._addAttr(o,"","ke-colorpicker-cell-top");for(var a=0;a<n.length;a++){r=i.insertRow(a+1);for(var s=0;s<n[a].length;s++)o=r.insertCell(s),e._addAttr(o,n[a][s],"ke-colorpicker-cell")}},_addAttr:function(t,e,n){var i=this;t=K(t).addClass(n),i.selectedColor===e.toLowerCase()&&t.addClass("ke-colorpicker-cell-selected"),t.attr("title",e||i.options.noColor),t.mouseover((function(t){K(this).addClass("ke-colorpicker-cell-on")})),t.mouseout((function(t){K(this).removeClass("ke-colorpicker-cell-on")})),t.click((function(t){t.stop(),i.options.click.call(K(this),e)})),e?t.append(K('<div class="ke-colorpicker-cell-color" unselectable="on"></div>').css("background-color",e)):t.html(i.options.noColor),K(t).attr("unselectable","on"),i._cells.push(t)},remove:function(){var t=this;return _each(t._cells,(function(){this.unbind()})),KColorPicker.parent.remove.call(t),t}}),K.ColorPickerClass=KColorPicker,K.colorpicker=_colorpicker,_extend(KUploadButton,{init:function(t){var e=this,n=K(t.button),i=t.fieldName||"file",r=t.url||"",o=n.val(),a=t.extraParams||{},s=n[0].className||"",l=t.target||"kindeditor_upload_iframe_"+(new Date).getTime();t.afterError=t.afterError||function(t){alert(t)};var c=[];for(var u in a)c.push('<input type="hidden" name="'+u+'" value="'+a[u]+'" />');var d=['<div class="ke-inline-block '+s+'">',t.target?"":'<iframe name="'+l+'" style="display:none;"></iframe>',t.form?'<div class="ke-upload-area">':'<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+l+'" action="'+r+'">','<span class="ke-button-common">',c.join(""),'<input type="button" class="ke-button-common ke-button" value="'+o+'" />',"</span>",'<input type="file" class="ke-upload-file" name="'+i+'" tabindex="-1" />',t.form?"</div>":"</form>","</div>"].join(""),h=K(d,n.doc);n.hide(),n.before(h),e.div=h,e.button=n,e.iframe=t.target?K('iframe[name="'+l+'"]'):K("iframe",h),e.form=t.form?K(t.form):K("form",h),e.fileBox=K(".ke-upload-file",h);var p=t.width||K(".ke-button-common",h).width();K(".ke-upload-area",h).width(p),e.options=t},submit:function(){var t=this,e=t.iframe;return e.bind("load",(function(){e.unbind();var n=document.createElement("form");t.fileBox.before(n),K(n).append(t.fileBox),n.reset(),K(n).remove(!0);var i,r=K.iframeDoc(e),o=r.getElementsByTagName("pre")[0],a="";a=o?o.innerHTML:r.body.innerHTML,a=_unescape(a),e[0].src="javascript:false";try{i=K.json(a)}catch(s){t.options.afterError.call(t,"<!doctype html><html>"+r.body.parentNode.innerHTML+"</html>")}i&&t.options.afterUpload.call(t,i)})),t.form[0].submit(),t},remove:function(){var t=this;return t.fileBox&&t.fileBox.unbind(),t.iframe.remove(),t.div.remove(),t.button.show(),t}}),K.UploadButtonClass=KUploadButton,K.uploadbutton=_uploadbutton,_extend(KDialog,KWidget,{init:function(t){var e=this,n=_undef(t.shadowMode,!0);t.z=t.z||811213,t.shadowMode=!1,t.autoScroll=_undef(t.autoScroll,!0),KDialog.parent.init.call(e,t);var i=t.title,r=K(t.body,e.doc),o=t.previewBtn,a=t.yesBtn,s=t.noBtn,l=t.closeBtn,c=_undef(t.showMask,!0);e.div.addClass("ke-dialog").bind("click,mousedown",(function(t){t.stopPropagation()}));var u=K('<div class="ke-dialog-content"></div>').appendTo(e.div);_IE&&_V<7?e.iframeMask=K('<iframe src="about:blank" class="ke-dialog-shadow"></iframe>').appendTo(e.div):n&&K('<div class="ke-dialog-shadow"></div>').appendTo(e.div);var d=K('<div class="ke-dialog-header"></div>');u.append(d),d.html(i),e.closeIcon=K('<span class="ke-dialog-icon-close" title="'+l.name+'"></span>').click(l.click),d.append(e.closeIcon),e.draggable({clickEl:d,beforeDrag:t.beforeDrag});var h=K('<div class="ke-dialog-body"></div>');u.append(h),h.append(r);var p=K('<div class="ke-dialog-footer"></div>');if((o||a||s)&&u.append(p),_each([{btn:o,name:"preview"},{btn:a,name:"yes"},{btn:s,name:"no"}],(function(){if(this.btn){var t=_createButton(this.btn);t.addClass("ke-dialog-"+this.name),p.append(t)}})),e.height&&h.height(_removeUnit(e.height)-d.height()-p.height()),e.div.width(e.div.width()),e.div.height(e.div.height()),e.mask=null,c){var f=_docElement(e.doc),m=Math.max(f.scrollWidth,f.clientWidth),g=Math.max(f.scrollHeight,f.clientHeight);e.mask=_widget({x:0,y:0,z:e.z-1,cls:"ke-dialog-mask",width:m,height:g})}e.autoPos(e.div.width(),e.div.height()),e.footerDiv=p,e.bodyDiv=h,e.headerDiv=d,e.isLoading=!1},setMaskIndex:function(t){var e=this;e.mask.div.css("z-index",t)},showLoading:function(t){t=_undef(t,"");var e=this,n=e.bodyDiv;return e.loading=K('<div class="ke-dialog-loading"><div class="ke-inline-block ke-dialog-loading-content" style="margin-top:'+Math.round(n.height()/3)+'px;">'+t+"</div></div>").width(n.width()).height(n.height()).css("top",e.headerDiv.height()+"px"),n.css("visibility","hidden").after(e.loading),e.isLoading=!0,e},hideLoading:function(){return this.loading&&this.loading.remove(),this.bodyDiv.css("visibility","visible"),this.isLoading=!1,this},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),t.mask&&t.mask.remove(),t.iframeMask&&t.iframeMask.remove(),t.closeIcon.unbind(),K("input",t.div).unbind(),K("button",t.div).unbind(),t.footerDiv.unbind(),t.bodyDiv.unbind(),t.headerDiv.unbind(),K("iframe",t.div).each((function(){K(this).remove()})),KDialog.parent.remove.call(t),t}}),K.DialogClass=KDialog,K.dialog=_dialog,K.tabs=_tabs,K.loadScript=_loadScript,K.loadStyle=_loadStyle,K.ajax=_ajax;var _plugins={},_language={};KEditor.prototype={lang:function(t){return _lang(t,this.langType)},loadPlugin:function(t,e){var n=this,i=this._pluginStatus;return i||(i=this._pluginStatus={}),_plugins[t]?_isFunction(_plugins[t])?(i[t]||(_plugins[t].call(n,KindEditor),i[t]="inited"),e&&e.call(n),n):(setTimeout((function(){n.loadPlugin(t,e)}),100),n):(_plugins[t]="loading",_loadScript(n.pluginsPath+t+"/"+t+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){setTimeout((function(){_plugins[t]&&n.loadPlugin(t,e)}),0)})),n)},handler:function(t,e){var n=this;return n._handlers[t]||(n._handlers[t]=[]),_isFunction(e)?(n._handlers[t].push(e),n):(_each(n._handlers[t],(function(){e=this.call(n,e)})),e)},clickToolbar:function(t,e){var n=this,i="clickToolbar"+t;return e===undefined?n._handlers[i]?n.handler(i):(n.loadPlugin(t,(function(){n.handler(i)})),n):n.handler(i,e)},updateState:function(){var t=this;return _each("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","),(function(e,n){t.cmd.state(n)?t.toolbar.select(n):t.toolbar.unselect(n)})),t},addContextmenu:function(t){return this._contextmenus.push(t),this},afterCreate:function(t){return this.handler("afterCreate",t)},beforeRemove:function(t){return this.handler("beforeRemove",t)},beforeGetHtml:function(t){return this.handler("beforeGetHtml",t)},beforeSetHtml:function(t){return this.handler("beforeSetHtml",t)},afterSetHtml:function(t){return this.handler("afterSetHtml",t)},create:function(){var t=this,e=t.fullscreenMode;if(t.isCreated)return t;if(t.srcElement.data("kindeditor"))return t;t.srcElement.data("kindeditor","true"),_docElement().style.overflow=e?"hidden":"";var n=e?_docElement().clientWidth+"px":t.width,i=e?_docElement().clientHeight+"px":t.height;(_IE&&_V<8||_QUIRKS)&&(i=_addUnit(_removeUnit(i)+2));var r=t.container=K(t.layout);e?K(document.body).append(r):t.srcElement.before(r);var o=K(".toolbar",r),a=K(".edit",r),s=t.statusbar=K(".statusbar",r);r.removeClass("container").addClass("ke-container ke-container-"+t.themeType).css("width",n),e?(r.css({position:"absolute",left:0,top:0,"z-index":811211}),_GECKO||(t._scrollPos=_getScrollPos()),window.scrollTo(0,0),K(document.body).css({height:"1px",overflow:"hidden"}),K(document.body.parentNode).css("overflow","hidden"),t._fullscreenExecuted=!0):(t._fullscreenExecuted&&(K(document.body).css({height:"",overflow:""}),K(document.body.parentNode).css("overflow","")),t._scrollPos&&window.scrollTo(t._scrollPos.x,t._scrollPos.y));var l=[];K.each(t.items,(function(e,n){"|"==n?l.push('<span class="ke-inline-block ke-separator"></span>'):"/"==n?l.push('<div class="ke-hr"></div>'):(l.push('<span class="ke-outline" data-name="'+n+'" title="'+t.lang(n)+'" unselectable="on">'),l.push('<span class="ke-toolbar-icon ke-toolbar-icon-url ke-icon-'+n+'" unselectable="on"></span></span>'))}));var c=t.toolbar=_toolbar({src:o,html:l.join(""),noDisableItems:t.noDisableItems,click:function(e,n){if(e.stop(),t.menu){var i=t.menu.name;if(t.hideMenu(),i===n)return}t.clickToolbar(n)}}),u=_removeUnit(i)-c.div.height(),d=t.edit=_edit({height:u>0&&_removeUnit(i)>t.minHeight?u:t.minHeight,src:a,srcElement:t.srcElement,designMode:t.designMode,themesPath:t.themesPath,bodyClass:t.bodyClass,cssPath:t.cssPath,cssData:t.cssData,beforeGetHtml:function(e){return e=t.beforeGetHtml(e),e=_removeBookmarkTag(_removeTempTag(e)),_formatHtml(e,t.filterMode?t.htmlTags:null,t.urlType,t.wellFormatMode,t.indentChar)},beforeSetHtml:function(e){return e=_formatHtml(e,t.filterMode?t.htmlTags:null,"",!1),t.beforeSetHtml(e)},afterSetHtml:function(){t.edit=d=this,t.afterSetHtml()},afterCreate:function(){if(t.edit=d=this,t.cmd=d.cmd,t._docMousedownFn=function(e){t.menu&&t.hideMenu()},K(d.doc,document).mousedown(t._docMousedownFn),_bindContextmenuEvent.call(t),_bindNewlineEvent.call(t),_bindTabEvent.call(t),_bindFocusEvent.call(t),d.afterChange((function(e){d.designMode&&(t.updateState(),t.addBookmark(),t.options.afterChange&&t.options.afterChange.call(t))})),d.textarea.keyup((function(e){e.ctrlKey||e.altKey||!_INPUT_KEY_MAP[e.which]||t.options.afterChange&&t.options.afterChange.call(t)})),t.readonlyMode&&t.readonly(),t.isCreated=!0,""===t.initContent&&(t.initContent=t.html()),t._undoStack.length>0){var e=t._undoStack.pop();e.start&&(t.html(e.html),d.cmd.range.moveToBookmark(e),t.select())}t.afterCreate(),t.options.afterCreate&&t.options.afterCreate.call(t)}});function h(){0!==s.height()?t.resize(n,i,!1):setTimeout(h,100)}return s.removeClass("statusbar").addClass("ke-statusbar").append('<span class="ke-inline-block ke-statusbar-center-icon"></span>').append('<span class="ke-inline-block ke-statusbar-right-icon"></span>'),t._fullscreenResizeHandler&&(K(window).unbind("resize",t._fullscreenResizeHandler),t._fullscreenResizeHandler=null),h(),e?(t._fullscreenResizeHandler=function(e){t.isCreated&&t.resize(_docElement().clientWidth,_docElement().clientHeight,!1)},K(window).bind("resize",t._fullscreenResizeHandler),c.select("fullscreen"),s.first().css("visibility","hidden"),s.last().css("visibility","hidden")):(_GECKO&&K(window).bind("scroll",(function(e){t._scrollPos=_getScrollPos()})),t.resizeType>0?_drag({moveEl:r,clickEl:s,moveFn:function(e,n,i,r,o,a){r+=a,t.resize(null,r)}}):s.first().css("visibility","hidden"),2===t.resizeType?_drag({moveEl:r,clickEl:s.last(),moveFn:function(e,n,i,r,o,a){i+=o,r+=a,t.resize(i,r)}}):s.last().css("visibility","hidden")),t},remove:function(){var t=this;return t.isCreated?(t.beforeRemove(),t.srcElement.data("kindeditor",""),t.menu&&t.hideMenu(),_each(t.dialogs,(function(){t.hideDialog()})),K(document).unbind("mousedown",t._docMousedownFn),t.toolbar.remove(),t.edit.remove(),t.statusbar.last().unbind(),t.statusbar.unbind(),t.container.remove(),t.container=t.toolbar=t.edit=t.menu=null,t.dialogs=[],t.isCreated=!1,t):t},resize:function(t,e,n){var i=this;return n=_undef(n,!0),t&&(/%/.test(t)||(t=_removeUnit(t),t=t<i.minWidth?i.minWidth:t),i.container.css("width",_addUnit(t)),n&&(i.width=_addUnit(t))),e&&(e=_removeUnit(e),editHeight=_removeUnit(e)-i.toolbar.div.height()-i.statusbar.height(),editHeight=editHeight<i.minHeight?i.minHeight:editHeight,i.edit.setHeight(editHeight),n&&(i.height=_addUnit(e))),i},select:function(){return this.isCreated&&this.cmd.select(),this},html:function(t){var e=this;return t===undefined?e.isCreated?e.edit.html():_elementVal(e.srcElement):(e.isCreated?e.edit.html(t):_elementVal(e.srcElement,t),e.isCreated&&e.cmd.selection(),e)},fullHtml:function(){return this.isCreated?this.edit.html(undefined,!0):""},text:function(t){var e=this;return t===undefined?_trim(e.html().replace(/<(?!img|embed).*?>/gi,"").replace(/&nbsp;/gi," ")):e.html(_escape(t))},isEmpty:function(){return""===_trim(this.text().replace(/\r\n|\n|\r/,""))},isDirty:function(){return _trim(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==_trim(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var t=this.isCreated?this.cmd.range.html():"";return t=_removeBookmarkTag(_removeTempTag(t)),t},count:function(t){var e=this;return t=(t||"html").toLowerCase(),"html"===t?e.html().length:"text"===t?e.text().replace(/<(?:img|embed).*?>/gi,"K").replace(/\r\n|\n|\r/g,"").length:0},exec:function(t){t=t.toLowerCase();var e=this,n=e.cmd,i=_inArray(t,"selectall,copy,paste,print".split(","))<0;return i&&e.addBookmark(!1),n[t].apply(n,_toArray(arguments,1)),i&&(e.updateState(),e.addBookmark(!1),e.options.afterChange&&e.options.afterChange.call(e)),e},insertHtml:function(t,e){return this.isCreated?(t=this.beforeSetHtml(t),this.exec("inserthtml",t,e),this):this},appendHtml:function(t){if(this.html(this.html()+t),this.isCreated){var e=this.cmd;e.range.selectNodeContents(e.doc.body).collapse(!1),e.select()}return this},sync:function(){return _elementVal(this.srcElement,this.html()),this},focus:function(){return this.isCreated?this.edit.focus():this.srcElement[0].focus(),this},blur:function(){return this.isCreated?this.edit.blur():this.srcElement[0].blur(),this},addBookmark:function(t){t=_undef(t,!0);var e,n=this,i=n.edit,r=i.doc.body,o=_removeTempTag(r.innerHTML);if(t&&n._undoStack.length>0){var a=n._undoStack[n._undoStack.length-1];if(Math.abs(o.length-_removeBookmarkTag(a.html).length)<n.minChangeSize)return n}if(i.designMode&&!n._firstAddBookmark){var s=n.cmd.range;e=s.createBookmark(!0),e.html=_removeTempTag(r.innerHTML),s.moveToBookmark(e)}else e={html:o};return n._firstAddBookmark=!1,_addBookmarkToStack(n._undoStack,e),n},undo:function(){return _undoToRedo.call(this,this._undoStack,this._redoStack)},redo:function(){return _undoToRedo.call(this,this._redoStack,this._undoStack)},fullscreen:function(t){return this.fullscreenMode=t===undefined?!this.fullscreenMode:t,this.addBookmark(!1),this.remove().create()},readonly:function(t){t=_undef(t,!0);var e=this,n=e.edit,i=n.doc;e.designMode?e.toolbar.disableAll(t,[]):_each(e.noDisableItems,(function(){e.toolbar[t?"disable":"enable"](this)})),_IE?i.body.contentEditable=!t:i.designMode=t?"off":"on",n.textarea[0].disabled=t},createMenu:function(t){var e=this,n=t.name,i=e.toolbar.get(n),r=i.pos();return t.x=r.x,t.y=r.y+i.height(),t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.selectedColor!==undefined?(t.cls="ke-colorpicker-"+e.themeType,t.noColor=e.lang("noColor"),e.menu=_colorpicker(t)):(t.cls="ke-menu-"+e.themeType,t.centerLineMode=!1,e.menu=_menu(t)),e.menu},hideMenu:function(){return this.menu.remove(),this.menu=null,this},hideContextmenu:function(){return this.contextmenu.remove(),this.contextmenu=null,this},createDialog:function(t){var e=this;t.name;if(t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.closeBtn=_undef(t.closeBtn,{name:e.lang("close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),t.noBtn=_undef(t.noBtn,{name:e.lang(t.yesBtn?"no":"close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),"page"!=e.dialogAlignType&&(t.alignEl=e.container),t.cls="ke-dialog-"+e.themeType,e.dialogs.length>0){var n=e.dialogs[0],i=e.dialogs[e.dialogs.length-1];n.setMaskIndex(i.z+2),t.z=i.z+3,t.showMask=!1}var r=_dialog(t);return e.dialogs.push(r),r},hideDialog:function(){var t=this;if(t.dialogs.length>0&&t.dialogs.pop().remove(),t.dialogs.length>0){var e=t.dialogs[0],n=t.dialogs[t.dialogs.length-1];e.setMaskIndex(n.z-1)}return t},errorDialog:function(t){var e=this,n=e.createDialog({width:750,title:e.lang("uploadError"),body:'<div style="padding:10px 20px;"><iframe frameborder="0" style="width:708px;height:400px;"></iframe></div>'}),i=K("iframe",n.div),r=K.iframeDoc(i);return r.open(),r.write(t),r.close(),K(r.body).css("background-color","#FFF"),i[0].contentWindow.focus(),e}},_instances=[],K.remove=function(t){_eachEditor(t,(function(t){this.remove(),_instances.splice(t,1)}))},K.sync=function(t){_eachEditor(t,(function(){this.sync()}))},K.html=function(t,e){_eachEditor(t,(function(){this.html(e)}))},K.insertHtml=function(t,e){_eachEditor(t,(function(){this.insertHtml(e)}))},K.appendHtml=function(t,e){_eachEditor(t,(function(){this.appendHtml(e)}))},_IE&&_V<7&&_nativeCommand(document,"BackgroundImageCache",!0),K.EditorClass=KEditor,K.editor=_editor,K.create=_create,K.instances=_instances,K.plugin=_plugin,K.lang=_lang,_plugin("core",(function(t){var e=this,n={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};if(e.afterSetHtml((function(){e.options.afterChange&&e.options.afterChange.call(e)})),e.afterCreate((function(){if("form"==e.syncType){var n=t(e.srcElement),i=!1;while(n=n.parent())if("form"==n.name){i=!0;break}if(i){n.bind("submit",(function(n){e.sync(),t(window).bind("unload",(function(){e.edit.textarea.remove()}))}));var r=t('[type="reset"]',n);r.click((function(){e.html(e.initContent),e.cmd.selection()})),e.beforeRemove((function(){n.unbind(),r.unbind()}))}}})),e.clickToolbar("source",(function(){e.edit.designMode?(e.toolbar.disableAll(!0),e.edit.design(!1),e.toolbar.select("source")):(e.toolbar.disableAll(!1),e.edit.design(!0),e.toolbar.unselect("source"),_GECKO?setTimeout((function(){e.cmd.selection()}),0):e.cmd.selection()),e.designMode=e.edit.designMode})),e.afterCreate((function(){e.designMode||e.toolbar.disableAll(!0).select("source")})),e.clickToolbar("fullscreen",(function(){e.fullscreen()})),e.fullscreenShortcut){var i=!1;e.afterCreate((function(){if(t(e.edit.doc,e.edit.textarea).keyup((function(t){27==t.which&&setTimeout((function(){e.fullscreen()}),0)})),i){if(_IE&&!e.designMode)return;e.focus()}i||(i=!0)}))}_each("undo,redo".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e[i]()}))})),e.clickToolbar("formatblock",(function(){var t=e.lang("formatblock.formatBlock"),n={h1:28,h2:24,h3:18,H4:14,p:12},i=e.cmd.val("formatblock"),r=e.createMenu({name:"formatblock",width:"en"==e.langType?200:150});_each(t,(function(t,o){var a="font-size:"+n[t]+"px;";"h"===t.charAt(0)&&(a+="font-weight:bold;"),r.addItem({title:'<span style="'+a+'" unselectable="on">'+o+"</span>",height:n[t]+12,checked:i===t||i===o,click:function(){e.select().exec("formatblock","<"+t+">").hideMenu()}})}))})),e.clickToolbar("fontname",(function(){var t=e.cmd.val("fontname"),n=e.createMenu({name:"fontname",width:150});_each(e.lang("fontname.fontName"),(function(i,r){n.addItem({title:'<span style="font-family: '+i+';" unselectable="on">'+r+"</span>",checked:t===i.toLowerCase()||t===r.toLowerCase(),click:function(){e.exec("fontname",i).hideMenu()}})}))})),e.clickToolbar("fontsize",(function(){var t=e.cmd.val("fontsize"),n=e.createMenu({name:"fontsize",width:150});_each(e.fontSizeTable,(function(i,r){n.addItem({title:'<span style="font-size:'+r+';" unselectable="on">'+r+"</span>",height:_removeUnit(r)+12,checked:t===r,click:function(){e.exec("fontsize",r).hideMenu()}})}))})),_each("forecolor,hilitecolor".split(","),(function(t,n){e.clickToolbar(n,(function(){e.createMenu({name:n,selectedColor:e.cmd.val(n)||"default",colors:e.colorTable,click:function(t){e.exec(n,t).hideMenu()}})}))})),_each("cut,copy,paste".split(","),(function(t,n){e.clickToolbar(n,(function(){e.focus();try{e.exec(n,null)}catch(t){alert(e.lang(n+"Error"))}}))})),e.clickToolbar("about",(function(){var t='<div style="margin:20px;"><div>KindEditor '+_VERSION+'</div><div>Copyright &copy; <a href="http://www.kindsoft.net/" target="_blank">kindsoft.net</a> All rights reserved.</div></div>';e.createDialog({name:"about",width:350,title:e.lang("about"),body:t})})),e.plugin.getSelectedLink=function(){return e.cmd.commonAncestor("a")},e.plugin.getSelectedImage=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return!/^ke-\w+$/i.test(t[0].className)}))},e.plugin.getSelectedFlash=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-flash"==t[0].className}))},e.plugin.getSelectedMedia=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-media"==t[0].className||"ke-rm"==t[0].className}))},e.plugin.getSelectedAnchor=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-anchor"==t[0].className}))},_each("link,image,flash,media,anchor".split(","),(function(t,n){var i=n.charAt(0).toUpperCase()+n.substr(1);_each("edit,delete".split(","),(function(t,r){e.addContextmenu({title:e.lang(r+i),click:function(){e.loadPlugin(n,(function(){e.plugin[n][r](),e.hideMenu()}))},cond:e.plugin["getSelected"+i],width:150,iconClass:"edit"==r?"ke-icon-"+n:undefined})})),e.addContextmenu({title:"-"})})),e.plugin.getSelectedTable=function(){return e.cmd.commonAncestor("table")},e.plugin.getSelectedRow=function(){return e.cmd.commonAncestor("tr")},e.plugin.getSelectedCell=function(){return e.cmd.commonAncestor("td")},_each("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","),(function(t,n){var i=_inArray(n,["prop","delete"])<0?e.plugin.getSelectedCell:e.plugin.getSelectedTable;e.addContextmenu({title:e.lang("table"+n),click:function(){e.loadPlugin("table",(function(){e.plugin.table[n](),e.hideMenu()}))},cond:i,width:170,iconClass:"ke-icon-table"+n})})),e.addContextmenu({title:"-"}),_each("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.cmd.selection(),e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e.focus().exec(i,null)}))})),e.afterCreate((function(){var n,i,r,o=e.edit.doc,a="__kindeditor_paste__",s=!1;function l(){n.range.moveToBookmark(i),n.select(),_WEBKIT&&(t("div."+a,r).each((function(){t(this).after("<br />").remove(!0)})),t("span.Apple-style-span",r).remove(!0),t("span.Apple-tab-span",r).remove(!0),t("span[style]",r).each((function(){"nowrap"==t(this).css("white-space")&&t(this).remove(!0)})),t("meta",r).remove());var o=r[0].innerHTML;r.remove(),""!==o&&(_WEBKIT&&(o=o.replace(/(<br>)\1/gi,"$1")),2===e.pasteType&&(o=o.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(o)?o=_clearMsWord(o,e.filterMode?e.htmlTags:t.options.htmlTags):(o=_formatHtml(o,e.filterMode?e.htmlTags:null),o=e.beforeSetHtml(o))),1===e.pasteType&&(o=o.replace(/&nbsp;/gi," "),o=o.replace(/\n\s*\n/g,"\n"),o=o.replace(/<br[^>]*>/gi,"\n"),o=o.replace(/<\/p><p[^>]*>/gi,"\n"),o=o.replace(/<[^>]+>/g,""),o=o.replace(/ {2}/g," &nbsp;"),"p"==e.newlineTag?/\n/.test(o)&&(o=o.replace(/^/,"<p>").replace(/$/,"<br /></p>").replace(/\n/g,"<br /></p><p>")):o=o.replace(/\n/g,"<br />$&")),e.insertHtml(o,!0))}t(o.body).bind("paste",(function(c){if(0!==e.pasteType){if(!s){if(s=!0,t("div."+a,o).remove(),n=e.cmd.selection(),i=n.range.createBookmark(),r=t('<div class="'+a+'"></div>',o).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:t(i.start).pos().y+"px","white-space":"nowrap"}),t(o.body).append(r),_IE){var u=n.range.get(!0);u.moveToElementText(r[0]),u.select(),u.execCommand("paste"),c.preventDefault()}else n.range.selectNodeContents(r[0]),n.select(),r[0].tabIndex=-1,r[0].focus();setTimeout((function(){l(),s=!1}),0)}}else c.stop()}))})),e.beforeGetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<div\s+[^>]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e){return unescape(e)})),t=t.replace(/(<input)((?:\s+[^>]*)?>)/gi,(function(t,e,n){return/\s+type="[^"]+"/i.test(t)?t:e+' type="text"'+n}))),t.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/gi,(function(t,e,n,i){return e+_unescape(n).replace(/\s+/g," ")+i})).replace(/<img[^>]*class="?ke-(flash|rm|media)"?[^>]*>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||""),i=_mediaAttrs(e["data-ke-tag"]),r=_undef(n.width,""),o=_undef(n.height,"");return/px/i.test(r)&&(r=_removeUnit(r)),/px/i.test(o)&&(o=_removeUnit(o)),i.width=_undef(e.width,r),i.height=_undef(e.height,o),_mediaEmbed(i)})).replace(/<img[^>]*class="?ke-anchor"?[^>]*>/gi,(function(t){var e=_getAttrList(t);return'<a name="'+unescape(e["data-ke-name"])+'"></a>'})).replace(/<div\s+[^>]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<script"+unescape(e)+">"+unescape(n)+"<\/script>"})).replace(/<div\s+[^>]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<noscript"+unescape(e)+">"+unescape(n)+"</noscript>"})).replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/gi,(function(t,e,n,i){return t=t.replace(/(\s+(?:href|src)=")[^"]*(")/i,(function(t,e,i){return e+_unescape(n)+i})),t=t.replace(/\s+data-ke-src="[^"]*"/i,""),t})).replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+n}))})),e.beforeSetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<input[^>]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||"");return"none"==n.display?'<div class="ke-display-none" data-ke-input-tag="'+escape(t)+'"></div>':t}))),t.replace(/<embed[^>]*type="([^"]+)"[^>]*>(?:<\/embed>)?/gi,(function(t){var n=_getAttrList(t);return n.src=_undef(n.src,""),n.width=_undef(n.width,0),n.height=_undef(n.height,0),_mediaImg(e.themesPath+"common/blank.gif",n)})).replace(/<a[^>]*name="([^"]+)"[^>]*>(?:<\/a>)?/gi,(function(t){var n=_getAttrList(t);return n.href!==undefined?t:'<img class="ke-anchor" src="'+e.themesPath+'common/anchor.gif" data-ke-name="'+escape(n.name)+'" />'})).replace(/<script([^>]*)>([\s\S]*?)<\/script>/gi,(function(t,e,n){return'<div class="ke-script" data-ke-script-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/<noscript([^>]*)>([\s\S]*?)<\/noscript>/gi,(function(t,e,n){return'<div class="ke-noscript" data-ke-noscript-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/gi,(function(t,e,n,i,r){return t.match(/\sdata-ke-src="[^"]*"/i)||(t=e+n+'="'+i+'" data-ke-src="'+_escape(i)+'"'+r),t})).replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+"data-ke-"+n})).replace(/<table[^>]*\s+border="0"[^>]*>/gi,(function(t){return t.indexOf("ke-zeroborder")>=0?t:_addClassToTag(t,"ke-zeroborder")}))}))}))}function _isArray(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function _isFunction(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)}function _inArray(t,e){for(var n=0,i=e.length;n<i;n++)if(t===e[n])return n;return-1}function _each(t,e){if(_isArray(t)){for(var n=0,i=t.length;n<i;n++)if(!1===e.call(t[n],n,t[n]))break}else for(var r in t)if(t.hasOwnProperty(r)&&!1===e.call(t[r],r,t[r]))break}function _trim(t){return t.replace(/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")}function _inString(t,e,n){return n=n===undefined?",":n,(n+e+n).indexOf(n+t+n)>=0}function _addUnit(t,e){return e=e||"px",t&&/^-?\d+(?:\.\d+)?$/.test(t)?t+e:t}function _removeUnit(t){var e;return t&&(e=/(\d+)/.exec(t))?parseInt(e[1],10):0}function _escape(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function _unescape(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")}function _toCamel(t){var e=t.split("-");return t="",_each(e,(function(e,n){t+=e>0?n.charAt(0).toUpperCase()+n.substr(1):n})),t}function _toHex(t){function e(t){var e=parseInt(t,10).toString(16).toUpperCase();return e.length>1?e:"0"+e}return t.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,(function(t,n,i,r){return"#"+e(n)+e(i)+e(r)}))}function _toMap(t,e){e=e===undefined?",":e;var n,i={},r=_isArray(t)?t:t.split(e);return _each(r,(function(t,e){if(n=/^(\d+)\.\.(\d+)$/.exec(e))for(var r=parseInt(n[1],10);r<=parseInt(n[2],10);r++)i[r.toString()]=!0;else i[e]=!0})),i}function _toArray(t,e){return Array.prototype.slice.call(t,e||0)}function _undef(t,e){return t===undefined?e:t}function _invalidUrl(t){return!t||/[<>"]/.test(t)}function _addParam(t,e){return t.indexOf("?")>=0?t+"&"+e:t+"?"+e}function _extend(t,e,n){var i;if(n||(n=e,e=null),e){var r=function(){};r.prototype=e.prototype,i=new r,_each(n,(function(t,e){i[t]=e}))}else i=n;i.constructor=t,t.prototype=i,t.parent=e?e.prototype:null}function _json(text){var match;(match=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))&&(text=match[0]);var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+text+")");throw"JSON parse error"}function _getBasePath(){for(var t,e=document.getElementsByTagName("script"),n=0,i=e.length;n<i;n++)if(t=e[n].src||"",/kindeditor[\w\-\.]*\.js/.test(t))return t.substring(0,t.lastIndexOf("/")+1);return""}function _bindEvent(t,e,n){t.addEventListener?t.addEventListener(e,n,_useCapture):t.attachEvent&&t.attachEvent("on"+e,n)}function _unbindEvent(t,e,n){t.removeEventListener?t.removeEventListener(e,n,_useCapture):t.detachEvent&&t.detachEvent("on"+e,n)}function KEvent(t,e){this.init(t,e)}function _getId(t){return t[_eventExpendo]||null}function _setId(t){return t[_eventExpendo]=++_eventId,_eventId}function _removeId(t){try{delete t[_eventExpendo]}catch(e){t.removeAttribute&&t.removeAttribute(_eventExpendo)}}function _bind(t,e,n){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_bind(t,this,n)}));else{var i=_getId(t);i||(i=_setId(t)),_eventData[i]===undefined&&(_eventData[i]={});var r=_eventData[i][e];r&&r.length>0?_unbindEvent(t,e,r[0]):(_eventData[i][e]=[],_eventData[i].el=t),r=_eventData[i][e],0===r.length&&(r[0]=function(e){var n=e?new KEvent(t,e):undefined;_each(r,(function(e,i){e>0&&i&&i.call(t,n)}))}),_inArray(n,r)<0&&r.push(n),_bindEvent(t,e,r[0])}}function _unbind(t,e,n){if(e&&e.indexOf(",")>=0)_each(e.split(","),(function(){_unbind(t,this,n)}));else{var i=_getId(t);if(i)if(e!==undefined){if(_eventData[i]){var r=_eventData[i][e];if(r&&r.length>0){n===undefined?(_unbindEvent(t,e,r[0]),delete _eventData[i][e]):(_each(r,(function(t,e){t>0&&e===n&&r.splice(t,1)})),1==r.length&&(_unbindEvent(t,e,r[0]),delete _eventData[i][e]));var o=0;_each(_eventData[i],(function(){o++})),o<2&&(delete _eventData[i],_removeId(t))}}}else i in _eventData&&(_each(_eventData[i],(function(e,n){"el"!=e&&n.length>0&&_unbindEvent(t,e,n[0])})),delete _eventData[i],_removeId(t))}}function _fire(t,e){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_fire(t,this)}));else{var n=_getId(t);if(n){var i=_eventData[n][e];_eventData[n]&&i&&i.length>0&&i[0]()}}}function _ctrl(t,e,n){e=/^\d{2,}$/.test(e)?e:e.toUpperCase().charCodeAt(0),_bind(t,"keydown",(function(i){!i.ctrlKey||i.which!=e||i.shiftKey||i.altKey||(n.call(t),i.stop())}))}function _ready(t){if(_readyFinished)t(KindEditor);else{var e=!1;if(document.addEventListener)_bind(document,"DOMContentLoaded",i);else if(document.attachEvent){_bind(document,"readystatechange",o);var n=!1;try{n=null==window.frameElement}catch(a){}document.documentElement.doScroll&&n&&r()}_bind(window,"load",i)}function i(){e||(e=!0,t(KindEditor),_readyFinished=!0)}function r(){if(!e){try{document.documentElement.doScroll("left")}catch(a){return void setTimeout(r,100)}i()}}function o(){"complete"===document.readyState&&i()}}function _getCssList(t){var e,n={},i=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;while(e=i.exec(t)){var r=_trim(e[1].toLowerCase()),o=_trim(_toHex(e[2]));n[r]=o}return n}function _getAttrList(t){var e,n={},i=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;while(e=i.exec(t)){var r=(e[1]||e[2]||e[4]||e[6]).toLowerCase(),o=(e[2]?e[3]:e[4]?e[5]:e[7])||"";n[r]=o}return n}function _addClassToTag(t,e){return t=/\s+class\s*=/.test(t)?t.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,(function(t,n,i,r){return(" "+i+" ").indexOf(" "+e+" ")<0?""===i?n+e+r:n+i+" "+e+r:t})):t.substr(0,t.length-1)+' class="'+e+'">',t}function _formatCss(t){var e="";return _each(_getCssList(t),(function(t,n){e+=t+":"+n+";"})),e}function _formatUrl(t,e,n,i){if(e=_undef(e,"").toLowerCase(),"data:"!=t.substr(0,5)&&(t=t.replace(/([^:])\/\//g,"$1/")),_inArray(e,["absolute","relative","domain"])<0)return t;if(n=n||location.protocol+"//"+location.host,i===undefined){var r=location.pathname.match(/^(\/.*)\//);i=r?r[1]:""}var o;if(o=/^(\w+:\/\/[^\/]*)/.exec(t)){if(o[1]!==n)return t}else if(/^\w+:/.test(t))return t;function a(t){for(var e=t.split("/"),n=[],i=0,r=e.length;i<r;i++){var o=e[i];".."==o?n.length>0&&n.pop():""!==o&&"."!=o&&n.push(o)}return"/"+n.join("/")}function s(e,n){if(t.substr(0,e.length)===e){for(var r=[],a=0;a<n;a++)r.push("..");var l=".";return r.length>0&&(l+="/"+r.join("/")),"/"==i&&(l+="/"),l+t.substr(e.length)}if(o=/^(.*)\//.exec(e))return s(o[1],++n)}return/^\//.test(t)?t=n+a(t.substr(1)):/^\w+:\/\//.test(t)||(t=n+a(i+"/"+t)),"relative"===e?t=s(n+i,0).substr(2):"absolute"===e&&t.substr(0,n.length)===n&&(t=t.substr(n.length)),t}function _formatHtml(t,e,n,i,r){null==t&&(t=""),n=n||"",i=_undef(i,!1),r=_undef(r,"\t");var o="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+i})),t=t.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,"</p>"),t=t.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1<br />$2"),t=t.replace(/\u200B/g,""),t=t.replace(/\u00A9/g,"&copy;"),t=t.replace(/\u00AE/g,"&reg;"),t=t.replace(/\u2003/g,"&emsp;"),t=t.replace(/\u3000/g,"&emsp;"),t=t.replace(/<[^>]+/g,(function(t){return t.replace(/\s+/g," ")}));var a={};e&&(_each(e,(function(t,e){for(var n=t.split(","),i=0,r=n.length;i<r;i++)a[n[i]]=_toMap(e)})),a.script||(t=t.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"")),a.style||(t=t.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var s=/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g,l=[];return t=t.replace(s,(function(t,s,c,u,d,h,p){var f=t,m=s||"",g=c||"",v=u.toLowerCase(),b=d||"",_=h?" "+h:"",y=p||"";if(e&&!a[v])return"";if(""===_&&_SINGLE_TAG_MAP[v]&&(_=" /"),_INLINE_TAG_MAP[v]&&(m&&(m=" "),y&&(y=" ")),_PRE_TAG_MAP[v]&&(g?y="\n":m="\n"),i&&"br"==v&&(y="\n"),_BLOCK_TAG_MAP[v]&&!_PRE_TAG_MAP[v])if(i){g&&l.length>0&&l[l.length-1]===v?l.pop():l.push(v),m="\n",y="\n";for(var w=0,x=g?l.length:l.length-1;w<x;w++)m+=r,g||(y+=r);_?l.pop():g||(y+=r)}else m=y="";if(""!==b){var k=_getAttrList(f);if("font"===v){var S={},D="";_each(k,(function(t,e){"color"===t&&(S.color=e,delete k[t]),"size"===t&&(S["font-size"]=o[parseInt(e,10)-1]||"",delete k[t]),"face"===t&&(S["font-family"]=e,delete k[t]),"style"===t&&(D=e)})),D&&!/;$/.test(D)&&(D+=";"),_each(S,(function(t,e){""!==e&&(/\s/.test(e)&&(e="'"+e+"'"),D+=t+":"+e+";")})),k.style=D}_each(k,(function(t,i){if(_FILL_ATTR_MAP[t]&&(k[t]=t),_inArray(t,["src","href"])>=0&&(k[t]=_formatUrl(i,n)),(e&&"style"!==t&&!a[v]["*"]&&!a[v][t]||"body"===v&&"contenteditable"===t||/^kindeditor_\d+$/.test(t))&&delete k[t],"style"===t&&""!==i){var r=_getCssList(i);_each(r,(function(t,n){!e||a[v].style||a[v]["."+t]||delete r[t]}));var o="";_each(r,(function(t,e){o+=t+":"+e+";"})),k.style=o}})),b="",_each(k,(function(t,e){"style"===t&&""===e||(e=e.replace(/"/g,"&quot;"),b+=" "+t+'="'+e+'"')}))}return"font"===v&&(v="span"),m+"<"+g+v+b+_+">"+y})),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/\n/g,'<span id="__kindeditor_pre_newline__">\n')+i})),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/<span id="__kindeditor_pre_newline__">\n/g,"\n"),_trim(t)}function _clearMsWord(t,e){return t=t.replace(/<meta[\s\S]*?>/gi,"").replace(/<![\s\S]*?>/gi,"").replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<w:[^>]+>[\s\S]*?<\/w:[^>]+>/gi,"").replace(/<o:[^>]+>[\s\S]*?<\/o:[^>]+>/gi,"").replace(/<xml>[\s\S]*?<\/xml>/gi,"").replace(/<(?:table|td)[^>]*>/gi,(function(t){return t.replace(/border-bottom:([#\w\s]+)/gi,"border:$1")})),_formatHtml(t,e)}function _mediaType(t){return/\.(rm|rmvb)(\?|$)/i.test(t)?"audio/x-pn-realaudio-plugin":/\.(swf|flv)(\?|$)/i.test(t)?"application/x-shockwave-flash":"video/x-ms-asf-plugin"}function _mediaClass(t){return/realaudio/i.test(t)?"ke-rm":/flash/i.test(t)?"ke-flash":"ke-media"}function _mediaAttrs(t){return _getAttrList(unescape(t))}function _mediaEmbed(t){var e="<embed ";return _each(t,(function(t,n){e+=t+'="'+n+'" '})),e+="/>",e}function _mediaImg(t,e){var n=e.width,i=e.height,r=e.type||_mediaType(e.src),o=_mediaEmbed(e),a="";/\D/.test(n)?a+="width:"+n+";":n>0&&(a+="width:"+n+"px;"),/\D/.test(i)?a+="height:"+i+";":i>0&&(a+="height:"+i+"px;");var s='<img class="'+_mediaClass(r)+'" src="'+t+'" ';return""!==a&&(s+='style="'+a+'" '),s+='data-ke-tag="'+escape(o)+'" alt="" />',s}function _tmpl(t,e){var n=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return e?n(e):n}function _contains(t,e){if(9==t.nodeType&&9!=e.nodeType)return!0;while(e=e.parentNode)if(e==t)return!0;return!1}function _getAttr(t,e){e=e.toLowerCase();var n=null;if(_GET_SET_ATTRIBUTE||"script"==t.nodeName.toLowerCase())try{n=t.getAttribute(e,2)}catch(o){n=t.getAttribute(e,1)}else{var i=t.ownerDocument.createElement("div");i.appendChild(t.cloneNode(!1));var r=_getAttrList(_unescape(i.innerHTML));e in r&&(n=r[e])}return"style"===e&&null!==n&&(n=_formatCss(n)),n}function _queryAll(t,e){var n=t.split(",");if(n.length>1){var i=[];return _each(n,(function(){_each(_queryAll(this,e),(function(){_inArray(this,i)<0&&i.push(this)}))})),i}function r(t){return"string"!=typeof t?t:t.replace(/([^\w\-])/g,"\\$1")}function o(t){return t.replace(/\\/g,"")}function a(t,e){return"*"===t||t.toLowerCase()===r(e.toLowerCase())}function s(t,e,n){var i=[],r=n.ownerDocument||n,s=r.getElementById(o(t));return s&&a(e,s.nodeName)&&_contains(n,s)&&i.push(s),i}function l(t,e,n){var i,r,s,l,c=n.ownerDocument||n,u=[];if(n.getElementsByClassName)for(i=n.getElementsByClassName(o(t)),r=0,s=i.length;r<s;r++)l=i[r],a(e,l.nodeName)&&u.push(l);else if(c.querySelectorAll)for(i=c.querySelectorAll(("#document"!==n.nodeName?n.nodeName+" ":"")+e+"."+t),r=0,s=i.length;r<s;r++)l=i[r],_contains(n,l)&&u.push(l);else for(i=n.getElementsByTagName(e),t=" "+t+" ",r=0,s=i.length;r<s;r++)if(l=i[r],1==l.nodeType){var d=l.className;d&&(" "+d+" ").indexOf(t)>-1&&u.push(l)}return u}function c(t,e,n){for(var i,r=[],s=n.ownerDocument||n,l=s.getElementsByName(o(t)),c=0,u=l.length;c<u;c++)i=l[c],a(e,i.nodeName)&&_contains(n,i)&&null!==i.getAttribute("name")&&r.push(i);return r}function u(t,e,n,i){for(var o,a=[],s=i.getElementsByTagName(n),l=0,c=s.length;l<c;l++)o=s[l],1==o.nodeType&&(null===e?null!==_getAttr(o,t)&&a.push(o):e===r(_getAttr(o,t))&&a.push(o));return a}function d(t,e){var n,i=[];n=/^((?:\\.|[^.#\s\[<>])+)/.exec(t);var r=n?n[1]:"*";if(n=/#((?:[\w\-]|\\.)+)$/.exec(t))i=s(n[1],r,e);else if(n=/\.((?:[\w\-]|\\.)+)$/.exec(t))i=l(n[1],r,e);else if(n=/\[((?:[\w\-]|\\.)+)\]/.exec(t))i=u(n[1].toLowerCase(),null,r,e);else if(n=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(t)){var o=n[1].toLowerCase(),a=n[2];i="id"===o?s(a,r,e):"class"===o?l(a,r,e):"name"===o?c(a,r,e):u(o,a,r,e)}else for(var d,h=e.getElementsByTagName(r),p=0,f=h.length;p<f;p++)d=h[p],1==d.nodeType&&i.push(d);return i}e=e||document;var h,p=[],f=/((?:\\.|[^\s>])+|[\s>])/g;while(h=f.exec(t))" "!==h[1]&&p.push(h[1]);var m=[];if(1==p.length)return d(p[0],e);var g,v,b,_,y,w,x,k,S,D,C=!1;for(w=0,lenth=p.length;w<lenth;w++)if(g=p[w],">"!==g){if(w>0){for(v=[],x=0,S=m.length;x<S;x++)for(_=m[x],b=d(g,_),k=0,D=b.length;k<D;k++)y=b[k],C?_===y.parentNode&&v.push(y):v.push(y);m=v}else m=d(g,e);if(0===m.length)return[]}else C=!0;return m}function _query(t,e){var n=_queryAll(t,e);return n.length>0?n[0]:null}function _get(t){return K(t)[0]}function _getDoc(t){return t?t.ownerDocument||t.document||t:document}function _getWin(t){if(!t)return window;var e=_getDoc(t);return e.parentWindow||e.defaultView}function _setHtml(t,e){if(1==t.nodeType){var n=_getDoc(t);try{t.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=n.getElementById("__kindeditor_temp_tag__");i.parentNode.removeChild(i)}catch(r){K(t).empty(),K("@"+e,n).each((function(){t.appendChild(this)}))}}}function _hasClass(t,e){return _inString(e,t.className," ")}function _setAttr(t,e,n){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),t.setAttribute(e,""+n)}function _removeAttr(t,e){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),_setAttr(t,e,""),t.removeAttribute(e)}function _getNodeName(t){return t&&t.nodeName?t.nodeName.toLowerCase():""}function _computedCss(t,e){var n=_getWin(t),i=_toCamel(e),r="";if(n.getComputedStyle){var o=n.getComputedStyle(t,null);r=o[i]||o.getPropertyValue(e)||t.style[i]}else t.currentStyle&&(r=t.currentStyle[i]||t.style[i]);return r}function _hasVal(t){return!!_VALUE_TAG_MAP[_getNodeName(t)]}function _docElement(t){return t=t||document,_QUIRKS?t.body:t.documentElement}function _docHeight(t){var e=_docElement(t);return Math.max(e.scrollHeight,e.clientHeight)}function _docWidth(t){var e=_docElement(t);return Math.max(e.scrollWidth,e.clientWidth)}function _getScrollPos(t){var e,n;return t=t||document,_IE||_NEWIE||_OPERA?(e=_docElement(t).scrollLeft,n=_docElement(t).scrollTop):(e=_getWin(t).scrollX,n=_getWin(t).scrollY),{x:e,y:n}}function KNode(t){this.init(t)}function _updateCollapsed(t){return t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t}function _copyAndDelete(t,e,n){var i=t.doc,r=[];function o(i,o,a){var s,l=i.nodeValue.length;if(e){var c=i.cloneNode(!0);s=o>0?c.splitText(o):c,a<l&&s.splitText(a-o)}if(n){var u=i;if(o>0&&(u=i.splitText(o),t.setStart(i,o)),a<l){var d=u.splitText(a-o);t.setEnd(d,0)}r.push(u)}return s}function a(){n&&t.up().collapse(!0);for(var e=0,i=r.length;e<i;e++){var o=r[e];o.parentNode&&o.parentNode.removeChild(o)}}var s=t.cloneRange().down(),l=-1,c=-1,u=-1,d=-1,h=t.commonAncestor(),p=i.createDocumentFragment();if(3==h.nodeType){var f=o(h,t.startOffset,t.endOffset);return e&&p.appendChild(f),a(),e?p:t}function m(a,h){var p,f=a.firstChild;while(f){var g,v=new KRange(i).selectNode(f);if(l=v.compareBoundaryPoints(_START_TO_END,t),l>=0&&c<=0&&(c=v.compareBoundaryPoints(_START_TO_START,t)),c>=0&&u<=0&&(u=v.compareBoundaryPoints(_END_TO_END,t)),u>=0&&d<=0&&(d=v.compareBoundaryPoints(_END_TO_START,t)),d>=0)return!1;if(p=f.nextSibling,l>0)if(1==f.nodeType){if(c>=0&&u<=0)e&&h.appendChild(f.cloneNode(!0)),n&&r.push(f);else if(e&&(g=f.cloneNode(!1),h.appendChild(g)),!1===m(f,g))return!1}else if(3==f.nodeType){var b;if(b=f==s.startContainer?o(f,s.startOffset,f.nodeValue.length):f==s.endContainer?o(f,0,s.endOffset):o(f,0,f.nodeValue.length),e)try{h.appendChild(b)}catch(_){}}f=p}}m(h,p),n&&t.up().collapse(!0);for(var g=0,v=r.length;g<v;g++){var b=r[g];b.parentNode&&b.parentNode.removeChild(b)}return e?p:t}function _moveToElementText(t,e){var n=e;while(n){var i=K(n);if("marquee"==i.name||"select"==i.name)return;n=n.parentNode}try{t.moveToElementText(e)}catch(r){}}function _getStartEnd(t,e){var n=t.parentElement().ownerDocument,i=t.duplicate();i.collapse(e);var r=i.parentElement(),o=r.childNodes;if(0===o.length)return{node:r.parentNode,offset:K(r).index()};var a=n,s=0,l=-1,c=t.duplicate();_moveToElementText(c,r);for(var u=0,d=o.length;u<d;u++){var h=o[u];if(l=c.compareEndPoints("StartToStart",i),0===l)return{node:h.parentNode,offset:u};if(1==h.nodeType){var p,f=t.duplicate(),m=K(h),g=h;m.isControl()&&(p=n.createElement("span"),m.after(p),g=p,s+=m.text().replace(/\r\n|\n|\r/g,"").length),_moveToElementText(f,g),c.setEndPoint("StartToEnd",f),l>0?s+=f.text.replace(/\r\n|\n|\r/g,"").length:s=0,p&&K(p).remove()}else 3==h.nodeType&&(c.moveStart("character",h.nodeValue.length),s+=h.nodeValue.length);l<0&&(a=h)}if(l<0&&1==a.nodeType)return{node:r,offset:K(r.lastChild).index()+1};if(l>0)while(a.nextSibling&&1==a.nodeType)a=a.nextSibling;if(c=t.duplicate(),_moveToElementText(c,r),c.setEndPoint("StartToEnd",i),s-=c.text.replace(/\r\n|\n|\r/g,"").length,l>0&&3==a.nodeType){var v=a.previousSibling;while(v&&3==v.nodeType)s-=v.nodeValue.length,v=v.previousSibling}return{node:a,offset:s}}function _getEndRange(t,e){var n=t.ownerDocument||t,i=n.body.createTextRange();if(n==t)return i.collapse(!0),i;if(1==t.nodeType&&t.childNodes.length>0){var r,o,a=t.childNodes;if(0===e?(o=a[0],r=!0):(o=a[e-1],r=!1),!o)return i;if("head"===K(o).name)return 1===e&&(r=!0),2===e&&(r=!1),i.collapse(r),i;if(1==o.nodeType){var s,l=K(o);return l.isControl()&&(s=n.createElement("span"),r?l.before(s):l.after(s),o=s),_moveToElementText(i,o),i.collapse(r),s&&K(s).remove(),i}t=o,e=r?0:o.nodeValue.length}var c=n.createElement("span");return K(t).before(c),_moveToElementText(i,c),i.moveStart("character",e),K(c).remove(),i}function _toRange(t){var e,n;function i(t){"tr"==K(t.node).name&&(t.node=t.node.cells[t.offset],t.offset=0)}if(_IERANGE){if(t.item)return e=_getDoc(t.item(0)),n=new KRange(e),n.selectNode(t.item(0)),n;e=t.parentElement().ownerDocument;var r=_getStartEnd(t,!0),o=_getStartEnd(t,!1);return i(r),i(o),n=new KRange(e),n.setStart(r.node,r.offset),n.setEnd(o.node,o.offset),n}var a=t.startContainer;return e=a.ownerDocument||a,n=new KRange(e),n.setStart(a,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n}function KRange(t){this.init(t)}function _range(t){return t.nodeName?new KRange(t):t.constructor===KRange?t:_toRange(t)}function _nativeCommand(t,e,n){try{t.execCommand(e,!1,n)}catch(i){}}function _nativeCommandValue(t,e){var n="";try{n=t.queryCommandValue(e)}catch(i){}return"string"!==typeof n&&(n=""),n}function _getSel(t){var e=_getWin(t);return _IERANGE?t.selection:e.getSelection()}function _getRng(t){var e,n=_getSel(t);try{e=n.rangeCount>0?n.getRangeAt(0):n.createRange()}catch(i){}return!_IERANGE||e&&(e.item||e.parentElement().ownerDocument===t)?e:null}function _singleKeyMap(t){var e,n,i={};return _each(t,(function(t,r){e=t.split(",");for(var o=0,a=e.length;o<a;o++)n=e[o],i[n]=r})),i}function _hasAttrOrCss(t,e){return _hasAttrOrCssByKey(t,e,"*")||_hasAttrOrCssByKey(t,e)}function _hasAttrOrCssByKey(t,e,n){if(n=n||t.name,1!==t.type)return!1;var i=_singleKeyMap(e);if(!i[n])return!1;for(var r=i[n].split(","),o=0,a=r.length;o<a;o++){var s=r[o];if("*"===s)return!0;var l=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(s),c=l[1]?"css":"attr";s=l[2];var u=l[3]||"";if(""===u&&""!==t[c](s))return!0;if(""!==u&&t[c](s)===u)return!0}return!1}function _removeAttrOrCss(t,e){1==t.type&&(_removeAttrOrCssByKey(t,e,"*"),_removeAttrOrCssByKey(t,e))}function _removeAttrOrCssByKey(t,e,n){if(n=n||t.name,1===t.type){var i=_singleKeyMap(e);if(i[n]){for(var r=i[n].split(","),o=!1,a=0,s=r.length;a<s;a++){var l=r[a];if("*"===l){o=!0;break}var c=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(l);l=c[2],c[1]?(l=_toCamel(l),t[0].style[l]&&(t[0].style[l]="")):t.removeAttr(l)}o&&t.remove(!0)}}}function _getInnerNode(t){var e=t;while(e.first())e=e.first();return e}function _isEmptyNode(t){return 1==t.type&&!t.isSingle()&&""===t.html().replace(/<[^>]+>/g,"")}function _mergeWrapper(t,e){t=t.clone(!0);var n=_getInnerNode(t),i=t,r=!1;while(e){while(i)i.name===e.name&&(_mergeAttrs(i,e.attr(),e.css()),r=!0),i=i.first();r||n.append(e.clone(!1)),r=!1,e=e.first()}return t}function _wrapNode(t,e){if(e=e.clone(!0),3==t.type)return _getInnerNode(e).append(t.clone(!1)),t.replaceWith(e),e;var n,i=t;while((n=t.first())&&1==n.children().length)t=n;n=t.first();var r=t.doc.createDocumentFragment();while(n)r.appendChild(n[0]),n=n.next();return e=_mergeWrapper(i,e),r.firstChild&&_getInnerNode(e).append(r),i.replaceWith(e),e}function _mergeAttrs(t,e,n){_each(e,(function(e,n){"style"!==e&&t.attr(e,n)})),_each(n,(function(e,n){t.css(e,n)}))}function _inPreElement(t){while(t&&"body"!=t.name){if(_PRE_TAG_MAP[t.name]||"div"==t.name&&t.hasClass("ke-script"))return!0;t=t.parent()}return!1}function KCmd(t){this.init(t)}function _cmd(t){if(t.nodeName){var e=_getDoc(t);t=_range(e).selectNodeContents(e.body).collapse(!1)}return new KCmd(t)}function _drag(t){var e=t.moveEl,n=t.moveFn,i=t.clickEl||e,r=t.beforeDrag,o=t.iframeFix===undefined||t.iframeFix,a=[document];o&&K("iframe").each((function(){var t=_formatUrl(this.src||"","absolute");if(!/^https?:\/\//.test(t)){var e;try{e=_iframeDoc(this)}catch(i){}if(e){var n=K(this).pos();K(e).data("pos-x",n.x),K(e).data("pos-y",n.y),a.push(e)}}})),i.mousedown((function(t){if(0===t.button||1===t.button){t.stopPropagation();var o=i.get(),s=_removeUnit(e.css("left")),l=_removeUnit(e.css("top")),c=e.width(),u=e.height(),d=t.pageX,h=t.pageY;r&&r(),K(a).mousemove(p).mouseup(m).bind("selectstart",f),o.setCapture&&o.setCapture()}function p(t){t.preventDefault();var e=K(_getDoc(t.target)),r=_round((e.data("pos-x")||0)+t.pageX-d),o=_round((e.data("pos-y")||0)+t.pageY-h);n.call(i,s,l,c,u,r,o)}function f(t){t.preventDefault()}function m(t){t.preventDefault(),K(a).unbind("mousemove",p).unbind("mouseup",m).unbind("selectstart",f),o.releaseCapture&&o.releaseCapture()}}))}function KWidget(t){this.init(t)}function _widget(t){return new KWidget(t)}function _iframeDoc(t){return t=_get(t),t.contentDocument||t.contentWindow.document}function _getInitHtml(t,e,n,i){var r=[""===_direction?"<html>":'<html dir="'+_direction+'">','<head><meta charset="utf-8" /><title></title>',"<style>","html {margin:0;padding:0;}","body {margin:0;padding:5px;}",'body, td {font:12px/1.5 "sans serif",tahoma,verdana,helvetica;}',"body, p, div {word-wrap: break-word;}","p {margin:5px 0;}","table {border-collapse:collapse;}","img {border:0;}","noscript {display:none;}","table.ke-zeroborder td {border:1px dotted #AAA;}","img.ke-flash {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/flash.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-rm {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/rm.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-media {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/media.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-anchor {","\tborder:1px dashed #666;","\twidth:16px;","\theight:16px;","}",".ke-script, .ke-noscript, .ke-display-none {","\tdisplay:none;","\tfont-size:0;","\twidth:0;","\theight:0;","}",".ke-pagebreak {","\tborder:1px dotted #AAA;","\tfont-size:0;","\theight:2px;","}","</style>"];return _isArray(n)||(n=[n]),_each(n,(function(t,e){e&&r.push('<link href="'+e+'" rel="stylesheet" />')})),i&&r.push("<style>"+i+"</style>"),r.push("</head><body "+(e?'class="'+e+'"':"")+"></body></html>"),r.join("\n")}function _elementVal(t,e){if(t.hasVal()){if(e===undefined){var n=t.val();return n=n.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),n}return t.val(e)}return t.html(e)}function KEdit(t){this.init(t)}function _edit(t){return new KEdit(t)}function _selectToolbar(t,e){var n=this,i=n.get(t);if(i){if(i.hasClass("ke-disabled"))return;e(i)}}function KToolbar(t){this.init(t)}function _toolbar(t){return new KToolbar(t)}function KMenu(t){this.init(t)}function _menu(t){return new KMenu(t)}function KColorPicker(t){this.init(t)}function _colorpicker(t){return new KColorPicker(t)}function KUploadButton(t){this.init(t)}function _uploadbutton(t){return new KUploadButton(t)}function _createButton(t){t=t||{};var e=t.name||"",n=K('<span class="ke-button-common ke-button-outer" title="'+e+'"></span>'),i=K('<input class="ke-button-common ke-button" type="button" value="'+e+'" />');return t.click&&i.click(t.click),n.append(i),n}function KDialog(t){this.init(t)}function _dialog(t){return new KDialog(t)}function _tabs(t){var e=_widget(t),n=e.remove,i=t.afterSelect,r=e.div,o=[];r.addClass("ke-tabs").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()}));var a=K('<ul class="ke-tabs-ul ke-clearfix"></ul>');return r.append(a),e.add=function(t){var e=K('<li class="ke-tabs-li">'+t.title+"</li>");e.data("tab",t),o.push(e),a.append(e)},e.selectedIndex=0,e.select=function(t){e.selectedIndex=t,_each(o,(function(n,i){i.unbind(),n===t?(i.addClass("ke-tabs-li-selected"),K(i.data("tab").panel).show("")):(i.removeClass("ke-tabs-li-selected").removeClass("ke-tabs-li-on").mouseover((function(){K(this).addClass("ke-tabs-li-on")})).mouseout((function(){K(this).removeClass("ke-tabs-li-on")})).click((function(){e.select(n)})),K(i.data("tab").panel).hide())})),i&&i.call(e,t)},e.remove=function(){_each(o,(function(){this.remove()})),a.remove(),n.call(e)},e}function _loadScript(t,e){var n=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),i=document.createElement("script");n.appendChild(i),i.src=t,i.charset="utf-8",i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState||(e&&e(),i.onload=i.onreadystatechange=null,n.removeChild(i))}}function _chopQuery(t){var e=t.indexOf("?");return e>0?t.substr(0,e):t}function _loadStyle(t){for(var e=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),n=document.createElement("link"),i=_chopQuery(_formatUrl(t,"absolute")),r=K('link[rel="stylesheet"]',e),o=0,a=r.length;o<a;o++)if(_chopQuery(_formatUrl(r[o].href,"absolute"))===i)return;e.appendChild(n),n.href=t,n.rel="stylesheet"}function _ajax(t,e,n,i,r){n=n||"GET",r=r||"json";var o=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");if(o.open(n,t,!0),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status&&e){var t=_trim(o.responseText);"json"==r&&(t=_json(t)),e(t)}},"POST"==n){var a=[];_each(i,(function(t,e){a.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}));try{o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(s){}o.send(a.join("&"))}else o.send(null)}function _plugin(t,e){return t===undefined?_plugins:e?void(_plugins[t]=e):_plugins[t]}function _parseLangKey(t){var e,n="core";return(e=/^(\w+)\.(\w+)$/.exec(t))&&(n=e[1],t=e[2]),{ns:n,key:t}}function _lang(t,e){if(e=e===undefined?K.options.langType:e,"string"===typeof t){if(!_language[e])return"no language";var n=t.length-1;if("."===t.substr(n))return _language[e][t.substr(0,n)];var i=_parseLangKey(t);return _language[e][i.ns][i.key]}_each(t,(function(t,n){var i=_parseLangKey(t);_language[e]||(_language[e]={}),_language[e][i.ns]||(_language[e][i.ns]={}),_language[e][i.ns][i.key]=n}))}function _getImageFromRange(t,e){if(!t.collapsed){t=t.cloneRange().up();var n=t.startContainer,i=t.startOffset;if(_WEBKIT||t.isControl()){var r=K(n.childNodes[i]);if(r&&"img"==r.name)return e(r)?r:void 0}}}function _bindContextmenuEvent(){var t=this,e=t.edit.doc;K(e).contextmenu((function(e){if(t.menu&&t.hideMenu(),t.useContextmenu){if(0!==t._contextmenus.length){var n=0,i=[];_each(t._contextmenus,(function(){"-"!=this.title?this.cond&&this.cond()&&(i.push(this),this.width&&this.width>n&&(n=this.width)):i.push(this)}));while(i.length>0&&"-"==i[0].title)i.shift();while(i.length>0&&"-"==i[i.length-1].title)i.pop();var r=null;if(_each(i,(function(t){"-"==this.title&&"-"==r.title&&delete i[t],r=this})),i.length>0){e.preventDefault();var o=K(t.edit.iframe).pos(),a=_menu({x:o.x+e.clientX,y:o.y+e.clientY,width:n,css:{visibility:"hidden"},shadowMode:t.shadowMode});_each(i,(function(){this.title&&a.addItem(this)}));var s=_docElement(a.doc),l=a.div.height();e.clientY+l>=s.clientHeight-100&&a.pos(a.x,_removeUnit(a.y)-l),a.div.css("visibility","visible"),t.menu=a}}}else e.preventDefault()}))}function _bindNewlineEvent(){var t=this,e=t.edit.doc,n=t.newlineTag;if((!_IE||"br"===n)&&!(_GECKO&&_V<3&&"p"!==n)&&!(_OPERA&&_V<9)){var i=_toMap("h1,h2,h3,h4,h5,h6,pre,li"),r=_toMap("p,h1,h2,h3,h4,h5,h6,pre,li,blockquote");K(e).keydown((function(a){if(!(13!=a.which||a.shiftKey||a.ctrlKey||a.altKey)){t.cmd.selection();var s=o(t.cmd.range);if("marquee"!=s&&"select"!=s)return"br"!==n||i[s]?void(r[s]||_nativeCommand(e,"formatblock","<p>")):(a.preventDefault(),void t.insertHtml("<br />"+(_IE&&_V<9?"":"​")))}})),K(e).keyup((function(i){if(!(13!=i.which||i.shiftKey||i.ctrlKey||i.altKey)&&"br"!=n)if(_GECKO){var a=t.cmd.commonAncestor("p"),s=t.cmd.commonAncestor("a");s&&""==s.text()&&(s.remove(!0),t.cmd.range.selectNodeContents(a[0]).collapse(!0),t.cmd.select())}else{t.cmd.selection();var l=o(t.cmd.range);if("marquee"!=l&&"select"!=l){r[l]||_nativeCommand(e,"formatblock","<p>");var c=t.cmd.commonAncestor("div");if(c){var u=K("<p></p>"),d=c[0].firstChild;while(d){var h=d.nextSibling;u.append(d),d=h}c.before(u),c.remove(),t.cmd.range.selectNodeContents(u[0]),t.cmd.select()}}}}))}function o(t){var e=K(t.commonAncestor());while(e){if(1==e.type&&!e.isStyle())break;e=e.parent()}return e.name}}function _bindTabEvent(){var t=this,e=t.edit.doc;K(e).keydown((function(n){if(9==n.which){if(n.preventDefault(),t.afterTab)return void t.afterTab.call(t,n);var i=t.cmd,r=i.range;r.shrink(),r.collapsed&&1==r.startContainer.nodeType&&(r.insertNode(K("@&nbsp;",e)[0]),i.select()),t.insertHtml("&nbsp;&nbsp;&nbsp;&nbsp;")}}))}function _bindFocusEvent(){var t=this;K(t.edit.textarea[0],t.edit.win).focus((function(e){t.afterFocus&&t.afterFocus.call(t,e)})).blur((function(e){t.afterBlur&&t.afterBlur.call(t,e)}))}function _removeBookmarkTag(t){return _trim(t.replace(/<span [^>]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/gi,""))}function _removeTempTag(t){return t.replace(/<div[^>]+class="?__kindeditor_paste__"?[^>]*>[\s\S]*?<\/div>/gi,"")}function _addBookmarkToStack(t,e){if(0!==t.length){var n=t[t.length-1];_removeBookmarkTag(e.html)!==_removeBookmarkTag(n.html)&&t.push(e)}else t.push(e)}function _undoToRedo(t,e){var n,i,r=this,o=r.edit,a=o.doc.body;if(0===t.length)return r;o.designMode?(n=r.cmd.range,i=n.createBookmark(!0),i.html=a.innerHTML):i={html:a.innerHTML},_addBookmarkToStack(e,i);var s=t.pop();return _removeBookmarkTag(i.html)===_removeBookmarkTag(s.html)&&t.length>0&&(s=t.pop()),o.designMode?(o.html(s.html),s.start&&(n.moveToBookmark(s),r.select())):K(a).html(_removeBookmarkTag(s.html)),r}function KEditor(t){var e=this;function n(t,n){KEditor.prototype[t]===undefined&&(e[t]=n),e.options[t]=n}e.options={},_each(t,(function(e,i){n(e,t[e])})),_each(K.options,(function(t,i){e[t]===undefined&&n(t,i)}));var i=K(e.srcElement||"<textarea/>");e.width||(e.width=i[0].style.width||i.width()),e.height||(e.height=i[0].style.height||i.height()),n("width",_undef(e.width,e.minWidth)),n("height",_undef(e.height,e.minHeight)),n("width",_addUnit(e.width)),n("height",_addUnit(e.height)),_MOBILE&&(!_IOS||_V<534)&&(e.designMode=!1),e.srcElement=i,e.initContent="",e.plugin={},e.isCreated=!1,e._handlers={},e._contextmenus=[],e._undoStack=[],e._redoStack=[],e._firstAddBookmark=!0,e.menu=e.contextmenu=null,e.dialogs=[]}function _editor(t){return new KEditor(t)}function _create(t,e){if(e=e||{},e.basePath=_undef(e.basePath,K.basePath),e.themesPath=_undef(e.themesPath,e.basePath+"themes/"),e.langPath=_undef(e.langPath,e.basePath+"lang/"),e.pluginsPath=_undef(e.pluginsPath,e.basePath+"plugins/"),_undef(e.loadStyleMode,K.options.loadStyleMode)){var n=_undef(e.themeType,K.options.themeType);_loadStyle(e.themesPath+"default/default.css"),_loadStyle(e.themesPath+n+"/"+n+".css")}function i(t){return _each(_plugins,(function(e,n){_isFunction(n)&&(n.call(t,KindEditor),t._pluginStatus||(t._pluginStatus={}),t._pluginStatus[e]="inited")})),t.create()}var r=K(t);if(r&&0!==r.length){if(r.length>1)return r.each((function(){_create(this,e)})),_instances[0];e.srcElement=r[0];var o=new KEditor(e);return _instances.push(o),_language[o.langType]?i(o):(_loadScript(o.langPath+o.langType+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){i(o)})),o)}}function _eachEditor(t,e){K(t).each((function(t,n){K.each(_instances,(function(t,i){if(i&&i.srcElement[0]==n)return e.call(i,t),!1}))}))}})(window),KindEditor.lang({source:"HTML代码",preview:"预览",undo:"后退(Ctrl+Z)",redo:"前进(Ctrl+Y)",cut:"剪切(Ctrl+X)",copy:"复制(Ctrl+C)",paste:"粘贴(Ctrl+V)",plainpaste:"粘贴为无格式文本",wordpaste:"从Word粘贴",selectall:"全选(Ctrl+A)",justifyleft:"左对齐",justifycenter:"居中",justifyright:"右对齐",justifyfull:"两端对齐",insertorderedlist:"编号",insertunorderedlist:"项目符号",indent:"增加缩进",outdent:"减少缩进",subscript:"下标",superscript:"上标",formatblock:"段落",fontname:"字体",fontsize:"文字大小",forecolor:"文字颜色",hilitecolor:"文字背景",bold:"粗体(Ctrl+B)",italic:"斜体(Ctrl+I)",underline:"下划线(Ctrl+U)",strikethrough:"删除线",removeformat:"删除格式",image:"图片",uploadImage:"插入图片",multiimage:"批量图片上传",flash:"Flash",media:"视音频",table:"表格",tablecell:"单元格",hr:"插入横线",emoticons:"插入表情",link:"超级链接",unlink:"取消超级链接",fullscreen:"全屏显示",about:"关于",print:"打印(Ctrl+P)",filemanager:"文件空间",code:"插入程序代码",map:"Google地图",baidumap:"百度地图",lineheight:"行距",clearhtml:"清理HTML代码",pagebreak:"插入分页符",quickformat:"一键排版",insertfile:"插入文件",template:"插入模板",anchor:"锚点",yes:"确定",no:"取消",close:"关闭",editImage:"图片属性",deleteImage:"删除图片",editFlash:"Flash属性",deleteFlash:"删除Flash",editMedia:"视音频属性",deleteMedia:"删除视音频",editLink:"超级链接属性",deleteLink:"取消超级链接",editAnchor:"锚点属性",deleteAnchor:"删除锚点",tableprop:"表格属性",tablecellprop:"单元格属性",tableinsert:"插入表格",tabledelete:"删除表格",tablecolinsertleft:"左侧插入列",tablecolinsertright:"右侧插入列",tablerowinsertabove:"上方插入行",tablerowinsertbelow:"下方插入行",tablerowmerge:"向下合并单元格",tablecolmerge:"向右合并单元格",tablerowsplit:"拆分行",tablecolsplit:"拆分列",tablecoldelete:"删除列",tablerowdelete:"删除行",noColor:"无颜色",pleaseSelectFile:"请选择文件。",invalidImg:"请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",invalidMedia:"请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",invalidWidth:"宽度必须为数字。",invalidHeight:"高度必须为数字。",invalidBorder:"边框必须为数字。",invalidUrl:"请输入有效的URL地址。",invalidRows:"行数为必选项,只允许输入大于0的数字。",invalidCols:"列数为必选项,只允许输入大于0的数字。",invalidPadding:"边距必须为数字。",invalidSpacing:"间距必须为数字。",invalidJson:"服务器发生故障。",uploadSuccess:"上传成功。",cutError:"您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。",copyError:"您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。",pasteError:"您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。",ajaxLoading:"加载中,请稍候 ...",uploadLoading:"上传中,请稍候 ...",uploadError:"上传错误","plainpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","wordpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","code.pleaseInput":"请输入程序代码。","link.url":"URL","link.linkType":"打开类型","link.newWindow":"新窗口","link.selfWindow":"当前窗口","flash.url":"URL","flash.width":"宽度","flash.height":"高度","flash.upload":"上传","flash.viewServer":"文件空间","media.url":"URL","media.width":"宽度","media.height":"高度","media.autostart":"自动播放","media.upload":"上传","media.viewServer":"文件空间","image.remoteImage":"网络图片","image.localImage":"本地上传","image.remoteUrl":"图片地址","image.localUrl":"上传文件","image.size":"图片大小","image.width":"宽","image.height":"高","image.resetSize":"重置大小","image.align":"对齐方式","image.defaultAlign":"默认方式","image.leftAlign":"左对齐","image.rightAlign":"右对齐","image.imgTitle":"图片说明","image.upload":"浏览...","image.viewServer":"本地上传","multiimage.uploadDesc":"允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>","multiimage.startUpload":"开始上传","multiimage.clearAll":"全部清空","multiimage.insertAll":"全部插入","multiimage.queueLimitExceeded":"文件数量超过限制。","multiimage.fileExceedsSizeLimit":"文件大小超过限制。","multiimage.zeroByteFile":"无法上传空文件。","multiimage.invalidFiletype":"文件类型不正确。","multiimage.unknownError":"发生异常,无法上传。","multiimage.pending":"等待上传","multiimage.uploadError":"上传失败","filemanager.emptyFolder":"空文件夹","filemanager.moveup":"移到上一级文件夹","filemanager.viewType":"显示方式:","filemanager.viewImage":"缩略图","filemanager.listImage":"详细信息","filemanager.orderType":"排序方式:","filemanager.fileName":"名称","filemanager.fileSize":"大小","filemanager.fileType":"类型","insertfile.url":"URL","insertfile.title":"文件说明","insertfile.upload":"上传","insertfile.viewServer":"文件空间","table.cells":"单元格数","table.rows":"行数","table.cols":"列数","table.size":"大小","table.width":"宽度","table.height":"高度","table.percent":"%","table.px":"px","table.space":"边距间距","table.padding":"边距","table.spacing":"间距","table.align":"对齐方式","table.textAlign":"水平对齐","table.verticalAlign":"垂直对齐","table.alignDefault":"默认","table.alignLeft":"左对齐","table.alignCenter":"居中","table.alignRight":"右对齐","table.alignTop":"顶部","table.alignMiddle":"中部","table.alignBottom":"底部","table.alignBaseline":"基线","table.border":"边框","table.borderWidth":"边框","table.borderColor":"颜色","table.backgroundColor":"背景颜色","map.address":"地址: ","map.search":"搜索","baidumap.address":"地址: ","baidumap.search":"搜索","baidumap.insertDynamicMap":"插入动态地图","anchor.name":"锚点名称","formatblock.formatBlock":{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",p:"正 文"},"fontname.fontName":{SimSun:"宋体",NSimSun:"新宋体",FangSong_GB2312:"仿宋_GB2312",KaiTi_GB2312:"楷体_GB2312",SimHei:"黑体","Microsoft YaHei":"微软雅黑",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"单倍行距"},{1.5:"1.5倍行距"},{2:"2倍行距"},{2.5:"2.5倍行距"},{3:"3倍行距"}],"template.selectTemplate":"可选模板","template.replaceContent":"替换当前内容","template.fileList":{"1.html":"图片和文字","2.html":"表格","3.html":"项目编号"}},"zh-CN"),KindEditor.options.langType="zh-CN",KindEditor.plugin("anchor",(function(t){var e=this,n="anchor",i=e.lang(n+".");e.plugin.anchor={edit:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keName">'+i.name+"</label>",'<input class="ke-input-text" type="text" id="keName" name="name" value="" style="width:100px;" />',"</div>","</div>"].join(""),o=e.createDialog({name:n,width:300,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(t){e.insertHtml('<a name="'+s.val()+'">').hideDialog().focus()}}}),a=o.div,s=t('input[name="name"]',a),l=e.plugin.getSelectedAnchor();l&&s.val(unescape(l.attr("data-ke-name"))),s[0].focus(),s[0].select()},delete:function(){e.plugin.getSelectedAnchor().remove()}},e.clickToolbar(n,e.plugin.anchor.edit)})),KindEditor.plugin("autoheight",(function(t){var e,n=this;n.autoHeightMode&&(n.isCreated?o():n.afterCreate(o));function i(){var t=n.edit,e=t.doc.body;t.iframe[0].scroll="no",e.style.overflowY="hidden"}function r(){var i=n.edit,r=i.doc.body;i.iframe.height(e),n.resize(null,Math.max((t.IE?r.scrollHeight:r.offsetHeight)+76,e))}function o(){e=t.removeUnit(n.height),n.edit.afterChange(r),i(),r()}})),KindEditor.plugin("baidumap",(function(t){var e=this,n="baidumap",i=e.lang(n+"."),r=t.undef(e.mapWidth,558),o=t.undef(e.mapHeight,360);e.clickToolbar(n,(function(){var a,s,l=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-right">','<input type="checkbox" id="keInsertDynamicMap" name="insertDynamicMap" value="1" /> <label for="keInsertDynamicMap">'+i.insertDynamicMap+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-map" style="width:'+r+"px;height:"+o+'px;"></div>',"</div>"].join(""),c=e.createDialog({name:n,width:r+42,title:e.lang(n),body:l,yesBtn:{name:e.lang("yes"),click:function(t){var n=a.map,i=n.getCenter(),s=i.lng+","+i.lat,l=n.getZoom(),c=[p[0].checked?e.pluginsPath+"baidumap/index.html":"http://api.map.baidu.com/staticimage","?center="+encodeURIComponent(s),"&zoom="+encodeURIComponent(l),"&width="+r,"&height="+o,"&markers="+encodeURIComponent(s),"&markerStyles="+encodeURIComponent("l,A")].join("");p[0].checked?e.insertHtml('<iframe src="'+c+'" frameborder="0" style="width:'+(r+2)+"px;height:"+(o+2)+'px;"></iframe>'):e.exec("insertimage",c),e.hideDialog().focus()}},beforeRemove:function(){h.remove(),s&&s.write(""),f.remove()}}),u=c.div,d=t('[name="address"]',u),h=t('[name="searchBtn"]',u),p=t('[name="insertDynamicMap"]',c.div),f=t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'baidumap/map.html" style="width:'+r+"px;height:"+o+'px;"></iframe>');function m(){a=f[0].contentWindow,s=t.iframeDoc(f)}f.bind("load",(function(){f.unbind("load"),t.IE?m():setTimeout(m,0)})),t(".ke-map",u).replaceWith(f),h.click((function(){a.search(d.val())}))}))})),KindEditor.plugin("map",(function(t){var e=this,n="map",i=e.lang(n+".");e.clickToolbar(n,(function(){var r,o,a=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-map" style="width:558px;height:360px;"></div>',"</div>"].join(""),s=e.createDialog({name:n,width:600,title:e.lang(n),body:a,yesBtn:{name:e.lang("yes"),click:function(t){r.geocoder;var n=r.map,i=n.getCenter().lat()+","+n.getCenter().lng(),o=n.getZoom(),a=n.getMapTypeId(),s="http://maps.googleapis.com/maps/api/staticmap";s+="?center="+encodeURIComponent(i),s+="&zoom="+encodeURIComponent(o),s+="&size=558x360",s+="&maptype="+encodeURIComponent(a),s+="&markers="+encodeURIComponent(i),s+="&language="+e.langType,s+="&sensor=false",e.exec("insertimage",s).hideDialog().focus()}},beforeRemove:function(){u.remove(),o&&o.write(""),d.remove()}}),l=s.div,c=t('[name="address"]',l),u=t('[name="searchBtn"]',l),d=(["<!doctype html><html><head>",'<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />',"<style>","\thtml { height: 100% }","\tbody { height: 100%; margin: 0; padding: 0; background-color: #FFF }","\t#map_canvas { height: 100% }","</style>",'<script src="http://maps.googleapis.com/maps/api/js?sensor=false&language='+e.langType+'"><\/script>',"<script>","var map, geocoder;","function initialize() {","\tvar latlng = new google.maps.LatLng(31.230393, 121.473704);","\tvar options = {","\t\tzoom: 11,","\t\tcenter: latlng,","\t\tdisableDefaultUI: true,","\t\tpanControl: true,","\t\tzoomControl: true,","\t\tmapTypeControl: true,","\t\tscaleControl: true,","\t\tstreetViewControl: false,","\t\toverviewMapControl: true,","\t\tmapTypeId: google.maps.MapTypeId.ROADMAP","\t};",'\tmap = new google.maps.Map(document.getElementById("map_canvas"), options);',"\tgeocoder = new google.maps.Geocoder();","\tgeocoder.geocode({latLng: latlng}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tif (results[3]) {",'\t\t\t\tparent.document.getElementById("kindeditor_plugin_map_address").value = results[3].formatted_address;',"\t\t\t}","\t\t}","\t});","}","function search(address) {","\tif (!map) return;","\tgeocoder.geocode({address : address}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tmap.setZoom(11);","\t\t\tmap.setCenter(results[0].geometry.location);","\t\t\tvar marker = new google.maps.Marker({","\t\t\t\tmap: map,","\t\t\t\tposition: results[0].geometry.location","\t\t\t});","\t\t} else {",'\t\t\talert("Invalid address: " + address);',"\t\t}","\t});","}","<\/script>","</head>",'<body onload="initialize();">','<div id="map_canvas" style="width:100%; height:100%"></div>',"</body></html>"].join("\n"),t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'map/map.html" style="width:558px;height:360px;"></iframe>'));function h(){r=d[0].contentWindow,o=t.iframeDoc(d)}d.bind("load",(function(){d.unbind("load"),t.IE?h():setTimeout(h,0)})),t(".ke-map",l).replaceWith(d),u.click((function(){r.search(c.val())}))}))})),KindEditor.plugin("clearhtml",(function(t){var e=this,n="clearhtml";e.clickToolbar(n,(function(){e.focus();var n=e.html();n=n.replace(/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,""),n=n.replace(/(<style[^>]*>)([\s\S]*?)(<\/style>)/gi,""),n=t.formatHtml(n,{a:["href","target"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["src","width","height","border","alt","title",".width",".height"],table:["border"],"td,th":["rowspan","colspan"],"div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":[]}),e.html(n),e.cmd.selection(!0),e.addBookmark()}))})),KindEditor.plugin("code",(function(t){var e=this,n="code";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">','<select class="ke-code-type">','<option value="js">JavaScript</option>','<option value="html">HTML</option>','<option value="css">CSS</option>','<option value="php">PHP</option>','<option value="pl">Perl</option>','<option value="py">Python</option>','<option value="rb">Ruby</option>','<option value="java">Java</option>','<option value="vb">ASP/VB</option>','<option value="cpp">C/C++</option>','<option value="cs">C#</option>','<option value="xml">XML</option>','<option value="bsh">Shell</option>','<option value="">Other</option>',"</select>","</div>",'<textarea class="ke-textarea" style="width:408px;height:260px;"></textarea>',"</div>"].join(""),o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var r=t(".ke-code-type",o.div).val(),s=a.val(),l=""===r?"":" lang-"+r,c='<pre class="prettyprint'+l+'">\n'+t.escape(s)+"</pre> ";if(""===t.trim(s))return alert(i.pleaseInput),void a[0].focus();e.insertHtml(c).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("emoticons",(function(t){var e=this,n="emoticons",i=e.emoticonsPath||e.pluginsPath+"emoticons/images/",r=void 0===e.allowPreviewEmoticons||e.allowPreviewEmoticons,o=1;e.clickToolbar(n,(function(){var a,s,l=5,c=9,u=135,d=0,h=l*c,p=Math.ceil(u/h),f=Math.floor(c/2),m=t('<div class="ke-plugin-emoticons"></div>'),g=[],v=e.createMenu({name:n,beforeRemove:function(){x()}});function b(n,r,o){a?n.mouseover((function(){r>f?(a.css("left",0),a.css("right","")):(a.css("left",""),a.css("right",0)),s.attr("src",i+o+".gif"),t(this).addClass("ke-on")})):n.mouseover((function(){t(this).addClass("ke-on")})),n.mouseout((function(){t(this).removeClass("ke-on")})),n.click((function(t){e.insertHtml('<img src="'+i+o+'.gif" border="0" alt="" />').hideMenu().focus(),t.stop()}))}function _(e,n){var r=document.createElement("table");n.append(r),a&&(t(r).mouseover((function(){a.show("block")})),t(r).mouseout((function(){a.hide()})),g.push(t(r))),r.className="ke-table",r.cellPadding=0,r.cellSpacing=0,r.border=0;for(var o=(e-1)*h+d,s=0;s<l;s++)for(var u=r.insertRow(s),p=0;p<c;p++){var f=t(u.insertCell(p));f.addClass("ke-cell"),b(f,p,o);var m=t('<span class="ke-img"></span>').css("background-position","-"+24*o+"px 0px").css("background-image","url("+i+"static.gif)");f.append(m),g.push(f),o++}return r}v.div.append(m),r&&(a=t('<div class="ke-preview"></div>').css("right",0),s=t('<img class="ke-preview-img" src="'+i+d+'.gif" />'),m.append(a),a.append(s));var y,w=_(o,m);function x(){t.each(g,(function(){this.unbind()}))}function k(t,e){t.click((function(t){x(),w.parentNode.removeChild(w),y.remove(),w=_(e,m),S(e),o=e,t.stop()}))}function S(e){y=t('<div class="ke-page"></div>'),m.append(y);for(var n=1;n<=p;n++){if(e!==n){var i=t('<a href="javascript:;">['+n+"]</a>");k(i,n),y.append(i),g.push(i)}else y.append(t("@["+n+"]"));y.append(t("@&nbsp;"))}}S(o)}))})),KindEditor.plugin("filemanager",(function(t){var e=this,n="filemanager",i=t.undef(e.fileManagerJson,e.basePath+"php/file_manager_json.php"),r=e.pluginsPath+n+"/images/",o=e.lang(n+".");function a(t,e,n){return t+" ("+Math.ceil(e/1024)+"KB, "+n+")"}function s(t,e){e.is_dir?t.attr("title",e.filename):t.attr("title",a(e.filename,e.filesize,e.datetime))}e.plugin.filemanagerDialog=function(a){var l=t.undef(a.width,650),c=t.undef(a.height,510),u=t.undef(a.dirName,""),d=t.undef(a.viewType,"VIEW").toUpperCase(),h=a.clickFn,p=['<div style="padding:10px 20px;">','<div class="ke-plugin-filemanager-header">','<div class="ke-left">','<img class="ke-inline-block" name="moveupImg" src="'+r+'go-up.gif" width="16" height="16" border="0" alt="" /> ','<a class="ke-inline-block" name="moveupLink" href="javascript:;">'+o.moveup+"</a>","</div>",'<div class="ke-right">',o.viewType+' <select class="ke-inline-block" name="viewType">','<option value="VIEW">'+o.viewImage+"</option>",'<option value="LIST">'+o.listImage+"</option>","</select> ",o.orderType+' <select class="ke-inline-block" name="orderType">','<option value="NAME">'+o.fileName+"</option>",'<option value="SIZE">'+o.fileSize+"</option>",'<option value="TYPE">'+o.fileType+"</option>","</select>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-plugin-filemanager-body"></div>',"</div>"].join(""),f=e.createDialog({name:n,width:l,height:c,title:e.lang(n),body:p}),m=f.div,g=t(".ke-plugin-filemanager-body",m),v=(t('[name="moveupImg"]',m),t('[name="moveupLink"]',m)),b=(t('[name="viewServer"]',m),t('[name="viewType"]',m)),_=t('[name="orderType"]',m);function y(n,r,o){var a="path="+n+"&order="+r+"&dir="+u;f.showLoading(e.lang("ajaxLoading")),t.ajax(t.addParam(i,a+"&"+(new Date).getTime()),(function(t){f.hideLoading(),o(t)}))}var w=[];function x(e,n,i,r){var o=t.formatUrl(n.current_url+i.filename,"absolute"),a=encodeURIComponent(n.current_dir_path+i.filename+"/");i.is_dir?e.click((function(t){y(a,_.val(),r)})):(i.is_photo,e.click((function(t){h.call(this,o,i.filename)}))),w.push(e)}function k(e,n){function i(){"VIEW"==b.val()?y(e.current_dir_path,_.val(),D):y(e.current_dir_path,_.val(),S)}t.each(w,(function(){this.unbind()})),v.unbind(),b.unbind(),_.unbind(),e.current_dir_path&&v.click((function(t){y(e.moveup_dir_path,_.val(),n)})),b.change(i),_.change(i),g.html("")}function S(e){k(e,S);var n=document.createElement("table");n.className="ke-table",n.cellPadding=0,n.cellSpacing=0,n.border=0,g.append(n);for(var i=e.file_list,a=0,s=i.length;a<s;a++){var l=i[a],c=t(n.insertRow(a));c.mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));var u=r+(l.is_dir?"folder-16.gif":"file-16.gif"),d=t('<img src="'+u+'" width="16" height="16" alt="'+l.filename+'" align="absmiddle" />'),h=t(c[0].insertCell(0)).addClass("ke-cell ke-name").append(d).append(document.createTextNode(" "+l.filename));!l.is_dir||l.has_file?(c.css("cursor","pointer"),h.attr("title",l.filename),x(h,e,l,S)):h.attr("title",o.emptyFolder),t(c[0].insertCell(1)).addClass("ke-cell ke-size").html(l.is_dir?"-":Math.ceil(l.filesize/1024)+"KB"),t(c[0].insertCell(2)).addClass("ke-cell ke-datetime").html(l.datetime)}}function D(e){k(e,D);for(var n=e.file_list,i=0,a=n.length;i<a;i++){var l=n[i],c=t('<div class="ke-inline-block ke-item"></div>');g.append(c);var u=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));c.append(u);var d=e.current_url+l.filename,h=l.is_dir?r+"folder-64.gif":l.is_photo?d:r+"file-64.gif",p=t('<img src="'+h+'" width="80" height="80" alt="'+l.filename+'" />');!l.is_dir||l.has_file?(u.css("cursor","pointer"),s(u,l),x(u,e,l,D)):u.attr("title",o.emptyFolder),u.append(p),c.append('<div class="ke-name" title="'+l.filename+'">'+l.filename+"</div>")}}return b.val(d),y("",_.val(),"VIEW"==d?D:S),f}})),KindEditor.plugin("flash",(function(t){var e=this,n="flash",i=e.lang(n+"."),r=t.undef(e.allowFlashUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.flash={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" /> ',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(".swf"),width:r,height:o,quality:"high"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h);if(p.val("http://"),r){var v=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=flash"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});v.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),v.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"flash",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var b=e.plugin.getSelectedFlash();if(b){var _=t.mediaAttrs(b.attr("data-ke-tag"));p.val(_.src),m.val(t.removeUnit(b.css("width"))||_.width||0),g.val(t.removeUnit(b.css("height"))||_.height||0)}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedFlash().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.flash.edit)})),KindEditor.plugin("uploadImage",(function(t){var e=this;e.clickToolbar("uploadImage",(function(){$app.$upload({multiple:!0,success:function(t){e.insertHtml(Array.from(t,t=>`<img src="${t.path}" alt="" />`).join(""))}})}))})),KindEditor.plugin("image",(function(t){var e=this,n="image",i=t.undef(e.allowImageUpload,!1),r=t.undef(e.allowImageRemote,!0),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.allowFileManager,!0),s=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),l=t.undef(e.imageTabIndex,0),c=e.pluginsPath+"image/images/",u=t.undef(e.extraFileUploadParams,{}),d=t.undef(e.filePostName,"imgFile"),h=t.undef(e.fillDescAfterUploadImage,!1),p=e.lang(n+".");e.plugin.imageDialog=function(i){i.imageUrl,t.undef(i.imageWidth,""),t.undef(i.imageHeight,""),t.undef(i.imageTitle,""),t.undef(i.imageAlign,"");var r=t.undef(i.showRemote,!0),l=t.undef(i.showLocal,!0),f=t.undef(i.tabIndex,0),m=i.clickFn,g="kindeditor_upload_iframe_"+(new Date).getTime(),v=[];for(var b in u)v.push('<input type="hidden" name="'+b+'" value="'+u[b]+'" />');var _,y=['<div style="padding:20px;">','<div class="tabs"></div>','<div class="tab1" style="display:none;">','<div class="ke-dialog-row">','<label for="remoteUrl" style="width:60px;">'+p.remoteUrl+"</label>",'<input type="text" id="remoteUrl" class="ke-input-text" name="url" value="" style="width:200px;" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+p.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="remoteWidth" style="width:60px;">'+p.size+"</label>",p.width+' <input type="text" id="remoteWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ',p.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<img class="ke-refresh-btn" src="'+c+'refresh.png" width="16" height="16" alt="" style="cursor:pointer;" title="'+p.resetSize+'" />',"</div>",'<div class="ke-dialog-row">','<label style="width:60px;">'+p.align+"</label>",'<input type="radio" name="align" class="ke-inline-block" value="" checked="checked" /> <img name="defaultImg" src="'+IMAGE_ALIGN_TOP+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="left" /> <img name="leftImg" src="'+IMAGE_ALIGN_LEFT+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="right" /> <img name="rightImg" src="'+IMAGE_ALIGN_RIGHT+'" width="23" height="25" alt="" />',"</div>",'<div class="ke-dialog-row">','<label for="remoteTitle" style="width:60px;">'+p.imgTitle+"</label>",'<input type="text" id="remoteTitle" class="ke-input-text" name="title" value="" style="width:200px;" />',"</div>","</div>",'<div class="tab2" style="display:none;">','<iframe name="'+g+'" style="display:none;"></iframe>','<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+g+'" action="'+t.addParam(s,"dir=image")+'">','<div class="ke-dialog-row">',v.join(""),'<label style="width:60px;">'+p.localUrl+"</label>",'<input type="text" name="localUrl" class="ke-input-text" tabindex="-1" style="width:200px;" readonly="true" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+p.upload+'" />',"</div>","</form>","</div>","</div>"].join(""),w=l||a?450:400,x=l&&r?300:250,k=e.createDialog({name:n,width:w,height:x,title:e.lang(n),body:y,yesBtn:{name:e.lang("yes"),click:function(n){if(!k.isLoading){if(l&&r&&_&&1===_.selectedIndex||!r)return""==L.fileBox.val()?void alert(e.lang("pleaseSelectFile")):(k.showLoading(e.lang("uploadLoading")),L.submit(),void C.val(""));var i=t.trim(D.val()),o=A.val(),a=T.val(),s=B.val(),c="";return $.each((function(){if(this.checked)return c=this.value,!1})),"http://"==i||t.invalidUrl(i)?(alert(e.lang("invalidUrl")),void D[0].focus()):/^\d*$/.test(o)?/^\d*$/.test(a)?void m.call(e,i,s,o,a,0,c):(alert(e.lang("invalidHeight")),void T[0].focus()):(alert(e.lang("invalidWidth")),void A[0].focus())}}},beforeRemove:function(){E.unbind(),A.unbind(),T.unbind(),F.unbind()}}),S=k.div,D=t('[name="url"]',S),C=t('[name="localUrl"]',S),E=t('[name="viewServer"]',S),A=t('.tab1 [name="width"]',S),T=t('.tab1 [name="height"]',S),F=t(".ke-refresh-btn",S),B=t('.tab1 [name="title"]',S),$=t('.tab1 [name="align"]',S);r&&l?(_=t.tabs({src:t(".tabs",S),afterSelect:function(t){}}),_.add({title:p.remoteImage,panel:t(".tab1",S)}),_.add({title:p.localImage,panel:t(".tab2",S)}),_.select(f)):r?t(".tab1",S).show():l&&t(".tab2",S).show();var L=t.uploadbutton({button:t(".ke-upload-button",S)[0],fieldName:d,form:t(".ke-form",S),target:g,width:60,afterUpload:function(i){if(k.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),e.afterUpload&&e.afterUpload.call(e,r,i,n),h?(t(".ke-dialog-row #remoteUrl",S).val(r),t(".ke-tabs-li",S)[0].click(),t(".ke-refresh-btn",S).click()):m.call(e,r,i.title,i.width,i.height,i.border,i.align)}else alert(i.message)},afterError:function(t){k.hideLoading(),e.errorDialog(t)}});L.fileBox.change((function(t){C.val(L.fileBox.val())})),a?E.click((function(e){$app.$upload({success:function(e){Array.isArray(e)&&(e=e[0]),t('[name="url"]',S).val(e.path)}})})):E.hide();var I=0,M=0;function P(t,e){A.val(t),T.val(e),I=t,M=e}return F.click((function(e){var n=t('<img src="'+D.val()+'" />',document).css({position:"absolute",visibility:"hidden",top:0,left:"-1000px"});n.bind("load",(function(){P(n.width(),n.height()),n.remove()})),t(document.body).append(n)})),A.change((function(t){I>0&&T.val(Math.round(M/I*parseInt(this.value,10)))})),T.change((function(t){M>0&&A.val(Math.round(I/M*parseInt(this.value,10)))})),D.val(i.imageUrl),B.val(i.imageTitle),$.each((function(){if(this.value===i.imageAlign)return this.checked=!0,!1})),r&&0===f&&(D[0].focus(),D[0].select()),k},e.plugin.image={edit:function(){var t=e.plugin.getSelectedImage();e.plugin.imageDialog({imageUrl:t?t.attr("data-ke-src"):"http://",imageWidth:t?t.width():"",imageHeight:t?t.height():"",imageTitle:t?t.attr("title"):"",imageAlign:t?t.attr("align"):"",showRemote:r,showLocal:i,tabIndex:t?0:l,clickFn:function(n,i,r,o,a,s){t?(t.attr("src",n),t.attr("data-ke-src",n),t.attr("width",r),t.attr("height",o),t.attr("title",i),t.attr("align",s),t.attr("alt",i)):e.exec("insertimage",n,i,r,o,a,s),setTimeout((function(){e.hideDialog().focus()}),0)}})},delete:function(){var t=e.plugin.getSelectedImage();"a"==t.parent().name&&(t=t.parent()),t.remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.image.edit)})),KindEditor.plugin("insertfile",(function(t){var e=this,n="insertfile",i=t.undef(e.allowFileUpload,!0),r=t.undef(e.allowFileManager,!1),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=e.lang(n+".");e.plugin.fileDialog=function(u){var d=t.undef(u.fileUrl,"http://"),h=t.undef(u.fileTitle,""),p=u.clickFn,f=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+c.url+"</label>",'<input type="text" id="keUrl" name="url" class="ke-input-text" style="width:160px;" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+c.upload+'" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+c.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keTitle" style="width:60px;">'+c.title+"</label>",'<input type="text" id="keTitle" class="ke-input-text" name="title" value="" style="width:160px;" /></div>',"</div>","</form>","</div>"].join(""),m=e.createDialog({name:n,width:450,title:e.lang(n),body:f,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(v.val()),r=_.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void v[0].focus();""===t.trim(r)&&(r=i),p.call(e,i,r)}}}),g=m.div,v=t('[name="url"]',g),b=t('[name="viewServer"]',g),_=t('[name="title"]',g);if(i){var y=t.uploadbutton({button:t(".ke-upload-button",g)[0],fieldName:l,url:t.addParam(a,"dir=file"),extraParams:s,afterUpload:function(i){if(m.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),v.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){m.hideLoading(),e.errorDialog(t)}});y.fileBox.change((function(t){m.showLoading(e.lang("uploadLoading")),y.submit()}))}else t(".ke-upload-button",g).hide();r?b.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"file",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',g).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):b.hide(),v.val(d),_.val(h),v[0].focus(),v[0].select()},e.clickToolbar(n,(function(){e.plugin.fileDialog({clickFn:function(t,n){var i='<a class="ke-insertfile" href="'+t+'" data-ke-src="'+t+'" target="_blank">'+n+"</a>";e.insertHtml(i).hideDialog().focus()}})}))})),KindEditor.plugin("lineheight",(function(t){var e=this,n="lineheight",i=e.lang(n+".");e.clickToolbar(n,(function(){var r="",o=e.cmd.commonNode({"*":".line-height"});o&&(r=o.css("line-height"));var a=e.createMenu({name:n,width:150});t.each(i.lineHeight,(function(n,i){t.each(i,(function(t,n){a.addItem({title:n,checked:r===t,click:function(){e.cmd.toggle('<span style="line-height:'+t+';"></span>',{span:".line-height="+t}),e.updateState(),e.addBookmark(),e.hideMenu()}})}))}))}))})),KindEditor.plugin("link",(function(t){var e=this,n="link";e.plugin.link={edit:function(){var i=e.lang(n+"."),r='<div style="padding:20px;"><div class="ke-dialog-row"><label for="keUrl" style="width:60px;">'+i.url+'</label><input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:260px;" /></div><div class="ke-dialog-row""><label for="keType" style="width:60px;">'+i.linkType+'</label><select id="keType" name="type"></select></div></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(s.val());if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void s[0].focus();e.exec("createlink",i,l.val()).hideDialog().focus()}}}),a=o.div,s=t('input[name="url"]',a),l=t('select[name="type"]',a);s.val("http://"),l[0].options[0]=new Option(i.newWindow,"_blank"),l[0].options[1]=new Option(i.selfWindow,""),e.cmd.selection();var c=e.plugin.getSelectedLink();c&&(e.cmd.range.selectNode(c[0]),e.cmd.select(),s.val(c.attr("data-ke-src")),l.val(c.attr("target"))),s[0].focus(),s[0].select()},delete:function(){e.exec("unlink",null)}},e.clickToolbar(n,e.plugin.link.edit)})),KindEditor.plugin("media",(function(t){var e=this,n="media",i=e.lang(n+"."),r=t.undef(e.allowMediaUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.media={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAutostart">'+i.autostart+"</label>",'<input type="checkbox" id="keAutostart" name="autostart" value="" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,height:230,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(i),width:r,height:o,autostart:v[0].checked?"true":"false",loop:"true"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h),v=t('[name="autostart"]',h);if(p.val("http://"),r){var b=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=media"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});b.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),b.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"media",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var _=e.plugin.getSelectedMedia();if(_){var y=t.mediaAttrs(_.attr("data-ke-tag"));p.val(y.src),m.val(t.removeUnit(_.css("width"))||y.width||0),g.val(t.removeUnit(_.css("height"))||y.height||0),v[0].checked="true"===y.autostart}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedMedia().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.media.edit)})),function(t){function e(t){this.init(t)}t.extend(e,{init:function(e){var n=this;function i(e,n){t(".ke-status > div",e).hide(),t(".ke-message",e).addClass("ke-error").show().html(t.escape(n))}e.afterError=e.afterError||function(t){alert(t)},n.options=e,n.progressbars={},n.div=t(e.container).html(['<div class="ke-swfupload">','<div class="ke-swfupload-top">','<div class="ke-inline-block ke-swfupload-button">','<input type="button" value="Browse" />',"</div>",'<div class="ke-inline-block ke-swfupload-desc">'+e.uploadDesc+"</div>",'<span class="ke-button-common ke-button-outer ke-swfupload-startupload">','<input type="button" class="ke-button-common ke-button" value="'+e.startButtonValue+'" />',"</span>","</div>",'<div class="ke-swfupload-body"></div>',"</div>"].join("")),n.bodyDiv=t(".ke-swfupload-body",n.div);var r={debug:!1,upload_url:e.uploadUrl,flash_url:e.flashUrl,file_post_name:e.filePostName,button_placeholder:t(".ke-swfupload-button > input",n.div)[0],button_image_url:e.buttonImageUrl,button_width:e.buttonWidth,button_height:e.buttonHeight,button_cursor:SWFUpload.CURSOR.HAND,file_types:e.fileTypes,file_types_description:e.fileTypesDesc,file_upload_limit:e.fileUploadLimit,file_size_limit:e.fileSizeLimit,post_params:e.postParams,file_queued_handler:function(t){t.url=n.options.fileIconUrl,n.appendFile(t)},file_queue_error_handler:function(n,i,r){var o="";switch(i){case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:o=e.queueLimitExceeded;break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:o=e.fileExceedsSizeLimit;break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:o=e.zeroByteFile;break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:o=e.invalidFiletype;break;default:o=e.unknownError;break}t.DEBUG&&alert(o)},upload_start_handler:function(e){var n=this,i=t('div[data-id="'+e.id+'"]',n.bodyDiv);t(".ke-status > div",i).hide(),t(".ke-progressbar",i).show()},upload_progress_handler:function(t,e,i){var r=Math.round(100*e/i),o=n.progressbars[t.id];o.bar.css("width",Math.round(80*r/100)+"px"),o.percent.html(r+"%")},upload_error_handler:function(e,r,o){if(e&&e.filestatus==SWFUpload.FILE_STATUS.ERROR){var a=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0);i(a,n.options.errorMessage)}},upload_success_handler:function(e,r){var o=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0),a={};try{a=t.json(r)}catch(s){n.options.afterError.call(this,"<!doctype html><html>"+r+"</html>")}0===a.error?(e.url=a.url,t(".ke-img",o).attr("src",e.url).attr("data-status",e.filestatus).data("data",a),t(".ke-status > div",o).hide()):i(o,t.DEBUG?a.message:n.options.errorMessage)}};n.swfu=new SWFUpload(r),t(".ke-swfupload-startupload input",n.div).click((function(){n.swfu.startUpload()}))},getUrlList:function(){var e=[];return t(".ke-img",self.bodyDiv).each((function(){var n=t(this),i=n.attr("data-status");i==SWFUpload.FILE_STATUS.COMPLETE&&e.push(n.data("data"))})),e},removeFile:function(e){var n=this;n.swfu.cancelUpload(e);var i=t('div[data-id="'+e+'"]',n.bodyDiv);t(".ke-photo",i).unbind(),t(".ke-delete",i).unbind(),i.remove()},removeFiles:function(){var e=this;t(".ke-item",e.bodyDiv).each((function(){e.removeFile(t(this).attr("data-id"))}))},appendFile:function(e){var n=this,i=t('<div class="ke-inline-block ke-item" data-id="'+e.id+'"></div>');n.bodyDiv.append(i);var r=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));i.append(r);var o=t('<img src="'+e.url+'" class="ke-img" data-status="'+e.filestatus+'" width="80" height="80" alt="'+e.name+'" />');r.append(o),t('<span class="ke-delete"></span>').appendTo(r).click((function(){n.removeFile(e.id)}));var a=t('<div class="ke-status"></div>').appendTo(r);t(['<div class="ke-progressbar">','<div class="ke-progressbar-bar"><div class="ke-progressbar-bar-inner"></div></div>','<div class="ke-progressbar-percent">0%</div></div>'].join("")).hide().appendTo(a),t('<div class="ke-message">'+n.options.pendingMessage+"</div>").appendTo(a),i.append('<div class="ke-name">'+e.name+"</div>"),n.progressbars[e.id]={bar:t(".ke-progressbar-bar-inner",r),percent:t(".ke-progressbar-percent",r)}},remove:function(){this.removeFiles(),this.swfu.destroy(),this.div.html("")}}),t.swfupload=function(t,n){return new e(t,n)}}(KindEditor),KindEditor.plugin("multiimage",(function(t){var e=this,n="multiimage",i=(t.undef(e.formatUploadUrl,!0),t.undef(e.uploadJson,e.basePath+"php/upload_json.php")),r=e.pluginsPath+"multiimage/images/",o=t.undef(e.imageSizeLimit,"1MB"),a=(t.undef(e.imageFileTypes,"*.jpg;*.gif;*.png"),t.undef(e.imageUploadLimit,20)),s=t.undef(e.filePostName,"imgFile"),l=e.lang(n+".");e.plugin.multiImageDialog=function(c){var u=c.clickFn,d=t.tmpl(l.uploadDesc,{uploadLimit:a,sizeLimit:o}),h=['<div style="padding:20px;">','<div class="swfupload">',"</div>","</div>"].join(""),p=e.createDialog({name:n,width:650,height:510,title:e.lang(n),body:h,previewBtn:{name:l.insertAll,click:function(t){u.call(e,m.getUrlList())}},yesBtn:{name:l.clearAll,click:function(t){m.removeFiles()}},beforeRemove:function(){(!t.IE||t.V<=8)&&m.remove()}}),f=p.div,m=t.swfupload({container:t(".swfupload",f),buttonImageUrl:r+("zh-CN"==e.langType?"select-files-zh-CN.png":"select-files-en.png"),buttonWidth:"zh-CN"==e.langType?72:88,buttonHeight:23,fileIconUrl:r+"image.png",uploadDesc:d,startButtonValue:l.startUpload,uploadUrl:t.addParam(i,"dir=image"),flashUrl:r+"swfupload.swf",filePostName:s,fileTypes:"*.jpg;*.jpeg;*.gif;*.png;*.bmp",fileTypesDesc:"Image Files",fileUploadLimit:a,fileSizeLimit:o,postParams:t.undef(e.extraFileUploadParams,{}),queueLimitExceeded:l.queueLimitExceeded,fileExceedsSizeLimit:l.fileExceedsSizeLimit,zeroByteFile:l.zeroByteFile,invalidFiletype:l.invalidFiletype,unknownError:l.unknownError,pendingMessage:l.pending,errorMessage:l.uploadError,afterError:function(t){e.errorDialog(t)}});return p},e.clickToolbar(n,(function(){e.plugin.multiImageDialog({clickFn:function(n){0!==n.length&&(t.each(n,(function(t,n){e.afterUpload&&e.afterUpload.call(e,n.url,n,"multiimage"),e.exec("insertimage",n.url,n.title,n.width,n.height,n.border,n.align)})),setTimeout((function(){e.hideDialog().focus()}),0))}})}))})),function(){window.SWFUpload=function(t){this.initSWFUpload(t)},SWFUpload.prototype.initSWFUpload=function(t){try{this.customSettings={},this.settings=t,this.eventQueue=[],this.movieName="KindEditor_SWFUpload_"+SWFUpload.movieCount++,this.movieElement=null,SWFUpload.instances[this.movieName]=this,this.initSettings(),this.loadFlash(),this.displayDebugInfo()}catch(e){throw delete SWFUpload.instances[this.movieName],e}},SWFUpload.instances={},SWFUpload.movieCount=0,SWFUpload.version="2.2.0 2009-03-25",SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130},SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290},SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5},SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120},SWFUpload.CURSOR={ARROW:-1,HAND:-2},SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"},SWFUpload.completeURL=function(t){if("string"!==typeof t||t.match(/^https?:\/\//i)||t.match(/^\//))return t;window.location.protocol,window.location.hostname,window.location.port&&window.location.port;var e=window.location.pathname.lastIndexOf("/");return path=e<=0?"/":window.location.pathname.substr(0,e)+"/",path+t},SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(t,e){this.settings[t]=void 0==this.settings[t]?e:this.settings[t]},this.ensureDefault("upload_url",""),this.ensureDefault("preserve_relative_urls",!1),this.ensureDefault("file_post_name","Filedata"),this.ensureDefault("post_params",{}),this.ensureDefault("use_query_string",!1),this.ensureDefault("requeue_on_error",!1),this.ensureDefault("http_success",[]),this.ensureDefault("assume_success_timeout",0),this.ensureDefault("file_types","*.*"),this.ensureDefault("file_types_description","All Files"),this.ensureDefault("file_size_limit",0),this.ensureDefault("file_upload_limit",0),this.ensureDefault("file_queue_limit",0),this.ensureDefault("flash_url","swfupload.swf"),this.ensureDefault("prevent_swf_caching",!0),this.ensureDefault("button_image_url",""),this.ensureDefault("button_width",1),this.ensureDefault("button_height",1),this.ensureDefault("button_text",""),this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;"),this.ensureDefault("button_text_top_padding",0),this.ensureDefault("button_text_left_padding",0),this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES),this.ensureDefault("button_disabled",!1),this.ensureDefault("button_placeholder_id",""),this.ensureDefault("button_placeholder",null),this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW),this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW),this.ensureDefault("debug",!1),this.settings.debug_enabled=this.settings.debug,this.settings.return_upload_start_handler=this.returnUploadStart,this.ensureDefault("swfupload_loaded_handler",null),this.ensureDefault("file_dialog_start_handler",null),this.ensureDefault("file_queued_handler",null),this.ensureDefault("file_queue_error_handler",null),this.ensureDefault("file_dialog_complete_handler",null),this.ensureDefault("upload_start_handler",null),this.ensureDefault("upload_progress_handler",null),this.ensureDefault("upload_error_handler",null),this.ensureDefault("upload_success_handler",null),this.ensureDefault("upload_complete_handler",null),this.ensureDefault("debug_handler",this.debugMessage),this.ensureDefault("custom_settings",{}),this.customSettings=this.settings.custom_settings,this.settings.prevent_swf_caching&&(this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+(new Date).getTime()),this.settings.preserve_relative_urls||(this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url),this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)),delete this.ensureDefault},SWFUpload.prototype.loadFlash=function(){var t,e;if(null!==document.getElementById(this.movieName))throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";if(t=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder,void 0==t)throw"Could not find the placeholder element: "+this.settings.button_placeholder_id;e=document.createElement("div"),e.innerHTML=this.getFlashHTML(),t.parentNode.replaceChild(e.firstChild,t),void 0==window[this.movieName]&&(window[this.movieName]=this.getMovieElement())},SWFUpload.prototype.getFlashHTML=function(){var t="";return KindEditor.IE&&KindEditor.V>8&&(t=' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'),['<object id="',this.movieName,'"'+t+' type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")},SWFUpload.prototype.getFlashVars=function(){var t=this.buildParamString(),e=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(e),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",encodeURIComponent(t),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")},SWFUpload.prototype.getMovieElement=function(){if(void 0==this.movieElement&&(this.movieElement=document.getElementById(this.movieName)),null===this.movieElement)throw"Could not find Flash element";return this.movieElement},SWFUpload.prototype.buildParamString=function(){var t=this.settings.post_params,e=[];if("object"===typeof t)for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n.toString())+"="+encodeURIComponent(t[n].toString()));return e.join("&amp;")},SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,!1);var t=null;if(t=this.getMovieElement(),t&&"unknown"===typeof t.CallFunction){for(var e in t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}try{t.parentNode.removeChild(t)}catch(i){}}return window[this.movieName]=null,SWFUpload.instances[this.movieName]=null,delete SWFUpload.instances[this.movieName],this.movieElement=null,this.settings=null,this.customSettings=null,this.eventQueue=null,this.movieName=null,!0}catch(r){return!1}},SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url: ",this.settings.upload_url,"\n","\t","flash_url: ",this.settings.flash_url,"\n","\t","use_query_string: ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error: ",this.settings.requeue_on_error.toString(),"\n","\t","http_success: ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout: ",this.settings.assume_success_timeout,"\n","\t","file_post_name: ",this.settings.file_post_name,"\n","\t","post_params: ",this.settings.post_params.toString(),"\n","\t","file_types: ",this.settings.file_types,"\n","\t","file_types_description: ",this.settings.file_types_description,"\n","\t","file_size_limit: ",this.settings.file_size_limit,"\n","\t","file_upload_limit: ",this.settings.file_upload_limit,"\n","\t","file_queue_limit: ",this.settings.file_queue_limit,"\n","\t","debug: ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching: ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id: ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder: ",this.settings.button_placeholder?"Set":"Not Set","\n","\t","button_image_url: ",this.settings.button_image_url.toString(),"\n","\t","button_width: ",this.settings.button_width.toString(),"\n","\t","button_height: ",this.settings.button_height.toString(),"\n","\t","button_text: ",this.settings.button_text.toString(),"\n","\t","button_text_style: ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding: ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action: ",this.settings.button_action.toString(),"\n","\t","button_disabled: ",this.settings.button_disabled.toString(),"\n","\t","custom_settings: ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned: ",("function"===typeof this.settings.swfupload_loaded_handler).toString(),"\n","\t","file_dialog_start_handler assigned: ",("function"===typeof this.settings.file_dialog_start_handler).toString(),"\n","\t","file_queued_handler assigned: ",("function"===typeof this.settings.file_queued_handler).toString(),"\n","\t","file_queue_error_handler assigned: ",("function"===typeof this.settings.file_queue_error_handler).toString(),"\n","\t","upload_start_handler assigned: ",("function"===typeof this.settings.upload_start_handler).toString(),"\n","\t","upload_progress_handler assigned: ",("function"===typeof this.settings.upload_progress_handler).toString(),"\n","\t","upload_error_handler assigned: ",("function"===typeof this.settings.upload_error_handler).toString(),"\n","\t","upload_success_handler assigned: ",("function"===typeof this.settings.upload_success_handler).toString(),"\n","\t","upload_complete_handler assigned: ",("function"===typeof this.settings.upload_complete_handler).toString(),"\n","\t","debug_handler assigned: ",("function"===typeof this.settings.debug_handler).toString(),"\n"].join(""))},SWFUpload.prototype.addSetting=function(t,e,n){return this.settings[t]=void 0==e?n:e},SWFUpload.prototype.getSetting=function(t){return void 0!=this.settings[t]?this.settings[t]:""},SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement(),returnValue,returnString;try{returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>"),returnValue=eval(returnString)}catch(ex){throw"Call to "+functionName+" failed"}return void 0!=returnValue&&"object"===typeof returnValue.post&&(returnValue=this.unescapeFilePostParams(returnValue)),returnValue},SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")},SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")},SWFUpload.prototype.startUpload=function(t){this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelUpload=function(t,e){!1!==e&&(e=!0),this.callFlash("CancelUpload",[t,e])},SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")},SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")},SWFUpload.prototype.setStats=function(t){this.callFlash("SetStats",[t])},SWFUpload.prototype.getFile=function(t){return"number"===typeof t?this.callFlash("GetFileByIndex",[t]):this.callFlash("GetFile",[t])},SWFUpload.prototype.addFileParam=function(t,e,n){return this.callFlash("AddFileParam",[t,e,n])},SWFUpload.prototype.removeFileParam=function(t,e){this.callFlash("RemoveFileParam",[t,e])},SWFUpload.prototype.setUploadURL=function(t){this.settings.upload_url=t.toString(),this.callFlash("SetUploadURL",[t])},SWFUpload.prototype.setPostParams=function(t){this.settings.post_params=t,this.callFlash("SetPostParams",[t])},SWFUpload.prototype.addPostParam=function(t,e){this.settings.post_params[t]=e,this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.removePostParam=function(t){delete this.settings.post_params[t],this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.setFileTypes=function(t,e){this.settings.file_types=t,this.settings.file_types_description=e,this.callFlash("SetFileTypes",[t,e])},SWFUpload.prototype.setFileSizeLimit=function(t){this.settings.file_size_limit=t,this.callFlash("SetFileSizeLimit",[t])},SWFUpload.prototype.setFileUploadLimit=function(t){this.settings.file_upload_limit=t,this.callFlash("SetFileUploadLimit",[t])},SWFUpload.prototype.setFileQueueLimit=function(t){this.settings.file_queue_limit=t,this.callFlash("SetFileQueueLimit",[t])},SWFUpload.prototype.setFilePostName=function(t){this.settings.file_post_name=t,this.callFlash("SetFilePostName",[t])},SWFUpload.prototype.setUseQueryString=function(t){this.settings.use_query_string=t,this.callFlash("SetUseQueryString",[t])},SWFUpload.prototype.setRequeueOnError=function(t){this.settings.requeue_on_error=t,this.callFlash("SetRequeueOnError",[t])},SWFUpload.prototype.setHTTPSuccess=function(t){"string"===typeof t&&(t=t.replace(" ","").split(",")),this.settings.http_success=t,this.callFlash("SetHTTPSuccess",[t])},SWFUpload.prototype.setAssumeSuccessTimeout=function(t){this.settings.assume_success_timeout=t,this.callFlash("SetAssumeSuccessTimeout",[t])},SWFUpload.prototype.setDebugEnabled=function(t){this.settings.debug_enabled=t,this.callFlash("SetDebugEnabled",[t])},SWFUpload.prototype.setButtonImageURL=function(t){void 0==t&&(t=""),this.settings.button_image_url=t,this.callFlash("SetButtonImageURL",[t])},SWFUpload.prototype.setButtonDimensions=function(t,e){this.settings.button_width=t,this.settings.button_height=e;var n=this.getMovieElement();void 0!=n&&(n.style.width=t+"px",n.style.height=e+"px"),this.callFlash("SetButtonDimensions",[t,e])},SWFUpload.prototype.setButtonText=function(t){this.settings.button_text=t,this.callFlash("SetButtonText",[t])},SWFUpload.prototype.setButtonTextPadding=function(t,e){this.settings.button_text_top_padding=e,this.settings.button_text_left_padding=t,this.callFlash("SetButtonTextPadding",[t,e])},SWFUpload.prototype.setButtonTextStyle=function(t){this.settings.button_text_style=t,this.callFlash("SetButtonTextStyle",[t])},SWFUpload.prototype.setButtonDisabled=function(t){this.settings.button_disabled=t,this.callFlash("SetButtonDisabled",[t])},SWFUpload.prototype.setButtonAction=function(t){this.settings.button_action=t,this.callFlash("SetButtonAction",[t])},SWFUpload.prototype.setButtonCursor=function(t){this.settings.button_cursor=t,this.callFlash("SetButtonCursor",[t])},SWFUpload.prototype.queueEvent=function(t,e){void 0==e?e=[]:e instanceof Array||(e=[e]);var n=this;if("function"===typeof this.settings[t])this.eventQueue.push((function(){this.settings[t].apply(this,e)})),setTimeout((function(){n.executeNextEvent()}),0);else if(null!==this.settings[t])throw"Event handler "+t+" is unknown or is not a function"},SWFUpload.prototype.executeNextEvent=function(){var t=this.eventQueue?this.eventQueue.shift():null;"function"===typeof t&&t.apply(this)},SWFUpload.prototype.unescapeFilePostParams=function(t){var e,n=/[$]([0-9a-f]{4})/i,i={};if(void 0!=t){for(var r in t.post)if(t.post.hasOwnProperty(r)){var o;e=r;while(null!==(o=n.exec(e)))e=e.replace(o[0],String.fromCharCode(parseInt("0x"+o[1],16)));i[e]=t.post[r]}t.post=i}return t},SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(t){return!1}},SWFUpload.prototype.flashReady=function(){var t=this.getMovieElement();t?(this.cleanUp(t),this.queueEvent("swfupload_loaded_handler")):this.debug("Flash called back ready but the flash movie can't be found.")},SWFUpload.prototype.cleanUp=function(t){try{if(this.movieElement&&"unknown"===typeof t.CallFunction)for(var e in this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"),t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}}catch(i){}window["__flash__removeCallback"]=function(t,e){try{t&&(t[e]=null)}catch(n){}}},SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")},SWFUpload.prototype.fileQueued=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("file_queued_handler",t)},SWFUpload.prototype.fileQueueError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("file_queue_error_handler",[t,e,n])},SWFUpload.prototype.fileDialogComplete=function(t,e,n){this.queueEvent("file_dialog_complete_handler",[t,e,n])},SWFUpload.prototype.uploadStart=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("return_upload_start_handler",t)},SWFUpload.prototype.returnUploadStart=function(t){var e;if("function"===typeof this.settings.upload_start_handler)t=this.unescapeFilePostParams(t),e=this.settings.upload_start_handler.call(this,t);else if(void 0!=this.settings.upload_start_handler)throw"upload_start_handler must be a function";void 0===e&&(e=!0),e=!!e,this.callFlash("ReturnUploadStart",[e])},SWFUpload.prototype.uploadProgress=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_progress_handler",[t,e,n])},SWFUpload.prototype.uploadError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_error_handler",[t,e,n])},SWFUpload.prototype.uploadSuccess=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_success_handler",[t,e,n])},SWFUpload.prototype.uploadComplete=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("upload_complete_handler",t)},SWFUpload.prototype.debug=function(t){this.queueEvent("debug_handler",t)},SWFUpload.prototype.debugMessage=function(t){if(this.settings.debug){var e,n=[];if("object"===typeof t&&"string"===typeof t.name&&"string"===typeof t.message){for(var i in t)t.hasOwnProperty(i)&&n.push(i+": "+t[i]);e=n.join("\n")||"",n=e.split("\n"),e="EXCEPTION: "+n.join("\nEXCEPTION: "),SWFUpload.Console.writeLine(e)}else SWFUpload.Console.writeLine(t)}},SWFUpload.Console={},SWFUpload.Console.writeLine=function(t){var e,n;try{e=document.getElementById("SWFUpload_Console"),e||(n=document.createElement("form"),document.getElementsByTagName("body")[0].appendChild(n),e=document.createElement("textarea"),e.id="SWFUpload_Console",e.style.fontFamily="monospace",e.setAttribute("wrap","off"),e.wrap="off",e.style.overflow="auto",e.style.width="700px",e.style.height="350px",e.style.margin="5px",n.appendChild(e)),e.value+=t+"\n",e.scrollTop=e.scrollHeight-e.clientHeight}catch(i){alert("Exception: "+i.name+" Message: "+i.message)}}}(),function(){"function"===typeof SWFUpload&&(SWFUpload.queue={},SWFUpload.prototype.initSettings=function(t){return function(){"function"===typeof t&&t.call(this),this.queueSettings={},this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0,this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler,this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler,this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler,this.settings.upload_start_handler=SWFUpload.queue.uploadStartHandler,this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}}(SWFUpload.prototype.initSettings),SWFUpload.prototype.startUpload=function(t){this.queueSettings.queue_cancelled_flag=!1,this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=!0,this.stopUpload();var t=this.getStats();while(t.files_queued>0)this.cancelUpload(),t=this.getStats()},SWFUpload.queue.uploadStartHandler=function(t){var e;return"function"===typeof this.queueSettings.user_upload_start_handler&&(e=this.queueSettings.user_upload_start_handler.call(this,t)),e=!1!==e,this.queueSettings.queue_cancelled_flag=!e,e},SWFUpload.queue.uploadCompleteHandler=function(t){var e,n=this.queueSettings.user_upload_complete_handler;if(t.filestatus===SWFUpload.FILE_STATUS.COMPLETE&&this.queueSettings.queue_upload_count++,e="function"===typeof n?!1!==n.call(this,t):t.filestatus!==SWFUpload.FILE_STATUS.QUEUED,e){var i=this.getStats();i.files_queued>0&&!1===this.queueSettings.queue_cancelled_flag?this.startUpload():!1===this.queueSettings.queue_cancelled_flag?(this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]),this.queueSettings.queue_upload_count=0):(this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0)}})}(),KindEditor.plugin("pagebreak",(function(t){var e=this,n="pagebreak",i=t.undef(e.pagebreakHtml,'<hr style="page-break-after: always;" class="ke-pagebreak" />');e.clickToolbar(n,(function(){var n=e.cmd,r=n.range;e.focus();var o="br"==e.newlineTag||t.WEBKIT?"":'<span id="__kindeditor_tail_tag__"></span>';if(e.insertHtml(i+o),""!==o){var a=t("#__kindeditor_tail_tag__",e.edit.doc);r.selectNodeContents(a[0]),a.removeAttr("id"),n.select()}}))})),KindEditor.plugin("plainpaste",(function(t){var e=this,n="plainpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><textarea class="ke-textarea" style="width:408px;height:260px;"></textarea></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=a.val();i=t.escape(i),i=i.replace(/ {2}/g," &nbsp;"),i="p"==e.newlineTag?i.replace(/^/,"<p>").replace(/$/,"</p>").replace(/\n/g,"</p><p>"):i.replace(/\n/g,"<br />$&"),e.insertHtml(i).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("preview",(function(t){var e=this,n="preview";e.clickToolbar(n,(function(){e.lang(n+".");var i='<div style="padding:10px 20px;"><iframe class="ke-textarea" frameborder="0" style="width:708px;height:400px;"></iframe></div>',r=e.createDialog({name:n,width:750,title:e.lang(n),body:i}),o=t("iframe",r.div),a=t.iframeDoc(o);a.open(),a.write(e.fullHtml()),a.close(),t(a.body).css("background-color","#FFF"),o[0].contentWindow.focus()}))})),KindEditor.plugin("quickformat",(function(t){var e=this,n="quickformat",i=t.toMap("blockquote,center,div,h1,h2,h3,h4,h5,h6,p");function r(t){var e=t.first();while(e&&e.first())e=e.first();return e}e.clickToolbar(n,(function(){e.focus();var n,o=e.edit.doc,a=e.cmd.range,s=t(o.body).first(),l=[],c=[],u=a.createBookmark(!0);while(s){n=s.next();var d=r(s);d&&"img"==d.name||(i[s.name]?(s.html(s.html().replace(/^(\s|&nbsp;| )+/gi,"")),s.css("text-indent","2em")):c.push(s),(!n||i[n.name]||i[s.name]&&!i[n.name])&&(c.length>0&&l.push(c),c=[])),s=n}t.each(l,(function(e,n){var i=t('<p style="text-indent:2em;"></p>',o);n[0].before(i),t.each(n,(function(t,e){i.append(e)}))})),a.moveToBookmark(u),e.addBookmark()}))})),KindEditor.plugin("table",(function(t){var e=this,n="table",i=e.lang(n+"."),r="ke-zeroborder";function o(t,e){e=e.toUpperCase(),t.css("background-color",e),t.css("color","#000000"===e?"#FFFFFF":"#000000"),t.html(e)}var a=[];function s(n,i){function r(){t.each(a,(function(){this.remove()})),a=[],t(document).unbind("click,mousedown",r),n.unbind("click,mousedown",r)}i.bind("click,mousedown",(function(t){t.stopPropagation()})),i.click((function(i){r();var s=t(this),l=s.pos(),c=t.colorpicker({x:l.x,y:l.y+s.height(),z:811214,selectedColor:t(this).html(),colors:e.colorTable,noColor:e.lang("noColor"),shadowMode:e.shadowMode,click:function(t){o(s,t),r()}});a.push(c),t(document).bind("click,mousedown",r),n.bind("click,mousedown",r)}))}function l(t,e,n){for(var i=0,r=0,o=e.cells.length;r<o;r++){if(e.cells[r]==n)break;i+=e.cells[r].rowSpan-1}return n.cellIndex-i}e.plugin.table={prop:function(a){var l,c=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keRows" style="width:90px;">'+i.cells+"</label>",i.rows+' <input type="text" id="keRows" class="ke-input-text ke-input-number" name="rows" value="" maxlength="4" /> &nbsp; ',i.cols+' <input type="text" class="ke-input-text ke-input-number" name="cols" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> &nbsp; ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> &nbsp; ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> &nbsp; ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="kePadding" style="width:90px;">'+i.space+"</label>",i.padding+' <input type="text" id="kePadding" class="ke-input-text ke-input-number" name="padding" value="" maxlength="4" /> &nbsp; ',i.spacing+' <input type="text" class="ke-input-text ke-input-number" name="spacing" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",'<select id="keAlign" name="align">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> &nbsp; ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),u=e.cmd.range.createBookmark(),d=e.createDialog({name:n,width:500,title:e.lang(n),body:c,beforeRemove:function(){k.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=p.val(),o=f.val(),a=m.val(),s=g.val(),c=v.val(),d=b.val(),h=_.val(),S=y.val(),D=w.val(),C=x.val(),E=t(k[0]).html()||"",A=t(k[1]).html()||"";if(0==i||!/^\d+$/.test(i))return alert(e.lang("invalidRows")),void p[0].focus();if(0==o||!/^\d+$/.test(o))return alert(e.lang("invalidRows")),void f[0].focus();if(!/^\d*$/.test(a))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(s))return alert(e.lang("invalidHeight")),void g[0].focus();if(!/^\d*$/.test(h))return alert(e.lang("invalidPadding")),void _[0].focus();if(!/^\d*$/.test(S))return alert(e.lang("invalidSpacing")),void y[0].focus();if(!/^\d*$/.test(C))return alert(e.lang("invalidBorder")),void x[0].focus();if(l)return""!==a?l.width(a+c):l.css("width",""),void 0!==l[0].width&&l.removeAttr("width"),""!==s?l.height(s+d):l.css("height",""),void 0!==l[0].height&&l.removeAttr("height"),l.css("background-color",A),void 0!==l[0].bgColor&&l.removeAttr("bgColor"),""!==h?l[0].cellPadding=h:l.removeAttr("cellPadding"),""!==S?l[0].cellSpacing=S:l.removeAttr("cellSpacing"),""!==D?l[0].align=D:l.removeAttr("align"),""!==C?l.attr("border",C):l.removeAttr("border"),""===C||"0"===C?l.addClass(r):l.removeClass(r),""!==E?l.attr("borderColor",E):l.removeAttr("borderColor"),e.hideDialog().focus(),e.cmd.range.moveToBookmark(u),e.cmd.select(),void e.addBookmark();var T="";""!==a&&(T+="width:"+a+c+";"),""!==s&&(T+="height:"+s+d+";"),""!==A&&(T+="background-color:"+A+";");var F="<table";""!==T&&(F+=' style="'+T+'"'),""!==h&&(F+=' cellpadding="'+h+'"'),""!==S&&(F+=' cellspacing="'+S+'"'),""!==D&&(F+=' align="'+D+'"'),""!==C&&(F+=' border="'+C+'"'),""!==C&&"0"!==C||(F+=' class="'+r+'"'),""!==E&&(F+=' bordercolor="'+E+'"'),F+=">";for(var B=0;B<i;B++){F+="<tr>";for(var $=0;$<o;$++)F+="<td>"+(t.IE?"&nbsp;":"<br />")+"</td>";F+="</tr>"}F+="</table>",t.IE||(F+="<br />"),e.insertHtml(F),e.select().hideDialog().focus(),e.addBookmark()}}}),h=d.div,p=t('[name="rows"]',h).val(3),f=t('[name="cols"]',h).val(2),m=t('[name="width"]',h).val(100),g=t('[name="height"]',h),v=t('[name="widthType"]',h),b=t('[name="heightType"]',h),_=t('[name="padding"]',h).val(2),y=t('[name="spacing"]',h).val(0),w=t('[name="align"]',h),x=t('[name="border"]',h).val(1),k=t(".ke-input-color",h);if(s(h,k.eq(0)),s(h,k.eq(1)),o(k.eq(0),"#000000"),o(k.eq(1),""),p[0].focus(),p[0].select(),!a&&(l=e.plugin.getSelectedTable(),l)){p.val(l[0].rows.length),f.val(l[0].rows.length>0?l[0].rows[0].cells.length:0),p.attr("disabled",!0),f.attr("disabled",!0);var S,D=l[0].style.width||l[0].width,C=l[0].style.height||l[0].height;void 0!==D&&(S=/^(\d+)((?:px|%)*)$/.exec(D))?(m.val(S[1]),v.val(S[2])):m.val(""),void 0!==C&&(S=/^(\d+)((?:px|%)*)$/.exec(C))&&(g.val(S[1]),b.val(S[2])),_.val(l[0].cellPadding||""),y.val(l[0].cellSpacing||""),w.val(l[0].align||""),x.val(void 0===l[0].border?"":l[0].border),o(k.eq(0),t.toHex(l.attr("borderColor")||"")),o(k.eq(1),t.toHex(l[0].style.backgroundColor||l[0].bgColor||"")),m[0].focus(),m[0].select()}},cellprop:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> &nbsp; ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> &nbsp; ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> &nbsp; ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",i.textAlign+' <select id="keAlign" name="textAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select> ",i.verticalAlign+' <select name="verticalAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="top">'+i.alignTop+"</option>",'<option value="middle">'+i.alignMiddle+"</option>",'<option value="bottom">'+i.alignBottom+"</option>",'<option value="baseline">'+i.alignBaseline+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> &nbsp; ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),a=e.cmd.range.createBookmark(),l=e.createDialog({name:n,width:500,title:e.lang("tablecell"),body:r,beforeRemove:function(){_.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=u.val(),r=d.val(),o=h.val(),s=p.val(),l=(f.val(),m.val(),g.val()),c=v.val(),y=b.val(),x=t(_[0]).html()||"",k=t(_[1]).html()||"";return/^\d*$/.test(i)?/^\d*$/.test(r)?/^\d*$/.test(y)?(w.css({width:""!==i?i+o:"",height:""!==r?r+s:"","background-color":k,"text-align":l,"vertical-align":c,"border-width":y,"border-style":""!==y?"solid":"","border-color":x}),e.hideDialog().focus(),e.cmd.range.moveToBookmark(a),e.cmd.select(),void e.addBookmark()):(alert(e.lang("invalidBorder")),void b[0].focus()):(alert(e.lang("invalidHeight")),void d[0].focus()):(alert(e.lang("invalidWidth")),void u[0].focus())}}}),c=l.div,u=t('[name="width"]',c).val(100),d=t('[name="height"]',c),h=t('[name="widthType"]',c),p=t('[name="heightType"]',c),f=t('[name="padding"]',c).val(2),m=t('[name="spacing"]',c).val(0),g=t('[name="textAlign"]',c),v=t('[name="verticalAlign"]',c),b=t('[name="border"]',c).val(1),_=t(".ke-input-color",c);s(c,_.eq(0)),s(c,_.eq(1)),o(_.eq(0),"#000000"),o(_.eq(1),""),u[0].focus(),u[0].select();var y,w=e.plugin.getSelectedCell(),x=w[0].style.width||w[0].width||"",k=w[0].style.height||w[0].height||"";(y=/^(\d+)((?:px|%)*)$/.exec(x))?(u.val(y[1]),h.val(y[2])):u.val(""),(y=/^(\d+)((?:px|%)*)$/.exec(k))&&(d.val(y[1]),p.val(y[2])),g.val(w[0].style.textAlign||""),v.val(w[0].style.verticalAlign||"");var S=w[0].style.borderWidth||"";S&&(S=parseInt(S)),b.val(S),o(_.eq(0),t.toHex(w[0].style.borderColor||"")),o(_.eq(1),t.toHex(w[0].style.backgroundColor||"")),u[0].focus(),u[0].select()},insert:function(){this.prop(!0)},delete:function(){var t=e.plugin.getSelectedTable();e.cmd.range.setStartBefore(t[0]).collapse(!0),e.cmd.select(),t.remove(),e.addBookmark()},colinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=o.cellIndex+n;a+=i.rows[0].cells.length-r.cells.length;for(var s=0,c=i.rows.length;s<c;s++){var u=i.rows[s],d=u.insertCell(a);d.innerHTML=t.IE?"":"<br />",a=l(i,u,d)}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},colinsertleft:function(){this.colinsert(0)},colinsertright:function(){this.colinsert(1)},rowinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=r.rowIndex;1===n&&(a=r.rowIndex+(o.rowSpan-1)+n);for(var s=i.insertRow(a),l=0,c=r.cells.length;l<c;l++){r.cells[l].rowSpan>1&&(c-=r.cells[l].rowSpan-1);var u=s.insertCell(l);1===n&&r.cells[l].colSpan>1&&(u.colSpan=r.cells[l].colSpan),u.innerHTML=t.IE?"":"<br />"}for(var d=a;d>=0;d--){var h=i.rows[d].cells;if(h.length>l){for(var p=o.cellIndex;p>=0;p--)h[p].rowSpan>1&&(h[p].rowSpan+=1);break}}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},rowinsertabove:function(){this.rowinsert(0)},rowinsertbelow:function(){this.rowinsert(1)},rowmerge:function(){var t=e.plugin.getSelectedTable()[0],n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=n.rowIndex,o=r+i.rowSpan,a=t.rows[o];if(!(t.rows.length<=o)){var s=i.cellIndex;if(!(a.cells.length<=s)){var l=a.cells[s];i.colSpan===l.colSpan&&(i.rowSpan+=l.rowSpan,a.deleteCell(s),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark())}}},colmerge:function(){e.plugin.getSelectedTable()[0];var t=e.plugin.getSelectedRow()[0],n=e.plugin.getSelectedCell()[0],i=(t.rowIndex,n.cellIndex),r=i+1;if(!(t.cells.length<=r)){var o=t.cells[r];n.rowSpan===o.rowSpan&&(n.colSpan+=o.colSpan,t.deleteCell(r),e.cmd.range.selectNodeContents(n).collapse(!0),e.cmd.select(),e.addBookmark())}},rowsplit:function(){var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex;if(1!==r.rowSpan){for(var a=l(n,i,r),s=1,c=r.rowSpan;s<c;s++){var u=n.rows[o+s],d=u.insertCell(a);r.colSpan>1&&(d.colSpan=r.colSpan),d.innerHTML=t.IE?"":"<br />",a=l(n,u,d)}t(r).removeAttr("rowSpan"),e.cmd.range.selectNodeContents(r).collapse(!0),e.cmd.select(),e.addBookmark()}},colsplit:function(){e.plugin.getSelectedTable()[0];var n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=i.cellIndex;if(1!==i.colSpan){for(var o=1,a=i.colSpan;o<a;o++){var s=n.insertCell(r+o);i.rowSpan>1&&(s.rowSpan=i.rowSpan),s.innerHTML=t.IE?"":"<br />"}t(i).removeAttr("colSpan"),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark()}},coldelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=r.cellIndex,a=0,s=n.rows.length;a<s;a++){var l=n.rows[a],c=l.cells[o];c.colSpan>1?(c.colSpan-=1,1===c.colSpan&&t(c).removeAttr("colSpan")):l.deleteCell(o),c.rowSpan>1&&(a+=c.rowSpan-1)}0===i.cells.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()},rowdelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex,a=r.rowSpan-1;a>=0;a--)n.deleteRow(o+a);0===n.rows.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()}},e.clickToolbar(n,e.plugin.table.prop)})),KindEditor.plugin("template",(function(t){var e=this,n="template",i=(e.lang(n+"."),e.pluginsPath+n+"/html/");function r(e){return i+e+"?ver="+encodeURIComponent(t.DEBUG?t.TIME:t.VERSION)}e.clickToolbar(n,(function(){var i=e.lang(n+"."),o=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.selectTemplate+" <select>"];t.each(i.fileList,(function(t,e){o.push('<option value="'+t+'">'+e+"</option>")})),html=[o.join(""),"</select></div>",'<div class="ke-right">','<input type="checkbox" id="keReplaceFlag" name="replaceFlag" value="1" /> <label for="keReplaceFlag">'+i.replaceContent+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<iframe class="ke-textarea" frameborder="0" style="width:458px;height:260px;background-color:#FFF;"></iframe>',"</div>"].join("");var a=e.createDialog({name:n,width:500,title:e.lang(n),body:html,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.iframeDoc(c);e[l[0].checked?"html":"insertHtml"](i.body.innerHTML).hideDialog().focus()}}}),s=t("select",a.div),l=t('[name="replaceFlag"]',a.div),c=t("iframe",a.div);l[0].checked=!0,c.attr("src",r(s.val())),s.change((function(){c.attr("src",r(this.value))}))}))})),KindEditor.plugin("wordpaste",(function(t){var e=this,n="wordpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><iframe class="ke-textarea" frameborder="0" style="width:408px;height:260px;"></iframe></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=l.body.innerHTML;i=t.clearMsWord(i,e.filterMode?e.htmlTags:t.options.htmlTags),e.insertHtml(i).hideDialog().focus()}}}),a=o.div,s=t("iframe",a),l=t.iframeDoc(s);t.IE||(l.designMode="on"),l.open(),l.write("<!doctype html><html><head><title>WordPaste</title></head>"),l.write('<body style="background-color:#FFF;font-size:12px;margin:2px;">'),t.IE||l.write("<br />"),l.write("</body></html>"),l.close(),t.IE&&(l.body.contentEditable="true"),s[0].contentWindow.focus()}))})),KindEditor.plugin("fixtoolbar",(function(t){var e=this;function n(){var e=t(".ke-toolbar"),n=e.pos().y;t(window).bind("scroll",(function(){"fixed"==e.css("position")?document.body.scrollTop-n<0&&(e.css("position","static"),e.css("top","auto")):e.pos().y-document.body.scrollTop<0&&(e.css("position","fixed"),e.css("top",0))}))}e.fixToolBar&&(e.isCreated?n():e.afterCreate(n))}))},"7a43":function(t,e){function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){"use strict";var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"7ba0":function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1===(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},"7bbc":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.SHA1,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,i=s.create(n.hasher,t),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(e).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,b=0;b<f;b++)p[b]^=v[b]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)}}(),t.PBKDF2}))},"7bf0":function(t,e){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},"7c5c":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(this,arguments)}function r(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=r(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t){var e=s(t,"string");return"symbol"===typeof e?e:String(e)}function c(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function u(e){t.defaults=e}t.defaults=c();var d=/[&<>"']/,h=new RegExp(d.source,"g"),p=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,f=new RegExp(p.source,"g"),m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g=function(t){return m[t]};function v(t,e){if(e){if(d.test(t))return t.replace(h,g)}else if(p.test(t))return t.replace(f,g);return t}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _(t){return t.replace(b,(function(t,e){return e=e.toLowerCase(),"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var y=/(^|[^\[])\^/g;function w(t,e){t="string"===typeof t?t:t.source,e=e||"";var n={replace:function(e,i){return i=i.source||i,i=i.replace(y,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n}var x=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(t,e,n){if(t){var i;try{i=decodeURIComponent(_(n)).replace(x,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!k.test(n)&&(n=T(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var D={},C=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(t,e){D[" "+t]||(C.test(t)?D[" "+t]=t+"/":D[" "+t]=$(t,"/",!0)),t=D[" "+t];var n=-1===t.indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(E,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(A,"$1")+e:t+e}var F={exec:function(){}};function B(t,e){var n=t.replace(/\|/g,(function(t,e,n){var i=!1,r=e;while(--r>=0&&"\\"===n[r])i=!i;return i?"|":" |"})),i=n.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else while(i.length<e)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function $(t,e,n){var i=t.length;if(0===i)return"";var r=0;while(r<i){var o=t.charAt(i-r-1);if(o!==e||n){if(o===e||!n)break;r++}else r++}return t.slice(0,i-r)}function L(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,i=0,r=0;r<n;r++)if("\\"===t[r])r++;else if(t[r]===e[0])i++;else if(t[r]===e[1]&&(i--,i<0))return r;return-1}function I(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function M(t,e){if(e<1)return"";var n="";while(e>1)1&e&&(n+=t),e>>=1,t+=t;return n+t}function P(t,e,n,i){var r=e.href,o=e.title?v(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;var s={type:"link",raw:n,href:r,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,s}return{type:"image",raw:n,href:r,title:o,text:v(a)}}function N(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);if(null===e)return t;var n=e[0];return n.length>=i.length?t.slice(i.length):t})).join("\n")}var H=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.space=function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}},n.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$(n,"\n")}}},n.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=N(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:i}}},n.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=$(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},n.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;var r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:e[0],tokens:r,text:n}}},n.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,o,a,s,l,c,u,d,h,p,f=e[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=m?f:"[*+-]");var v=new RegExp("^( {0,3}"+f+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(t){if(p=!1,!(e=v.exec(t)))break;if(this.rules.block.hr.test(t))break;if(n=e[0],t=t.substring(n.length),c=e[2].split("\n",1)[0].replace(/^\t+/,(function(t){return" ".repeat(3*t.length)})),u=t.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=e[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",t=t.substring(u.length+1),p=!0),!p){var b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),_=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");while(t){if(d=t.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(u))break;if(w.test(u))break;if(b.test(u))break;if(_.test(t))break;if(u.search(/[^ ]/)>=o||!u.trim())h+="\n"+u.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(y.test(c))break;if(w.test(c))break;if(_.test(c))break;h+="\n"+u}s||u.trim()||(s=!0),n+=d+"\n",t=t.substring(d.length+1),c=u.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var x=g.items.length;for(a=0;a<x;a++)if(this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]),!g.loose){var k=g.items[a].tokens.filter((function(t){return"space"===t.type})),S=k.length>0&&k.some((function(t){return/\n.*\n/.test(t.raw)}));g.loose=S}if(g.loose)for(a=0;a<x;a++)g.items[a].loose=!0;return g}},n.html=function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){var i=this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}},n.def=function(t){var e=this.rules.block.def.exec(t);if(e){var n=e[1].toLowerCase().replace(/\s+/g," "),i=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:r}}},n.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:B(e[1]).map((function(t){return{text:t}})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var i,r,o,a,s=n.align.length;for(i=0;i<s;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(s=n.rows.length,i=0;i<s;i++)n.rows[i]=B(n.rows[i],n.header.length).map((function(t){return{text:t}}));for(s=n.header.length,r=0;r<s;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(s=n.rows.length,r=0;r<s;r++)for(a=n.rows[r],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return n}}},n.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}},n.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e){var n="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}},n.text=function(t){var e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}},n.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:v(e[1])}},n.tag=function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]):e[0]}},n.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=$(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{var r=L(e[2],"()");if(r>-1){var o=0===e[0].indexOf("!")?5:4,a=o+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,a).trim(),e[3]=""}}var s=e[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],l=c[3])}else l=e[3]?e[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),P(e,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},e[0],this.lexer)}},n.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(i=e[i.toLowerCase()],!i){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return P(n,i,n[0],this.lexer)}},n.emStrong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(t);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;u.lastIndex=0,e=e.slice(-1*t.length+s);while(null!=(i=u.exec(e)))if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],o)if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(l-=a,!(l>0)){a=Math.min(a,a+l+c);var d=t.slice(0,s+i.index+(i[0].length-o.length)+a);if(Math.min(s,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else c+=a}}},n.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=v(n,!0),{type:"codespan",raw:e[0],text:n}}},n.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},n.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}},n.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return"@"===r[2]?(n=v(this.options.mangle?e(r[1]):r[1]),i="mailto:"+n):(n=v(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])i=v(this.options.mangle?e(n[0]):n[0]),r="mailto:"+i;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=v(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},n.inlineText=function(t,e){var n,i=this.rules.inline.text.exec(t);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):v(i[0]):i[0]:v(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:n}},e}(),O={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:F,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=w(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.listItemStart=w(/^( *)(bull) */).replace("bull",O.bullet).getRegex(),O.list=w(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",O._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,O.html=w(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=w(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O._tag).getRegex(),O.blockquote=w(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=i({},O),O.gfm=i({},O.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.table=w(O.gfm.table).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O._tag).getRegex(),O.gfm.paragraph=w(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",O.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O._tag).getRegex(),O.pedantic=i({},O.normal,{html:w("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:F,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:F,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:F,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function z(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function U(t){var e,n,i="",r=t.length;for(e=0;e<r;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=w(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,R._comment=w(O._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=w(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=w(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=w(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=w(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=w(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=w(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=w(R.reflink).replace("label",R._label).replace("ref",O._label).getRegex(),R.nolink=w(R.nolink).replace("ref",O._label).getRegex(),R.reflinkSearch=w(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=i({},R),R.pedantic=i({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:w(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=i({},R.normal,{escape:w(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),R.gfm.url=w(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=i({},R.gfm,{br:w(R.br).replace("{2,}","*").getRegex(),text:w(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:O.normal,inline:R.normal};this.options.pedantic?(n.block=O.pedantic,n.inline=R.pedantic):this.options.gfm&&(n.block=O.gfm,this.options.breaks?n.inline=R.breaks:n.inline=R.gfm),this.tokenizer.rules=n}e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.lexInline=function(t,n){var i=new e(n);return i.inlineTokens(t)};var i=e.prototype;return i.lex=function(t){var e;t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);while(e=this.inlineQueue.shift())this.inlineTokens(e.src,e.tokens);return this.tokens},i.blockTokens=function(t,e){var n,i,r,o,a=this;void 0===e&&(e=[]),t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(function(t,e,n){return e+" ".repeat(n.length)}));while(t)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(i){return!!(n=i.call({lexer:a},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(r=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e=1/0,n=t.slice(1),i=void 0;a.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),this.state.top&&(n=this.tokenizer.paragraph(r)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=r.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,e},i.inline=function(t,e){return void 0===e&&(e=[]),this.inlineQueue.push({src:t,tokens:e}),e},i.inlineTokens=function(t,e){var n,i,r,o=this;void 0===e&&(e=[]);var a,s,l,c=t;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)while(null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c)))u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+M("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,a.index)+"["+M("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,a.index+a[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;while(t)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(i){return!!(n=i.call({lexer:o},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,c,l))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,U))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,U))){if(r=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e=1/0,n=t.slice(1),i=void 0;o.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),n=this.tokenizer.inlineText(r,z))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){var d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else t=t.substring(n.raw.length),e.push(n);return e},n(e,null,[{key:"rules",get:function(){return{block:O,inline:R}}}]),e}(),W=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+v(i)+'">'+(n?t:v(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:v(t,!0))+"</code></pre>\n"},n.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},n.html=function(t){return t},n.heading=function(t,e,n,i){if(this.options.headerIds){var r=this.options.headerPrefix+i.slug(n);return"<h"+e+' id="'+r+'">'+t+"</h"+e+">\n"}return"<h"+e+">"+t+"</h"+e+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(t,e,n){var i=e?"ol":"ul",r=e&&1!==n?' start="'+n+'"':"";return"<"+i+r+">\n"+t+"</"+i+">\n"},n.listitem=function(t){return"<li>"+t+"</li>\n"},n.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(t){return"<p>"+t+"</p>\n"},n.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},n.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},n.tablecell=function(t,e){var n=e.header?"th":"td",i=e.align?"<"+n+' align="'+e.align+'">':"<"+n+">";return i+t+"</"+n+">\n"},n.strong=function(t){return"<strong>"+t+"</strong>"},n.em=function(t){return"<em>"+t+"</em>"},n.codespan=function(t){return"<code>"+t+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(t){return"<del>"+t+"</del>"},n.link=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>",i},n.image=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<img src="'+t+'" alt="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=this.options.xhtml?"/>":">",i},n.text=function(t){return t},e}(),j=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),V=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),q=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new V}e.parse=function(t,n){var i=new e(n);return i.parse(t)},e.parseInline=function(t,n){var i=new e(n);return i.parseInline(t)};var n=e.prototype;return n.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,b,y,w,x="",k=t.length;for(n=0;n<k;n++)if(d=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(w=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))x+=w||"";else switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,_(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,i=0;i<o;i++){for(s=d.rows[i],l="",a=s.length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:d.align[r]});u+=this.renderer.tablerow(l)}x+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,f=d.loose,o=d.items.length,u="",i=0;i<o;i++)g=d.items[i],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);x+=this.renderer.list(u,h,p);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<k&&"text"===t[n+1].type)d=t[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);x+=e?this.renderer.paragraph(u):u;continue;default:var S='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}return x},n.parseInline=function(t,e){e=e||this.renderer;var n,i,r,o="",a=t.length;for(n=0;n<a;n++)if(i=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(r=this.options.extensions.renderers[i.type].call({parser:this},i),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)))o+=r||"";else switch(i.type){case"escape":o+=e.text(i.text);break;case"html":o+=e.html(i.text);break;case"link":o+=e.link(i.href,i.title,this.parseInline(i.tokens,e));break;case"image":o+=e.image(i.href,i.title,i.text);break;case"strong":o+=e.strong(this.parseInline(i.tokens,e));break;case"em":o+=e.em(this.parseInline(i.tokens,e));break;case"codespan":o+=e.codespan(i.text);break;case"br":o+=e.br();break;case"del":o+=e.del(this.parseInline(i.tokens,e));break;case"text":o+=e.text(i.text);break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return o},e}(),Y=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.preprocess=function(t){return t},n.postprocess=function(t){return t},e}();function X(t,e,n){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){var r="<p>An error occurred:</p><pre>"+v(i.message+"",!0)+"</pre>";return e?Promise.resolve(r):n?void n(null,r):r}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}function G(t,e){return function(n,r,o){"function"===typeof r&&(o=r,r=null);var a=i({},r);r=i({},Z.defaults,a);var s=X(r.silent,r.async,o);if("undefined"===typeof n||null===n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(I(r),r.hooks&&(r.hooks.options=r),o){var l,c=r.highlight;try{r.hooks&&(n=r.hooks.preprocess(n)),l=t(n,r)}catch(f){return s(f)}var u=function(t){var n;if(!t)try{r.walkTokens&&Z.walkTokens(l,r.walkTokens),n=e(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(f){t=f}return r.highlight=c,t?s(t):o(null,n)};if(!c||c.length<3)return u();if(delete r.highlight,!l.length)return u();var d=0;return Z.walkTokens(l,(function(t){"code"===t.type&&(d++,setTimeout((function(){c(t.text,t.lang,(function(e,n){if(e)return u(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),d--,0===d&&u()}))}),0))})),void(0===d&&u())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((function(e){return t(e,r)})).then((function(t){return r.walkTokens?Promise.all(Z.walkTokens(t,r.walkTokens)).then((function(){return t})):t})).then((function(t){return e(t,r)})).then((function(t){return r.hooks?r.hooks.postprocess(t):t}))["catch"](s);try{r.hooks&&(n=r.hooks.preprocess(n));var h=t(n,r);r.walkTokens&&Z.walkTokens(h,r.walkTokens);var p=e(h,r);return r.hooks&&(p=r.hooks.postprocess(p)),p}catch(f){return s(f)}}}function Z(t,e,n){return G(K.lex,q.parse)(t,e,n)}Y.passThroughHooks=new Set(["preprocess","postprocess"]),Z.options=Z.setOptions=function(t){return Z.defaults=i({},Z.defaults,t),u(Z.defaults),Z},Z.getDefaults=c,Z.defaults=t.defaults,Z.use=function(){for(var t=Z.defaults.extensions||{renderers:{},childTokens:{}},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){var n=i({},e);if(n.async=Z.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var n=t.renderers[e.name];t.renderers[e.name]=n?function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];var o=e.renderer.apply(this,i);return!1===o&&(o=n.apply(this,i)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer&&function(){var t=Z.defaults.renderer||new W,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.renderer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.renderer)i(r);n.renderer=t}(),e.tokenizer&&function(){var t=Z.defaults.tokenizer||new H,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.tokenizer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.tokenizer)i(r);n.tokenizer=t}(),e.hooks&&function(){var t=Z.defaults.hooks||new Y,i=function(n){var i=t[n];Y.passThroughHooks.has(n)?t[n]=function(r){if(Z.defaults.async)return Promise.resolve(e.hooks[n].call(t,r)).then((function(e){return i.call(t,e)}));var o=e.hooks[n].call(t,r);return i.call(t,o)}:t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.hooks[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.hooks)i(r);n.hooks=t}(),e.walkTokens){var r=Z.defaults.walkTokens;n.walkTokens=function(t){var n=[];return n.push(e.walkTokens.call(this,t)),r&&(n=n.concat(r.call(this,t))),n}}Z.setOptions(n)}))},Z.walkTokens=function(t,e){for(var n,i=[],r=function(){var t=n.value;switch(i=i.concat(e.call(Z,t)),t.type){case"table":for(var r,o=a(t.header);!(r=o()).done;){var s=r.value;i=i.concat(Z.walkTokens(s.tokens,e))}for(var l,c=a(t.rows);!(l=c()).done;)for(var u,d=l.value,h=a(d);!(u=h()).done;){var p=u.value;i=i.concat(Z.walkTokens(p.tokens,e))}break;case"list":i=i.concat(Z.walkTokens(t.items,e));break;default:Z.defaults.extensions&&Z.defaults.extensions.childTokens&&Z.defaults.extensions.childTokens[t.type]?Z.defaults.extensions.childTokens[t.type].forEach((function(n){i=i.concat(Z.walkTokens(t[n],e))})):t.tokens&&(i=i.concat(Z.walkTokens(t.tokens,e)))}},o=a(t);!(n=o()).done;)r();return i},Z.parseInline=G(K.lexInline,q.parseInline),Z.Parser=q,Z.parser=q.parse,Z.Renderer=W,Z.TextRenderer=j,Z.Lexer=K,Z.lexer=K.lex,Z.Tokenizer=H,Z.Slugger=V,Z.Hooks=Y,Z.parse=Z;var Q=Z.options,J=Z.setOptions,tt=Z.use,et=Z.walkTokens,nt=Z.parseInline,it=Z,rt=q.parse,ot=K.lex;t.Hooks=Y,t.Lexer=K,t.Parser=q,t.Renderer=W,t.Slugger=V,t.TextRenderer=j,t.Tokenizer=H,t.getDefaults=c,t.lexer=ot,t.marked=Z,t.options=Q,t.parse=it,t.parseInline=nt,t.parser=rt,t.setOptions=J,t.use=tt,t.walkTokens=et}))},"7daf":function(t,e,n){"use strict";n.r(e),e["default"]='## 选项卡模块\r\n\r\n```\r\n<module :tabs="tabs" @tabChange="">\r\n\t// 通过tabs属性定义标签,页面内容相同仅参数不同时使用\r\n\t// @change 选项卡切换事件\r\n</module>\r\n\r\n<module>\r\n\t// 通过<module-tab>组件定义标签,页面内容不同时使用\r\n\t\r\n\t<module-tab name="选项卡一" @mounted="" @activated="" @deactivated="">\r\n\t\t// @mounted 标签页面首次打开事件\r\n\t\t// @activated 标签页面打开事件\r\n\t\t// @deactivated 标签页面关闭事件\r\n\t</module-tab>\r\n</module>\r\n```'},8009:function(t,e,n){"use strict";n("4ef8")},8177:function(t,e,n){"use strict";n("c2c5")},"81bf":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"825a":function(t,e,n){"use strict";var i=n("861d"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not an object")}},"830f":function(t,e,n){"use strict";n("c046")},"83ab":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var i=n("d925"),r=n("e683");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},8474:function(t,e,n){},"84e8":function(t,e,n){},8506:function(t,e,n){},"861d":function(t,e,n){"use strict";var i=n("1626"),r=n("8ea1"),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===o}:function(t){return"object"==typeof t?null!==t:i(t)}},"870b":function(t,e,n){"use strict";n("75c0")},"88a7":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.append),u=r(l["delete"]),d=r(l.forEach),h=r([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&i(l,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];d(this,(function(t,e){h(i,{key:e,value:t})})),a(e,1);var r,s=o(t),l=o(n),p=0,f=0,m=!1,g=i.length;while(p<g)r=i[p++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<g)r=i[f++],r.key===s&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,n){"use strict";var i=n("e330"),r=n("1626"),o=n("c6cd"),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"89b9":function(t,e,n){},"89e3":function(t,e,n){"use strict";n.r(e),e["default"]='## 多模块\r\n\r\n```\r\n<module title="自适应高度">\r\n\t// 不定义height自适应高度\r\n</module>\r\n\r\n<module title="固定高度" height="200">\r\n\t// 定义height固定高度\r\n</module>\r\n\r\n<module title="自动高度" height="auto">\r\n\t// 定义height为auto根据内容高度变化\r\n</module>\r\n```'},"8ba6":function(t,e,n){"use strict";n("5cb0")},"8bbf":function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8bd4":function(t,e,n){"use strict";n("146c")},"8cef":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8d23":function(t,e,n){const i=n("2732");function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},"8df4":function(t,e,n){"use strict";var i=n("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"8ea1":function(t,e,n){"use strict";var i="object"==typeof document&&document.all,r="undefined"==typeof i&&void 0!==i;t.exports={all:i,IS_HTMLDDA:r}},"8fde":function(t,e,n){"use strict";n.r(e),e["default"]='## 单模块\r\n\r\n```\r\n<module title="标题" sub-title="副标题">\r\n\t<template #head>\r\n\t\t// 头部插槽\r\n\t</template>\r\n\t\r\n\t// 模块内容\r\n\t\r\n\t<template #foot>\r\n\t\t// 底部插槽\r\n\t</template>\r\n\t\r\n\t<template #button>\r\n\t\t// 按钮\r\n\t\t<c-button>按钮一</c-button>\r\n\t\t<c-button>按钮二</c-button>\r\n\t</template>\r\n</module>\r\n```'},"90d8":function(t,e,n){"use strict";var i=n("c65b"),r=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},"90e3":function(t,e,n){"use strict";var i=n("e330"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},"90f9":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 各种列类型\r\n<c-table ref="table">\r\n\t// 拖拽列\r\n\t<c-table-column\r\n\t\ttype="drag"\r\n\t></c-table-column>\r\n\t\r\n\t// 选择列\r\n\t<c-table-column\r\n\t\ttype="selector"\r\n\t></c-table-column>\r\n\t\r\n\t// 展开列\r\n\t<c-table-column\r\n\t\tlabel="展开列"\r\n\t\ttype="expand"\r\n\t></c-table-column>\r\n\t\r\n\t// 排序列\r\n\t<c-table-column\r\n\t\tlabel="排序列"\r\n\t\ttype="sort"\r\n\t></c-table-column>\r\n\t\r\n\t// 操作列\r\n\t<c-table-column\r\n\t\tlabel="操作"\r\n\t\ttype="button"\r\n\t>\r\n\t\t<template #default="{data}">\r\n\t\t\t<c-table-button>按钮</c-table-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n// 其它功能\r\n<c-table ref="table">\r\n\t// 多级表头\r\n\t<c-table-column\r\n\t\tlabel="多级表头"\r\n\t>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头1"\r\n\t\t></c-table-column>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头2"\r\n\t\t></c-table-column>\r\n\t</c-table-column>\r\n\r\n\t// 自定义列头内容\r\n\t<c-table-column>\r\n\t\t<template #head>\r\n\t\t\t<c-button>自定义头部</c-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 自定义单元格内容\r\n\t<c-table-column>\r\n\t\t<template #default="{data}">\r\n\t\t\t<span>id: {{data.id}}</span>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 固定合并行列\r\n\t<c-table-column\r\n\t\trow-span="2" // 固定合并行数\r\n\t\tcol-span="2" // 固定合并列数\r\n\t></c-table-column>\r\n\r\n\t// 动态计算合并行列\r\n\t<c-table-column\r\n\t\t:row-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并行数\r\n\t\t:col-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并列数\r\n\t></c-table-column>\r\n\t\r\n\t// 列数据合计\r\n\t<c-table-column\r\n\t\tsummed // 默认使用单元格的内容进行合计\r\n\t\t:summed="({data}) => {return data.num}" // 也可以传入函数返回自定义合计数据\r\n\t>\r\n\t\t// 自定义合计内容,不需要可不写\r\n\t\t<template #summed="{total}">\r\n\t\t\t合计:{{total}}\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n\r\n// 设置表格数据,和data属性功能相同\r\nthis.$refs.table.setData([...]);\r\n\r\n// 获取表格数据\r\nthis.$refs.table.getData();\r\n\r\n// 获取全部行对象\r\nthis.$refs.table.getRow();\r\n\r\n// 获取选中行数据\r\nthis.$refs.table.getRow(\'selected\');\r\n\r\n// 获取指定序号行数据\r\nthis.$refs.table.getRow(0);\r\nthis.$refs.table.getRow([0, 1, 2]);\r\n\r\n// 获取符合自定义条件的行数据\r\nthis.$refs.table.getRow(item => {\r\n\treturn true; // 这里返回判断条件\r\n});\r\n\r\n// 插入一行数据\r\nthis.$refs.table.push({});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表格主体 <c-table\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 单选框组的值,可使用v-model属性绑定变量\r\npaging | Boolean | true | 是否显示分页栏\r\nborder | Boolean | false | 是否显示边框\r\nfixed-width | Boolean | false | 是否固定列宽\r\n@rowClick | Function | - | 行点击事件\r\n\r\n### 表格列 <c-table-column\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 列类型<br>**drag**: 拖拽列<br>**selector**: 选择列<br>**expand**: 展开列<br>**sort**: 排序列<br>**button**: 操作列\r\nfixed | String | - | 是否固定列<br>**left**: 固定在左侧<br>**right**: 固定在右侧\r\nlabel | String | - | 列名\r\nname | String | - | 列数据字段名\r\nwidth | String | 100 | 列宽\r\nrequired | Boolean | false | 显示必填星号\r\nalign-center | Boolean | false | 内容是否居中\r\nrow-span | Number \\| String \\| Function | - | 合并行数\r\ncol-span | Number \\| String \\| Function | - | 合并列数\r\nsummed | Boolean \\| Function | false | 列合计\r\nmultiple | Boolean | true | 选择列是否支持多选\r\nadd-button | Boolean \\| String \\| Function | false | 是否支持展开列添加子级按钮,可传入字符串定义按钮名称\r\nexpand-limit | String | - | 展开列最大展开层级,\r\nbutton-limit | String | 4 | 操作列最大展示按钮数,多余的按钮自动归为更多\r\n@handle | Function | - | 列操作事件(拖拽列拖拽事件、选择列选择事件、展开列展开事件、排序列排序事件)\r\n@add | Function | - | 展开列添加子级事件'},9112:function(t,e,n){"use strict";var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"924f":function(t,e,n){const i=n("7bf0").getSymbolSize,r=7;e.getPositions=function(t){const e=i(t);return[[0,0],[e-r,0],[0,e-r]]}},"94ca":function(t,e,n){"use strict";var i=n("d039"),r=n("1626"),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"94f8":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[],l=[];(function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var i=2,r=0;while(r<64)t(i)&&(r<8&&(s[r]=n(e.pow(i,.5))),l[r]=n(e.pow(i,1/3)),r++),i++})();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var b=s&u^~s&d,_=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=h+w+b+l[p]+c[p],k=y+_;h=d,d=u,u=s,s=a+x|0,a=o,o=r,r=i,i=x+k|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256}))},9573:function(t,e,n){"use strict";n("9e89")},9582:function(t,e,n){const i=n("7bf0"),r=1335,o=21522,a=i.getBCHDigit(r);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let s=n<<10;while(i.getBCHDigit(s)-a>=0)s^=r<<i.getBCHDigit(s)-a;return(n<<10|s)^o}},9927:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-qrcode></c-qrcode>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 二维码内容\r\nsize | String \\| Number | 300 | 二维码尺寸,包含边距\r\nmargin | String \\| Number | 0 | 边距"},"9abb":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-tooltip tip="提示信息">\n\t<c-button>按钮</c-button>\n\n\t<template #tip>\n\t\t<p>自定义提示内容</p>\n\t</template>\n</c-tooltip>\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntip | String | - | 提示内容\nwidth | Number \\| String | - | 提示信息宽度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向\ncolor | String | black | 颜色<br>**black**: 黑色<br>**white**: 白色\nz-index | String \\| Number | 9999 | 提示信息层级\nclick-event | Boolean | false | 通过点击事件触发'},"9bf2":function(t,e,n){"use strict";var i=n("83ab"),r=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=u(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c9b":function(t,e,n){},"9ca8":function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfcgGiCg4SFhoMBiYqLjI2CjZCRjwFDQkFMPUk7MC4sOQFnoaGJk0OLYmFkAjcqkmiJTgEEBFhgWVplHSmgomekrwFAAR8BV2NbXF0dJ66JPolHVGZfXgMdJbyiv4lKAUZQPzI0GxkdEM0BSThSDDNPHEUTLQ/ZowGTPFEGNRYaTTZTFpBAFyOAhwsHJFBAQsSKiHq+7gF7UeACggQYKihYUiUEOh0rVkRAYQKCgxENQEDcFqmlokm9Ysq0N8llS5gzc0asaRMSTp0yWfb0CQzoTKFDGfFM+vKQU6eBAAA7"},"9d1b":function(t,e,n){"use strict";n.r(e),e["default"]="## 复杂布局\r\n\r\n```\r\n<module>\r\n\t<module-row></module-row>\r\n\t<module-row>\r\n\t\t<module-col></module-col>\r\n\t\t<module-col></module-col>\r\n\t</module-row>\r\n</module>\r\n```"},"9d94":function(t,e,n){const i=n("bbf0"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=i.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=o},"9e89":function(t,e,n){},a04b:function(t,e,n){"use strict";var i=n("c04e"),r=n("d9b5");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},a11b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var i=4*n,r=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a134:function(t,e,n){},a1d8:function(t,e,n){},a29b:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-link>链接名称</c-link>\r\n<c-link></c-link> // 可不写连接名称,不写则展示链接地址\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色\r\nhref | String | - | 链接地址\r\ntarget | String | - | 赋值_blank新窗口打开"},a40e:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],i=0;i<56;i++){var r=a[i]-1;n[i]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var u=o[c]=[],d=l[c];for(i=0;i<24;i++)u[i/6|0]|=n[(s[i]-1+d)%28]<<31-i%6,u[4+(i/6|0)]|=n[28+(s[i+24]-1+d)%28]<<31-i%6;u[0]=u[0]<<1|u[0]>>>31;for(i=1;i<7;i++)u[i]=u[i]>>>4*(i-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(i=0;i<16;i++)h[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^r[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=r._createHelper(d);var f=o.TripleDES=r.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(i.create(n)),this._des2=d.createEncryptor(i.create(r)),this._des3=d.createEncryptor(i.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),t.TripleDES}))},a46c:function(t,e,n){"use strict";n.r(e),e["default"]='## 弹性布局\r\n\r\n```\r\n<c-flex-row margin gap>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n</c-flex-row>\r\n```'},a624:function(t,e,n){"use strict";n("5b48")},a817:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a898:function(t,e,n){"use strict";n("c7ef")},a8ce:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var a=o(e[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=o(t.charCodeAt(r)<<16-r%2*16);return i.create(n,2*e)}}}(),t.enc.Utf16}))},aa63:function(t,e,n){const i=n("7bf0"),r=n("7a43"),o=n("7ba0"),a=n("577e4"),s=n("d6c0"),l=n("924f"),c=n("7903"),u=n("34fc"),d=n("8d23"),h=n("c8aa"),p=n("9582"),f=n("bbf0"),m=n("befa");function g(t,e){const n=t.size,i=l.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],o=i[r][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||n<=e+i))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(i>=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4?t.set(e+i,o+r,!0,!0):t.set(e+i,o+r,!1,!0))}}function v(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2===0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}function b(t,e){const n=s.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],r=n[i][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)-2===n||2===n||-2===i||2===i||0===n&&0===i?t.set(e+n,r+i,!0,!0):t.set(e+n,r+i,!1,!0)}}function _(t,e){const n=t.size,i=h.getEncodedBits(e);let r,o,a;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+n-8-3,a=1===(i>>s&1),t.set(r,o,a,!0),t.set(o,r,a,!0)}function y(t,e,n){const i=t.size,r=p.getEncodedBits(e,n);let o,a;for(o=0;o<15;o++)a=1===(r>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(i-15+o,8,a,!0),o<8?t.set(8,i-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(i-8,8,1,!0)}function w(t,e){const n=t.size;let i=-1,r=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2){6===s&&s--;while(1){for(let n=0;n<2;n++)if(!t.isReserved(r,s-n)){let i=!1;a<e.length&&(i=1===(e[a]>>>o&1)),t.set(r,s-n,i),o--,-1===o&&(a++,o=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}}function x(t,e,n){const r=new o;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),f.getCharCountIndicator(e.mode,t)),e.write(r)}));const a=i.getSymbolTotalCodewords(t),s=u.getTotalCodewordsCount(t,e),l=8*(a-s);r.getLengthInBits()+4<=l&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);const c=(l-r.getLengthInBits())/8;for(let i=0;i<c;i++)r.put(i%2?17:236,8);return k(r,t,e)}function k(t,e,n){const r=i.getSymbolTotalCodewords(e),o=u.getTotalCodewordsCount(e,n),a=r-o,s=u.getBlocksCount(e,n),l=r%s,c=s-l,h=Math.floor(r/s),p=Math.floor(a/s),f=p+1,m=h-p,g=new d(m);let v=0;const b=new Array(s),_=new Array(s);let y=0;const w=new Uint8Array(t.buffer);for(let i=0;i<s;i++){const t=i<c?p:f;b[i]=w.slice(v,v+t),_[i]=g.encode(b[i]),v+=t,y=Math.max(y,t)}const x=new Uint8Array(r);let k,S,D=0;for(k=0;k<y;k++)for(S=0;S<s;S++)k<b[S].length&&(x[D++]=b[S][k]);for(k=0;k<m;k++)for(S=0;S<s;S++)x[D++]=_[S][k];return x}function S(t,e,n,r){let o;if(Array.isArray(t))o=m.fromArray(t);else{if("string"!==typeof t)throw new Error("Invalid data");{let i=e;if(!i){const e=m.rawSplit(t);i=h.getBestVersionForData(e,n)}o=m.fromString(t,i||40)}}const s=h.getBestVersionForData(o,n);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else e=s;const l=x(e,n,o),u=i.getSymbolSize(e),d=new a(u);return g(d,e),v(d),b(d,e),y(d,n,0),e>=7&&_(d,e),w(d,l),isNaN(r)&&(r=c.getBestMask(d,y.bind(null,d,n))),c.applyMask(r,d),y(d,n,r),{modules:d,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,o,a=r.M;return"undefined"!==typeof e&&(a=r.from(e.errorCorrectionLevel,r.M),n=h.from(e.version),o=c.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),S(t,n,a,o)}},aaef:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){
12
+ return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,a,p,y,w,x,k,S,D,C,E,A=this._hash.words,T=d.words,F=h.words,B=s.words,$=l.words,L=c.words,I=u.words;x=o=A[0],k=a=A[1],S=p=A[2],D=y=A[3],C=w=A[4];for(n=0;n<80;n+=1)E=o+t[e+B[n]]|0,E+=n<16?f(a,p,y)+T[0]:n<32?m(a,p,y)+T[1]:n<48?g(a,p,y)+T[2]:n<64?v(a,p,y)+T[3]:b(a,p,y)+T[4],E|=0,E=_(E,L[n]),E=E+w|0,o=w,w=y,y=_(p,10),p=a,a=E,E=x+t[e+$[n]]|0,E+=n<16?b(k,S,D)+F[0]:n<32?v(k,S,D)+F[1]:n<48?g(k,S,D)+F[2]:n<64?m(k,S,D)+F[3]:f(k,S,D)+F[4],E|=0,E=_(E,I[n]),E=E+C|0,x=C,C=D,D=_(S,10),S=k,k=E;E=A[1]+p+D|0,A[1]=A[2]+y+C|0,A[2]=A[3]+w+x|0,A[3]=A[4]+o+k|0,A[4]=A[0]+a+S|0,A[0]=E},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function v(t,e,n){return t&n|e&~n}function b(t,e,n){return t^(e|~n)}function _(t,e){return t<<e|t>>>32-e}n.RIPEMD160=o._createHelper(p),n.HmacRIPEMD160=o._createHmacHelper(p)}(Math),t.RIPEMD160}))},1132:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=e[o>>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,l=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return o(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64}))},1382:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=i._createHelper(l)}(),t.Rabbit}))},"13d2":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),l=n("5e77").CONFIGURABLE,c=n("8925"),u=n("69f3"),d=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),b=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),_=String(String).split("String"),y=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=d(t);return a(i,"source")||(i.source=v(_,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&h(this).source||c(this)}),"toString")},"13e2":function(t,e,n){},"146c":function(t,e,n){},"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},1626:function(t,e,n){"use strict";var i=n("8ea1"),r=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},1638:function(t,e,n){},"17e1":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,i=n.WordArray,r=i.init,o=i.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)};o.prototype=i}}(),t.lib.WordArray}))},"191b":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("94f8"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224}))},"195a":function(t,e,n){"use strict";n("4180")},"19dd":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\n\n```\r\nthis.$preview({\n\tsrc\n})\r\n```\n\n## 配置项\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nsrc | String | - | 媒体文件地址"},"1a2d":function(t,e,n){"use strict";var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},"1ba6":function(t,e,n){"use strict";n("6fc4")},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},"1d80":function(t,e,n){"use strict";var i=n("7234"),r=TypeError;t.exports=function(t){if(i(t))throw r("Can't call method on "+t);return t}},"1e39":function(t,e,n){},"1e71":function(t,e,n){"use strict";n("ed5e")},"21bf":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){var t=t||function(t,i){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof e&&e.crypto&&(r=e.crypto),!r)try{r=n(0)}catch(v){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},l=s.lib={},c=l.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=l.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=i?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=a<<24-(i+o)%4*8}else for(var s=0;s<r;s+=4)e[i+s>>>2]=n[s>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(o());return new u.init(e,t)}}),d=s.enc={},h=d.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new u.init(n,e/2)}},p=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new u.init(n,e)}},f=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},m=l.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,a=this.blockSize,s=4*a,l=o/s;l=e?t.ceil(l):t.max((0|l)-this._minBufferSize,0);var c=l*a,d=t.min(4*c,o);if(c){for(var h=0;h<c;h+=a)this._doProcessBlock(r,h);n=r.splice(0,c),i.sigBytes-=d}return new u.init(n,d)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(l.Hasher=m.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}))}).call(this,n("c8ba"))},"23cb":function(t,e,n){"use strict";var i=n("5926"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"23e7":function(t,e,n){"use strict";var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,d,h,p,f,m=t.target,g=t.global,v=t.stat;if(u=g?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(d in e){if(p=e[d],t.dontCallGetSet?(f=r(u,d),h=f&&f.value):h=u[d],n=c(g?d:m+(v?".":"#")+d,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(u,d,p,t)}}},"241c":function(t,e,n){"use strict";var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},2444:function(t,e,n){"use strict";(function(e){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function s(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}var l={adapter:s(),transformRequest:[function(t,e){return r(e,"Accept"),r(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){l.headers[t]=i.merge(o)})),t.exports=l}).call(this,n("4362"))},"25c5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-progress></c-progress>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | line | 进度条样式<br>**line**: 线形<br>**circle**: 环形\r\ncolor | String | - | 进度条颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nbackground | String | - | 进度条底色\r\nsize | String \\| Number | 100 | 线性进度条的长度或环形进度条直径\r\nline-size | String \\| Number | 6 | 进度条粗细\r\nfont-size | String \\| Number | 14 | 百分比文字大小\r\nrate | String \\| Number \\| Array | 0 | 0-100:进度百分比<br>10,110:当前值,最大值,也可传入数组\r\ndecimal | String \\| Number | 0 | 保留小数位数"},"25f9":function(t,e,n){"use strict";n("1638")},"26b7":function(t,e,n){"use strict";n("8474")},"271a":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.getAll),u=r(l.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||i(l,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=c(this,t);a(e,1);var r=o(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},"271f":function(t,e,n){},2732:function(t,e,n){const i=n("699e");e.mul=function(t,e){const n=new Uint8Array(t.length+e.length-1);for(let r=0;r<t.length;r++)for(let o=0;o<e.length;o++)n[r+o]^=i.mul(t[r],e[o]);return n},e.mod=function(t,e){let n=new Uint8Array(t);while(n.length-e.length>=0){const t=n[0];for(let o=0;o<e.length;o++)n[o]^=i.mul(e[o],t);let r=0;while(r<n.length&&0===n[r])r++;n=n.slice(r)}return n},e.generateECPolynomial=function(t){let n=new Uint8Array([1]);for(let r=0;r<t;r++)n=e.mul(n,new Uint8Array([1,i.exp(r)]));return n}},"27a3":function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2815:function(t,e,n){"use strict";n("dd13")},2992:function(t,e,n){"use strict";n("4973")},"2a66":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},t.pad.ZeroPadding}))},"2b79":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n,i=this.cfg,o=i.hasher.create(),a=r.create(),s=a.words,l=i.keySize,c=i.iterations;while(s.length<l){n&&o.update(n),n=o.update(t).finalize(e),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}});e.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),t.EvpKDF}))},"2ba4":function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},"2d00":function(t,e,n){"use strict";var i,r,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},"2d83":function(t,e,n){"use strict";var i=n("387f");t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f3a":function(t,e,n){const i=n("bbf0"),r=n("7bf0");function o(t){this.mode=i.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13)}},t.exports=o},"30b5":function(t,e,n){"use strict";var i=n("c532");function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},3123:function(t,e,n){},3252:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=n.x64={};a.Word=r.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}})}(),t}))},3278:function(t,e,n){var i;n("c73d"),n("d9e2"),n("14d9"),function(e){t.exports=e()}((function(){var t;return function t(e,n,r){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof i&&i;if(!l&&c)return i(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return o(n||t)}),d,d.exports,t,e,n,r)}return n[s].exports}for(var a="function"==typeof i&&i,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){function i(t,e){for(;t&&t.nodeType!==r;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}e.exports=i},{}],2:[function(t,e,n){function i(t,e,n,i,o){var a=r.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}function r(t,e,n,i){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&i.call(t,n)}}var o=t("./closest");e.exports=i},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function i(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(t))return r(t,e,n);if(s.nodeList(t))return o(t,e,n);if(s.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function o(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function a(t,e,n){return l(document.body,t,e,n)}var s=t("./is"),l=t("delegate");e.exports=i},{"./is":3,delegate:2}],5:[function(t,e,n){function i(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}e.exports=i},{}],6:[function(t,e,n){function i(){}i.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function i(){r.off(t,i),e.apply(n,arguments)}var r=this;return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;for(i;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,a=i.length;o<a;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},e.exports=i},{}],7:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","select"],o);else if(void 0!==i)o(n,e("select"));else{var a={exports:{}};o(a,r.select),r.clipboardAction=a.exports}}(this,(function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(e),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(){function t(e){i(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":o(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=s}))},{select:5}],8:[function(e,n,i){!function(r,o){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],o);else if(void 0!==i)o(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};o(a,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=a.exports}}(this,(function(t,e,n,i){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var c=r(e),u=r(n),d=r(i),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),f=function(t){function e(t,n){o(this,e);var i=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(n),i.listenClick(t),i}return s(e,t),p(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,d.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return l("action",t)}},{key:"defaultTarget",value:function(t){var e=l("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return l("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(u.default);t.exports=f}))},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}))},"342f":function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3452:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("c1bc"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(t){return t}))},"34fc":function(t,e,n){const i=n("7a43"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return o[4*(t-1)+0];case i.M:return o[4*(t-1)+1];case i.Q:return o[4*(t-1)+2];case i.H:return o[4*(t-1)+3];default:return}}},3511:function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},3565:function(t,e,n){t.exports=n.p+"img/empty.png"},"35d5":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-button>按钮</c--button>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsize | String | normal | 按钮尺寸<br>**normal**: 普通按钮<br>**form**: 表单操作按钮\r\ncolor | String | - | 按钮颜色<br>**main**: 主色<br>**lesser**: 辅色<br>**red**: 红色<br>**green**: 绿色<br>**blue**: 蓝色<br>**yellow**: 黄色\r\nhollow | Boolean | false | 是否为中空按钮\r\nprepend-icon | String | - | 前置图标样式名\r\nappend-icon | String | - | 前置图标样式名\r\ndisabled | Boolean | false | 是否禁用按钮\r\n@click | Function | - | 点击事件"},"37f6":function(t,e,n){},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,i,r){return t.config=e,n&&(t.code=n),t.request=i,t.response=r,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},"38ac":function(t,e,n){"use strict";n("4582")},"38ba":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("2b79"))})(0,(function(t){t.lib.Cipher||function(e){var n=t,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?k:y}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),n.mode={}),p=i.BlockCipherMode=r.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=h.CBC=function(){var t=p.extend();function n(t,n,i){var r,o=this._iv;o?(r=o,this._iv=e):r=this._prevBlock;for(var a=0;a<i;a++)t[n+a]^=r[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize;n.call(this,t,e,r),i.encryptBlock(t,e),this._prevBlock=t.slice(e,e+r)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,o=t.slice(e,e+r);i.decryptBlock(t,e),n.call(this,t,e,r),this._prevBlock=o}}),t}(),m=n.pad={},g=m.Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:f,padding:g}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),b=n.format={},_=b.OpenSSL={stringify:function(t){var e,n=t.ciphertext,i=t.salt;return e=i?o.create([1398893684,1701076831]).concat(i).concat(n):n,e.toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:e})}},y=i.SerializableCipher=r.extend({cfg:r.extend({format:_}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=t.createDecryptor(n,i).finalize(e.ciphertext);return r},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),w=n.kdf={},x=w.OpenSSL={execute:function(t,e,n,i){i||(i=o.random(8));var r=u.create({keySize:e+n}).compute(t,i),a=o.create(r.words.slice(e),4*n);return r.sigBytes=4*e,v.create({key:r,iv:a,salt:i})}},k=i.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,t.keySize,t.ivSize);i.iv=r.iv;var o=y.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);i.iv=r.iv;var o=y.decrypt.call(this,t,e,r.key,i);return o}})}()}))},3934:function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=i.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3955:function(t,e,n){},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){"use strict";var i=n("e330");t.exports=i({}.isPrototypeOf)},"3bbe":function(t,e,n){"use strict";var i=n("1626"),r=String,o=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw o("Can't set "+r(t)+" as a prototype")}},"3c65":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("083a"),l=n("3511"),c=1!==[].unshift(0),u=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}},d=c||!u();i({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(t){var e=r(this),n=o(e),i=arguments.length;if(i){l(n+i);var c=n;while(c--){var u=c+i;c in e?e[u]=e[c]:s(e,u)}for(var d=0;d<i;d++)e[d]=arguments[d]}return a(e,n+i)}})},"3d5a":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=i._createHelper(l)}(),t.RabbitLegacy}))},"3eaa":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-draw-sort v-model="sortList" class="flex-wrap">\r\n\t<template #default="{item, id, index}">\r\n\t\t<c-draw-item :key="id" :index="index">\r\n\t\t\t// 内容\r\n\t\t</c-draw-item>\r\n\t</template>\r\n</c-draw-sort>\r\n```'},4006:function(t,e,n){const i=n("45be");function r(t,e){const n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function o(t,e,n){let i=t+e;return"undefined"!==typeof n&&(i+=" "+n),i}function a(t,e,n){let i="",r=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(i+=a?o("M",c+n,.5+u+n):o("m",r,0),r=0,a=!1),c+1<e&&t[l+1]||(i+=o("h",s),s=0)):r++}return i}e.render=function(t,e,n){const o=i.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*o.margin,u=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+r(o.color.dark,"stroke")+' d="'+a(l,s,o.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',p=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+p+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,f),f}},"40d5":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},4146:function(t,e,n){const i=n("45be");function r(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(t,e,n){let a=n,s=e;"undefined"!==typeof a||e&&e.getContext||(a=e,e=void 0),e||(s=o()),a=i.getOptions(a);const l=i.getImageWidth(t.modules.size,a),c=s.getContext("2d"),u=c.createImageData(l,l);return i.qrToImageData(u.data,t,a),r(c,s,l),c.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,i){let r=i;"undefined"!==typeof r||n&&n.getContext||(r=n,n=void 0),r||(r={});const o=e.render(t,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return o.toDataURL(a,s.quality)}},4180:function(t,e,n){},"428b":function(t,e,n){"use strict";n("13e2")},"429b":function(t,e,n){"use strict";n("c600")},"42e6":function(t,e,n){"use strict";n("ab07")},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){"use strict";var i=n("e330"),r=n("d039"),o=n("c6b6"),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"44e7":function(t,e,n){"use strict";var i=n("861d"),r=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===r(t))}},4582:function(t,e,n){},"45be":function(t,e){function n(t){if("number"===typeof t&&(t=t.toString()),"string"!==typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e="undefined"===typeof t.margin||null===t.margin||t.margin<0?4:t.margin,i=t.width&&t.width>=21?t.width:void 0,r=t.scale||4;return{width:i,scale:i?4:r,margin:e,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){const i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){const r=n.modules.size,o=n.modules.data,a=e.getScale(r,i),s=Math.floor((r+2*i.margin)*a),l=i.margin*a,c=[i.color.light,i.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=4*(e*s+n),d=i.color.light;if(e>=l&&n>=l&&e<s-l&&n<s-l){const t=Math.floor((e-l)/a),i=Math.floor((n-l)/a);d=c[o[t*r+i]?1:0]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}},"467f":function(t,e,n){"use strict";var i=n("2d83");t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"47c2":function(t,e,n){},"485a":function(t,e,n){"use strict";var i=n("c65b"),r=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},"495a":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tab-list ref="tabList"></c-tab-list>\r\n\r\n// 切换到指定序号项\r\nthis.$refs.tabList.changeIndex(0);\r\n\r\n// 切换到指定value项\r\nthis.$refs.tabList.changeValue(val);\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntabs | Array | - | 标签列表数据,[{"name": "选项卡一"}, {"name": "选项卡二"}]\r\ntype | String | tab | 选项卡样式<br>**tab**: 普通选项卡<br>**border-tab**: 带边框的选项卡<br>**card**: 卡片式\r\nimmediate | Boolean | true | 是否立即选中第一项\r\n@change | Function(tab) | - | 标签切换事件,返回对应的标签数据'},4973:function(t,e,n){},"4a7b":function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(t,e){return i.isPlainObject(t)&&i.isPlainObject(e)?i.merge(t,e):i.isPlainObject(e)?i.merge({},e):i.isArray(e)?e.slice():e}function c(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(t[r],e[r])}i.forEach(r,(function(t){i.isUndefined(e[t])||(n[t]=l(void 0,e[t]))})),i.forEach(o,c),i.forEach(a,(function(r){i.isUndefined(e[r])?i.isUndefined(t[r])||(n[r]=l(void 0,t[r])):n[r]=l(void 0,e[r])})),i.forEach(s,(function(i){i in e?n[i]=l(t[i],e[i]):i in t&&(n[i]=l(void 0,t[i]))}));var u=r.concat(o).concat(a).concat(s),d=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===u.indexOf(t)}));return i.forEach(d,c),n}},"4ac4":function(t,e,n){},"4acb":function(t,e,n){"use strict";n("61d8")},"4ba9":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)t[e+a]^=o[a]}});return e.Decryptor=n,e}(),t.mode.OFB}))},"4d64":function(t,e,n){"use strict";var i=n("fc6a"),r=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=i(e),c=o(l),u=r(a,c);if(t&&n!==n){while(c>u)if(s=l[u++],s!==s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4e02":function(t,e,n){},"4e91":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-editor></c-editor>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名"},"4eeb":function(t,e,n){"use strict";n("6e13")},"4ef8":function(t,e,n){},"4f25":function(t,e,n){},"50c4":function(t,e,n){"use strict";var i=n("5926"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"50f6":function(t,e,n){},5270:function(t,e,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=r(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5378:function(t,e,n){"use strict";n("4ac4")},5494:function(t,e,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("edd0"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5692:function(t,e,n){"use strict";var i=n("c430"),r=n("c6cd");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){"use strict";var i=n("d066"),r=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},5778:function(t,e,n){},"577e":function(t,e,n){"use strict";var i=n("f5df"),r=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return r(t)}},"577e4":function(t,e){function n(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}n.prototype.set=function(t,e,n,i){const r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},n.prototype.get=function(t,e){return this.data[t*this.size+e]},n.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},n.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=n},"58b4":function(t,e,n){"use strict";t.exports=function(t){for(var e=[],n=t.length,i=0;i<n;i++){var r=t.charCodeAt(i);if(r>=55296&&r<=56319&&n>i+1){var o=t.charCodeAt(i+1);o>=56320&&o<=57343&&(r=1024*(r-55296)+o-56320+65536,i+=1)}r<128?e.push(r):r<2048?(e.push(r>>6|192),e.push(63&r|128)):r<55296||r>=57344&&r<65536?(e.push(r>>12|224),e.push(r>>6&63|128),e.push(63&r|128)):r>=65536&&r<=1114111?(e.push(r>>18|240),e.push(r>>12&63|128),e.push(r>>6&63|128),e.push(63&r|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},5926:function(t,e,n){"use strict";var i=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},5972:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\n\n```\r\n// 消息弹窗\r\nthis.$message({\n\tmessage: '消息弹窗内容'\n})\r\n\r\n// 通知弹窗\nthis.$notice({\n\ttitle: '通知标题',\n\tmessage: '通知弹窗内容',\n\tbutton: [{\n\t\tname: '不再提醒',\n\t\tcallback() {}\n\t}]\n})\r\n\r\n// 确认弹窗\nthis.$confirm({\n\ttitle: '确认弹窗标题',\n\tmessage: '确认弹窗内容',\n\tresolve: () => {},\n\tcancel: () => {}\n})\r\n\r\n// 加载弹窗\nthis.$loading();\r\n```\n\n## 配置项\r\n\r\n### 消息弹窗 $message\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 2500 | 自动消失时长\r\nmask | Boolean | false | 消息弹窗存在时是否允许点击页面其他区域\r\n\r\n### 通知弹窗 $notice\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**success**: 成功<br>**file**: 失败<br>**warn**: 警告\r\ntitle | String | - | 标题\r\nmessage | String | - | 通知内容\r\ntimeout | Number | 1000 | 自动消失时长\r\nbutton | Array | - | 为通知弹窗定义按钮\r\n-- button.name | String | - | 按钮名称\r\n-- button.callback(close) | String | - | 按钮回到函数<br>**close**: 调用该方法可立即关闭通知弹窗\r\n\r\n### 确认弹窗 $confirm\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ntype | String | - | 类型图标<br>**enquire**: 询问<br>**warn**: 警告\r\ntitle | String | \"系统提醒\" | 标题\r\nmessage | String | - | 消息内容\r\nbuttonName | String | \"确定\" | 确定按钮名称\r\ncancelButtonName | String | \"取消\" | 取消按钮名称\r\ncancelButton | Boolean | true | 是否显示取消按钮\r\nresolve | Function | - | 确定按钮回调函数\r\ncancel | Function | - | 取消按钮回调函数\r\n\r\n### 加载弹窗 $loading\r\n\r\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nmessage | String | - | 消息内容\r\ntimeout | Number | 10000 | 自动消失时长"},5980:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){(function(){var e=t,n=e.lib,i=n.Base,r=e.enc,o=r.Utf8,a=e.algo;a.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);e.reset();var i=e.finalize(this._oKey.clone().concat(n));return i}})})()}))},"59ed":function(t,e,n){"use strict";var i=n("1626"),r=n("0d51"),o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not a function")}},"5a08":function(t,e,n){},"5aa3":function(t,e,n){var i={"./button.md":"35d5","./countdown.md":"e3ee","./detail.md":"b74a","./dialog.md":"796e","./drag_sort.md":"3eaa","./editor.md":"4e91","./file.md":"6184","./form.md":"7741","./input.md":"b035","./layout/flex.md":"a46c","./layout/grid.md":"d013","./link.md":"a29b","./module/complex.md":"9d1b","./module/multi.md":"89e3","./module/normal.md":"8fde","./module/tabs.md":"7daf","./options.md":"e6c5","./popup.md":"5972","./preview.md":"19dd","./progress.md":"25c5","./qrcode.md":"9927","./selector.md":"c0c9","./steps.md":"6627","./switch.md":"e474","./tab.md":"495a","./table.md":"90f9","./test.md":"d429","./title.md":"674c","./tooltip.md":"9abb","./tree.md":"6298","./window.md":"d278"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="5aa3"},"5af5":function(t,e,n){"use strict";n("89b9")},"5b48":function(t,e,n){},"5b81":function(t,e,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("e330"),a=n("1d80"),s=n("1626"),l=n("7234"),c=n("44e7"),u=n("577e"),d=n("dc4a"),h=n("90d8"),p=n("0cb2"),f=n("b622"),m=n("c430"),g=f("replace"),v=TypeError,b=o("".indexOf),_=o("".replace),y=o("".slice),w=Math.max,x=function(t,e,n){return n>t.length?-1:""===e?n:b(t,e,n)};i({target:"String",proto:!0},{replaceAll:function(t,e){var n,i,o,f,k,S,D,C,E,A=a(this),T=0,F=0,B="";if(!l(t)){if(n=c(t),n&&(i=u(a(h(t))),!~b(i,"g")))throw v("`.replaceAll` does not allow non-global regexes");if(o=d(t,g),o)return r(o,t,A,e);if(m&&n)return _(u(A),t,e)}f=u(A),k=u(t),S=s(e),S||(e=u(e)),D=k.length,C=w(1,D),T=x(f,k,0);while(-1!==T)E=S?u(e(k,T,f)):p(k,f,T,[],void 0,e),B+=y(f,F,T)+E,F=T+D,T=x(f,k,T+C);return F<f.length&&(B+=y(f,F)),B}})},"5bd0":function(t,e,n){},"5c6c":function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cb0":function(t,e,n){},"5d56":function(t,e,n){"use strict";n("1e39")},"5e77":function(t,e,n){"use strict";var i=n("83ab"),r=n("1a2d"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},"5e90":function(t,e,n){"use strict";n("271f")},6184:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-upload-file></c-upload-file> // 文件上传\r\n<c-upload-file>\r\n\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t<template #tip="{type}">\r\n\t\t<p>自定义的提示说明</p>\r\n\t\t<p>{{type}}</p> // type为根据属性生成的提示说明,例如:"支持格式:图片,mp4"\r\n\t</template>\r\n</c-upload-file>\r\n\r\n<c-file></c-file> // 文件展示\r\n```\r\n\r\n## 属性配置\r\n\r\n### 文件上传 <c-upload-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 文件上传的值,可使用v-model属性绑定变量,multiple为true时可传入逗号隔开的字符串或数组\r\nname | String | - | 字段名\r\ntype | String | - | 支持文件类型<br>**image**: 图片<br>**video**: 视频<br>**word**: word文档<br>**excel**: excel文档<br>**zip**: 压缩包\r\nsize | String \\| Number | - | 文件大小上限,单位MB\r\nmedia | Boolean | false | 是否以媒体预览的方式展示\r\nbutton | String | "上传文件" | 上传按钮文字\r\ntip | String | - | 提示说明\r\nmultiple | Boolean \\| String \\| Number | false | 是否支持上传多个文件,可传入数字限制最多可上传文件数\r\n\r\n### 文件展示 <c-file\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsrc | String | - | 文件地址\r\nmedia | Boolean | false | 是否以媒体预览的方式展示'},"61d8":function(t,e,n){},6286:function(t,e,n){"use strict";n("5778")},6298:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-tree></c-tree>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 节点数据:[{<br>"name": "节点名", <br>"id": "节点值", <br>"pId": "父节点值",<br>"leaf": "是否为叶子节点", <br>"checked": "是否勾选", <br>"data": "自定义数据", <br>"children": "子节点"<br>}]\r\nsimple | Boolean | false | 节点数据是否为简单结构\r\nselect | Boolean \\| Object | false | 节点是否可以选中\r\nselect.unselect | Boolean | true | 选中后是否可以取消选中\r\ncheck | Boolean \\| Object | false | 节点是否可以勾选\r\ncheck.linked | Boolean \\| String | both | 关联方式<br>**false**: 不关联<br>**parent**: 只关联父级<br>**child**: 只关联子级<br>**both**: 都关联\r\nckeck.clickCheck | Boolean | false | 点击节点触发勾选\r\nicon | Boolean | true | 是否显示图标\r\n@load | Function(node, resolve) | - | 加载子节点数据\r\n@click | Function(node) | - | 节点点击事件\r\n@check | Function(node) | - | 节点勾选事件'},6374:function(t,e,n){"use strict";var i=n("da84"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},6460:function(t,e,n){"use strict";n("a134")},"647a":function(t,e,n){"use strict";n("9c9b")},6627:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-steps></c-steps>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nsteps | Array | - | 步骤数据:[{"name": "步骤名", "message": "步骤描述,可不填"}]\r\nactive | String \\| Number | 1 | 当前步骤\r\ngap | String \\| Number | 100 | 步骤节点之间的距离'},"674c":function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-title>标题名称</c-title>\r\n```"},"67dd":function(t,e){t.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},6864:function(t,e,n){"use strict";n("6c23")},"699e":function(t,e){const n=new Uint8Array(512),i=new Uint8Array(256);(function(){let t=1;for(let e=0;e<255;e++)n[e]=t,i[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},e.exp=function(t){return n[t]},e.mul=function(t,e){return 0===t||0===e?0:n[i[t]+i[e]]}},"69b1":function(t,e,n){},"69f3":function(t,e,n){"use strict";var i,r,o,a=n("cdce"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("1a2d"),d=n("c6cd"),h=n("f772"),p=n("d012"),f="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},b=function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,i=function(t,e){if(_.has(t))throw m(f);return e.facade=t,_.set(t,e),e},r=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var y=h("state");p[y]=!0,i=function(t,e){if(u(t,y))throw m(f);return e.facade=t,c(t,y,e),e},r=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:b}},"6a16":function(t,e,n){"use strict";n("3123")},"6c23":function(t,e,n){},"6d08":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return r.create({ciphertext:e})}}}(),t.format.Hex}))},"6d4f":function(t,e,n){"use strict";n("84e8")},"6ddf":function(t,e,n){"use strict";n("c6ce")},"6e13":function(t,e,n){},"6f19":function(t,e,n){"use strict";var i=n("9112"),r=n("0d26"),o=n("b980"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"6fc4":function(t,e,n){},"70f6":function(t,e,n){"use strict";n("47c2")},7156:function(t,e,n){"use strict";var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},7185:function(t,e,n){"use strict";n("e84a")},7234:function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},7282:function(t,e,n){"use strict";var i=n("e330"),r=n("59ed");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},"72fe":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=t[e+0],l=t[e+1],p=t[e+2],f=t[e+3],m=t[e+4],g=t[e+5],v=t[e+6],b=t[e+7],_=t[e+8],y=t[e+9],w=t[e+10],x=t[e+11],k=t[e+12],S=t[e+13],D=t[e+14],C=t[e+15],E=o[0],A=o[1],T=o[2],F=o[3];E=c(E,A,T,F,a,7,s[0]),F=c(F,E,A,T,l,12,s[1]),T=c(T,F,E,A,p,17,s[2]),A=c(A,T,F,E,f,22,s[3]),E=c(E,A,T,F,m,7,s[4]),F=c(F,E,A,T,g,12,s[5]),T=c(T,F,E,A,v,17,s[6]),A=c(A,T,F,E,b,22,s[7]),E=c(E,A,T,F,_,7,s[8]),F=c(F,E,A,T,y,12,s[9]),T=c(T,F,E,A,w,17,s[10]),A=c(A,T,F,E,x,22,s[11]),E=c(E,A,T,F,k,7,s[12]),F=c(F,E,A,T,S,12,s[13]),T=c(T,F,E,A,D,17,s[14]),A=c(A,T,F,E,C,22,s[15]),E=u(E,A,T,F,l,5,s[16]),F=u(F,E,A,T,v,9,s[17]),T=u(T,F,E,A,x,14,s[18]),A=u(A,T,F,E,a,20,s[19]),E=u(E,A,T,F,g,5,s[20]),F=u(F,E,A,T,w,9,s[21]),T=u(T,F,E,A,C,14,s[22]),A=u(A,T,F,E,m,20,s[23]),E=u(E,A,T,F,y,5,s[24]),F=u(F,E,A,T,D,9,s[25]),T=u(T,F,E,A,f,14,s[26]),A=u(A,T,F,E,_,20,s[27]),E=u(E,A,T,F,S,5,s[28]),F=u(F,E,A,T,p,9,s[29]),T=u(T,F,E,A,b,14,s[30]),A=u(A,T,F,E,k,20,s[31]),E=d(E,A,T,F,g,4,s[32]),F=d(F,E,A,T,_,11,s[33]),T=d(T,F,E,A,x,16,s[34]),A=d(A,T,F,E,D,23,s[35]),E=d(E,A,T,F,l,4,s[36]),F=d(F,E,A,T,m,11,s[37]),T=d(T,F,E,A,b,16,s[38]),A=d(A,T,F,E,w,23,s[39]),E=d(E,A,T,F,S,4,s[40]),F=d(F,E,A,T,a,11,s[41]),T=d(T,F,E,A,f,16,s[42]),A=d(A,T,F,E,v,23,s[43]),E=d(E,A,T,F,y,4,s[44]),F=d(F,E,A,T,k,11,s[45]),T=d(T,F,E,A,C,16,s[46]),A=d(A,T,F,E,p,23,s[47]),E=h(E,A,T,F,a,6,s[48]),F=h(F,E,A,T,b,10,s[49]),T=h(T,F,E,A,D,15,s[50]),A=h(A,T,F,E,g,21,s[51]),E=h(E,A,T,F,k,6,s[52]),F=h(F,E,A,T,f,10,s[53]),T=h(T,F,E,A,w,15,s[54]),A=h(A,T,F,E,l,21,s[55]),E=h(E,A,T,F,_,6,s[56]),F=h(F,E,A,T,C,10,s[57]),T=h(T,F,E,A,v,15,s[58]),A=h(A,T,F,E,S,21,s[59]),E=h(E,A,T,F,m,6,s[60]),F=h(F,E,A,T,x,10,s[61]),T=h(T,F,E,A,p,15,s[62]),A=h(A,T,F,E,y,21,s[63]),o[0]=o[0]+E|0,o[1]=o[1]+A|0,o[2]=o[2]+T|0,o[3]=o[3]+F|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var o=e.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,i,r,o,a){var s=t+(e&n|~e&i)+r+a;return(s<<o|s>>>32-o)+e}function u(t,e,n,i,r,o,a){var s=t+(e&i|n&~i)+r+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,i,r,o,a){var s=t+(e^n^i)+r+a;return(s<<o|s>>>32-o)+e}function h(t,e,n,i,r,o,a){var s=t+(n^(e|~i))+r+a;return(s<<o|s>>>32-o)+e}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),t.MD5}))},7418:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"75c0":function(t,e,n){},7741:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n// 普通表单\r\n<c-form ref=\"form\">\r\n\t<c-form-item>\r\n\t\t// 表单项内容写在组件内部,输入框、单复选框、选择器和文件上传组件定义name属性后即可通过get方法获取数据\r\n\t\t<c-input name=\"name\"></c-input>\r\n\t\t\r\n\t\t// 如需要自定义提示说明,可在组件中插入以下代码\r\n\t\t<template #tip>\r\n\t\t\t<p>自定义提示信息</p>\r\n\t\t</template>\r\n\t\t\r\n\t\t// 表单项操作\r\n\t\t<template #handle>\r\n\t\t\t<c-link>跳转链接</c-link>\r\n\t\t</template>\r\n\t</c-form-item>\r\n</c-form>\r\n\r\n// 多列表单\r\n<c-form ref=\"form\">\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n\t\r\n\t<c-form-column>\r\n\t\t<c-form-item></c-form-item>\r\n\t</c-form-column>\r\n</c-form>\r\n\r\n// 表单项多列表单\r\n<c-form ref=\"form\" column=\"2\">\r\n\t<c-form-item></c-form-item>\r\n\t<c-form-item></c-form-item>\r\n</c-form>\r\n\r\n// 嵌套表单\r\n<c-form ref=\"form\">\r\n\t// 当一个子表单处于另一个父表单内时,可以定义子表单的name属性,获取父表单的数据时会将子表单的数据封装在对应的name字段中;不定义name属性则将父子表单的数据合并\r\n\t<c-form name=\"subForm\"></c-form>\r\n\t\r\n\t// 父表单获取到的数据为\r\n\t// {\r\n\t// \t...父表单的数据,\r\n\t// \tsubForm: {\r\n\t// \t\t...子表单的数据\r\n\t// \t}\r\n\t// }\r\n</c-form>\r\n\r\n// 回填数据\r\nthis.$refs.form.set({\r\n\tname: 'value'\r\n});\r\n\r\n// 获取数据\r\nthis.$refs.form.get();\r\n\r\n// 清空数据\r\nthis.$refs.form.clear();\r\n\r\n// 提交数据\r\nthis.$refs.form.submit({\r\n\turl: '', // 接口地址\r\n\t\r\n\t// 校验规则\r\n\trule: {\r\n\t\tname: '提示信息', // 仅校验非空可简写\r\n\t\t\r\n\t\tname: [...check], // 仅定义校验项可简写\r\n\r\n\t\tname: { // 完整配置项\r\n\t\t\tcheck: [{\r\n\t\t\t\ttype: 'empty', // 非空校验\r\n\t\t\t\tmessage: '提示信息, // 提示信息\r\n\t\t\t\tskip: (value, data) {} // 跳过字段单项校验\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'regexp', // 正则校验\r\n\t\t\t\tregexp: ['phone', 'email'] // 正则表达式,满足其一即通过校验(phone: 手机号; tel: 固定电话; email: 邮箱; realname: 姓名; idcard: 身份证号; username: 用户名; password: 密码)\r\n\t\t\t}, {\r\n\t\t\t\ttype: 'function', // 自定义函数校验\r\n\t\t\t\tfun: (value, data) => {} // 校验函数,参数value为该字段的值,参数data为表单数据\r\n\t\t\t}],\r\n\t\t\tskip: (value, data) {}, // 跳过字段校验\r\n\t\t\tfail: (value, data) {} // 字段校验未通过回调\r\n\t\t},\r\n\r\n\t\tname: data => { // 复杂表单项校验,name对应c-form-item组件的name属性\r\n\t\t\treturn true; // 成功返回true\r\n\t\t\treturn '错误信息'; // 失败返回错误信息\r\n\t\t}\r\n\t},\r\n\r\n\t// 校验前处理数据\r\n\tbeforeValid: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交前处理数据\r\n\tdataFormatter: data => {\r\n\t\treturn data;\r\n\t},\r\n\t\r\n\t// 提交成功\r\n\tsuccess: (data, res, msg) => {},\r\n\r\n\t// 校验或提交失败\r\n\tfail: (data, code, res, msg) => {}\r\n});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表单 <c-form\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ncolumn | String | 1 | 表单项多列展示\r\nvertical | Boolean | false | 表单项纵向排列\r\nunit-width | String | - | 表单项控件区域宽度\r\nname | String | - | 表单数据字段名\r\nlink-parent | Boolean | false | 子表单是否联动父表单的column、vertical、unit-width属性\r\n\r\n### 表单项 <c-form-item\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\nrequired | Boolean | false | 字段名是否带*号\r\nwidth | String | - | 表单项控件区域宽度\r\ntip | String | - | 提示说明"},"77a0":function(t,e,n){(function(e,i){t.exports=i(n("8bbf"))})(0,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};function s(){if(c())return!1;var t=navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/")}var l=function(){if(c())return!1;var t=navigator.userAgent;return!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},c=function(){return t.prototype.$isServer},u=function(){function t(){n(this,t)}return i(t,[{key:"getEventObject",value:function(t){return this.touchObject?this.isTouch?t.touches:[t]:null}},{key:"getTouchObject",value:function(){if(c())return null;this.isTouch=!1;var t=navigator.userAgent,e=navigator.platform,n={};switch(n.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.nonDeskTouch=n.touch&&!/win32/i.test(e)||n.touch&&/win32/i.test(e)&&/mobile/i.test(t),n.eventType="onmousedown"in window&&!n.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||navigator.msMaxTouchPoints>0?"mstouchpoints":"maxtouchpoints"in window.navigator||navigator.maxTouchPoints>0?"touchpoints":"mouse",n.eventType){case"mouse":n.touchstart="mousedown",n.touchend="mouseup",n.touchmove="mousemove",n.touchenter="mouseenter",n.touchmove="mousemove",n.touchleave="mouseleave";break;case"touch":n.touchstart="touchstart",n.touchend="touchend",n.touchmove="touchmove",n.touchcancel="touchcancel",n.touchenter="touchstart",n.touchmove="touchmove",n.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":n.touchstart="MSPointerDown",n.touchend="MSPointerUp",n.touchmove="MSPointerMove",n.touchcancel="MSPointerCancel",n.touchenter="MSPointerDown",n.touchmove="MSPointerMove",n.touchleave="MSPointerUp";break;case"touchpoints":n.touchstart="pointerdown",n.touchend="pointerup",n.touchmove="pointermove",n.touchcancel="pointercancel",n.touchenter="pointerdown",n.touchmove="pointermove",n.touchleave="pointerup";break}return this.touchObject=n}}]),t}(),d=function(){function t(){var e=this;n(this,t),this.originPixelRatio=this.getRatio(),this.lastPixelRatio=this.originPixelRatio,window.addEventListener("resize",(function(){e.lastPixelRatio=e.getRatio()}))}return i(t,[{key:"getRatio",value:function(){var t=0,e=window.screen,n=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?t=window.devicePixelRatio:~n.indexOf("msie")?e.deviceXDPI&&e.logicalXDPI&&(t=e.deviceXDPI/e.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(t=window.outerWidth/window.innerWidth),t&&(t=Math.round(100*t)),t}},{key:"getRatioBetweenPreAndCurrent",value:function(){return this.originPixelRatio/this.lastPixelRatio}}]),t}();function h(t,n,i){if(i&&T(n))return t;if(E(t))n=[],t.forEach((function(t,e){n[e]=h(t,n[e])}));else if(t){if(!A(t))return t;for(var r in n={},t)n[r]="object"===e(t[r])?h(t[r],n[r]):t[r]}return n}function p(t,n,i,r){if(r&&T(n))return t;if(n=n||{},E(t))!E(n)&&i&&(n=[]),E(n)&&t.forEach((function(t,e){n[e]=p(t,n[e],i,r)}));else if(t)if(A(t))for(var o in t)"object"===e(t[o])?T(n[o])?n[o]=h(t[o],n[o],r):p(t[o],n[o],i,r):(T(n[o])||i)&&(n[o]=t[o]);else i&&(n=t);return n}function f(t,e,n,i){(n[e]||"function"===typeof n)&&(i=i||e,Object.defineProperty(t,e,{get:function(){return n[i]},configurable:!0}))}var m=void 0,g=void 0;function v(){if(c())return 0;if(g||(g=new d),void 0!==m)return m*g.getRatioBetweenPreAndCurrent();var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var i=n.offsetWidth;return t.parentNode.removeChild(t),m=e-i,g||(g=new d),m*g.getRatioBetweenPreAndCurrent()}function b(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"on";"on"==r?t.addEventListener(e,n,i):t.removeEventListener(e,n,i)}var _=function(t){console.error("[vuescroll] "+t)},y=function(t){console.warn("[vuescroll] "+t)};function w(t,e){var n=!1;if(!t||!e)return n;while(t.parentNode!==e&&9!==t.parentNode.nodeType&&!t.parentNode._isVuescroll)t=t.parentNode;return t.parentNode==e&&(n=!0),n}function x(t){var e,n=document.documentElement.style;t.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?e="presto":"MozAppearance"in n?e="gecko":"WebkitAppearance"in n?e="webkit":"string"===typeof navigator.cpuClass&&(e="trident");var i={trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[e];return i}function k(t,e){if(c())return!1;var n="-"+x(window)+"-"+e,i=document.createElement("div");return i.style[t]=n,i.style[t]==n&&n}function S(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4];if(e&&e.length>1)return r?[].concat(a(n),a(e)):[].concat(a(e),a(n));e=e[0];var o=D(e),s=o.ch,l=o.tag,c=o.isComponent;return c&&(e.data=p({attrs:e.componentOptions.propsData},e.data,!1,!0)),s=r?[].concat(a(n),a(s)):[].concat(a(s),a(n)),delete e.data.slot,t(l,p(i,e.data,!1,!0),s)}function D(t){if(!t||t.length>1)return{};t=t[0]?t[0]:t;var e=!!t.componentOptions,n=void 0,i=void 0;return e?(n=t.componentOptions.children||[],i=t.componentOptions.tag):(n=t.children||[],i=t.tag),{isComponent:e,ch:n,tag:i}}function C(t){var e=t.$parent;return!e._isVuescrollRoot&&e&&(e=e.$parent),e}var E=function(t){return Array.isArray(t)},A=function(t){return"[object Object]"==Object.prototype.toString.call(t)},T=function(t){return"undefined"===typeof t};function F(t,e){var n=void 0;return(n=/(-?\d+(?:\.\d+?)?)%$/.exec(t))?(n=n[1]-0,n=e*n/100):n=t-0,n}function B(t,e){if(!c()&&!document.getElementById(t)){var n=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=t,i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),n.appendChild(i)}}function $(){var t=".__hidebar::-webkit-scrollbar {\n width: 0;\n height: 0;\n }";B("vuescroll-hide-ios-bar",t)}function L(){var t="\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ";B("vuescroll-silde-mode-style",t)}var I={mounted:function(){M[this._uid]=this},beforeDestroy:function(){delete M[this._uid]},methods:{scrollTo:function(t,e,n){var i=t.x,r=t.y;!0!==e&&"undefined"!=typeof e||(e=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,e,n)},scrollBy:function(t,e,n){var i=t.dx,r=void 0===i?0:i,o=t.dy,a=void 0===o?0:o,s=this.getPosition(),l=s.scrollLeft,c=void 0===l?0:l,u=s.scrollTop,d=void 0===u?0:u;r&&(c+=F(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),a&&(d+=F(a,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,d,e,n)},scrollIntoView:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.$el;if("string"===typeof t&&(t=n.querySelector(t)),w(t,n)){var i=this.$el.getBoundingClientRect(),r=i.left,o=i.top,a=t.getBoundingClientRect(),s=a.left,l=a.top,c=r-s,u=o-l;this.scrollBy({dx:-c,dy:-u},e)}else y("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},M={};function P(){for(var t in M)M[t].refresh()}var N={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};function H(t){var e=!1,n=t.scrollPanel,i=t.bar,r=i.vBar,o=i.hBar,a=t.rail,s=a.vRail,l=a.hRail,c=n["initialScrollY"],u=n["initialScrollX"];return c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),u&&!String(u).match(/^\d+(\.\d+)?(%)?$/)&&y("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||o||s||l)&&y("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),O&&(O=[].concat(O),O.forEach((function(n){n(t)&&(e=!0)}))),e}var O=null,R=function(t,e){t=[].concat(t),t.forEach((function(t){p(t,N)})),O=e},z=["slide","native"],U=function(){},K=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],W="refreshDom",j="loadDom",V={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function q(t){var e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame,n=!!e;if(e&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(e.toString())&&(n=!1),n)return function(t,n){e(t,n)};var i=60,r={},o=1,a=null,s=+new Date;return function(t){var e=o++;return r[e]=t,null===a&&(a=setInterval((function(){var t=+new Date,e=r;for(var n in r={},e)e.hasOwnProperty(n)&&(e[n](t),s=t);t-s>2500&&(clearInterval(a),a=null)}),1e3/i)),e}}var Y={},X=/rgb\(/,G=/rgb\((.*)\)/;function Z(t,e){var n=t+"&"+e;if(Y[n])return Y[n];var i=document.createElement("div");i.style.background=t,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),X.test(r)?Y[n]="rgba("+G.exec(r)[1]+", "+e+")":t}var Q={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return V[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(t){var e,n,i,o=this,a=Z(o.ops.rail.background,o.ops.rail.opacity);this.touchManager||(this.touchManager=new u);var s,l=o.ops.rail.size,c=o.otherBarHide?0:l,d=o.touchManager.getTouchObject(),h={class:"__rail-is-"+o.type,style:(e={position:"absolute","z-index":"1",borderRadius:o.ops.rail.specifyBorderRadius||l,background:a,border:o.ops.rail.border},r(e,o.bar.opsSize,l),r(e,o.bar.posName,o.ops.rail["gutterOfEnds"]||0),r(e,o.bar.opposName,o.ops.rail["gutterOfEnds"]||c),r(e,o.bar.sidePosName,o.ops.rail["gutterOfSide"]),e)};d&&(h.on=(s={},r(s,d.touchenter,(function(){o.setRailHover()})),r(s,d.touchleave,(function(){o.setRailLeave()})),s));var p=o.ops.scrollButton.enable?l:0,f={class:"__bar-wrap-is-"+o.type,style:(n={position:"absolute",borderRadius:o.ops.rail.specifyBorderRadius||l},r(n,o.bar.posName,p),r(n,o.bar.opposName,p),n),on:{}},m=o.state.posValue*o.state.size,g=m*o.barRatio/o.barSize,v=o.state.opacity,b=C(this);b.setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!v);var _=(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r(i,o.bar.size,100*o.barSize+"%"),r(i,"background",o.ops.bar.background),r(i,o.bar.opsSize,o.ops.bar.size),r(i,"opacity",v),r(i,"transform","translate"+V[o.type].axis+"("+g+"%)"),i),y={style:_,class:"__bar-is-"+o.type,ref:"thumb",on:{}};"vertical"==o.type?(f.style.width="100%",y.style.left=0,y.style.right=0):(f.style.height="100%",y.style.top=0,y.style.bottom=0);var w=this.touchManager.getTouchObject();return y.on[w.touchstart]=this.createBarEvent(),f.on[w.touchstart]=this.createTrackEvent(),t("div",h,[this.createScrollbarButton(t,"start"),this.hideBar?null:t("div",f,[t("div",y)]),this.createScrollbarButton(t,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover||(e.isRailHover=!0,t.showBar())},setRailLeave:function(){var t=C(this),e=t.vuescroll.state;e.isRailHover=!1,t.hideBar()},setBarDrag:function(t){this.$emit("setBarDrag",this.isBarDragging=t);var e=C(this);e.setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!t)},createBarEvent:function(){var t=this,e=C(t),n=t.touchManager.getTouchObject();function i(e){var i=t.touchManager.getEventObject(e);i&&(e.stopImmediatePropagation(),e.preventDefault(),i=i[0],document.onselectstart=function(){return!1},t.axisStartPos=i[t.bar.client]-t.$refs["thumb"].getBoundingClientRect()[t.bar.posName],t.setBarDrag(!0),b(document,n.touchmove,o),b(document,n.touchend,a))}function o(n){if(t.axisStartPos){var i=t.touchManager.getEventObject(n);if(i){i=i[0];var o=t.$refs.thumb.parentNode,a=i[t.bar.client]-o.getBoundingClientRect()[t.bar.posName];a/=t.barRatio;var s=(a-t.axisStartPos)/o[t.bar.offset];e.scrollTo(r({},t.bar.axis.toLowerCase(),e.scrollPanelElm[t.bar.scrollSize]*s),!1)}}}function a(){t.setBarDrag(!1),e.hideBar(),document.onselectstart=null,t.axisStartPos=0,b(document,n.touchmove,o,!1,"off"),b(document,n.touchend,a,!1,"off")}return i},createTrackEvent:function(){var t=this;return function(e){var n=C(t),i=t.bar,o=i.client,a=i.offset,s=i.posName,l=i.axis,c=t.$refs["thumb"];if(e.preventDefault(),e.stopImmediatePropagation(),c){var u=c[a],d=t.touchManager.getEventObject(e)[0],h=(d[o]-e.currentTarget.getBoundingClientRect()[s]-u/2)/(e.currentTarget[a]-u);n.scrollTo(r({},l.toLowerCase(),100*h+"%"))}}},createScrollbarButton:function(t,e){var n,i=this;if(!i.ops.scrollButton.enable)return null;var o=i.ops.rail.size,a=i.ops.scrollButton,s=a.opacity,l=a.background,c=Z(l,s),u={class:["__bar-button","__bar-button-is-"+i.type+"-"+e],style:(n={},r(n,i.bar.scrollButton[e],0),r(n,"width",o),r(n,"height",o),r(n,"position","absolute"),r(n,"cursor","pointer"),r(n,"display","table"),n),ref:e},d={class:"__bar-button-inner",style:{border:"calc("+o+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==e?(d.style["border-bottom-color"]=c,d.style["transform"]="translateY(-25%)"):(d.style["border-top-color"]=c,d.style["transform"]="translateY(25%)"):"start"==e?(d.style["border-right-color"]=c,d.style["transform"]="translateX(-25%)"):(d.style["border-left-color"]=c,d.style["transform"]="translateX(25%)");var h=this.touchManager.getTouchObject();return d.on[h.touchstart]=this.createScrollButtonEvent(e,h),t("div",u,[t("div",d)])},createScrollButtonEvent:function(t,e){var n=this,i=C(n),o=n.ops.scrollButton,a=o.step,s=o.mousedownStep,l="start"==t?-a:a,c="start"==t?-s:s,u=q(window),d=n.type,h=!1,p=!0,f=void 0;function m(o){if(3!=o.which){if(i.setClassHook("cliking"+d+t+"Button",!0),o.stopImmediatePropagation(),o.preventDefault(),p=!1,i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),l)),b(document,e.touchend,v,!1),"mousedown"==e.touchstart){var a=n.$refs[t];b(a,"mouseenter",_,!1),b(a,"mouseleave",y,!1)}clearTimeout(f),f=setTimeout((function(){h=!0,u(g,window)}),500)}}function g(){h&&!p&&(i.scrollBy(r({},"d"+n.bar.axis.toLowerCase(),c),!1),u(g,window))}function v(){if(clearTimeout(f),h=!1,b(document,e.touchend,v,!1,"off"),"mousedown"==e.touchstart){var r=n.$refs[t];b(r,"mouseenter",_,!1,"off"),b(r,"mouseleave",y,!1,"off")}i.setClassHook("cliking"+d+t+"Button",!1)}function _(){p=!1,g()}function y(){p=!0}return m}}};function J(t,e){var n=V[e].axis,i=e.charAt(0)+"Bar",r=!t.bar[i].state.size||!t.mergedOptions.scrollPanel["scrolling"+n]||t.refreshLoad&&"vertical"!==e||t.mergedOptions.bar.disable,o=t.mergedOptions.rail.keepShow;return r&&!o?null:{hideBar:r,props:{type:e,ops:{bar:t.mergedOptions.bar,rail:t.mergedOptions.rail,scrollButton:t.mergedOptions.scrollButton},state:t.bar[i].state,hideBar:r},on:{setBarDrag:t.setBarDrag},ref:e+"Bar",key:e}}function tt(t,e){var n=J(e,"vertical"),i=J(e,"horizontal");return e.setClassHook("hasVBar",!(!n||n.hideBar)),e.setClassHook("hasHBar",!(!i||i.hideBar)),[n?t("bar",o({},n,{props:o({otherBarHide:!i},n.props)})):null,i?t("bar",o({},i,{props:o({otherBarHide:!n},i.props)})):null]}var et=function(t){var e=t.render,n=t.components,i=t.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:n,mixins:[I].concat(a([].concat(i))),created:function(){var t=this,e=p(this.$vuescrollConfig||{},{}),n=p(N,e);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach((function(e){f(t.mergedOptions,e,t.$options.propsData.ops)})),p(n,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=H(this.mergedOptions)},render:function(t){var n=this;if(n.renderError)return t("div",[[n.$slots["default"]]]);n.touchManager||(n.touchManager=new u);var i,s={style:{height:n.vuescroll.state.height,width:n.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:o({__vuescroll:!0},n.classHooks)},l=n.touchManager.getTouchObject();l&&(s.on=(i={},r(i,l.touchenter,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent(),n.setClassHook("mouseEnter",!0)})),r(i,l.touchleave,(function(){n.vuescroll.state.pointerLeave=!0,n.hideBar(),n.setClassHook("mouseEnter",!1)})),r(i,l.touchmove,(function(){n.vuescroll.state.pointerLeave=!1,n.updateBarStateAndEmitEvent()})),i));var c=[e(t,n)].concat(a(tt(t,n))),d=this.$slots["scroll-container"];return d?S(t,d,c,s):t("div",s,[c])},mounted:function(){var t=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push((function(){t.scrollToAnchor(),t.updateBarStateAndEmitEvent()})))},updated:function(){var t=this;this.updatedCbs.forEach((function(e){e.call(t)})),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs["scrollPanel"]._isVue?this.$refs["scrollPanel"].$el:this.$refs["scrollPanel"]}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(t){this.vuescroll.state.isDragging=t},setClassHook:function(t,e){this.classHooks[t]=e},showAndDefferedHideBar:function(t){var e=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout((function(){e.timeoutId=0,e.hideBar(t)}),this.mergedOptions.bar.showDelay)},showBar:function(){var t=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=t,this.bar.hBar.state.opacity=t},hideBar:function(t){var e=this.vuescroll.state,n=e.isDragging,i=e.isRailHover;n||i||(t&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var t=this.mergedOptions.scrollPanel,e=t.maxHeight,n=t.maxWidth,i=this.$el.parentNode,r=i.clientHeight,o=i.clientWidth,a=this.scrollPanelElm,s=a.scrollHeight,l=a.scrollWidth,c=void 0,u=void 0;e||n?(u=s<=e?void 0:e,c=l<=n?void 0:n):(u=r,c=o),this.vuescroll.state.height=u?u+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var t=this.mergedOptions.vuescroll.sizeStrategy,e=this.mergedOptions.scrollPanel,n=e.maxHeight,i=e.maxWidth,r=this.scrollPanelElm,o=r.clientHeight,a=r.clientWidth;"number"==t||n&&o>n||i&&a>i?this.useNumbericSize():"percent"==t&&o!=n&&a!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,e={deep:!0,sync:!0};this.$watch("mergedOptions",(function(){setTimeout((function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()}),0)}),e),K.forEach((function(n){t.$watch(n,(function(){t.isSmallChangeThisTick=!0}),e)}))},scrollToAnchor:function(){var t=function(t){return/^#[a-zA-Z_]\d*$/.test(t)},e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||t(e))){var n=document.querySelector(e);!w(n,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(n)}}}}},nt={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var t=0,e=0,n=C(this);this.ops.initialScrollX&&(t=this.ops.initialScrollX),this.ops.initialScrollY&&(e=this.ops.initialScrollY),(t||e)&&n.scrollTo({x:t,y:e})}},mounted:function(){var t=this;setTimeout((function(){t._isDestroyed||t.updateInitialScroll()}),0)},render:function(t){var e={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},n=C(this),i=n.$slots["scroll-panel"];return i?S(t,i,this.$slots.default,e):t("div",e,[[this.$slots.default]])}};function it(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=(n={},r(n,nt.name,nt),r(n,Q.name,Q),n),s={};s.components=a,s.render=e,s.mixins=t;var l=et(s);return R(i,o),l}function rt(t,e){for(var n=t.children,i=[],r=function(t){var n=t.getBoundingClientRect(),i=n.left,r=n.top,o=n.width,a=n.height,s=e.getBoundingClientRect(),l=s.left,c=s.top,u=s.height,d=s.width;return i-l+o>0&&i-l<d&&r-c+a>0&&r-c<u},o=0;o<n.length;o++){var a=n.item(o);r(a)&&!a.isResizeElm&&i.push(a)}return i}function ot(t,e){return function(n){return e(t,n)}}function at(t,e){var n=null;return"easeInQuad"===t&&(n=e*e),"easeOutQuad"===t&&(n=e*(2-e)),"easeInOutQuad"===t&&(n=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t&&(n=e*e*e),"easeOutCubic"===t&&(n=--e*e*e+1),"easeInOutCubic"===t&&(n=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t&&(n=e*e*e*e),"easeOutQuart"===t&&(n=1- --e*e*e*e),"easeInOutQuart"===t&&(n=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t&&(n=e*e*e*e*e),"easeOutQuint"===t&&(n=1+--e*e*e*e*e),"easeInOutQuint"===t&&(n=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),n||e}function st(){return!0}var lt=Date.now||function(){return(new Date).getTime()},ct=function(){function t(){n(this,t),this.init(),this.isRunning=!1}return i(t,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=lt()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:st,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:st,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:st,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:st,s=e-t,l=s>0?-1:1,c=lt();this.isRunning||this.init(),l!=this.dir||c-this.ts>200?(this.ts=c,this.dir=l,this.st=t,this.ed=e,this.df=s):this.df+=s,this.spd=n,this.completeCb=r,this.vertifyCb=o,this.stepCb=i,this.easingMethod=a,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var t=this;if(this.df){var e=this.percent||0;this.percent=0,this.isRunning=!0;var n=function n(){if(t.isRunning&&t.vertifyCb(e)&&!t.isStopped){if(e=(lt()-t.ts)/t.spd,t.isPaused)return t.percent=e,void(t.isRunning=!1);if(e<1){var i=t.st+t.df*t.easingMethod(e);t.stepCb(i),t.ref(n)}else t.stepCb(t.st+t.df),t.completeCb(),t.isRunning=!1}else t.isRunning=!1};this.ref(n)}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=q(window),this.isPaused=!1,this.isStopped=!1}}]),t}();function ut(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:300,r=arguments[4],o=arguments[5],a=void 0,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,h=t,p=h.nodeType,f=new ct,m=new ct;if(p){9==p&&(t=t.scrollingElement);var g=t;a=g.scrollLeft,s=g.scrollTop,l=g.scrollHeight,c=g.scrollWidth,u=g.clientWidth,d=g.clientHeight,e="undefined"===typeof e?a:F(e,c-u),n="undefined"===typeof n?s:F(n,l-d);var v=ot(r,at);f.startScroll(a,e,i,(function(e){t.scrollLeft=e}),o,void 0,v),m.startScroll(s,n,i,(function(e){t.scrollTop=e}),o,void 0,v)}else y("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}var dt={mounted:function(){this.scrollX=new ct,this.scrollY=new ct},methods:{nativeStop:function(){this.scrollX.stop(),this.scrollY.stop()},nativePause:function(){this.scrollX.pause(),this.scrollY.pause()},nativeContinue:function(){this.scrollX.continue(),this.scrollY.continue()},nativeScrollTo:function(t,e,n,i){!1===n||"undefined"===typeof n&&(n=this.mergedOptions.scrollPanel.speed);var r=this.scrollPanelElm,o=r.scrollTop,a=r.scrollLeft,s=r.scrollWidth,l=r.clientWidth,c=r.scrollHeight,u=r.clientHeight;if(t="undefined"===typeof t?a:F(t,s-l),e="undefined"===typeof e?o:F(e,c-u),n){i=i||this.mergedOptions.scrollPanel.easing;var d=ot(i,at);t!=a&&this.scrollX.startScroll(a,t,n,(function(t){r.scrollLeft=t}),this.scrollingComplete.bind(this),void 0,d),e!=o&&this.scrollY.startScroll(o,e,n,(function(t){r.scrollTop=t}),this.scrollingComplete.bind(this),void 0,d)}else r.scrollTop=e,r.scrollLeft=t},getCurrentviewDomNative:function(){var t=this.scrollContentElm,e=rt(t,this.$el);return e}}};function ht(t){var e={ref:"scrollPanel",style:{height:"100%",overflowY:"scroll",overflowX:"scroll"},class:[],nativeOn:{"&scroll":t.handleScroll},props:{ops:t.mergedOptions.scrollPanel}};t.scrollYEnable=!0,t.scrollXEnable=!0,e.nativeOn.DOMMouseScroll=e.nativeOn.mousewheel=t.onMouseWheel;var n=t.mergedOptions.scrollPanel,i=n.scrollingY,r=n.scrollingX;t.bar.hBar.state.size&&r||(t.scrollXEnable=!1,e.style.overflowX="hidden"),t.bar.vBar.state.size&&i||(t.scrollYEnable=!1,e.style.overflowY="hidden");var o=v();return o?(t.bar.vBar.state.size&&t.mergedOptions.scrollPanel.scrollingY&&("right"==t.mergedOptions.scrollPanel.verticalNativeBarPos?e.style.marginRight="-"+o+"px":e.style.marginLeft="-"+o+"px"),t.bar.hBar.state.size&&t.mergedOptions.scrollPanel.scrollingX&&(e.style.height="calc(100% + "+o+"px)")):($(),e.class.push("__hidebar"),l()&&(e.style["-webkit-overflow-scrolling"]="touch")),e.style.transformOrigin="",e.style.transform="",e}function pt(t,e){var n={};return n=ht(e),t("scrollPanel",n,[ft(t,e)])}function ft(t,e){var n={position:"relative","box-sizing":"border-box","min-width":"100%","min-height":"100%"},i={style:n,ref:"scrollContent",class:"__view"},r=e.$slots["scroll-content"];return e.mergedOptions.scrollPanel.scrollingX?n.width=k("width","fit-content"):i.style["width"]="100%",e.mergedOptions.scrollPanel.padding&&(i.style.paddingRight=e.mergedOptions.rail.size),r?S(t,r,e.$slots.default,i):t("div",i,[e.$slots.default])}function mt(t){var e={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:t.mergedOptions.scrollPanel}};e.class.push("__slide"),l()&&(e.style=r({},"-webkit-overflow-scrolling","touch")),"transform"==t.mergedOptions.vuescroll.renderMethod&&(e.style["transform-origin"]="left top 0px");var n=t.mergedOptions.scrollPanel,i=n.scrollingX,o=n.scrollingY,a=n.padding;if(i&&!t.refreshLoad){var s=k("width","fit-content");s?e.style["width"]=s:e["display"]="inline-block"}return i||e.class.push("x-hidden"),o||e.class.push("y-hidden"),a&&(e.style.paddingRight=t.mergedOptions.rail.size),e}function gt(t,e){var n=D(e.$slots["scroll-panel"]).ch||e.$slots.default,i=[];return n||(e.$slots.default=n=[]),e.mergedOptions.vuescroll.pullRefresh.enable&&i.push(t("div",{class:"__refresh",style:{visibility:e.refrehDomVisiable?"":"hidden"},ref:W,key:W},[vt(t,e,"refresh",e.pullRefreshTip)])),i.push(n),e.mergedOptions.vuescroll.pushLoad.enable&&i.push(t("div",{ref:j,key:j,class:"__load",style:{visibility:e.loadDomVisiable?"":"hidden"}},[vt(t,e,"load",e.pushLoadTip)])),i}function vt(t,e,n,i){var r=e.vuescroll.state[n+"Stage"],o=null;if(o=e.$slots[n+"-"+r])return o;switch(r){case"deactive":case"active":var a="active";"deactive"==r&&(a+=" deactive"),o=t("svg",{class:a,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[t("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),t("g",[t("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[t("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":o=t("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[t("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),t("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":o=t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[t("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})]);break}return[o,i]}function bt(t,e){var n=mt(e);return t("scrollPanel",n,[gt(t,e)])}function _t(t,e){return"native"==e.mode?pt(t,e):"slide"==e.mode?bt(t,e):void 0}function yt(t,e){return wt(t,e)}function wt(t,e){if(!t.hasResized){var n="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=n;var r=document.createElement("object");return r.style.cssText=n,r.type="text/html",r.tabIndex=-1,r.onload=function(){b(r.contentDocument.defaultView,"resize",e)},s()||(r.data="about:blank"),i.isResizeElm=!0,i.appendChild(r),t.appendChild(i),s()&&(r.data="about:blank"),function(){r.contentDocument&&b(r.contentDocument.defaultView,"resize",e,"off"),t.removeChild(i),t.hasResized=!1}}}var xt={methods:{slideScrollTo:function(t,e,n,i){var r=this.getPosition(),o=r.scrollLeft,a=r.scrollTop;t=F(t||o,this.scroller.__maxScrollLeft),e=F(e||a,this.scroller.__maxScrollTop),this.scroller.scrollTo(t,e,n>0,void 0,!1,n,i)},zoomBy:function(t,e,n,i,r){this.scroller?this.scroller.zoomBy(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=arguments[3],r=arguments[4];this.scroller?this.scroller.zoomTo(t,e,n,i,r):y("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(t,e):y("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(t){if(this.scroller){var e=this.mergedOptions.vuescroll.pullRefresh.enable,n=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=t||e)if("load"!=t||n)if("refresh"===t||"load"===t){if("start"!=this.vuescroll.state[t+"Stage"])return this.scroller.triggerRefreshOrLoad(t),!0}else y("param must be one of load and refresh!");else y("load must be enabled and content's height > container's height!");else y("refresh must be enabled!")}else y("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){var t=this.scrollPanelElm,e=rt(t,this.$el);return e}}},kt={mixins:[xt,dt],methods:{internalScrollTo:function(t,e,n,i){"native"==this.mode?this.nativeScrollTo(t,e,n,i):"slide"==this.mode&&this.slideScrollTo(t,e,n,i)},stop:function(){this.nativeStop()},pause:function(){this.nativePause()},continue:function(){this.nativeContinue()},getCurrentviewDom:function(){return"slide"==this.mode?this.getCurrentviewDomSlide():this.getCurrentviewDomNative()}}},St=Date.now||function(){return+new Date},Dt=60,Ct=1e3,Et={},At=1,Tt={effect:{}},Ft=null;Ft="undefined"!==typeof window?window:{},Tt.effect.Animate={requestAnimationFrame:q(Ft),stop:function(t){var e=null!=Et[t];return e&&(Et[t]=null),e},isRunning:function(t){return null!=Et[t]},start:function(t,e,n,i,r,o){var a=St(),s=a,l=0,c=0,u=At++;if(o||(o=document.body),u%20===0){var d={};for(var h in Et)d[h]=!0;Et=d}var p=function d(h){var p=!0!==h,f=St();if(!Et[u]||e&&!e(u))return Et[u]=null,void(n&&n(Dt-c/((f-a)/Ct),u,!1));if(p)for(var m=Math.round((f-s)/(Ct/Dt))-1,g=0;g<Math.min(m,4);g++)d(!0),c++;if(Et[u]){i&&(l=(f-a)/i,l>1&&(l=1));var v=r?r(l):l;!1!==t(v,f,p)&&1!==l||!p?p&&(s=f,Tt.effect.Animate.requestAnimationFrame(d,o)):(Et[u]=null,n&&n(Dt-c/((f-a)/Ct),u,1===l||null==i))}};return Et[u]=!0,Tt.effect.Animate.requestAnimationFrame(p,o),u}};var Bt=null,$t=null;function Lt(t,e){for(var n in this.__callback=t,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:U,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},e)this.options[n]=e[n];Bt=ot(this.options.animatingEasing,at),$t=ot(this.options.noAnimatingEasing,at)}var It={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=this;t===+t&&(a.__clientWidth=t),e===+e&&(a.__clientHeight=e),n===+n&&(a.__contentWidth=n),i===+i&&(a.__contentHeight=i),a.__computeScrollMax(),o||a.scrollTo(a.__scrollLeft,a.__scrollTop,r)},setPosition:function(t,e){var n=this;n.__clientLeft=t||0,n.__clientTop=e||0},setSnapSize:function(t,e){var n=this;n.__snapWidth=t,n.__snapHeight=e},activatePullToRefresh:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__refreshHeight=t,s.__refreshActivate=n,s.__refreshBeforeDeactivate=o,s.__refreshBeforeDeactiveEnd=a,s.__refreshDeactivate=i,s.__refreshStart=r},activatePushToLoad:function(t,e){var n=e.activateCallback,i=e.deactivateCallback,r=e.startCallback,o=e.beforeDeactivateCallback,a=e.beforeDeactiveEnd,s=this;s.__loadHeight=t,s.__loadActivate=n,s.__loadBeforeDeactivate=o,s.__loadBeforeDeactiveEnd=a,s.__loadDeactivate=i,s.__loadStart=r},triggerRefreshOrLoad:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"refresh",e=this.__isDecelerating;if(e&&(Tt.effect.Animate.stop(e),this.__isDecelerating=!1),"refresh"==t){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==t){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var t=this;if(t.__refreshActive){t.__refreshActive=!1;var e=function(){t.__refreshBeforeDeactiveEnd&&t.__refreshBeforeDeactiveEnd(),t.__refreshBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__refreshBeforeDeactivate?t.__refreshBeforeDeactivate(e):e()}if(t.__loadActive){t.__loadActive=!1;var n=function(){t.__loadBeforeDeactiveEnd&&t.__loadBeforeDeactiveEnd(),t.__loadBeforeDeactiveStarted=!0,t.scrollTo(t.__scrollLeft,t.__scrollTop,!0)};t.__loadBeforeDeactivate?t.__loadBeforeDeactivate(n):n()}},getValues:function(){var t=this;return{left:t.__scrollLeft,top:t.__scrollTop,zoom:t.__zoomLevel}},getScrollMax:function(){var t=this;return{left:t.__maxScrollLeft,top:t.__maxScrollTop}},zoomTo:function(t,e,n,i,r){var o=this;if(!o.options.zooming)throw new Error("Zooming is not enabled!");r&&(o.__zoomComplete=r),o.__isDecelerating&&(Tt.effect.Animate.stop(o.__isDecelerating),o.__isDecelerating=!1);var a=o.__zoomLevel;null==n&&(n=o.__clientWidth/2),null==i&&(i=o.__clientHeight/2),t=Math.max(Math.min(t,o.options.maxZoom),o.options.minZoom),o.__computeScrollMax(t);var s=(n+o.__scrollLeft)*t/a-n,l=(i+o.__scrollTop)*t/a-i;s>o.__maxScrollLeft?s=o.__maxScrollLeft:s<0&&(s=0),l>o.__maxScrollTop?l=o.__maxScrollTop:l<0&&(l=0),o.__publish(s,l,t,e)},zoomBy:function(t,e,n,i,r){var o=this;o.zoomTo(o.__zoomLevel*t,e,n,i,r)},scrollTo:function(t,e,n,i,r,o,a){var s=this;if(s.__isDecelerating&&(Tt.effect.Animate.stop(s.__isDecelerating),s.__isDecelerating=!1),null!=i&&i!==s.__zoomLevel){if(!s.options.zooming)throw new Error("Zooming is not enabled!");t*=i,e*=i,s.__computeScrollMax(i)}else i=s.__zoomLevel;s.options.scrollingX||r?s.options.paging?t=Math.round(t/s.__clientWidth)*s.__clientWidth:s.options.snapping&&(t=Math.round(t/s.__snapWidth)*s.__snapWidth):t=s.__scrollLeft,s.options.scrollingY||r?s.options.paging?e=Math.round(e/s.__clientHeight)*s.__clientHeight:s.options.snapping&&(e=Math.round(e/s.__snapHeight)*s.__snapHeight):e=s.__scrollTop,r||(t=Math.max(Math.min(s.__maxScrollLeft,t),0),e=Math.max(Math.min(s.__maxScrollTop,e),0)),t===s.__scrollLeft&&e===s.__scrollTop&&(n=!1),s.__isTracking||s.__publish(t,e,i,n,o,a)},scrollBy:function(t,e,n){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,o=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(t||0),o+(e||0),n)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(t,e){var n=t.x,i=t.y;isNaN(n)&&(n=1),isNaN(i)&&(i=1),this.scrollTo((n-1)*this.__clientWidth,(i-1)*this.__clientHeight,e)},doMouseZoom:function(t,e,n,i){var r=this,o=t>0?.97:1.03;return r.zoomTo(r.__zoomLevel*o,!1,n-r.__clientLeft,i-r.__clientTop)},doTouchStart:function(t,e){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var n,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(Tt.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(Tt.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var o=1===t.length;o?(n=t[0].pageX,i=t[0].pageY):(n=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2),r.__initialTouchLeft=n,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=n,r.__lastTouchTop=i,r.__lastTouchMove=e,r.__lastScale=1,r.__enableScrollX=!o&&r.options.scrollingX,r.__enableScrollY=!o&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!o,r.__isSingleTouch=o,r.__positions=[]},doTouchMove:function(t,e,n){if(null==t.length)throw new Error("Invalid touch list: "+t);if(e instanceof Date&&(e=e.valueOf()),"number"!==typeof e)throw new Error("Invalid timestamp value: "+e);var i=this;if(i.__isTracking){var r,o;2===t.length?(r=Math.abs(t[0].pageX+t[1].pageX)/2,o=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,o=t[0].pageY);var a=i.__positions;if(i.__isDragging){var s=r-i.__lastTouchLeft,l=o-i.__lastTouchTop,c=i.__scrollLeft,u=i.__scrollTop,d=i.__zoomLevel;if(null!=n&&i.options.zooming){var h=d;if(d=d/i.__lastScale*n,d=Math.max(Math.min(d,i.options.maxZoom),i.options.minZoom),h!==d){var p=r-i.__clientLeft,f=o-i.__clientTop;c=(p+c)*d/h-p,u=(f+u)*d/h-f,i.__computeScrollMax(d)}}var m=i.options.bouncing;if(i.__enableScrollX){c-=s*this.options.speedMultiplier;var g=i.__maxScrollLeft;(c>g||c<0)&&(c+=s/2*this.options.speedMultiplier,c=Math.min(Math.max(-m.left,c),g+m.right))}if(i.__enableScrollY){u-=l*this.options.speedMultiplier;var v=i.__maxScrollTop;(u>v||u<0)&&(u+=l/2*this.options.speedMultiplier,u=Math.min(Math.max(-m.top,u),v+m.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&u<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&u>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&u>=i.__maxScrollTop+i.__loadHeight&&i.__loadHeight>0?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&u<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}a.length>60&&a.splice(0,30),a.push(c,u,e),i.__publish(c,u,d)}else{var b=i.options.locking?3:0,_=5,y=Math.abs(r-i.__initialTouchLeft),w=Math.abs(o-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&y>=b,i.__enableScrollY=i.options.scrollingY&&w>=b,a.push(i.__scrollLeft,i.__scrollTop,e),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(y>=_||w>=_),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=o,i.__lastTouchMove=e,i.__lastScale=n}},doTouchEnd:function(t){if(t instanceof Date&&(t=t.valueOf()),"number"!==typeof t)throw new Error("Invalid timestamp value: "+t);var e=this;if(e.__isTracking){if(e.__isTracking=!1,e.__isDragging)if(e.__isDragging=!1,e.__isSingleTouch&&e.options.animating&&t-e.__lastTouchMove<=100){for(var n=e.__positions,i=n.length-1,r=i,o=i;o>0&&n[o]>e.__lastTouchMove-100;o-=3)r=o;if(r!==i){var a=n[i]-n[r],s=e.__scrollLeft-n[r-2],l=e.__scrollTop-n[r-1];e.__decelerationVelocityX=s/a*(1e3/60),e.__decelerationVelocityY=l/a*(1e3/60);var c=e.options.paging||e.options.snapping?4:1;Math.abs(e.__decelerationVelocityX)>c||Math.abs(e.__decelerationVelocityY)>c?e.__refreshActive||e.__loadActive||e.__startDeceleration(t):e.__scrollComplete()}else e.__scrollComplete()}else t-e.__lastTouchMove>100&&e.__scrollComplete();e.__isDecelerating||(e.__refreshActive&&e.__refreshStart?(e.__publish(e.__scrollLeft,-e.__refreshHeight,e.__zoomLevel,!0),e.__refreshStart&&e.__refreshStart()):e.__loadActive&&e.__loadStart?(e.__publish(e.__scrollLeft,e.__maxScrollTop+e.__loadHeight,e.__zoomLevel,!0),e.__loadStart&&e.__loadStart()):((e.__interruptedAnimation||e.__isDragging)&&e.__scrollComplete(),e.scrollTo(e.__scrollLeft,e.__scrollTop,!0,e.__zoomLevel),e.__refreshActive?(e.__refreshActive=!1,e.__refreshDeactivate&&e.__refreshDeactivate()):e.__loadActive&&(e.__loadActive=!1,e.__loadDeactivate&&e.__loadDeactivate()))),e.__positions.length=0}},onScroll:U,stop:function(){var t=this;t.__disable=!0},start:function(){var t=this;t.__disable=!0},__publish:function(t,e,n,i,r,o){var a=this;if(!a.__disable){isNaN(t)&&(t=this.__scrollLeft),isNaN(e)&&(e=this.__scrollTop);var s=a.__isAnimating;if(s&&(Tt.effect.Animate.stop(s),a.__isAnimating=!1),i&&(a.options.animating||r)){a.__scheduledLeft=t,a.__scheduledTop=e,a.__scheduledZoom=n;var l=a.__scrollLeft,c=a.__scrollTop,u=a.__zoomLevel,d=t-l,h=e-c,p=n-u,f=function(t,e,n){n&&(a.__scrollLeft=l+d*t,a.__scrollTop=c+h*t,a.__zoomLevel=u+p*t,a.__callback&&(a.__callback(a.__scrollLeft,a.__scrollTop,a.__zoomLevel),a.onScroll()))},m=function(t){return a.__isAnimating===t},g=function(t,e,n){e===a.__isAnimating&&(a.__isAnimating=!1),(a.__didDecelerationComplete||n)&&a.__scrollComplete(),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())},v=Bt;o&&(v=ot(o,at)),a.__isAnimating=Tt.effect.Animate.start(f,m,g,r||a.options.animationDuration,s?v:$t)}else a.__scheduledLeft=a.__scrollLeft=t,a.__scheduledTop=a.__scrollTop=e,a.__scheduledZoom=a.__zoomLevel=n,a.__callback&&(a.__callback(t,e,n),a.onScroll()),a.options.zooming&&(a.__computeScrollMax(),a.__zoomComplete&&(a.__zoomComplete(),a.__zoomComplete=null)),a.__refreshBeforeDeactiveStarted&&(a.__refreshBeforeDeactiveStarted=!1,a.__refreshDeactivate&&a.__refreshDeactivate()),a.__loadBeforeDeactiveStarted&&(a.__loadBeforeDeactiveStarted=!1,a.__loadDeactivate&&a.__loadDeactivate())}},__computeScrollMax:function(t){var e=this;null==t&&(t=e.__zoomLevel),e.__maxScrollLeft=Math.max(e.__contentWidth*t-e.__clientWidth,0),e.__maxScrollTop=Math.max(e.__contentHeight*t-e.__clientHeight,0)},__computePage:function(){var t=this,e=t.__clientWidth,n=t.__clientHeight,i=t.__scrollLeft,r=t.__scrollTop;t.__totalXPage=Math.ceil(t.__contentWidth/e),t.__currentPageX=Math.ceil(i/e+1),t.__totalYPage=Math.ceil(t.__contentHeight/n),t.__currentPageY=Math.ceil(r/n+1)},__scrollComplete:function(){var t=this;t.options.scrollingComplete()},__startDeceleration:function(){var t=this;if(t.options.paging){var e=Math.max(Math.min(t.__scrollLeft,t.__maxScrollLeft),0),n=Math.max(Math.min(t.__scrollTop,t.__maxScrollTop),0),i=t.__clientWidth,r=t.__clientHeight;t.__minDecelerationScrollLeft=Math.floor(e/i)*i,t.__minDecelerationScrollTop=Math.floor(n/r)*r,t.__maxDecelerationScrollLeft=Math.ceil(e/i)*i,t.__maxDecelerationScrollTop=Math.ceil(n/r)*r}else t.__minDecelerationScrollLeft=0,t.__minDecelerationScrollTop=0,t.__maxDecelerationScrollLeft=t.__maxScrollLeft,t.__maxDecelerationScrollTop=t.__maxScrollTop;var o=function(e,n,i){t.__stepThroughDeceleration(i)},a=t.options.snapping?4:.001,s=function(){var e=Math.abs(t.__decelerationVelocityX)>=a||Math.abs(t.__decelerationVelocityY)>=a;return e||(t.__didDecelerationComplete=!0),e},l=function(){t.__isDecelerating&&(t.__isDecelerating=!1,t.__didDecelerationComplete&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,t.options.snapping))};t.__isDecelerating=Tt.effect.Animate.start(o,s,l)},__stepThroughDeceleration:function(t){var e=this,n=e.options.bouncing,i=e.__minDecelerationScrollLeft,r=e.__maxDecelerationScrollLeft,o=e.__minDecelerationScrollTop,a=e.__maxDecelerationScrollTop,s=e.__scrollLeft+e.__decelerationVelocityX,l=e.__scrollTop+e.__decelerationVelocityY,c=s<i||s>r,u=l<o||l>a,d=Math.min(Math.max(i-n.left,s),r+n.right),h=Math.min(Math.max(o-n.top,l),a+n.bottom);if(t?e.__publish(d,h,e.__zoomLevel):(e.__scrollLeft=s,e.__scrollTop=l),!e.options.paging){var p=.95;e.__decelerationVelocityX*=p,e.__decelerationVelocityY*=p}var f=0,m=0,g=e.options.penetrationDeceleration,v=e.options.penetrationAcceleration;c&&(s<e.__minDecelerationScrollLeft?f=e.__minDecelerationScrollLeft-s:s>e.__maxDecelerationScrollLeft&&(f=e.__maxDecelerationScrollLeft-s)),u&&(l<e.__minDecelerationScrollTop?m=e.__minDecelerationScrollTop-l:l>e.__maxDecelerationScrollTop&&(m=e.__maxDecelerationScrollTop-l)),0!==f&&(f*e.__decelerationVelocityX<=0?(e.__decelerationVelocityX+=f*g,f<0&&-f>=n.right&&e.__decelerationVelocityX>0&&(e.__decelerationVelocityX=-n.right/2),f>0&&f>=n.left&&e.__decelerationVelocityX<0&&(e.__decelerationVelocityX=n.left/2)):e.__decelerationVelocityX=f*v),0!==m&&(m*e.__decelerationVelocityY<=0?(e.__decelerationVelocityY+=m*g,m<0&&-m>=n.bottom&&e.__decelerationVelocityY>0&&(e.__decelerationVelocityY=-n.bottom/2),m>0&&m>=n.top&&e.__decelerationVelocityY<0&&(e.__decelerationVelocityY=n.top/2)):e.__decelerationVelocityY=m*v/2)}};for(var Mt in It)Lt.prototype[Mt]=It[Mt];function Pt(t,e,n,i){if("position"==i)return function(e,n){t.style.left=-e+"px",t.style.top=-n+"px"};var r,o=x(e),a=document.createElement("div"),s=o+"Perspective",l="transform";return a.style[s]!==r?function(e,i,r){t.style[l]="translate3d("+-e+n+","+-i+n+",0) scale("+r+")"}:a.style[l]!==r?function(e,i,r){t.style[l]="translate("+-e+n+","+-i+n+") scale("+r+")"}:void 0}var Nt=new u;function Ht(t,e,n,i,r,o){var a=null,s=!1,l=Nt.getTouchObject();function c(t){var i=Nt.getEventObject(t);i[0]&&i[0].target&&i[0].target.tagName.match(/input|textarea|select/i)||e.__disable||(n("mousedown"),s=!0,e.doTouchStart(i,t.timeStamp),r&&t.preventDefault(),t.stopPropagation(),document.addEventListener(l.touchmove,u,{passive:!1}))}function u(t){if(!e.__disable&&s){var i=Nt.getEventObject(t);n("mousemove"),e.doTouchMove(i,t.timeStamp,t.scale),o&&t.preventDefault()}}function d(t){n("mouseup"),s=!1,e.doTouchEnd(t.timeStamp),document.removeEventListener(l.touchmove,u)}function h(t){e.doTouchEnd(t.timeStamp)}function p(t){e.doMouseZoom(t.detail?-120*t.detail:t.wheelDelta,t.timeStamp,t.pageX,t.pageY)}return t.addEventListener(l.touchstart,c,!1),document.addEventListener(l.touchend,d,!1),document.addEventListener(l.touchcancel,h,!1),i&&!Nt.isTouch&&t.addEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1),a=function(){t.removeEventListener(l.touchstart,c,!1),document.removeEventListener(l.touchend,d,!1),document.removeEventListener(l.touchcancel,h,!1),t.removeEventListener(navigator.userAgent.indexOf("Firefox")>-1?"DOMMouseScroll":"mousewheel",p,!1)},e.onScroll=function(){n("onscroll")},a}function Ot(t,e,n,i){var r=n.$listeners,o=function(){n.vuescroll.state[e]="active",n.$emit(t+"-activate",n,i)},a=function(){n.vuescroll.state[e]="deactive",n.$emit(t+"-deactivate",n,i)},s=function(){n.vuescroll.state[e]="beforeDeactiveEnd",n.$emit(t+"-before-deactivate-end",n,i)},l=function(){n.vuescroll.state[e]="start",setTimeout((function(){n.scroller.finishRefreshOrLoad()}),2e3)},c=void 0;return r[t+"-before-deactivate"]&&(c=function(r){n.vuescroll.state[e]="beforeDeactive",n.$emit(t+"-before-deactivate",n,i,r.bind(n.scroller))}),r[t+"-start"]&&(l=function(){n.vuescroll.state[e]="start",n.$emit(t+"-start",n,i,n.scroller.finishRefreshOrLoad.bind(n.scroller))}),{activateCallback:o,deactivateCallback:a,startCallback:l,beforeDeactivateCallback:c,beforeDeactiveEnd:s}}L();var Rt={mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var t=this.$el.clientWidth,e=this.$el.clientHeight,n=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,o=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var a=this.$refs[W].elm||this.$refs[W];r=a.offsetHeight,a.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var s=this.$refs[j].elm||this.$refs[j];o=s.offsetHeight,i-=o,s.style.bottom="-"+o+"px"}this.scroller&&this.scroller.setDimensions(t,e,n,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.left,i=void 0===n?0:n,r=e.top,a=void 0===r?0:r,s=e.zoom,l=void 0===s?1:s,c=this.mergedOptions.vuescroll.scroller,u=c.preventDefault,d=c.preventDefaultOnMove,h=this.mergedOptions.vuescroll,p=h.paging,f=h.snapping.enable,m=h.renderMethod,g=h.zooming,v=h.locking;g=!this.refreshLoad&&!p&&!f&&g;var b=this.mergedOptions.scrollPanel,_=b.scrollingY,y=b.scrollingX,w=this.scrollingComplete.bind(this);this.scroller=new Lt(Pt(this.scrollPanelElm,window,"px",m),o({},this.mergedOptions.vuescroll.scroller,{zooming:g,scrollingY:_,scrollingX:y&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:p,snapping:f,scrollingComplete:w,locking:v})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=a,this.scroller.__zoomLevel=l,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var x=this.$el.getBoundingClientRect();this.scroller.setPosition(x.left+this.$el.clientLeft,x.top+this.$el.clientTop);var k=Ht(this.$el,this.scroller,(function(e){switch(e){case"mousedown":t.vuescroll.state.isDragging=!0;break;case"onscroll":var n=t.vuescroll.state["loadStage"],i=t.mergedOptions.vuescroll.pushLoad,r=i.enable,o=i.auto,a=i.autoLoadDistance,s=t.scroller,l=s.__scrollTop,c=s.__maxScrollTop;"start"!=n&&r&&o&&!t.lockAutoLoad&&a>=c-l&&l>0&&(t.lockAutoLoad=!0,t.triggerRefreshOrLoad("load")),a<c-l&&(t.lockAutoLoad=!1),t.handleScroll(!1);break;case"mouseup":t.vuescroll.state.isDragging=!1;break}}),g,u,d);return this.updateScroller(),k},updateSlideModeBarState:function(){var t=void 0,e=void 0,n=this.$el,i=this.scroller,r=0,o=0,a=this.$el,s=a.clientWidth,l=a.clientHeight,c=s+this.scroller.__maxScrollLeft,u=l+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(o=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(o=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,t=l/(u+o),e=s/(c+r);var d=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),h=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(d+o)/n.clientHeight,this.bar.hBar.state.posValue=100*(h+r)/n.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=t<1?t:0,this.bar.hBar.state.size=e<1?e:0},registryEvent:function(t){var e="refresh"==t?W:j,n="refresh"==t?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,i="refresh"==t?"refreshStage":"loadStage",r=this.$refs[e].elm||this.$refs[e],o=Ot(t,i,this,r),a=r.offsetHeight;n.bind(this.scroller)(a,o)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}},zt={methods:{updateNativeModeBarState:function(){var t=this.scrollPanelElm,e="percent"==this.vuescroll.state.currentSizeStrategy,n=this.vuescroll.state,i=n.width,r=n.height,o=e||!i?t.clientWidth:i.slice(0,-2),a=e||!r?t.clientHeight:r.slice(0,-2),s=a/t.scrollHeight,l=o/t.scrollWidth;this.bar.vBar.state.posValue=100*t.scrollTop/a,this.bar.hBar.state.posValue=100*t.scrollLeft/o,this.bar.vBar.state.size=s<1?s:0,this.bar.hBar.state.size=l<1?l:0},getNativePosition:function(){return{scrollTop:this.scrollPanelElm.scrollTop,scrollLeft:this.scrollPanelElm.scrollLeft}},css:function(t,e){return window.getComputedStyle(t)[e]},checkScrollable:function(t,e,n){var i=!1,r=t.target?t.target:t;while(r&&1==r.nodeType&&r!==this.scrollPanelElm.parentNode&&!/^BODY|HTML/.test(r.nodeName)){var o=this.css(r,"overflow")||"";if(/scroll|auto/.test(o)){var a=this.getScrollProcess(r),s=a.v,l=a.h,c="hidden"!==this.css(r,"overflowX"),u="hidden"!==this.css(r,"overflowY");if(c&&(e<0&&l>0||e>0&&l<1)||u&&(n<0&&s>0||n>0&&s<1)){i=r==this.scrollPanelElm;break}}r=!!r.parentNode&&r.parentNode}return i},onMouseWheel:function(t){var e=this.mergedOptions.vuescroll,n=e.wheelDirectionReverse,i=e.wheelScrollDuration,r=e.checkShiftKey,o=e.locking,a=e.deltaPercent,s=void 0,l=void 0;t.wheelDelta?t.deltaY||t.deltaX?(s=t.deltaX*a,l=t.deltaY*a,o&&(Math.abs(t.deltaX)>Math.abs(t.deltaY)?l=0:s=0)):(s=0,l=-1*t.wheelDelta/2):t.detail&&(l=s=16*t.detail,1==t.axis?l=0:2==t.axis&&(s=0)),r&&t.shiftKey&&(s^=l,l^=s,s^=l),n&&(s^=l,l^=s,s^=l),this.checkScrollable(t,s,l)&&(t.stopPropagation(),t.preventDefault(),this.scrollBy({dx:s,dy:l},i))}},computed:{scrollContentElm:function(){return this.$refs["scrollContent"]._isVue?this.$refs["scrollContent"].$el:this.$refs["scrollContent"]}}},Ut=[Rt,zt],Kt=[kt].concat(a(Ut)),Wt={mixins:Kt,mounted:function(){this._isDestroyed||this.renderError||("slide"==this.mode&&this.updatedCbs.push(this.updateScroller),this.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(t){this.scroller&&(this.scroller.__disable=t)}}))},computed:{mode:function(){return this.mergedOptions.vuescroll.mode}},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},handleScroll:function(t){this.updateBarStateAndEmitEvent("handle-scroll",t)},updateBarStateAndEmitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("native"==this.mode)this.updateNativeModeBarState();else if("slide"==this.mode){if(!this.scroller)return;this.updateSlideModeBarState()}t&&this.emitEvent(t,e),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=t&&"handle-resize"!=t&&"refresh-status"!=t&&"window-resize"!=t&&"options-change"!=t||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar()},getScrollProcess:function(){var t=this.scrollPanelElm,e=t.scrollHeight,n=t.scrollWidth,i=t.clientHeight,r=t.clientWidth,o=t.scrollTop,a=t.scrollLeft;"slide"==this.mode&&(e=this.scroller.__contentHeight,n=this.scroller.__contentWidth,o=this.scroller.__scrollTop,a=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth);var s=Math.min(o/(e-i||1),1),l=Math.min(a/(n-r||1),1);return{v:s,h:l}},emitEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.scrollPanelElm,i=n.scrollTop,r=n.scrollLeft,o={type:"vertical"},a={type:"horizontal"},s=this.getScrollProcess(),l=s.v,c=s.h;o["process"]=l,a["process"]=c,o["barSize"]=this.bar.vBar.state.size,a["barSize"]=this.bar.hBar.state.size,o["scrollTop"]=i,a["scrollLeft"]=r,this.$emit(t,o,a,e)},initVariables:function(){this.lastMode=this.mode,this.$el._isVuescroll=!0},refreshMode:function(){var t=void 0;this.scroller&&(t=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),"slide"==this.mode?this.destroyScroller=this.registryScroller(t):"native"==this.mode&&(this.scrollPanelElm.style.transform="",this.scrollPanelElm.style.transformOrigin="")},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize,n=!1;if(this.lastMode!=this.mode&&(n=!0,this.lastMode=this.mode),(!this.destroyResize||!e||n)&&(this.destroyResize&&this.destroyResize(),e)){var i=null;"slide"==this.mode?i=this.scrollPanelElm:"native"==this.mode&&(i=this.scrollContentElm);var r=this,o=function(){r.updateBarStateAndEmitEvent("window-resize"),"slide"==r.mode&&(r.updatedCbs.push(r.updateScroller),r.$forceUpdate())},a=function(){var e={};"slide"==t.mode?(e["width"]=t.scroller.__contentWidth,e["height"]=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate()):"native"==t.mode&&(e["width"]=t.scrollPanelElm.scrollWidth,e["height"]=t.scrollPanelElm.scrollHeight,t.updateBarStateAndEmitEvent("handle-resize",e)),t.setVsSize()};window.addEventListener("resize",o,!1);var s=yt(i,a),l=function(){window.removeEventListener("resize",o,!1)};this.destroyResize=function(){l(),s(),t.destroyResize=null}}},getPosition:function(){return"slide"==this.mode?this.getSlidePosition():"native"==this.mode?this.getNativePosition():void 0}}},jt={vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}};function Vt(t){var e=!1,n=t.vuescroll;return n.paging==n.snapping.enable&&n.paging&&(n.pullRefresh||n.pushLoad)&&_("paging, snapping, (pullRefresh with pushLoad) can only one of them to be true."),e}var qt={vuescroll:{wheelScrollDuration:0,wheelDirectionReverse:!1,checkShiftKey:!0,deltaPercent:1}},Yt={vuescroll:{mode:"native"}};function Xt(t){var e=!1,n=t.vuescroll;return~z.indexOf(n.mode)||(_("Unknown mode: "+n.mode+',the vuescroll\'s option "mode" should be one of the '+z),e=!0),e}var Gt=[Yt,jt,qt],Zt=[Xt,Vt],Qt=it(Wt,_t,Gt,Zt);function Jt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.name||Qt.name,Qt),t.prototype.$vuescrollConfig=e.ops||{}}var te=o({install:Jt,version:"4.18.1",refreshAll:P,scrollTo:ut},Qt);return"undefined"!==typeof window&&window.Vue&&window.Vue.use(te),te}))},7800:function(t,e,n){"use strict";n("5bd0")},7839:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7903:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function i(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(n+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return n*i%2+n*i%3===0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2===0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let i=0,r=0,o=0,a=null,s=null;for(let l=0;l<e;l++){r=o=0,a=s=null;for(let c=0;c<e;c++){let e=t.get(l,c);e===a?r++:(r>=5&&(i+=n.N1+(r-5)),a=e,r=1),e=t.get(c,l),e===s?o++:(o>=5&&(i+=n.N1+(o-5)),s=e,o=1)}r>=5&&(i+=n.N1+(r-5)),o>=5&&(i+=n.N1+(o-5))}return i},e.getPenaltyN2=function(t){const e=t.size;let i=0;for(let n=0;n<e-1;n++)for(let r=0;r<e-1;r++){const e=t.get(n,r)+t.get(n,r+1)+t.get(n+1,r)+t.get(n+1,r+1);4!==e&&0!==e||i++}return i*n.N2},e.getPenaltyN3=function(t){const e=t.size;let i=0,r=0,o=0;for(let n=0;n<e;n++){r=o=0;for(let a=0;a<e;a++)r=r<<1&2047|t.get(n,a),a>=10&&(1488===r||93===r)&&i++,o=o<<1&2047|t.get(a,n),a>=10&&(1488===o||93===o)&&i++}return i*n.N3},e.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let n=0;n<i;n++)e+=t.data[n];const r=Math.abs(Math.ceil(100*e/i/5)-10);return r*n.N4},e.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},e.getBestMask=function(t,n){const i=Object.keys(e.Patterns).length;let r=0,o=1/0;for(let a=0;a<i;a++){n(a),e.applyMask(a,t);const i=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(a,t),i<o&&(o=i,r=a)}return r}},"796e":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-dialog ref="dialog" title="会话弹窗标题">\r\n\t会话弹窗内容\r\n\t\r\n\t// 如需要自定义按钮,可在组件内插入以下代码\r\n\t<template #button>\r\n\t\t<c-button>按钮名称</c-button>\r\n\t</template>\r\n</c-dialog>\r\n\r\nthis.$refs.dialog.open() // 打开会话弹窗\r\nthis.$refs.dialog.close() // 关闭会话弹窗\r\n\r\n// 打开会话时可以修改属性\r\nthis.$refs.dialog.open({\r\n\ttitle,\r\n\tbutton,\r\n\tbuttonName,\r\n\tcancelButton,\r\n\tcancelButtonName\r\n})\r\n\r\n// 弹窗回调方式\r\n// 1.定义绑定事件\r\n<c-dialog @resolve="确定按钮回调方法" @cancel="取消按钮回调方法"></c-dialog>\r\n// 2.传入回调方法\r\nthis.$refs.dialog.open({\r\n\tresolve: () => {},\r\n\tcancel: () => {},\r\n\t...\r\n})\r\n// 3.使用异步函数\r\nlet {type, stop, next} = await this.$refs.dialog.open();\r\n或\r\nthis.$refs.dialog.open().then(({type, stop, next}) => {});\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nmode | String | - | 模式<br>**popup**: 弹出<br>**slide**: 侧滑\r\ntitle | String | - | 会话弹窗标题\r\nwidth | Number \\| String | - | 会话弹窗宽度\r\nheight | Number \\| String | - | 会话弹窗内容区域高度\r\nresize-button | Boolean | false | 是否显示最大化最小化按钮\r\nclose-button | Boolean | true | 是否显示关闭按钮\r\nbutton | Boolean | true | 是否显示按钮\r\nbutton-name | String | "确定" | 确定按钮名称\r\ncancel-button | Boolean | true | 是否显示取消按钮\r\ncancel-button-name | String | "取消" | 取消按钮名称\r\nmove | Boolean | true | 是否支持移动\r\nmove-limit | Boolean | true | 移动范围限制\r\nmask | Booelan | true | 是否显示遮罩层\r\nmask-close | Boolean | true | 点击遮罩层是否关闭弹窗\r\n@resolve | Function(stop, next) | - | 确定按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@cancel | Function(stop, next) | - | 取消按钮回调<br>**stop**: 阻止会话弹窗关闭方法<br>**next**: 关闭会话弹窗方法\r\n@close | Function | - | 弹窗关闭回调'},"79d9":function(module,exports,__webpack_require__){__webpack_require__("14d9"),__webpack_require__("c73d");const IMAGE_ALIGN_TOP=__webpack_require__("072b"),IMAGE_ALIGN_LEFT=__webpack_require__("9ca8"),IMAGE_ALIGN_RIGHT=__webpack_require__("d359");(function(window,undefined){if(!window.KindEditor){window.console||(window.console={}),console.log||(console.log=function(){});var _VERSION="4.1.11 (2016-03-31)",_ua=navigator.userAgent.toLowerCase(),_IE=_ua.indexOf("msie")>-1&&-1==_ua.indexOf("opera"),_NEWIE=-1==_ua.indexOf("msie")&&_ua.indexOf("trident")>-1,_GECKO=_ua.indexOf("gecko")>-1&&-1==_ua.indexOf("khtml"),_WEBKIT=_ua.indexOf("applewebkit")>-1,_OPERA=_ua.indexOf("opera")>-1,_MOBILE=_ua.indexOf("mobile")>-1,_IOS=/ipad|iphone|ipod/.test(_ua),_QUIRKS="CSS1Compat"!=document.compatMode,_IERANGE=!window.getSelection,_matches=/(?:msie|firefox|webkit|opera)[\/:\s](\d+)/.exec(_ua),_V=_matches?_matches[1]:"0",_TIME=(new Date).getTime(),_round=Math.round,K={DEBUG:!1,VERSION:_VERSION,IE:_IE,GECKO:_GECKO,WEBKIT:_WEBKIT,OPERA:_OPERA,V:_V,TIME:_TIME,each:_each,isArray:_isArray,isFunction:_isFunction,inArray:_inArray,inString:_inString,trim:_trim,addUnit:_addUnit,removeUnit:_removeUnit,escape:_escape,unescape:_unescape,toCamel:_toCamel,toHex:_toHex,toMap:_toMap,toArray:_toArray,undef:_undef,invalidUrl:_invalidUrl,addParam:_addParam,extend:_extend,json:_json},_INLINE_TAG_MAP=_toMap("a,abbr,acronym,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,img,input,ins,kbd,label,map,q,s,samp,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),_BLOCK_TAG_MAP=_toMap("address,applet,blockquote,body,center,dd,dir,div,dl,dt,fieldset,form,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,iframe,ins,isindex,li,map,menu,meta,noframes,noscript,object,ol,p,pre,script,style,table,tbody,td,tfoot,th,thead,title,tr,ul"),_SINGLE_TAG_MAP=_toMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),_STYLE_TAG_MAP=_toMap("b,basefont,big,del,em,font,i,s,small,span,strike,strong,sub,sup,u"),_CONTROL_TAG_MAP=_toMap("img,table,input,textarea,button"),_PRE_TAG_MAP=_toMap("pre,style,script"),_NOSPLIT_TAG_MAP=_toMap("html,head,body,td,tr,table,ol,ul,li"),_AUTOCLOSE_TAG_MAP=_toMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),_FILL_ATTR_MAP=_toMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),_VALUE_TAG_MAP=_toMap("input,button,textarea,select");K.basePath=_getBasePath(),K.options={designMode:!0,fullscreenMode:!1,filterMode:!1,wellFormatMode:!0,shadowMode:!0,loadStyleMode:!0,basePath:K.basePath,themesPath:K.basePath+"themes/",langPath:K.basePath+"lang/",pluginsPath:K.basePath+"plugins/",themeType:"default",langType:"zh-CN",urlType:"",newlineTag:"p",resizeType:2,syncType:"form",pasteType:2,dialogAlignType:"page",useContextmenu:!0,fullscreenShortcut:!1,bodyClass:"ke-content",indentChar:"\t",cssPath:"",cssData:"",minWidth:650,minHeight:100,minChangeSize:50,zIndex:811213,items:["source","|","undo","redo","|","formatblock","fontname","fontsize","forecolor","hilitecolor","bold","italic","underline","strikethrough","removeformat","|","justifyleft","justifycenter","justifyright","justifyfull","|","indent","outdent","subscript","superscript","|","uploadImage"],noDisableItems:["source","fullscreen"],colorTable:[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]],fontSizeTable:["9px","10px","12px","14px","16px","18px","24px","32px"],htmlTags:{font:["id","class","color","size","face",".background-color"],span:["id","class",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".line-height"],div:["id","class","align",".border",".margin",".padding",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".background",".font-style",".text-decoration",".vertical-align",".margin-left"],table:["id","class","border","cellspacing","cellpadding","width","height","align","bordercolor",".padding",".margin",".border","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".background",".width",".height",".border-collapse"],"td,th":["id","class","align","valign","width","height","colspan","rowspan","bgcolor",".text-align",".color",".background-color",".font-size",".font-family",".font-weight",".font-style",".text-decoration",".vertical-align",".background",".border"],a:["id","class","href","target","name"],embed:["id","class","src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess","wmode"],img:["id","class","src","width","height","border","alt","title","align",".width",".height",".border"],"p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":["id","class","align",".text-align",".color",".background-color",".font-size",".font-family",".background",".font-weight",".font-style",".text-decoration",".vertical-align",".text-indent",".margin-left"],pre:["id","class"],hr:["id","class",".page-break-after"],"br,tbody,tr,strong,b,sub,sup,em,i,u,strike,s,del":["id","class"],iframe:["id","class","src","frameborder","width","height",".width",".height"]},layout:'<div class="container"><div class="toolbar"></div><div class="edit"></div><div class="statusbar"></div></div>'};var _useCapture=!1,_INPUT_KEY_MAP=_toMap("8,9,13,32,46,48..57,59,61,65..90,106,109..111,188,190..192,219..222"),_CURSORMOVE_KEY_MAP=_toMap("33..40"),_CHANGE_KEY_MAP={};_each(_INPUT_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e})),_each(_CURSORMOVE_KEY_MAP,(function(t,e){_CHANGE_KEY_MAP[t]=e}));var _EVENT_PROPS="altKey,attrChange,attrName,bubbles,button,cancelable,charCode,clientX,clientY,ctrlKey,currentTarget,data,detail,eventPhase,fromElement,handler,keyCode,metaKey,newValue,offsetX,offsetY,originalTarget,pageX,pageY,prevValue,relatedNode,relatedTarget,screenX,screenY,shiftKey,srcElement,target,toElement,view,wheelDelta,which".split(",");_extend(KEvent,{init:function(t,e){var n=this,i=t.ownerDocument||t.document||t;if(n.event=e,_each(_EVENT_PROPS,(function(t,i){n[i]=e[i]})),n.target||(n.target=n.srcElement||i),3===n.target.nodeType&&(n.target=n.target.parentNode),!n.relatedTarget&&n.fromElement&&(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),null==n.pageX&&null!=n.clientX){var r=i.documentElement,o=i.body;n.pageX=n.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),n.pageY=n.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)}switch(!n.which&&(n.charCode||0===n.charCode?n.charCode:n.keyCode)&&(n.which=n.charCode||n.keyCode),!n.metaKey&&n.ctrlKey&&(n.metaKey=n.ctrlKey),n.which||n.button===undefined||(n.which=1&n.button?1:2&n.button?3:4&n.button?2:0),n.which){case 186:n.which=59;break;case 187:case 107:case 43:n.which=61;break;case 189:case 45:n.which=109;break;case 42:n.which=106;break;case 47:n.which=111;break;case 78:n.which=110;break}n.which>=96&&n.which<=105&&(n.which-=48)},preventDefault:function(){var t=this.event;t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){var t=this.event;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},stop:function(){this.preventDefault(),this.stopPropagation()}});var _eventExpendo="kindeditor_"+_TIME,_eventId=0,_eventData={},_readyFinished=!1;window.attachEvent&&window.attachEvent("onunload",(function(){_each(_eventData,(function(t,e){e.el&&_unbind(e.el)}))})),K.ctrl=_ctrl,K.ready=_ready,K.formatUrl=_formatUrl,K.formatHtml=_formatHtml,K.getCssList=_getCssList,K.getAttrList=_getAttrList,K.mediaType=_mediaType,K.mediaAttrs=_mediaAttrs,K.mediaEmbed=_mediaEmbed,K.mediaImg=_mediaImg,K.clearMsWord=_clearMsWord,K.tmpl=_tmpl;var _getSetAttrDiv=document.createElement("div");_getSetAttrDiv.setAttribute("className","t");var _GET_SET_ATTRIBUTE="t"!==_getSetAttrDiv.className;K.query=_query,K.queryAll=_queryAll,_extend(KNode,{init:function(t){var e=this;t=_isArray(t)?t:[t];for(var n=0,i=0,r=t.length;i<r;i++)t[i]&&(e[i]=t[i].constructor===KNode?t[i][0]:t[i],n++);e.length=n,e.doc=_getDoc(e[0]),e.name=_getNodeName(e[0]),e.type=e.length>0?e[0].nodeType:null,e.win=_getWin(e[0])},each:function(t){for(var e=this,n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e;return e},bind:function(t,e){return this.each((function(){_bind(this,t,e)})),this},unbind:function(t,e){return this.each((function(){_unbind(this,t,e)})),this},fire:function(t){return this.length<1||_fire(this[0],t),this},hasAttr:function(t){return!(this.length<1)&&!!_getAttr(this[0],t)},attr:function(t,e){var n=this;return t===undefined?_getAttrList(n.outer()):"object"===typeof t?(_each(t,(function(t,e){n.attr(t,e)})),n):e===undefined?(e=n.length<1?null:_getAttr(n[0],t),null===e?"":e):(n.each((function(){_setAttr(this,t,e)})),n)},removeAttr:function(t){return this.each((function(){_removeAttr(this,t)})),this},get:function(t){return this.length<1?null:this[t||0]},eq:function(t){return this.length<1?null:this[t]?new KNode(this[t]):null},hasClass:function(t){return!(this.length<1)&&_hasClass(this[0],t)},addClass:function(t){return this.each((function(){_hasClass(this,t)||(this.className=_trim(this.className+" "+t))})),this},removeClass:function(t){return this.each((function(){_hasClass(this,t)&&(this.className=_trim(this.className.replace(new RegExp("(^|\\s)"+t+"(\\s|$)")," ")))})),this},html:function(t){var e=this;return t===undefined?e.length<1||1!=e.type?"":_formatHtml(e[0].innerHTML):(e.each((function(){_setHtml(this,t)})),e)},text:function(){var t=this;return t.length<1?"":_IE?t[0].innerText:t[0].textContent},hasVal:function(){return!(this.length<1)&&_hasVal(this[0])},val:function(t){var e=this;return t===undefined?e.length<1?"":e.hasVal()?e[0].value:e.attr("value"):(e.each((function(){_hasVal(this)?this.value=t:_setAttr(this,"value",t)})),e)},css:function(t,e){var n=this;return t===undefined?_getCssList(n.attr("style")):"object"===typeof t?(_each(t,(function(t,e){n.css(t,e)})),n):e===undefined?n.length<1?"":n[0].style[_toCamel(t)]||_computedCss(n[0],t)||"":(n.each((function(){this.style[_toCamel(t)]=e})),n)},width:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetWidth:e.css("width",_addUnit(t))},height:function(t){var e=this;return t===undefined?e.length<1?0:e[0].offsetHeight:e.css("height",_addUnit(t))},opacity:function(t){return this.each((function(){this.style.opacity===undefined?this.style.filter=1==t?"":"alpha(opacity="+100*t+")":this.style.opacity=1==t?"":t})),this},data:function(t,e){var n=this;return t="kindeditor_data_"+t,e===undefined?n.length<1?null:n[0][t]:(this.each((function(){this[t]=e})),n)},pos:function(){var t=this,e=t[0],n=0,i=0;if(e)if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),o=_getScrollPos(t.doc);n=r.left+o.x,i=r.top+o.y}else while(e)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:_round(n),y:_round(i)}},clone:function(t){return this.length<1?new KNode([]):new KNode(this[0].cloneNode(t))},append:function(t){return this.each((function(){this.appendChild&&this.appendChild(_get(t))})),this},appendTo:function(t){return this.each((function(){_get(t).appendChild(this)})),this},before:function(t){return this.each((function(){this.parentNode.insertBefore(_get(t),this)})),this},after:function(t){return this.each((function(){this.nextSibling?this.parentNode.insertBefore(_get(t),this.nextSibling):this.parentNode.appendChild(_get(t))})),this},replaceWith:function(t){var e=[];return this.each((function(n,i){_unbind(i);var r=_get(t);i.parentNode.replaceChild(r,i),e.push(r)})),K(e)},empty:function(){var t=this;return t.each((function(t,e){var n=e.firstChild;while(n){if(!e.parentNode)return;var i=n.nextSibling;n.parentNode.removeChild(n),n=i}})),t},remove:function(t){var e=this;return e.each((function(n,i){if(i.parentNode){if(_unbind(i),t){var r=i.firstChild;while(r){var o=r.nextSibling;i.parentNode.insertBefore(r,i),r=o}}i.parentNode.removeChild(i),delete e[n]}})),e.length=0,e},show:function(t){var e=this;return t===undefined&&(t=e._originDisplay||""),"none"!=e.css("display")?e:e.css("display",t)},hide:function(){var t=this;return t.length<1?t:(t._originDisplay=t[0].style.display,t.css("display","none"))},outer:function(){var t=this;if(t.length<1)return"";var e,n=t.doc.createElement("div");return n.appendChild(t[0].cloneNode(!0)),e=_formatHtml(n.innerHTML),n=null,e},isSingle:function(){return!!_SINGLE_TAG_MAP[this.name]},isInline:function(){return!!_INLINE_TAG_MAP[this.name]},isBlock:function(){return!!_BLOCK_TAG_MAP[this.name]},isStyle:function(){return!!_STYLE_TAG_MAP[this.name]},isControl:function(){return!!_CONTROL_TAG_MAP[this.name]},contains:function(t){return!(this.length<1)&&_contains(this[0],_get(t))},parent:function(){if(this.length<1)return null;var t=this[0].parentNode;return t?new KNode(t):null},children:function(){if(this.length<1)return new KNode([]);var t=[],e=this[0].firstChild;while(e)3==e.nodeType&&""===_trim(e.nodeValue)||t.push(e),e=e.nextSibling;return new KNode(t)},first:function(){var t=this.children();return t.length>0?t.eq(0):null},last:function(){var t=this.children();return t.length>0?t.eq(t.length-1):null},index:function(){if(this.length<1)return-1;var t=-1,e=this[0];while(e)t++,e=e.previousSibling;return t},prev:function(){if(this.length<1)return null;var t=this[0].previousSibling;return t?new KNode(t):null},next:function(){if(this.length<1)return null;var t=this[0].nextSibling;return t?new KNode(t):null},scan:function(t,e){if(!(this.length<1))return e=e===undefined||e,n(this[0]),this;function n(i){var r=e?i.firstChild:i.lastChild;while(r){var o=e?r.nextSibling:r.previousSibling;if(!1===t(r))return!1;if(!1===n(r))return!1;r=o}}}}),_each("blur,focus,focusin,focusout,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error,contextmenu".split(","),(function(t,e){KNode.prototype[e]=function(t){return t?this.bind(e,t):this.fire(e)}}));var _K=K;K=function(t,e){if(t!==undefined&&null!==t){if("string"===typeof t){e&&(e=_get(e));var n=t.length;if("@"===t.charAt(0)&&(t=t.substr(1)),t.length!==n||/<.+>/.test(t)){var i=e?e.ownerDocument||e:document,r=i.createElement("div"),o=[];r.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+t;for(var a=0,s=r.childNodes.length;a<s;a++){var l=r.childNodes[a];"__kindeditor_temp_tag__"!=l.id&&o.push(l)}return c(o)}return c(_queryAll(t,e))}return t&&t.constructor===KNode?t:(t.toArray&&(t=t.toArray()),_isArray(t)?c(t):c(_toArray(arguments)))}function c(t){return t[0]||(t=[]),new KNode(t)}},_each(_K,(function(t,e){K[t]=e})),K.NodeClass=KNode,window.KindEditor=K;var _START_TO_START=0,_START_TO_END=1,_END_TO_END=2,_END_TO_START=3,_BOOKMARK_ID=0;_extend(KRange,{init:function(t){var e=this;e.startContainer=t,e.startOffset=0,e.endContainer=t,e.endOffset=0,e.collapsed=!0,e.doc=t},commonAncestor:function(){function t(t){var e=[];while(t)e.push(t),t=t.parentNode;return e}var e,n,i=t(this.startContainer),r=t(this.endContainer),o=0,a=i.length,s=r.length;while(++o)if(e=i[a-o],n=r[s-o],!e||!n||e!==n)break;return i[a-o+1]},setStart:function(t,e){var n=this,i=n.doc;return n.startContainer=t,n.startOffset=e,n.endContainer===i&&(n.endContainer=t,n.endOffset=e),_updateCollapsed(this)},setEnd:function(t,e){var n=this,i=n.doc;return n.endContainer=t,n.endOffset=e,n.startContainer===i&&(n.startContainer=t,n.startOffset=e),_updateCollapsed(this)},setStartBefore:function(t){return this.setStart(t.parentNode||this.doc,K(t).index())},setStartAfter:function(t){return this.setStart(t.parentNode||this.doc,K(t).index()+1)},setEndBefore:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index())},setEndAfter:function(t){return this.setEnd(t.parentNode||this.doc,K(t).index()+1)},selectNode:function(t){return this.setStartBefore(t).setEndAfter(t)},selectNodeContents:function(t){var e=K(t);if(3==e.type||e.isSingle())return this.selectNode(t);var n=e.children();return n.length>0?this.setStartBefore(n[0]).setEndAfter(n[n.length-1]):this.setStart(t,0).setEnd(t,0)},collapse:function(t){return t?this.setEnd(this.startContainer,this.startOffset):this.setStart(this.endContainer,this.endOffset)},compareBoundaryPoints:function(t,e){var n=this.get(),i=e.get();if(!_IERANGE)return n.compareBoundaryPoints(t,i);var r={};r[_START_TO_START]="StartToStart",r[_START_TO_END]="EndToStart",r[_END_TO_END]="EndToEnd",r[_END_TO_START]="StartToEnd";var o,a,s,l,c,u=n.compareEndPoints(r[t],i);if(0!==u)return u;if(t!==_START_TO_START&&t!==_END_TO_START||(o=this.startContainer,l=this.startOffset),t!==_START_TO_END&&t!==_END_TO_END||(o=this.endContainer,l=this.endOffset),t!==_START_TO_START&&t!==_START_TO_END||(a=e.startContainer,c=e.startOffset),t!==_END_TO_END&&t!==_END_TO_START||(a=e.endContainer,c=e.endOffset),o===a){var d=l-c;return d>0?1:d<0?-1:0}s=a;while(s&&s.parentNode!==o)s=s.parentNode;if(s)return K(s).index()>=l?-1:1;s=o;while(s&&s.parentNode!==a)s=s.parentNode;return s?K(s).index()>=c?1:-1:(s=K(a).next(),s&&s.contains(o)?1:(s=K(o).next(),s&&s.contains(a)?-1:void 0))},cloneRange:function(){return new KRange(this.doc).setStart(this.startContainer,this.startOffset).setEnd(this.endContainer,this.endOffset)},toString:function(){var t=this.get(),e=_IERANGE?t.text:t.toString();return e.replace(/\r\n|\n|\r/g,"")},cloneContents:function(){return _copyAndDelete(this,!0,!1)},deleteContents:function(){return _copyAndDelete(this,!1,!0)},extractContents:function(){return _copyAndDelete(this,!0,!0)},insertNode:function(t){var e,n,i,r=this,o=r.startContainer,a=r.startOffset,s=r.endContainer,l=r.endOffset,c=1;return"#document-fragment"===t.nodeName.toLowerCase()&&(e=t.firstChild,n=t.lastChild,c=t.childNodes.length),1==o.nodeType?(i=o.childNodes[a],i?(o.insertBefore(t,i),o===s&&(l+=c)):o.appendChild(t)):3==o.nodeType&&(0===a?(o.parentNode.insertBefore(t,o),o.parentNode===s&&(l+=c)):a>=o.nodeValue.length?o.nextSibling?o.parentNode.insertBefore(t,o.nextSibling):o.parentNode.appendChild(t):(i=a>0?o.splitText(a):o,o.parentNode.insertBefore(t,i),o===s&&(s=i,l-=a))),e?r.setStartBefore(e).setEndAfter(n):r.selectNode(t),r.compareBoundaryPoints(_END_TO_END,r.cloneRange().setEnd(s,l))>=1?r:r.setEnd(s,l)},surroundContents:function(t){return t.appendChild(this.extractContents()),this.insertNode(t).selectNode(t)},isControl:function(){var t=this,e=t.startContainer,n=t.startOffset,i=t.endContainer,r=t.endOffset;return 1==e.nodeType&&e===i&&n+1===r&&K(e.childNodes[n]).isControl()},get:function(t){var e,n=this,i=n.doc;if(!_IERANGE){e=i.createRange();try{e.setStart(n.startContainer,n.startOffset),e.setEnd(n.endContainer,n.endOffset)}catch(o){}return e}if(t&&n.isControl())return e=i.body.createControlRange(),e.addElement(n.startContainer.childNodes[n.startOffset]),e;var r=n.cloneRange().down();return e=i.body.createTextRange(),e.setEndPoint("StartToStart",_getEndRange(r.startContainer,r.startOffset)),e.setEndPoint("EndToStart",_getEndRange(r.endContainer,r.endOffset)),e},html:function(){return K(this.cloneContents()).outer()},down:function(){var t=this;function e(e,n,i){if(1==e.nodeType){var r,o,a,s,l=K(e).children();if(0!==l.length)n>0&&(r=l.eq(n-1)),n<l.length&&(o=l.eq(n)),r&&3==r.type&&(a=r[0],s=a.nodeValue.length),o&&3==o.type&&(a=o[0],s=0),a&&(i?t.setStart(a,s):t.setEnd(a,s))}}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},up:function(){var t=this;function e(e,n,i){3==e.nodeType&&(0===n?i?t.setStartBefore(e):t.setEndBefore(e):n==e.nodeValue.length&&(i?t.setStartAfter(e):t.setEndAfter(e)))}return e(t.startContainer,t.startOffset,!0),e(t.endContainer,t.endOffset,!1),t},enlarge:function(t){var e=this;function n(n,i,r){var o,a=K(n);if(!(3==a.type||_NOSPLIT_TAG_MAP[a.name]||!t&&a.isBlock()))if(0===i){while(!a.prev()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartBefore(a[0]):e.setEndBefore(a[0])}else if(i==a.children().length){while(!a.next()){if(o=a.parent(),!o||_NOSPLIT_TAG_MAP[o.name]||!t&&o.isBlock())break;a=o}r?e.setStartAfter(a[0]):e.setEndAfter(a[0])}}return e.up(),n(e.startContainer,e.startOffset,!0),n(e.endContainer,e.endOffset,!1),e},shrink:function(){var t,e=this,n=e.collapsed;while(1==e.startContainer.nodeType&&(t=e.startContainer.childNodes[e.startOffset])&&1==t.nodeType&&!K(t).isSingle())e.setStart(t,0);if(n)return e.collapse(n);while(1==e.endContainer.nodeType&&e.endOffset>0&&(t=e.endContainer.childNodes[e.endOffset-1])&&1==t.nodeType&&!K(t).isSingle())e.setEnd(t,t.childNodes.length);return e},createBookmark:function(t){var e,n=this,i=n.doc,r=K('<span style="display:none;"></span>',i)[0];return r.id="__kindeditor_bookmark_start_"+_BOOKMARK_ID+++"__",n.collapsed||(e=r.cloneNode(!0),e.id="__kindeditor_bookmark_end_"+_BOOKMARK_ID+++"__"),e&&n.cloneRange().collapse(!1).insertNode(e).setEndBefore(e),n.insertNode(r).setStartAfter(r),{start:t?"#"+r.id:r,end:e?t?"#"+e.id:e:null}},moveToBookmark:function(t){var e=this,n=e.doc,i=K(t.start,n),r=t.end?K(t.end,n):null;return!i||i.length<1||(e.setStartBefore(i[0]),i.remove(),r&&r.length>0?(e.setEndBefore(r[0]),r.remove()):e.collapse(!0)),e},dump:function(){console.log("--------------------"),console.log(3==this.startContainer.nodeType?this.startContainer.nodeValue:this.startContainer,this.startOffset),console.log(3==this.endContainer.nodeType?this.endContainer.nodeValue:this.endContainer,this.endOffset)}}),K.RangeClass=KRange,K.range=_range,K.START_TO_START=_START_TO_START,K.START_TO_END=_START_TO_END,K.END_TO_END=_END_TO_END,K.END_TO_START=_END_TO_START,_extend(KCmd,{init:function(t){var e=this,n=t.doc;e.doc=n,e.win=_getWin(n),e.sel=_getSel(n),e.range=t},selection:function(t){var e=this,n=e.doc,i=_getRng(n);return e.sel=_getSel(n),i?(e.range=_range(i),"html"==K(e.range.startContainer).name&&e.range.selectNodeContents(n.body).collapse(!1),e):(t&&e.range.selectNodeContents(n.body).collapse(!1),e)},select:function(t){t=_undef(t,!0);var e,n=this,i=n.sel,r=n.range.cloneRange().shrink(),o=r.startContainer,a=r.startOffset,s=(r.endContainer,r.endOffset,_getDoc(o)),l=n.win,c=!1;if(t&&1==o.nodeType&&r.collapsed){if(_IERANGE){var u=K("<span>&nbsp;</span>",s);r.insertNode(u[0]),e=s.body.createTextRange();try{e.moveToElementText(u[0])}catch(p){}return e.collapse(!1),e.select(),u.remove(),l.focus(),n}if(_WEBKIT){var d=o.childNodes;(K(o).isInline()||a>0&&K(d[a-1]).isInline()||d[a]&&K(d[a]).isInline())&&(r.insertNode(s.createTextNode("​")),c=!0)}}if(_IERANGE)try{e=r.get(!0),e.select()}catch(f){}else if(c&&r.collapse(!1),e=r.get(!0),i.removeAllRanges(),i.addRange(e),s!==document){var h=K(e.endContainer).pos();l.scrollTo(h.x,h.y)}return l.focus(),n},wrap:function(t){var e,n=this,i=n.doc,r=n.range;if(e=K(t,i),r.collapsed)return r.shrink(),r.insertNode(e[0]).selectNodeContents(e[0]),n;if(e.isBlock()){var o=e.clone(!0),a=o;while(a.first())a=a.first();return a.append(r.extractContents()),r.insertNode(o[0]).selectNode(o[0]),n}r.enlarge();var s=r.createBookmark(),l=r.commonAncestor(),c=!1;return K(l).scan((function(t){if(c||t!=s.start){if(c){if(t==s.end)return!1;var n=K(t);if(_inPreElement(n))return;if(3==n.type&&_trim(t.nodeValue).length>0){var i;while((i=n.parent())&&i.isStyle()&&1==i.children().length)n=i;_wrapNode(n,e)}}}else c=!0})),r.moveToBookmark(s),n},split:function(t,e){var n,i=this.range,r=i.doc,o=i.cloneRange().collapse(t),a=o.startContainer,s=o.startOffset,l=3==a.nodeType?a.parentNode:a,c=!1;while(l&&l.parentNode){if(n=K(l),e){if(!n.isStyle())break;if(!_hasAttrOrCss(n,e))break}else if(_NOSPLIT_TAG_MAP[n.name])break;c=!0,l=l.parentNode}if(c){var u=r.createElement("span");i.cloneRange().collapse(!t).insertNode(u),t?o.setStartBefore(l.firstChild).setEnd(a,s):o.setStart(a,s).setEndAfter(l.lastChild);var d=o.extractContents(),h=d.firstChild,p=d.lastChild;t?(o.insertNode(d),i.setStartAfter(p).setEndBefore(u)):(l.appendChild(d),i.setStartBefore(u).setEndBefore(h));var f=u.parentNode;if(f==i.endContainer){var m=K(u).prev(),g=K(u).next();m&&g&&3==m.type&&3==g.type?i.setEnd(m[0],m[0].nodeValue.length):t||i.setEnd(i.endContainer,i.endOffset-1)}f.removeChild(u)}return this},remove:function(t){var e,n,i=this,r=i.doc,o=i.range;if(o.enlarge(),0===o.startOffset){var a,s=K(o.startContainer);while((a=s.parent())&&a.isStyle()&&1==a.children().length)s=a;o.setStart(s[0],0),s=K(o.startContainer),s.isBlock()&&_removeAttrOrCss(s,t);var l=s.parent();l&&l.isBlock()&&_removeAttrOrCss(l,t)}if(o.collapsed){if(i.split(!0,t),e=o.startContainer,n=o.startOffset,n>0){var c=K(e.childNodes[n-1]);c&&_isEmptyNode(c)&&(c.remove(),o.setStart(e,n-1))}var u=K(e.childNodes[n]);return u&&_isEmptyNode(u)&&u.remove(),_isEmptyNode(e)&&(o.startBefore(e),e.remove()),o.collapse(!0),i}i.split(!0,t),i.split(!1,t);var d=r.createElement("span"),h=r.createElement("span");o.cloneRange().collapse(!1).insertNode(h),o.cloneRange().collapse(!0).insertNode(d);var p=[],f=!1;K(o.commonAncestor()).scan((function(t){if(f||t!=d)return t!=h&&void(f&&p.push(t));f=!0})),K(d).remove(),K(h).remove(),e=o.startContainer,n=o.startOffset;var m=o.endContainer,g=o.endOffset;if(n>0){var v=K(e.childNodes[n-1]);v&&_isEmptyNode(v)&&(v.remove(),o.setStart(e,n-1),e==m&&o.setEnd(m,g-1));var b=K(e.childNodes[n]);b&&_isEmptyNode(b)&&(b.remove(),e==m&&o.setEnd(m,g-1))}var _=K(m.childNodes[o.endOffset]);_&&_isEmptyNode(_)&&_.remove();var y=o.createBookmark(!0);return _each(p,(function(e,n){_removeAttrOrCss(K(n),t)})),o.moveToBookmark(y),i},commonNode:function(t){var e=this.range,n=e.endContainer,i=e.endOffset,r=3==n.nodeType||0===i?n:n.childNodes[i-1];function o(e){var n=e,i=e;while(i){if(_hasAttrOrCss(K(i),t))return K(i);i=i.parentNode}while(n&&(n=n.lastChild))if(_hasAttrOrCss(K(n),t))return K(n);return null}var a=o(r);if(a)return a;if(1==r.nodeType||3==n.nodeType&&0===i){var s=K(r).prev();if(s)return o(s)}return null},commonAncestor:function(t){var e=this.range,n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset,a=3==n.nodeType||0===i?n:n.childNodes[i-1],s=3==r.nodeType||0===o?r:r.childNodes[o-1];function l(e){while(e){if(1==e.nodeType&&e.tagName.toLowerCase()===t)return e;e=e.parentNode}return null}var c=l(a),u=l(s);return c&&u&&c===u?K(c):null},state:function(t){var e=this,n=e.doc,i=!1;try{i=n.queryCommandState(t)}catch(r){}return i},val:function(t){var e=this,n=e.doc;e.range;function i(t){return t.toLowerCase()}t=i(t);var r,o="";return"fontfamily"===t||"fontname"===t?(o=_nativeCommandValue(n,"fontname"),o=o.replace(/['"]/g,""),i(o)):"formatblock"===t?(o=_nativeCommandValue(n,t),""===o&&(r=e.commonNode({"h1,h2,h3,h4,h5,h6,p,div,pre,address":"*"}),r&&(o=r.name)),"Normal"===o&&(o="p"),i(o)):"fontsize"===t?(r=e.commonNode({"*":".font-size"}),r&&(o=r.css("font-size")),i(o)):"forecolor"===t?(r=e.commonNode({"*":".color"}),r&&(o=r.css("color")),o=_toHex(o),""===o&&(o="default"),i(o)):"hilitecolor"===t?(r=e.commonNode({"*":".background-color"}),r&&(o=r.css("background-color")),o=_toHex(o),""===o&&(o="default"),i(o)):o},toggle:function(t,e){var n=this;return n.commonNode(e)?n.remove(e):n.wrap(t),n.select()},bold:function(){return this.toggle("<strong></strong>",{span:".font-weight=bold",strong:"*",b:"*"})},italic:function(){return this.toggle("<em></em>",{span:".font-style=italic",em:"*",i:"*"})},underline:function(){return this.toggle("<u></u>",{span:".text-decoration=underline",u:"*"})},strikethrough:function(){return this.toggle("<s></s>",{span:".text-decoration=line-through",s:"*"})},forecolor:function(t){return this.wrap('<span style="color:'+t+';"></span>').select()},hilitecolor:function(t){return this.wrap('<span style="background-color:'+t+';"></span>').select()},fontsize:function(t){return this.wrap('<span style="font-size:'+t+';"></span>').select()},fontname:function(t){return this.fontfamily(t)},fontfamily:function(t){return this.wrap('<span style="font-family:'+t+';"></span>').select()},removeformat:function(){var t={"*":".font-weight,.font-style,.text-decoration,.color,.background-color,.font-size,.font-family,.text-indent"},e=_STYLE_TAG_MAP;return _each(e,(function(e,n){t[e]="*"})),this.remove(t),this.select()},inserthtml:function(t,e){var n=this,i=n.range;if(""===t)return n;function r(t,e){e='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=t.get();i.item?i.item(0).outerHTML=e:i.pasteHTML(e);var r=t.doc.getElementById("__kindeditor_temp_tag__");r.parentNode.removeChild(r);var o=_toRange(i);t.setEnd(o.endContainer,o.endOffset),t.collapse(!1),n.select(!1)}function o(t,e){var i=t.doc,r=i.createDocumentFragment();K("@"+e,i).each((function(){r.appendChild(this)})),t.deleteContents(),t.insertNode(r),t.collapse(!1),n.select(!1)}if(_IERANGE&&e){try{r(i,t)}catch(a){o(i,t)}return n}return o(i,t),n},hr:function(){return this.inserthtml("<hr />")},print:function(){return this.win.print(),this},insertimage:function(t,e,n,i,r,o){e=_undef(e,""),r=_undef(r,0);var a='<img src="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';return n&&(a+='width="'+_escape(n)+'" '),i&&(a+='height="'+_escape(i)+'" '),e&&(a+='title="'+_escape(e)+'" '),o&&(a+='align="'+_escape(o)+'" '),a+='alt="'+_escape(e)+'" ',a+="/>",this.inserthtml(a)},createlink:function(t,e){var n=this,i=n.doc,r=n.range;n.select();var o=n.commonNode({a:"*"});o&&!r.isControl()&&(r.selectNode(o.get()),n.select());var a='<a href="'+_escape(t)+'" data-ke-src="'+_escape(t)+'" ';if(e&&(a+=' target="'+_escape(e)+'"'),r.collapsed)return a+=">"+_escape(t)+"</a>",n.inserthtml(a);if(r.isControl()){var s=K(r.startContainer.childNodes[r.startOffset]);return a+="></a>",s.after(K(a,i)),s.next().append(s),r.selectNode(s[0]),n.select()}function l(t,e,n){K(t).attr("href",e).attr("data-ke-src",e),n?K(t).attr("target",n):K(t).removeAttr("target")}var c=r.startContainer,u=r.startOffset,d=r.endContainer,h=r.endOffset;if(1==c.nodeType&&c===d&&u+1===h){var p=c.childNodes[u];if("a"==p.nodeName.toLowerCase())return l(p,t,e),n}return _nativeCommand(i,"createlink","__kindeditor_temp_url__"),K('a[href="__kindeditor_temp_url__"]',i).each((function(){l(this,t,e)})),n},unlink:function(){var t=this,e=t.doc,n=t.range;if(t.select(),n.collapsed){var i=t.commonNode({a:"*"});if(i&&(n.selectNode(i.get()),t.select()),_nativeCommand(e,"unlink",null),_WEBKIT&&"img"===K(n.startContainer).name){var r=K(n.startContainer).parent();"a"===r.name&&r.remove(!0)}}else _nativeCommand(e,"unlink",null);return t}}),_each("formatblock,selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript".split(","),(function(t,e){KCmd.prototype[e]=function(t){var n=this;return n.select(),_nativeCommand(n.doc,e,t),_IERANGE&&_inArray(e,"justifyleft,justifycenter,justifyright,justifyfull".split(","))>=0&&n.selection(),(!_IERANGE||_inArray(e,"formatblock,selectall,insertorderedlist,insertunorderedlist".split(","))>=0)&&n.selection(),n}})),_each("cut,copy,paste".split(","),(function(t,e){KCmd.prototype[e]=function(){var t=this;if(!t.doc.queryCommandSupported(e))throw"not supported";return t.select(),_nativeCommand(t.doc,e,null),t}})),K.CmdClass=KCmd,K.cmd=_cmd,_extend(KWidget,{init:function(t){var e=this;if(e.name=t.name||"",e.doc=t.doc||document,e.win=_getWin(e.doc),e.x=_addUnit(t.x),e.y=_addUnit(t.y),e.z=t.z,e.width=_addUnit(t.width),e.height=_addUnit(t.height),e.div=K('<div style="display:block;"></div>'),e.options=t,e._alignEl=t.alignEl,e.width&&e.div.css("width",e.width),e.height&&e.div.css("height",e.height),e.z&&e.div.css({position:"absolute",left:e.x,top:e.y,"z-index":e.z}),!e.z||e.x!==undefined&&e.y!==undefined||e.autoPos(e.width,e.height),t.cls&&e.div.addClass(t.cls),t.shadowMode&&e.div.addClass("ke-shadow"),t.css&&e.div.css(t.css),t.src?K(t.src).replaceWith(e.div):K(e.doc.body).append(e.div),t.html&&e.div.html(t.html),t.autoScroll)if(_IE&&_V<7||_QUIRKS){var n=_getScrollPos();K(e.win).bind("scroll",(function(t){var i=_getScrollPos(),r=i.x-n.x,o=i.y-n.y;e.pos(_removeUnit(e.x)+r,_removeUnit(e.y)+o,!1)}))}else e.div.css("position","fixed")},pos:function(t,e,n){var i=this;return n=_undef(n,!0),null!==t&&(t=t<0?0:_addUnit(t),i.div.css("left",t),n&&(i.x=t)),null!==e&&(e=e<0?0:_addUnit(e),i.div.css("top",e),n&&(i.y=e)),i},autoPos:function(t,e){var n=this,i=_removeUnit(t)||0,r=_removeUnit(e)||0,o=_getScrollPos();if(n._alignEl){var a=K(n._alignEl),s=a.pos(),l=_round(a[0].clientWidth/2-i/2),c=_round(a[0].clientHeight/2-r/2);x=l<0?s.x:s.x+l,y=c<0?s.y:s.y+c}else{var u=_docElement(n.doc);x=_round(o.x+(u.clientWidth-i)/2),y=_round(o.y+(u.clientHeight-r)/2)}return _IE&&_V<7||_QUIRKS||(x-=o.x,y-=o.y),n.pos(x,y)},remove:function(){var t=this;return(_IE&&_V<7||_QUIRKS)&&K(t.win).unbind("scroll"),t.div.remove(),_each(t,(function(e){t[e]=null})),this},show:function(){return this.div.show(),this},hide:function(){return this.div.hide(),this},draggable:function(t){var e=this;return t=t||{},t.moveEl=e.div,t.moveFn=function(t,n,i,r,o,a){(t+=o)<0&&(t=0),(n+=a)<0&&(n=0),e.pos(t,n)},_drag(t),e}}),K.WidgetClass=KWidget,K.widget=_widget;var html,_direction="";(html=document.getElementsByTagName("html"))&&(_direction=html[0].dir),_extend(KEdit,KWidget,{init:function(t){var e=this;KEdit.parent.init.call(e,t),e.srcElement=K(t.srcElement),e.div.addClass("ke-edit"),e.designMode=_undef(t.designMode,!0),e.beforeGetHtml=t.beforeGetHtml,e.beforeSetHtml=t.beforeSetHtml,e.afterSetHtml=t.afterSetHtml;var n=_undef(t.themesPath,""),i=t.bodyClass,r=t.cssPath,o=t.cssData,a="res:"!=location.protocol&&location.host.replace(/:\d+/,"")!==document.domain,s="document.open();"+(a?'document.domain="'+document.domain+'";':"")+"document.close();",l=_IE?' src="javascript:void(function(){'+encodeURIComponent(s)+'}())"':"";function c(){var s=_iframeDoc(e.iframe);s.open(),a&&(s.domain=document.domain),s.write(_getInitHtml(n,i,r,o)),s.close(),e.win=e.iframe[0].contentWindow,e.doc=s;var l=_cmd(s);e.afterChange((function(t){l.selection()})),_WEBKIT&&K(s).click((function(t){"img"===K(t.target).name&&(l.selection(!0),l.range.selectNode(t.target),l.select())})),_IE&&(e._mousedownHandler=function(){var t=l.range.cloneRange();t.shrink(),t.isControl()&&e.blur()},K(document).mousedown(e._mousedownHandler),K(s).keydown((function(t){if(8==t.which){l.selection();var e=l.range;e.isControl()&&(e.collapse(!0),K(e.startContainer.childNodes[e.startOffset]).remove(),t.preventDefault())}}))),e.cmd=l,e.html(_elementVal(e.srcElement)),_IE?(s.body.disabled=!0,s.body.contentEditable=!0,s.body.removeAttribute("disabled")):s.designMode="on",t.afterCreate&&t.afterCreate.call(e)}e.iframe=K('<iframe class="ke-edit-iframe" hidefocus="true" frameborder="0"'+l+"></iframe>").css("width","100%"),e.textarea=K('<textarea class="ke-edit-textarea" hidefocus="true"></textarea>').css("width","100%"),e.tabIndex=isNaN(parseInt(t.tabIndex,10))?e.srcElement.attr("tabindex"):parseInt(t.tabIndex,10),e.iframe.attr("tabindex",e.tabIndex),e.textarea.attr("tabindex",e.tabIndex),e.width&&e.setWidth(e.width),e.height&&e.setHeight(e.height),e.designMode?e.textarea.hide():e.iframe.hide(),a&&e.iframe.bind("load",(function(t){e.iframe.unbind("load"),_IE?c():setTimeout(c,0)})),e.div.append(e.iframe),e.div.append(e.textarea),e.srcElement.hide(),!a&&c()},setWidth:function(t){var e=this;return t=_addUnit(t),e.width=t,e.div.css("width",t),e},setHeight:function(t){var e=this;return t=_addUnit(t),e.height=t,e.div.css("height",t),e.iframe.css("height",t),(_IE&&_V<8||_QUIRKS)&&(t=_addUnit(_removeUnit(t)-2)),e.textarea.css("height",t),e},remove:function(){var t=this,e=t.doc;K(e.body).unbind(),K(e).unbind(),K(t.win).unbind(),t._mousedownHandler&&K(document).unbind("mousedown",t._mousedownHandler),_elementVal(t.srcElement,t.html()),t.srcElement.show(),t.iframe.unbind(),t.textarea.unbind(),KEdit.parent.remove.call(t)},html:function(t,e){var n=this,i=n.doc;if(n.designMode){var r=i.body;return t===undefined?(t=e?"<!doctype html><html>"+r.parentNode.innerHTML+"</html>":r.innerHTML,n.beforeGetHtml&&(t=n.beforeGetHtml(t)),_GECKO&&"<br />"==t&&(t=""),t):(n.beforeSetHtml&&(t=n.beforeSetHtml(t)),_IE&&_V>=9&&(t=t.replace(/(<.*?checked=")checked(".*>)/gi,"$1$2")),K(r).html(t),n.afterSetHtml&&n.afterSetHtml(),n)}return t===undefined?n.textarea.val():(n.textarea.val(t),n)},design:function(t){var e,n=this;if(t===undefined?!n.designMode:t){if(!n.designMode){e=n.html(),n.designMode=!0,n.textarea.hide(),n.html(e);var i=n.iframe,r=_removeUnit(n.height);i.height(r-2),i.show(),setTimeout((function(){i.height(r)}),0)}}else n.designMode&&(e=n.html(),n.designMode=!1,n.html(e),n.iframe.hide(),n.textarea.show());return n.focus()},focus:function(){var t=this;return t.designMode?t.win.focus():t.textarea[0].focus(),t},blur:function(){var t=this;if(_IE){var e=K('<input type="text" style="float:left;width:0;height:0;padding:0;margin:0;border:0;" value="" />',t.div);t.div.append(e),e[0].focus(),e.remove()}else t.designMode?t.win.blur():t.textarea[0].blur();return t},afterChange:function(t){var e=this,n=e.doc,i=n.body;function r(e){setTimeout((function(){t(e)}),1)}return K(n).keyup((function(e){e.ctrlKey||e.altKey||!_CHANGE_KEY_MAP[e.which]||t(e)})),K(n).mouseup(t).contextmenu(t),K(e.win).blur(t),K(i).bind("paste",r),K(i).bind("cut",r),e}}),K.EditClass=KEdit,K.edit=_edit,K.iframeDoc=_iframeDoc,_extend(KToolbar,KWidget,{init:function(t){var e=this;function n(t){var e=K(t);return e.hasClass("ke-outline")?e:e.hasClass("ke-toolbar-icon")?e.parent():void 0}function i(t,e){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;if(i.hasClass("ke-selected"))return;i[e]("ke-on")}}KToolbar.parent.init.call(e,t),e.disableMode=_undef(t.disableMode,!1),e.noDisableItemMap=_toMap(_undef(t.noDisableItems,[])),e._itemMap={},e.div.addClass("ke-toolbar").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()})).attr("unselectable","on"),e.div.mouseover((function(t){i(t,"addClass")})).mouseout((function(t){i(t,"removeClass")})).click((function(t){var i=n(t.target);if(i){if(i.hasClass("ke-disabled"))return;e.options.click.call(this,t,i.attr("data-name"))}}))},get:function(t){return this._itemMap[t]?this._itemMap[t]:this._itemMap[t]=K("span.ke-icon-"+t,this.div).parent()},select:function(t){return _selectToolbar.call(this,t,(function(t){t.addClass("ke-selected")})),self},unselect:function(t){return _selectToolbar.call(this,t,(function(t){t.removeClass("ke-selected").removeClass("ke-on")})),self},enable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-disabled"),n.opacity(1)),e},disable:function(t){var e=this,n=t.get?t:e.get(t);return n&&(n.removeClass("ke-selected").addClass("ke-disabled"),n.opacity(.5)),e},disableAll:function(t,e){var n=this,i=n.noDisableItemMap;return e&&(i=_toMap(e)),(t===undefined?!n.disableMode:t)?(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.disable(t)})),n.disableMode=!0):(K("span.ke-outline",n.div).each((function(){var t=K(this),e=t[0].getAttribute("data-name",2);i[e]||n.enable(t)})),n.disableMode=!1),n}}),K.ToolbarClass=KToolbar,K.toolbar=_toolbar,_extend(KMenu,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KMenu.parent.init.call(e,t),e.centerLineMode=_undef(t.centerLineMode,!0),e.div.addClass("ke-menu").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on")},addItem:function(t){var e=this;if("-"!==t.title){var n,i=K('<div class="ke-menu-item" unselectable="on"></div>'),r=K('<div class="ke-inline-block ke-menu-item-left"></div>'),o=K('<div class="ke-inline-block ke-menu-item-right"></div>'),a=_addUnit(t.height),s=_undef(t.iconClass,"");return e.div.append(i),a&&(i.css("height",a),o.css("line-height",a)),e.centerLineMode&&(n=K('<div class="ke-inline-block ke-menu-item-center"></div>'),a&&n.css("height",a)),i.mouseover((function(t){K(this).addClass("ke-menu-item-on"),n&&n.addClass("ke-menu-item-center-on")})).mouseout((function(t){K(this).removeClass("ke-menu-item-on"),n&&n.removeClass("ke-menu-item-center-on")})).click((function(e){t.click.call(K(this)),e.stopPropagation()})).append(r),n&&i.append(n),i.append(o),t.checked&&(s="ke-icon-checked"),""!==s&&r.html('<span class="ke-inline-block ke-toolbar-icon ke-toolbar-icon-url '+s+'"></span>'),o.html(t.title),e}e.div.append(K('<div class="ke-menu-separator"></div>'))},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),K(".ke-menu-item",t.div[0]).unbind(),KMenu.parent.remove.call(t),t}}),K.MenuClass=KMenu,K.menu=_menu,_extend(KColorPicker,KWidget,{init:function(t){var e=this;t.z=t.z||811213,KColorPicker.parent.init.call(e,t);var n=t.colors||[["#E53333","#E56600","#FF9900","#64451D","#DFC5A4","#FFE500"],["#009900","#006600","#99BB00","#B8D100","#60D978","#00D5FF"],["#337FE5","#003399","#4C33E5","#9933E5","#CC33E5","#EE33EE"],["#FFFFFF","#CCCCCC","#999999","#666666","#333333","#000000"]];e.selectedColor=(t.selectedColor||"").toLowerCase(),e._cells=[],e.div.addClass("ke-colorpicker").bind("click,mousedown",(function(t){t.stopPropagation()})).attr("unselectable","on");var i=e.doc.createElement("table");e.div.append(i),i.className="ke-colorpicker-table",i.cellPadding=0,i.cellSpacing=0,i.border=0;var r=i.insertRow(0),o=r.insertCell(0);o.colSpan=n[0].length,e._addAttr(o,"","ke-colorpicker-cell-top");for(var a=0;a<n.length;a++){r=i.insertRow(a+1);for(var s=0;s<n[a].length;s++)o=r.insertCell(s),e._addAttr(o,n[a][s],"ke-colorpicker-cell")}},_addAttr:function(t,e,n){var i=this;t=K(t).addClass(n),i.selectedColor===e.toLowerCase()&&t.addClass("ke-colorpicker-cell-selected"),t.attr("title",e||i.options.noColor),t.mouseover((function(t){K(this).addClass("ke-colorpicker-cell-on")})),t.mouseout((function(t){K(this).removeClass("ke-colorpicker-cell-on")})),t.click((function(t){t.stop(),i.options.click.call(K(this),e)})),e?t.append(K('<div class="ke-colorpicker-cell-color" unselectable="on"></div>').css("background-color",e)):t.html(i.options.noColor),K(t).attr("unselectable","on"),i._cells.push(t)},remove:function(){var t=this;return _each(t._cells,(function(){this.unbind()})),KColorPicker.parent.remove.call(t),t}}),K.ColorPickerClass=KColorPicker,K.colorpicker=_colorpicker,_extend(KUploadButton,{init:function(t){var e=this,n=K(t.button),i=t.fieldName||"file",r=t.url||"",o=n.val(),a=t.extraParams||{},s=n[0].className||"",l=t.target||"kindeditor_upload_iframe_"+(new Date).getTime();t.afterError=t.afterError||function(t){alert(t)};var c=[];for(var u in a)c.push('<input type="hidden" name="'+u+'" value="'+a[u]+'" />');var d=['<div class="ke-inline-block '+s+'">',t.target?"":'<iframe name="'+l+'" style="display:none;"></iframe>',t.form?'<div class="ke-upload-area">':'<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+l+'" action="'+r+'">','<span class="ke-button-common">',c.join(""),'<input type="button" class="ke-button-common ke-button" value="'+o+'" />',"</span>",'<input type="file" class="ke-upload-file" name="'+i+'" tabindex="-1" />',t.form?"</div>":"</form>","</div>"].join(""),h=K(d,n.doc);n.hide(),n.before(h),e.div=h,e.button=n,e.iframe=t.target?K('iframe[name="'+l+'"]'):K("iframe",h),e.form=t.form?K(t.form):K("form",h),e.fileBox=K(".ke-upload-file",h);var p=t.width||K(".ke-button-common",h).width();K(".ke-upload-area",h).width(p),e.options=t},submit:function(){var t=this,e=t.iframe;return e.bind("load",(function(){e.unbind();var n=document.createElement("form");t.fileBox.before(n),K(n).append(t.fileBox),n.reset(),K(n).remove(!0);var i,r=K.iframeDoc(e),o=r.getElementsByTagName("pre")[0],a="";a=o?o.innerHTML:r.body.innerHTML,a=_unescape(a),e[0].src="javascript:false";try{i=K.json(a)}catch(s){t.options.afterError.call(t,"<!doctype html><html>"+r.body.parentNode.innerHTML+"</html>")}i&&t.options.afterUpload.call(t,i)})),t.form[0].submit(),t},remove:function(){var t=this;return t.fileBox&&t.fileBox.unbind(),t.iframe.remove(),t.div.remove(),t.button.show(),t}}),K.UploadButtonClass=KUploadButton,K.uploadbutton=_uploadbutton,_extend(KDialog,KWidget,{init:function(t){var e=this,n=_undef(t.shadowMode,!0);t.z=t.z||811213,t.shadowMode=!1,t.autoScroll=_undef(t.autoScroll,!0),KDialog.parent.init.call(e,t);var i=t.title,r=K(t.body,e.doc),o=t.previewBtn,a=t.yesBtn,s=t.noBtn,l=t.closeBtn,c=_undef(t.showMask,!0);e.div.addClass("ke-dialog").bind("click,mousedown",(function(t){t.stopPropagation()}));var u=K('<div class="ke-dialog-content"></div>').appendTo(e.div);_IE&&_V<7?e.iframeMask=K('<iframe src="about:blank" class="ke-dialog-shadow"></iframe>').appendTo(e.div):n&&K('<div class="ke-dialog-shadow"></div>').appendTo(e.div);var d=K('<div class="ke-dialog-header"></div>');u.append(d),d.html(i),e.closeIcon=K('<span class="ke-dialog-icon-close" title="'+l.name+'"></span>').click(l.click),d.append(e.closeIcon),e.draggable({clickEl:d,beforeDrag:t.beforeDrag});var h=K('<div class="ke-dialog-body"></div>');u.append(h),h.append(r);var p=K('<div class="ke-dialog-footer"></div>');if((o||a||s)&&u.append(p),_each([{btn:o,name:"preview"},{btn:a,name:"yes"},{btn:s,name:"no"}],(function(){if(this.btn){var t=_createButton(this.btn);t.addClass("ke-dialog-"+this.name),p.append(t)}})),e.height&&h.height(_removeUnit(e.height)-d.height()-p.height()),e.div.width(e.div.width()),e.div.height(e.div.height()),e.mask=null,c){var f=_docElement(e.doc),m=Math.max(f.scrollWidth,f.clientWidth),g=Math.max(f.scrollHeight,f.clientHeight);e.mask=_widget({x:0,y:0,z:e.z-1,cls:"ke-dialog-mask",width:m,height:g})}e.autoPos(e.div.width(),e.div.height()),e.footerDiv=p,e.bodyDiv=h,e.headerDiv=d,e.isLoading=!1},setMaskIndex:function(t){var e=this;e.mask.div.css("z-index",t)},showLoading:function(t){t=_undef(t,"");var e=this,n=e.bodyDiv;return e.loading=K('<div class="ke-dialog-loading"><div class="ke-inline-block ke-dialog-loading-content" style="margin-top:'+Math.round(n.height()/3)+'px;">'+t+"</div></div>").width(n.width()).height(n.height()).css("top",e.headerDiv.height()+"px"),n.css("visibility","hidden").after(e.loading),e.isLoading=!0,e},hideLoading:function(){return this.loading&&this.loading.remove(),this.bodyDiv.css("visibility","visible"),this.isLoading=!1,this},remove:function(){var t=this;return t.options.beforeRemove&&t.options.beforeRemove.call(t),t.mask&&t.mask.remove(),t.iframeMask&&t.iframeMask.remove(),t.closeIcon.unbind(),K("input",t.div).unbind(),K("button",t.div).unbind(),t.footerDiv.unbind(),t.bodyDiv.unbind(),t.headerDiv.unbind(),K("iframe",t.div).each((function(){K(this).remove()})),KDialog.parent.remove.call(t),t}}),K.DialogClass=KDialog,K.dialog=_dialog,K.tabs=_tabs,K.loadScript=_loadScript,K.loadStyle=_loadStyle,K.ajax=_ajax;var _plugins={},_language={};KEditor.prototype={lang:function(t){return _lang(t,this.langType)},loadPlugin:function(t,e){var n=this,i=this._pluginStatus;return i||(i=this._pluginStatus={}),_plugins[t]?_isFunction(_plugins[t])?(i[t]||(_plugins[t].call(n,KindEditor),i[t]="inited"),e&&e.call(n),n):(setTimeout((function(){n.loadPlugin(t,e)}),100),n):(_plugins[t]="loading",_loadScript(n.pluginsPath+t+"/"+t+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){setTimeout((function(){_plugins[t]&&n.loadPlugin(t,e)}),0)})),n)},handler:function(t,e){var n=this;return n._handlers[t]||(n._handlers[t]=[]),_isFunction(e)?(n._handlers[t].push(e),n):(_each(n._handlers[t],(function(){e=this.call(n,e)})),e)},clickToolbar:function(t,e){var n=this,i="clickToolbar"+t;return e===undefined?n._handlers[i]?n.handler(i):(n.loadPlugin(t,(function(){n.handler(i)})),n):n.handler(i,e)},updateState:function(){var t=this;return _each("justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,subscript,superscript,bold,italic,underline,strikethrough".split(","),(function(e,n){t.cmd.state(n)?t.toolbar.select(n):t.toolbar.unselect(n)})),t},addContextmenu:function(t){return this._contextmenus.push(t),this},afterCreate:function(t){return this.handler("afterCreate",t)},beforeRemove:function(t){return this.handler("beforeRemove",t)},beforeGetHtml:function(t){return this.handler("beforeGetHtml",t)},beforeSetHtml:function(t){return this.handler("beforeSetHtml",t)},afterSetHtml:function(t){return this.handler("afterSetHtml",t)},create:function(){var t=this,e=t.fullscreenMode;if(t.isCreated)return t;if(t.srcElement.data("kindeditor"))return t;t.srcElement.data("kindeditor","true"),_docElement().style.overflow=e?"hidden":"";var n=e?_docElement().clientWidth+"px":t.width,i=e?_docElement().clientHeight+"px":t.height;(_IE&&_V<8||_QUIRKS)&&(i=_addUnit(_removeUnit(i)+2));var r=t.container=K(t.layout);e?K(document.body).append(r):t.srcElement.before(r);var o=K(".toolbar",r),a=K(".edit",r),s=t.statusbar=K(".statusbar",r);r.removeClass("container").addClass("ke-container ke-container-"+t.themeType).css("width",n),e?(r.css({position:"absolute",left:0,top:0,"z-index":811211}),_GECKO||(t._scrollPos=_getScrollPos()),window.scrollTo(0,0),K(document.body).css({height:"1px",overflow:"hidden"}),K(document.body.parentNode).css("overflow","hidden"),t._fullscreenExecuted=!0):(t._fullscreenExecuted&&(K(document.body).css({height:"",overflow:""}),K(document.body.parentNode).css("overflow","")),t._scrollPos&&window.scrollTo(t._scrollPos.x,t._scrollPos.y));var l=[];K.each(t.items,(function(e,n){"|"==n?l.push('<span class="ke-inline-block ke-separator"></span>'):"/"==n?l.push('<div class="ke-hr"></div>'):(l.push('<span class="ke-outline" data-name="'+n+'" title="'+t.lang(n)+'" unselectable="on">'),l.push('<span class="ke-toolbar-icon ke-toolbar-icon-url ke-icon-'+n+'" unselectable="on"></span></span>'))}));var c=t.toolbar=_toolbar({src:o,html:l.join(""),noDisableItems:t.noDisableItems,click:function(e,n){if(e.stop(),t.menu){var i=t.menu.name;if(t.hideMenu(),i===n)return}t.clickToolbar(n)}}),u=_removeUnit(i)-c.div.height(),d=t.edit=_edit({height:u>0&&_removeUnit(i)>t.minHeight?u:t.minHeight,src:a,srcElement:t.srcElement,designMode:t.designMode,themesPath:t.themesPath,bodyClass:t.bodyClass,cssPath:t.cssPath,cssData:t.cssData,beforeGetHtml:function(e){return e=t.beforeGetHtml(e),e=_removeBookmarkTag(_removeTempTag(e)),_formatHtml(e,t.filterMode?t.htmlTags:null,t.urlType,t.wellFormatMode,t.indentChar)},beforeSetHtml:function(e){return e=_formatHtml(e,t.filterMode?t.htmlTags:null,"",!1),t.beforeSetHtml(e)},afterSetHtml:function(){t.edit=d=this,t.afterSetHtml()},afterCreate:function(){if(t.edit=d=this,t.cmd=d.cmd,t._docMousedownFn=function(e){t.menu&&t.hideMenu()},K(d.doc,document).mousedown(t._docMousedownFn),_bindContextmenuEvent.call(t),_bindNewlineEvent.call(t),_bindTabEvent.call(t),_bindFocusEvent.call(t),d.afterChange((function(e){d.designMode&&(t.updateState(),t.addBookmark(),t.options.afterChange&&t.options.afterChange.call(t))})),d.textarea.keyup((function(e){e.ctrlKey||e.altKey||!_INPUT_KEY_MAP[e.which]||t.options.afterChange&&t.options.afterChange.call(t)})),t.readonlyMode&&t.readonly(),t.isCreated=!0,""===t.initContent&&(t.initContent=t.html()),t._undoStack.length>0){var e=t._undoStack.pop();e.start&&(t.html(e.html),d.cmd.range.moveToBookmark(e),t.select())}t.afterCreate(),t.options.afterCreate&&t.options.afterCreate.call(t)}});function h(){0!==s.height()?t.resize(n,i,!1):setTimeout(h,100)}return s.removeClass("statusbar").addClass("ke-statusbar").append('<span class="ke-inline-block ke-statusbar-center-icon"></span>').append('<span class="ke-inline-block ke-statusbar-right-icon"></span>'),t._fullscreenResizeHandler&&(K(window).unbind("resize",t._fullscreenResizeHandler),t._fullscreenResizeHandler=null),h(),e?(t._fullscreenResizeHandler=function(e){t.isCreated&&t.resize(_docElement().clientWidth,_docElement().clientHeight,!1)},K(window).bind("resize",t._fullscreenResizeHandler),c.select("fullscreen"),s.first().css("visibility","hidden"),s.last().css("visibility","hidden")):(_GECKO&&K(window).bind("scroll",(function(e){t._scrollPos=_getScrollPos()})),t.resizeType>0?_drag({moveEl:r,clickEl:s,moveFn:function(e,n,i,r,o,a){r+=a,t.resize(null,r)}}):s.first().css("visibility","hidden"),2===t.resizeType?_drag({moveEl:r,clickEl:s.last(),moveFn:function(e,n,i,r,o,a){i+=o,r+=a,t.resize(i,r)}}):s.last().css("visibility","hidden")),t},remove:function(){var t=this;return t.isCreated?(t.beforeRemove(),t.srcElement.data("kindeditor",""),t.menu&&t.hideMenu(),_each(t.dialogs,(function(){t.hideDialog()})),K(document).unbind("mousedown",t._docMousedownFn),t.toolbar.remove(),t.edit.remove(),t.statusbar.last().unbind(),t.statusbar.unbind(),t.container.remove(),t.container=t.toolbar=t.edit=t.menu=null,t.dialogs=[],t.isCreated=!1,t):t},resize:function(t,e,n){var i=this;return n=_undef(n,!0),t&&(/%/.test(t)||(t=_removeUnit(t),t=t<i.minWidth?i.minWidth:t),i.container.css("width",_addUnit(t)),n&&(i.width=_addUnit(t))),e&&(e=_removeUnit(e),editHeight=_removeUnit(e)-i.toolbar.div.height()-i.statusbar.height(),editHeight=editHeight<i.minHeight?i.minHeight:editHeight,i.edit.setHeight(editHeight),n&&(i.height=_addUnit(e))),i},select:function(){return this.isCreated&&this.cmd.select(),this},html:function(t){var e=this;return t===undefined?e.isCreated?e.edit.html():_elementVal(e.srcElement):(e.isCreated?e.edit.html(t):_elementVal(e.srcElement,t),e.isCreated&&e.cmd.selection(),e)},fullHtml:function(){return this.isCreated?this.edit.html(undefined,!0):""},text:function(t){var e=this;return t===undefined?_trim(e.html().replace(/<(?!img|embed).*?>/gi,"").replace(/&nbsp;/gi," ")):e.html(_escape(t))},isEmpty:function(){return""===_trim(this.text().replace(/\r\n|\n|\r/,""))},isDirty:function(){return _trim(this.initContent.replace(/\r\n|\n|\r|t/g,""))!==_trim(this.html().replace(/\r\n|\n|\r|t/g,""))},selectedHtml:function(){var t=this.isCreated?this.cmd.range.html():"";return t=_removeBookmarkTag(_removeTempTag(t)),t},count:function(t){var e=this;return t=(t||"html").toLowerCase(),"html"===t?e.html().length:"text"===t?e.text().replace(/<(?:img|embed).*?>/gi,"K").replace(/\r\n|\n|\r/g,"").length:0},exec:function(t){t=t.toLowerCase();var e=this,n=e.cmd,i=_inArray(t,"selectall,copy,paste,print".split(","))<0;return i&&e.addBookmark(!1),n[t].apply(n,_toArray(arguments,1)),i&&(e.updateState(),e.addBookmark(!1),e.options.afterChange&&e.options.afterChange.call(e)),e},insertHtml:function(t,e){return this.isCreated?(t=this.beforeSetHtml(t),this.exec("inserthtml",t,e),this):this},appendHtml:function(t){if(this.html(this.html()+t),this.isCreated){var e=this.cmd;e.range.selectNodeContents(e.doc.body).collapse(!1),e.select()}return this},sync:function(){return _elementVal(this.srcElement,this.html()),this},focus:function(){return this.isCreated?this.edit.focus():this.srcElement[0].focus(),this},blur:function(){return this.isCreated?this.edit.blur():this.srcElement[0].blur(),this},addBookmark:function(t){t=_undef(t,!0);var e,n=this,i=n.edit,r=i.doc.body,o=_removeTempTag(r.innerHTML);if(t&&n._undoStack.length>0){var a=n._undoStack[n._undoStack.length-1];if(Math.abs(o.length-_removeBookmarkTag(a.html).length)<n.minChangeSize)return n}if(i.designMode&&!n._firstAddBookmark){var s=n.cmd.range;e=s.createBookmark(!0),e.html=_removeTempTag(r.innerHTML),s.moveToBookmark(e)}else e={html:o};return n._firstAddBookmark=!1,_addBookmarkToStack(n._undoStack,e),n},undo:function(){return _undoToRedo.call(this,this._undoStack,this._redoStack)},redo:function(){return _undoToRedo.call(this,this._redoStack,this._undoStack)},fullscreen:function(t){return this.fullscreenMode=t===undefined?!this.fullscreenMode:t,this.addBookmark(!1),this.remove().create()},readonly:function(t){t=_undef(t,!0);var e=this,n=e.edit,i=n.doc;e.designMode?e.toolbar.disableAll(t,[]):_each(e.noDisableItems,(function(){e.toolbar[t?"disable":"enable"](this)})),_IE?i.body.contentEditable=!t:i.designMode=t?"off":"on",n.textarea[0].disabled=t},createMenu:function(t){var e=this,n=t.name,i=e.toolbar.get(n),r=i.pos();return t.x=r.x,t.y=r.y+i.height(),t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.selectedColor!==undefined?(t.cls="ke-colorpicker-"+e.themeType,t.noColor=e.lang("noColor"),e.menu=_colorpicker(t)):(t.cls="ke-menu-"+e.themeType,t.centerLineMode=!1,e.menu=_menu(t)),e.menu},hideMenu:function(){return this.menu.remove(),this.menu=null,this},hideContextmenu:function(){return this.contextmenu.remove(),this.contextmenu=null,this},createDialog:function(t){var e=this;t.name;if(t.z=e.options.zIndex,t.shadowMode=_undef(t.shadowMode,e.shadowMode),t.closeBtn=_undef(t.closeBtn,{name:e.lang("close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),t.noBtn=_undef(t.noBtn,{name:e.lang(t.yesBtn?"no":"close"),click:function(t){e.hideDialog(),_IE&&e.cmd&&e.cmd.select()}}),"page"!=e.dialogAlignType&&(t.alignEl=e.container),t.cls="ke-dialog-"+e.themeType,e.dialogs.length>0){var n=e.dialogs[0],i=e.dialogs[e.dialogs.length-1];n.setMaskIndex(i.z+2),t.z=i.z+3,t.showMask=!1}var r=_dialog(t);return e.dialogs.push(r),r},hideDialog:function(){var t=this;if(t.dialogs.length>0&&t.dialogs.pop().remove(),t.dialogs.length>0){var e=t.dialogs[0],n=t.dialogs[t.dialogs.length-1];e.setMaskIndex(n.z-1)}return t},errorDialog:function(t){var e=this,n=e.createDialog({width:750,title:e.lang("uploadError"),body:'<div style="padding:10px 20px;"><iframe frameborder="0" style="width:708px;height:400px;"></iframe></div>'}),i=K("iframe",n.div),r=K.iframeDoc(i);return r.open(),r.write(t),r.close(),K(r.body).css("background-color","#FFF"),i[0].contentWindow.focus(),e}},_instances=[],K.remove=function(t){_eachEditor(t,(function(t){this.remove(),_instances.splice(t,1)}))},K.sync=function(t){_eachEditor(t,(function(){this.sync()}))},K.html=function(t,e){_eachEditor(t,(function(){this.html(e)}))},K.insertHtml=function(t,e){_eachEditor(t,(function(){this.insertHtml(e)}))},K.appendHtml=function(t,e){_eachEditor(t,(function(){this.appendHtml(e)}))},_IE&&_V<7&&_nativeCommand(document,"BackgroundImageCache",!0),K.EditorClass=KEditor,K.editor=_editor,K.create=_create,K.instances=_instances,K.plugin=_plugin,K.lang=_lang,_plugin("core",(function(t){var e=this,n={undo:"Z",redo:"Y",bold:"B",italic:"I",underline:"U",print:"P",selectall:"A"};if(e.afterSetHtml((function(){e.options.afterChange&&e.options.afterChange.call(e)})),e.afterCreate((function(){if("form"==e.syncType){var n=t(e.srcElement),i=!1;while(n=n.parent())if("form"==n.name){i=!0;break}if(i){n.bind("submit",(function(n){e.sync(),t(window).bind("unload",(function(){e.edit.textarea.remove()}))}));var r=t('[type="reset"]',n);r.click((function(){e.html(e.initContent),e.cmd.selection()})),e.beforeRemove((function(){n.unbind(),r.unbind()}))}}})),e.clickToolbar("source",(function(){e.edit.designMode?(e.toolbar.disableAll(!0),e.edit.design(!1),e.toolbar.select("source")):(e.toolbar.disableAll(!1),e.edit.design(!0),e.toolbar.unselect("source"),_GECKO?setTimeout((function(){e.cmd.selection()}),0):e.cmd.selection()),e.designMode=e.edit.designMode})),e.afterCreate((function(){e.designMode||e.toolbar.disableAll(!0).select("source")})),e.clickToolbar("fullscreen",(function(){e.fullscreen()})),e.fullscreenShortcut){var i=!1;e.afterCreate((function(){if(t(e.edit.doc,e.edit.textarea).keyup((function(t){27==t.which&&setTimeout((function(){e.fullscreen()}),0)})),i){if(_IE&&!e.designMode)return;e.focus()}i||(i=!0)}))}_each("undo,redo".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e[i]()}))})),e.clickToolbar("formatblock",(function(){var t=e.lang("formatblock.formatBlock"),n={h1:28,h2:24,h3:18,H4:14,p:12},i=e.cmd.val("formatblock"),r=e.createMenu({name:"formatblock",width:"en"==e.langType?200:150});_each(t,(function(t,o){var a="font-size:"+n[t]+"px;";"h"===t.charAt(0)&&(a+="font-weight:bold;"),r.addItem({title:'<span style="'+a+'" unselectable="on">'+o+"</span>",height:n[t]+12,checked:i===t||i===o,click:function(){e.select().exec("formatblock","<"+t+">").hideMenu()}})}))})),e.clickToolbar("fontname",(function(){var t=e.cmd.val("fontname"),n=e.createMenu({name:"fontname",width:150});_each(e.lang("fontname.fontName"),(function(i,r){n.addItem({title:'<span style="font-family: '+i+';" unselectable="on">'+r+"</span>",checked:t===i.toLowerCase()||t===r.toLowerCase(),click:function(){e.exec("fontname",i).hideMenu()}})}))})),e.clickToolbar("fontsize",(function(){var t=e.cmd.val("fontsize"),n=e.createMenu({name:"fontsize",width:150});_each(e.fontSizeTable,(function(i,r){n.addItem({title:'<span style="font-size:'+r+';" unselectable="on">'+r+"</span>",height:_removeUnit(r)+12,checked:t===r,click:function(){e.exec("fontsize",r).hideMenu()}})}))})),_each("forecolor,hilitecolor".split(","),(function(t,n){e.clickToolbar(n,(function(){e.createMenu({name:n,selectedColor:e.cmd.val(n)||"default",colors:e.colorTable,click:function(t){e.exec(n,t).hideMenu()}})}))})),_each("cut,copy,paste".split(","),(function(t,n){e.clickToolbar(n,(function(){e.focus();try{e.exec(n,null)}catch(t){alert(e.lang(n+"Error"))}}))})),e.clickToolbar("about",(function(){var t='<div style="margin:20px;"><div>KindEditor '+_VERSION+'</div><div>Copyright &copy; <a href="http://www.kindsoft.net/" target="_blank">kindsoft.net</a> All rights reserved.</div></div>';e.createDialog({name:"about",width:350,title:e.lang("about"),body:t})})),e.plugin.getSelectedLink=function(){return e.cmd.commonAncestor("a")},e.plugin.getSelectedImage=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return!/^ke-\w+$/i.test(t[0].className)}))},e.plugin.getSelectedFlash=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-flash"==t[0].className}))},e.plugin.getSelectedMedia=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-media"==t[0].className||"ke-rm"==t[0].className}))},e.plugin.getSelectedAnchor=function(){return _getImageFromRange(e.edit.cmd.range,(function(t){return"ke-anchor"==t[0].className}))},_each("link,image,flash,media,anchor".split(","),(function(t,n){var i=n.charAt(0).toUpperCase()+n.substr(1);_each("edit,delete".split(","),(function(t,r){e.addContextmenu({title:e.lang(r+i),click:function(){e.loadPlugin(n,(function(){e.plugin[n][r](),e.hideMenu()}))},cond:e.plugin["getSelected"+i],width:150,iconClass:"edit"==r?"ke-icon-"+n:undefined})})),e.addContextmenu({title:"-"})})),e.plugin.getSelectedTable=function(){return e.cmd.commonAncestor("table")},e.plugin.getSelectedRow=function(){return e.cmd.commonAncestor("tr")},e.plugin.getSelectedCell=function(){return e.cmd.commonAncestor("td")},_each("prop,cellprop,colinsertleft,colinsertright,rowinsertabove,rowinsertbelow,rowmerge,colmerge,rowsplit,colsplit,coldelete,rowdelete,insert,delete".split(","),(function(t,n){var i=_inArray(n,["prop","delete"])<0?e.plugin.getSelectedCell:e.plugin.getSelectedTable;e.addContextmenu({title:e.lang("table"+n),click:function(){e.loadPlugin("table",(function(){e.plugin.table[n](),e.hideMenu()}))},cond:i,width:170,iconClass:"ke-icon-table"+n})})),e.addContextmenu({title:"-"}),_each("selectall,justifyleft,justifycenter,justifyright,justifyfull,insertorderedlist,insertunorderedlist,indent,outdent,subscript,superscript,hr,print,bold,italic,underline,strikethrough,removeformat,unlink".split(","),(function(t,i){n[i]&&e.afterCreate((function(){_ctrl(this.edit.doc,n[i],(function(){e.cmd.selection(),e.clickToolbar(i)}))})),e.clickToolbar(i,(function(){e.focus().exec(i,null)}))})),e.afterCreate((function(){var n,i,r,o=e.edit.doc,a="__kindeditor_paste__",s=!1;function l(){n.range.moveToBookmark(i),n.select(),_WEBKIT&&(t("div."+a,r).each((function(){t(this).after("<br />").remove(!0)})),t("span.Apple-style-span",r).remove(!0),t("span.Apple-tab-span",r).remove(!0),t("span[style]",r).each((function(){"nowrap"==t(this).css("white-space")&&t(this).remove(!0)})),t("meta",r).remove());var o=r[0].innerHTML;r.remove(),""!==o&&(_WEBKIT&&(o=o.replace(/(<br>)\1/gi,"$1")),2===e.pasteType&&(o=o.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),/schemas-microsoft-com|worddocument|mso-\w+/i.test(o)?o=_clearMsWord(o,e.filterMode?e.htmlTags:t.options.htmlTags):(o=_formatHtml(o,e.filterMode?e.htmlTags:null),o=e.beforeSetHtml(o))),1===e.pasteType&&(o=o.replace(/&nbsp;/gi," "),o=o.replace(/\n\s*\n/g,"\n"),o=o.replace(/<br[^>]*>/gi,"\n"),o=o.replace(/<\/p><p[^>]*>/gi,"\n"),o=o.replace(/<[^>]+>/g,""),o=o.replace(/ {2}/g," &nbsp;"),"p"==e.newlineTag?/\n/.test(o)&&(o=o.replace(/^/,"<p>").replace(/$/,"<br /></p>").replace(/\n/g,"<br /></p><p>")):o=o.replace(/\n/g,"<br />$&")),e.insertHtml(o,!0))}t(o.body).bind("paste",(function(c){if(0!==e.pasteType){if(!s){if(s=!0,t("div."+a,o).remove(),n=e.cmd.selection(),i=n.range.createBookmark(),r=t('<div class="'+a+'"></div>',o).css({position:"absolute",width:"1px",height:"1px",overflow:"hidden",left:"-1981px",top:t(i.start).pos().y+"px","white-space":"nowrap"}),t(o.body).append(r),_IE){var u=n.range.get(!0);u.moveToElementText(r[0]),u.select(),u.execCommand("paste"),c.preventDefault()}else n.range.selectNodeContents(r[0]),n.select(),r[0].tabIndex=-1,r[0].focus();setTimeout((function(){l(),s=!1}),0)}}else c.stop()}))})),e.beforeGetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<div\s+[^>]*data-ke-input-tag="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e){return unescape(e)})),t=t.replace(/(<input)((?:\s+[^>]*)?>)/gi,(function(t,e,n){return/\s+type="[^"]+"/i.test(t)?t:e+' type="text"'+n}))),t.replace(/(<(?:noscript|noscript\s[^>]*)>)([\s\S]*?)(<\/noscript>)/gi,(function(t,e,n,i){return e+_unescape(n).replace(/\s+/g," ")+i})).replace(/<img[^>]*class="?ke-(flash|rm|media)"?[^>]*>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||""),i=_mediaAttrs(e["data-ke-tag"]),r=_undef(n.width,""),o=_undef(n.height,"");return/px/i.test(r)&&(r=_removeUnit(r)),/px/i.test(o)&&(o=_removeUnit(o)),i.width=_undef(e.width,r),i.height=_undef(e.height,o),_mediaEmbed(i)})).replace(/<img[^>]*class="?ke-anchor"?[^>]*>/gi,(function(t){var e=_getAttrList(t);return'<a name="'+unescape(e["data-ke-name"])+'"></a>'})).replace(/<div\s+[^>]*data-ke-script-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<script"+unescape(e)+">"+unescape(n)+"<\/script>"})).replace(/<div\s+[^>]*data-ke-noscript-attr="([^"]*)"[^>]*>([\s\S]*?)<\/div>/gi,(function(t,e,n){return"<noscript"+unescape(e)+">"+unescape(n)+"</noscript>"})).replace(/(<[^>]*)data-ke-src="([^"]*)"([^>]*>)/gi,(function(t,e,n,i){return t=t.replace(/(\s+(?:href|src)=")[^"]*(")/i,(function(t,e,i){return e+_unescape(n)+i})),t=t.replace(/\s+data-ke-src="[^"]*"/i,""),t})).replace(/(<[^>]+\s)data-ke-(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+n}))})),e.beforeSetHtml((function(t){return _IE&&_V<=8&&(t=t.replace(/<input[^>]*>|<(select|button)[^>]*>[\s\S]*?<\/\1>/gi,(function(t){var e=_getAttrList(t),n=_getCssList(e.style||"");return"none"==n.display?'<div class="ke-display-none" data-ke-input-tag="'+escape(t)+'"></div>':t}))),t.replace(/<embed[^>]*type="([^"]+)"[^>]*>(?:<\/embed>)?/gi,(function(t){var n=_getAttrList(t);return n.src=_undef(n.src,""),n.width=_undef(n.width,0),n.height=_undef(n.height,0),_mediaImg(e.themesPath+"common/blank.gif",n)})).replace(/<a[^>]*name="([^"]+)"[^>]*>(?:<\/a>)?/gi,(function(t){var n=_getAttrList(t);return n.href!==undefined?t:'<img class="ke-anchor" src="'+e.themesPath+'common/anchor.gif" data-ke-name="'+escape(n.name)+'" />'})).replace(/<script([^>]*)>([\s\S]*?)<\/script>/gi,(function(t,e,n){return'<div class="ke-script" data-ke-script-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/<noscript([^>]*)>([\s\S]*?)<\/noscript>/gi,(function(t,e,n){return'<div class="ke-noscript" data-ke-noscript-attr="'+escape(e)+'">'+escape(n)+"</div>"})).replace(/(<[^>]*)(href|src)="([^"]*)"([^>]*>)/gi,(function(t,e,n,i,r){return t.match(/\sdata-ke-src="[^"]*"/i)||(t=e+n+'="'+i+'" data-ke-src="'+_escape(i)+'"'+r),t})).replace(/(<[^>]+\s)(on\w+="[^"]*"[^>]*>)/gi,(function(t,e,n){return e+"data-ke-"+n})).replace(/<table[^>]*\s+border="0"[^>]*>/gi,(function(t){return t.indexOf("ke-zeroborder")>=0?t:_addClassToTag(t,"ke-zeroborder")}))}))}))}function _isArray(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function _isFunction(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)}function _inArray(t,e){for(var n=0,i=e.length;n<i;n++)if(t===e[n])return n;return-1}function _each(t,e){if(_isArray(t)){for(var n=0,i=t.length;n<i;n++)if(!1===e.call(t[n],n,t[n]))break}else for(var r in t)if(t.hasOwnProperty(r)&&!1===e.call(t[r],r,t[r]))break}function _trim(t){return t.replace(/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")}function _inString(t,e,n){return n=n===undefined?",":n,(n+e+n).indexOf(n+t+n)>=0}function _addUnit(t,e){return e=e||"px",t&&/^-?\d+(?:\.\d+)?$/.test(t)?t+e:t}function _removeUnit(t){var e;return t&&(e=/(\d+)/.exec(t))?parseInt(e[1],10):0}function _escape(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function _unescape(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")}function _toCamel(t){var e=t.split("-");return t="",_each(e,(function(e,n){t+=e>0?n.charAt(0).toUpperCase()+n.substr(1):n})),t}function _toHex(t){function e(t){var e=parseInt(t,10).toString(16).toUpperCase();return e.length>1?e:"0"+e}return t.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,(function(t,n,i,r){return"#"+e(n)+e(i)+e(r)}))}function _toMap(t,e){e=e===undefined?",":e;var n,i={},r=_isArray(t)?t:t.split(e);return _each(r,(function(t,e){if(n=/^(\d+)\.\.(\d+)$/.exec(e))for(var r=parseInt(n[1],10);r<=parseInt(n[2],10);r++)i[r.toString()]=!0;else i[e]=!0})),i}function _toArray(t,e){return Array.prototype.slice.call(t,e||0)}function _undef(t,e){return t===undefined?e:t}function _invalidUrl(t){return!t||/[<>"]/.test(t)}function _addParam(t,e){return t.indexOf("?")>=0?t+"&"+e:t+"?"+e}function _extend(t,e,n){var i;if(n||(n=e,e=null),e){var r=function(){};r.prototype=e.prototype,i=new r,_each(n,(function(t,e){i[t]=e}))}else i=n;i.constructor=t,t.prototype=i,t.parent=e?e.prototype:null}function _json(text){var match;(match=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))&&(text=match[0]);var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+text+")");throw"JSON parse error"}function _getBasePath(){for(var t,e=document.getElementsByTagName("script"),n=0,i=e.length;n<i;n++)if(t=e[n].src||"",/kindeditor[\w\-\.]*\.js/.test(t))return t.substring(0,t.lastIndexOf("/")+1);return""}function _bindEvent(t,e,n){t.addEventListener?t.addEventListener(e,n,_useCapture):t.attachEvent&&t.attachEvent("on"+e,n)}function _unbindEvent(t,e,n){t.removeEventListener?t.removeEventListener(e,n,_useCapture):t.detachEvent&&t.detachEvent("on"+e,n)}function KEvent(t,e){this.init(t,e)}function _getId(t){return t[_eventExpendo]||null}function _setId(t){return t[_eventExpendo]=++_eventId,_eventId}function _removeId(t){try{delete t[_eventExpendo]}catch(e){t.removeAttribute&&t.removeAttribute(_eventExpendo)}}function _bind(t,e,n){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_bind(t,this,n)}));else{var i=_getId(t);i||(i=_setId(t)),_eventData[i]===undefined&&(_eventData[i]={});var r=_eventData[i][e];r&&r.length>0?_unbindEvent(t,e,r[0]):(_eventData[i][e]=[],_eventData[i].el=t),r=_eventData[i][e],0===r.length&&(r[0]=function(e){var n=e?new KEvent(t,e):undefined;_each(r,(function(e,i){e>0&&i&&i.call(t,n)}))}),_inArray(n,r)<0&&r.push(n),_bindEvent(t,e,r[0])}}function _unbind(t,e,n){if(e&&e.indexOf(",")>=0)_each(e.split(","),(function(){_unbind(t,this,n)}));else{var i=_getId(t);if(i)if(e!==undefined){if(_eventData[i]){var r=_eventData[i][e];if(r&&r.length>0){n===undefined?(_unbindEvent(t,e,r[0]),delete _eventData[i][e]):(_each(r,(function(t,e){t>0&&e===n&&r.splice(t,1)})),1==r.length&&(_unbindEvent(t,e,r[0]),delete _eventData[i][e]));var o=0;_each(_eventData[i],(function(){o++})),o<2&&(delete _eventData[i],_removeId(t))}}}else i in _eventData&&(_each(_eventData[i],(function(e,n){"el"!=e&&n.length>0&&_unbindEvent(t,e,n[0])})),delete _eventData[i],_removeId(t))}}function _fire(t,e){if(e.indexOf(",")>=0)_each(e.split(","),(function(){_fire(t,this)}));else{var n=_getId(t);if(n){var i=_eventData[n][e];_eventData[n]&&i&&i.length>0&&i[0]()}}}function _ctrl(t,e,n){e=/^\d{2,}$/.test(e)?e:e.toUpperCase().charCodeAt(0),_bind(t,"keydown",(function(i){!i.ctrlKey||i.which!=e||i.shiftKey||i.altKey||(n.call(t),i.stop())}))}function _ready(t){if(_readyFinished)t(KindEditor);else{var e=!1;if(document.addEventListener)_bind(document,"DOMContentLoaded",i);else if(document.attachEvent){_bind(document,"readystatechange",o);var n=!1;try{n=null==window.frameElement}catch(a){}document.documentElement.doScroll&&n&&r()}_bind(window,"load",i)}function i(){e||(e=!0,t(KindEditor),_readyFinished=!0)}function r(){if(!e){try{document.documentElement.doScroll("left")}catch(a){return void setTimeout(r,100)}i()}}function o(){"complete"===document.readyState&&i()}}function _getCssList(t){var e,n={},i=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;while(e=i.exec(t)){var r=_trim(e[1].toLowerCase()),o=_trim(_toHex(e[2]));n[r]=o}return n}function _getAttrList(t){var e,n={},i=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;while(e=i.exec(t)){var r=(e[1]||e[2]||e[4]||e[6]).toLowerCase(),o=(e[2]?e[3]:e[4]?e[5]:e[7])||"";n[r]=o}return n}function _addClassToTag(t,e){return t=/\s+class\s*=/.test(t)?t.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,(function(t,n,i,r){return(" "+i+" ").indexOf(" "+e+" ")<0?""===i?n+e+r:n+i+" "+e+r:t})):t.substr(0,t.length-1)+' class="'+e+'">',t}function _formatCss(t){var e="";return _each(_getCssList(t),(function(t,n){e+=t+":"+n+";"})),e}function _formatUrl(t,e,n,i){if(e=_undef(e,"").toLowerCase(),"data:"!=t.substr(0,5)&&(t=t.replace(/([^:])\/\//g,"$1/")),_inArray(e,["absolute","relative","domain"])<0)return t;if(n=n||location.protocol+"//"+location.host,i===undefined){var r=location.pathname.match(/^(\/.*)\//);i=r?r[1]:""}var o;if(o=/^(\w+:\/\/[^\/]*)/.exec(t)){if(o[1]!==n)return t}else if(/^\w+:/.test(t))return t;function a(t){for(var e=t.split("/"),n=[],i=0,r=e.length;i<r;i++){var o=e[i];".."==o?n.length>0&&n.pop():""!==o&&"."!=o&&n.push(o)}return"/"+n.join("/")}function s(e,n){if(t.substr(0,e.length)===e){for(var r=[],a=0;a<n;a++)r.push("..");var l=".";return r.length>0&&(l+="/"+r.join("/")),"/"==i&&(l+="/"),l+t.substr(e.length)}if(o=/^(.*)\//.exec(e))return s(o[1],++n)}return/^\//.test(t)?t=n+a(t.substr(1)):/^\w+:\/\//.test(t)||(t=n+a(i+"/"+t)),"relative"===e?t=s(n+i,0).substr(2):"absolute"===e&&t.substr(0,n.length)===n&&(t=t.substr(n.length)),t}function _formatHtml(t,e,n,i,r){null==t&&(t=""),n=n||"",i=_undef(i,!1),r=_undef(r,"\t");var o="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+i})),t=t.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,"</p>"),t=t.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1<br />$2"),t=t.replace(/\u200B/g,""),t=t.replace(/\u00A9/g,"&copy;"),t=t.replace(/\u00AE/g,"&reg;"),t=t.replace(/\u2003/g,"&emsp;"),t=t.replace(/\u3000/g,"&emsp;"),t=t.replace(/<[^>]+/g,(function(t){return t.replace(/\s+/g," ")}));var a={};e&&(_each(e,(function(t,e){for(var n=t.split(","),i=0,r=n.length;i<r;i++)a[n[i]]=_toMap(e)})),a.script||(t=t.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"")),a.style||(t=t.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var s=/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g,l=[];return t=t.replace(s,(function(t,s,c,u,d,h,p){var f=t,m=s||"",g=c||"",v=u.toLowerCase(),b=d||"",_=h?" "+h:"",y=p||"";if(e&&!a[v])return"";if(""===_&&_SINGLE_TAG_MAP[v]&&(_=" /"),_INLINE_TAG_MAP[v]&&(m&&(m=" "),y&&(y=" ")),_PRE_TAG_MAP[v]&&(g?y="\n":m="\n"),i&&"br"==v&&(y="\n"),_BLOCK_TAG_MAP[v]&&!_PRE_TAG_MAP[v])if(i){g&&l.length>0&&l[l.length-1]===v?l.pop():l.push(v),m="\n",y="\n";for(var w=0,x=g?l.length:l.length-1;w<x;w++)m+=r,g||(y+=r);_?l.pop():g||(y+=r)}else m=y="";if(""!==b){var k=_getAttrList(f);if("font"===v){var S={},D="";_each(k,(function(t,e){"color"===t&&(S.color=e,delete k[t]),"size"===t&&(S["font-size"]=o[parseInt(e,10)-1]||"",delete k[t]),"face"===t&&(S["font-family"]=e,delete k[t]),"style"===t&&(D=e)})),D&&!/;$/.test(D)&&(D+=";"),_each(S,(function(t,e){""!==e&&(/\s/.test(e)&&(e="'"+e+"'"),D+=t+":"+e+";")})),k.style=D}_each(k,(function(t,i){if(_FILL_ATTR_MAP[t]&&(k[t]=t),_inArray(t,["src","href"])>=0&&(k[t]=_formatUrl(i,n)),(e&&"style"!==t&&!a[v]["*"]&&!a[v][t]||"body"===v&&"contenteditable"===t||/^kindeditor_\d+$/.test(t))&&delete k[t],"style"===t&&""!==i){var r=_getCssList(i);_each(r,(function(t,n){!e||a[v].style||a[v]["."+t]||delete r[t]}));var o="";_each(r,(function(t,e){o+=t+":"+e+";"})),k.style=o}})),b="",_each(k,(function(t,e){"style"===t&&""===e||(e=e.replace(/"/g,"&quot;"),b+=" "+t+'="'+e+'"')}))}return"font"===v&&(v="span"),m+"<"+g+v+b+_+">"+y})),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,(function(t,e,n,i){return e+n.replace(/\n/g,'<span id="__kindeditor_pre_newline__">\n')+i})),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/<span id="__kindeditor_pre_newline__">\n/g,"\n"),_trim(t)}function _clearMsWord(t,e){return t=t.replace(/<meta[\s\S]*?>/gi,"").replace(/<![\s\S]*?>/gi,"").replace(/<style[^>]*>[\s\S]*?<\/style>/gi,"").replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"").replace(/<w:[^>]+>[\s\S]*?<\/w:[^>]+>/gi,"").replace(/<o:[^>]+>[\s\S]*?<\/o:[^>]+>/gi,"").replace(/<xml>[\s\S]*?<\/xml>/gi,"").replace(/<(?:table|td)[^>]*>/gi,(function(t){return t.replace(/border-bottom:([#\w\s]+)/gi,"border:$1")})),_formatHtml(t,e)}function _mediaType(t){return/\.(rm|rmvb)(\?|$)/i.test(t)?"audio/x-pn-realaudio-plugin":/\.(swf|flv)(\?|$)/i.test(t)?"application/x-shockwave-flash":"video/x-ms-asf-plugin"}function _mediaClass(t){return/realaudio/i.test(t)?"ke-rm":/flash/i.test(t)?"ke-flash":"ke-media"}function _mediaAttrs(t){return _getAttrList(unescape(t))}function _mediaEmbed(t){var e="<embed ";return _each(t,(function(t,n){e+=t+'="'+n+'" '})),e+="/>",e}function _mediaImg(t,e){var n=e.width,i=e.height,r=e.type||_mediaType(e.src),o=_mediaEmbed(e),a="";/\D/.test(n)?a+="width:"+n+";":n>0&&(a+="width:"+n+"px;"),/\D/.test(i)?a+="height:"+i+";":i>0&&(a+="height:"+i+"px;");var s='<img class="'+_mediaClass(r)+'" src="'+t+'" ';return""!==a&&(s+='style="'+a+'" '),s+='data-ke-tag="'+escape(o)+'" alt="" />',s}function _tmpl(t,e){var n=new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+t.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return e?n(e):n}function _contains(t,e){if(9==t.nodeType&&9!=e.nodeType)return!0;while(e=e.parentNode)if(e==t)return!0;return!1}function _getAttr(t,e){e=e.toLowerCase();var n=null;if(_GET_SET_ATTRIBUTE||"script"==t.nodeName.toLowerCase())try{n=t.getAttribute(e,2)}catch(o){n=t.getAttribute(e,1)}else{var i=t.ownerDocument.createElement("div");i.appendChild(t.cloneNode(!1));var r=_getAttrList(_unescape(i.innerHTML));e in r&&(n=r[e])}return"style"===e&&null!==n&&(n=_formatCss(n)),n}function _queryAll(t,e){var n=t.split(",");if(n.length>1){var i=[];return _each(n,(function(){_each(_queryAll(this,e),(function(){_inArray(this,i)<0&&i.push(this)}))})),i}function r(t){return"string"!=typeof t?t:t.replace(/([^\w\-])/g,"\\$1")}function o(t){return t.replace(/\\/g,"")}function a(t,e){return"*"===t||t.toLowerCase()===r(e.toLowerCase())}function s(t,e,n){var i=[],r=n.ownerDocument||n,s=r.getElementById(o(t));return s&&a(e,s.nodeName)&&_contains(n,s)&&i.push(s),i}function l(t,e,n){var i,r,s,l,c=n.ownerDocument||n,u=[];if(n.getElementsByClassName)for(i=n.getElementsByClassName(o(t)),r=0,s=i.length;r<s;r++)l=i[r],a(e,l.nodeName)&&u.push(l);else if(c.querySelectorAll)for(i=c.querySelectorAll(("#document"!==n.nodeName?n.nodeName+" ":"")+e+"."+t),r=0,s=i.length;r<s;r++)l=i[r],_contains(n,l)&&u.push(l);else for(i=n.getElementsByTagName(e),t=" "+t+" ",r=0,s=i.length;r<s;r++)if(l=i[r],1==l.nodeType){var d=l.className;d&&(" "+d+" ").indexOf(t)>-1&&u.push(l)}return u}function c(t,e,n){for(var i,r=[],s=n.ownerDocument||n,l=s.getElementsByName(o(t)),c=0,u=l.length;c<u;c++)i=l[c],a(e,i.nodeName)&&_contains(n,i)&&null!==i.getAttribute("name")&&r.push(i);return r}function u(t,e,n,i){for(var o,a=[],s=i.getElementsByTagName(n),l=0,c=s.length;l<c;l++)o=s[l],1==o.nodeType&&(null===e?null!==_getAttr(o,t)&&a.push(o):e===r(_getAttr(o,t))&&a.push(o));return a}function d(t,e){var n,i=[];n=/^((?:\\.|[^.#\s\[<>])+)/.exec(t);var r=n?n[1]:"*";if(n=/#((?:[\w\-]|\\.)+)$/.exec(t))i=s(n[1],r,e);else if(n=/\.((?:[\w\-]|\\.)+)$/.exec(t))i=l(n[1],r,e);else if(n=/\[((?:[\w\-]|\\.)+)\]/.exec(t))i=u(n[1].toLowerCase(),null,r,e);else if(n=/\[((?:[\w\-]|\\.)+)\s*=\s*['"]?((?:\\.|[^'"]+)+)['"]?\]/.exec(t)){var o=n[1].toLowerCase(),a=n[2];i="id"===o?s(a,r,e):"class"===o?l(a,r,e):"name"===o?c(a,r,e):u(o,a,r,e)}else for(var d,h=e.getElementsByTagName(r),p=0,f=h.length;p<f;p++)d=h[p],1==d.nodeType&&i.push(d);return i}e=e||document;var h,p=[],f=/((?:\\.|[^\s>])+|[\s>])/g;while(h=f.exec(t))" "!==h[1]&&p.push(h[1]);var m=[];if(1==p.length)return d(p[0],e);var g,v,b,_,y,w,x,k,S,D,C=!1;for(w=0,lenth=p.length;w<lenth;w++)if(g=p[w],">"!==g){if(w>0){for(v=[],x=0,S=m.length;x<S;x++)for(_=m[x],b=d(g,_),k=0,D=b.length;k<D;k++)y=b[k],C?_===y.parentNode&&v.push(y):v.push(y);m=v}else m=d(g,e);if(0===m.length)return[]}else C=!0;return m}function _query(t,e){var n=_queryAll(t,e);return n.length>0?n[0]:null}function _get(t){return K(t)[0]}function _getDoc(t){return t?t.ownerDocument||t.document||t:document}function _getWin(t){if(!t)return window;var e=_getDoc(t);return e.parentWindow||e.defaultView}function _setHtml(t,e){if(1==t.nodeType){var n=_getDoc(t);try{t.innerHTML='<img id="__kindeditor_temp_tag__" width="0" height="0" style="display:none;" />'+e;var i=n.getElementById("__kindeditor_temp_tag__");i.parentNode.removeChild(i)}catch(r){K(t).empty(),K("@"+e,n).each((function(){t.appendChild(this)}))}}}function _hasClass(t,e){return _inString(e,t.className," ")}function _setAttr(t,e,n){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),t.setAttribute(e,""+n)}function _removeAttr(t,e){_IE&&_V<8&&"class"==e.toLowerCase()&&(e="className"),_setAttr(t,e,""),t.removeAttribute(e)}function _getNodeName(t){return t&&t.nodeName?t.nodeName.toLowerCase():""}function _computedCss(t,e){var n=_getWin(t),i=_toCamel(e),r="";if(n.getComputedStyle){var o=n.getComputedStyle(t,null);r=o[i]||o.getPropertyValue(e)||t.style[i]}else t.currentStyle&&(r=t.currentStyle[i]||t.style[i]);return r}function _hasVal(t){return!!_VALUE_TAG_MAP[_getNodeName(t)]}function _docElement(t){return t=t||document,_QUIRKS?t.body:t.documentElement}function _docHeight(t){var e=_docElement(t);return Math.max(e.scrollHeight,e.clientHeight)}function _docWidth(t){var e=_docElement(t);return Math.max(e.scrollWidth,e.clientWidth)}function _getScrollPos(t){var e,n;return t=t||document,_IE||_NEWIE||_OPERA?(e=_docElement(t).scrollLeft,n=_docElement(t).scrollTop):(e=_getWin(t).scrollX,n=_getWin(t).scrollY),{x:e,y:n}}function KNode(t){this.init(t)}function _updateCollapsed(t){return t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t}function _copyAndDelete(t,e,n){var i=t.doc,r=[];function o(i,o,a){var s,l=i.nodeValue.length;if(e){var c=i.cloneNode(!0);s=o>0?c.splitText(o):c,a<l&&s.splitText(a-o)}if(n){var u=i;if(o>0&&(u=i.splitText(o),t.setStart(i,o)),a<l){var d=u.splitText(a-o);t.setEnd(d,0)}r.push(u)}return s}function a(){n&&t.up().collapse(!0);for(var e=0,i=r.length;e<i;e++){var o=r[e];o.parentNode&&o.parentNode.removeChild(o)}}var s=t.cloneRange().down(),l=-1,c=-1,u=-1,d=-1,h=t.commonAncestor(),p=i.createDocumentFragment();if(3==h.nodeType){var f=o(h,t.startOffset,t.endOffset);return e&&p.appendChild(f),a(),e?p:t}function m(a,h){var p,f=a.firstChild;while(f){var g,v=new KRange(i).selectNode(f);if(l=v.compareBoundaryPoints(_START_TO_END,t),l>=0&&c<=0&&(c=v.compareBoundaryPoints(_START_TO_START,t)),c>=0&&u<=0&&(u=v.compareBoundaryPoints(_END_TO_END,t)),u>=0&&d<=0&&(d=v.compareBoundaryPoints(_END_TO_START,t)),d>=0)return!1;if(p=f.nextSibling,l>0)if(1==f.nodeType){if(c>=0&&u<=0)e&&h.appendChild(f.cloneNode(!0)),n&&r.push(f);else if(e&&(g=f.cloneNode(!1),h.appendChild(g)),!1===m(f,g))return!1}else if(3==f.nodeType){var b;if(b=f==s.startContainer?o(f,s.startOffset,f.nodeValue.length):f==s.endContainer?o(f,0,s.endOffset):o(f,0,f.nodeValue.length),e)try{h.appendChild(b)}catch(_){}}f=p}}m(h,p),n&&t.up().collapse(!0);for(var g=0,v=r.length;g<v;g++){var b=r[g];b.parentNode&&b.parentNode.removeChild(b)}return e?p:t}function _moveToElementText(t,e){var n=e;while(n){var i=K(n);if("marquee"==i.name||"select"==i.name)return;n=n.parentNode}try{t.moveToElementText(e)}catch(r){}}function _getStartEnd(t,e){var n=t.parentElement().ownerDocument,i=t.duplicate();i.collapse(e);var r=i.parentElement(),o=r.childNodes;if(0===o.length)return{node:r.parentNode,offset:K(r).index()};var a=n,s=0,l=-1,c=t.duplicate();_moveToElementText(c,r);for(var u=0,d=o.length;u<d;u++){var h=o[u];if(l=c.compareEndPoints("StartToStart",i),0===l)return{node:h.parentNode,offset:u};if(1==h.nodeType){var p,f=t.duplicate(),m=K(h),g=h;m.isControl()&&(p=n.createElement("span"),m.after(p),g=p,s+=m.text().replace(/\r\n|\n|\r/g,"").length),_moveToElementText(f,g),c.setEndPoint("StartToEnd",f),l>0?s+=f.text.replace(/\r\n|\n|\r/g,"").length:s=0,p&&K(p).remove()}else 3==h.nodeType&&(c.moveStart("character",h.nodeValue.length),s+=h.nodeValue.length);l<0&&(a=h)}if(l<0&&1==a.nodeType)return{node:r,offset:K(r.lastChild).index()+1};if(l>0)while(a.nextSibling&&1==a.nodeType)a=a.nextSibling;if(c=t.duplicate(),_moveToElementText(c,r),c.setEndPoint("StartToEnd",i),s-=c.text.replace(/\r\n|\n|\r/g,"").length,l>0&&3==a.nodeType){var v=a.previousSibling;while(v&&3==v.nodeType)s-=v.nodeValue.length,v=v.previousSibling}return{node:a,offset:s}}function _getEndRange(t,e){var n=t.ownerDocument||t,i=n.body.createTextRange();if(n==t)return i.collapse(!0),i;if(1==t.nodeType&&t.childNodes.length>0){var r,o,a=t.childNodes;if(0===e?(o=a[0],r=!0):(o=a[e-1],r=!1),!o)return i;if("head"===K(o).name)return 1===e&&(r=!0),2===e&&(r=!1),i.collapse(r),i;if(1==o.nodeType){var s,l=K(o);return l.isControl()&&(s=n.createElement("span"),r?l.before(s):l.after(s),o=s),_moveToElementText(i,o),i.collapse(r),s&&K(s).remove(),i}t=o,e=r?0:o.nodeValue.length}var c=n.createElement("span");return K(t).before(c),_moveToElementText(i,c),i.moveStart("character",e),K(c).remove(),i}function _toRange(t){var e,n;function i(t){"tr"==K(t.node).name&&(t.node=t.node.cells[t.offset],t.offset=0)}if(_IERANGE){if(t.item)return e=_getDoc(t.item(0)),n=new KRange(e),n.selectNode(t.item(0)),n;e=t.parentElement().ownerDocument;var r=_getStartEnd(t,!0),o=_getStartEnd(t,!1);return i(r),i(o),n=new KRange(e),n.setStart(r.node,r.offset),n.setEnd(o.node,o.offset),n}var a=t.startContainer;return e=a.ownerDocument||a,n=new KRange(e),n.setStart(a,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n}function KRange(t){this.init(t)}function _range(t){return t.nodeName?new KRange(t):t.constructor===KRange?t:_toRange(t)}function _nativeCommand(t,e,n){try{t.execCommand(e,!1,n)}catch(i){}}function _nativeCommandValue(t,e){var n="";try{n=t.queryCommandValue(e)}catch(i){}return"string"!==typeof n&&(n=""),n}function _getSel(t){var e=_getWin(t);return _IERANGE?t.selection:e.getSelection()}function _getRng(t){var e,n=_getSel(t);try{e=n.rangeCount>0?n.getRangeAt(0):n.createRange()}catch(i){}return!_IERANGE||e&&(e.item||e.parentElement().ownerDocument===t)?e:null}function _singleKeyMap(t){var e,n,i={};return _each(t,(function(t,r){e=t.split(",");for(var o=0,a=e.length;o<a;o++)n=e[o],i[n]=r})),i}function _hasAttrOrCss(t,e){return _hasAttrOrCssByKey(t,e,"*")||_hasAttrOrCssByKey(t,e)}function _hasAttrOrCssByKey(t,e,n){if(n=n||t.name,1!==t.type)return!1;var i=_singleKeyMap(e);if(!i[n])return!1;for(var r=i[n].split(","),o=0,a=r.length;o<a;o++){var s=r[o];if("*"===s)return!0;var l=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(s),c=l[1]?"css":"attr";s=l[2];var u=l[3]||"";if(""===u&&""!==t[c](s))return!0;if(""!==u&&t[c](s)===u)return!0}return!1}function _removeAttrOrCss(t,e){1==t.type&&(_removeAttrOrCssByKey(t,e,"*"),_removeAttrOrCssByKey(t,e))}function _removeAttrOrCssByKey(t,e,n){if(n=n||t.name,1===t.type){var i=_singleKeyMap(e);if(i[n]){for(var r=i[n].split(","),o=!1,a=0,s=r.length;a<s;a++){var l=r[a];if("*"===l){o=!0;break}var c=/^(\.?)([^=]+)(?:=([^=]*))?$/.exec(l);l=c[2],c[1]?(l=_toCamel(l),t[0].style[l]&&(t[0].style[l]="")):t.removeAttr(l)}o&&t.remove(!0)}}}function _getInnerNode(t){var e=t;while(e.first())e=e.first();return e}function _isEmptyNode(t){return 1==t.type&&!t.isSingle()&&""===t.html().replace(/<[^>]+>/g,"")}function _mergeWrapper(t,e){t=t.clone(!0);var n=_getInnerNode(t),i=t,r=!1;while(e){while(i)i.name===e.name&&(_mergeAttrs(i,e.attr(),e.css()),r=!0),i=i.first();r||n.append(e.clone(!1)),r=!1,e=e.first()}return t}function _wrapNode(t,e){if(e=e.clone(!0),3==t.type)return _getInnerNode(e).append(t.clone(!1)),t.replaceWith(e),e;var n,i=t;while((n=t.first())&&1==n.children().length)t=n;n=t.first();var r=t.doc.createDocumentFragment();while(n)r.appendChild(n[0]),n=n.next();return e=_mergeWrapper(i,e),r.firstChild&&_getInnerNode(e).append(r),i.replaceWith(e),e}function _mergeAttrs(t,e,n){_each(e,(function(e,n){"style"!==e&&t.attr(e,n)})),_each(n,(function(e,n){t.css(e,n)}))}function _inPreElement(t){while(t&&"body"!=t.name){if(_PRE_TAG_MAP[t.name]||"div"==t.name&&t.hasClass("ke-script"))return!0;t=t.parent()}return!1}function KCmd(t){this.init(t)}function _cmd(t){if(t.nodeName){var e=_getDoc(t);t=_range(e).selectNodeContents(e.body).collapse(!1)}return new KCmd(t)}function _drag(t){var e=t.moveEl,n=t.moveFn,i=t.clickEl||e,r=t.beforeDrag,o=t.iframeFix===undefined||t.iframeFix,a=[document];o&&K("iframe").each((function(){var t=_formatUrl(this.src||"","absolute");if(!/^https?:\/\//.test(t)){var e;try{e=_iframeDoc(this)}catch(i){}if(e){var n=K(this).pos();K(e).data("pos-x",n.x),K(e).data("pos-y",n.y),a.push(e)}}})),i.mousedown((function(t){if(0===t.button||1===t.button){t.stopPropagation();var o=i.get(),s=_removeUnit(e.css("left")),l=_removeUnit(e.css("top")),c=e.width(),u=e.height(),d=t.pageX,h=t.pageY;r&&r(),K(a).mousemove(p).mouseup(m).bind("selectstart",f),o.setCapture&&o.setCapture()}function p(t){t.preventDefault();var e=K(_getDoc(t.target)),r=_round((e.data("pos-x")||0)+t.pageX-d),o=_round((e.data("pos-y")||0)+t.pageY-h);n.call(i,s,l,c,u,r,o)}function f(t){t.preventDefault()}function m(t){t.preventDefault(),K(a).unbind("mousemove",p).unbind("mouseup",m).unbind("selectstart",f),o.releaseCapture&&o.releaseCapture()}}))}function KWidget(t){this.init(t)}function _widget(t){return new KWidget(t)}function _iframeDoc(t){return t=_get(t),t.contentDocument||t.contentWindow.document}function _getInitHtml(t,e,n,i){var r=[""===_direction?"<html>":'<html dir="'+_direction+'">','<head><meta charset="utf-8" /><title></title>',"<style>","html {margin:0;padding:0;}","body {margin:0;padding:5px;}",'body, td {font:12px/1.5 "sans serif",tahoma,verdana,helvetica;}',"body, p, div {word-wrap: break-word;}","p {margin:5px 0;}","table {border-collapse:collapse;}","img {border:0;}","noscript {display:none;}","table.ke-zeroborder td {border:1px dotted #AAA;}","img.ke-flash {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/flash.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-rm {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/rm.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-media {","\tborder:1px solid #AAA;","\tbackground-image:url("+t+"common/media.gif);","\tbackground-position:center center;","\tbackground-repeat:no-repeat;","\twidth:100px;","\theight:100px;","}","img.ke-anchor {","\tborder:1px dashed #666;","\twidth:16px;","\theight:16px;","}",".ke-script, .ke-noscript, .ke-display-none {","\tdisplay:none;","\tfont-size:0;","\twidth:0;","\theight:0;","}",".ke-pagebreak {","\tborder:1px dotted #AAA;","\tfont-size:0;","\theight:2px;","}","</style>"];return _isArray(n)||(n=[n]),_each(n,(function(t,e){e&&r.push('<link href="'+e+'" rel="stylesheet" />')})),i&&r.push("<style>"+i+"</style>"),r.push("</head><body "+(e?'class="'+e+'"':"")+"></body></html>"),r.join("\n")}function _elementVal(t,e){if(t.hasVal()){if(e===undefined){var n=t.val();return n=n.replace(/(<(?:p|p\s[^>]*)>) *(<\/p>)/gi,""),n}return t.val(e)}return t.html(e)}function KEdit(t){this.init(t)}function _edit(t){return new KEdit(t)}function _selectToolbar(t,e){var n=this,i=n.get(t);if(i){if(i.hasClass("ke-disabled"))return;e(i)}}function KToolbar(t){this.init(t)}function _toolbar(t){return new KToolbar(t)}function KMenu(t){this.init(t)}function _menu(t){return new KMenu(t)}function KColorPicker(t){this.init(t)}function _colorpicker(t){return new KColorPicker(t)}function KUploadButton(t){this.init(t)}function _uploadbutton(t){return new KUploadButton(t)}function _createButton(t){t=t||{};var e=t.name||"",n=K('<span class="ke-button-common ke-button-outer" title="'+e+'"></span>'),i=K('<input class="ke-button-common ke-button" type="button" value="'+e+'" />');return t.click&&i.click(t.click),n.append(i),n}function KDialog(t){this.init(t)}function _dialog(t){return new KDialog(t)}function _tabs(t){var e=_widget(t),n=e.remove,i=t.afterSelect,r=e.div,o=[];r.addClass("ke-tabs").bind("contextmenu,mousedown,mousemove",(function(t){t.preventDefault()}));var a=K('<ul class="ke-tabs-ul ke-clearfix"></ul>');return r.append(a),e.add=function(t){var e=K('<li class="ke-tabs-li">'+t.title+"</li>");e.data("tab",t),o.push(e),a.append(e)},e.selectedIndex=0,e.select=function(t){e.selectedIndex=t,_each(o,(function(n,i){i.unbind(),n===t?(i.addClass("ke-tabs-li-selected"),K(i.data("tab").panel).show("")):(i.removeClass("ke-tabs-li-selected").removeClass("ke-tabs-li-on").mouseover((function(){K(this).addClass("ke-tabs-li-on")})).mouseout((function(){K(this).removeClass("ke-tabs-li-on")})).click((function(){e.select(n)})),K(i.data("tab").panel).hide())})),i&&i.call(e,t)},e.remove=function(){_each(o,(function(){this.remove()})),a.remove(),n.call(e)},e}function _loadScript(t,e){var n=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),i=document.createElement("script");n.appendChild(i),i.src=t,i.charset="utf-8",i.onload=i.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState||(e&&e(),i.onload=i.onreadystatechange=null,n.removeChild(i))}}function _chopQuery(t){var e=t.indexOf("?");return e>0?t.substr(0,e):t}function _loadStyle(t){for(var e=document.getElementsByTagName("head")[0]||(_QUIRKS?document.body:document.documentElement),n=document.createElement("link"),i=_chopQuery(_formatUrl(t,"absolute")),r=K('link[rel="stylesheet"]',e),o=0,a=r.length;o<a;o++)if(_chopQuery(_formatUrl(r[o].href,"absolute"))===i)return;e.appendChild(n),n.href=t,n.rel="stylesheet"}function _ajax(t,e,n,i,r){n=n||"GET",r=r||"json";var o=window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");if(o.open(n,t,!0),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status&&e){var t=_trim(o.responseText);"json"==r&&(t=_json(t)),e(t)}},"POST"==n){var a=[];_each(i,(function(t,e){a.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}));try{o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(s){}o.send(a.join("&"))}else o.send(null)}function _plugin(t,e){return t===undefined?_plugins:e?void(_plugins[t]=e):_plugins[t]}function _parseLangKey(t){var e,n="core";return(e=/^(\w+)\.(\w+)$/.exec(t))&&(n=e[1],t=e[2]),{ns:n,key:t}}function _lang(t,e){if(e=e===undefined?K.options.langType:e,"string"===typeof t){if(!_language[e])return"no language";var n=t.length-1;if("."===t.substr(n))return _language[e][t.substr(0,n)];var i=_parseLangKey(t);return _language[e][i.ns][i.key]}_each(t,(function(t,n){var i=_parseLangKey(t);_language[e]||(_language[e]={}),_language[e][i.ns]||(_language[e][i.ns]={}),_language[e][i.ns][i.key]=n}))}function _getImageFromRange(t,e){if(!t.collapsed){t=t.cloneRange().up();var n=t.startContainer,i=t.startOffset;if(_WEBKIT||t.isControl()){var r=K(n.childNodes[i]);if(r&&"img"==r.name)return e(r)?r:void 0}}}function _bindContextmenuEvent(){var t=this,e=t.edit.doc;K(e).contextmenu((function(e){if(t.menu&&t.hideMenu(),t.useContextmenu){if(0!==t._contextmenus.length){var n=0,i=[];_each(t._contextmenus,(function(){"-"!=this.title?this.cond&&this.cond()&&(i.push(this),this.width&&this.width>n&&(n=this.width)):i.push(this)}));while(i.length>0&&"-"==i[0].title)i.shift();while(i.length>0&&"-"==i[i.length-1].title)i.pop();var r=null;if(_each(i,(function(t){"-"==this.title&&"-"==r.title&&delete i[t],r=this})),i.length>0){e.preventDefault();var o=K(t.edit.iframe).pos(),a=_menu({x:o.x+e.clientX,y:o.y+e.clientY,width:n,css:{visibility:"hidden"},shadowMode:t.shadowMode});_each(i,(function(){this.title&&a.addItem(this)}));var s=_docElement(a.doc),l=a.div.height();e.clientY+l>=s.clientHeight-100&&a.pos(a.x,_removeUnit(a.y)-l),a.div.css("visibility","visible"),t.menu=a}}}else e.preventDefault()}))}function _bindNewlineEvent(){var t=this,e=t.edit.doc,n=t.newlineTag;if((!_IE||"br"===n)&&!(_GECKO&&_V<3&&"p"!==n)&&!(_OPERA&&_V<9)){var i=_toMap("h1,h2,h3,h4,h5,h6,pre,li"),r=_toMap("p,h1,h2,h3,h4,h5,h6,pre,li,blockquote");K(e).keydown((function(a){if(!(13!=a.which||a.shiftKey||a.ctrlKey||a.altKey)){t.cmd.selection();var s=o(t.cmd.range);if("marquee"!=s&&"select"!=s)return"br"!==n||i[s]?void(r[s]||_nativeCommand(e,"formatblock","<p>")):(a.preventDefault(),void t.insertHtml("<br />"+(_IE&&_V<9?"":"​")))}})),K(e).keyup((function(i){if(!(13!=i.which||i.shiftKey||i.ctrlKey||i.altKey)&&"br"!=n)if(_GECKO){var a=t.cmd.commonAncestor("p"),s=t.cmd.commonAncestor("a");s&&""==s.text()&&(s.remove(!0),t.cmd.range.selectNodeContents(a[0]).collapse(!0),t.cmd.select())}else{t.cmd.selection();var l=o(t.cmd.range);if("marquee"!=l&&"select"!=l){r[l]||_nativeCommand(e,"formatblock","<p>");var c=t.cmd.commonAncestor("div");if(c){var u=K("<p></p>"),d=c[0].firstChild;while(d){var h=d.nextSibling;u.append(d),d=h}c.before(u),c.remove(),t.cmd.range.selectNodeContents(u[0]),t.cmd.select()}}}}))}function o(t){var e=K(t.commonAncestor());while(e){if(1==e.type&&!e.isStyle())break;e=e.parent()}return e.name}}function _bindTabEvent(){var t=this,e=t.edit.doc;K(e).keydown((function(n){if(9==n.which){if(n.preventDefault(),t.afterTab)return void t.afterTab.call(t,n);var i=t.cmd,r=i.range;r.shrink(),r.collapsed&&1==r.startContainer.nodeType&&(r.insertNode(K("@&nbsp;",e)[0]),i.select()),t.insertHtml("&nbsp;&nbsp;&nbsp;&nbsp;")}}))}function _bindFocusEvent(){var t=this;K(t.edit.textarea[0],t.edit.win).focus((function(e){t.afterFocus&&t.afterFocus.call(t,e)})).blur((function(e){t.afterBlur&&t.afterBlur.call(t,e)}))}function _removeBookmarkTag(t){return _trim(t.replace(/<span [^>]*id="?__kindeditor_bookmark_\w+_\d+__"?[^>]*><\/span>/gi,""))}function _removeTempTag(t){return t.replace(/<div[^>]+class="?__kindeditor_paste__"?[^>]*>[\s\S]*?<\/div>/gi,"")}function _addBookmarkToStack(t,e){if(0!==t.length){var n=t[t.length-1];_removeBookmarkTag(e.html)!==_removeBookmarkTag(n.html)&&t.push(e)}else t.push(e)}function _undoToRedo(t,e){var n,i,r=this,o=r.edit,a=o.doc.body;if(0===t.length)return r;o.designMode?(n=r.cmd.range,i=n.createBookmark(!0),i.html=a.innerHTML):i={html:a.innerHTML},_addBookmarkToStack(e,i);var s=t.pop();return _removeBookmarkTag(i.html)===_removeBookmarkTag(s.html)&&t.length>0&&(s=t.pop()),o.designMode?(o.html(s.html),s.start&&(n.moveToBookmark(s),r.select())):K(a).html(_removeBookmarkTag(s.html)),r}function KEditor(t){var e=this;function n(t,n){KEditor.prototype[t]===undefined&&(e[t]=n),e.options[t]=n}e.options={},_each(t,(function(e,i){n(e,t[e])})),_each(K.options,(function(t,i){e[t]===undefined&&n(t,i)}));var i=K(e.srcElement||"<textarea/>");e.width||(e.width=i[0].style.width||i.width()),e.height||(e.height=i[0].style.height||i.height()),n("width",_undef(e.width,e.minWidth)),n("height",_undef(e.height,e.minHeight)),n("width",_addUnit(e.width)),n("height",_addUnit(e.height)),_MOBILE&&(!_IOS||_V<534)&&(e.designMode=!1),e.srcElement=i,e.initContent="",e.plugin={},e.isCreated=!1,e._handlers={},e._contextmenus=[],e._undoStack=[],e._redoStack=[],e._firstAddBookmark=!0,e.menu=e.contextmenu=null,e.dialogs=[]}function _editor(t){return new KEditor(t)}function _create(t,e){if(e=e||{},e.basePath=_undef(e.basePath,K.basePath),e.themesPath=_undef(e.themesPath,e.basePath+"themes/"),e.langPath=_undef(e.langPath,e.basePath+"lang/"),e.pluginsPath=_undef(e.pluginsPath,e.basePath+"plugins/"),_undef(e.loadStyleMode,K.options.loadStyleMode)){var n=_undef(e.themeType,K.options.themeType);_loadStyle(e.themesPath+"default/default.css"),_loadStyle(e.themesPath+n+"/"+n+".css")}function i(t){return _each(_plugins,(function(e,n){_isFunction(n)&&(n.call(t,KindEditor),t._pluginStatus||(t._pluginStatus={}),t._pluginStatus[e]="inited")})),t.create()}var r=K(t);if(r&&0!==r.length){if(r.length>1)return r.each((function(){_create(this,e)})),_instances[0];e.srcElement=r[0];var o=new KEditor(e);return _instances.push(o),_language[o.langType]?i(o):(_loadScript(o.langPath+o.langType+".js?ver="+encodeURIComponent(K.DEBUG?_TIME:_VERSION),(function(){i(o)})),o)}}function _eachEditor(t,e){K(t).each((function(t,n){K.each(_instances,(function(t,i){if(i&&i.srcElement[0]==n)return e.call(i,t),!1}))}))}})(window),KindEditor.lang({source:"HTML代码",preview:"预览",undo:"后退(Ctrl+Z)",redo:"前进(Ctrl+Y)",cut:"剪切(Ctrl+X)",copy:"复制(Ctrl+C)",paste:"粘贴(Ctrl+V)",plainpaste:"粘贴为无格式文本",wordpaste:"从Word粘贴",selectall:"全选(Ctrl+A)",justifyleft:"左对齐",justifycenter:"居中",justifyright:"右对齐",justifyfull:"两端对齐",insertorderedlist:"编号",insertunorderedlist:"项目符号",indent:"增加缩进",outdent:"减少缩进",subscript:"下标",superscript:"上标",formatblock:"段落",fontname:"字体",fontsize:"文字大小",forecolor:"文字颜色",hilitecolor:"文字背景",bold:"粗体(Ctrl+B)",italic:"斜体(Ctrl+I)",underline:"下划线(Ctrl+U)",strikethrough:"删除线",removeformat:"删除格式",image:"图片",uploadImage:"插入图片",multiimage:"批量图片上传",flash:"Flash",media:"视音频",table:"表格",tablecell:"单元格",hr:"插入横线",emoticons:"插入表情",link:"超级链接",unlink:"取消超级链接",fullscreen:"全屏显示",about:"关于",print:"打印(Ctrl+P)",filemanager:"文件空间",code:"插入程序代码",map:"Google地图",baidumap:"百度地图",lineheight:"行距",clearhtml:"清理HTML代码",pagebreak:"插入分页符",quickformat:"一键排版",insertfile:"插入文件",template:"插入模板",anchor:"锚点",yes:"确定",no:"取消",close:"关闭",editImage:"图片属性",deleteImage:"删除图片",editFlash:"Flash属性",deleteFlash:"删除Flash",editMedia:"视音频属性",deleteMedia:"删除视音频",editLink:"超级链接属性",deleteLink:"取消超级链接",editAnchor:"锚点属性",deleteAnchor:"删除锚点",tableprop:"表格属性",tablecellprop:"单元格属性",tableinsert:"插入表格",tabledelete:"删除表格",tablecolinsertleft:"左侧插入列",tablecolinsertright:"右侧插入列",tablerowinsertabove:"上方插入行",tablerowinsertbelow:"下方插入行",tablerowmerge:"向下合并单元格",tablecolmerge:"向右合并单元格",tablerowsplit:"拆分行",tablecolsplit:"拆分列",tablecoldelete:"删除列",tablerowdelete:"删除行",noColor:"无颜色",pleaseSelectFile:"请选择文件。",invalidImg:"请输入有效的URL地址。\n只允许jpg,gif,bmp,png格式。",invalidMedia:"请输入有效的URL地址。\n只允许swf,flv,mp3,wav,wma,wmv,mid,avi,mpg,asf,rm,rmvb格式。",invalidWidth:"宽度必须为数字。",invalidHeight:"高度必须为数字。",invalidBorder:"边框必须为数字。",invalidUrl:"请输入有效的URL地址。",invalidRows:"行数为必选项,只允许输入大于0的数字。",invalidCols:"列数为必选项,只允许输入大于0的数字。",invalidPadding:"边距必须为数字。",invalidSpacing:"间距必须为数字。",invalidJson:"服务器发生故障。",uploadSuccess:"上传成功。",cutError:"您的浏览器安全设置不允许使用剪切操作,请使用快捷键(Ctrl+X)来完成。",copyError:"您的浏览器安全设置不允许使用复制操作,请使用快捷键(Ctrl+C)来完成。",pasteError:"您的浏览器安全设置不允许使用粘贴操作,请使用快捷键(Ctrl+V)来完成。",ajaxLoading:"加载中,请稍候 ...",uploadLoading:"上传中,请稍候 ...",uploadError:"上传错误","plainpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","wordpaste.comment":"请使用快捷键(Ctrl+V)把内容粘贴到下面的方框里。","code.pleaseInput":"请输入程序代码。","link.url":"URL","link.linkType":"打开类型","link.newWindow":"新窗口","link.selfWindow":"当前窗口","flash.url":"URL","flash.width":"宽度","flash.height":"高度","flash.upload":"上传","flash.viewServer":"文件空间","media.url":"URL","media.width":"宽度","media.height":"高度","media.autostart":"自动播放","media.upload":"上传","media.viewServer":"文件空间","image.remoteImage":"网络图片","image.localImage":"本地上传","image.remoteUrl":"图片地址","image.localUrl":"上传文件","image.size":"图片大小","image.width":"宽","image.height":"高","image.resetSize":"重置大小","image.align":"对齐方式","image.defaultAlign":"默认方式","image.leftAlign":"左对齐","image.rightAlign":"右对齐","image.imgTitle":"图片说明","image.upload":"浏览...","image.viewServer":"本地上传","multiimage.uploadDesc":"允许用户同时上传<%=uploadLimit%>张图片,单张图片容量不超过<%=sizeLimit%>","multiimage.startUpload":"开始上传","multiimage.clearAll":"全部清空","multiimage.insertAll":"全部插入","multiimage.queueLimitExceeded":"文件数量超过限制。","multiimage.fileExceedsSizeLimit":"文件大小超过限制。","multiimage.zeroByteFile":"无法上传空文件。","multiimage.invalidFiletype":"文件类型不正确。","multiimage.unknownError":"发生异常,无法上传。","multiimage.pending":"等待上传","multiimage.uploadError":"上传失败","filemanager.emptyFolder":"空文件夹","filemanager.moveup":"移到上一级文件夹","filemanager.viewType":"显示方式:","filemanager.viewImage":"缩略图","filemanager.listImage":"详细信息","filemanager.orderType":"排序方式:","filemanager.fileName":"名称","filemanager.fileSize":"大小","filemanager.fileType":"类型","insertfile.url":"URL","insertfile.title":"文件说明","insertfile.upload":"上传","insertfile.viewServer":"文件空间","table.cells":"单元格数","table.rows":"行数","table.cols":"列数","table.size":"大小","table.width":"宽度","table.height":"高度","table.percent":"%","table.px":"px","table.space":"边距间距","table.padding":"边距","table.spacing":"间距","table.align":"对齐方式","table.textAlign":"水平对齐","table.verticalAlign":"垂直对齐","table.alignDefault":"默认","table.alignLeft":"左对齐","table.alignCenter":"居中","table.alignRight":"右对齐","table.alignTop":"顶部","table.alignMiddle":"中部","table.alignBottom":"底部","table.alignBaseline":"基线","table.border":"边框","table.borderWidth":"边框","table.borderColor":"颜色","table.backgroundColor":"背景颜色","map.address":"地址: ","map.search":"搜索","baidumap.address":"地址: ","baidumap.search":"搜索","baidumap.insertDynamicMap":"插入动态地图","anchor.name":"锚点名称","formatblock.formatBlock":{h1:"标题 1",h2:"标题 2",h3:"标题 3",h4:"标题 4",p:"正 文"},"fontname.fontName":{SimSun:"宋体",NSimSun:"新宋体",FangSong_GB2312:"仿宋_GB2312",KaiTi_GB2312:"楷体_GB2312",SimHei:"黑体","Microsoft YaHei":"微软雅黑",Arial:"Arial","Arial Black":"Arial Black","Times New Roman":"Times New Roman","Courier New":"Courier New",Tahoma:"Tahoma",Verdana:"Verdana"},"lineheight.lineHeight":[{1:"单倍行距"},{1.5:"1.5倍行距"},{2:"2倍行距"},{2.5:"2.5倍行距"},{3:"3倍行距"}],"template.selectTemplate":"可选模板","template.replaceContent":"替换当前内容","template.fileList":{"1.html":"图片和文字","2.html":"表格","3.html":"项目编号"}},"zh-CN"),KindEditor.options.langType="zh-CN",KindEditor.plugin("anchor",(function(t){var e=this,n="anchor",i=e.lang(n+".");e.plugin.anchor={edit:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keName">'+i.name+"</label>",'<input class="ke-input-text" type="text" id="keName" name="name" value="" style="width:100px;" />',"</div>","</div>"].join(""),o=e.createDialog({name:n,width:300,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(t){e.insertHtml('<a name="'+s.val()+'">').hideDialog().focus()}}}),a=o.div,s=t('input[name="name"]',a),l=e.plugin.getSelectedAnchor();l&&s.val(unescape(l.attr("data-ke-name"))),s[0].focus(),s[0].select()},delete:function(){e.plugin.getSelectedAnchor().remove()}},e.clickToolbar(n,e.plugin.anchor.edit)})),KindEditor.plugin("autoheight",(function(t){var e,n=this;n.autoHeightMode&&(n.isCreated?o():n.afterCreate(o));function i(){var t=n.edit,e=t.doc.body;t.iframe[0].scroll="no",e.style.overflowY="hidden"}function r(){var i=n.edit,r=i.doc.body;i.iframe.height(e),n.resize(null,Math.max((t.IE?r.scrollHeight:r.offsetHeight)+76,e))}function o(){e=t.removeUnit(n.height),n.edit.afterChange(r),i(),r()}})),KindEditor.plugin("baidumap",(function(t){var e=this,n="baidumap",i=e.lang(n+"."),r=t.undef(e.mapWidth,558),o=t.undef(e.mapHeight,360);e.clickToolbar(n,(function(){var a,s,l=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-right">','<input type="checkbox" id="keInsertDynamicMap" name="insertDynamicMap" value="1" /> <label for="keInsertDynamicMap">'+i.insertDynamicMap+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-map" style="width:'+r+"px;height:"+o+'px;"></div>',"</div>"].join(""),c=e.createDialog({name:n,width:r+42,title:e.lang(n),body:l,yesBtn:{name:e.lang("yes"),click:function(t){var n=a.map,i=n.getCenter(),s=i.lng+","+i.lat,l=n.getZoom(),c=[p[0].checked?e.pluginsPath+"baidumap/index.html":"http://api.map.baidu.com/staticimage","?center="+encodeURIComponent(s),"&zoom="+encodeURIComponent(l),"&width="+r,"&height="+o,"&markers="+encodeURIComponent(s),"&markerStyles="+encodeURIComponent("l,A")].join("");p[0].checked?e.insertHtml('<iframe src="'+c+'" frameborder="0" style="width:'+(r+2)+"px;height:"+(o+2)+'px;"></iframe>'):e.exec("insertimage",c),e.hideDialog().focus()}},beforeRemove:function(){h.remove(),s&&s.write(""),f.remove()}}),u=c.div,d=t('[name="address"]',u),h=t('[name="searchBtn"]',u),p=t('[name="insertDynamicMap"]',c.div),f=t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'baidumap/map.html" style="width:'+r+"px;height:"+o+'px;"></iframe>');function m(){a=f[0].contentWindow,s=t.iframeDoc(f)}f.bind("load",(function(){f.unbind("load"),t.IE?m():setTimeout(m,0)})),t(".ke-map",u).replaceWith(f),h.click((function(){a.search(d.val())}))}))})),KindEditor.plugin("map",(function(t){var e=this,n="map",i=e.lang(n+".");e.clickToolbar(n,(function(){var r,o,a=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">',i.address+' <input id="kindeditor_plugin_map_address" name="address" class="ke-input-text" value="" style="width:200px;" /> ','<span class="ke-button-common ke-button-outer">','<input type="button" name="searchBtn" class="ke-button-common ke-button" value="'+i.search+'" />',"</span>","</div>",'<div class="ke-map" style="width:558px;height:360px;"></div>',"</div>"].join(""),s=e.createDialog({name:n,width:600,title:e.lang(n),body:a,yesBtn:{name:e.lang("yes"),click:function(t){r.geocoder;var n=r.map,i=n.getCenter().lat()+","+n.getCenter().lng(),o=n.getZoom(),a=n.getMapTypeId(),s="http://maps.googleapis.com/maps/api/staticmap";s+="?center="+encodeURIComponent(i),s+="&zoom="+encodeURIComponent(o),s+="&size=558x360",s+="&maptype="+encodeURIComponent(a),s+="&markers="+encodeURIComponent(i),s+="&language="+e.langType,s+="&sensor=false",e.exec("insertimage",s).hideDialog().focus()}},beforeRemove:function(){u.remove(),o&&o.write(""),d.remove()}}),l=s.div,c=t('[name="address"]',l),u=t('[name="searchBtn"]',l),d=(["<!doctype html><html><head>",'<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />',"<style>","\thtml { height: 100% }","\tbody { height: 100%; margin: 0; padding: 0; background-color: #FFF }","\t#map_canvas { height: 100% }","</style>",'<script src="http://maps.googleapis.com/maps/api/js?sensor=false&language='+e.langType+'"><\/script>',"<script>","var map, geocoder;","function initialize() {","\tvar latlng = new google.maps.LatLng(31.230393, 121.473704);","\tvar options = {","\t\tzoom: 11,","\t\tcenter: latlng,","\t\tdisableDefaultUI: true,","\t\tpanControl: true,","\t\tzoomControl: true,","\t\tmapTypeControl: true,","\t\tscaleControl: true,","\t\tstreetViewControl: false,","\t\toverviewMapControl: true,","\t\tmapTypeId: google.maps.MapTypeId.ROADMAP","\t};",'\tmap = new google.maps.Map(document.getElementById("map_canvas"), options);',"\tgeocoder = new google.maps.Geocoder();","\tgeocoder.geocode({latLng: latlng}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tif (results[3]) {",'\t\t\t\tparent.document.getElementById("kindeditor_plugin_map_address").value = results[3].formatted_address;',"\t\t\t}","\t\t}","\t});","}","function search(address) {","\tif (!map) return;","\tgeocoder.geocode({address : address}, function(results, status) {","\t\tif (status == google.maps.GeocoderStatus.OK) {","\t\t\tmap.setZoom(11);","\t\t\tmap.setCenter(results[0].geometry.location);","\t\t\tvar marker = new google.maps.Marker({","\t\t\t\tmap: map,","\t\t\t\tposition: results[0].geometry.location","\t\t\t});","\t\t} else {",'\t\t\talert("Invalid address: " + address);',"\t\t}","\t});","}","<\/script>","</head>",'<body onload="initialize();">','<div id="map_canvas" style="width:100%; height:100%"></div>',"</body></html>"].join("\n"),t('<iframe class="ke-textarea" frameborder="0" src="'+e.pluginsPath+'map/map.html" style="width:558px;height:360px;"></iframe>'));function h(){r=d[0].contentWindow,o=t.iframeDoc(d)}d.bind("load",(function(){d.unbind("load"),t.IE?h():setTimeout(h,0)})),t(".ke-map",l).replaceWith(d),u.click((function(){r.search(c.val())}))}))})),KindEditor.plugin("clearhtml",(function(t){var e=this,n="clearhtml";e.clickToolbar(n,(function(){e.focus();var n=e.html();n=n.replace(/(<script[^>]*>)([\s\S]*?)(<\/script>)/gi,""),n=n.replace(/(<style[^>]*>)([\s\S]*?)(<\/style>)/gi,""),n=t.formatHtml(n,{a:["href","target"],embed:["src","width","height","type","loop","autostart","quality",".width",".height","align","allowscriptaccess"],img:["src","width","height","border","alt","title",".width",".height"],table:["border"],"td,th":["rowspan","colspan"],"div,hr,br,tbody,tr,p,ol,ul,li,blockquote,h1,h2,h3,h4,h5,h6":[]}),e.html(n),e.cmd.selection(!0),e.addBookmark()}))})),KindEditor.plugin("code",(function(t){var e=this,n="code";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r=['<div style="padding:10px 20px;">','<div class="ke-dialog-row">','<select class="ke-code-type">','<option value="js">JavaScript</option>','<option value="html">HTML</option>','<option value="css">CSS</option>','<option value="php">PHP</option>','<option value="pl">Perl</option>','<option value="py">Python</option>','<option value="rb">Ruby</option>','<option value="java">Java</option>','<option value="vb">ASP/VB</option>','<option value="cpp">C/C++</option>','<option value="cs">C#</option>','<option value="xml">XML</option>','<option value="bsh">Shell</option>','<option value="">Other</option>',"</select>","</div>",'<textarea class="ke-textarea" style="width:408px;height:260px;"></textarea>',"</div>"].join(""),o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var r=t(".ke-code-type",o.div).val(),s=a.val(),l=""===r?"":" lang-"+r,c='<pre class="prettyprint'+l+'">\n'+t.escape(s)+"</pre> ";if(""===t.trim(s))return alert(i.pleaseInput),void a[0].focus();e.insertHtml(c).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("emoticons",(function(t){var e=this,n="emoticons",i=e.emoticonsPath||e.pluginsPath+"emoticons/images/",r=void 0===e.allowPreviewEmoticons||e.allowPreviewEmoticons,o=1;e.clickToolbar(n,(function(){var a,s,l=5,c=9,u=135,d=0,h=l*c,p=Math.ceil(u/h),f=Math.floor(c/2),m=t('<div class="ke-plugin-emoticons"></div>'),g=[],v=e.createMenu({name:n,beforeRemove:function(){x()}});function b(n,r,o){a?n.mouseover((function(){r>f?(a.css("left",0),a.css("right","")):(a.css("left",""),a.css("right",0)),s.attr("src",i+o+".gif"),t(this).addClass("ke-on")})):n.mouseover((function(){t(this).addClass("ke-on")})),n.mouseout((function(){t(this).removeClass("ke-on")})),n.click((function(t){e.insertHtml('<img src="'+i+o+'.gif" border="0" alt="" />').hideMenu().focus(),t.stop()}))}function _(e,n){var r=document.createElement("table");n.append(r),a&&(t(r).mouseover((function(){a.show("block")})),t(r).mouseout((function(){a.hide()})),g.push(t(r))),r.className="ke-table",r.cellPadding=0,r.cellSpacing=0,r.border=0;for(var o=(e-1)*h+d,s=0;s<l;s++)for(var u=r.insertRow(s),p=0;p<c;p++){var f=t(u.insertCell(p));f.addClass("ke-cell"),b(f,p,o);var m=t('<span class="ke-img"></span>').css("background-position","-"+24*o+"px 0px").css("background-image","url("+i+"static.gif)");f.append(m),g.push(f),o++}return r}v.div.append(m),r&&(a=t('<div class="ke-preview"></div>').css("right",0),s=t('<img class="ke-preview-img" src="'+i+d+'.gif" />'),m.append(a),a.append(s));var y,w=_(o,m);function x(){t.each(g,(function(){this.unbind()}))}function k(t,e){t.click((function(t){x(),w.parentNode.removeChild(w),y.remove(),w=_(e,m),S(e),o=e,t.stop()}))}function S(e){y=t('<div class="ke-page"></div>'),m.append(y);for(var n=1;n<=p;n++){if(e!==n){var i=t('<a href="javascript:;">['+n+"]</a>");k(i,n),y.append(i),g.push(i)}else y.append(t("@["+n+"]"));y.append(t("@&nbsp;"))}}S(o)}))})),KindEditor.plugin("filemanager",(function(t){var e=this,n="filemanager",i=t.undef(e.fileManagerJson,e.basePath+"php/file_manager_json.php"),r=e.pluginsPath+n+"/images/",o=e.lang(n+".");function a(t,e,n){return t+" ("+Math.ceil(e/1024)+"KB, "+n+")"}function s(t,e){e.is_dir?t.attr("title",e.filename):t.attr("title",a(e.filename,e.filesize,e.datetime))}e.plugin.filemanagerDialog=function(a){var l=t.undef(a.width,650),c=t.undef(a.height,510),u=t.undef(a.dirName,""),d=t.undef(a.viewType,"VIEW").toUpperCase(),h=a.clickFn,p=['<div style="padding:10px 20px;">','<div class="ke-plugin-filemanager-header">','<div class="ke-left">','<img class="ke-inline-block" name="moveupImg" src="'+r+'go-up.gif" width="16" height="16" border="0" alt="" /> ','<a class="ke-inline-block" name="moveupLink" href="javascript:;">'+o.moveup+"</a>","</div>",'<div class="ke-right">',o.viewType+' <select class="ke-inline-block" name="viewType">','<option value="VIEW">'+o.viewImage+"</option>",'<option value="LIST">'+o.listImage+"</option>","</select> ",o.orderType+' <select class="ke-inline-block" name="orderType">','<option value="NAME">'+o.fileName+"</option>",'<option value="SIZE">'+o.fileSize+"</option>",'<option value="TYPE">'+o.fileType+"</option>","</select>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<div class="ke-plugin-filemanager-body"></div>',"</div>"].join(""),f=e.createDialog({name:n,width:l,height:c,title:e.lang(n),body:p}),m=f.div,g=t(".ke-plugin-filemanager-body",m),v=(t('[name="moveupImg"]',m),t('[name="moveupLink"]',m)),b=(t('[name="viewServer"]',m),t('[name="viewType"]',m)),_=t('[name="orderType"]',m);function y(n,r,o){var a="path="+n+"&order="+r+"&dir="+u;f.showLoading(e.lang("ajaxLoading")),t.ajax(t.addParam(i,a+"&"+(new Date).getTime()),(function(t){f.hideLoading(),o(t)}))}var w=[];function x(e,n,i,r){var o=t.formatUrl(n.current_url+i.filename,"absolute"),a=encodeURIComponent(n.current_dir_path+i.filename+"/");i.is_dir?e.click((function(t){y(a,_.val(),r)})):(i.is_photo,e.click((function(t){h.call(this,o,i.filename)}))),w.push(e)}function k(e,n){function i(){"VIEW"==b.val()?y(e.current_dir_path,_.val(),D):y(e.current_dir_path,_.val(),S)}t.each(w,(function(){this.unbind()})),v.unbind(),b.unbind(),_.unbind(),e.current_dir_path&&v.click((function(t){y(e.moveup_dir_path,_.val(),n)})),b.change(i),_.change(i),g.html("")}function S(e){k(e,S);var n=document.createElement("table");n.className="ke-table",n.cellPadding=0,n.cellSpacing=0,n.border=0,g.append(n);for(var i=e.file_list,a=0,s=i.length;a<s;a++){var l=i[a],c=t(n.insertRow(a));c.mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));var u=r+(l.is_dir?"folder-16.gif":"file-16.gif"),d=t('<img src="'+u+'" width="16" height="16" alt="'+l.filename+'" align="absmiddle" />'),h=t(c[0].insertCell(0)).addClass("ke-cell ke-name").append(d).append(document.createTextNode(" "+l.filename));!l.is_dir||l.has_file?(c.css("cursor","pointer"),h.attr("title",l.filename),x(h,e,l,S)):h.attr("title",o.emptyFolder),t(c[0].insertCell(1)).addClass("ke-cell ke-size").html(l.is_dir?"-":Math.ceil(l.filesize/1024)+"KB"),t(c[0].insertCell(2)).addClass("ke-cell ke-datetime").html(l.datetime)}}function D(e){k(e,D);for(var n=e.file_list,i=0,a=n.length;i<a;i++){var l=n[i],c=t('<div class="ke-inline-block ke-item"></div>');g.append(c);var u=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));c.append(u);var d=e.current_url+l.filename,h=l.is_dir?r+"folder-64.gif":l.is_photo?d:r+"file-64.gif",p=t('<img src="'+h+'" width="80" height="80" alt="'+l.filename+'" />');!l.is_dir||l.has_file?(u.css("cursor","pointer"),s(u,l),x(u,e,l,D)):u.attr("title",o.emptyFolder),u.append(p),c.append('<div class="ke-name" title="'+l.filename+'">'+l.filename+"</div>")}}return b.val(d),y("",_.val(),"VIEW"==d?D:S),f}})),KindEditor.plugin("flash",(function(t){var e=this,n="flash",i=e.lang(n+"."),r=t.undef(e.allowFlashUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.flash={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" /> ',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(".swf"),width:r,height:o,quality:"high"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h);if(p.val("http://"),r){var v=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=flash"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});v.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),v.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"flash",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var b=e.plugin.getSelectedFlash();if(b){var _=t.mediaAttrs(b.attr("data-ke-tag"));p.val(_.src),m.val(t.removeUnit(b.css("width"))||_.width||0),g.val(t.removeUnit(b.css("height"))||_.height||0)}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedFlash().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.flash.edit)})),KindEditor.plugin("uploadImage",(function(t){var e=this;e.clickToolbar("uploadImage",(function(){$app.$upload({multiple:!0,success:function(t){e.insertHtml(Array.from(t,t=>`<img src="${t.path}" alt="" />`).join(""))}})}))})),KindEditor.plugin("image",(function(t){var e=this,n="image",i=t.undef(e.allowImageUpload,!1),r=t.undef(e.allowImageRemote,!0),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.allowFileManager,!0),s=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),l=t.undef(e.imageTabIndex,0),c=e.pluginsPath+"image/images/",u=t.undef(e.extraFileUploadParams,{}),d=t.undef(e.filePostName,"imgFile"),h=t.undef(e.fillDescAfterUploadImage,!1),p=e.lang(n+".");e.plugin.imageDialog=function(i){i.imageUrl,t.undef(i.imageWidth,""),t.undef(i.imageHeight,""),t.undef(i.imageTitle,""),t.undef(i.imageAlign,"");var r=t.undef(i.showRemote,!0),l=t.undef(i.showLocal,!0),f=t.undef(i.tabIndex,0),m=i.clickFn,g="kindeditor_upload_iframe_"+(new Date).getTime(),v=[];for(var b in u)v.push('<input type="hidden" name="'+b+'" value="'+u[b]+'" />');var _,y=['<div style="padding:20px;">','<div class="tabs"></div>','<div class="tab1" style="display:none;">','<div class="ke-dialog-row">','<label for="remoteUrl" style="width:60px;">'+p.remoteUrl+"</label>",'<input type="text" id="remoteUrl" class="ke-input-text" name="url" value="" style="width:200px;" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+p.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="remoteWidth" style="width:60px;">'+p.size+"</label>",p.width+' <input type="text" id="remoteWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> ',p.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> ','<img class="ke-refresh-btn" src="'+c+'refresh.png" width="16" height="16" alt="" style="cursor:pointer;" title="'+p.resetSize+'" />',"</div>",'<div class="ke-dialog-row">','<label style="width:60px;">'+p.align+"</label>",'<input type="radio" name="align" class="ke-inline-block" value="" checked="checked" /> <img name="defaultImg" src="'+IMAGE_ALIGN_TOP+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="left" /> <img name="leftImg" src="'+IMAGE_ALIGN_LEFT+'" width="23" height="25" alt="" />',' <input type="radio" name="align" class="ke-inline-block" value="right" /> <img name="rightImg" src="'+IMAGE_ALIGN_RIGHT+'" width="23" height="25" alt="" />',"</div>",'<div class="ke-dialog-row">','<label for="remoteTitle" style="width:60px;">'+p.imgTitle+"</label>",'<input type="text" id="remoteTitle" class="ke-input-text" name="title" value="" style="width:200px;" />',"</div>","</div>",'<div class="tab2" style="display:none;">','<iframe name="'+g+'" style="display:none;"></iframe>','<form class="ke-upload-area ke-form" method="post" enctype="multipart/form-data" target="'+g+'" action="'+t.addParam(s,"dir=image")+'">','<div class="ke-dialog-row">',v.join(""),'<label style="width:60px;">'+p.localUrl+"</label>",'<input type="text" name="localUrl" class="ke-input-text" tabindex="-1" style="width:200px;" readonly="true" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+p.upload+'" />',"</div>","</form>","</div>","</div>"].join(""),w=l||a?450:400,x=l&&r?300:250,k=e.createDialog({name:n,width:w,height:x,title:e.lang(n),body:y,yesBtn:{name:e.lang("yes"),click:function(n){if(!k.isLoading){if(l&&r&&_&&1===_.selectedIndex||!r)return""==L.fileBox.val()?void alert(e.lang("pleaseSelectFile")):(k.showLoading(e.lang("uploadLoading")),L.submit(),void C.val(""));var i=t.trim(D.val()),o=A.val(),a=T.val(),s=B.val(),c="";return $.each((function(){if(this.checked)return c=this.value,!1})),"http://"==i||t.invalidUrl(i)?(alert(e.lang("invalidUrl")),void D[0].focus()):/^\d*$/.test(o)?/^\d*$/.test(a)?void m.call(e,i,s,o,a,0,c):(alert(e.lang("invalidHeight")),void T[0].focus()):(alert(e.lang("invalidWidth")),void A[0].focus())}}},beforeRemove:function(){E.unbind(),A.unbind(),T.unbind(),F.unbind()}}),S=k.div,D=t('[name="url"]',S),C=t('[name="localUrl"]',S),E=t('[name="viewServer"]',S),A=t('.tab1 [name="width"]',S),T=t('.tab1 [name="height"]',S),F=t(".ke-refresh-btn",S),B=t('.tab1 [name="title"]',S),$=t('.tab1 [name="align"]',S);r&&l?(_=t.tabs({src:t(".tabs",S),afterSelect:function(t){}}),_.add({title:p.remoteImage,panel:t(".tab1",S)}),_.add({title:p.localImage,panel:t(".tab2",S)}),_.select(f)):r?t(".tab1",S).show():l&&t(".tab2",S).show();var L=t.uploadbutton({button:t(".ke-upload-button",S)[0],fieldName:d,form:t(".ke-form",S),target:g,width:60,afterUpload:function(i){if(k.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),e.afterUpload&&e.afterUpload.call(e,r,i,n),h?(t(".ke-dialog-row #remoteUrl",S).val(r),t(".ke-tabs-li",S)[0].click(),t(".ke-refresh-btn",S).click()):m.call(e,r,i.title,i.width,i.height,i.border,i.align)}else alert(i.message)},afterError:function(t){k.hideLoading(),e.errorDialog(t)}});L.fileBox.change((function(t){C.val(L.fileBox.val())})),a?E.click((function(e){$app.$upload({success:function(e){Array.isArray(e)&&(e=e[0]),t('[name="url"]',S).val(e.path)}})})):E.hide();var I=0,M=0;function P(t,e){A.val(t),T.val(e),I=t,M=e}return F.click((function(e){var n=t('<img src="'+D.val()+'" />',document).css({position:"absolute",visibility:"hidden",top:0,left:"-1000px"});n.bind("load",(function(){P(n.width(),n.height()),n.remove()})),t(document.body).append(n)})),A.change((function(t){I>0&&T.val(Math.round(M/I*parseInt(this.value,10)))})),T.change((function(t){M>0&&A.val(Math.round(I/M*parseInt(this.value,10)))})),D.val(i.imageUrl),B.val(i.imageTitle),$.each((function(){if(this.value===i.imageAlign)return this.checked=!0,!1})),r&&0===f&&(D[0].focus(),D[0].select()),k},e.plugin.image={edit:function(){var t=e.plugin.getSelectedImage();e.plugin.imageDialog({imageUrl:t?t.attr("data-ke-src"):"http://",imageWidth:t?t.width():"",imageHeight:t?t.height():"",imageTitle:t?t.attr("title"):"",imageAlign:t?t.attr("align"):"",showRemote:r,showLocal:i,tabIndex:t?0:l,clickFn:function(n,i,r,o,a,s){t?(t.attr("src",n),t.attr("data-ke-src",n),t.attr("width",r),t.attr("height",o),t.attr("title",i),t.attr("align",s),t.attr("alt",i)):e.exec("insertimage",n,i,r,o,a,s),setTimeout((function(){e.hideDialog().focus()}),0)}})},delete:function(){var t=e.plugin.getSelectedImage();"a"==t.parent().name&&(t=t.parent()),t.remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.image.edit)})),KindEditor.plugin("insertfile",(function(t){var e=this,n="insertfile",i=t.undef(e.allowFileUpload,!0),r=t.undef(e.allowFileManager,!1),o=t.undef(e.formatUploadUrl,!0),a=t.undef(e.uploadJson,e.basePath+"php/upload_json.php"),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=e.lang(n+".");e.plugin.fileDialog=function(u){var d=t.undef(u.fileUrl,"http://"),h=t.undef(u.fileTitle,""),p=u.clickFn,f=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+c.url+"</label>",'<input type="text" id="keUrl" name="url" class="ke-input-text" style="width:160px;" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+c.upload+'" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+c.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keTitle" style="width:60px;">'+c.title+"</label>",'<input type="text" id="keTitle" class="ke-input-text" name="title" value="" style="width:160px;" /></div>',"</div>","</form>","</div>"].join(""),m=e.createDialog({name:n,width:450,title:e.lang(n),body:f,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(v.val()),r=_.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void v[0].focus();""===t.trim(r)&&(r=i),p.call(e,i,r)}}}),g=m.div,v=t('[name="url"]',g),b=t('[name="viewServer"]',g),_=t('[name="title"]',g);if(i){var y=t.uploadbutton({button:t(".ke-upload-button",g)[0],fieldName:l,url:t.addParam(a,"dir=file"),extraParams:s,afterUpload:function(i){if(m.hideLoading(),0===i.error){var r=i.url;o&&(r=t.formatUrl(r,"absolute")),v.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){m.hideLoading(),e.errorDialog(t)}});y.fileBox.change((function(t){m.showLoading(e.lang("uploadLoading")),y.submit()}))}else t(".ke-upload-button",g).hide();r?b.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"file",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',g).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):b.hide(),v.val(d),_.val(h),v[0].focus(),v[0].select()},e.clickToolbar(n,(function(){e.plugin.fileDialog({clickFn:function(t,n){var i='<a class="ke-insertfile" href="'+t+'" data-ke-src="'+t+'" target="_blank">'+n+"</a>";e.insertHtml(i).hideDialog().focus()}})}))})),KindEditor.plugin("lineheight",(function(t){var e=this,n="lineheight",i=e.lang(n+".");e.clickToolbar(n,(function(){var r="",o=e.cmd.commonNode({"*":".line-height"});o&&(r=o.css("line-height"));var a=e.createMenu({name:n,width:150});t.each(i.lineHeight,(function(n,i){t.each(i,(function(t,n){a.addItem({title:n,checked:r===t,click:function(){e.cmd.toggle('<span style="line-height:'+t+';"></span>',{span:".line-height="+t}),e.updateState(),e.addBookmark(),e.hideMenu()}})}))}))}))})),KindEditor.plugin("link",(function(t){var e=this,n="link";e.plugin.link={edit:function(){var i=e.lang(n+"."),r='<div style="padding:20px;"><div class="ke-dialog-row"><label for="keUrl" style="width:60px;">'+i.url+'</label><input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:260px;" /></div><div class="ke-dialog-row""><label for="keType" style="width:60px;">'+i.linkType+'</label><select id="keType" name="type"></select></div></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(s.val());if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void s[0].focus();e.exec("createlink",i,l.val()).hideDialog().focus()}}}),a=o.div,s=t('input[name="url"]',a),l=t('select[name="type"]',a);s.val("http://"),l[0].options[0]=new Option(i.newWindow,"_blank"),l[0].options[1]=new Option(i.selfWindow,""),e.cmd.selection();var c=e.plugin.getSelectedLink();c&&(e.cmd.range.selectNode(c[0]),e.cmd.select(),s.val(c.attr("data-ke-src")),l.val(c.attr("target"))),s[0].focus(),s[0].select()},delete:function(){e.exec("unlink",null)}},e.clickToolbar(n,e.plugin.link.edit)})),KindEditor.plugin("media",(function(t){var e=this,n="media",i=e.lang(n+"."),r=t.undef(e.allowMediaUpload,!0),o=t.undef(e.allowFileManager,!1),a=t.undef(e.formatUploadUrl,!0),s=t.undef(e.extraFileUploadParams,{}),l=t.undef(e.filePostName,"imgFile"),c=t.undef(e.uploadJson,e.basePath+"php/upload_json.php");e.plugin.media={edit:function(){var u=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keUrl" style="width:60px;">'+i.url+"</label>",'<input class="ke-input-text" type="text" id="keUrl" name="url" value="" style="width:160px;" /> &nbsp;','<input type="button" class="ke-upload-button" value="'+i.upload+'" /> &nbsp;','<span class="ke-button-common ke-button-outer">','<input type="button" class="ke-button-common ke-button" name="viewServer" value="'+i.viewServer+'" />',"</span>","</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:60px;">'+i.width+"</label>",'<input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="550" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keHeight" style="width:60px;">'+i.height+"</label>",'<input type="text" id="keHeight" class="ke-input-text ke-input-number" name="height" value="400" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAutostart">'+i.autostart+"</label>",'<input type="checkbox" id="keAutostart" name="autostart" value="" /> ',"</div>","</div>"].join(""),d=e.createDialog({name:n,width:450,height:230,title:e.lang(n),body:u,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.trim(p.val()),r=m.val(),o=g.val();if("http://"==i||t.invalidUrl(i))return alert(e.lang("invalidUrl")),void p[0].focus();if(!/^\d*$/.test(r))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(o))return alert(e.lang("invalidHeight")),void g[0].focus();var a=t.mediaImg(e.themesPath+"common/blank.gif",{src:i,type:t.mediaType(i),width:r,height:o,autostart:v[0].checked?"true":"false",loop:"true"});e.insertHtml(a).hideDialog().focus()}}}),h=d.div,p=t('[name="url"]',h),f=t('[name="viewServer"]',h),m=t('[name="width"]',h),g=t('[name="height"]',h),v=t('[name="autostart"]',h);if(p.val("http://"),r){var b=t.uploadbutton({button:t(".ke-upload-button",h)[0],fieldName:l,extraParams:s,url:t.addParam(c,"dir=media"),afterUpload:function(i){if(d.hideLoading(),0===i.error){var r=i.url;a&&(r=t.formatUrl(r,"absolute")),p.val(r),e.afterUpload&&e.afterUpload.call(e,r,i,n),alert(e.lang("uploadSuccess"))}else alert(i.message)},afterError:function(t){d.hideLoading(),e.errorDialog(t)}});b.fileBox.change((function(t){d.showLoading(e.lang("uploadLoading")),b.submit()}))}else t(".ke-upload-button",h).hide();o?f.click((function(n){e.loadPlugin("filemanager",(function(){e.plugin.filemanagerDialog({viewType:"LIST",dirName:"media",clickFn:function(n,i){e.dialogs.length>1&&(t('[name="url"]',h).val(n),e.afterSelectFile&&e.afterSelectFile.call(e,n),e.hideDialog())}})}))})):f.hide();var _=e.plugin.getSelectedMedia();if(_){var y=t.mediaAttrs(_.attr("data-ke-tag"));p.val(y.src),m.val(t.removeUnit(_.css("width"))||y.width||0),g.val(t.removeUnit(_.css("height"))||y.height||0),v[0].checked="true"===y.autostart}p[0].focus(),p[0].select()},delete:function(){e.plugin.getSelectedMedia().remove(),e.addBookmark()}},e.clickToolbar(n,e.plugin.media.edit)})),function(t){function e(t){this.init(t)}t.extend(e,{init:function(e){var n=this;function i(e,n){t(".ke-status > div",e).hide(),t(".ke-message",e).addClass("ke-error").show().html(t.escape(n))}e.afterError=e.afterError||function(t){alert(t)},n.options=e,n.progressbars={},n.div=t(e.container).html(['<div class="ke-swfupload">','<div class="ke-swfupload-top">','<div class="ke-inline-block ke-swfupload-button">','<input type="button" value="Browse" />',"</div>",'<div class="ke-inline-block ke-swfupload-desc">'+e.uploadDesc+"</div>",'<span class="ke-button-common ke-button-outer ke-swfupload-startupload">','<input type="button" class="ke-button-common ke-button" value="'+e.startButtonValue+'" />',"</span>","</div>",'<div class="ke-swfupload-body"></div>',"</div>"].join("")),n.bodyDiv=t(".ke-swfupload-body",n.div);var r={debug:!1,upload_url:e.uploadUrl,flash_url:e.flashUrl,file_post_name:e.filePostName,button_placeholder:t(".ke-swfupload-button > input",n.div)[0],button_image_url:e.buttonImageUrl,button_width:e.buttonWidth,button_height:e.buttonHeight,button_cursor:SWFUpload.CURSOR.HAND,file_types:e.fileTypes,file_types_description:e.fileTypesDesc,file_upload_limit:e.fileUploadLimit,file_size_limit:e.fileSizeLimit,post_params:e.postParams,file_queued_handler:function(t){t.url=n.options.fileIconUrl,n.appendFile(t)},file_queue_error_handler:function(n,i,r){var o="";switch(i){case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:o=e.queueLimitExceeded;break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:o=e.fileExceedsSizeLimit;break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:o=e.zeroByteFile;break;case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE:o=e.invalidFiletype;break;default:o=e.unknownError;break}t.DEBUG&&alert(o)},upload_start_handler:function(e){var n=this,i=t('div[data-id="'+e.id+'"]',n.bodyDiv);t(".ke-status > div",i).hide(),t(".ke-progressbar",i).show()},upload_progress_handler:function(t,e,i){var r=Math.round(100*e/i),o=n.progressbars[t.id];o.bar.css("width",Math.round(80*r/100)+"px"),o.percent.html(r+"%")},upload_error_handler:function(e,r,o){if(e&&e.filestatus==SWFUpload.FILE_STATUS.ERROR){var a=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0);i(a,n.options.errorMessage)}},upload_success_handler:function(e,r){var o=t('div[data-id="'+e.id+'"]',n.bodyDiv).eq(0),a={};try{a=t.json(r)}catch(s){n.options.afterError.call(this,"<!doctype html><html>"+r+"</html>")}0===a.error?(e.url=a.url,t(".ke-img",o).attr("src",e.url).attr("data-status",e.filestatus).data("data",a),t(".ke-status > div",o).hide()):i(o,t.DEBUG?a.message:n.options.errorMessage)}};n.swfu=new SWFUpload(r),t(".ke-swfupload-startupload input",n.div).click((function(){n.swfu.startUpload()}))},getUrlList:function(){var e=[];return t(".ke-img",self.bodyDiv).each((function(){var n=t(this),i=n.attr("data-status");i==SWFUpload.FILE_STATUS.COMPLETE&&e.push(n.data("data"))})),e},removeFile:function(e){var n=this;n.swfu.cancelUpload(e);var i=t('div[data-id="'+e+'"]',n.bodyDiv);t(".ke-photo",i).unbind(),t(".ke-delete",i).unbind(),i.remove()},removeFiles:function(){var e=this;t(".ke-item",e.bodyDiv).each((function(){e.removeFile(t(this).attr("data-id"))}))},appendFile:function(e){var n=this,i=t('<div class="ke-inline-block ke-item" data-id="'+e.id+'"></div>');n.bodyDiv.append(i);var r=t('<div class="ke-inline-block ke-photo"></div>').mouseover((function(e){t(this).addClass("ke-on")})).mouseout((function(e){t(this).removeClass("ke-on")}));i.append(r);var o=t('<img src="'+e.url+'" class="ke-img" data-status="'+e.filestatus+'" width="80" height="80" alt="'+e.name+'" />');r.append(o),t('<span class="ke-delete"></span>').appendTo(r).click((function(){n.removeFile(e.id)}));var a=t('<div class="ke-status"></div>').appendTo(r);t(['<div class="ke-progressbar">','<div class="ke-progressbar-bar"><div class="ke-progressbar-bar-inner"></div></div>','<div class="ke-progressbar-percent">0%</div></div>'].join("")).hide().appendTo(a),t('<div class="ke-message">'+n.options.pendingMessage+"</div>").appendTo(a),i.append('<div class="ke-name">'+e.name+"</div>"),n.progressbars[e.id]={bar:t(".ke-progressbar-bar-inner",r),percent:t(".ke-progressbar-percent",r)}},remove:function(){this.removeFiles(),this.swfu.destroy(),this.div.html("")}}),t.swfupload=function(t,n){return new e(t,n)}}(KindEditor),KindEditor.plugin("multiimage",(function(t){var e=this,n="multiimage",i=(t.undef(e.formatUploadUrl,!0),t.undef(e.uploadJson,e.basePath+"php/upload_json.php")),r=e.pluginsPath+"multiimage/images/",o=t.undef(e.imageSizeLimit,"1MB"),a=(t.undef(e.imageFileTypes,"*.jpg;*.gif;*.png"),t.undef(e.imageUploadLimit,20)),s=t.undef(e.filePostName,"imgFile"),l=e.lang(n+".");e.plugin.multiImageDialog=function(c){var u=c.clickFn,d=t.tmpl(l.uploadDesc,{uploadLimit:a,sizeLimit:o}),h=['<div style="padding:20px;">','<div class="swfupload">',"</div>","</div>"].join(""),p=e.createDialog({name:n,width:650,height:510,title:e.lang(n),body:h,previewBtn:{name:l.insertAll,click:function(t){u.call(e,m.getUrlList())}},yesBtn:{name:l.clearAll,click:function(t){m.removeFiles()}},beforeRemove:function(){(!t.IE||t.V<=8)&&m.remove()}}),f=p.div,m=t.swfupload({container:t(".swfupload",f),buttonImageUrl:r+("zh-CN"==e.langType?"select-files-zh-CN.png":"select-files-en.png"),buttonWidth:"zh-CN"==e.langType?72:88,buttonHeight:23,fileIconUrl:r+"image.png",uploadDesc:d,startButtonValue:l.startUpload,uploadUrl:t.addParam(i,"dir=image"),flashUrl:r+"swfupload.swf",filePostName:s,fileTypes:"*.jpg;*.jpeg;*.gif;*.png;*.bmp",fileTypesDesc:"Image Files",fileUploadLimit:a,fileSizeLimit:o,postParams:t.undef(e.extraFileUploadParams,{}),queueLimitExceeded:l.queueLimitExceeded,fileExceedsSizeLimit:l.fileExceedsSizeLimit,zeroByteFile:l.zeroByteFile,invalidFiletype:l.invalidFiletype,unknownError:l.unknownError,pendingMessage:l.pending,errorMessage:l.uploadError,afterError:function(t){e.errorDialog(t)}});return p},e.clickToolbar(n,(function(){e.plugin.multiImageDialog({clickFn:function(n){0!==n.length&&(t.each(n,(function(t,n){e.afterUpload&&e.afterUpload.call(e,n.url,n,"multiimage"),e.exec("insertimage",n.url,n.title,n.width,n.height,n.border,n.align)})),setTimeout((function(){e.hideDialog().focus()}),0))}})}))})),function(){window.SWFUpload=function(t){this.initSWFUpload(t)},SWFUpload.prototype.initSWFUpload=function(t){try{this.customSettings={},this.settings=t,this.eventQueue=[],this.movieName="KindEditor_SWFUpload_"+SWFUpload.movieCount++,this.movieElement=null,SWFUpload.instances[this.movieName]=this,this.initSettings(),this.loadFlash(),this.displayDebugInfo()}catch(e){throw delete SWFUpload.instances[this.movieName],e}},SWFUpload.instances={},SWFUpload.movieCount=0,SWFUpload.version="2.2.0 2009-03-25",SWFUpload.QUEUE_ERROR={QUEUE_LIMIT_EXCEEDED:-100,FILE_EXCEEDS_SIZE_LIMIT:-110,ZERO_BYTE_FILE:-120,INVALID_FILETYPE:-130},SWFUpload.UPLOAD_ERROR={HTTP_ERROR:-200,MISSING_UPLOAD_URL:-210,IO_ERROR:-220,SECURITY_ERROR:-230,UPLOAD_LIMIT_EXCEEDED:-240,UPLOAD_FAILED:-250,SPECIFIED_FILE_ID_NOT_FOUND:-260,FILE_VALIDATION_FAILED:-270,FILE_CANCELLED:-280,UPLOAD_STOPPED:-290},SWFUpload.FILE_STATUS={QUEUED:-1,IN_PROGRESS:-2,ERROR:-3,COMPLETE:-4,CANCELLED:-5},SWFUpload.BUTTON_ACTION={SELECT_FILE:-100,SELECT_FILES:-110,START_UPLOAD:-120},SWFUpload.CURSOR={ARROW:-1,HAND:-2},SWFUpload.WINDOW_MODE={WINDOW:"window",TRANSPARENT:"transparent",OPAQUE:"opaque"},SWFUpload.completeURL=function(t){if("string"!==typeof t||t.match(/^https?:\/\//i)||t.match(/^\//))return t;window.location.protocol,window.location.hostname,window.location.port&&window.location.port;var e=window.location.pathname.lastIndexOf("/");return path=e<=0?"/":window.location.pathname.substr(0,e)+"/",path+t},SWFUpload.prototype.initSettings=function(){this.ensureDefault=function(t,e){this.settings[t]=void 0==this.settings[t]?e:this.settings[t]},this.ensureDefault("upload_url",""),this.ensureDefault("preserve_relative_urls",!1),this.ensureDefault("file_post_name","Filedata"),this.ensureDefault("post_params",{}),this.ensureDefault("use_query_string",!1),this.ensureDefault("requeue_on_error",!1),this.ensureDefault("http_success",[]),this.ensureDefault("assume_success_timeout",0),this.ensureDefault("file_types","*.*"),this.ensureDefault("file_types_description","All Files"),this.ensureDefault("file_size_limit",0),this.ensureDefault("file_upload_limit",0),this.ensureDefault("file_queue_limit",0),this.ensureDefault("flash_url","swfupload.swf"),this.ensureDefault("prevent_swf_caching",!0),this.ensureDefault("button_image_url",""),this.ensureDefault("button_width",1),this.ensureDefault("button_height",1),this.ensureDefault("button_text",""),this.ensureDefault("button_text_style","color: #000000; font-size: 16pt;"),this.ensureDefault("button_text_top_padding",0),this.ensureDefault("button_text_left_padding",0),this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES),this.ensureDefault("button_disabled",!1),this.ensureDefault("button_placeholder_id",""),this.ensureDefault("button_placeholder",null),this.ensureDefault("button_cursor",SWFUpload.CURSOR.ARROW),this.ensureDefault("button_window_mode",SWFUpload.WINDOW_MODE.WINDOW),this.ensureDefault("debug",!1),this.settings.debug_enabled=this.settings.debug,this.settings.return_upload_start_handler=this.returnUploadStart,this.ensureDefault("swfupload_loaded_handler",null),this.ensureDefault("file_dialog_start_handler",null),this.ensureDefault("file_queued_handler",null),this.ensureDefault("file_queue_error_handler",null),this.ensureDefault("file_dialog_complete_handler",null),this.ensureDefault("upload_start_handler",null),this.ensureDefault("upload_progress_handler",null),this.ensureDefault("upload_error_handler",null),this.ensureDefault("upload_success_handler",null),this.ensureDefault("upload_complete_handler",null),this.ensureDefault("debug_handler",this.debugMessage),this.ensureDefault("custom_settings",{}),this.customSettings=this.settings.custom_settings,this.settings.prevent_swf_caching&&(this.settings.flash_url=this.settings.flash_url+(this.settings.flash_url.indexOf("?")<0?"?":"&")+"preventswfcaching="+(new Date).getTime()),this.settings.preserve_relative_urls||(this.settings.upload_url=SWFUpload.completeURL(this.settings.upload_url),this.settings.button_image_url=SWFUpload.completeURL(this.settings.button_image_url)),delete this.ensureDefault},SWFUpload.prototype.loadFlash=function(){var t,e;if(null!==document.getElementById(this.movieName))throw"ID "+this.movieName+" is already in use. The Flash Object could not be added";if(t=document.getElementById(this.settings.button_placeholder_id)||this.settings.button_placeholder,void 0==t)throw"Could not find the placeholder element: "+this.settings.button_placeholder_id;e=document.createElement("div"),e.innerHTML=this.getFlashHTML(),t.parentNode.replaceChild(e.firstChild,t),void 0==window[this.movieName]&&(window[this.movieName]=this.getMovieElement())},SWFUpload.prototype.getFlashHTML=function(){var t="";return KindEditor.IE&&KindEditor.V>8&&(t=' classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'),['<object id="',this.movieName,'"'+t+' type="application/x-shockwave-flash" data="',this.settings.flash_url,'" width="',this.settings.button_width,'" height="',this.settings.button_height,'" class="swfupload">','<param name="wmode" value="',this.settings.button_window_mode,'" />','<param name="movie" value="',this.settings.flash_url,'" />','<param name="quality" value="high" />','<param name="menu" value="false" />','<param name="allowScriptAccess" value="always" />','<param name="flashvars" value="'+this.getFlashVars()+'" />',"</object>"].join("")},SWFUpload.prototype.getFlashVars=function(){var t=this.buildParamString(),e=this.settings.http_success.join(",");return["movieName=",encodeURIComponent(this.movieName),"&amp;uploadURL=",encodeURIComponent(this.settings.upload_url),"&amp;useQueryString=",encodeURIComponent(this.settings.use_query_string),"&amp;requeueOnError=",encodeURIComponent(this.settings.requeue_on_error),"&amp;httpSuccess=",encodeURIComponent(e),"&amp;assumeSuccessTimeout=",encodeURIComponent(this.settings.assume_success_timeout),"&amp;params=",encodeURIComponent(t),"&amp;filePostName=",encodeURIComponent(this.settings.file_post_name),"&amp;fileTypes=",encodeURIComponent(this.settings.file_types),"&amp;fileTypesDescription=",encodeURIComponent(this.settings.file_types_description),"&amp;fileSizeLimit=",encodeURIComponent(this.settings.file_size_limit),"&amp;fileUploadLimit=",encodeURIComponent(this.settings.file_upload_limit),"&amp;fileQueueLimit=",encodeURIComponent(this.settings.file_queue_limit),"&amp;debugEnabled=",encodeURIComponent(this.settings.debug_enabled),"&amp;buttonImageURL=",encodeURIComponent(this.settings.button_image_url),"&amp;buttonWidth=",encodeURIComponent(this.settings.button_width),"&amp;buttonHeight=",encodeURIComponent(this.settings.button_height),"&amp;buttonText=",encodeURIComponent(this.settings.button_text),"&amp;buttonTextTopPadding=",encodeURIComponent(this.settings.button_text_top_padding),"&amp;buttonTextLeftPadding=",encodeURIComponent(this.settings.button_text_left_padding),"&amp;buttonTextStyle=",encodeURIComponent(this.settings.button_text_style),"&amp;buttonAction=",encodeURIComponent(this.settings.button_action),"&amp;buttonDisabled=",encodeURIComponent(this.settings.button_disabled),"&amp;buttonCursor=",encodeURIComponent(this.settings.button_cursor)].join("")},SWFUpload.prototype.getMovieElement=function(){if(void 0==this.movieElement&&(this.movieElement=document.getElementById(this.movieName)),null===this.movieElement)throw"Could not find Flash element";return this.movieElement},SWFUpload.prototype.buildParamString=function(){var t=this.settings.post_params,e=[];if("object"===typeof t)for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n.toString())+"="+encodeURIComponent(t[n].toString()));return e.join("&amp;")},SWFUpload.prototype.destroy=function(){try{this.cancelUpload(null,!1);var t=null;if(t=this.getMovieElement(),t&&"unknown"===typeof t.CallFunction){for(var e in t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}try{t.parentNode.removeChild(t)}catch(i){}}return window[this.movieName]=null,SWFUpload.instances[this.movieName]=null,delete SWFUpload.instances[this.movieName],this.movieElement=null,this.settings=null,this.customSettings=null,this.eventQueue=null,this.movieName=null,!0}catch(r){return!1}},SWFUpload.prototype.displayDebugInfo=function(){this.debug(["---SWFUpload Instance Info---\n","Version: ",SWFUpload.version,"\n","Movie Name: ",this.movieName,"\n","Settings:\n","\t","upload_url: ",this.settings.upload_url,"\n","\t","flash_url: ",this.settings.flash_url,"\n","\t","use_query_string: ",this.settings.use_query_string.toString(),"\n","\t","requeue_on_error: ",this.settings.requeue_on_error.toString(),"\n","\t","http_success: ",this.settings.http_success.join(", "),"\n","\t","assume_success_timeout: ",this.settings.assume_success_timeout,"\n","\t","file_post_name: ",this.settings.file_post_name,"\n","\t","post_params: ",this.settings.post_params.toString(),"\n","\t","file_types: ",this.settings.file_types,"\n","\t","file_types_description: ",this.settings.file_types_description,"\n","\t","file_size_limit: ",this.settings.file_size_limit,"\n","\t","file_upload_limit: ",this.settings.file_upload_limit,"\n","\t","file_queue_limit: ",this.settings.file_queue_limit,"\n","\t","debug: ",this.settings.debug.toString(),"\n","\t","prevent_swf_caching: ",this.settings.prevent_swf_caching.toString(),"\n","\t","button_placeholder_id: ",this.settings.button_placeholder_id.toString(),"\n","\t","button_placeholder: ",this.settings.button_placeholder?"Set":"Not Set","\n","\t","button_image_url: ",this.settings.button_image_url.toString(),"\n","\t","button_width: ",this.settings.button_width.toString(),"\n","\t","button_height: ",this.settings.button_height.toString(),"\n","\t","button_text: ",this.settings.button_text.toString(),"\n","\t","button_text_style: ",this.settings.button_text_style.toString(),"\n","\t","button_text_top_padding: ",this.settings.button_text_top_padding.toString(),"\n","\t","button_text_left_padding: ",this.settings.button_text_left_padding.toString(),"\n","\t","button_action: ",this.settings.button_action.toString(),"\n","\t","button_disabled: ",this.settings.button_disabled.toString(),"\n","\t","custom_settings: ",this.settings.custom_settings.toString(),"\n","Event Handlers:\n","\t","swfupload_loaded_handler assigned: ",("function"===typeof this.settings.swfupload_loaded_handler).toString(),"\n","\t","file_dialog_start_handler assigned: ",("function"===typeof this.settings.file_dialog_start_handler).toString(),"\n","\t","file_queued_handler assigned: ",("function"===typeof this.settings.file_queued_handler).toString(),"\n","\t","file_queue_error_handler assigned: ",("function"===typeof this.settings.file_queue_error_handler).toString(),"\n","\t","upload_start_handler assigned: ",("function"===typeof this.settings.upload_start_handler).toString(),"\n","\t","upload_progress_handler assigned: ",("function"===typeof this.settings.upload_progress_handler).toString(),"\n","\t","upload_error_handler assigned: ",("function"===typeof this.settings.upload_error_handler).toString(),"\n","\t","upload_success_handler assigned: ",("function"===typeof this.settings.upload_success_handler).toString(),"\n","\t","upload_complete_handler assigned: ",("function"===typeof this.settings.upload_complete_handler).toString(),"\n","\t","debug_handler assigned: ",("function"===typeof this.settings.debug_handler).toString(),"\n"].join(""))},SWFUpload.prototype.addSetting=function(t,e,n){return this.settings[t]=void 0==e?n:e},SWFUpload.prototype.getSetting=function(t){return void 0!=this.settings[t]?this.settings[t]:""},SWFUpload.prototype.callFlash=function(functionName,argumentArray){argumentArray=argumentArray||[];var movieElement=this.getMovieElement(),returnValue,returnString;try{returnString=movieElement.CallFunction('<invoke name="'+functionName+'" returntype="javascript">'+__flash__argumentsToXML(argumentArray,0)+"</invoke>"),returnValue=eval(returnString)}catch(ex){throw"Call to "+functionName+" failed"}return void 0!=returnValue&&"object"===typeof returnValue.post&&(returnValue=this.unescapeFilePostParams(returnValue)),returnValue},SWFUpload.prototype.selectFile=function(){this.callFlash("SelectFile")},SWFUpload.prototype.selectFiles=function(){this.callFlash("SelectFiles")},SWFUpload.prototype.startUpload=function(t){this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelUpload=function(t,e){!1!==e&&(e=!0),this.callFlash("CancelUpload",[t,e])},SWFUpload.prototype.stopUpload=function(){this.callFlash("StopUpload")},SWFUpload.prototype.getStats=function(){return this.callFlash("GetStats")},SWFUpload.prototype.setStats=function(t){this.callFlash("SetStats",[t])},SWFUpload.prototype.getFile=function(t){return"number"===typeof t?this.callFlash("GetFileByIndex",[t]):this.callFlash("GetFile",[t])},SWFUpload.prototype.addFileParam=function(t,e,n){return this.callFlash("AddFileParam",[t,e,n])},SWFUpload.prototype.removeFileParam=function(t,e){this.callFlash("RemoveFileParam",[t,e])},SWFUpload.prototype.setUploadURL=function(t){this.settings.upload_url=t.toString(),this.callFlash("SetUploadURL",[t])},SWFUpload.prototype.setPostParams=function(t){this.settings.post_params=t,this.callFlash("SetPostParams",[t])},SWFUpload.prototype.addPostParam=function(t,e){this.settings.post_params[t]=e,this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.removePostParam=function(t){delete this.settings.post_params[t],this.callFlash("SetPostParams",[this.settings.post_params])},SWFUpload.prototype.setFileTypes=function(t,e){this.settings.file_types=t,this.settings.file_types_description=e,this.callFlash("SetFileTypes",[t,e])},SWFUpload.prototype.setFileSizeLimit=function(t){this.settings.file_size_limit=t,this.callFlash("SetFileSizeLimit",[t])},SWFUpload.prototype.setFileUploadLimit=function(t){this.settings.file_upload_limit=t,this.callFlash("SetFileUploadLimit",[t])},SWFUpload.prototype.setFileQueueLimit=function(t){this.settings.file_queue_limit=t,this.callFlash("SetFileQueueLimit",[t])},SWFUpload.prototype.setFilePostName=function(t){this.settings.file_post_name=t,this.callFlash("SetFilePostName",[t])},SWFUpload.prototype.setUseQueryString=function(t){this.settings.use_query_string=t,this.callFlash("SetUseQueryString",[t])},SWFUpload.prototype.setRequeueOnError=function(t){this.settings.requeue_on_error=t,this.callFlash("SetRequeueOnError",[t])},SWFUpload.prototype.setHTTPSuccess=function(t){"string"===typeof t&&(t=t.replace(" ","").split(",")),this.settings.http_success=t,this.callFlash("SetHTTPSuccess",[t])},SWFUpload.prototype.setAssumeSuccessTimeout=function(t){this.settings.assume_success_timeout=t,this.callFlash("SetAssumeSuccessTimeout",[t])},SWFUpload.prototype.setDebugEnabled=function(t){this.settings.debug_enabled=t,this.callFlash("SetDebugEnabled",[t])},SWFUpload.prototype.setButtonImageURL=function(t){void 0==t&&(t=""),this.settings.button_image_url=t,this.callFlash("SetButtonImageURL",[t])},SWFUpload.prototype.setButtonDimensions=function(t,e){this.settings.button_width=t,this.settings.button_height=e;var n=this.getMovieElement();void 0!=n&&(n.style.width=t+"px",n.style.height=e+"px"),this.callFlash("SetButtonDimensions",[t,e])},SWFUpload.prototype.setButtonText=function(t){this.settings.button_text=t,this.callFlash("SetButtonText",[t])},SWFUpload.prototype.setButtonTextPadding=function(t,e){this.settings.button_text_top_padding=e,this.settings.button_text_left_padding=t,this.callFlash("SetButtonTextPadding",[t,e])},SWFUpload.prototype.setButtonTextStyle=function(t){this.settings.button_text_style=t,this.callFlash("SetButtonTextStyle",[t])},SWFUpload.prototype.setButtonDisabled=function(t){this.settings.button_disabled=t,this.callFlash("SetButtonDisabled",[t])},SWFUpload.prototype.setButtonAction=function(t){this.settings.button_action=t,this.callFlash("SetButtonAction",[t])},SWFUpload.prototype.setButtonCursor=function(t){this.settings.button_cursor=t,this.callFlash("SetButtonCursor",[t])},SWFUpload.prototype.queueEvent=function(t,e){void 0==e?e=[]:e instanceof Array||(e=[e]);var n=this;if("function"===typeof this.settings[t])this.eventQueue.push((function(){this.settings[t].apply(this,e)})),setTimeout((function(){n.executeNextEvent()}),0);else if(null!==this.settings[t])throw"Event handler "+t+" is unknown or is not a function"},SWFUpload.prototype.executeNextEvent=function(){var t=this.eventQueue?this.eventQueue.shift():null;"function"===typeof t&&t.apply(this)},SWFUpload.prototype.unescapeFilePostParams=function(t){var e,n=/[$]([0-9a-f]{4})/i,i={};if(void 0!=t){for(var r in t.post)if(t.post.hasOwnProperty(r)){var o;e=r;while(null!==(o=n.exec(e)))e=e.replace(o[0],String.fromCharCode(parseInt("0x"+o[1],16)));i[e]=t.post[r]}t.post=i}return t},SWFUpload.prototype.testExternalInterface=function(){try{return this.callFlash("TestExternalInterface")}catch(t){return!1}},SWFUpload.prototype.flashReady=function(){var t=this.getMovieElement();t?(this.cleanUp(t),this.queueEvent("swfupload_loaded_handler")):this.debug("Flash called back ready but the flash movie can't be found.")},SWFUpload.prototype.cleanUp=function(t){try{if(this.movieElement&&"unknown"===typeof t.CallFunction)for(var e in this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"),t)try{"function"===typeof t[e]&&(t[e]=null)}catch(n){}}catch(i){}window["__flash__removeCallback"]=function(t,e){try{t&&(t[e]=null)}catch(n){}}},SWFUpload.prototype.fileDialogStart=function(){this.queueEvent("file_dialog_start_handler")},SWFUpload.prototype.fileQueued=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("file_queued_handler",t)},SWFUpload.prototype.fileQueueError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("file_queue_error_handler",[t,e,n])},SWFUpload.prototype.fileDialogComplete=function(t,e,n){this.queueEvent("file_dialog_complete_handler",[t,e,n])},SWFUpload.prototype.uploadStart=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("return_upload_start_handler",t)},SWFUpload.prototype.returnUploadStart=function(t){var e;if("function"===typeof this.settings.upload_start_handler)t=this.unescapeFilePostParams(t),e=this.settings.upload_start_handler.call(this,t);else if(void 0!=this.settings.upload_start_handler)throw"upload_start_handler must be a function";void 0===e&&(e=!0),e=!!e,this.callFlash("ReturnUploadStart",[e])},SWFUpload.prototype.uploadProgress=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_progress_handler",[t,e,n])},SWFUpload.prototype.uploadError=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_error_handler",[t,e,n])},SWFUpload.prototype.uploadSuccess=function(t,e,n){t=this.unescapeFilePostParams(t),this.queueEvent("upload_success_handler",[t,e,n])},SWFUpload.prototype.uploadComplete=function(t){t=this.unescapeFilePostParams(t),this.queueEvent("upload_complete_handler",t)},SWFUpload.prototype.debug=function(t){this.queueEvent("debug_handler",t)},SWFUpload.prototype.debugMessage=function(t){if(this.settings.debug){var e,n=[];if("object"===typeof t&&"string"===typeof t.name&&"string"===typeof t.message){for(var i in t)t.hasOwnProperty(i)&&n.push(i+": "+t[i]);e=n.join("\n")||"",n=e.split("\n"),e="EXCEPTION: "+n.join("\nEXCEPTION: "),SWFUpload.Console.writeLine(e)}else SWFUpload.Console.writeLine(t)}},SWFUpload.Console={},SWFUpload.Console.writeLine=function(t){var e,n;try{e=document.getElementById("SWFUpload_Console"),e||(n=document.createElement("form"),document.getElementsByTagName("body")[0].appendChild(n),e=document.createElement("textarea"),e.id="SWFUpload_Console",e.style.fontFamily="monospace",e.setAttribute("wrap","off"),e.wrap="off",e.style.overflow="auto",e.style.width="700px",e.style.height="350px",e.style.margin="5px",n.appendChild(e)),e.value+=t+"\n",e.scrollTop=e.scrollHeight-e.clientHeight}catch(i){alert("Exception: "+i.name+" Message: "+i.message)}}}(),function(){"function"===typeof SWFUpload&&(SWFUpload.queue={},SWFUpload.prototype.initSettings=function(t){return function(){"function"===typeof t&&t.call(this),this.queueSettings={},this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0,this.queueSettings.user_upload_complete_handler=this.settings.upload_complete_handler,this.queueSettings.user_upload_start_handler=this.settings.upload_start_handler,this.settings.upload_complete_handler=SWFUpload.queue.uploadCompleteHandler,this.settings.upload_start_handler=SWFUpload.queue.uploadStartHandler,this.settings.queue_complete_handler=this.settings.queue_complete_handler||null}}(SWFUpload.prototype.initSettings),SWFUpload.prototype.startUpload=function(t){this.queueSettings.queue_cancelled_flag=!1,this.callFlash("StartUpload",[t])},SWFUpload.prototype.cancelQueue=function(){this.queueSettings.queue_cancelled_flag=!0,this.stopUpload();var t=this.getStats();while(t.files_queued>0)this.cancelUpload(),t=this.getStats()},SWFUpload.queue.uploadStartHandler=function(t){var e;return"function"===typeof this.queueSettings.user_upload_start_handler&&(e=this.queueSettings.user_upload_start_handler.call(this,t)),e=!1!==e,this.queueSettings.queue_cancelled_flag=!e,e},SWFUpload.queue.uploadCompleteHandler=function(t){var e,n=this.queueSettings.user_upload_complete_handler;if(t.filestatus===SWFUpload.FILE_STATUS.COMPLETE&&this.queueSettings.queue_upload_count++,e="function"===typeof n?!1!==n.call(this,t):t.filestatus!==SWFUpload.FILE_STATUS.QUEUED,e){var i=this.getStats();i.files_queued>0&&!1===this.queueSettings.queue_cancelled_flag?this.startUpload():!1===this.queueSettings.queue_cancelled_flag?(this.queueEvent("queue_complete_handler",[this.queueSettings.queue_upload_count]),this.queueSettings.queue_upload_count=0):(this.queueSettings.queue_cancelled_flag=!1,this.queueSettings.queue_upload_count=0)}})}(),KindEditor.plugin("pagebreak",(function(t){var e=this,n="pagebreak",i=t.undef(e.pagebreakHtml,'<hr style="page-break-after: always;" class="ke-pagebreak" />');e.clickToolbar(n,(function(){var n=e.cmd,r=n.range;e.focus();var o="br"==e.newlineTag||t.WEBKIT?"":'<span id="__kindeditor_tail_tag__"></span>';if(e.insertHtml(i+o),""!==o){var a=t("#__kindeditor_tail_tag__",e.edit.doc);r.selectNodeContents(a[0]),a.removeAttr("id"),n.select()}}))})),KindEditor.plugin("plainpaste",(function(t){var e=this,n="plainpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><textarea class="ke-textarea" style="width:408px;height:260px;"></textarea></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=a.val();i=t.escape(i),i=i.replace(/ {2}/g," &nbsp;"),i="p"==e.newlineTag?i.replace(/^/,"<p>").replace(/$/,"</p>").replace(/\n/g,"</p><p>"):i.replace(/\n/g,"<br />$&"),e.insertHtml(i).hideDialog().focus()}}}),a=t("textarea",o.div);a[0].focus()}))})),KindEditor.plugin("preview",(function(t){var e=this,n="preview";e.clickToolbar(n,(function(){e.lang(n+".");var i='<div style="padding:10px 20px;"><iframe class="ke-textarea" frameborder="0" style="width:708px;height:400px;"></iframe></div>',r=e.createDialog({name:n,width:750,title:e.lang(n),body:i}),o=t("iframe",r.div),a=t.iframeDoc(o);a.open(),a.write(e.fullHtml()),a.close(),t(a.body).css("background-color","#FFF"),o[0].contentWindow.focus()}))})),KindEditor.plugin("quickformat",(function(t){var e=this,n="quickformat",i=t.toMap("blockquote,center,div,h1,h2,h3,h4,h5,h6,p");function r(t){var e=t.first();while(e&&e.first())e=e.first();return e}e.clickToolbar(n,(function(){e.focus();var n,o=e.edit.doc,a=e.cmd.range,s=t(o.body).first(),l=[],c=[],u=a.createBookmark(!0);while(s){n=s.next();var d=r(s);d&&"img"==d.name||(i[s.name]?(s.html(s.html().replace(/^(\s|&nbsp;| )+/gi,"")),s.css("text-indent","2em")):c.push(s),(!n||i[n.name]||i[s.name]&&!i[n.name])&&(c.length>0&&l.push(c),c=[])),s=n}t.each(l,(function(e,n){var i=t('<p style="text-indent:2em;"></p>',o);n[0].before(i),t.each(n,(function(t,e){i.append(e)}))})),a.moveToBookmark(u),e.addBookmark()}))})),KindEditor.plugin("table",(function(t){var e=this,n="table",i=e.lang(n+"."),r="ke-zeroborder";function o(t,e){e=e.toUpperCase(),t.css("background-color",e),t.css("color","#000000"===e?"#FFFFFF":"#000000"),t.html(e)}var a=[];function s(n,i){function r(){t.each(a,(function(){this.remove()})),a=[],t(document).unbind("click,mousedown",r),n.unbind("click,mousedown",r)}i.bind("click,mousedown",(function(t){t.stopPropagation()})),i.click((function(i){r();var s=t(this),l=s.pos(),c=t.colorpicker({x:l.x,y:l.y+s.height(),z:811214,selectedColor:t(this).html(),colors:e.colorTable,noColor:e.lang("noColor"),shadowMode:e.shadowMode,click:function(t){o(s,t),r()}});a.push(c),t(document).bind("click,mousedown",r),n.bind("click,mousedown",r)}))}function l(t,e,n){for(var i=0,r=0,o=e.cells.length;r<o;r++){if(e.cells[r]==n)break;i+=e.cells[r].rowSpan-1}return n.cellIndex-i}e.plugin.table={prop:function(a){var l,c=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keRows" style="width:90px;">'+i.cells+"</label>",i.rows+' <input type="text" id="keRows" class="ke-input-text ke-input-number" name="rows" value="" maxlength="4" /> &nbsp; ',i.cols+' <input type="text" class="ke-input-text ke-input-number" name="cols" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> &nbsp; ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> &nbsp; ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> &nbsp; ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="kePadding" style="width:90px;">'+i.space+"</label>",i.padding+' <input type="text" id="kePadding" class="ke-input-text ke-input-number" name="padding" value="" maxlength="4" /> &nbsp; ',i.spacing+' <input type="text" class="ke-input-text ke-input-number" name="spacing" value="" maxlength="4" />',"</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",'<select id="keAlign" name="align">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> &nbsp; ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),u=e.cmd.range.createBookmark(),d=e.createDialog({name:n,width:500,title:e.lang(n),body:c,beforeRemove:function(){k.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=p.val(),o=f.val(),a=m.val(),s=g.val(),c=v.val(),d=b.val(),h=_.val(),S=y.val(),D=w.val(),C=x.val(),E=t(k[0]).html()||"",A=t(k[1]).html()||"";if(0==i||!/^\d+$/.test(i))return alert(e.lang("invalidRows")),void p[0].focus();if(0==o||!/^\d+$/.test(o))return alert(e.lang("invalidRows")),void f[0].focus();if(!/^\d*$/.test(a))return alert(e.lang("invalidWidth")),void m[0].focus();if(!/^\d*$/.test(s))return alert(e.lang("invalidHeight")),void g[0].focus();if(!/^\d*$/.test(h))return alert(e.lang("invalidPadding")),void _[0].focus();if(!/^\d*$/.test(S))return alert(e.lang("invalidSpacing")),void y[0].focus();if(!/^\d*$/.test(C))return alert(e.lang("invalidBorder")),void x[0].focus();if(l)return""!==a?l.width(a+c):l.css("width",""),void 0!==l[0].width&&l.removeAttr("width"),""!==s?l.height(s+d):l.css("height",""),void 0!==l[0].height&&l.removeAttr("height"),l.css("background-color",A),void 0!==l[0].bgColor&&l.removeAttr("bgColor"),""!==h?l[0].cellPadding=h:l.removeAttr("cellPadding"),""!==S?l[0].cellSpacing=S:l.removeAttr("cellSpacing"),""!==D?l[0].align=D:l.removeAttr("align"),""!==C?l.attr("border",C):l.removeAttr("border"),""===C||"0"===C?l.addClass(r):l.removeClass(r),""!==E?l.attr("borderColor",E):l.removeAttr("borderColor"),e.hideDialog().focus(),e.cmd.range.moveToBookmark(u),e.cmd.select(),void e.addBookmark();var T="";""!==a&&(T+="width:"+a+c+";"),""!==s&&(T+="height:"+s+d+";"),""!==A&&(T+="background-color:"+A+";");var F="<table";""!==T&&(F+=' style="'+T+'"'),""!==h&&(F+=' cellpadding="'+h+'"'),""!==S&&(F+=' cellspacing="'+S+'"'),""!==D&&(F+=' align="'+D+'"'),""!==C&&(F+=' border="'+C+'"'),""!==C&&"0"!==C||(F+=' class="'+r+'"'),""!==E&&(F+=' bordercolor="'+E+'"'),F+=">";for(var B=0;B<i;B++){F+="<tr>";for(var $=0;$<o;$++)F+="<td>"+(t.IE?"&nbsp;":"<br />")+"</td>";F+="</tr>"}F+="</table>",t.IE||(F+="<br />"),e.insertHtml(F),e.select().hideDialog().focus(),e.addBookmark()}}}),h=d.div,p=t('[name="rows"]',h).val(3),f=t('[name="cols"]',h).val(2),m=t('[name="width"]',h).val(100),g=t('[name="height"]',h),v=t('[name="widthType"]',h),b=t('[name="heightType"]',h),_=t('[name="padding"]',h).val(2),y=t('[name="spacing"]',h).val(0),w=t('[name="align"]',h),x=t('[name="border"]',h).val(1),k=t(".ke-input-color",h);if(s(h,k.eq(0)),s(h,k.eq(1)),o(k.eq(0),"#000000"),o(k.eq(1),""),p[0].focus(),p[0].select(),!a&&(l=e.plugin.getSelectedTable(),l)){p.val(l[0].rows.length),f.val(l[0].rows.length>0?l[0].rows[0].cells.length:0),p.attr("disabled",!0),f.attr("disabled",!0);var S,D=l[0].style.width||l[0].width,C=l[0].style.height||l[0].height;void 0!==D&&(S=/^(\d+)((?:px|%)*)$/.exec(D))?(m.val(S[1]),v.val(S[2])):m.val(""),void 0!==C&&(S=/^(\d+)((?:px|%)*)$/.exec(C))&&(g.val(S[1]),b.val(S[2])),_.val(l[0].cellPadding||""),y.val(l[0].cellSpacing||""),w.val(l[0].align||""),x.val(void 0===l[0].border?"":l[0].border),o(k.eq(0),t.toHex(l.attr("borderColor")||"")),o(k.eq(1),t.toHex(l[0].style.backgroundColor||l[0].bgColor||"")),m[0].focus(),m[0].select()}},cellprop:function(){var r=['<div style="padding:20px;">','<div class="ke-dialog-row">','<label for="keWidth" style="width:90px;">'+i.size+"</label>",i.width+' <input type="text" id="keWidth" class="ke-input-text ke-input-number" name="width" value="" maxlength="4" /> &nbsp; ','<select name="widthType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select> &nbsp; ",i.height+' <input type="text" class="ke-input-text ke-input-number" name="height" value="" maxlength="4" /> &nbsp; ','<select name="heightType">','<option value="%">'+i.percent+"</option>",'<option value="px">'+i.px+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keAlign" style="width:90px;">'+i.align+"</label>",i.textAlign+' <select id="keAlign" name="textAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="left">'+i.alignLeft+"</option>",'<option value="center">'+i.alignCenter+"</option>",'<option value="right">'+i.alignRight+"</option>","</select> ",i.verticalAlign+' <select name="verticalAlign">','<option value="">'+i.alignDefault+"</option>",'<option value="top">'+i.alignTop+"</option>",'<option value="middle">'+i.alignMiddle+"</option>",'<option value="bottom">'+i.alignBottom+"</option>",'<option value="baseline">'+i.alignBaseline+"</option>","</select>","</div>",'<div class="ke-dialog-row">','<label for="keBorder" style="width:90px;">'+i.border+"</label>",i.borderWidth+' <input type="text" id="keBorder" class="ke-input-text ke-input-number" name="border" value="" maxlength="4" /> &nbsp; ',i.borderColor+' <span class="ke-inline-block ke-input-color"></span>',"</div>",'<div class="ke-dialog-row">','<label for="keBgColor" style="width:90px;">'+i.backgroundColor+"</label>",'<span class="ke-inline-block ke-input-color"></span>',"</div>","</div>"].join(""),a=e.cmd.range.createBookmark(),l=e.createDialog({name:n,width:500,title:e.lang("tablecell"),body:r,beforeRemove:function(){_.unbind()},yesBtn:{name:e.lang("yes"),click:function(n){var i=u.val(),r=d.val(),o=h.val(),s=p.val(),l=(f.val(),m.val(),g.val()),c=v.val(),y=b.val(),x=t(_[0]).html()||"",k=t(_[1]).html()||"";return/^\d*$/.test(i)?/^\d*$/.test(r)?/^\d*$/.test(y)?(w.css({width:""!==i?i+o:"",height:""!==r?r+s:"","background-color":k,"text-align":l,"vertical-align":c,"border-width":y,"border-style":""!==y?"solid":"","border-color":x}),e.hideDialog().focus(),e.cmd.range.moveToBookmark(a),e.cmd.select(),void e.addBookmark()):(alert(e.lang("invalidBorder")),void b[0].focus()):(alert(e.lang("invalidHeight")),void d[0].focus()):(alert(e.lang("invalidWidth")),void u[0].focus())}}}),c=l.div,u=t('[name="width"]',c).val(100),d=t('[name="height"]',c),h=t('[name="widthType"]',c),p=t('[name="heightType"]',c),f=t('[name="padding"]',c).val(2),m=t('[name="spacing"]',c).val(0),g=t('[name="textAlign"]',c),v=t('[name="verticalAlign"]',c),b=t('[name="border"]',c).val(1),_=t(".ke-input-color",c);s(c,_.eq(0)),s(c,_.eq(1)),o(_.eq(0),"#000000"),o(_.eq(1),""),u[0].focus(),u[0].select();var y,w=e.plugin.getSelectedCell(),x=w[0].style.width||w[0].width||"",k=w[0].style.height||w[0].height||"";(y=/^(\d+)((?:px|%)*)$/.exec(x))?(u.val(y[1]),h.val(y[2])):u.val(""),(y=/^(\d+)((?:px|%)*)$/.exec(k))&&(d.val(y[1]),p.val(y[2])),g.val(w[0].style.textAlign||""),v.val(w[0].style.verticalAlign||"");var S=w[0].style.borderWidth||"";S&&(S=parseInt(S)),b.val(S),o(_.eq(0),t.toHex(w[0].style.borderColor||"")),o(_.eq(1),t.toHex(w[0].style.backgroundColor||"")),u[0].focus(),u[0].select()},insert:function(){this.prop(!0)},delete:function(){var t=e.plugin.getSelectedTable();e.cmd.range.setStartBefore(t[0]).collapse(!0),e.cmd.select(),t.remove(),e.addBookmark()},colinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=o.cellIndex+n;a+=i.rows[0].cells.length-r.cells.length;for(var s=0,c=i.rows.length;s<c;s++){var u=i.rows[s],d=u.insertCell(a);d.innerHTML=t.IE?"":"<br />",a=l(i,u,d)}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},colinsertleft:function(){this.colinsert(0)},colinsertright:function(){this.colinsert(1)},rowinsert:function(n){var i=e.plugin.getSelectedTable()[0],r=e.plugin.getSelectedRow()[0],o=e.plugin.getSelectedCell()[0],a=r.rowIndex;1===n&&(a=r.rowIndex+(o.rowSpan-1)+n);for(var s=i.insertRow(a),l=0,c=r.cells.length;l<c;l++){r.cells[l].rowSpan>1&&(c-=r.cells[l].rowSpan-1);var u=s.insertCell(l);1===n&&r.cells[l].colSpan>1&&(u.colSpan=r.cells[l].colSpan),u.innerHTML=t.IE?"":"<br />"}for(var d=a;d>=0;d--){var h=i.rows[d].cells;if(h.length>l){for(var p=o.cellIndex;p>=0;p--)h[p].rowSpan>1&&(h[p].rowSpan+=1);break}}e.cmd.range.selectNodeContents(o).collapse(!0),e.cmd.select(),e.addBookmark()},rowinsertabove:function(){this.rowinsert(0)},rowinsertbelow:function(){this.rowinsert(1)},rowmerge:function(){var t=e.plugin.getSelectedTable()[0],n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=n.rowIndex,o=r+i.rowSpan,a=t.rows[o];if(!(t.rows.length<=o)){var s=i.cellIndex;if(!(a.cells.length<=s)){var l=a.cells[s];i.colSpan===l.colSpan&&(i.rowSpan+=l.rowSpan,a.deleteCell(s),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark())}}},colmerge:function(){e.plugin.getSelectedTable()[0];var t=e.plugin.getSelectedRow()[0],n=e.plugin.getSelectedCell()[0],i=(t.rowIndex,n.cellIndex),r=i+1;if(!(t.cells.length<=r)){var o=t.cells[r];n.rowSpan===o.rowSpan&&(n.colSpan+=o.colSpan,t.deleteCell(r),e.cmd.range.selectNodeContents(n).collapse(!0),e.cmd.select(),e.addBookmark())}},rowsplit:function(){var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex;if(1!==r.rowSpan){for(var a=l(n,i,r),s=1,c=r.rowSpan;s<c;s++){var u=n.rows[o+s],d=u.insertCell(a);r.colSpan>1&&(d.colSpan=r.colSpan),d.innerHTML=t.IE?"":"<br />",a=l(n,u,d)}t(r).removeAttr("rowSpan"),e.cmd.range.selectNodeContents(r).collapse(!0),e.cmd.select(),e.addBookmark()}},colsplit:function(){e.plugin.getSelectedTable()[0];var n=e.plugin.getSelectedRow()[0],i=e.plugin.getSelectedCell()[0],r=i.cellIndex;if(1!==i.colSpan){for(var o=1,a=i.colSpan;o<a;o++){var s=n.insertCell(r+o);i.rowSpan>1&&(s.rowSpan=i.rowSpan),s.innerHTML=t.IE?"":"<br />"}t(i).removeAttr("colSpan"),e.cmd.range.selectNodeContents(i).collapse(!0),e.cmd.select(),e.addBookmark()}},coldelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=r.cellIndex,a=0,s=n.rows.length;a<s;a++){var l=n.rows[a],c=l.cells[o];c.colSpan>1?(c.colSpan-=1,1===c.colSpan&&t(c).removeAttr("colSpan")):l.deleteCell(o),c.rowSpan>1&&(a+=c.rowSpan-1)}0===i.cells.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()},rowdelete:function(){for(var n=e.plugin.getSelectedTable()[0],i=e.plugin.getSelectedRow()[0],r=e.plugin.getSelectedCell()[0],o=i.rowIndex,a=r.rowSpan-1;a>=0;a--)n.deleteRow(o+a);0===n.rows.length?(e.cmd.range.setStartBefore(n).collapse(!0),e.cmd.select(),t(n).remove()):e.cmd.selection(!0),e.addBookmark()}},e.clickToolbar(n,e.plugin.table.prop)})),KindEditor.plugin("template",(function(t){var e=this,n="template",i=(e.lang(n+"."),e.pluginsPath+n+"/html/");function r(e){return i+e+"?ver="+encodeURIComponent(t.DEBUG?t.TIME:t.VERSION)}e.clickToolbar(n,(function(){var i=e.lang(n+"."),o=['<div style="padding:10px 20px;">','<div class="ke-header">','<div class="ke-left">',i.selectTemplate+" <select>"];t.each(i.fileList,(function(t,e){o.push('<option value="'+t+'">'+e+"</option>")})),html=[o.join(""),"</select></div>",'<div class="ke-right">','<input type="checkbox" id="keReplaceFlag" name="replaceFlag" value="1" /> <label for="keReplaceFlag">'+i.replaceContent+"</label>","</div>",'<div class="ke-clearfix"></div>',"</div>",'<iframe class="ke-textarea" frameborder="0" style="width:458px;height:260px;background-color:#FFF;"></iframe>',"</div>"].join("");var a=e.createDialog({name:n,width:500,title:e.lang(n),body:html,yesBtn:{name:e.lang("yes"),click:function(n){var i=t.iframeDoc(c);e[l[0].checked?"html":"insertHtml"](i.body.innerHTML).hideDialog().focus()}}}),s=t("select",a.div),l=t('[name="replaceFlag"]',a.div),c=t("iframe",a.div);l[0].checked=!0,c.attr("src",r(s.val())),s.change((function(){c.attr("src",r(this.value))}))}))})),KindEditor.plugin("wordpaste",(function(t){var e=this,n="wordpaste";e.clickToolbar(n,(function(){var i=e.lang(n+"."),r='<div style="padding:10px 20px;"><div style="margin-bottom:10px;">'+i.comment+'</div><iframe class="ke-textarea" frameborder="0" style="width:408px;height:260px;"></iframe></div>',o=e.createDialog({name:n,width:450,title:e.lang(n),body:r,yesBtn:{name:e.lang("yes"),click:function(n){var i=l.body.innerHTML;i=t.clearMsWord(i,e.filterMode?e.htmlTags:t.options.htmlTags),e.insertHtml(i).hideDialog().focus()}}}),a=o.div,s=t("iframe",a),l=t.iframeDoc(s);t.IE||(l.designMode="on"),l.open(),l.write("<!doctype html><html><head><title>WordPaste</title></head>"),l.write('<body style="background-color:#FFF;font-size:12px;margin:2px;">'),t.IE||l.write("<br />"),l.write("</body></html>"),l.close(),t.IE&&(l.body.contentEditable="true"),s[0].contentWindow.focus()}))})),KindEditor.plugin("fixtoolbar",(function(t){var e=this;function n(){var e=t(".ke-toolbar"),n=e.pos().y;t(window).bind("scroll",(function(){"fixed"==e.css("position")?document.body.scrollTop-n<0&&(e.css("position","static"),e.css("top","auto")):e.pos().y-document.body.scrollTop<0&&(e.css("position","fixed"),e.css("top",0))}))}e.fixToolBar&&(e.isCreated?n():e.afterCreate(n))}))},"7a43":function(t,e){function n(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&"undefined"!==typeof t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,i){if(e.isValid(t))return t;try{return n(t)}catch(r){return i}}},"7a77":function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},"7aac":function(t,e,n){"use strict";var i=n("c532");t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,r,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){"use strict";var i=n("1d80"),r=Object;t.exports=function(t){return r(i(t))}},"7ba0":function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){const e=Math.floor(t/8);return 1===(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1===(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},"7bbc":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Base,r=n.WordArray,o=e.algo,a=o.SHA1,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var n=this.cfg,i=s.create(n.hasher,t),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(e).finalize(a);i.reset();for(var p=h.words,f=p.length,m=h,g=1;g<d;g++){m=i.finalize(m),i.reset();for(var v=m.words,b=0;b<f;b++)p[b]^=v[b]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)}}(),t.PBKDF2}))},"7bf0":function(t,e){let n;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){let e=0;while(0!==t)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!==typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return"undefined"!==typeof n},e.toSJIS=function(t){return n(t)}},"7c5c":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function n(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i.apply(this,arguments)}function r(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=r(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function l(t){var e=s(t,"string");return"symbol"===typeof e?e:String(e)}function c(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function u(e){t.defaults=e}t.defaults=c();var d=/[&<>"']/,h=new RegExp(d.source,"g"),p=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,f=new RegExp(p.source,"g"),m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},g=function(t){return m[t]};function v(t,e){if(e){if(d.test(t))return t.replace(h,g)}else if(p.test(t))return t.replace(f,g);return t}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function _(t){return t.replace(b,(function(t,e){return e=e.toLowerCase(),"colon"===e?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""}))}var y=/(^|[^\[])\^/g;function w(t,e){t="string"===typeof t?t:t.source,e=e||"";var n={replace:function(e,i){return i=i.source||i,i=i.replace(y,"$1"),t=t.replace(e,i),n},getRegex:function(){return new RegExp(t,e)}};return n}var x=/[^\w:]/g,k=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(t,e,n){if(t){var i;try{i=decodeURIComponent(_(n)).replace(x,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}e&&!k.test(n)&&(n=T(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var D={},C=/^[^:]+:\/*[^/]*$/,E=/^([^:]+:)[\s\S]*$/,A=/^([^:]+:\/*[^/]*)[\s\S]*$/;function T(t,e){D[" "+t]||(C.test(t)?D[" "+t]=t+"/":D[" "+t]=$(t,"/",!0)),t=D[" "+t];var n=-1===t.indexOf(":");return"//"===e.substring(0,2)?n?e:t.replace(E,"$1")+e:"/"===e.charAt(0)?n?e:t.replace(A,"$1")+e:t+e}var F={exec:function(){}};function B(t,e){var n=t.replace(/\|/g,(function(t,e,n){var i=!1,r=e;while(--r>=0&&"\\"===n[r])i=!i;return i?"|":" |"})),i=n.split(/ \|/),r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>e)i.splice(e);else while(i.length<e)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function $(t,e,n){var i=t.length;if(0===i)return"";var r=0;while(r<i){var o=t.charAt(i-r-1);if(o!==e||n){if(o===e||!n)break;r++}else r++}return t.slice(0,i-r)}function L(t,e){if(-1===t.indexOf(e[1]))return-1;for(var n=t.length,i=0,r=0;r<n;r++)if("\\"===t[r])r++;else if(t[r]===e[0])i++;else if(t[r]===e[1]&&(i--,i<0))return r;return-1}function I(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function M(t,e){if(e<1)return"";var n="";while(e>1)1&e&&(n+=t),e>>=1,t+=t;return n+t}function P(t,e,n,i){var r=e.href,o=e.title?v(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){i.state.inLink=!0;var s={type:"link",raw:n,href:r,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,s}return{type:"image",raw:n,href:r,title:o,text:v(a)}}function N(t,e){var n=t.match(/^(\s+)(?:```)/);if(null===n)return e;var i=n[1];return e.split("\n").map((function(t){var e=t.match(/^\s+/);if(null===e)return t;var n=e[0];return n.length>=i.length?t.slice(i.length):t})).join("\n")}var H=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.space=function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}},n.code=function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:$(n,"\n")}}},n.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],i=N(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:i}}},n.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var i=$(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}},n.blockquote=function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;var r=this.lexer.blockTokens(n);return this.lexer.state.top=i,{type:"blockquote",raw:e[0],tokens:r,text:n}}},n.list=function(t){var e=this.rules.block.list.exec(t);if(e){var n,i,r,o,a,s,l,c,u,d,h,p,f=e[1].trim(),m=f.length>1,g={type:"list",raw:"",ordered:m,start:m?+f.slice(0,-1):"",loose:!1,items:[]};f=m?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=m?f:"[*+-]");var v=new RegExp("^( {0,3}"+f+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(t){if(p=!1,!(e=v.exec(t)))break;if(this.rules.block.hr.test(t))break;if(n=e[0],t=t.substring(n.length),c=e[2].split("\n",1)[0].replace(/^\t+/,(function(t){return" ".repeat(3*t.length)})),u=t.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=e[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=e[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",t=t.substring(u.length+1),p=!0),!p){var b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),_=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");while(t){if(d=t.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(u))break;if(w.test(u))break;if(b.test(u))break;if(_.test(t))break;if(u.search(/[^ ]/)>=o||!u.trim())h+="\n"+u.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(y.test(c))break;if(w.test(c))break;if(_.test(c))break;h+="\n"+u}s||u.trim()||(s=!0),n+=d+"\n",t=t.substring(d.length+1),c=u.slice(o)}}g.loose||(l?g.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(h),i&&(r="[ ] "!==i[0],h=h.replace(/^\[[ xX]\] +/,""))),g.items.push({type:"list_item",raw:n,task:!!i,checked:r,loose:!1,text:h}),g.raw+=n}g.items[g.items.length-1].raw=n.trimRight(),g.items[g.items.length-1].text=h.trimRight(),g.raw=g.raw.trimRight();var x=g.items.length;for(a=0;a<x;a++)if(this.lexer.state.top=!1,g.items[a].tokens=this.lexer.blockTokens(g.items[a].text,[]),!g.loose){var k=g.items[a].tokens.filter((function(t){return"space"===t.type})),S=k.length>0&&k.some((function(t){return/\n.*\n/.test(t.raw)}));g.loose=S}if(g.loose)for(a=0;a<x;a++)g.items[a].loose=!0;return g}},n.html=function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};if(this.options.sanitize){var i=this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]);n.type="paragraph",n.text=i,n.tokens=this.lexer.inline(i)}return n}},n.def=function(t){var e=this.rules.block.def.exec(t);if(e){var n=e[1].toLowerCase().replace(/\s+/g," "),i=e[2]?e[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:r}}},n.table=function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:B(e[1]).map((function(t){return{text:t}})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var i,r,o,a,s=n.align.length;for(i=0;i<s;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(s=n.rows.length,i=0;i<s;i++)n.rows[i]=B(n.rows[i],n.header.length).map((function(t){return{text:t}}));for(s=n.header.length,r=0;r<s;r++)n.header[r].tokens=this.lexer.inline(n.header[r].text);for(s=n.rows.length,r=0;r<s;r++)for(a=n.rows[r],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return n}}},n.lheading=function(t){var e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}},n.paragraph=function(t){var e=this.rules.block.paragraph.exec(t);if(e){var n="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}},n.text=function(t){var e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}},n.escape=function(t){var e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:v(e[1])}},n.tag=function(t){var e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):v(e[0]):e[0]}},n.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=$(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{var r=L(e[2],"()");if(r>-1){var o=0===e[0].indexOf("!")?5:4,a=o+e[1].length+r;e[2]=e[2].substring(0,r),e[0]=e[0].substring(0,a).trim(),e[3]=""}}var s=e[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],l=c[3])}else l=e[3]?e[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),P(e,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},e[0],this.lexer)}},n.reflink=function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(i=e[i.toLowerCase()],!i){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return P(n,i,n[0],this.lexer)}},n.emStrong=function(t,e,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(t);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=i[0].length-1,l=s,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;u.lastIndex=0,e=e.slice(-1*t.length+s);while(null!=(i=u.exec(e)))if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],o)if(a=o.length,i[3]||i[4])l+=a;else if(!((i[5]||i[6])&&s%3)||(s+a)%3){if(l-=a,!(l>0)){a=Math.min(a,a+l+c);var d=t.slice(0,s+i.index+(i[0].length-o.length)+a);if(Math.min(s,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}else c+=a}}},n.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=v(n,!0),{type:"codespan",raw:e[0],text:n}}},n.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},n.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}},n.autolink=function(t,e){var n,i,r=this.rules.inline.autolink.exec(t);if(r)return"@"===r[2]?(n=v(this.options.mangle?e(r[1]):r[1]),i="mailto:"+n):(n=v(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var i,r;if("@"===n[2])i=v(this.options.mangle?e(n[0]):n[0]),r="mailto:"+i;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=v(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},n.inlineText=function(t,e){var n,i=this.rules.inline.text.exec(t);if(i)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):v(i[0]):i[0]:v(this.options.smartypants?e(i[0]):i[0]),{type:"text",raw:i[0],text:n}},e}(),O={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:F,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};O.def=w(O.def).replace("label",O._label).replace("title",O._title).getRegex(),O.bullet=/(?:[*+-]|\d{1,9}[.)])/,O.listItemStart=w(/^( *)(bull) */).replace("bull",O.bullet).getRegex(),O.list=w(O.list).replace(/bull/g,O.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+O.def.source+")").getRegex(),O._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",O._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,O.html=w(O.html,"i").replace("comment",O._comment).replace("tag",O._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),O.paragraph=w(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O._tag).getRegex(),O.blockquote=w(O.blockquote).replace("paragraph",O.paragraph).getRegex(),O.normal=i({},O),O.gfm=i({},O.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),O.gfm.table=w(O.gfm.table).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O._tag).getRegex(),O.gfm.paragraph=w(O._paragraph).replace("hr",O.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",O.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",O._tag).getRegex(),O.pedantic=i({},O.normal,{html:w("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",O._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:F,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:w(O.normal._paragraph).replace("hr",O.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",O.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var R={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:F,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:F,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function z(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function U(t){var e,n,i="",r=t.length;for(e=0;e<r;e++)n=t.charCodeAt(e),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}R._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",R.punctuation=w(R.punctuation).replace(/punctuation/g,R._punctuation).getRegex(),R.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,R.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,R._comment=w(O._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),R.emStrong.lDelim=w(R.emStrong.lDelim).replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimAst=w(R.emStrong.rDelimAst,"g").replace(/punct/g,R._punctuation).getRegex(),R.emStrong.rDelimUnd=w(R.emStrong.rDelimUnd,"g").replace(/punct/g,R._punctuation).getRegex(),R._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,R._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,R._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,R.autolink=w(R.autolink).replace("scheme",R._scheme).replace("email",R._email).getRegex(),R._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,R.tag=w(R.tag).replace("comment",R._comment).replace("attribute",R._attribute).getRegex(),R._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,R._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,R._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,R.link=w(R.link).replace("label",R._label).replace("href",R._href).replace("title",R._title).getRegex(),R.reflink=w(R.reflink).replace("label",R._label).replace("ref",O._label).getRegex(),R.nolink=w(R.nolink).replace("ref",O._label).getRegex(),R.reflinkSearch=w(R.reflinkSearch,"g").replace("reflink",R.reflink).replace("nolink",R.nolink).getRegex(),R.normal=i({},R),R.pedantic=i({},R.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:w(/^!?\[(label)\]\((.*?)\)/).replace("label",R._label).getRegex(),reflink:w(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",R._label).getRegex()}),R.gfm=i({},R.normal,{escape:w(R.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),R.gfm.url=w(R.gfm.url,"i").replace("email",R.gfm._extended_email).getRegex(),R.breaks=i({},R.gfm,{br:w(R.br).replace("{2,}","*").getRegex(),text:w(R.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.defaults,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:O.normal,inline:R.normal};this.options.pedantic?(n.block=O.pedantic,n.inline=R.pedantic):this.options.gfm&&(n.block=O.gfm,this.options.breaks?n.inline=R.breaks:n.inline=R.gfm),this.tokenizer.rules=n}e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.lexInline=function(t,n){var i=new e(n);return i.inlineTokens(t)};var i=e.prototype;return i.lex=function(t){var e;t=t.replace(/\r\n|\r/g,"\n"),this.blockTokens(t,this.tokens);while(e=this.inlineQueue.shift())this.inlineTokens(e.src,e.tokens);return this.tokens},i.blockTokens=function(t,e){var n,i,r,o,a=this;void 0===e&&(e=[]),t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,(function(t,e,n){return e+" ".repeat(n.length)}));while(t)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(i){return!!(n=i.call({lexer:a},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),1===n.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(n);else if(n=this.tokenizer.code(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?e.push(n):(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.list(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.html(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.def(t))t=t.substring(n.raw.length),i=e[e.length-1],!i||"paragraph"!==i.type&&"text"!==i.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(i.raw+="\n"+n.raw,i.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text);else if(n=this.tokenizer.table(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.lheading(t))t=t.substring(n.raw.length),e.push(n);else if(r=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var e=1/0,n=t.slice(1),i=void 0;a.options.extensions.startBlock.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),this.state.top&&(n=this.tokenizer.paragraph(r)))i=e[e.length-1],o&&"paragraph"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n),o=r.length!==t.length,t=t.substring(n.raw.length);else if(n=this.tokenizer.text(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===i.type?(i.raw+="\n"+n.raw,i.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):e.push(n);else if(t){var s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,e},i.inline=function(t,e){return void 0===e&&(e=[]),this.inlineQueue.push({src:t,tokens:e}),e},i.inlineTokens=function(t,e){var n,i,r,o=this;void 0===e&&(e=[]);var a,s,l,c=t;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)while(null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c)))u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+M("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,a.index)+"["+M("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,a.index+a[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;while(t)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(i){return!!(n=i.call({lexer:o},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)}))))if(n=this.tokenizer.escape(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.tag(t))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.link(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(n.raw.length),i=e[e.length-1],i&&"text"===n.type&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(n=this.tokenizer.emStrong(t,c,l))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.codespan(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.br(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.del(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.autolink(t,U))t=t.substring(n.raw.length),e.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(t,U))){if(r=t,this.options.extensions&&this.options.extensions.startInline&&function(){var e=1/0,n=t.slice(1),i=void 0;o.options.extensions.startInline.forEach((function(t){i=t.call({lexer:this},n),"number"===typeof i&&i>=0&&(e=Math.min(e,i))})),e<1/0&&e>=0&&(r=t.substring(0,e+1))}(),n=this.tokenizer.inlineText(r,z))t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,i=e[e.length-1],i&&"text"===i.type?(i.raw+=n.raw,i.text+=n.text):e.push(n);else if(t){var d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else t=t.substring(n.raw.length),e.push(n);return e},n(e,null,[{key:"rules",get:function(){return{block:O,inline:R}}}]),e}(),W=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.code=function(t,e,n){var i=(e||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(t,i);null!=r&&r!==t&&(n=!0,t=r)}return t=t.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+v(i)+'">'+(n?t:v(t,!0))+"</code></pre>\n":"<pre><code>"+(n?t:v(t,!0))+"</code></pre>\n"},n.blockquote=function(t){return"<blockquote>\n"+t+"</blockquote>\n"},n.html=function(t){return t},n.heading=function(t,e,n,i){if(this.options.headerIds){var r=this.options.headerPrefix+i.slug(n);return"<h"+e+' id="'+r+'">'+t+"</h"+e+">\n"}return"<h"+e+">"+t+"</h"+e+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(t,e,n){var i=e?"ol":"ul",r=e&&1!==n?' start="'+n+'"':"";return"<"+i+r+">\n"+t+"</"+i+">\n"},n.listitem=function(t){return"<li>"+t+"</li>\n"},n.checkbox=function(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(t){return"<p>"+t+"</p>\n"},n.table=function(t,e){return e&&(e="<tbody>"+e+"</tbody>"),"<table>\n<thead>\n"+t+"</thead>\n"+e+"</table>\n"},n.tablerow=function(t){return"<tr>\n"+t+"</tr>\n"},n.tablecell=function(t,e){var n=e.header?"th":"td",i=e.align?"<"+n+' align="'+e.align+'">':"<"+n+">";return i+t+"</"+n+">\n"},n.strong=function(t){return"<strong>"+t+"</strong>"},n.em=function(t){return"<em>"+t+"</em>"},n.codespan=function(t){return"<code>"+t+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(t){return"<del>"+t+"</del>"},n.link=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<a href="'+t+'"';return e&&(i+=' title="'+e+'"'),i+=">"+n+"</a>",i},n.image=function(t,e,n){if(t=S(this.options.sanitize,this.options.baseUrl,t),null===t)return n;var i='<img src="'+t+'" alt="'+n+'"';return e&&(i+=' title="'+e+'"'),i+=this.options.xhtml?"/>":">",i},n.text=function(t){return t},e}(),j=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,n){return""+n},e.image=function(t,e,n){return""+n},e.br=function(){return""},t}(),V=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var n=t,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[t];do{i++,n=t+"-"+i}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=i,this.seen[n]=0),n},e.slug=function(t,e){void 0===e&&(e={});var n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)},t}(),q=function(){function e(e){this.options=e||t.defaults,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new j,this.slugger=new V}e.parse=function(t,n){var i=new e(n);return i.parse(t)},e.parseInline=function(t,n){var i=new e(n);return i.parseInline(t)};var n=e.prototype;return n.parse=function(t,e){void 0===e&&(e=!0);var n,i,r,o,a,s,l,c,u,d,h,p,f,m,g,v,b,y,w,x="",k=t.length;for(n=0;n<k;n++)if(d=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(w=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))x+=w||"";else switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,_(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,i=0;i<o;i++){for(s=d.rows[i],l="",a=s.length,r=0;r<a;r++)l+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:d.align[r]});u+=this.renderer.tablerow(l)}x+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,p=d.start,f=d.loose,o=d.items.length,u="",i=0;i<o;i++)g=d.items[i],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);x+=this.renderer.list(u,h,p);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<k&&"text"===t[n+1].type)d=t[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);x+=e?this.renderer.paragraph(u):u;continue;default:var S='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(S);throw new Error(S)}return x},n.parseInline=function(t,e){e=e||this.renderer;var n,i,r,o="",a=t.length;for(n=0;n<a;n++)if(i=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(r=this.options.extensions.renderers[i.type].call({parser:this},i),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)))o+=r||"";else switch(i.type){case"escape":o+=e.text(i.text);break;case"html":o+=e.html(i.text);break;case"link":o+=e.link(i.href,i.title,this.parseInline(i.tokens,e));break;case"image":o+=e.image(i.href,i.title,i.text);break;case"strong":o+=e.strong(this.parseInline(i.tokens,e));break;case"em":o+=e.em(this.parseInline(i.tokens,e));break;case"codespan":o+=e.codespan(i.text);break;case"br":o+=e.br();break;case"del":o+=e.del(this.parseInline(i.tokens,e));break;case"text":o+=e.text(i.text);break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return o},e}(),Y=function(){function e(e){this.options=e||t.defaults}var n=e.prototype;return n.preprocess=function(t){return t},n.postprocess=function(t){return t},e}();function X(t,e,n){return function(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t){var r="<p>An error occurred:</p><pre>"+v(i.message+"",!0)+"</pre>";return e?Promise.resolve(r):n?void n(null,r):r}if(e)return Promise.reject(i);if(!n)throw i;n(i)}}function G(t,e){return function(n,r,o){"function"===typeof r&&(o=r,r=null);var a=i({},r);r=i({},Z.defaults,a);var s=X(r.silent,r.async,o);if("undefined"===typeof n||null===n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(I(r),r.hooks&&(r.hooks.options=r),o){var l,c=r.highlight;try{r.hooks&&(n=r.hooks.preprocess(n)),l=t(n,r)}catch(f){return s(f)}var u=function(t){var n;if(!t)try{r.walkTokens&&Z.walkTokens(l,r.walkTokens),n=e(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(f){t=f}return r.highlight=c,t?s(t):o(null,n)};if(!c||c.length<3)return u();if(delete r.highlight,!l.length)return u();var d=0;return Z.walkTokens(l,(function(t){"code"===t.type&&(d++,setTimeout((function(){c(t.text,t.lang,(function(e,n){if(e)return u(e);null!=n&&n!==t.text&&(t.text=n,t.escaped=!0),d--,0===d&&u()}))}),0))})),void(0===d&&u())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((function(e){return t(e,r)})).then((function(t){return r.walkTokens?Promise.all(Z.walkTokens(t,r.walkTokens)).then((function(){return t})):t})).then((function(t){return e(t,r)})).then((function(t){return r.hooks?r.hooks.postprocess(t):t}))["catch"](s);try{r.hooks&&(n=r.hooks.preprocess(n));var h=t(n,r);r.walkTokens&&Z.walkTokens(h,r.walkTokens);var p=e(h,r);return r.hooks&&(p=r.hooks.postprocess(p)),p}catch(f){return s(f)}}}function Z(t,e,n){return G(K.lex,q.parse)(t,e,n)}Y.passThroughHooks=new Set(["preprocess","postprocess"]),Z.options=Z.setOptions=function(t){return Z.defaults=i({},Z.defaults,t),u(Z.defaults),Z},Z.getDefaults=c,Z.defaults=t.defaults,Z.use=function(){for(var t=Z.defaults.extensions||{renderers:{},childTokens:{}},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){var n=i({},e);if(n.async=Z.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var n=t.renderers[e.name];t.renderers[e.name]=n?function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];var o=e.renderer.apply(this,i);return!1===o&&(o=n.apply(this,i)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer&&function(){var t=Z.defaults.renderer||new W,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.renderer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.renderer)i(r);n.renderer=t}(),e.tokenizer&&function(){var t=Z.defaults.tokenizer||new H,i=function(n){var i=t[n];t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.tokenizer[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.tokenizer)i(r);n.tokenizer=t}(),e.hooks&&function(){var t=Z.defaults.hooks||new Y,i=function(n){var i=t[n];Y.passThroughHooks.has(n)?t[n]=function(r){if(Z.defaults.async)return Promise.resolve(e.hooks[n].call(t,r)).then((function(e){return i.call(t,e)}));var o=e.hooks[n].call(t,r);return i.call(t,o)}:t[n]=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var s=e.hooks[n].apply(t,o);return!1===s&&(s=i.apply(t,o)),s}};for(var r in e.hooks)i(r);n.hooks=t}(),e.walkTokens){var r=Z.defaults.walkTokens;n.walkTokens=function(t){var n=[];return n.push(e.walkTokens.call(this,t)),r&&(n=n.concat(r.call(this,t))),n}}Z.setOptions(n)}))},Z.walkTokens=function(t,e){for(var n,i=[],r=function(){var t=n.value;switch(i=i.concat(e.call(Z,t)),t.type){case"table":for(var r,o=a(t.header);!(r=o()).done;){var s=r.value;i=i.concat(Z.walkTokens(s.tokens,e))}for(var l,c=a(t.rows);!(l=c()).done;)for(var u,d=l.value,h=a(d);!(u=h()).done;){var p=u.value;i=i.concat(Z.walkTokens(p.tokens,e))}break;case"list":i=i.concat(Z.walkTokens(t.items,e));break;default:Z.defaults.extensions&&Z.defaults.extensions.childTokens&&Z.defaults.extensions.childTokens[t.type]?Z.defaults.extensions.childTokens[t.type].forEach((function(n){i=i.concat(Z.walkTokens(t[n],e))})):t.tokens&&(i=i.concat(Z.walkTokens(t.tokens,e)))}},o=a(t);!(n=o()).done;)r();return i},Z.parseInline=G(K.lexInline,q.parseInline),Z.Parser=q,Z.parser=q.parse,Z.Renderer=W,Z.TextRenderer=j,Z.Lexer=K,Z.lexer=K.lex,Z.Tokenizer=H,Z.Slugger=V,Z.Hooks=Y,Z.parse=Z;var Q=Z.options,J=Z.setOptions,tt=Z.use,et=Z.walkTokens,nt=Z.parseInline,it=Z,rt=q.parse,ot=K.lex;t.Hooks=Y,t.Lexer=K,t.Parser=q,t.Renderer=W,t.Slugger=V,t.TextRenderer=j,t.Tokenizer=H,t.getDefaults=c,t.lexer=ot,t.marked=Z,t.options=Q,t.parse=it,t.parseInline=nt,t.parser=rt,t.setOptions=J,t.use=tt,t.walkTokens=et}))},"7daf":function(t,e,n){"use strict";n.r(e),e["default"]='## 选项卡模块\r\n\r\n```\r\n<module :tabs="tabs" @tabChange="">\r\n\t// 通过tabs属性定义标签,页面内容相同仅参数不同时使用\r\n\t// @change 选项卡切换事件\r\n</module>\r\n\r\n<module>\r\n\t// 通过<module-tab>组件定义标签,页面内容不同时使用\r\n\t\r\n\t<module-tab name="选项卡一" @mounted="" @activated="" @deactivated="">\r\n\t\t// @mounted 标签页面首次打开事件\r\n\t\t// @activated 标签页面打开事件\r\n\t\t// @deactivated 标签页面关闭事件\r\n\t</module-tab>\r\n</module>\r\n```'},8009:function(t,e,n){"use strict";n("4ef8")},8177:function(t,e,n){"use strict";n("c2c5")},"81bf":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},"825a":function(t,e,n){"use strict";var i=n("861d"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw o(r(t)+" is not an object")}},"830f":function(t,e,n){"use strict";n("c046")},"83ab":function(t,e,n){"use strict";var i=n("d039");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var i=n("d925"),r=n("e683");t.exports=function(t,e){return t&&!i(e)?r(t,e):e}},8474:function(t,e,n){},"84e8":function(t,e,n){},"861d":function(t,e,n){"use strict";var i=n("1626"),r=n("8ea1"),o=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===o}:function(t){return"object"==typeof t?null!==t:i(t)}},"870b":function(t,e,n){"use strict";n("75c0")},"88a7":function(t,e,n){"use strict";var i=n("cb2d"),r=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,l=s.prototype,c=r(l.append),u=r(l["delete"]),d=r(l.forEach),h=r([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&i(l,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];d(this,(function(t,e){h(i,{key:e,value:t})})),a(e,1);var r,s=o(t),l=o(n),p=0,f=0,m=!1,g=i.length;while(p<g)r=i[p++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<g)r=i[f++],r.key===s&&r.value===l||c(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},8925:function(t,e,n){"use strict";var i=n("e330"),r=n("1626"),o=n("c6cd"),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"89b9":function(t,e,n){},"89e3":function(t,e,n){"use strict";n.r(e),e["default"]='## 多模块\r\n\r\n```\r\n<module title="自适应高度">\r\n\t// 不定义height自适应高度\r\n</module>\r\n\r\n<module title="固定高度" height="200">\r\n\t// 定义height固定高度\r\n</module>\r\n\r\n<module title="自动高度" height="auto">\r\n\t// 定义height为auto根据内容高度变化\r\n</module>\r\n```'},"8ba6":function(t,e,n){"use strict";n("5cb0")},"8bbf":function(t,e){t.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8bd4":function(t,e,n){"use strict";n("146c")},"8cef":function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,n){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,n)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},"8d23":function(t,e,n){const i=n("2732");function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const n=i.mod(e,this.genPoly),r=this.degree-n.length;if(r>0){const t=new Uint8Array(this.degree);return t.set(n,r),t}return n},t.exports=r},"8def":function(t,e,n){"use strict";n("e2ba")},"8df4":function(t,e,n){"use strict";var i=n("7a77");function r(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t,e=new r((function(e){t=e}));return{token:e,cancel:t}},t.exports=r},"8ea1":function(t,e,n){"use strict";var i="object"==typeof document&&document.all,r="undefined"==typeof i&&void 0!==i;t.exports={all:i,IS_HTMLDDA:r}},"8fde":function(t,e,n){"use strict";n.r(e),e["default"]='## 单模块\r\n\r\n```\r\n<module title="标题" sub-title="副标题">\r\n\t<template #head>\r\n\t\t// 头部插槽\r\n\t</template>\r\n\t\r\n\t// 模块内容\r\n\t\r\n\t<template #foot>\r\n\t\t// 底部插槽\r\n\t</template>\r\n\t\r\n\t<template #button>\r\n\t\t// 按钮\r\n\t\t<c-button>按钮一</c-button>\r\n\t\t<c-button>按钮二</c-button>\r\n\t</template>\r\n</module>\r\n```'},"90d8":function(t,e,n){"use strict";var i=n("c65b"),r=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||r(t,"flags")||!o(s,t)?e:i(a,t)}},"90e3":function(t,e,n){"use strict";var i=n("e330"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},"90f9":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 各种列类型\r\n<c-table ref="table">\r\n\t// 拖拽列\r\n\t<c-table-column\r\n\t\ttype="drag"\r\n\t></c-table-column>\r\n\t\r\n\t// 选择列\r\n\t<c-table-column\r\n\t\ttype="selector"\r\n\t></c-table-column>\r\n\t\r\n\t// 展开列\r\n\t<c-table-column\r\n\t\tlabel="展开列"\r\n\t\ttype="expand"\r\n\t></c-table-column>\r\n\t\r\n\t// 排序列\r\n\t<c-table-column\r\n\t\tlabel="排序列"\r\n\t\ttype="sort"\r\n\t></c-table-column>\r\n\t\r\n\t// 操作列\r\n\t<c-table-column\r\n\t\tlabel="操作"\r\n\t\ttype="button"\r\n\t>\r\n\t\t<template #default="{data}">\r\n\t\t\t<c-table-button>按钮</c-table-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n// 其它功能\r\n<c-table ref="table">\r\n\t// 多级表头\r\n\t<c-table-column\r\n\t\tlabel="多级表头"\r\n\t>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头1"\r\n\t\t></c-table-column>\r\n\t\t<c-table-column\r\n\t\t\tlabel="子表头2"\r\n\t\t></c-table-column>\r\n\t</c-table-column>\r\n\r\n\t// 自定义列头内容\r\n\t<c-table-column>\r\n\t\t<template #head>\r\n\t\t\t<c-button>自定义头部</c-button>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 自定义单元格内容\r\n\t<c-table-column>\r\n\t\t<template #default="{data}">\r\n\t\t\t<span>id: {{data.id}}</span>\r\n\t\t</template>\r\n\t</c-table-column>\r\n\r\n\t// 固定合并行列\r\n\t<c-table-column\r\n\t\trow-span="2" // 固定合并行数\r\n\t\tcol-span="2" // 固定合并列数\r\n\t></c-table-column>\r\n\r\n\t// 动态计算合并行列\r\n\t<c-table-column\r\n\t\t:row-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并行数\r\n\t\t:col-span="({data}, list) => {return 1}" // 根据当前行数据data和所有行数据list自行计算合并列数\r\n\t></c-table-column>\r\n\t\r\n\t// 列数据合计\r\n\t<c-table-column\r\n\t\tsummed // 默认使用单元格的内容进行合计\r\n\t\t:summed="({data}) => {return data.num}" // 也可以传入函数返回自定义合计数据\r\n\t>\r\n\t\t// 自定义合计内容,不需要可不写\r\n\t\t<template #summed="{total}">\r\n\t\t\t合计:{{total}}\r\n\t\t</template>\r\n\t</c-table-column>\r\n</c-table>\r\n\r\n\r\n// 设置表格数据,和data属性功能相同\r\nthis.$refs.table.setData([...]);\r\n\r\n// 获取表格数据\r\nthis.$refs.table.getData();\r\n\r\n// 获取全部行对象\r\nthis.$refs.table.getRow();\r\n\r\n// 获取选中行数据\r\nthis.$refs.table.getRow(\'selected\');\r\n\r\n// 获取指定序号行数据\r\nthis.$refs.table.getRow(0);\r\nthis.$refs.table.getRow([0, 1, 2]);\r\n\r\n// 获取符合自定义条件的行数据\r\nthis.$refs.table.getRow(item => {\r\n\treturn true; // 这里返回判断条件\r\n});\r\n\r\n// 插入一行数据\r\nthis.$refs.table.push({});\r\n```\r\n\r\n## 属性配置\r\n\r\n### 表格主体 <c-table\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ndata | Array | - | 单选框组的值,可使用v-model属性绑定变量\r\npaging | Boolean | true | 是否显示分页栏\r\nborder | Boolean | false | 是否显示边框\r\nfixed-width | Boolean | false | 是否固定列宽\r\n@rowClick | Function | - | 行点击事件\r\n\r\n### 表格列 <c-table-column\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\ntype | String | - | 列类型<br>**drag**: 拖拽列<br>**selector**: 选择列<br>**expand**: 展开列<br>**sort**: 排序列<br>**button**: 操作列\r\nfixed | String | - | 是否固定列<br>**left**: 固定在左侧<br>**right**: 固定在右侧\r\nlabel | String | - | 列名\r\nname | String | - | 列数据字段名\r\nwidth | String | 100 | 列宽\r\nrequired | Boolean | false | 显示必填星号\r\nalign-center | Boolean | false | 内容是否居中\r\nrow-span | Number \\| String \\| Function | - | 合并行数\r\ncol-span | Number \\| String \\| Function | - | 合并列数\r\nsummed | Boolean \\| Function | false | 列合计\r\nmultiple | Boolean | true | 选择列是否支持多选\r\nadd-button | Boolean \\| String \\| Function | false | 是否支持展开列添加子级按钮,可传入字符串定义按钮名称\r\nexpand-limit | String | - | 展开列最大展开层级,\r\nbutton-limit | String | 4 | 操作列最大展示按钮数,多余的按钮自动归为更多\r\n@handle | Function | - | 列操作事件(拖拽列拖拽事件、选择列选择事件、展开列展开事件、排序列排序事件)\r\n@add | Function | - | 展开列添加子级事件'},9112:function(t,e,n){"use strict";var i=n("83ab"),r=n("9bf2"),o=n("5c6c");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"924f":function(t,e,n){const i=n("7bf0").getSymbolSize,r=7;e.getPositions=function(t){const e=i(t);return[[0,0],[e-r,0],[0,e-r]]}},"94ca":function(t,e,n){"use strict";var i=n("d039"),r=n("1626"),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"94f8":function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[],l=[];(function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}var i=2,r=0;while(r<64)t(i)&&(r<8&&(s[r]=n(e.pow(i,.5))),l[r]=n(e.pow(i,1/3)),r++),i++})();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|t[e+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var b=s&u^~s&d,_=i&r^i&o^r&o,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=h+w+b+l[p]+c[p],k=y+_;h=d,d=u,u=s,s=a+x|0,a=o,o=r,r=i,i=x+k|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256}))},9573:function(t,e,n){"use strict";n("9e89")},9582:function(t,e,n){const i=n("7bf0"),r=1335,o=21522,a=i.getBCHDigit(r);e.getEncodedBits=function(t,e){const n=t.bit<<3|e;let s=n<<10;while(i.getBCHDigit(s)-a>=0)s^=r<<i.getBCHDigit(s)-a;return(n<<10|s)^o}},9927:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-qrcode></c-qrcode>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 二维码内容\r\nsize | String \\| Number | 300 | 二维码尺寸,包含边距\r\nmargin | String \\| Number | 0 | 边距"},"9abb":function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-tooltip tip="提示信息">\n\t<c-button>按钮</c-button>\n\n\t<template #tip>\n\t\t<p>自定义提示内容</p>\n\t</template>\n</c-tooltip>\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntip | String | - | 提示内容\nwidth | Number \\| String | - | 提示信息宽度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向\ncolor | String | black | 颜色<br>**black**: 黑色<br>**white**: 白色\nz-index | String \\| Number | 9999 | 提示信息层级\nclick-event | Boolean | false | 通过点击事件触发'},"9bf2":function(t,e,n){"use strict";var i=n("83ab"),r=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=u(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return c(t,e,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c9b":function(t,e,n){},"9ca8":function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfcgGiCg4SFhoMBiYqLjI2CjZCRjwFDQkFMPUk7MC4sOQFnoaGJk0OLYmFkAjcqkmiJTgEEBFhgWVplHSmgomekrwFAAR8BV2NbXF0dJ66JPolHVGZfXgMdJbyiv4lKAUZQPzI0GxkdEM0BSThSDDNPHEUTLQ/ZowGTPFEGNRYaTTZTFpBAFyOAhwsHJFBAQsSKiHq+7gF7UeACggQYKihYUiUEOh0rVkRAYQKCgxENQEDcFqmlokm9Ysq0N8llS5gzc0asaRMSTp0yWfb0CQzoTKFDGfFM+vKQU6eBAAA7"},"9d1b":function(t,e,n){"use strict";n.r(e),e["default"]="## 复杂布局\r\n\r\n```\r\n<module>\r\n\t<module-row></module-row>\r\n\t<module-row>\r\n\t\t<module-col></module-col>\r\n\t\t<module-col></module-col>\r\n\t</module-row>\r\n</module>\r\n```"},"9d94":function(t,e,n){const i=n("bbf0"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=i.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=o},"9e89":function(t,e,n){},a04b:function(t,e,n){"use strict";var i=n("c04e"),r=n("d9b5");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},a11b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,n){var i=4*n,r=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(r-1)).concat(t.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},a134:function(t,e,n){},a1d8:function(t,e,n){},a29b:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-link>链接名称</c-link>\r\n<c-link></c-link> // 可不写连接名称,不写则展示链接地址\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色\r\nhref | String | - | 链接地址\r\ntarget | String | - | 赋值_blank新窗口打开"},a40e:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var t=this._key,e=t.words,n=[],i=0;i<56;i++){var r=a[i]-1;n[i]=e[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var u=o[c]=[],d=l[c];for(i=0;i<24;i++)u[i/6|0]|=n[(s[i]-1+d)%28]<<31-i%6,u[4+(i/6|0)]|=n[28+(s[i+24]-1+d)%28]<<31-i%6;u[0]=u[0]<<1|u[0]>>>31;for(i=1;i<7;i++)u[i]=u[i]>>>4*(i-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(i=0;i<16;i++)h[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^r[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}e.DES=r._createHelper(d);var f=o.TripleDES=r.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var n=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),o=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(i.create(n)),this._des2=d.createEncryptor(i.create(r)),this._des3=d.createEncryptor(i.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),t.TripleDES}))},a46c:function(t,e,n){"use strict";n.r(e),e["default"]='## 弹性布局\r\n\r\n```\r\n<c-flex-row margin gap>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n\t<c-flex-col colspan="6">\r\n\t\t// 内容\r\n\t</c-flex-col>\r\n</c-flex-row>\r\n```'},a624:function(t,e,n){"use strict";n("5b48")},a817:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},a898:function(t,e,n){"use strict";n("c7ef")},a8ce:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var o=e[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=t.charCodeAt(r)<<16-r%2*16;return i.create(n,2*e)}};function o(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2){var a=o(e[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>1]|=o(t.charCodeAt(r)<<16-r%2*16);return i.create(n,2*e)}}}(),t.enc.Utf16}))},aa63:function(t,e,n){const i=n("7bf0"),r=n("7a43"),o=n("7ba0"),a=n("577e4"),s=n("d6c0"),l=n("924f"),c=n("7903"),u=n("34fc"),d=n("8d23"),h=n("c8aa"),p=n("9582"),f=n("bbf0"),m=n("befa");function g(t,e){const n=t.size,i=l.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],o=i[r][1];for(let i=-1;i<=7;i++)if(!(e+i<=-1||n<=e+i))for(let r=-1;r<=7;r++)o+r<=-1||n<=o+r||(i>=0&&i<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===i||6===i)||i>=2&&i<=4&&r>=2&&r<=4?t.set(e+i,o+r,!0,!0):t.set(e+i,o+r,!1,!0))}}function v(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2===0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}function b(t,e){const n=s.getPositions(e);for(let i=0;i<n.length;i++){const e=n[i][0],r=n[i][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)-2===n||2===n||-2===i||2===i||0===n&&0===i?t.set(e+n,r+i,!0,!0):t.set(e+n,r+i,!1,!0)}}function _(t,e){const n=t.size,i=h.getEncodedBits(e);let r,o,a;for(let s=0;s<18;s++)r=Math.floor(s/3),o=s%3+n-8-3,a=1===(i>>s&1),t.set(r,o,a,!0),t.set(o,r,a,!0)}function y(t,e,n){const i=t.size,r=p.getEncodedBits(e,n);let o,a;for(o=0;o<15;o++)a=1===(r>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(i-15+o,8,a,!0),o<8?t.set(8,i-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(i-8,8,1,!0)}function w(t,e){const n=t.size;let i=-1,r=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2){6===s&&s--;while(1){for(let n=0;n<2;n++)if(!t.isReserved(r,s-n)){let i=!1;a<e.length&&(i=1===(e[a]>>>o&1)),t.set(r,s-n,i),o--,-1===o&&(a++,o=7)}if(r+=i,r<0||n<=r){r-=i,i=-i;break}}}}function x(t,e,n){const r=new o;n.forEach((function(e){r.put(e.mode.bit,4),r.put(e.getLength(),f.getCharCountIndicator(e.mode,t)),e.write(r)}));const a=i.getSymbolTotalCodewords(t),s=u.getTotalCodewordsCount(t,e),l=8*(a-s);r.getLengthInBits()+4<=l&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);const c=(l-r.getLengthInBits())/8;for(let i=0;i<c;i++)r.put(i%2?17:236,8);return k(r,t,e)}function k(t,e,n){const r=i.getSymbolTotalCodewords(e),o=u.getTotalCodewordsCount(e,n),a=r-o,s=u.getBlocksCount(e,n),l=r%s,c=s-l,h=Math.floor(r/s),p=Math.floor(a/s),f=p+1,m=h-p,g=new d(m);let v=0;const b=new Array(s),_=new Array(s);let y=0;const w=new Uint8Array(t.buffer);for(let i=0;i<s;i++){const t=i<c?p:f;b[i]=w.slice(v,v+t),_[i]=g.encode(b[i]),v+=t,y=Math.max(y,t)}const x=new Uint8Array(r);let k,S,D=0;for(k=0;k<y;k++)for(S=0;S<s;S++)k<b[S].length&&(x[D++]=b[S][k]);for(k=0;k<m;k++)for(S=0;S<s;S++)x[D++]=_[S][k];return x}function S(t,e,n,r){let o;if(Array.isArray(t))o=m.fromArray(t);else{if("string"!==typeof t)throw new Error("Invalid data");{let i=e;if(!i){const e=m.rawSplit(t);i=h.getBestVersionForData(e,n)}o=m.fromString(t,i||40)}}const s=h.getBestVersionForData(o,n);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else e=s;const l=x(e,n,o),u=i.getSymbolSize(e),d=new a(u);return g(d,e),v(d),b(d,e),y(d,n,0),e>=7&&_(d,e),w(d,l),isNaN(r)&&(r=c.getBestMask(d,y.bind(null,d,n))),c.applyMask(r,d),y(d,n,r),{modules:d,version:e,errorCorrectionLevel:n,maskPattern:r,segments:o}}e.create=function(t,e){if("undefined"===typeof t||""===t)throw new Error("No input text");let n,o,a=r.M;return"undefined"!==typeof e&&(a=r.from(e.errorCorrectionLevel,r.M),n=h.from(e.version),o=c.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),S(t,n,a,o)}},aaef:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){
13
13
  /** @preserve
14
14
  * Counter block mode compatible with Dr Brian Gladman fileenc.c
15
15
  * derived from CryptoJS.mode.CTR
16
16
  * Jan Hruby jhruby.web@gmail.com
17
17
  */
18
- return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman}))},ab07:function(t,e,n){},ab1f:function(t,e,n){"use strict";n("50f6")},ab36:function(t,e,n){"use strict";var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},ad2f:function(t,e,n){},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},ad6e:function(t,e,n){"use strict";n("bde4")},aeb0:function(t,e,n){"use strict";var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b035:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-input></c-input>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ntype | String | text | 按钮尺寸<br>**text**: 文本框<br>**password**: 密码框<br>**number**: 数字框<br>**stepper**: 步进器<br>**textarea**: 多行文本\r\nplaceholder | String | - | 提示占位符\r\nmaxlength | Number \\| String | - | 可输入最大字符数\r\ndecimal | Number \\| String | 0 | 数字框小数位数\r\nrange | Number \\| Array | 0 | 数字框数字范围<br>可输入逗号隔开的字符串('0,100')或数组([0, 100])\r\nprepend-text | String | - | 前置文本内容\r\nappend-text | String | - | 后置文本内容\r\nvisible | Boolean | false | 密码框显示密码按钮\r\nstep | Number \\| String | 1 | 步进器精度\r\nstep-controls | String | both | 步进器按钮位置<br>**both**: 两侧<br>**side**: 一侧\r\ndisabled | Boolean | false | 是否禁用输入框\r\nreadonly | Boolean | false | 输入框是否只读\r\nclear | Boolean | false | 是否显示清空按钮\r\nheight-resize | Boolean \\| String | true | 多行文本是否支持调整高度,'auto'表示自动高度\r\n@input | Function | - | 输入事件\r\n@focus | Function | - | 焦点移入事件\r\n@blur | Function | - | 焦点移出事件\r\n@change | Function | - | 内容改变事件\r\n@suggest | Function(value, resolve) | - | 输入建议事件"},b038:function(t,e,n){"use strict";n("db68")},b108:function(t,e,n){},b42e:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"],(i.isBlob(d)||i.isFile(d))&&d.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";h.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},b622:function(t,e,n){"use strict";var i=n("da84"),r=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i.Symbol,u=r("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},b74a:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\r\n<c-detail column="3">\n\t<c-detail-item label="字段名" colspan="2">\n\t\t单独设置占两列\n\t</c-detail-item>\n\t\n\t<c-detail-item label="字段名">\n\t\t内容\n\t</c-detail-item>\n</c-detail>\n```\n\n## 属性配置\r\n\r\n### 详情主体 <c-detail\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ncolumn | String | - | 列数\r\n\r\n### 详情项 <c-detail-item\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\ncolspan | String | 1 | 该项占几列'},b771:function(t,e,n){},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bb56:function(t,e,n){},bbf0:function(t,e,n){const i=n("27a3"),r=n("0425");function o(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return o(t)}catch(i){return n}}},bc3a:function(t,e,n){t.exports=n("cee4")},bd2f:function(t,e,n){"use strict";n("4f25")},bde4:function(t,e,n){},be04:function(t,e,n){},befa:function(t,e,n){const i=n("bbf0"),r=n("dd7e"),o=n("9d94"),a=n("0196"),s=n("2f3a"),l=n("0425"),c=n("7bf0"),u=n("10b0");function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,i.BYTE,t),o=h(l.KANJI,i.KANJI,t)):(r=h(l.BYTE_KANJI,i.BYTE,t),o=[]);const a=e.concat(n,r,o);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function g(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return e}function v(t,e){const n={},r={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<o.length;t++){const a=o[t];n[a]&&n[a].node.mode===c.mode?(r[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][u]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}o=l}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function b(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const i=p(t,c.isKanjiModeEnabled()),r=g(i),o=v(r,n),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},c046:function(t,e,n){},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c0c9:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-select></c-select> // 下拉框\r\n<c-region></c-region> // 地址框\r\n<c-datetime></c-datetime> // 日期框\r\n<c-color></c-color> // 颜色框\r\n<c-transfer></c-transfer> // 穿梭框\r\n```\r\n\r\n## 属性配置\r\n\r\n### 下拉框 <c-select\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 下拉框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 下拉框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\nplaceholder | String | - | 提示占位符\r\noptions | Array | - | 选项数据:[{"name": "选项名", "value": "选项值"}]\r\ndisabled | Boolean | false | 是否禁用下拉框\r\nmultiple | Boolean \\| Object | false | 是否支持多选\r\nmultiple.limit | Number | - | 多选最多可以选的选项数\r\nmultiple.linefeed | Boolean | false | 多选标签是否换行显示\r\nsearch | Boolean \\| Object | false | 是否支持搜索,异步模式下默认开启\r\nsearch.empty | Boolean | true | 异步模式下是否支持空搜索\r\nsearch.add | Boolean | false | 是否支持添加选项\r\nasync | Boolean | false | 异步模式\r\nclear | Boolean | false | 是否显示清空按钮\r\n@change | Function | - | 选项变化事件\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用\r\n@add | Function(keyword, resolve) | - | 添加选项事件\r\n@customEvent | Function(data, resolve) | - | 自定义事件\r\n\r\n### 地址框 <c-region\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 地址框的值,可使用v-model属性绑定变量\r\nprovince-name | String | - | 省份字段名\r\ncity-name | String | - | 城市字段名\r\ncounty-name | String | - | 区县字段名\r\naddress-name | String | - | 详细街道字段名\r\nlevel | String \\| Number | 3 | 地址库级别<br>**1**: 到省级<br>**2**: 到市级<br>**3**: 到区县级<br>**4**: 到详细街道地址\r\n\r\n### 日期框 <c-datetime\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 日期框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\nstart-name | String | - | 开始日期字段名\r\nend-name | String | - | 结束日期字段名\r\nplaceholder | String | - | 提示占位符\r\ntype | String | datetime | 日期类型<br>**datetime**: 日期+时间<br>**date**: 仅日期<br>**time**: 仅时间\r\ntime-accuracy | String | sec | 时间精度<br>**hour**: 到小时<br>**min**: 到分钟<br>**sec**: 到秒\r\ndefault-time | String \\| Array | - | 默认时间\r\nrange | Boolean | - | 是否为范围选择\r\nformat | Boolean | \'yyyy-MM-dd hh:mm:ss\' | 日期格式\r\ndisabled | Boolean | false | 是否禁用日期框\r\n\r\n### 颜色框 <c-color\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 颜色框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\n\r\n### 穿梭框 <c-transfer\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Array | - | 穿梭框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 穿梭框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\ntitle | String \\| Array | 数据 | 穿梭框的标题,传入字符串xx时标题为"全部xx"和"已选xx",也可传入数组:[\'左侧标题\', \'右侧标题\']\r\ndata | Array | - | 所有可选数据:[{"name": "选项名", "value": "选项值"}]\r\nsearch | Boolean \\| Object | false | 搜索功能,异步模式下默认开启\r\nsearch.immediate | Boolean | true | 异步模式下是否立即加载数据\r\nsearch.placeholder | String | - | 搜索框提示信息\r\nasync | Boolean | false | 异步模式\r\nsort | Boolean | false | 是否支持排序\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用'},c15a:function(t,e,n){"use strict";n("fd29")},c198:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],v=t[g],b=257*t[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,p[r]=b<<8|b>>>24,f[r]=b,n?(n=m^t[t[t[v^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,d,h,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e=!0){var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return o(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c21e:function(t,e,n){"use strict";n("bb56")},c2c5:function(t,e,n){},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function d(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===r.call(t)}function g(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&b(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function S(){var t={};function e(e,n){f(t[n])&&f(e)?t[n]=S(t[n],e):f(e)?t[n]=S({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)k(arguments[n],e);return t}function D(t,e,n){return k(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:_,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:k,merge:S,extend:D,trim:w,stripBOM:C}},c600:function(t,e,n){},c65b:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){"use strict";var i=n("e330"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,n){"use strict";var i=n("da84"),r=n("6374"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c6ce:function(t,e,n){},c73d:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("edd0"),a=n("83ab"),s=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(a){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw s("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(d){}},c7c0:function(t,e,n){},c7ef:function(t,e,n){},c8aa:function(t,e,n){const i=n("7bf0"),r=n("34fc"),o=n("7a43"),a=n("bbf0"),s=n("27a3"),l=7973,c=i.getBCHDigit(l);function u(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){let n=0;return t.forEach((function(t){const i=d(t.mode,e);n+=i+t.getBitsLength()})),n}function p(t,n){for(let i=1;i<=40;i++){const r=h(t,i);if(r<=e.getCapacity(i,n,a.MIXED))return i}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,t);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,e){let n;const i=o.from(e,o.M);if(Array.isArray(t)){if(t.length>1)return p(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return u(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-c>=0)e^=l<<i.getBCHDigit(e)-c;return t<<12|e}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){"use strict";var i=n("e330"),r=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(e.length>c)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},ca97:function(t,e,n){"use strict";n("b771")},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cdce:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=l(s);c.Axios=o,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d012:function(t,e,n){"use strict";t.exports={}},d013:function(t,e,n){"use strict";n.r(e),e["default"]='## 栅格布局\r\n\r\n```\r\n<c-grid-row margin gap>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n</c-grid-row>\r\n```'},d039:function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d055:function(t,e,n){const i=n("67dd"),r=n("aa63"),o=n("4146"),a=n("4006");function s(t,e,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=o=void 0):2!==l||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{const a=r.create(n,o);i(t(a,e,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=o=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{const i=r.create(n,o);a(null,t(i,e,o))}catch(u){a(u)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},d066:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},d0f7:function(t,e,n){"use strict";n("a1d8")},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d278:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-window ref="window">\n\t<div>窗口内容</div>\n\n\t<template #beforeButton>\n\t\t自定义内容\n\t</template>\n\t\n\t<template #button>\n\t\t<c-button>按钮名称</c-button>\n\t</template>\n</c-window>\n\nthis.$refs.window.show(follow, position, align) // 显示悬浮窗口,follow:跟随的目标节点,position:跟随位置(top、bottom、left、right),align:对齐方向(start、end)\nthis.$refs.window.hide() // 隐藏悬浮窗口\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntitle | String | - | 悬浮窗口标题\nwidth | Number \\| String | 400 | 悬浮窗口宽度\nheight | Number \\| String | - | 悬浮窗口内容区域高度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向'},d2bb:function(t,e,n){"use strict";var i=n("7282"),r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d2d1:function(t,e,n){},d30d:function(t,e,n){},d359:function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfZgGiCg4SFhoMBiYqLjI2CjZCRjwFnlZUBQ0JBTD1JOzAuLDmJk41Di2JhZAI3KqRoiZaXTgEEBFhgWVplHSmvkUABHwFXY1tcXR0nv5SyAT6JR1RmX14DHSXMjUoBRlA/MjQbGR0QzLJnAUk4UgwzTxxFEy0P2ow8UQY1FhpNNlMLSJxzFiOAhwsHJFBAQsSKCHuLXhS4gCABhgoKllQJMdBSAB0rVkRAYQKCgxENQECMJAlWM3QwnQUoxZLlpJg4L810WdOmy5w4V/ZcdBMoTKFDkSY9xLRpIAA7"},d429:function(t,e,n){"use strict";n.r(e),e["default"]='# 一级标题\n\n> 高亮区域\n\n## 二级标题\n\n正文内容**加粗**\r\n\r\n[链接](#gridOptions)\n\n```\n代码区域\n```\n\n<a id="gridOptions"></a>\n\n表头 | 表头 | 表头\n---- | ---- | ----\n表体 | 表体 | 表体<br>换行'},d525:function(t,e,n){},d6c0:function(t,e,n){const i=n("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7];for(let i=1;i<e-1;i++)o[i]=o[i-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([i[e],i[t]]);return n}},d6d6:function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},d6e6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Hasher,r=e.x64,o=r.Word,a=r.WordArray,s=e.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=r.high,g=r.low,v=o.high,b=o.low,_=a.high,y=a.low,w=s.high,x=s.low,k=l.high,S=l.low,D=d.high,C=d.low,E=h.high,A=h.low,T=p,F=f,B=m,$=g,L=v,I=b,M=_,P=y,N=w,H=x,O=k,R=S,z=D,U=C,K=E,W=A,j=0;j<80;j++){var V,q,Y=u[j];if(j<16)q=Y.high=0|t[e+2*j],V=Y.low=0|t[e+2*j+1];else{var X=u[j-15],G=X.high,Z=X.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,J=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),tt=u[j-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[j-7],at=ot.high,st=ot.low,lt=u[j-16],ct=lt.high,ut=lt.low;V=J+st,q=Q+at+(V>>>0<J>>>0?1:0),V+=rt,q=q+it+(V>>>0<rt>>>0?1:0),V+=ut,q=q+ct+(V>>>0<ut>>>0?1:0),Y.high=q,Y.low=V}var dt=N&O^~N&z,ht=H&R^~H&U,pt=T&B^T&L^B&L,ft=F&$^F&I^$&I,mt=(T>>>28|F<<4)^(T<<30|F>>>2)^(T<<25|F>>>7),gt=(F>>>28|T<<4)^(F<<30|T>>>2)^(F<<25|T>>>7),vt=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),bt=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),_t=c[j],yt=_t.high,wt=_t.low,xt=W+bt,kt=K+vt+(xt>>>0<W>>>0?1:0),St=(xt=xt+ht,kt=kt+dt+(xt>>>0<ht>>>0?1:0),xt=xt+wt,kt=kt+yt+(xt>>>0<wt>>>0?1:0),xt=xt+V,kt=kt+q+(xt>>>0<V>>>0?1:0),gt+ft),Dt=mt+pt+(St>>>0<gt>>>0?1:0);K=z,W=U,z=O,U=R,O=N,R=H,H=P+xt|0,N=M+kt+(H>>>0<P>>>0?1:0)|0,M=L,P=I,L=B,I=$,B=T,$=F,F=xt+St|0,T=kt+Dt+(F>>>0<xt>>>0?1:0)|0}f=i.low=f+F,i.high=p+T+(f>>>0<F>>>0?1:0),g=r.low=g+$,r.high=m+B+(g>>>0<$>>>0?1:0),b=o.low=b+I,o.high=v+L+(b>>>0<I>>>0?1:0),y=a.low=y+P,a.high=_+M+(y>>>0<P>>>0?1:0),x=s.low=x+H,s.high=w+N+(x>>>0<H>>>0?1:0),S=l.low=S+R,l.high=k+O+(S>>>0<R>>>0?1:0),C=d.low=C+U,d.high=D+z+(C>>>0<U>>>0?1:0),A=h.low=A+W,h.high=E+K+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(d),e.HmacSHA512=i._createHmacHelper(d)}(),t.SHA512}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},db68:function(t,e,n){},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dd13:function(t,e,n){},dd7e:function(t,e,n){const i=n("bbf0");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e103:function(t,e,n){"use strict";n("c7c0")},e330:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){"use strict";var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e3ee:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-countdown></c-countdown>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nms | String \\| Number | - | 剩余毫秒数\r\nsec | String \\| Number | - | 剩余秒数\r\ndate | String | - | 结束时间\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色"},e474:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-switch></c-switch>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Any | false | 开关当前的状态值,可使用v-model属性绑定变量\r\nstate-value | Array | [true, false] | 开关的状态值,第0项对于打开状态,第1项对应关闭状态\r\nstate-text | Array | ['开启', '关闭']] | 开关的状态文字,第0项对于打开状态,第1项对应关闭状态\r\nstate-color | Array | ['#00B578', '#eee'] | 开关的状态颜色,第0项对于打开状态,第1项对应关闭状态\r\n@beforeChange | Function(state, next) | - | 开关状态变更前的回调函数<br>**state**: 开关变更前的状态<br>**next**: 继续变更开关状态的方法,不调用则开关状态不变更\r\n@change | Function(state) | - | 开关状态变更后的回调函数<br>**state**: 开关变更后的状态"},e566:function(t,e,n){"use strict";n("d30d")},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=i.apply(null,_);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var k=i("Error"),S=e((function(t,e){var n=d(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,S,i.stack,2),this&&a(x,this)&&u(i,this,S),arguments.length>b&&h(i,arguments[b]),i}));if(S.prototype=x,"Error"!==y?s?s(S,k):l(S,k,{name:!0}):f&&v in w&&(c(S,w,v),c(S,w,"prepareStackTrace")),l(S,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=S}catch(D){}return S}}},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=s.create()})();var p=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var v=h[p];v.high=f,v.low=m}for(p=0;p<5;p++){var b=h[(p+4)%5],_=h[(p+1)%5],y=_.high,w=_.low;for(f=b.high^(y<<1|w>>>31),m=b.low^(w<<1|y>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var k=s.high,S=s.low,D=c[x];D<32?(f=k<<D|S>>>32-D,m=S<<D|k>>>32-D):(f=S<<D-32|k>>>64-D,m=k<<D-32|S>>>64-D);var C=h[u[x]];C.high=f,C.low=m}var E=h[0],A=n[0];E.high=A.high,E.low=A.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var T=h[x],F=h[(p+1)%5+5*g],B=h[(p+2)%5+5*g];s.high=T.high^~F.high&B.high,s.low=T.low^~F.low&B.low}s=n[0];var $=d[l];s.high^=$.high,s.low^=$.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6c5:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 单选框\r\n<c-radio-group>\r\n\t<c-radio value="1">选项一</c-radio>\r\n\t<c-radio value="2">选项二</c-radio>\r\n</c-radio-group>\r\n<c-radio-group :options="[{"name": "选项一", "value": "1"}]"></c-radio-group>\r\n\r\n// 复选框\r\n<c-checkbox-group>\r\n\t<c-checkbox value="1">选项一</c-checkbox>\r\n\t<c-checkbox value="2">选项二</c-checkbox>\r\n</c-checkbox-group>\r\n<c-checkbox-group :options="[{"name": "选项一", "value": "1"}]"></c-checkbox-group>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 单选框组 <c-radio-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 单选框组的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用单选框组下所有单选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用单选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 单选框 <c-radio\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在单选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用单选框\r\n\r\n### 复选框组 <c-checkbox-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 复选框组的值,可输入逗号隔开的字符串(\'1,2\')或数组([1, 2]),可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用复选框组下所有复选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用复选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 复选框 <c-checkbox\\>\r\n```\r\n<c-checkbox\\>组件可在复选框组中使用,也可独立使用\r\n```\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在复选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用复选框\r\n@change | Function | - | 勾选状态改变事件,仅独立使用时可用\r\n@click | Function | - | 复选框点击事件'},e731:function(t,e,n){"use strict";n("ad2f")},e84a:function(t,e,n){},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},e8b5:function(t,e,n){"use strict";var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},ed5e:function(t,e,n){},edd0:function(t,e,n){"use strict";var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f488:function(t,e,n){"use strict";n("d525")},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5df:function(t,e,n){"use strict";var i=n("00ee"),r=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},f5ec:function(t,e,n){"use strict";n("8506")},f67f:function(t,e,n){"use strict";n("d2d1")},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f772:function(t,e,n){"use strict";var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"i18n",(function(){return Uf})),n.d(e,"cryptoJs",(function(){return Jh.a})),n.d(e,"qrcode",(function(){return ep.a})),n.d(e,"validate",(function(){return Hs})),n.d(e,"shortcutKey",(function(){return Nf})),n.d(e,"debounce",(function(){return Wf})),n.d(e,"throttle",(function(){return jf})),n.d(e,"cookie",(function(){return qf})),n.d(e,"createStore",(function(){return On})),n.d(e,"getStore",(function(){return Rn})),n.d(e,"mapStore",(function(){return zn})),n.d(e,"countdown",(function(){return Vf})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("14d9"),n("37f6"),n("4e02"),n("69b1");var o=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"vue-component-library"},[e("div",{staticClass:"lang flex"},[e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="zh"}}},[t._v("中文")]),e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="en"}}},[t._v("English")])],1),t._l(t.docTab,(function(n,i){return e("c-button",{key:i,staticClass:"tab",attrs:{size:"form",color:t.crtTab==n?t.crtTabColor:""},on:{click:function(e){t.crtTab=n}}},[t._v(t._s(n))])})),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.marked.parse("# "+t.crtTab))}}),e("api-button",{directives:[{name:"show",rawName:"v-show",value:"按钮"==t.crtTab,expression:"crtTab == '按钮'"}]}),e("api-input",{directives:[{name:"show",rawName:"v-show",value:"输入框"==t.crtTab,expression:"crtTab == '输入框'"}]}),e("api-options",{directives:[{name:"show",rawName:"v-show",value:"单复选框"==t.crtTab,expression:"crtTab == '单复选框'"}]}),e("api-selector",{directives:[{name:"show",rawName:"v-show",value:"选择器"==t.crtTab,expression:"crtTab == '选择器'"}]}),e("api-switch",{directives:[{name:"show",rawName:"v-show",value:"开关"==t.crtTab,expression:"crtTab == '开关'"}]}),e("api-file",{directives:[{name:"show",rawName:"v-show",value:"文件"==t.crtTab,expression:"crtTab == '文件'"}]}),e("api-editor",{directives:[{name:"show",rawName:"v-show",value:"编辑器"==t.crtTab,expression:"crtTab == '编辑器'"}]}),e("api-link",{directives:[{name:"show",rawName:"v-show",value:"链接"==t.crtTab,expression:"crtTab == '链接'"}]}),e("api-tooltip",{directives:[{name:"show",rawName:"v-show",value:"提示信息"==t.crtTab,expression:"crtTab == '提示信息'"}]}),e("api-title",{directives:[{name:"show",rawName:"v-show",value:"标题"==t.crtTab,expression:"crtTab == '标题'"}]}),e("api-pagination",{directives:[{name:"show",rawName:"v-show",value:"分页栏"==t.crtTab,expression:"crtTab == '分页栏'"}]}),e("api-table",{directives:[{name:"show",rawName:"v-show",value:"表格"==t.crtTab,expression:"crtTab == '表格'"}]}),e("api-form",{directives:[{name:"show",rawName:"v-show",value:"表单"==t.crtTab,expression:"crtTab == '表单'"}]}),e("api-detail",{directives:[{name:"show",rawName:"v-show",value:"详情"==t.crtTab,expression:"crtTab == '详情'"}]}),e("api-popup",{directives:[{name:"show",rawName:"v-show",value:"消息弹窗"==t.crtTab,expression:"crtTab == '消息弹窗'"}]}),e("api-dialog",{directives:[{name:"show",rawName:"v-show",value:"会话弹窗"==t.crtTab,expression:"crtTab == '会话弹窗'"}]}),e("api-window",{directives:[{name:"show",rawName:"v-show",value:"悬浮窗口"==t.crtTab,expression:"crtTab == '悬浮窗口'"}]}),e("api-preview",{directives:[{name:"show",rawName:"v-show",value:"媒体预览"==t.crtTab,expression:"crtTab == '媒体预览'"}]}),e("api-tab",{directives:[{name:"show",rawName:"v-show",value:"选项卡"==t.crtTab,expression:"crtTab == '选项卡'"}]}),e("api-layout",{directives:[{name:"show",rawName:"v-show",value:"布局"==t.crtTab,expression:"crtTab == '布局'"}]}),e("api-module",{directives:[{name:"show",rawName:"v-show",value:"模块"==t.crtTab,expression:"crtTab == '模块'"}]}),e("api-drag-sort",{directives:[{name:"show",rawName:"v-show",value:"拖拽排序"==t.crtTab,expression:"crtTab == '拖拽排序'"}]}),e("api-dropdown",{directives:[{name:"show",rawName:"v-show",value:"下拉菜单"==t.crtTab,expression:"crtTab == '下拉菜单'"}]}),e("api-right-menu",{directives:[{name:"show",rawName:"v-show",value:"右键菜单"==t.crtTab,expression:"crtTab == '右键菜单'"}]}),e("api-tree",{directives:[{name:"show",rawName:"v-show",value:"树"==t.crtTab,expression:"crtTab == '树'"}]}),e("api-steps",{directives:[{name:"show",rawName:"v-show",value:"步骤条"==t.crtTab,expression:"crtTab == '步骤条'"}]}),e("api-progress",{directives:[{name:"show",rawName:"v-show",value:"进度条"==t.crtTab,expression:"crtTab == '进度条'"}]}),e("api-qrcode",{directives:[{name:"show",rawName:"v-show",value:"二维码"==t.crtTab,expression:"crtTab == '二维码'"}]}),e("api-countdown",{directives:[{name:"show",rawName:"v-show",value:"倒计时"==t.crtTab,expression:"crtTab == '倒计时'"}]})],2)])},a=[],s=function(){var t=this,e=t._self._c;return e("div",[e("div",[t._l(t.buttonSize,(function(n,i){return e("div",{key:i},[e("c-button",{key:"n"+i,attrs:{size:n}},[t._v("按钮")]),t._l(t.buttonHollow,(function(i,r){return t._l(t.buttonColor,(function(o,a){return e("c-button",{key:`${r}${a}`,attrs:{size:n,color:o,hollow:i}},[t._v("按钮")])}))}))],2)})),e("div",[e("c-button",{attrs:{disabled:""}},[t._v("按钮")])],1),e("div",{staticClass:"flex"},[e("c-button",{attrs:{"prepend-icon":"c-icon-search"}},[t._v("按钮")]),e("c-button",{attrs:{"append-icon":"c-icon-search"}},[t._v("按钮")])],1)],2),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("button"))}})])},l=[],c={data(){return{buttonSize:["normal","form","dialog"],buttonColor:["main","lesser","red","green","blue","yellow"],buttonHollow:[!0,!1]}}},u=c;n("e566");function d(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var h=d(u,s,l,!1,null,"1a1f6dc0",null),p=h.exports,f=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-input",{on:{suggest:t.suggestHandle}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"number",decimal:"2",range:"0,9999"}})],1),e("br"),e("p",[e("c-input",{attrs:{"prepend-text":"前置文本","append-text":"后置文本"}})],1),e("br"),e("p",[e("c-input",{scopedSlots:t._u([{key:"prependText",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"prependIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0},{key:"appendText",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0}])})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"10",range:"0,100"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"0.1",range:"0,1",decimal:"1","step-controls":"side"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"password",visible:""}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"textarea",maxlength:"100"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("input"))}})])},m=[],g={data(){return{}},mounted(){},methods:{suggestHandle(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push(t+"输入建议"+o);e(r)}}},v=g,b=d(v,f,m,!1,null,"5bbd0d88",null),_=b.exports,y=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-radio-group",{attrs:{value:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-radio-group",{attrs:{options:t.options,value:"3",disabled:""},on:{change:t.changeHandle}})],1),e("p",[e("c-checkbox-group",{attrs:{limit:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-checkbox-group",{attrs:{options:t.options,value:"2,3",disabled:""},on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("options"))}})])},w=[],x={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}]}},mounted(){},methods:{changeHandle(t){console.log(t)}}},k=x,S=d(k,y,w,!1,null,"7eb1e109",null),D=S.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{attrs:{"unit-width":"400"}},[e("c-form-item",{attrs:{label:"下拉框",tip:"单选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:"",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选换行展示 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:{linefeed:!0},search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 异步选项"}},[e("p",[e("c-select",{attrs:{"value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 异步选项"}},[e("p",[e("c-select",{attrs:{multiple:"","value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"自定义事件"}},[e("p",[e("c-select",{attrs:{multiple:{linefeed:!0}},on:{customEvent:t.customEvent,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"地址框"}},[e("p",[e("c-region",{ref:"region",attrs:{level:"4"},on:{change:t.changeHandle}})],1),e("c-link",{on:{click:function(e){return t.$refs.region.resetOptions({a:1})}}},[t._v("a")])],1),e("c-form-item",{attrs:{label:"日期框"}},[e("p",[e("c-datetime",{on:{change:t.changeHandle}})],1),e("br"),e("p",[e("c-datetime",{attrs:{range:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"颜色框"}},[e("p",[e("c-color",{on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"穿梭框"}},[e("p",[e("c-transfer",{attrs:{data:t.initRandomOptions,search:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("selector"))}})])},E=[],A={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2,children:[{name:"optionSub1",value:21},{name:"optionSub2",value:22,children:[]},{name:"optionSub3",value:23}]},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},customEvent(t,e){this.randomOptions("",e)},changeHandle(t){console.log(t)},addHandle(t,e){e({name:t,value:t})}}},T=A,F=d(T,C,E,!1,null,"6175fc4c",null),B=F.exports,$=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-switch",{on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("switch"))}})])},L=[],I={data(){return{}},mounted(){},methods:{changeHandle(t){console.log(t)}}},M=I,P=d(M,$,L,!1,null,"b20cbce2",null),N=P.exports,H=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png,https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png",type:"image,video",multiple:"2",media:""},scopedSlots:t._u([{key:"tip",fn:function({type:n}){return[e("p",[t._v("自定义的提示说明")]),e("p",[t._v(t._s(n))])]}}])})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",type:"image,video",media:"",tip:"提示说明"}})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png",type:"word,excel",tip:"tip属性"}})],1),e("br"),e("br"),e("p",[e("c-file",{attrs:{src:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",media:""}})],1),e("br"),e("p",[e("c-file",{attrs:{src:"http://placehold.it/750x750/666/fff.png"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("file"))}})])},O=[],R={data(){return{}},mounted(){},methods:{}},z=R,U=d(z,H,O,!1,null,"b1ed53f8",null),K=U.exports,W=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"800px"}},[e("p",[e("c-editor")],1)]),e("br"),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("editor"))}})])},j=[],V={data(){return{}},mounted(){},methods:{}},q=V,Y=d(q,W,j,!1,null,"1036af41",null),X=Y.exports,G=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("链接名称")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}})],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:""}},[t._v("带icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:"c-icon-search"}},[t._v("自定义icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"main",href:"https://www.baidu.com/",target:"_blank"}},[t._v("主色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"lesser",href:"https://www.baidu.com/",target:"_blank"}},[t._v("辅色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"gray",href:"https://www.baidu.com/",target:"_blank"}},[t._v("灰色链接")])],1),e("br")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("link"))}})])},Z=[],Q={data(){return{}},mounted(){},methods:{}},J=Q,tt=d(J,G,Z,!1,null,"8e49391a",null),et=tt.exports,nt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"320px",margin:"0 auto"}},[e("div",{staticClass:"flex-start-center",staticStyle:{height:"50px","margin-bottom":"20px"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("默认提示信息")]),e("c-tooltip",{attrs:{tip:"提示信息内容"}}),e("span",{staticStyle:{margin:"0 10px 0 20px"}},[t._v("默认提示信息(白色)")]),e("c-tooltip",{attrs:{tip:"提示信息内容",color:"white"}})],1),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"start"}},[e("c-button",{ref:"button"},[t._v("上左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"end"}},[e("c-button",{ref:"button"},[t._v("上右")])],1)],1),e("div",{staticClass:"flex-between",staticStyle:{height:"80px"}},[e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"left",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左上")])],1),e("c-tooltip",{attrs:{position:"left",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左下")])],1)],1),e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"right",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右上")])],1),e("c-tooltip",{attrs:{position:"right",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右下")])],1)],1)]),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"start"}},[e("c-button",{ref:"button"},[t._v("下左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"end"}},[e("c-button",{ref:"button"},[t._v("下右")])],1)],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tooltip"))}})])},it=[],rt={data(){return{}},mounted(){},methods:{}},ot=rt,at=d(ot,nt,it,!1,null,"680d77da",null),st=at.exports,lt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-title",[t._v("标题名称")]),e("c-title",{attrs:{icon:"c-icon-search"}},[t._v("自定义图标标题")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("title"))}})])},ct=[],ut={data(){return{}},mounted(){},methods:{}},dt=ut,ht=d(dt,lt,ct,!1,null,"211d9b4c",null),pt=ht.exports,ft=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#F5F5F5"}},[e("c-pagination",{attrs:{total:"100"},on:{handle:t.update}})],1)])},mt=[],gt={data(){return{}},mounted(){},methods:{update(t){console.log(t)}}},vt=gt,bt=d(vt,ft,mt,!1,null,"2b668974",null),_t=bt.exports,yt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"preview",staticStyle:{"margin-top":"20px"}},[e("c-table",{ref:"table",attrs:{border:"","fixed-width":t.fixedWidth,"width-resize":"",height:"500",paging:!1},on:{rowClick:t.rowClick,widthResize:t.widthResize}},[e("c-table-column",{attrs:{type:"drag"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{type:"selector",name:"selected"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{fixed:"left",label:"col.expand",type:"expand","expand-button":({data:t})=>4!=t.num,"expand-limit":"3","add-button":""},on:{handle:t.expandHandle,add:t.addHandle},scopedSlots:t._u([{key:"default",fn:function({data:e}){return[t._v(" "+t._s(e.children?e.text:4==e.num?"不可展开":"可展开")+" ")]}}])}),e("c-table-column",{attrs:{label:"col.normal",name:"num",required:"",summed:""},scopedSlots:t._u([{key:"summed",fn:function({total:e}){return[t._v(" 默认数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.custom",summed:({data:t})=>t.num},scopedSlots:t._u([{key:"tip",fn:function(){return[e("c-tooltip",{attrs:{tip:"123"}})]},proxy:!0},{key:"default",fn:function({data:n}){return[e("span",[t._v("num: "+t._s(n.num.toFixed(2)))])]}},{key:"summed",fn:function({total:e}){return[t._v(" 自定义数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.sort",type:"sort","align-center":""},on:{handle:t.sortHandle}}),e("c-table-column",{attrs:{label:"col.complex"}},[e("c-table-column",{attrs:{label:"col.children",name:"rowspan","col-span":t.colSpan,"row-span":t.rowSpan}}),e("c-table-column",{attrs:{label:"col.children",name:"rowspan"}})],1),e("c-table-column",{attrs:{name:"_selected"},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-button",[t._v("自定义头部")])]},proxy:!0}])}),t.col?e("c-table-column",{attrs:{label:"动态列1"}},[t._v("1")]):t._e(),t.col?e("c-table-column",{attrs:{label:"动态列2"}},[t._v("2")]):t._e(),e("c-table-column",{attrs:{label:"静态列"}},[t._v("0")]),t.col?t._e():e("c-table-column",{attrs:{fixed:"right",label:"动态列3"}},[t._v("3")]),e("c-table-column",{attrs:{type:"button",label:"col.handle","button-limit":"3"},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[n.button?t._e():e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮1")]),n.button?e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮2")]):t._e(),t.button?t._e():e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮1")]),t.button?e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮2")]):t._e(),e("c-table-button",[t._v("按钮")]),e("c-table-button",[t._v("按钮")])]}}])})],1)],1),e("br"),e("c-button",{on:{click:function(e){t.col=!t.col}}},[t._v("切换列")]),e("c-button",{on:{click:function(e){t.button=!t.button}}},[t._v("切换按钮")]),e("c-button",{on:{click:function(e){t.fixedWidth=!t.fixedWidth}}},[t._v(t._s(t.fixedWidth?"自动宽度":"固定宽度"))]),e("c-button",{on:{click:function(e){return t.getData()}}},[t._v("获取数据")]),e("c-button",{on:{click:function(e){return t.getData("selected")}}},[t._v("获取选中行")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("table"))}})],1)},wt=[],xt={data(){return{col:!1,button:!1,fixedWidth:!1}},mounted(){this.$refs.table.setData([{selected:!0,name:"admin",num:2,date:"2024-01-01 00:00:00",rowspan:1,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:4,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:5,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{selected:!0,name:"admin",num:1,date:"2024-01-01 00:00:00",rowspan:4,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:3,date:"2024-01-01 00:00:00",rowspan:5,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1}])},methods:{rowSpan({data:t},e){return e.filter(({data:e})=>e.rowspan==t.rowspan).length},colSpan({data:t},e){return 1==t.rowspan?2:1},rowClick(t){console.log(t)},expandHandle(t,e){setTimeout(()=>{e([{children:!0,text:"子节点1",num:0},{children:!0,text:"子节点2",num:0}])},1e3)},addHandle(t,e){setTimeout(()=>{e({children:!0,text:"新子节点",num:0})},1e3)},colHandle(t){console.log(t)},sortHandle(t,e,n){console.log(t,e),n()},getData(t){console.log(this.$refs.table.getData(t))},widthResize(t){console.log(t)}}},kt=xt,St=d(kt,yt,wt,!1,null,"8f1c420c",null),Dt=St.exports,Ct=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{ref:"form",attrs:{vertical:t.verticalState,"unit-width":"400"}},[e("c-form-item",{attrs:{label:"form.label"},scopedSlots:t._u([{key:"handle",fn:function(){return[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("跳转链接")])]},proxy:!0}])},[e("c-input",{attrs:{name:"input"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-radio-group",{attrs:{name:"radio"}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-checkbox-group",{attrs:{name:"checkbox"}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.labelWithAsterisk",required:""}},[e("c-select",{attrs:{name:"select",options:t.options}})],1),e("c-form-item",{attrs:{label:"form.labelTip",tip:"提示信息"}},[e("c-region",{attrs:{level:"4","province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),e("c-form-item",{attrs:{label:"form.labelCustomTip"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("span",{staticStyle:{color:"blue"}},[t._v("自定义提示信息")])]},proxy:!0}])},[e("c-datetime",{attrs:{type:"date",range:"","start-name":"start","end-name":"end"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-color",{attrs:{name:"color"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-switch",{attrs:{name:"switch","state-value":[1,0]}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-transfer",{attrs:{name:"transfer",sort:"",data:t.initRandomOptions},on:{search:t.randomOptions}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",multiple:"",media:"",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label",name:"complex"}},[e("p",{staticStyle:{"line-height":"38px"}},[t._v("复杂表单项内容...")]),e("c-input",{attrs:{name:"complexInput"}})],1),e("c-form-item",[e("c-button",{on:{click:function(e){t.verticalState=!t.verticalState}}},[t._v(t._s(t.verticalState?"横向排列":"纵向排列"))]),e("c-button",{on:{click:t.getData}},[t._v("获取数据")]),e("c-button",{on:{click:t.setData}},[t._v("回填数据")]),e("c-button",{on:{click:t.validData}},[t._v("校验")]),e("c-button",{on:{click:t.clearData}},[t._v("清空")])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("form"))}})])},Et=[],At={data(){return{verticalState:!1,options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},setData(){this.$refs.form.set({input:1,radio:2,checkbox:[1,3],select:2,province:"province1",city:"city2",county:"county1",address:"address",start:"2024-01-01",end:"2024-01-31",color:"#000000",switch:1,transfer:[2,4,6],file:["https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png","https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png"],complexInput:"1"})},getData(){console.log(this.$refs.form.get())},clearData(){this.$refs.form.clear()},validData(){this.$refs.form.validate({breakWhenFail:!1,rule:{input:{check:"输入框内容为空"},radio:"选项不能为空",checkbox:"选项不能为空",select:[{type:"empty",message:"下拉框内容为空"},{type:"function",fun:()=>new Promise(t=>{setTimeout(()=>{t(!0)},1e3)})}],county:"地区不能为空",end:"日期不能为空",color:"颜色不能为空",transfer:"穿梭框不能为空",file:"请上传文件",complex:t=>!!t.complexInput||"复杂字段校验失败"},success:t=>{console.log("success",t)},fail:t=>{console.log("fail",t)}})}}},Tt=At,Ft=d(Tt,Ct,Et,!1,null,"7f8a3797",null),Bt=Ft.exports,$t=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-detail",{attrs:{column:"3"}},[e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名",colspan:"2"}},[t._v(" 单独设置占两列 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("detail"))}})])},Lt=[],It={data(){return{}},mounted(){},methods:{}},Mt=It,Pt=d(Mt,$t,Lt,!1,null,"6bceeb66",null),Nt=Pt.exports,Ht=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message()}}},[t._v("普通消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("success")}}},[t._v("成功消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("warn")}}},[t._v("警告消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("fail")}}},[t._v("失败消息弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice()}}},[t._v("普通通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("success")}}},[t._v("成功通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("warn")}}},[t._v("警告通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("fail")}}},[t._v("失败通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.noticeButton()}}},[t._v("带按钮的通知弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("enquire")}}},[t._v("询问确认弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("warn")}}},[t._v("提醒确认弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading()}}},[t._v("普通加载弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading("加载中")}}},[t._v("带文案加载弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("popup"))}})])},Ot=[],Rt={data(){return{}},mounted(){},methods:{message(t){this.$message({type:t,message:"消息弹窗内容"})},notice(t){this.$notice({type:t,title:"通知标题",message:"通知弹窗内容"})},noticeButton(){this.$notice({title:"通知标题",message:"通知弹窗内容",button:[{name:"不再提醒",callback(){console.log(0)}}]})},confirm(t){this.$confirm({type:t,title:"确认弹窗标题",message:"确认弹窗内容",resolve:()=>{console.log("resolve")},cancel:()=>{console.log("cancel")}})},loading(t){this.$loading({message:t,timeout:1e3})}}},zt=Rt,Ut=d(zt,Ht,Ot,!1,null,"694f65b0",null),Kt=Ut.exports,Wt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("popup")}}},[t._v("弹出模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("slide")}}},[t._v("侧滑模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("mask")}}},[t._v("无遮罩会话弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("dialog"))}}),e("c-dialog",{ref:"popup",attrs:{title:"会话弹窗1",height:"199","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"mask",attrs:{title:"会话弹窗2","resize-button":"",mask:!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"slide",attrs:{mode:"slide",title:"会话弹窗3","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])])],1)},jt=[],Vt={data(){return{}},mounted(){},methods:{dialog(t){this.$refs[t].open({zIndex:"mask"==t?1020:0})}}},qt=Vt,Yt=d(qt,Wt,jt,!1,null,"6313ac22",null),Xt=Yt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-button",{ref:"button",on:{click:function(e){return t.$refs.window.show(t.$refs.button)}}},[t._v("显示窗口")]),e("c-window",{ref:"window",attrs:{title:"测试"},scopedSlots:t._u([{key:"beforeButton",fn:function(){return[t._v(" 自定义内容 ")]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮")])]},proxy:!0}])},[e("div",{staticStyle:{height:"100px"}},[t._v("窗口内容")])])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("window"))}})])},Zt=[],Qt={data(){return{}},mounted(){},methods:{}},Jt=Qt,te=d(Jt,Gt,Zt,!1,null,"7c9c33d0",null),ee=te.exports,ne=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg")}}},[t._v("图片预览")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4")}}},[t._v("视频预览")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("preview"))}})])},ie=[],re={data(){return{}},mounted(){},methods:{preview(t){this.$preview({src:t})}}},oe=re,ae=d(oe,ne,ie,!1,null,"41bde794",null),se=ae.exports,le=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"border-tab"},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"card"},on:{change:t.tabsHandle}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tab"))}})])},ce=[],ue={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{tabsHandle(t){console.log(t)}}},de=ue,he=d(de,le,ce,!1,null,"483ea3ec",null),pe=he.exports,fe=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:""}},[e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/grid"))}}),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-flex-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/flex"))}})],1)])},me=[],ge={data(){return{}},mounted(){},methods:{}},ve=ge,be=d(ve,fe,me,!1,null,"29fab78c",null),_e=be.exports,ye=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"标题","sub-title":"副标题"},scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"flex-end-center",staticStyle:{height:"100%"}},[t._v(" 头部插槽 ")])]},proxy:!0},{key:"foot",fn:function(){return[e("p",{staticStyle:{"line-height":"50px","text-align":"center",background:"#fffcd1"}},[t._v("底部插槽")])]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮一")]),e("c-button",[t._v("按钮二")])]},proxy:!0}])},[e("div",{staticStyle:{height:"1000px"}})])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/normal"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"自适应高度","sub-title":"填充剩余高度,最小高度为100(不包含头部)"}}),e("module",{attrs:{title:"固定高度",height:"200","sub-title":"指定模块高度(不包含头部)"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])]),e("module",{attrs:{title:"自动高度",height:"auto","sub-title":"根据内容高度变化"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/multi"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{tabs:t.tabs,"tab-type":"border-tab"},on:{tabChange:t.tabsHandle}},[e("div")]),e("module",[e("module-tab",{attrs:{name:"选项卡一"},on:{mounted:function(e){return t.moduleTabHandle(1,"mounted")},activated:function(e){return t.moduleTabHandle(1,"activated")},deactivated:function(e){return t.moduleTabHandle(1,"deactivated")}}},[e("div",{staticStyle:{height:"600px"}},[t._v("内容高600px")])]),e("module-tab",{attrs:{name:"选项卡二"},on:{mounted:function(e){return t.moduleTabHandle(2,"mounted")},activated:function(e){return t.moduleTabHandle(2,"activated")},deactivated:function(e){return t.moduleTabHandle(2,"deactivated")}}},[e("div",{staticStyle:{height:"1000px"}},[t._v("内容高1000px")])])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/tabs"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",[e("module-row"),e("module-row",[e("module-col"),e("module-col")],1)],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/complex"))}})])},we=[],xe={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{moduleTabHandle(t,e){console.log(t,e)},tabsHandle(t){console.log(t)}}},ke=xe,Se=(n("4acb"),d(ke,ye,we,!1,null,"0406f941",null)),De=Se.exports,Ce=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-drag-sort",{staticClass:"flex-wrap",on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])]),e("c-drag-handle",{staticClass:"handle"},[e("div",[t._v("拖")])])],1)]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-drag-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-button",{staticClass:"api-handle",on:{click:t.addSortItem}},[t._v("添加一项")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("drag_sort"))}})])},Ee=[],Ae={data(){return{sortList:[0,1,2,3,4,5],sortAdd:6}},watch:{sortList(t){console.log(t)}},mounted(){},methods:{addSortItem(){this.sortList.push(this.sortAdd++)},removeSortItem(t){this.sortList.splice(t,1)},sortHandle(t,e,n){console.log(t,e,n)}}},Te=Ae,Fe=(n("c15a"),d(Te,Ce,Ee,!1,null,"1d55c72d",null)),Be=Fe.exports,$e=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-dropdown",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("c-button",[t._v("下拉菜单"),e("i",{staticClass:"c-dropdown-angle c-icon-tri-down"})])],1)],1)])},Le=[],Ie={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Me=Ie,Pe=d(Me,$e,Le,!1,null,"6d885ec1",null),Ne=Pe.exports,He=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-right-menu",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("div",{staticStyle:{display:"inline-block",padding:"20px",background:"#F5F5F5"}},[t._v(" 在此处单击右键 ")])])],1)])},Oe=[],Re={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},ze=Re,Ue=d(ze,He,Oe,!1,null,"cefe2f94",null),Ke=Ue.exports,We=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{"margin-bottom":"20px"}},[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","root")}}},[t._v("获取根节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","selected")}}},[t._v("获取选中节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","checked")}}},[t._v("获取勾选节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("insertRoot")}}},[t._v("插入根节点")])],1),e("c-tree",{ref:"tree",attrs:{data:t.treeData,select:{expand:!0,unselect:!0},check:{clickCheck:!0}},on:{load:function(e){return t.treeHandle("load",arguments[0],arguments[1])},click:function(e){return t.treeHandle("click",e)},check:function(e){return t.treeHandle("check",e)}}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tree"))}})])},je=[],Ve={data(){return{treeData:[{id:1,pId:0,name:"节点1"},{id:2,pId:0,name:"节点2"}]}},mounted(){},methods:{treeHandle(t,e,n){if(console.log(t,e),"load"==t){let t=[],i=this.$parent.random(2,6);for(let n=1;n<=i;n++)t.push({id:e.id.toString()+n,name:e.name+n,pId:e.id,leaf:this.$parent.random(0,9)>6});setTimeout(()=>{n(t)},500)}else if("getNode"==t)console.log(this.$refs.tree.getNode(e));else if("insertRoot"==t){let t=[],e=this.$refs.tree.getNode().length+1,n=e+this.$parent.random(2,6);for(let i=e;i<=n;i++)t.push({id:i,name:"节点"+i,pId:0,leaf:this.$parent.random(0,9)>6});this.$refs.tree.insertRoot(t)}}}},qe=Ve,Ye=d(qe,We,je,!1,null,"3dac96a0",null),Xe=Ye.exports,Ge=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-steps",{attrs:{steps:t.stepsList,active:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("steps"))}})])},Ze=[],Qe={data(){return{stepsList:[{name:"步骤一"},{name:"步骤二",message:"步骤描述"},{name:"步骤三",message:"步骤描述"},{name:"步骤四"}]}},mounted(){},methods:{}},Je=Qe,tn=d(Je,Ge,Ze,!1,null,"852e07c0",null),en=tn.exports,nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"200px"}},[e("c-progress",{attrs:{type:"line",rate:[5,10],decimal:"1"}}),e("br"),e("br"),e("c-progress",{attrs:{type:"circle",rate:"44,111",decimal:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("progress"))}})])},rn=[],on={data(){return{}},mounted(){},methods:{}},an=on,sn=d(an,nn,rn,!1,null,"7fc615f7",null),ln=sn.exports,cn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#FAFAFA"}},[e("c-qrcode",{attrs:{value:"qweqwqwe",margin:"20"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("qrcode"))}})])},un=[],dn={data(){return{}},mounted(){},methods:{}},hn=dn,pn=d(hn,cn,un,!1,null,"77da1f1b",null),fn=pn.exports,mn=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-countdown",{ref:"cd",attrs:{icon:"",sec:"86400"},on:{end:t.endHandle}})],1),e("br"),e("c-button",{on:{click:function(e){return t.$refs.cd.setSec(10)}}},[t._v("10S")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("countdown"))}})])},gn=[],vn={data(){return{}},mounted(){},methods:{endHandle(){console.log("end")}}},bn=vn,_n=d(bn,mn,gn,!1,null,"2e48d6ac",null),yn=_n.exports,wn=n("7c5c"),xn=n.n(wn),kn={name:"vueComponentLibrary",components:{apiButton:p,apiInput:_,apiOptions:D,apiSelector:B,apiSwitch:N,apiFile:K,apiEditor:X,apiLink:et,apiTooltip:st,apiTitle:pt,apiPagination:_t,apiTable:Dt,apiForm:Bt,apiDetail:Nt,apiPopup:Kt,apiDialog:Xt,apiWindow:ee,apiPreview:se,apiTab:pe,apiLayout:_e,apiModule:De,apiDragSort:Be,apiDropdown:Ne,apiRightMenu:Ke,apiTree:Xe,apiSteps:en,apiProgress:ln,apiQrcode:fn,apiCountdown:yn},data(){return{marked:xn.a,docTab:["按钮","输入框","单复选框","选择器","开关","文件","编辑器","链接","提示信息","标题","分页栏","表格","表单","详情","消息弹窗","会话弹窗","悬浮窗口","媒体预览","选项卡","布局","模块","拖拽排序","下拉菜单","右键菜单","树","步骤条","进度条","二维码","倒计时"],tabColor:["main","lesser","red","green","blue","yellow"],crtTab:qf.get("crt_tab")||"按钮"}},computed:{crtTabColor(){return this.crtTab,this.tabColor[Math.floor(Math.random()*this.tabColor.length)]},loadDoc(){return t=>xn.a.parse(n("5aa3")(`./${t}.md`).default)}},watch:{crtTab(t){qf.set("crt_tab",t)}},mounted(){window.$app=this},methods:{random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}}},Sn=kn,Dn=(n("5af5"),d(Sn,o,a,!1,null,null,null)),Cn=Dn.exports,En=function(){var t=this,e=t._self._c;return e("button",{staticClass:"c-button",style:t.compStyle,attrs:{color:t.color,hollow:t.hollow,disabled:!!t.disabled},on:{click:function(e){return t.$emit("click")},mouseenter:function(e){t.hoverState=!0},mouseleave:function(e){t.hoverState=!1}}},[e("div",{staticClass:"flex-center"},[t.prependIcon?e("i",{staticClass:"icon",class:t.prependIcon}):t._e(),e("span",[t._t("default")],2),t.appendIcon?e("i",{staticClass:"icon",class:t.appendIcon}):t._e()])])},An=[],Tn={name:"cButton",props:{size:{type:String,default:"normal"},color:{type:String,default:"normal"},hollow:Boolean,disabled:Boolean,prependIcon:String,appendIcon:String},data(){return{hoverState:!1}},computed:{sizeStyle(){return this.$compsConfig.style.buttonSize[this.size]||{}},colorStyle(){let t=this.$compsConfig.color[this.color];if(!t)return{};let e=t[this.hoverState?1:0];return{"border-color":e,color:this.hollow?e:"#fff",background:this.hollow?"#fff":e}},compStyle(){return Object.assign({},this.sizeStyle,this.colorStyle)}}},Fn=Tn,Bn=(n("25f9"),d(Fn,En,An,!1,null,"ff8f74d6",null)),$n=Bn.exports,Ln=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:"hidden"!=t.type,expression:"type != 'hidden'"}],staticClass:"c-input",class:{"c-textarea":"textarea"==t.type,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},["textarea"==t.type?[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",style:{resize:!0===t.heightResize?"vertical":"none"},attrs:{rows:"1",placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.changeHandle}}),t.maxlength?e("span",{staticClass:"c-input-length",style:{right:!0===t.heightResize?"20px":"5px"}},[t._v(t._s(t.valueData.length)+" / "+t._s(t.maxlength))]):t._e()]:e("div",{staticClass:"flex"},[t.$scopedSlots.prependText||t.prependText?e("div",{staticClass:"c-input-text flex-center"},[t._t("prependText"),e("span",[t._v(t._s(t.$t(t.prependText)))])],2):t._e(),"stepper"==t.type&&"both"==t.stepControls?e("button",{staticClass:"c-input-step flex-center",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e(),e("div",{staticClass:"flex-center flex-grow"},[t.$scopedSlots.prepend?e("div",{staticClass:"c-input-content"},[t._t("prepend")],2):t._e(),t.$scopedSlots.prependIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("prependIcon")],2):t._e(),"checkbox"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.valueData)?t._i(t.valueData,null)>-1:t.valueData},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){var n=t.valueData,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueData=n.concat([o])):a>-1&&(t.valueData=n.slice(0,a).concat(n.slice(a+1)))}else t.valueData=r},t.changeHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):"radio"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.valueData,null)},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){t.valueData=null},t.changeHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:t.compType},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.changeHandle,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}),t.clear&&t.valueData&&!t.readonly?e("a",{staticClass:"c-input-icon clear flex-center",on:{click:t.clearHandle}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t.visible?e("a",{staticClass:"c-input-icon flex-center",on:{click:function(e){t.visibleState=!t.visibleState}}},[e("i",{staticClass:"c-icon-eyes",class:{"c-icon-eyes-close":t.visibleState}})]):t._e(),t.$scopedSlots.appendIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("appendIcon")],2):t._e(),t.$scopedSlots.append?e("div",{staticClass:"c-input-content"},[t._t("append")],2):t._e()]),e("div",{staticClass:"flex-column"},["stepper"==t.type?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.maxRange&&t.maxRange==t.valueData},on:{click:function(e){return t.stepHandle(1)}}},[e("i",{staticClass:"c-icon-plus"})]):t._e(),"stepper"==t.type&&"side"==t.stepControls?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e()]),t.$scopedSlots.appendText||t.appendText||t.unit?e("div",{staticClass:"c-input-text flex-center"},[t._t("appendText"),e("span",[t._v(t._s(t.$t(t.appendText||t.unit)))])],2):t._e()]),t._events.suggest?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition&&t.suggestList.length,expression:"listPosition && suggestList.length"}],ref:"list",staticClass:"c-input-suggest",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{options:t.suggestList},on:{click:t.set}})],1):t._e()],2)},In=[];function Mn(t,e){var n=window.getComputedStyle(t,null);return n[e]}function Pn(t,e){var n=t.parentNode;if(n)return n===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?e(window.document.body):e(window):((["scroll","auto"].includes(Mn(n,"overflow"))||["scroll","auto"].includes(Mn(n,"overflow-x"))||["scroll","auto"].includes(Mn(n,"overflow-y")))&&e(n),Pn(t.parentNode,e))}var Nn=n("8bbf"),Hn=n.n(Nn);function On(t,e={}){let{computed:n,watch:i,methods:r}=e;const o="function"==typeof t?t:Hn.a.extend({data(){return t},computed:n,watch:i,methods:{...r,commit(t,e){this[t]=e}}});return new o({i18n:Uf})}function Rn(t,e="store"){let n;return function t(i){i&&(i[e]?n=i[e]:t(i.$parent))}(t),{[e]:n||{commit:function(){}}}}function zn(t,e){"string"!=typeof t&&(e=t,t="store");const n={};if(e.constructor==Array)e.forEach(e=>{n[e]={get(){try{return this[t][e]}catch(n){return}},set(){}}});else for(let i in e)n[i]={get(){return e[i](this[t])},set(){}};return n}const Un={render(t){return t("div",[this.options.map(e=>[t("div",{class:"flex-center-cross c-input-suggest-item flex-center-cross",attrs:{title:this.$t(e)},on:{click:()=>this.clickHandle(e)}},[t("p",{class:"ellipsis flex-grow"},[this.$t(e)])])])])},props:{options:Array},methods:{clickHandle(t){this.$emit("click",t),this.$parent.blurHandle()}}};var Kn={name:"cInput",components:{selectList:Un},props:{type:{type:String,default:"text"},value:[Number,String],name:String,placeholder:String,maxlength:[Number,String],decimal:[Number,String],range:[String,Array],disabled:Boolean,readonly:Boolean,alignCenter:Boolean,prependText:String,appendText:String,unit:String,visible:Boolean,clear:{type:Boolean,default:!0},step:{type:[String,Number],default:1},stepControls:{type:String,default:"both"},heightResize:{type:[Boolean,String],default(){return this.$compsConfig.config.input.heightResize}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:"",visibleState:!1,listPosition:!1,suggestList:[],active:!1}},computed:{...zn("cFormStore",["submitHandle"]),...zn("cFormItemStore",["warnState"]),compType(){return"number"==this.type||this.visibleState?"text":this.type},compRange(){return!!this.range&&("string"==typeof this.range?this.range.split(","):this.range)},minRange(){return"object"==typeof this.compRange&&2==this.compRange.length&&parseFloat(this.compRange[0])},maxRange(){return!1!==this.compRange&&parseFloat(this.compRange[1])},compDecimal(){return!!["number","stepper"].includes(this.type)&&(parseInt(this.decimal)||0)}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get()),this.$nextTick(this.updateHeight)},compDecimal(){this.inputHandle({type:"blur"})}},mounted(){this.set(this.value),this._events.suggest&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this._events.suggest&&document.body.removeChild(this.$refs.list)},methods:{set(t=""){t=t||0===t?t:"",this.valueData=t.toString().trim(),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData.toString().trim()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},inputHandle(t){if(this.cFormItemStore.commit("warnState",!1),!1!==this.compDecimal){var e=[["^(-?)0?(\\d+)$","$1$2"],["^(-?)\\.$","$1"],["\\.(\\d*)\\.+",".$1"],["^(\\d+\\.?\\d*)-+","$1"],["^(-\\d*\\.?\\d*)-+","$1"],["^(-?\\d+\\.\\d{"+this.compDecimal+"}).+","$1"],[this.compDecimal?"[^-\\d\\.]+$":"[^-\\d]+$",""]];e.forEach(t=>{this.valueData=this.valueData.toString().replace(new RegExp(t[0]),t[1])}),""!==this.valueData&&"blur"==t.type&&(this.valueData=this.valueData.toString().replace(this.compDecimal?/[^-\d\.]+/g:/[^-\d]+/g,""),!1!==this.minRange&&this.valueData<this.minRange&&(this.valueData=this.minRange),!1!==this.maxRange&&this.valueData>this.maxRange&&(this.valueData=this.maxRange))}"input"!=t.type?(this.$emit(t.type,this.get()),"focus"==t.type?this._events.suggest&&(this.suggestHandle(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)})):"blur"==t.type&&this.blurHandle(t)):this.suggestHandle()},blurHandle(t){t&&this.active||(this.listPosition=!1,this.suggestList=[],window.removeEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)})},clearHandle(){this.valueData="",this.suggestHandle(),this.focus(),this.changeHandle()},enterHandle(){this.$emit("enter",this.get()),this.submitHandle&&this.submitHandle()},suggestHandle(){this.valueData?this.$emit("suggest",this.valueData,t=>{this.suggestList=t,this.$nextTick(this.updatePosition)}):this.suggestList=[]},stepHandle(t){let e=this.valueData.toString().split(".")[1]||"",n=this.step.toString().split(".")[1]||"",i=n.length>e.length?n.length:e.length;this.valueData=parseFloat(((parseFloat(this.valueData)||0)+t*parseFloat(this.step)).toFixed(i)),this.inputHandle({type:"blur"}),this.changeHandle()},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<300?this.$refs.list.offsetHeight:300,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+this.$el.offsetHeight-1)+"px",width:this.$el.offsetWidth+"px","max-height":this.parsePixel(300,!0)}},updateHeight(){"textarea"==this.type&&"auto"==this.heightResize&&(this.$refs.input.style.height="auto",this.$refs.input.style.height=this.$refs.input.scrollHeight+"px")}}},Wn=Kn,jn=(n("5e90"),d(Wn,Ln,In,!1,null,"0cd68ede",null)),Vn=jn.exports,qn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio",class:{"z-chk":t.checkState,"z-dis":t.disabledState},on:{click:t.checkHandle}},[e("div",{staticClass:"c-radio-check"}),t.$slots.default?e("div",{staticClass:"c-radio-content"},[t._t("default")],2):t._e()])},Yn=[],Xn={name:"cRadio",props:{value:[Number,String],disabled:Boolean},data(){return{store:this.$parent.store}},computed:{...zn(["valueData","groupDisabled"]),checkState(){return this.valueData==this.value},disabledState(){return this.groupDisabled||this.disabled}},methods:{checkHandle(){this.disabledState||this.checkState||this.$parent.changeHandle(this.value)},changeHandle(t){this.$emit("change",t)}}},Gn=Xn,Zn=(n("647a"),d(Gn,qn,Yn,!1,null,"1ef111e6",null)),Qn=Zn.exports,Jn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},ti=[],ei={name:"cRadioGroup",props:{value:[String,Number],name:String,disabled:Boolean,options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({valueData:this.value,groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},disabled(t){this.store.commit("groupDisabled",t)}},methods:{set(t=""){this.store.commit("valueData",t),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(t){this.$children.forEach(e=>{(e.checkState||e.value==t)&&e.changeHandle(e.value==t)}),this.store.commit("valueData",t),this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},ni=ei,ii=(n("0a75"),d(ni,Jn,ti,!1,null,"1345d698",null)),ri=ii.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox",class:{"z-chk":t.checkState,"z-dis":t.disabledState},style:{height:t.parsePixel(t.size,!0)},on:{click:function(e){return t.checkHandle(!t.checkState)}}},[e("div",{staticClass:"c-checkbox-check",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0),"line-height":t.parsePixel(t.size,!0),"font-size":t.parsePixel(t.iconSize,!0)}},[t.half?e("i",{staticClass:"c-icon-check-half"}):t.checkState?e("i",{staticClass:"c-icon-check"}):t._e()]),t.$slots.default?e("div",{staticClass:"c-checkbox-content"},[t._t("default")],2):t._e()])},ai=[],si={name:"cCheckbox",props:{value:[Number,String,Boolean],disabled:Boolean,half:Boolean,size:{type:[Number,String],default:20}},data(){let t="cCheckboxGroup"==this.$parent.$options.name;return{selfChecked:!!this.value,inGroup:t,store:t?this.$parent.store:void 0}},computed:{...zn(["valueData","limit","groupDisabled"]),parseValueData(){return"object"==typeof this.valueData?Array.from(this.valueData,t=>t.toString()):this.valueData.toString()?this.valueData.toString().split(","):[]},checkState(){return this.inGroup?this.parseValueData.includes(this.value.toString()):this.selfChecked},disabledState(){return this.inGroup&&this.groupDisabled||this.disabled},overflow(){return!this.checkState&&this.limit>0&&this.parseValueData.length>=this.limit},iconSize(){return parseInt(this.size)<20?12:13}},watch:{value(t){this.selfChecked=!!t,this.store&&this.store.updateValueData()}},mounted(){this.store&&this.store.updateValueData()},beforeDestroy(){this.store&&this.store.updateValueData()},methods:{checkHandle(t){if(!this.disabledState){if(this.inGroup){if(this.overflow)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.limit})});let e;t?e=this.parseValueData.concat([this.value.toString()]):(e=this.parseValueData.join(",").split(","),e.splice(e.indexOf(this.value.toString()),1)),this.store.commit("valueData","object"==typeof this.valueData?e:e.join(",")),this.$parent.changeHandle()}else this.selfChecked=t,this.$emit("input",t);this.$emit("change",t)}}}},li=si,ci=(n("5d56"),d(li,oi,ai,!1,null,"2b8f077c",null)),ui=ci.exports,di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},hi=[],pi={name:"cCheckboxGroup",props:{value:{type:[String,Number,Array],default:""},name:String,disabled:Boolean,limit:[String,Number],options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({updateValueData:Wf(()=>{this.set(this.valueData.filter(t=>!!this.$children.find(e=>"cCheckbox"==e.$options.name&&e.value.toString()==t.toString())))},10),valueData:[],limit:parseInt(this.limit),groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},limit(t){this.store.commit("limit",t)},disabled(t){this.store.commit("groupDisabled",t)}},mounted(){this.set(this.value)},methods:{set(t){t||(t=[]),"string"==typeof t&&(t=t.split(",")),this.store.commit("valueData",t),this.valueData.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},fi=pi,mi=(n("830f"),d(fi,di,hi,!1,null,"cca96b80",null)),gi=mi.exports,vi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-select",class:{"z-active":t.listPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState,"auto-height":t.multiple&&t.multipleConfig.linefeed&&!t.emptyState},on:{click:t.developHandle,mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-select-main flex-between-center"},[e("div",{ref:"value",staticClass:"flex-grow flex-center-cross",class:{"flex-wrap":t.multipleConfig.linefeed,"c-select-tag":t.multiple&&!t.emptyState}},[t.multiple&&!t.emptyState?t._l(t.currentData,(function(n,i){return e("div",{key:i,staticClass:"c-select-tag-item flex-center"},[e("span",{staticClass:"ellipsis",attrs:{title:t.$t(n.name)}},[t._v(t._s(t.$t(n.name)))]),t.disabled?t._e():e("a",{staticClass:"c-icon-cross",on:{click:function(e){return e.stopPropagation(),t.deleteValue(n)}}})])})):t._e(),t.searchConfig?e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],ref:"input",staticClass:"c-select-input flex-grow",attrs:{disabled:t.disabled,placeholder:t.emptyState?t.$t(t.placeholder):t.multiple?"":t.valueName,autocomplete:"off"},domProps:{value:t.searchValue},on:{input:[function(e){e.target.composing||(t.searchValue=e.target.value)},t.asyncSearchDebounceHandle]}}):t._e(),!t.emptyState&&t.multiple||t.searchConfig?t._e():e("span",{staticClass:"c-select-current flex-grow ellipsis",class:{"z-empty":t.emptyState},attrs:{title:t.emptyState?t.$t(t.placeholder):t.valueName}},[t._v(t._s(t.emptyState?t.$t(t.placeholder):t.valueName))])],2),t.clear&&!t.emptyState?e("a",{staticClass:"c-select-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),e("span",{staticClass:"c-select-icon flex-center"},[t.$scopedSlots.icon?t._t("icon"):e("i",{staticClass:"c-icon-angle-down"})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-select-options",style:t.listPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{async:t.asyncState,options:t.optionsList,disableOptions:t.disableOptions,multiple:!!t.multiple,add:t.searchConfig.add},on:{search:t.searchFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},bi=[];function _i(t,e,n=0){var i=[];return e&&e.map(e=>{(this.async||!this.keyword||this.$t(e.name).toLocaleLowerCase().includes(this.keyword.toLocaleLowerCase()))&&(i=i.concat(this.$parent.$scopedSlots.option?[t("div",{class:"c-select-options-custom",on:{click:()=>this.clickHandle(e)}},[this.$parent.$scopedSlots.option({data:e,selected:this.currentDataValue.includes(e.value.toString()),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)})])]:[t("div",{class:"flex-center-cross c-select-options-item "+(this.currentDataValue.includes(e.value.toString())?"z-crt":""),attrs:{title:this.$t(e.name),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)},on:{click:()=>this.clickHandle(e)}},[n?[t("div",{class:"c-select-options-item-level c-icon-level-line",style:`margin-left: ${20*(n-1)}px;`})]:[],t("p",{class:"ellipsis flex-grow"},[this.$t(e.name)]),this.multiple?[t("i",{class:"c-select-options-item-check c-icon-check"})]:[]])])),i=i.concat(_i.call(this,t,e.children,n+1))}),i}const yi={render(t){return t("div",[this.undefinedOption?[t("div",{class:"flex-center-cross c-select-options-item c-select-options-add",on:{click:()=>this.addHandle()}},[t("i",{class:"c-select-options-add-icon c-icon-add"}),t("span",[this.$t("_t.select.add")])])]:[],_i.call(this,t,this.options)])},props:{async:Boolean,options:Array,disableOptions:Array,multiple:Boolean,add:Boolean,value:String},data(){return{store:this.$parent.store}},computed:{...zn(["currentValue","currentData"]),keyword(){return this.value.trim()},currentDataValue(){return this.currentData.map(t=>t.value.toString())},undefinedOption(){if(this.add&&this.keyword)return!this.options.find(t=>this.$t(t.name)==this.keyword)}},watch:{currentValue(){this.updateCurrentData()},options(){this.async||this.updateCurrentData()}},mounted(){this.updateCurrentData()},methods:{updateCurrentData(){let t=[],e="object"==typeof this.currentValue?this.currentValue.map(t=>t.toString()):this.currentValue.toString().split(",");e.length&&function n(i){i.forEach(i=>{e.includes(i.value.toString())&&t.push(i),i.children&&n(i.children)})}(this.async?this.currentData:this.options),this.store.commit("currentData",t)},clickHandle(t){if(-1==this.disableOptions.findIndex(e=>e==t.value))if(this.multiple){let e,n=this.currentData.findIndex(e=>e.value==t.value);if(-1!=n)e=this.currentData.map(t=>t),e.splice(n,1);else{if(this.currentData.length>=this.$parent.multipleConfig.limit)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.$parent.multipleConfig.limit})});e=this.currentData.concat([t])}this.store.commit("currentData",e);let i=e.map(t=>t.value);this.store.commit("currentValue","object"==typeof this.currentValue?i:i.join(",")),this.$parent.changeHandle(),this.$emit("input",""),this.$emit("search")}else this.currentDataValue.includes(t.value.toString())||(this.store.commit("currentData",[t]),this.store.commit("currentValue",t.value),this.$parent.changeHandle()),this.$parent.foldHandle()},addHandle(){this.$parent.addHandle(this.keyword)}}};var wi={name:"cSelect",components:{selectList:yi},props:{async:Boolean,value:{type:[String,Number,Array],default:""},valueData:Array,name:String,placeholder:{type:String,default:"_t.select.placeholder"},options:{type:[Array,String],default:()=>[]},disableOptions:{type:Array,default(){return[]}},listWidth:[Number,String],listHeight:{type:[Number,String],default:300},disabled:Boolean,clear:{type:Boolean,default:!0},multiple:[Boolean,Object],search:{type:[Boolean,Object],default(){return this.$compsConfig.config.select.search}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({currentValue:this.multiple?[]:"",currentData:[]}),optionsList:[],listPosition:!1,active:!1,searchValue:""}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["currentValue","currentData"]),multipleConfig(){return!!this.multiple&&Object.assign({limit:1/0,linefeed:!1},"object"==typeof this.multiple?this.multiple:{})},searchConfig(){return!this._events.customEvent&&(!(!this.asyncState&&!this.search)&&Object.assign({empty:!0,add:!1},"object"==typeof this.search?this.search:{}))},valueName(){return this.currentData[0]?this.$t(this.currentData[0].name):""},emptyState(){return!this.currentValue&&0!==this.currentValue||this.multiple&&!this.currentValue.length},asyncState(){return this.async||!!this._events.customEvent}},watch:{value(t){this.set(t)},currentValue(){this.$emit("input",this.get())},currentData(){this.multipleConfig&&this.multipleConfig.linefeed&&this.listPosition&&this.updatePosition()},valueName(t){this.searchConfig&&!this.multiple&&(this.searchValue=t)},valueData(t){this.asyncState&&this.setValueData(t)},options(){this.asyncState||this.getOptionsList()},optionsList(t,e){if(!this.asyncState&&e.length){let e=Array.isArray(this.currentValue)?this.currentValue:[this.currentValue];e=e.filter(e=>t.find(t=>t.value==e)),this.set(e.join(","))}},searchValue(){this.$nextTick(()=>{this.listPosition&&this.updatePosition()})}},mounted(){this.asyncState?this.setValueData(this.valueData):(this.set(this.value),this.getOptionsList()),document.body.appendChild(this.$refs.list)},beforeDestroy(){document.body.removeChild(this.$refs.list)},methods:{set(t){t||0===t||(t=this.multiple?[]:""),this.multiple&&!Array.isArray(t)&&(t=t.toString().split(",")),this.store.commit("currentValue",t),Array.isArray(this.currentValue)?this.currentValue.length&&this.cFormItemStore.commit("warnState",!1):this.currentValue&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.multiple?this.currentData:this.currentData[0]||{}},setValueData(t){t&&(this.store.commit("currentData",t),this.set(this.multiple?t.map(t=>t.value):t[0]?t[0].value:""))},getOptionsList(){Array.isArray(this.options)?this.optionsList=JSON.parse(JSON.stringify(this.options)):this.$compsConfig.data.options[this.options]&&this.$compsConfig.data.options[this.options]("",t=>{this.optionsList=t})},developHandle(){this.cFormItemStore.commit("warnState",!1),this.disabled||(this._events.customEvent?this.$emit("customEvent",this.currentData,t=>{this.multiple?this.setValueData(t):this.setValueData(Array.isArray(t)?[t[0]]:[t]),this.changeHandle()}):this.listPosition?this.foldHandle():(this.searchFocus(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.asyncState&&this.searchConfig.empty&&this.asyncSearchHandle(),this.$refs.value.scrollLeft=9999))},foldHandle(t){t&&this.active||this._events.customEvent||(this.searchFocus(!1),this.searchValue=this.searchConfig&&!this.multiple?this.valueName:"",this.listPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.asyncState&&(this.optionsList=[]),this.$refs.value.scrollLeft=0)},searchFocus(t=!0){this.searchValue="",this.$nextTick(()=>{this.$refs.input&&this.$refs.input[t?"focus":"blur"]()})},asyncSearchHandle(){this.asyncState&&(this.searchConfig.empty||this.searchValue.trim()?this.searchConfig.options?this.$compsConfig.data.options[this.searchConfig.options](this.searchValue.trim(),t=>{this.optionsList=t||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.$emit("search",this.searchValue.trim(),t=>{this.optionsList=JSON.parse(JSON.stringify(t))||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.optionsList=[])},asyncSearchDebounceHandle:Wf((function(){this.asyncSearchHandle()}),300),deleteValue(t){this.currentValue.splice(this.currentValue.findIndex(e=>e==t.value),1),this.changeHandle(),this.searchFocus()},clearHandle(){this.set("object"==typeof this.currentValue?[]:""),this.changeHandle(),this.listPosition&&this.searchFocus()},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)})},addHandle(t){this.$emit("add",t,t=>{t&&(this.optionsList.push(t),this.$refs.options.clickHandle(t))})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<this.listHeight?this.$refs.list.offsetHeight:this.listHeight,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+t.height-1)+"px",width:(this.listWidth||t.width)+"px","max-height":this.parsePixel(this.listHeight,!0)}}}},xi=wi,ki=(n("a624"),d(xi,vi,bi,!1,null,"2a3afe98",null)),Si=ki.exports,Di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-region",attrs:{warn:!!t.provinceName&&t.warnState}},[e("div",{staticClass:"flex"},[t.level>=1?e("c-select",{ref:"province",staticClass:"flex-grow",attrs:{options:t.provinceOptions,placeholder:"_t.region.province",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"province")}},model:{value:t.valueData.province,callback:function(e){t.$set(t.valueData,"province",e)},expression:"valueData.province"}}):t._e(),t.level>=2?e("c-select",{ref:"city",staticClass:"flex-grow",attrs:{options:t.cityOptions,placeholder:"_t.region.city",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"city")}},model:{value:t.valueData.city,callback:function(e){t.$set(t.valueData,"city",e)},expression:"valueData.city"}}):t._e(),t.level>=3?e("c-select",{ref:"county",staticClass:"flex-grow",attrs:{options:t.countyOptions,placeholder:"_t.region.county",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"county")}},model:{value:t.valueData.county,callback:function(e){t.$set(t.valueData,"county",e)},expression:"valueData.county"}}):t._e()],1),4==t.level?e("c-input",{attrs:{placeholder:"_t.region.address",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"address")}},model:{value:t.valueData.address,callback:function(e){t.$set(t.valueData,"address",e)},expression:"valueData.address"}}):t._e()],1)},Ci=[],Ei={name:"cRegion",props:{value:{type:Object,default:()=>({})},provinceName:String,cityName:String,countyName:String,addressName:String,level:{type:[Number,String],default:3},disabled:Boolean,immediate:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormItemStore"),valueData:{province:"",city:"",county:"",address:""},provinceOptions:[],cityOptions:[],countyOptions:[]}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.immediate&&this.updateOptions("province"),this.set(this.value)},methods:{set(t={}){this.valueData.province=t.province,this.updateOptions("city",t.province,t.city),this.updateOptions("county",t.city,t.county),this.valueData.address=t.address||""},get(){return this.valueData},getData(){return{province:this.$refs.province.getData(),city:this.$refs.city&&this.$refs.city.getData(),county:this.$refs.county&&this.$refs.county.getData(),address:this.valueData.address}},resetOptions(t){this.set(),this.updateOptions("province",t)},async updateOptions(t,e,n){("province"==t||"city"==t&&this.level>1||"county"==t&&this.level>2)&&(this[t+"Options"]=[],(e||"province"==t)&&(this[t+"Options"]=await new Promise(n=>{let i;i="province"!=t?this[("county"==t?"city":"province")+"Options"].find(t=>t.value==e)||{}:e,this.$compsConfig.data.region(t,i,n)})),"province"!=t&&(this.valueData[t]=n),(1==this.level||2==this.level&&"city"==t||3==this.level&&"county"==t)&&this.$emit("input",this.get()))},changeHandle(t,e){"province"==e?(this.updateOptions("city",t.value),this.updateOptions("county")):"city"==e?this.updateOptions("county",t.value):this.$emit("input",this.get()),this.$emit("change",this.get())}}},Ai=Ei,Ti=(n("f5ec"),d(Ai,Di,Ci,!1,null,"4548d0bf",null)),Fi=Ti.exports,Bi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!(t.name||t.startName||t.endName)&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-datetime-main flex-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStart,expression:"inputStart"}],ref:"start",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.range?t.placeholder[0]:t.placeholder),disabled:t.disabled},domProps:{value:t.inputStart},on:{change:function(e){return t.inputHandle("start")},click:function(e){return t.developHandle("start")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputStart=e.target.value)}}}),t.range?e("span",{staticClass:"c-datetime-line"},[t._v("-")]):t._e(),t.range?e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputEnd,expression:"inputEnd"}],ref:"end",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.placeholder[1]),disabled:t.disabled},domProps:{value:t.inputEnd},on:{change:function(e){return t.inputHandle("end")},click:function(e){return t.developHandle("end")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputEnd=e.target.value)}}}):t._e(),t.clear&&(t.start||t.end)?e("a",{staticClass:"c-datetime-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-datetime-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-datetime-picker",{ref:"picker",attrs:{type:t.type,timeAccuracy:t.timeAccuracy,start:"end"==t.inputType?t.start:"",end:"start"==t.inputType?t.end:"",format:t.format},on:{input:t.setDate}})],1)])},$i=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-datetime-icon flex-center"},[e("i",{staticClass:"c-icon-calendar"})])}],Li={name:"cDatetime",props:{value:[String,Array],name:String,startName:String,endName:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},range:Boolean,disabled:Boolean,placeholder:{type:[String,Array],default(){return this.range?["_t.datetime.placeholderStart","_t.datetime.placeholderEnd"]:"_t.datetime.placeholder"}},defaultTime:{type:[String,Array],default(){return this.range?["00:00:00","23:59:59"]:"00:00:00"}},format:{type:String,default(){return{datetime:"yyyy-MM-dd hh:mm:ss",date:"yyyy-MM-dd",time:"hh:mm:ss"}[this.type]}},clear:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),start:"",end:"",inputType:"",inputStart:"",inputEnd:"",pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"]),valueData(){return this.range?[this.start,this.end]:this.start}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},inputType(t,e){t?(this.blurHandle(),this.updatePosition()):this.$refs[e].blur()}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t=""){this.range?(this.inputStart=this.start=t&&t[0]||"",this.inputEnd=this.end=t&&t[1]||"",(this.start||this.end)&&this.cFormItemStore.commit("warnState",!1)):(this.inputStart=this.start=t,this.start&&this.cFormItemStore.commit("warnState",!1))},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},developHandle(t){this.disabled||(this.inputType=t,this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$refs.picker.set(this[this.inputType]||(new Date).format("yyyy-MM-dd "+(this.range?this.defaultTime["end"==t?1:0]:this.defaultTime))))},foldHandle(t){t&&this.active||(this.inputType="",this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.range?this.$refs.end.getBoundingClientRect():null,n=this.$refs.pickerBox.getBoundingClientRect(),i="end"==this.inputType?e.left-8:t.left,r=window.innerWidth-i-20,o=window.innerHeight-t.bottom<n.height;this.pickerPosition={left:(r<n.width?i+r-n.width:i)+"px",top:window.scrollY+(o?t.top-n.height+1:t.top+t.height-1)+"px"}},blurHandle(){this.inputType&&this.$refs[this.inputType].focus()},inputHandle(t){let e="end"==t?"inputEnd":"inputStart",n=this.$refs.picker.parseDate(this[e])||[],i=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`);this[e]="Invalid Date"==i?this[t]:this[t]=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`).format(this.format)},clearHandle(){this.set(""),this.changeHandle()},setDate(t){"start"==this.inputType?(this.start=t,this.inputStart=t,this.range&&!this.end?this.developHandle("end"):(this.inputType="",this.foldHandle())):(this.end=t,this.inputEnd=t,this.start?(this.inputType="",this.foldHandle()):this.developHandle("start")),this.changeHandle()}}},Ii=Li,Mi=(n("d0f7"),d(Ii,Bi,$i,!1,null,"7d4bf2fb",null)),Pi=Mi.exports,Ni=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-color-main flex-center",on:{click:t.developHandle}},[e("div",{staticClass:"c-color-preview",style:{background:t.valueData}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],staticClass:"flex-grow",attrs:{disabled:t.disabled},domProps:{value:t.valueData},on:{blur:function(e){return t.set(t.valueData)},input:function(e){e.target.composing||(t.valueData=e.target.value)}}}),t.clear&&t.valueData?e("a",{staticClass:"c-color-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-color-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-color-picker",{ref:"picker",on:{input:t.pickerHandle}})],1)])},Hi=[],Oi={name:"cColor",props:{value:String,name:String,disabled:Boolean,clear:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.value,pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t){t?(this.$refs.picker.set(t),this.cFormItemStore.commit("warnState",!1)):this.valueData=""},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},clearHandle(){this.set("")},developHandle(t){this.disabled||(this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}))},foldHandle(t){t&&this.active||(this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.pickerBox.getBoundingClientRect(),n=window.innerWidth-t.left-20,i=window.innerHeight-t.bottom<e.height;this.pickerPosition={left:(n<e.width?t.left+n-e.width:t.left)+"px",top:window.scrollY+(i?t.top-e.height+1:t.top+t.height-1)+"px"}},pickerHandle(t){this.valueData=t,this.$emit("input",this.get()),this.changeHandle()}}},Ri=Oi,zi=(n("c21e"),d(Ri,Ni,Hi,!1,null,"5470b092",null)),Ui=zi.exports,Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-transfer flex-center-cross"},[e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[0]))]),t.searchConfig?e("dd",[e("div",{staticClass:"c-transfer-search flex-center"},[e("c-input",{staticClass:"flex-grow",attrs:{type:"text",placeholder:t.$t(t.searchConfig.placeholder)},on:{input:t.searchDebounceHandle},scopedSlots:t._u([{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0}],null,!1,2573559812),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]):t._e(),e("dd",{staticClass:"flex-grow"},[t._l(t.options,(function(n,i){return[e("div",{directives:[{name:"show",rawName:"v-show",value:t.async||!t.keyword||t.$t(n.name).toLocaleLowerCase().includes(t.keyword.toLocaleLowerCase()),expression:"async || !keyword || $t(item.name).toLocaleLowerCase().includes(keyword.toLocaleLowerCase())"}],key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)},on:{click:function(e){return t.transferHandle(n)}}},[e("c-checkbox",{attrs:{value:!!t.currentOptions.find(t=>t.value==n.value),readonly:""}}),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))])],1)]}))],2)]),e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[1]))]),e("dd",{staticClass:"flex-grow"},[e("c-drag-sort",{attrs:{disabled:!t.sort},on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i}){return[e("c-drag-item",{key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)}},[e("c-drag-handle",[e("i",{staticClass:"c-transfer-option-drag c-icon-sort-drag"})]),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))]),e("a",{staticClass:"c-transfer-option-delete",on:{click:function(e){return t.transferHandle(n)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}}]),model:{value:t.currentOptions,callback:function(e){t.currentOptions=e},expression:"currentOptions"}})],1)])])},Wi=[],ji={name:"cTransfer",props:{async:Boolean,value:Array,valueData:Array,name:String,data:Array,title:{type:[String,Array],default:"_t.transfer.title"},search:[Boolean,Object],height:{type:[String,Number],default:300},sort:Boolean},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),options:[],currentOptions:[],currentValue:[],keyword:""}},computed:{...zn("cFormItemStore",["warnState"]),searchConfig(){return!(!this.async&&!this.search)&&Object.assign({placeholder:"_t.transfer.searchPlaceholder",immediate:!0},"object"==typeof this.search?this.search:{})},compTitle(){return"string"==typeof this.title?[this.$t("_t.transfer.titleLeft",{name:this.$t(this.title)}),this.$t("_t.transfer.titleRight",{name:this.$t(this.title)})]:[this.$t(this.title[0]),this.$t(this.title[1])]}},watch:{value(t){this.set(t)},currentValue(){this.async||this.updateCurrentOption(),this.$emit("input",this.get())},options(){this.async||this.updateCurrentOption()},valueData(t){this.async&&this.setValueData(t)},data(t,e){this.async||(this.updateOption(t),Array.isArray(t)&&e.length&&this.set(""))}},mounted(){this.async?(this.setValueData(this.valueData),this.searchConfig.immediate&&this.searchHandle()):(this.updateOption(this.data),this.set(this.value))},methods:{set(t){this.currentValue=t||[],this.currentValue.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.currentOptions},setValueData(t){t&&(this.currentOptions=t,this.set(t.map(t=>t.value)))},updateOption(t){this.options=JSON.parse(JSON.stringify(t))},updateCurrentOption(){this.currentOptions=this.currentValue.map(t=>this.options.find(e=>e.value==t)).filter(t=>t)},transferHandle(t){this.cFormItemStore.commit("warnState",!1);let e=this.currentValue.findIndex(e=>e==t.value);-1==e?this.currentValue.push(t.value):this.currentValue.splice(e,1),this.async&&(-1==e?this.currentOptions.push(t):this.currentOptions.splice(e,1)),this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)},sortHandle(t,e,n,i){this.async||i(),this.currentValue.splice(n,0,this.currentValue.splice(e,1)[0])},searchHandle(){this.async&&this.$emit("search",this.keyword.trim(),this.updateOption)},searchDebounceHandle:Wf((function(){this.searchHandle()}),300)}},Vi=ji,qi=(n("7185"),d(Vi,Ki,Wi,!1,null,"1ca8c1c7",null)),Yi=qi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-switch",class:t.state?"z-open":"",style:{width:t.compWidth+"px",background:t.stateColor[t.state?0:1]},on:{click:t.switchHandle}},[e("div",{staticClass:"text flex-center",style:t.textStyle},[t._v(t._s(t.$t(t.stateText[t.state?0:1])))]),e("div",{staticClass:"handle",style:{left:t.handleSeat,width:t.handleSize+"px",height:t.handleSize+"px"}})])},Gi=[],Zi={name:"cSwitch",props:{value:[Boolean,Number,String],stateValue:{type:Array,default(){return[!0,!1]}},stateText:{type:Array,default(){return["_t.switch.open","_t.switch.close"]}},stateColor:{type:Array,default(){return["#00B578","#eee"]}},name:String},data(){return{...Rn(this,"cFormStore"),handleSize:22,valueData:this.value||this.stateValue[1]}},computed:{state(){return!this.stateValue.indexOf(this.valueData)},compWidth(){let t=Math.max(this.$t(this.stateText[0]).length,this.$t(this.stateText[1]).length);return 3+this.handleSize+4+t*("zh"==this.$i18n.locale?1:.5)*13+10},handleSeat(){return this.state?this.compWidth-this.handleSize-3+"px":"3px"},textStyle(){return this.state?{left:0}:{right:0}}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},methods:{set(t=this.stateValue[1]){this.valueData=t},get(){return this.valueData},switchHandle(){this._events.beforeChange?this.$emit("beforeChange",this.state,()=>{this.switch()}):this.switch()},switch(t=this.state){this.valueData=this.stateValue[t?1:0],this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},Qi=Zi,Ji=(n("f67f"),d(Qi,Xi,Gi,!1,null,"13c36189",null)),tr=Ji.exports,er=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-upload",class:{"flex-start-end":t.media},attrs:{media:t.media}},[t.media?e("c-drag-sort",{staticClass:"c-upload-media flex-wrap",attrs:{disabled:!t.multiple||!t.sort},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-drag-item",{key:i,staticClass:"c-upload-media-item flex-center"},[e("c-file",{attrs:{src:n,media:""}}),e("a",{staticClass:"flex-center",on:{click:function(e){return e.stopPropagation(),t.removeHandle(r)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}},{key:"append",fn:function(){return[t.upperLimit||t.parseValueData.length&&t.button?t._e():e("div",{staticClass:"c-upload-media-item c-upload-media-upload flex-center",on:{click:t.uploadHandle}},[e("i",{class:t.mediaIcon})])]},proxy:!0}],null,!1,3604882091),model:{value:t.parseValueData,callback:function(e){t.parseValueData=e},expression:"parseValueData"}}):t._e(),e("div",{staticClass:"c-upload-handle",class:{"flex-column":t.media,"flex-center-cross":!t.media}},[t.button?e("c-button",{style:{"align-self":t.media?"flex-start":""},attrs:{size:"upload","prepend-icon":t.icon,hollow:"",warn:!!t.name&&t.warnState},on:{click:t.uploadHandle}},[t._v(t._s(t.$t(t.button)))]):t._e(),t.type||t.tip||t.$slots.tip?e("div",{staticClass:"c-upload-tip"},[t._t("tip",null,{type:t.fileTypeTip}),t.$scopedSlots.tip?t._e():e("div",{class:{"flex-center":!t.media}},[t.tip?e("p",[t._v(t._s(t.tip))]):t._e(),t.fileTypeTip?e("p",[t._v(t._s(t.tip&&!t.media?",":"")+t._s(t.fileTypeTip))]):t._e()])],2):t._e()],1),t.media?t._e():e("ul",{directives:[{name:"show",rawName:"v-show",value:t.parseValueData.length,expression:"parseValueData.length"}],staticClass:"c-upload-list"},t._l(t.parseValueData,(function(n,i){return e("li",{key:i,staticClass:"flex-center-cross"},[e("c-file",{staticClass:"ellipsis",attrs:{src:n}}),e("a",{on:{click:function(e){return t.removeHandle(i)}}},[t._v(t._s(t.$t("_t.upload.delete")))])],1)})),0)],1)},nr=[],ir={name:"cUploadFile",props:{value:{type:[String,Array],default:""},name:String,type:String,size:[String,Number],media:Boolean,sort:{type:Boolean,default:!0},icon:{type:String,default:"c-icon-upload"},mediaIcon:{type:String,default:"c-icon-media"},button:{type:[String,Boolean],default:"_t.upload.button"},tip:String,multiple:{type:[Boolean,Number,String],default:!1}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.multiple?[]:""}},computed:{...zn("cFormItemStore",["warnState"]),parseValueData:{get(){return this.valueData?"object"==typeof this.valueData?this.valueData:this.valueData.toString().split(","):[]},set(t){this.multiple&&(this.valueData=t.join(",").split(","))}},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),this.$t("_t.upload.tip",{type:t.join(",")})}return""},upperLimit(){return this.multiple?"boolean"!=typeof this.multiple&&this.parseValueData.length>=parseInt(this.multiple):this.parseValueData.length>0}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},mounted(){this.set(this.value)},methods:{set(t){t||(t=this.multiple?[]:""),this.multiple&&"string"==typeof t&&(t=t.split(",")),this.valueData=t,Array.isArray(this.valueData)?this.valueData.length&&this.cFormItemStore.commit("warnState",!1):this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},removeHandle(t){let e=this.parseValueData.join(",").split(",");e.splice(t,1),this.set(this.multiple?e:e.join(",")),this.changeHandle()},uploadHandle(){this.cFormItemStore.commit("warnState",!1),this.upperLimit&&this.multiple?this.$message({message:this.$t("_t.upload.message.limit",{limit:this.multiple})}):this._events.click?this.$emit("click",{type:this.type,size:this.size,count:this.multiple?"boolean"!=typeof this.multiple?parseInt(this.multiple)-this.parseValueData.length:"":1,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):this.set(t[0].path),this.changeHandle()}}):this.$upload({type:this.type,size:this.size,multiple:this.multiple,loading:!0,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):(Array.isArray(t)&&(t=t[0]),this.set(t.path)),this.changeHandle()}})},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},rr=ir,or=(n("fb1c"),d(rr,er,nr,!1,null,"66fcf5e0",null)),ar=or.exports,sr=function(){var t=this,e=t._self._c;return t.media?e("div",{staticClass:"c-file-media flex-center",attrs:{title:`${t.info.name}${t.info.suffix?".":""}${t.info.suffix}`},on:{click:t.previewHandle}},["video"==t.info.media?e("video",{attrs:{src:t.src}}):"image"==t.info.media?e("img",{attrs:{src:t.src}}):e("i",{staticClass:"c-file-icon c-icon-file",class:"c-icon-file-"+t.info.suffix})]):e("div",{staticClass:"c-file flex-center-cross",on:{click:t.download}},[e("i",{staticClass:"c-file-icon c-icon-fw c-icon-file",class:"c-icon-file-"+t.info.suffix}),e("a",{staticClass:"ellipsis"},[t._v(t._s(t.info.name)+t._s(t.info.suffix?".":"")+t._s(t.info.suffix))])])},lr=[],cr={name:"cFile",props:{src:String,media:Boolean,preview:{type:Boolean,default:!0}},computed:{info(){return this.parseFile(this.src)}},methods:{download(){window.open(this.src)},previewHandle(){this.preview&&(this.info.media?this.$preview({src:this.src}):this.download())}}},ur=cr,dr=(n("ad6e"),d(ur,sr,lr,!1,null,"b510596e",null)),hr=dr.exports,pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor"},[e("div",{ref:"div",attrs:{id:t.id}})])},fr=[],mr=(n("79d9"),n("5a08"),{name:"cEditor",props:{value:String,name:String,height:{type:[String,Number],default:300},autoHeight:Boolean},data(){return{id:"KindEditor"+this._uid}},watch:{value(t){this.editor.html(t)}},mounted(){setTimeout(()=>{this.editor||this.create(),this.set(this.value)})},activated(){this.destroy(),this.create()},beforeDestroy(){this.destroy()},methods:{set(t=""){this.editor.html(t)},get(){return this.editor.html()},create(){this.editor=KindEditor.create("#"+this.id,{width:"100%",height:this.height,resizeType:1,autoHeightMode:!!this.autoHeight,afterBlur:()=>{this.$emit("input",this.get())}})},destroy(){this.editor&&this.editor.remove()}}}),gr=mr,vr=(n("6286"),d(gr,pr,fr,!1,null,"cbdbd666",null)),br=vr.exports,_r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[t.mask?e("div",t._g({staticClass:"c-popup-mask an an-fadein",class:{"an-fadeout":!t.active},style:{"z-index":t.zIndex}},t.maskEvent)):t._e(),e("div",{ref:"wrapper",staticClass:"c-dialog-wrapper",class:{"z-max":t.max},style:{...t.position,"z-index":t.zIndex,width:t.parsePixel(t.compWidth,!0)},attrs:{mode:t.mode}},[e("div",{staticClass:"c-dialog flex-column an",class:{"z-shadow":!t.mask,[t.animateClass]:t.active,"an-fadeout":!t.active},attrs:{mode:t.mode,confirm:t.confirm}},[!1!==t.options.title?e("div",{staticClass:"c-dialog-head flex-center-cross",attrs:{move:!!t.move},on:{mousedown:t.moveHandle}},[e("p",[t._v(t._s(t.$t(t.options.title)))]),t._t("head")],2):t._e(),e("div",{staticClass:"flex c-dialog-handle"},[t.compResizeButton?[t.compResizeButton.includes("min")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:t.minimize}},[e("i",{staticClass:"c-icon-dialog-min"})]):t._e(),t.compResizeButton.includes("max")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:function(e){t.max=!t.max}}},[e("i",{class:[t.max?"c-icon-dialog-normal":"c-icon-dialog-max"]})]):t._e()]:t._e(),t.closeButton?e("div",{staticClass:"c-dialog-handle-item close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]):t._e()],2),e("div",{class:{"flex-grow":"slide"==t.mode||t.max,"flex-column":t.enableFlex},style:{height:t.compHeight,overflow:"auto"==t.compHeight?"":"auto"}},[t._t("default")],2),t.options.button?e("div",{staticClass:"c-dialog-button flex-center-cross flex-end-center"},[t.$slots.button?t._t("button"):[e("c-button",{attrs:{size:"dialog",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.options.buttonName)))]),t.options.cancelButton?e("c-button",{attrs:{size:"dialog"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.options.cancelButtonName)))]):t._e()]],2):t._e()])])])},yr=[],wr={name:"cDialog",props:{mode:{type:String,default:"popup"},confirm:Boolean,title:{type:[String,Boolean],default:""},width:[Number,String],height:{type:[Number,String],default:"auto"},resizeButton:[Boolean,Array],closeButton:{type:Boolean,default:!0},move:{type:Boolean,default:!0},moveLimit:{type:Boolean,default:!0},button:{type:Boolean,default:!0},buttonName:{type:String,default:"_t.popup.button"},cancelButton:{type:Boolean,default:!0},cancelButtonName:{type:String,default:"_t.popup.cancelButton"},enableFlex:Boolean,maskClose:{type:Boolean,default(){return this.$compsConfig.config.dialog.maskClose}},mask:{type:Boolean,default:!0}},data(){return{zIndex:1001,animate:!1,show:!1,active:!1,position:{},actualWidth:0,actualHeight:0,openOptions:{},max:!1,min:!1,maskEvent:{[this.$compsConfig.config.dialog.maskCloseEvent]:()=>{this.maskClose&&this.closeButton&&this.close()}}}},computed:{compWidth(){return this.show,this.max?"100%":this.actualWidth||this.parsePixel(this.width+"+0")||{popup:750,slide:600}[this.mode]},compHeight(){return this.show,"slide"==this.mode?"100%":this.parsePixel(this.actualHeight||this.height+"+0",!0)},propsOptions(){return{title:this.title,button:this.button,buttonName:this.buttonName,cancelButton:this.cancelButton,cancelButtonName:this.cancelButtonName}},options(){return Object.assign({},this.propsOptions,this.openOptions)},animateClass(){return this.animate?{popup:"an-popup",slide:"an-slidein"}[this.mode]:""},compResizeButton(){return Array.isArray(this.resizeButton)?this.resizeButton:!!this.resizeButton&&["min","max"]}},watch:{max(t){t?(this._lastPosition=this.position,this.position={left:0,top:0,right:0,bottom:0}):this.position=this._lastPosition}},mounted(){(function t(e){e&&("cDialog"==e.$options.name?this.zIndex=e.zIndex+1:t.call(this,e.$parent))}).call(this,this.$parent)},activated(){this._min&&this._min.show()},deactivated(){this._min&&this._min.hide()},beforeDestroy(){this._min&&this._min.remove()},methods:{updatePosition(t){this.show&&this.$nextTick(()=>{let e=this.$refs.wrapper.getBoundingClientRect();if(e.width>document.body.clientWidth-80?e.width=this.actualWidth=document.body.clientWidth-80:this.actualWidth=0,"popup"==this.mode){let t=(!1!==this.options.title?61:0)+(this.options.button?61:0);e.height>window.innerHeight-80?(this.actualHeight=window.innerHeight-80-t,e.height=this.actualHeight+t):this.actualHeight=0}"slide"==this.mode?this.position={right:0,top:0}:this.position=t?{left:parseInt(t.left)+"px",top:parseInt(t.top)+"px"}:{left:(document.body.clientWidth-e.width)/2+"px",top:(window.innerHeight-e.height)/2+"px"}})},open(t={}){if(!this._min)return t.zIndex&&(this.zIndex=t.zIndex),this.openOptions=t,this.openHandle(),this.updatePosition(t.position),new Promise(t=>{this._resolve=t});this.openHandle()},minimize(){this.active&&(this._min=this.$minDialog(this,{title:this.options.title||"",closeButton:this.closeButton,back:this.openHandle}),this.outHandle())},close(){let t=!1;(function(t,e){this.$emit("close",t,e),this.openOptions.close&&this.openOptions.close(t,e)}).call(this,()=>{t=!0},this.closeHandle),setTimeout(()=>{!t&&this.closeHandle()})},openHandle(){this._min&&this._min.remove(),delete this._min,this.animate=!0,this.active=!0,this.show=!0,setTimeout(()=>{this.animate=!1},450)},closeHandle(){this._min&&this._min.remove(),delete this._min,this.outHandle(),setTimeout(()=>{this.actualWidth=this.actualHeight=0,this.max=this.min=!1},250)},outHandle(){this.active=!1,setTimeout(()=>{this.show=!1},250)},buttonHandle(t){let e=!1;(function(e,n){this.$emit(t,e,n),this._resolve({type:t,stop:e,next:n}),this.openOptions[t]&&this.openOptions[t](e,n)}).call(this,()=>{e=!0},this.closeHandle),setTimeout(()=>{!e&&this.closeHandle()})},moveHandle(t){if(this.max)return;this.moveEnd();let e="slide"==this.mode,n=this.$refs.wrapper.getBoundingClientRect(),i={x:e?document.body.clientWidth-n.right:n.left,y:n.top},r={x:t.clientX,y:t.clientY};this._mousemoveEvent=t=>{let o={x:t.clientX<0?0:t.clientX>document.body.clientWidth?document.body.clientWidth:t.clientX,y:t.clientY<0?0:t.clientY>window.innerHeight?window.innerHeight:t.clientY},a={x:i.x+(o.x-r.x)*(e?-1:1),y:i.y+o.y-r.y};if(this.moveLimit){let t={x:document.body.clientWidth-n.width,y:window.innerHeight-n.height};a.x=a.x<0?0:a.x>t.x?t.x:a.x,a.y=a.y<0?0:a.y>t.y?t.y:a.y}this.position={[e?"right":"left"]:a.x+"px",top:e?0:a.y+"px"}},document.addEventListener("mousemove",this._mousemoveEvent),document.addEventListener("mouseup",this.moveEnd)},moveEnd(){document.removeEventListener("mousemove",this._mousemoveEvent),document.removeEventListener("mouseup",this.moveEnd)}}},xr=wr,kr=(n("1ba6"),d(xr,_r,yr,!1,null,"b6c0bb64",null)),Sr=kr.exports,Dr=function(){var t=this,e=t._self._c;return e("dl",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"c-window",style:t.compStyle},[e("dt",{staticClass:"flex-between-center"},[e("p",[t._v(t._s(t.$t(t.title)))]),e("a",{on:{click:t.hideHandle}},[e("i",{staticClass:"c-icon-cross"})])]),e("dd",{ref:"content",style:{height:t.parsePixel(this.height,!0)}},[t._t("default")],2),t.$scopedSlots.button?e("dd",{staticClass:"flex-between-center"},[e("div",[t._t("beforeButton")],2),e("div",{staticClass:"c-window-button flex"},[t._t("button")],2)]):t._e()])},Cr=[],Er={name:"cWindow",props:{title:String,width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},position:{type:String,default:"bottom"},align:{type:String,default:"start"}},data(){return{active:!1,positionStyle:{}}},computed:{compStyle(){return Object.assign({width:this.parsePixel(this.width,!0)},this.positionStyle)}},deactivated(){this.hide()},methods:{show(t,e=this.position,n=this.align){if(this.active=!0,this.$nextTick(()=>{this.$refs.content.scrollTop=0}),t){t=t.$options?t.$el:t;let i=["left","right"].includes(e);this._updatePosition=()=>{let r=t.getBoundingClientRect(),o=r.top+({top:-this.$el.offsetHeight,bottom:r.height}[e]||0)+(i&&"start"!=n?r.height-this.$el.offsetHeight:0);this.positionStyle={left:r.left+({left:-this.$el.offsetWidth,right:r.width}[e]||0)+(["top","bottom"].includes(e)&&"start"!=n?r.width-this.$el.offsetWidth:0)+"px",top:Math.max(Math.min(o,window.innerHeight-this.$el.offsetHeight),0)+"px"}},this._removeEvent=()=>{Pn(t,t=>{t.removeEventListener("scroll",this._updatePosition)})},Pn(t,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)}else this.positionStyle={position:"static"}},hide(){this._removeEvent&&this._removeEvent(),this.active=!1},hideHandle(){this.hide(),this.$emit("close")}}},Ar=Er,Tr=(n("8bd4"),d(Ar,Dr,Cr,!1,null,"039b29ee",null)),Fr=Tr.exports,Br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table flex-column flex-grow-auto",style:{height:t.compHeight,"user-select":t.widthResizePosition?"none":"auto"},attrs:{border:t.border,"fixed-width":t.fixedWidth}},[e("div",{staticClass:"c-table-main flex-column flex-grow-auto"},[e("c-tbody",{ref:"tbody",attrs:{"auto-height":"auto"==t.height},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-thead")]},proxy:!0},t.$scopedSlots.empty?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.$scopedSlots.custom?{key:"custom",fn:function({data:e,index:n}){return[t._t("custom",null,{data:e,index:n})]}}:null,t.summedRow?{key:"summed",fn:function(){return[e("c-summed")]},proxy:!0}:null],null,!0)})],1),!t.data&&t.pageBar?e("div",{staticClass:"c-table-foot"},[e("c-pagination",{staticClass:"c-table-page",attrs:{value:t.pageIndex,total:t.total,"page-size":t.pagingConfig.size,"page-size-select":t.pagingConfig.select},on:{handle:t.pageHandle}})],1):t._e(),t.widthResizePosition?e("div",{staticClass:"c-table-head-drag-line",style:{left:t.widthResizePosition+"px"}}):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)])},$r=[];function Lr(t,e){switch(e.type){case"selector":return e.multiple?[t("div",{class:"flex-center-cross"},[t("c-checkbox",{attrs:{value:this.allSelected},on:{change:t=>{this.store.selectHandle("all",t)}}})])]:"";default:return[t("div",{class:e.isParent||e.alignCenter?"flex-center":"flex-center-cross"},[e.$scopedSlots.head?e.$scopedSlots.head():[],e.required?[t("b",{class:"c-table-head-required"},["*"])]:[],t("p",{class:"ellipsis",attrs:{title:this.$t(e.label)}},[this.$t(e.label)]),e.$scopedSlots.tip?[t("div",{class:"c-table-head-tip"},[e.$scopedSlots.tip()])]:[]])]}}var Ir={render(t){return t("div",{class:"c-table-head",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:e.resizeWidth}}))]),t("thead",[this.header.map(e=>[t("tr",[e.map(e=>[t("th",{attrs:{rowspan:e.isParent?1:this.header.length-e.headLevel,colspan:e.colspan,parent:e.isParent,fixed:"right"==e.fixed,last:e._last},style:void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px`:""},[Lr.call(this,t,e),this.widthResize&&!e.isParent&&e.widthResize?[t("div",{class:"c-table-head-drag",attrs:{type:"right"==e.fixed?"left":"right"},on:{mousedown:t=>this.dragHandle(t,e,"right"==e.fixed?"left":"right")}})]:[]])])])])])])])},data(){return{store:this.$parent.store}},computed:{...zn(["header","columns","fixedWidth","columnsWidth","allSelected","widthResize"])},methods:{dragHandle(t,e,n){let i=t.target.getBoundingClientRect().left-this.store.table.$el.getBoundingClientRect().left,r=t.clientX,o=0,a="right"==n?1/0:e.resizeWidth-20,s="left"==n?-1/0:20-e.resizeWidth;this.store.commit("widthResizePosition",i);const l=jf(t=>{o=t.clientX-r,this.store.commit("widthResizePosition",i+o)},20,!1),c=()=>{o=(o>a?a:o<s?s:o)*("right"==n?1:-1),e.resizeWidth+=o,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),this.store.commit("widthResizePosition",null),this.store.table.$emit("widthResize",{type:e.type,name:e.name,width:e.resizeWidth})};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)}}},Mr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table-button flex-wrap"},[t._l(t.buttonList.list,(function(n,i){return e("div",{key:i,staticClass:"c-table-button-item ellipsis flex-center",attrs:{title:t.$t(n.$slots.default[0].text)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[n.icon?e("i",{staticClass:"c-table-button-icon",class:n.icon}):t._e(),e("span",[t._v(t._s(t.$t(n.$slots.default[0].text)))])])})),t.buttonList.more?e("div",{ref:"more",staticClass:"c-table-button-item ellipsis flex-center",on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[t._v(" "+t._s(t.$t("_t.table.more"))),e("i",{staticClass:"c-table-button-tri c-icon-tri-down"})]):t._e(),t.buttonList.more?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-table-button-more",style:t.listPosition,on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[e("ul",{attrs:{up:t.listPosition.up}},t._l(t.buttonList.more,(function(n,i){return e("li",{key:i,staticClass:"ellipsis flex-center-cross",attrs:{title:t.$t(n.$slots.default[0].text)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[n.icon?e("i",{staticClass:"c-table-button-icon",class:n.icon}):t._e(),e("span",[t._v(t._s(t.$t(n.$slots.default[0].text)))])])})),0)]):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)],2)},Pr=[],Nr={props:{limit:Number,data:Object},data(){return{store:this.$parent.store,buttons:[],listPosition:!1}},computed:{buttonList(){var t=Array.from(this.buttons,t=>t),e="";return t.length>this.limit&&(e=t.splice(this.limit-1)),{list:t,more:e}}},watch:{data:{handler(){this.update()},immediate:!0,deep:!0},buttonList(t){t.more&&this.$nextTick(()=>{this.$refs.list&&document.body.appendChild(this.$refs.list)})}},mounted(){this.store.buttonVm.push(this),this.$refs.list&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this.store.buttonVm.splice(this.store.buttonVm.findIndex(t=>t==this),1),this.$refs.list&&document.body.removeChild(this.$refs.list)},methods:{update(){this.$nextTick(()=>{this.buttons=Array.from(this.$refs.hidden?this.$refs.hidden.children:[],t=>this.$children.find(e=>e.$el==t))})},buttonHadnle(t){this.moreHandle(!1),t.$emit("click")},moreHandle(t){t?this._moreTimer?clearTimeout(this._moreTimer):(this.listPosition=!0,Pn(this.$refs.more,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$nextTick(this.updatePosition)):this._moreTimer=setTimeout(()=>{delete this._moreTimer,Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.listPosition=!1},20)},updatePosition(){let t=this.$refs.more.getBoundingClientRect(),e=this.$refs.list.offsetHeight,n=window.innerHeight-t.bottom<e;this.listPosition={up:n,right:document.body.offsetWidth-t.right+"px",top:(n?t.top-e:t.bottom)+"px"}}}},Hr=Nr,Or=d(Hr,Mr,Pr,!1,null,null,null),Rr=Or.exports;
18
+ return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function n(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}function i(t){return 0===(t[0]=n(t[0]))&&(t[1]=n(t[1])),t}var r=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)t[e+l]^=s[l]}});return e.Decryptor=r,e}(),t.mode.CTRGladman}))},ab07:function(t,e,n){},ab1f:function(t,e,n){"use strict";n("50f6")},ab36:function(t,e,n){"use strict";var i=n("861d"),r=n("9112");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},ad2f:function(t,e,n){},ad6d:function(t,e,n){"use strict";var i=n("825a");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},ad6e:function(t,e,n){"use strict";n("bde4")},aeb0:function(t,e,n){"use strict";var i=n("9bf2").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){"use strict";var i=n("83ab"),r=n("d039");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b035:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-input></c-input>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number | - | 输入框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ntype | String | text | 按钮尺寸<br>**text**: 文本框<br>**password**: 密码框<br>**number**: 数字框<br>**stepper**: 步进器<br>**textarea**: 多行文本\r\nplaceholder | String | - | 提示占位符\r\nmaxlength | Number \\| String | - | 可输入最大字符数\r\ndecimal | Number \\| String | 0 | 数字框小数位数\r\nrange | Number \\| Array | 0 | 数字框数字范围<br>可输入逗号隔开的字符串('0,100')或数组([0, 100])\r\nprepend-text | String | - | 前置文本内容\r\nappend-text | String | - | 后置文本内容\r\nvisible | Boolean | false | 密码框显示密码按钮\r\nstep | Number \\| String | 1 | 步进器精度\r\nstep-controls | String | both | 步进器按钮位置<br>**both**: 两侧<br>**side**: 一侧\r\ndisabled | Boolean | false | 是否禁用输入框\r\nreadonly | Boolean | false | 输入框是否只读\r\nclear | Boolean | false | 是否显示清空按钮\r\nheight-resize | Boolean \\| String | true | 多行文本是否支持调整高度,'auto'表示自动高度\r\n@input | Function | - | 输入事件\r\n@focus | Function | - | 焦点移入事件\r\n@blur | Function | - | 焦点移出事件\r\n@change | Function | - | 内容改变事件\r\n@suggest | Function(value, resolve) | - | 输入建议事件"},b038:function(t,e,n){"use strict";n("db68")},b108:function(t,e,n){},b42e:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},b50d:function(t,e,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83");t.exports=function(t){return new Promise((function(e,n){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"],(i.isBlob(d)||i.isFile(d))&&d.type&&delete h["Content-Type"];var p=new XMLHttpRequest;if(t.auth){var f=t.auth.username||"",m=unescape(encodeURIComponent(t.auth.password))||"";h.Authorization="Basic "+btoa(f+":"+m)}var g=s(t.baseURL,t.url);if(p.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:i,config:t,request:p};r(e,n,a),p=null}},p.onabort=function(){p&&(n(u("Request aborted",t,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",t,null,p)),p=null},p.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(u(e,t,"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var v=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in p&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:p.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),t.responseType)try{p.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){p&&(p.abort(),n(t),p=null)})),d||(d=null),p.send(d)}))}},b622:function(t,e,n){"use strict";var i=n("da84"),r=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),c=i.Symbol,u=r("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:d("Symbol."+t)),u[t]}},b74a:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\r\n<c-detail column="3">\n\t<c-detail-item label="字段名" colspan="2">\n\t\t单独设置占两列\n\t</c-detail-item>\n\t\n\t<c-detail-item label="字段名">\n\t\t内容\n\t</c-detail-item>\n</c-detail>\n```\n\n## 属性配置\r\n\r\n### 详情主体 <c-detail\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\ncolumn | String | - | 列数\r\n\r\n### 详情项 <c-detail-item\\>\r\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\r\nlabel | String | - | 字段名\r\ncolspan | String | 1 | 该项占几列'},b771:function(t,e,n){},b86b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(t){return function(){var e=t,n=e.x64,i=n.Word,r=n.WordArray,o=e.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),t.SHA384}))},b86c:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},b980:function(t,e,n){"use strict";var i=n("d039"),r=n("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},bb56:function(t,e,n){},bbf0:function(t,e,n){const i=n("27a3"),r=n("0425");function o(t){if("string"!==typeof t)throw new Error("Param is not a string");const n=t.toLowerCase();switch(n){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return o(t)}catch(i){return n}}},bc3a:function(t,e,n){t.exports=n("cee4")},bd2f:function(t,e,n){"use strict";n("4f25")},bde4:function(t,e,n){},be04:function(t,e,n){},befa:function(t,e,n){const i=n("bbf0"),r=n("dd7e"),o=n("9d94"),a=n("0196"),s=n("2f3a"),l=n("0425"),c=n("7bf0"),u=n("10b0");function d(t){return unescape(encodeURIComponent(t)).length}function h(t,e,n){const i=[];let r;while(null!==(r=t.exec(n)))i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}function p(t){const e=h(l.NUMERIC,i.NUMERIC,t),n=h(l.ALPHANUMERIC,i.ALPHANUMERIC,t);let r,o;c.isKanjiModeEnabled()?(r=h(l.BYTE,i.BYTE,t),o=h(l.KANJI,i.KANJI,t)):(r=h(l.BYTE_KANJI,i.BYTE,t),o=[]);const a=e.concat(n,r,o);return a.sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function f(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return o.getBitsLength(t);case i.KANJI:return s.getBitsLength(t);case i.BYTE:return a.getBitsLength(t)}}function m(t){return t.reduce((function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}function g(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:d(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:d(r.data)}])}}return e}function v(t,e){const n={},r={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),n[u]={node:c,lastCount:0},r[u]={};for(let t=0;t<o.length;t++){const a=o[t];n[a]&&n[a].node.mode===c.mode?(r[a][u]=f(n[a].lastCount+c.length,c.mode)-f(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),r[a][u]=f(c.length,c.mode)+4+i.getCharCountIndicator(c.mode,e))}}o=l}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:n}}function b(t,e){let n;const l=i.getBestModeForData(t);if(n=i.from(e,l),n!==i.BYTE&&n.bit<l.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(l));switch(n!==i.KANJI||c.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new o(t);case i.KANJI:return new s(t);case i.BYTE:return new a(t)}}e.fromArray=function(t){return t.reduce((function(t,e){return"string"===typeof e?t.push(b(e,null)):e.data&&t.push(b(e.data,e.mode)),t}),[])},e.fromString=function(t,n){const i=p(t,c.isKanjiModeEnabled()),r=g(i),o=v(r,n),a=u.find_path(o.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(o.table[a[e]].node);return e.fromArray(m(s))},e.rawSplit=function(t){return e.fromArray(p(t,c.isKanjiModeEnabled()))}},c046:function(t,e,n){},c04e:function(t,e,n){"use strict";var i=n("c65b"),r=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c0c9:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n<c-select></c-select> // 下拉框\r\n<c-region></c-region> // 地址框\r\n<c-datetime></c-datetime> // 日期框\r\n<c-color></c-color> // 颜色框\r\n<c-transfer></c-transfer> // 穿梭框\r\n```\r\n\r\n## 属性配置\r\n\r\n### 下拉框 <c-select\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 下拉框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 下拉框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\nplaceholder | String | - | 提示占位符\r\noptions | Array | - | 选项数据:[{"name": "选项名", "value": "选项值"}]\r\ndisabled | Boolean | false | 是否禁用下拉框\r\nmultiple | Boolean \\| Object | false | 是否支持多选\r\nmultiple.limit | Number | - | 多选最多可以选的选项数\r\nmultiple.linefeed | Boolean | false | 多选标签是否换行显示\r\nsearch | Boolean \\| Object | false | 是否支持搜索,异步模式下默认开启\r\nsearch.empty | Boolean | true | 异步模式下是否支持空搜索\r\nsearch.add | Boolean | false | 是否支持添加选项\r\nasync | Boolean | false | 异步模式\r\nclear | Boolean | false | 是否显示清空按钮\r\n@change | Function | - | 选项变化事件\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用\r\n@add | Function(keyword, resolve) | - | 添加选项事件\r\n@customEvent | Function(data, resolve) | - | 自定义事件\r\n\r\n### 地址框 <c-region\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 地址框的值,可使用v-model属性绑定变量\r\nprovince-name | String | - | 省份字段名\r\ncity-name | String | - | 城市字段名\r\ncounty-name | String | - | 区县字段名\r\naddress-name | String | - | 详细街道字段名\r\nlevel | String \\| Number | 3 | 地址库级别<br>**1**: 到省级<br>**2**: 到市级<br>**3**: 到区县级<br>**4**: 到详细街道地址\r\n\r\n### 日期框 <c-datetime\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 日期框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\nstart-name | String | - | 开始日期字段名\r\nend-name | String | - | 结束日期字段名\r\nplaceholder | String | - | 提示占位符\r\ntype | String | datetime | 日期类型<br>**datetime**: 日期+时间<br>**date**: 仅日期<br>**time**: 仅时间\r\ntime-accuracy | String | sec | 时间精度<br>**hour**: 到小时<br>**min**: 到分钟<br>**sec**: 到秒\r\ndefault-time | String \\| Array | - | 默认时间\r\nrange | Boolean | - | 是否为范围选择\r\nformat | Boolean | \'yyyy-MM-dd hh:mm:ss\' | 日期格式\r\ndisabled | Boolean | false | 是否禁用日期框\r\n\r\n### 颜色框 <c-color\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 颜色框的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\n\r\n### 穿梭框 <c-transfer\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Array | - | 穿梭框的值,可使用v-model属性绑定变量\r\nvalue-data | Array | - | 穿梭框值对应的数据,异步模式下可用\r\nname | String | - | 字段名\r\ntitle | String \\| Array | 数据 | 穿梭框的标题,传入字符串xx时标题为"全部xx"和"已选xx",也可传入数组:[\'左侧标题\', \'右侧标题\']\r\ndata | Array | - | 所有可选数据:[{"name": "选项名", "value": "选项值"}]\r\nsearch | Boolean \\| Object | false | 搜索功能,异步模式下默认开启\r\nsearch.immediate | Boolean | true | 异步模式下是否立即加载数据\r\nsearch.placeholder | String | - | 搜索框提示信息\r\nasync | Boolean | false | 异步模式\r\nsort | Boolean | false | 是否支持排序\r\n@search | Function(keyword, resolve) | - | 搜索事件,异步模式下可用'},c15a:function(t,e,n){"use strict";n("fd29")},c198:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.BlockCipher,r=e.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],p=[],f=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var m=t[n],g=t[m],v=t[g],b=257*t[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*g^257*m^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,p[r]=b<<8|b>>>24,f[r]=b,n?(n=m^t[t[t[v^m]]],i^=t[t[i]]):n=i=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)s<n?a[s]=e[s]:(u=a[s-1],s%n?n>6&&s%n==4&&(u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u]):(u=u<<8|u>>>24,u=o[u>>>24]<<24|o[u>>>16&255]<<16|o[u>>>8&255]<<8|o[255&u],u^=m[s/n|0]<<24),a[s]=a[s-n]^u);for(var l=this._invKeySchedule=[],c=0;c<r;c++){s=r-c;if(c%4)var u=a[s];else u=a[s-4];l[c]=c<4||s<=4?u:d[o[u>>>24]]^h[o[u>>>16&255]]^p[o[u>>>8&255]]^f[o[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,l,c,u,o)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,d,h,p,f,a);n=t[e+1];t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,a,s){for(var l=this._nRounds,c=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,f=1;f<l;f++){var m=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[p++],g=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[p++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[p++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[p++];c=m,u=g,d=v,h=b}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++];t[e]=m,t[e+1]=g,t[e+2]=v,t[e+3]=b},keySize:8});e.AES=i._createHelper(g)}(),t.AES}))},c1bc:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=e.enc;r.Base64url={stringify:function(t,e=!0){var n=t.words,i=t.sigBytes,r=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a<i;a+=3)for(var s=n[a>>>2]>>>24-a%4*8&255,l=n[a+1>>>2]>>>24-(a+1)%4*8&255,c=n[a+2>>>2]>>>24-(a+2)%4*8&255,u=s<<16|l<<8|c,d=0;d<4&&a+.75*d<i;d++)o.push(r.charAt(u>>>6*(3-d)&63));var h=r.charAt(64);if(h)while(o.length%4)o.push(h);return o.join("")},parse:function(t,e=!0){var n=t.length,i=e?this._safe_map:this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<i.length;a++)r[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=t.indexOf(s);-1!==l&&(n=l)}return o(t,n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(t,e,n){for(var r=[],o=0,a=0;a<e;a++)if(a%4){var s=n[t.charCodeAt(a-1)]<<a%4*2,l=n[t.charCodeAt(a)]>>>6-a%4*2,c=s|l;r[o>>>2]|=c<<24-o%4*8,o++}return i.create(r,o)}}(),t.enc.Base64url}))},c21e:function(t,e,n){"use strict";n("bb56")},c2c5:function(t,e,n){},c345:function(t,e,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(i.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e){if(a[e]&&r.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c3b6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.StreamCipher,r=e.algo,o=r.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}e.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(s)}(),t.RC4}))},c401:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},c430:function(t,e,n){"use strict";t.exports=!1},c532:function(t,e,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(t){return"[object Array]"===r.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===r.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function d(t){return"string"===typeof t}function h(t){return"number"===typeof t}function p(t){return null!==t&&"object"===typeof t}function f(t){if("[object Object]"!==r.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===r.call(t)}function g(t){return"[object File]"===r.call(t)}function v(t){return"[object Blob]"===r.call(t)}function b(t){return"[object Function]"===r.call(t)}function _(t){return p(t)&&b(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function k(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function S(){var t={};function e(e,n){f(t[n])&&f(e)?t[n]=S(t[n],e):f(e)?t[n]=S({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,i=arguments.length;n<i;n++)k(arguments[n],e);return t}function D(t,e,n){return k(e,(function(e,r){t[r]=n&&"function"===typeof e?i(e,n):e})),t}function C(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:b,isStream:_,isURLSearchParams:y,isStandardBrowserEnv:x,forEach:k,merge:S,extend:D,trim:w,stripBOM:C}},c600:function(t,e,n){},c65b:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(t,e,n){"use strict";var i=n("e330"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},c6cd:function(t,e,n){"use strict";var i=n("da84"),r=n("6374"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},c6ce:function(t,e,n){},c73d:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("edd0"),a=n("83ab"),s=TypeError,l=Object.defineProperty,c=r.self!==r;try{if(a){var u=Object.getOwnPropertyDescriptor(r,"self");!c&&u&&u.get&&u.enumerable||o(r,"self",{get:function(){return r},set:function(t){if(this!==r)throw s("Illegal invocation");l(r,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else i({global:!0,simple:!0,forced:c},{self:r})}catch(d){}},c7c0:function(t,e,n){},c7ef:function(t,e,n){},c8aa:function(t,e,n){const i=n("7bf0"),r=n("34fc"),o=n("7a43"),a=n("bbf0"),s=n("27a3"),l=7973,c=i.getBCHDigit(l);function u(t,n,i){for(let r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}function d(t,e){return a.getCharCountIndicator(t,e)+4}function h(t,e){let n=0;return t.forEach((function(t){const i=d(t.mode,e);n+=i+t.getBitsLength()})),n}function p(t,n){for(let i=1;i<=40;i++){const r=h(t,i);if(r<=e.getCapacity(i,n,a.MIXED))return i}}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!s.isValid(t))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=i.getSymbolTotalCodewords(t),l=r.getTotalCodewordsCount(t,e),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,t);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,e){let n;const i=o.from(e,o.M);if(Array.isArray(t)){if(t.length>1)return p(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return u(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;while(i.getBCHDigit(e)-c>=0)e^=l<<i.getBCHDigit(e)-c;return t<<12|e}},c8af:function(t,e,n){"use strict";var i=n("c532");t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){"use strict";var i=n("e330"),r=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&l(u,n);while(e.length>c)r(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},ca97:function(t,e,n){"use strict";n("b771")},cb2d:function(t,e,n){"use strict";var i=n("1626"),r=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(u){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){"use strict";var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cdce:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},cee4:function(t,e,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=r(o.prototype.request,e);return i.extend(n,o.prototype,e),i.extend(n,e),n}var c=l(s);c.Axios=o,c.create=function(t){return l(a(c.defaults,t))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(t){return Promise.all(t)},c.spread=n("0df6"),t.exports=c,t.exports.default=c},d012:function(t,e,n){"use strict";t.exports={}},d013:function(t,e,n){"use strict";n.r(e),e["default"]='## 栅格布局\r\n\r\n```\r\n<c-grid-row margin gap>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n\t<c-grid-col colspan="6">\r\n\t\t// 内容\r\n\t</c-grid-col>\r\n</c-grid-row>\r\n```'},d039:function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},d055:function(t,e,n){const i=n("67dd"),r=n("aa63"),o=n("4146"),a=n("4006");function s(t,e,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!i())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=e,e=o=void 0):2!==l||e.getContext||(o=n,n=e,e=void 0),new Promise((function(i,a){try{const a=r.create(n,o);i(t(a,e,o))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=e,e=o=void 0):3===l&&(e.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=e,e=void 0));try{const i=r.create(n,o);a(null,t(i,e,o))}catch(u){a(u)}}e.create=r.create,e.toCanvas=s.bind(null,o.render),e.toDataURL=s.bind(null,o.renderToDataURL),e.toString=s.bind(null,(function(t,e,n){return a.render(t,n)}))},d066:function(t,e,n){"use strict";var i=n("da84"),r=n("1626"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},d0f7:function(t,e,n){"use strict";n("a1d8")},d1e7:function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},d278:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\n\n```\n<c-window ref="window">\n\t<div>窗口内容</div>\n\n\t<template #beforeButton>\n\t\t自定义内容\n\t</template>\n\t\n\t<template #button>\n\t\t<c-button>按钮名称</c-button>\n\t</template>\n</c-window>\n\nthis.$refs.window.show(follow, position, align) // 显示悬浮窗口,follow:跟随的目标节点,position:跟随位置(top、bottom、left、right),align:对齐方向(start、end)\nthis.$refs.window.hide() // 隐藏悬浮窗口\n```\n\n## 属性配置\n\n属性 | 类型 | 默认值 | 说明\n---- | ---- | ---- | ----\ntitle | String | - | 悬浮窗口标题\nwidth | Number \\| String | 400 | 悬浮窗口宽度\nheight | Number \\| String | - | 悬浮窗口内容区域高度\nposition | String | bottom | 跟随位置<br>**bottom**: 底部<br>**top**: 顶部<br>**left**: 左侧<br>**right**: 右侧\nalign | String | start | 对齐方向<br>**start**: 起始方向<br>**end**: 结束方向'},d2bb:function(t,e,n){"use strict";var i=n("7282"),r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},d2d1:function(t,e,n){},d30d:function(t,e,n){},d359:function(t,e){t.exports="data:image/gif;base64,R0lGODlhFwAZAOYAAAAAAP////Hp7NTD0Pr7/+vv+/r7/p+y3Jyt0pmoyHmEnWVob/L1/DxZkkJelENflUZhlVFpmZ2v1VRdcJuszYKQq6/B5a2/442cucja/ay51J2nu5mhsdHb79Xf8/z9/zlYkTtZkj1bkj5ck0Bdk0lklklllkxml01nmE9pmFFqmVNsmXuQtaK87IGVuYWYuoibvYqdvpioxdLd8KOrutXf8bvD0urx/uHl7HaMsX+Ut46hwZCiwZytyqCxzXyJnqW10Ke30aq61Ku71JCdsp6lsdLY4tbc5lNhdZWoxZutyVVfbqGzzXB8jai50mt4iomZr5ajtIqarn2Ejc3a6WVveVldYfv///3//+jDk++lTu2gS8t0I8FKKs9UNcxoVdKXjd2lm/Xl4slyZdOWjbpsZfLi4t/f37S0tP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAGkALAAAAAAXABkAAAfZgGiCg4SFhoMBiYqLjI2CjZCRjwFnlZUBQ0JBTD1JOzAuLDmJk41Di2JhZAI3KqRoiZaXTgEEBFhgWVplHSmvkUABHwFXY1tcXR0nv5SyAT6JR1RmX14DHSXMjUoBRlA/MjQbGR0QzLJnAUk4UgwzTxxFEy0P2ow8UQY1FhpNNlMLSJxzFiOAhwsHJFBAQsSKCHuLXhS4gCABhgoKllQJMdBSAB0rVkRAYQKCgxENQECMJAlWM3QwnQUoxZLlpJg4L810WdOmy5w4V/ZcdBMoTKFDkSY9xLRpIAA7"},d429:function(t,e,n){"use strict";n.r(e),e["default"]='# 一级标题\n\n> 高亮区域\n\n## 二级标题\n\n正文内容**加粗**\r\n\r\n[链接](#gridOptions)\n\n```\n代码区域\n```\n\n<a id="gridOptions"></a>\n\n表头 | 表头 | 表头\n---- | ---- | ----\n表体 | 表体 | 表体<br>换行'},d525:function(t,e,n){},d6c0:function(t,e,n){const i=n("7bf0").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),o=[n-7];for(let i=1;i<e-1;i++)o[i]=o[i-1]-r;return o.push(6),o.reverse()},e.getPositions=function(t){const n=[],i=e.getRowColCoords(t),r=i.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([i[e],i[t]]);return n}},d6d6:function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},d6e6:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.Hasher,r=e.x64,o=r.Word,a=r.WordArray,s=e.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var t=0;t<80;t++)u[t]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=r.high,g=r.low,v=o.high,b=o.low,_=a.high,y=a.low,w=s.high,x=s.low,k=l.high,S=l.low,D=d.high,C=d.low,E=h.high,A=h.low,T=p,F=f,B=m,$=g,L=v,I=b,M=_,P=y,N=w,H=x,O=k,R=S,z=D,U=C,K=E,W=A,j=0;j<80;j++){var V,q,Y=u[j];if(j<16)q=Y.high=0|t[e+2*j],V=Y.low=0|t[e+2*j+1];else{var X=u[j-15],G=X.high,Z=X.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,J=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),tt=u[j-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,rt=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=u[j-7],at=ot.high,st=ot.low,lt=u[j-16],ct=lt.high,ut=lt.low;V=J+st,q=Q+at+(V>>>0<J>>>0?1:0),V+=rt,q=q+it+(V>>>0<rt>>>0?1:0),V+=ut,q=q+ct+(V>>>0<ut>>>0?1:0),Y.high=q,Y.low=V}var dt=N&O^~N&z,ht=H&R^~H&U,pt=T&B^T&L^B&L,ft=F&$^F&I^$&I,mt=(T>>>28|F<<4)^(T<<30|F>>>2)^(T<<25|F>>>7),gt=(F>>>28|T<<4)^(F<<30|T>>>2)^(F<<25|T>>>7),vt=(N>>>14|H<<18)^(N>>>18|H<<14)^(N<<23|H>>>9),bt=(H>>>14|N<<18)^(H>>>18|N<<14)^(H<<23|N>>>9),_t=c[j],yt=_t.high,wt=_t.low,xt=W+bt,kt=K+vt+(xt>>>0<W>>>0?1:0),St=(xt=xt+ht,kt=kt+dt+(xt>>>0<ht>>>0?1:0),xt=xt+wt,kt=kt+yt+(xt>>>0<wt>>>0?1:0),xt=xt+V,kt=kt+q+(xt>>>0<V>>>0?1:0),gt+ft),Dt=mt+pt+(St>>>0<gt>>>0?1:0);K=z,W=U,z=O,U=R,O=N,R=H,H=P+xt|0,N=M+kt+(H>>>0<P>>>0?1:0)|0,M=L,P=I,L=B,I=$,B=T,$=F,F=xt+St|0,T=kt+Dt+(F>>>0<xt>>>0?1:0)|0}f=i.low=f+F,i.high=p+T+(f>>>0<F>>>0?1:0),g=r.low=g+$,r.high=m+B+(g>>>0<$>>>0?1:0),b=o.low=b+I,o.high=v+L+(b>>>0<I>>>0?1:0),y=a.low=y+P,a.high=_+M+(y>>>0<P>>>0?1:0),x=s.low=x+H,s.high=w+N+(x>>>0<H>>>0?1:0),S=l.low=S+R,l.high=k+O+(S>>>0<R>>>0?1:0),C=d.low=C+U,d.high=D+z+(C>>>0<U>>>0?1:0),A=h.low=A+W,h.high=E+K+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();var r=this._hash.toX32();return r},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(d),e.HmacSHA512=i._createHmacHelper(d)}(),t.SHA512}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9b5:function(t,e,n){"use strict";var i=n("d066"),r=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},d9e2:function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=r[s],c=7!==Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},d=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),i({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,n("c8ba"))},db68:function(t,e,n){},dc4a:function(t,e,n){"use strict";var i=n("59ed"),r=n("7234");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},dd13:function(t,e,n){},dd7e:function(t,e,n){const i=n("bbf0");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){let e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);const r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},df2f:function(t,e,n){(function(e,i){t.exports=i(n("21bf"))})(0,(function(t){return function(){var e=t,n=e.lib,i=n.WordArray,r=n.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),t.SHA1}))},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,i=-1,r=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){n=a+1;break}}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e103:function(t,e,n){"use strict";n("c7c0")},e2ba:function(t,e,n){},e330:function(t,e,n){"use strict";var i=n("40d5"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){"use strict";var i=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},e3ee:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-countdown></c-countdown>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nms | String \\| Number | - | 剩余毫秒数\r\nsec | String \\| Number | - | 剩余秒数\r\ndate | String | - | 结束时间\r\nicon | Boolean \\| String | false | 是否显示icon,可传入icon的样式名自定义图标\r\ncolor | String | - | 文字颜色"},e474:function(t,e,n){"use strict";n.r(e),e["default"]="## 示例代码\r\n\r\n```\r\n<c-switch></c-switch>\r\n```\r\n\r\n## 属性配置\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | Any | false | 开关当前的状态值,可使用v-model属性绑定变量\r\nstate-value | Array | [true, false] | 开关的状态值,第0项对于打开状态,第1项对应关闭状态\r\nstate-text | Array | ['开启', '关闭']] | 开关的状态文字,第0项对于打开状态,第1项对应关闭状态\r\nstate-color | Array | ['#00B578', '#eee'] | 开关的状态颜色,第0项对于打开状态,第1项对应关闭状态\r\n@beforeChange | Function(state, next) | - | 开关状态变更前的回调函数<br>**state**: 开关变更前的状态<br>**next**: 继续变更开关状态的方法,不调用则开关状态不变更\r\n@change | Function(state) | - | 开关状态变更后的回调函数<br>**state**: 开关变更后的状态"},e566:function(t,e,n){"use strict";n("d30d")},e5cb:function(t,e,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),d=n("e391"),h=n("ab36"),p=n("6f19"),f=n("83ab"),m=n("c430");t.exports=function(t,e,n,g){var v="stackTraceLimit",b=g?2:1,_=t.split("."),y=_[_.length-1],w=i.apply(null,_);if(w){var x=w.prototype;if(!m&&r(x,"cause")&&delete x.cause,!n)return w;var k=i("Error"),S=e((function(t,e){var n=d(g?e:t,void 0),i=g?new w(t):new w;return void 0!==n&&o(i,"message",n),p(i,S,i.stack,2),this&&a(x,this)&&u(i,this,S),arguments.length>b&&h(i,arguments[b]),i}));if(S.prototype=x,"Error"!==y?s?s(S,k):l(S,k,{name:!0}):f&&v in w&&(c(S,w,v),c(S,w,"prepareStackTrace")),l(S,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=S}catch(D){}return S}}},e61b:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("3252"))})(0,(function(t){return function(e){var n=t,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=e%5,r=(2*t+3*e)%5;t=i,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,p=0;p<7;p++){if(1&o){var f=(1<<p)-1;f<32?h^=1<<f:l^=1<<f-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=s.create()})();var p=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],a=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var p=0;p<5;p++){for(var f=0,m=0,g=0;g<5;g++){s=n[p+5*g];f^=s.high,m^=s.low}var v=h[p];v.high=f,v.low=m}for(p=0;p<5;p++){var b=h[(p+4)%5],_=h[(p+1)%5],y=_.high,w=_.low;for(f=b.high^(y<<1|w>>>31),m=b.low^(w<<1|y>>>31),g=0;g<5;g++){s=n[p+5*g];s.high^=f,s.low^=m}}for(var x=1;x<25;x++){s=n[x];var k=s.high,S=s.low,D=c[x];D<32?(f=k<<D|S>>>32-D,m=S<<D|k>>>32-D):(f=S<<D-32|k>>>64-D,m=k<<D-32|S>>>64-D);var C=h[u[x]];C.high=f,C.low=m}var E=h[0],A=n[0];E.high=A.high,E.low=A.low;for(p=0;p<5;p++)for(g=0;g<5;g++){x=p+5*g,s=n[x];var T=h[x],F=h[(p+1)%5+5*g],B=h[(p+2)%5+5*g];s.high=T.high^~F.high&B.high,s.low=T.low^~F.low&B.low}s=n[0];var $=d[l];s.high^=$.high,s.low^=$.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3}))},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6c5:function(t,e,n){"use strict";n.r(e),e["default"]='## 示例代码\r\n\r\n```\r\n// 单选框\r\n<c-radio-group>\r\n\t<c-radio value="1">选项一</c-radio>\r\n\t<c-radio value="2">选项二</c-radio>\r\n</c-radio-group>\r\n<c-radio-group :options="[{"name": "选项一", "value": "1"}]"></c-radio-group>\r\n\r\n// 复选框\r\n<c-checkbox-group>\r\n\t<c-checkbox value="1">选项一</c-checkbox>\r\n\t<c-checkbox value="2">选项二</c-checkbox>\r\n</c-checkbox-group>\r\n<c-checkbox-group :options="[{"name": "选项一", "value": "1"}]"></c-checkbox-group>\r\n```\r\n\r\n## 属性配置\r\n\r\n### 单选框组 <c-radio-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String | - | 单选框组的值,可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用单选框组下所有单选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用单选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 单选框 <c-radio\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在单选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用单选框\r\n\r\n### 复选框组 <c-checkbox-group\\>\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Array | - | 复选框组的值,可输入逗号隔开的字符串(\'1,2\')或数组([1, 2]),可使用v-model属性绑定变量\r\nname | String | - | 字段名\r\ndisabled | Boolean | false | 是否禁用复选框组下所有复选框\r\nlimit | String \\| String | - | 最多可选项数\r\noptions | Array | - | 选项可以直接在组件中使用复选框组件也可通过该数据传入选项数据:[{"name": "选项名", "value": "选项值"}]\r\n\r\n### 复选框 <c-checkbox\\>\r\n```\r\n<c-checkbox\\>组件可在复选框组中使用,也可独立使用\r\n```\r\n\r\n属性 | 类型 | 默认值 | 说明\r\n---- | ---- | ---- | ----\r\nvalue | String \\| Number \\| Boolean | - | 在复选框组中表示该选项的值<br>独立使用时为布尔值,表示选中状态\r\ndisabled | Boolean | false | 是否禁用复选框\r\n@change | Function | - | 勾选状态改变事件,仅独立使用时可用\r\n@click | Function | - | 复选框点击事件'},e731:function(t,e,n){"use strict";n("ad2f")},e84a:function(t,e,n){},e893:function(t,e,n){"use strict";var i=n("1a2d"),r=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=r(e),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},e8b5:function(t,e,n){"use strict";var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"===i(t)}},ed5e:function(t,e,n){},edd0:function(t,e,n){"use strict";var i=n("13d2"),r=n("9bf2");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},f488:function(t,e,n){"use strict";n("d525")},f4ea:function(t,e,n){(function(e,i,r){t.exports=i(n("21bf"),n("38ba"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),n=e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return e.Decryptor=n,e}(),t.mode.CTR}))},f5df:function(t,e,n){"use strict";var i=n("00ee"),r=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=l(t),s))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},f67f:function(t,e,n){"use strict";n("d2d1")},f6b4:function(t,e,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},f772:function(t,e,n){"use strict";var i=n("5692"),r=n("90e3"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"i18n",(function(){return Uf})),n.d(e,"cryptoJs",(function(){return Jh.a})),n.d(e,"qrcode",(function(){return ep.a})),n.d(e,"validate",(function(){return Hs})),n.d(e,"shortcutKey",(function(){return Nf})),n.d(e,"debounce",(function(){return Wf})),n.d(e,"throttle",(function(){return jf})),n.d(e,"cookie",(function(){return qf})),n.d(e,"createStore",(function(){return On})),n.d(e,"getStore",(function(){return Rn})),n.d(e,"mapStore",(function(){return zn})),n.d(e,"countdown",(function(){return Vf})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}n("14d9"),n("37f6"),n("4e02"),n("69b1");var o=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"vue-component-library"},[e("div",{staticClass:"lang flex"},[e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="zh"}}},[t._v("中文")]),e("c-link",{staticClass:"item",on:{click:function(e){t.$i18n.locale="en"}}},[t._v("English")])],1),t._l(t.docTab,(function(n,i){return e("c-button",{key:i,staticClass:"tab",attrs:{size:"form",color:t.crtTab==n?t.crtTabColor:""},on:{click:function(e){t.crtTab=n}}},[t._v(t._s(n))])})),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.marked.parse("# "+t.crtTab))}}),e("api-button",{directives:[{name:"show",rawName:"v-show",value:"按钮"==t.crtTab,expression:"crtTab == '按钮'"}]}),e("api-input",{directives:[{name:"show",rawName:"v-show",value:"输入框"==t.crtTab,expression:"crtTab == '输入框'"}]}),e("api-options",{directives:[{name:"show",rawName:"v-show",value:"单复选框"==t.crtTab,expression:"crtTab == '单复选框'"}]}),e("api-selector",{directives:[{name:"show",rawName:"v-show",value:"选择器"==t.crtTab,expression:"crtTab == '选择器'"}]}),e("api-switch",{directives:[{name:"show",rawName:"v-show",value:"开关"==t.crtTab,expression:"crtTab == '开关'"}]}),e("api-file",{directives:[{name:"show",rawName:"v-show",value:"文件"==t.crtTab,expression:"crtTab == '文件'"}]}),e("api-editor",{directives:[{name:"show",rawName:"v-show",value:"编辑器"==t.crtTab,expression:"crtTab == '编辑器'"}]}),e("api-link",{directives:[{name:"show",rawName:"v-show",value:"链接"==t.crtTab,expression:"crtTab == '链接'"}]}),e("api-tooltip",{directives:[{name:"show",rawName:"v-show",value:"提示信息"==t.crtTab,expression:"crtTab == '提示信息'"}]}),e("api-title",{directives:[{name:"show",rawName:"v-show",value:"标题"==t.crtTab,expression:"crtTab == '标题'"}]}),e("api-pagination",{directives:[{name:"show",rawName:"v-show",value:"分页栏"==t.crtTab,expression:"crtTab == '分页栏'"}]}),e("api-table",{directives:[{name:"show",rawName:"v-show",value:"表格"==t.crtTab,expression:"crtTab == '表格'"}]}),e("api-form",{directives:[{name:"show",rawName:"v-show",value:"表单"==t.crtTab,expression:"crtTab == '表单'"}]}),e("api-detail",{directives:[{name:"show",rawName:"v-show",value:"详情"==t.crtTab,expression:"crtTab == '详情'"}]}),e("api-popup",{directives:[{name:"show",rawName:"v-show",value:"消息弹窗"==t.crtTab,expression:"crtTab == '消息弹窗'"}]}),e("api-dialog",{directives:[{name:"show",rawName:"v-show",value:"会话弹窗"==t.crtTab,expression:"crtTab == '会话弹窗'"}]}),e("api-window",{directives:[{name:"show",rawName:"v-show",value:"悬浮窗口"==t.crtTab,expression:"crtTab == '悬浮窗口'"}]}),e("api-preview",{directives:[{name:"show",rawName:"v-show",value:"媒体预览"==t.crtTab,expression:"crtTab == '媒体预览'"}]}),e("api-tab",{directives:[{name:"show",rawName:"v-show",value:"选项卡"==t.crtTab,expression:"crtTab == '选项卡'"}]}),e("api-layout",{directives:[{name:"show",rawName:"v-show",value:"布局"==t.crtTab,expression:"crtTab == '布局'"}]}),e("api-module",{directives:[{name:"show",rawName:"v-show",value:"模块"==t.crtTab,expression:"crtTab == '模块'"}]}),e("api-drag-sort",{directives:[{name:"show",rawName:"v-show",value:"拖拽排序"==t.crtTab,expression:"crtTab == '拖拽排序'"}]}),e("api-dropdown",{directives:[{name:"show",rawName:"v-show",value:"下拉菜单"==t.crtTab,expression:"crtTab == '下拉菜单'"}]}),e("api-right-menu",{directives:[{name:"show",rawName:"v-show",value:"右键菜单"==t.crtTab,expression:"crtTab == '右键菜单'"}]}),e("api-tree",{directives:[{name:"show",rawName:"v-show",value:"树"==t.crtTab,expression:"crtTab == '树'"}]}),e("api-steps",{directives:[{name:"show",rawName:"v-show",value:"步骤条"==t.crtTab,expression:"crtTab == '步骤条'"}]}),e("api-progress",{directives:[{name:"show",rawName:"v-show",value:"进度条"==t.crtTab,expression:"crtTab == '进度条'"}]}),e("api-qrcode",{directives:[{name:"show",rawName:"v-show",value:"二维码"==t.crtTab,expression:"crtTab == '二维码'"}]}),e("api-countdown",{directives:[{name:"show",rawName:"v-show",value:"倒计时"==t.crtTab,expression:"crtTab == '倒计时'"}]})],2)])},a=[],s=function(){var t=this,e=t._self._c;return e("div",[e("div",[t._l(t.buttonSize,(function(n,i){return e("div",{key:i},[e("c-button",{key:"n"+i,attrs:{size:n}},[t._v("按钮")]),t._l(t.buttonHollow,(function(i,r){return t._l(t.buttonColor,(function(o,a){return e("c-button",{key:`${r}${a}`,attrs:{size:n,color:o,hollow:i}},[t._v("按钮")])}))}))],2)})),e("div",[e("c-button",{attrs:{disabled:""}},[t._v("按钮")])],1),e("div",{staticClass:"flex"},[e("c-button",{attrs:{"prepend-icon":"c-icon-search"}},[t._v("按钮")]),e("c-button",{attrs:{"append-icon":"c-icon-search"}},[t._v("按钮")])],1)],2),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("button"))}})])},l=[],c={data(){return{buttonSize:["normal","form","dialog"],buttonColor:["main","lesser","red","green","blue","yellow"],buttonHollow:[!0,!1]}}},u=c;n("e566");function d(t,e,n,i,r,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}var h=d(u,s,l,!1,null,"1a1f6dc0",null),p=h.exports,f=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-input",{on:{suggest:t.suggestHandle}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"number",decimal:"2",range:"0,9999"}})],1),e("br"),e("p",[e("c-input",{attrs:{"prepend-text":"前置文本","append-text":"后置文本"}})],1),e("br"),e("p",[e("c-input",{scopedSlots:t._u([{key:"prependText",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"prependIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0},{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0},{key:"appendText",fn:function(){return[e("i",{staticClass:"c-icon-media"})]},proxy:!0}])})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"10",range:"0,100"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"stepper",step:"0.1",range:"0,1",decimal:"1","step-controls":"side"}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"password",visible:""}})],1),e("br"),e("p",[e("c-input",{attrs:{type:"textarea",maxlength:"100"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("input"))}})])},m=[],g={data(){return{}},mounted(){},methods:{suggestHandle(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push(t+"输入建议"+o);e(r)}}},v=g,b=d(v,f,m,!1,null,"5bbd0d88",null),_=b.exports,y=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"400px"}},[e("p",[e("c-radio-group",{attrs:{value:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-radio-group",{attrs:{options:t.options,value:"3",disabled:""},on:{change:t.changeHandle}})],1),e("p",[e("c-checkbox-group",{attrs:{limit:"2"},on:{change:t.changeHandle}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value},on:{change:t.changeHandle}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("p",[e("c-checkbox-group",{attrs:{options:t.options,value:"2,3",disabled:""},on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("options"))}})])},w=[],x={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}]}},mounted(){},methods:{changeHandle(t){console.log(t)}}},k=x,S=d(k,y,w,!1,null,"7eb1e109",null),D=S.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{attrs:{"unit-width":"400"}},[e("c-form-item",{attrs:{label:"下拉框",tip:"单选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:"",search:{add:!0}},on:{add:t.addHandle,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选换行展示 + 搜索"}},[e("p",[e("c-select",{attrs:{options:t.options,value:"1",multiple:{linefeed:!0},search:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"单选 + 异步选项"}},[e("p",[e("c-select",{attrs:{"value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"多选 + 异步选项"}},[e("p",[e("c-select",{attrs:{multiple:"","value-data":t.initRandomOptions,async:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{tip:"自定义事件"}},[e("p",[e("c-select",{attrs:{multiple:{linefeed:!0}},on:{customEvent:t.customEvent,change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"地址框"}},[e("p",[e("c-region",{attrs:{level:"4"},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"日期框"}},[e("p",[e("c-datetime",{on:{change:t.changeHandle}})],1),e("br"),e("p",[e("c-datetime",{attrs:{range:""},on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"颜色框"}},[e("p",[e("c-color",{on:{change:t.changeHandle}})],1)]),e("c-form-item",{attrs:{label:"穿梭框"}},[e("p",[e("c-transfer",{attrs:{data:t.initRandomOptions,search:""},on:{search:t.randomOptions,change:t.changeHandle}})],1)])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("selector"))}})])},E=[],A={data(){return{options:[{name:"option1",value:1},{name:"option2",value:2,children:[{name:"optionSub1",value:21},{name:"optionSub2",value:22,children:[]},{name:"optionSub3",value:23}]},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},customEvent(t,e){this.randomOptions("",e)},changeHandle(t){console.log(t)},addHandle(t,e){e({name:t,value:t})}}},T=A,F=d(T,C,E,!1,null,"f572ee30",null),B=F.exports,$=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-switch",{on:{change:t.changeHandle}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("switch"))}})])},L=[],I={data(){return{}},mounted(){},methods:{changeHandle(t){console.log(t)}}},M=I,P=d(M,$,L,!1,null,"b20cbce2",null),N=P.exports,H=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png,https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png",type:"image,video",multiple:"2",media:""},scopedSlots:t._u([{key:"tip",fn:function({type:n}){return[e("p",[t._v("自定义的提示说明")]),e("p",[t._v(t._s(n))])]}}])})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",type:"image,video",media:"",tip:"提示说明"}})],1),e("br"),e("p",[e("c-upload-file",{attrs:{value:"http://placehold.it/750x750/666/fff.png,http://placehold.it/750x750/666/fff.png",type:"word,excel",tip:"tip属性"}})],1),e("br"),e("br"),e("p",[e("c-file",{attrs:{src:"https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png",media:""}})],1),e("br"),e("p",[e("c-file",{attrs:{src:"http://placehold.it/750x750/666/fff.png"}})],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("file"))}})])},O=[],R={data(){return{}},mounted(){},methods:{}},z=R,U=d(z,H,O,!1,null,"b1ed53f8",null),K=U.exports,W=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"800px"}},[e("p",[e("c-editor")],1)]),e("br"),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("editor"))}})])},j=[],V={data(){return{}},mounted(){},methods:{}},q=V,Y=d(q,W,j,!1,null,"1036af41",null),X=Y.exports,G=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("链接名称")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}})],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:""}},[t._v("带icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank",icon:"c-icon-search"}},[t._v("自定义icon的链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"main",href:"https://www.baidu.com/",target:"_blank"}},[t._v("主色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"lesser",href:"https://www.baidu.com/",target:"_blank"}},[t._v("辅色链接")])],1),e("br"),e("p",[e("c-link",{attrs:{color:"gray",href:"https://www.baidu.com/",target:"_blank"}},[t._v("灰色链接")])],1),e("br")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("link"))}})])},Z=[],Q={data(){return{}},mounted(){},methods:{}},J=Q,tt=d(J,G,Z,!1,null,"8e49391a",null),et=tt.exports,nt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"320px",margin:"0 auto"}},[e("div",{staticClass:"flex-start-center",staticStyle:{height:"50px","margin-bottom":"20px"}},[e("span",{staticStyle:{"margin-right":"10px"}},[t._v("默认提示信息")]),e("c-tooltip",{attrs:{tip:"提示信息内容"}}),e("span",{staticStyle:{margin:"0 10px 0 20px"}},[t._v("默认提示信息(白色)")]),e("c-tooltip",{attrs:{tip:"提示信息内容",color:"white"}})],1),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"start"}},[e("c-button",{ref:"button"},[t._v("上左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"top",align:"end"}},[e("c-button",{ref:"button"},[t._v("上右")])],1)],1),e("div",{staticClass:"flex-between",staticStyle:{height:"80px"}},[e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"left",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左上")])],1),e("c-tooltip",{attrs:{position:"left",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("左下")])],1)],1),e("div",{staticClass:"flex-column flex-between"},[e("c-tooltip",{attrs:{position:"right",align:"start"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右上")])],1),e("c-tooltip",{attrs:{position:"right",align:"end"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("p",[t._v("提示信息内容")]),e("p",[t._v("提示信息内容")])]},proxy:!0}])},[e("c-button",{ref:"button"},[t._v("右下")])],1)],1)]),e("div",{staticClass:"flex-between",staticStyle:{padding:"0 100px"}},[e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"start"}},[e("c-button",{ref:"button"},[t._v("下左")])],1),e("c-tooltip",{attrs:{tip:"提示信息内容",position:"bottom",align:"end"}},[e("c-button",{ref:"button"},[t._v("下右")])],1)],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tooltip"))}})])},it=[],rt={data(){return{}},mounted(){},methods:{}},ot=rt,at=d(ot,nt,it,!1,null,"680d77da",null),st=at.exports,lt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-title",[t._v("标题名称")]),e("c-title",{attrs:{icon:"c-icon-search"}},[t._v("自定义图标标题")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("title"))}})])},ct=[],ut={data(){return{}},mounted(){},methods:{}},dt=ut,ht=d(dt,lt,ct,!1,null,"211d9b4c",null),pt=ht.exports,ft=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#F5F5F5"}},[e("c-pagination",{attrs:{total:"100"},on:{handle:t.update}})],1)])},mt=[],gt={data(){return{}},mounted(){},methods:{update(t){console.log(t)}}},vt=gt,bt=d(vt,ft,mt,!1,null,"2b668974",null),_t=bt.exports,yt=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"preview",staticStyle:{"margin-top":"20px"}},[e("c-table",{ref:"table",attrs:{border:"","fixed-width":t.fixedWidth,"width-resize":"",height:"500",paging:!1},on:{rowClick:t.rowClick,widthResize:t.widthResize}},[e("c-table-column",{attrs:{type:"drag"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{type:"selector",name:"selected"},on:{handle:t.colHandle}}),e("c-table-column",{attrs:{fixed:"left",label:"col.expand",type:"expand","expand-button":({data:t})=>4!=t.num,"expand-limit":"3","add-button":""},on:{handle:t.expandHandle,add:t.addHandle},scopedSlots:t._u([{key:"default",fn:function({data:e}){return[t._v(" "+t._s(e.children?e.text:4==e.num?"不可展开":"可展开")+" ")]}}])}),e("c-table-column",{attrs:{label:"col.normal",name:"num",required:"",summed:""},scopedSlots:t._u([{key:"summed",fn:function({total:e}){return[t._v(" 默认数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.custom",summed:({data:t})=>t.num},scopedSlots:t._u([{key:"tip",fn:function(){return[e("c-tooltip",{attrs:{tip:"123"}})]},proxy:!0},{key:"default",fn:function({data:n}){return[e("span",[t._v("num: "+t._s(n.num.toFixed(2)))])]}},{key:"summed",fn:function({total:e}){return[t._v(" 自定义数据合计:"+t._s(e)+" ")]}}])}),e("c-table-column",{attrs:{label:"col.sort",type:"sort","align-center":""},on:{handle:t.sortHandle}}),e("c-table-column",{attrs:{label:"col.complex"}},[e("c-table-column",{attrs:{label:"col.children",name:"rowspan","col-span":t.colSpan,"row-span":t.rowSpan}}),e("c-table-column",{attrs:{label:"col.children",name:"rowspan"}})],1),e("c-table-column",{attrs:{name:"_selected"},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-button",[t._v("自定义头部")])]},proxy:!0}])}),t.col?e("c-table-column",{attrs:{label:"动态列1"}},[t._v("1")]):t._e(),t.col?e("c-table-column",{attrs:{label:"动态列2"}},[t._v("2")]):t._e(),e("c-table-column",{attrs:{label:"静态列"}},[t._v("0")]),t.col?t._e():e("c-table-column",{attrs:{fixed:"right",label:"动态列3"}},[t._v("3")]),e("c-table-column",{attrs:{type:"button",label:"col.handle","button-limit":"3"},scopedSlots:t._u([{key:"default",fn:function({data:n}){return[n.button?t._e():e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮1")]),n.button?e("c-table-button",{on:{click:function(t){n.button=!n.button}}},[t._v("数据按钮2")]):t._e(),t.button?t._e():e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮1")]),t.button?e("c-table-button",{on:{click:function(e){t.button=!t.button}}},[t._v("全局按钮2")]):t._e(),e("c-table-button",[t._v("按钮")]),e("c-table-button",[t._v("按钮")])]}}])})],1)],1),e("br"),e("c-button",{on:{click:function(e){t.col=!t.col}}},[t._v("切换列")]),e("c-button",{on:{click:function(e){t.button=!t.button}}},[t._v("切换按钮")]),e("c-button",{on:{click:function(e){t.fixedWidth=!t.fixedWidth}}},[t._v(t._s(t.fixedWidth?"自动宽度":"固定宽度"))]),e("c-button",{on:{click:function(e){return t.getData()}}},[t._v("获取数据")]),e("c-button",{on:{click:function(e){return t.getData("selected")}}},[t._v("获取选中行")]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("table"))}})],1)},wt=[],xt={data(){return{col:!1,button:!1,fixedWidth:!1}},mounted(){this.$refs.table.setData([{selected:!0,name:"admin",num:2,date:"2024-01-01 00:00:00",rowspan:1,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:4,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:5,date:"2024-01-01 00:00:00",rowspan:2,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{selected:!0,name:"admin",num:1,date:"2024-01-01 00:00:00",rowspan:4,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1},{name:"admin",num:3,date:"2024-01-01 00:00:00",rowspan:5,text:"基于标准 HTML、CSS 和 JavaScript 构建",button:!1}])},methods:{rowSpan({data:t},e){return e.filter(({data:e})=>e.rowspan==t.rowspan).length},colSpan({data:t},e){return 1==t.rowspan?2:1},rowClick(t){console.log(t)},expandHandle(t,e){setTimeout(()=>{e([{children:!0,text:"子节点1",num:0},{children:!0,text:"子节点2",num:0}])},1e3)},addHandle(t,e){setTimeout(()=>{e({children:!0,text:"新子节点",num:0})},1e3)},colHandle(t){console.log(t)},sortHandle(t,e,n){console.log(t,e),n()},getData(t){console.log(this.$refs.table.getData(t))},widthResize(t){console.log(t)}}},kt=xt,St=d(kt,yt,wt,!1,null,"8f1c420c",null),Dt=St.exports,Ct=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-form",{ref:"form",attrs:{vertical:t.verticalState,"unit-width":"400"}},[e("c-form-item",{attrs:{label:"form.label"},scopedSlots:t._u([{key:"handle",fn:function(){return[e("c-link",{attrs:{href:"https://www.baidu.com/",target:"_blank"}},[t._v("跳转链接")])]},proxy:!0}])},[e("c-input",{attrs:{name:"input"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-radio-group",{attrs:{name:"radio"}},t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-checkbox-group",{attrs:{name:"checkbox"}},t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])})),1)],1),e("c-form-item",{attrs:{label:"form.labelWithAsterisk",required:""}},[e("c-select",{attrs:{name:"select",options:t.options}})],1),e("c-form-item",{attrs:{label:"form.labelTip",tip:"提示信息"}},[e("c-region",{attrs:{level:"4","province-name":"province","city-name":"city","county-name":"county","address-name":"address"}})],1),e("c-form-item",{attrs:{label:"form.labelCustomTip"},scopedSlots:t._u([{key:"tip",fn:function(){return[e("span",{staticStyle:{color:"blue"}},[t._v("自定义提示信息")])]},proxy:!0}])},[e("c-datetime",{attrs:{type:"date",range:"","start-name":"start","end-name":"end"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-color",{attrs:{name:"color"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-switch",{attrs:{name:"switch","state-value":[1,0]}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-transfer",{attrs:{name:"transfer",sort:"",data:t.initRandomOptions},on:{search:t.randomOptions}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label"}},[e("c-upload-file",{attrs:{name:"file",multiple:"",media:"",type:"image,video"}})],1),e("c-form-item",{attrs:{label:"form.label",name:"complex"}},[e("p",{staticStyle:{"line-height":"38px"}},[t._v("复杂表单项内容...")]),e("c-input",{attrs:{name:"complexInput"}})],1),e("c-form-item",[e("c-button",{on:{click:function(e){t.verticalState=!t.verticalState}}},[t._v(t._s(t.verticalState?"横向排列":"纵向排列"))]),e("c-button",{on:{click:t.getData}},[t._v("获取数据")]),e("c-button",{on:{click:t.setData}},[t._v("回填数据")]),e("c-button",{on:{click:t.validData}},[t._v("校验")]),e("c-button",{on:{click:t.clearData}},[t._v("清空")])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("form"))}})])},Et=[],At={data(){return{verticalState:!1,options:[{name:"option1",value:1},{name:"option2",value:2},{name:"option3",value:3}],initRandomOptions:[]}},mounted(){this.randomOptions("",t=>{this.initRandomOptions=t})},methods:{randomOptions(t,e){let n=this.$parent.random(0,6),i=n+this.$parent.random(2,8),r=[];for(let o=n;o<i;o++)r.push({name:"选项"+o,value:o});e(r)},setData(){this.$refs.form.set({input:1,radio:2,checkbox:[1,3],select:2,province:"province1",city:"city2",county:"county1",address:"address",start:"2024-01-01",end:"2024-01-31",color:"#000000",switch:1,transfer:[2,4,6],file:["https://infinityicon.infinitynewtab.com/user-share-icon/d8b62f4d64bda8800b1c788cd5ba3c68.png","https://infinityicon.infinitynewtab.com/user-share-icon/d1b00e6f33c7c9c436c9fbd20a3278d7.png"],complexInput:"1"})},getData(){console.log(this.$refs.form.get())},clearData(){this.$refs.form.clear()},validData(){this.$refs.form.validate({breakWhenFail:!1,rule:{input:{check:"输入框内容为空"},radio:"选项不能为空",checkbox:"选项不能为空",select:[{type:"empty",message:"下拉框内容为空"},{type:"function",fun:()=>new Promise(t=>{setTimeout(()=>{t(!0)},1e3)})}],county:"地区不能为空",end:"日期不能为空",color:"颜色不能为空",transfer:"穿梭框不能为空",file:"请上传文件",complex:t=>!!t.complexInput||"复杂字段校验失败"},success:t=>{console.log("success",t)},fail:t=>{console.log("fail",t)}})}}},Tt=At,Ft=d(Tt,Ct,Et,!1,null,"7f8a3797",null),Bt=Ft.exports,$t=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-detail",{attrs:{column:"3"}},[e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")]),e("c-detail-item",{attrs:{label:"字段名",colspan:"2"}},[t._v(" 单独设置占两列 ")]),e("c-detail-item",{attrs:{label:"字段名"}},[t._v(" 内容 ")])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("detail"))}})])},Lt=[],It={data(){return{}},mounted(){},methods:{}},Mt=It,Pt=d(Mt,$t,Lt,!1,null,"6bceeb66",null),Nt=Pt.exports,Ht=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message()}}},[t._v("普通消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("success")}}},[t._v("成功消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("warn")}}},[t._v("警告消息弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.message("fail")}}},[t._v("失败消息弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice()}}},[t._v("普通通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("success")}}},[t._v("成功通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("warn")}}},[t._v("警告通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.notice("fail")}}},[t._v("失败通知弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.noticeButton()}}},[t._v("带按钮的通知弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("enquire")}}},[t._v("询问确认弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.confirm("warn")}}},[t._v("提醒确认弹窗")])],1),e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading()}}},[t._v("普通加载弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.loading("加载中")}}},[t._v("带文案加载弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("popup"))}})])},Ot=[],Rt={data(){return{}},mounted(){},methods:{message(t){this.$message({type:t,message:"消息弹窗内容"})},notice(t){this.$notice({type:t,title:"通知标题",message:"通知弹窗内容"})},noticeButton(){this.$notice({title:"通知标题",message:"通知弹窗内容",button:[{name:"不再提醒",callback(){console.log(0)}}]})},confirm(t){this.$confirm({type:t,title:"确认弹窗标题",message:"确认弹窗内容",resolve:()=>{console.log("resolve")},cancel:()=>{console.log("cancel")}})},loading(t){this.$loading({message:t,timeout:1e3})}}},zt=Rt,Ut=d(zt,Ht,Ot,!1,null,"694f65b0",null),Kt=Ut.exports,Wt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("popup")}}},[t._v("弹出模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("slide")}}},[t._v("侧滑模式会话弹窗")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.dialog("mask")}}},[t._v("无遮罩会话弹窗")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("dialog"))}}),e("c-dialog",{ref:"popup",attrs:{title:"会话弹窗1",height:"199","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"mask",attrs:{title:"会话弹窗2","resize-button":"",mask:!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])]),e("c-dialog",{ref:"slide",attrs:{mode:"slide",title:"会话弹窗3","resize-button":"","move-limit":!1}},[e("div",{staticStyle:{height:"199px"}},[t._v(" 会话弹窗内容 ")])])],1)},jt=[],Vt={data(){return{}},mounted(){},methods:{dialog(t){this.$refs[t].open({zIndex:"mask"==t?1020:0})}}},qt=Vt,Yt=d(qt,Wt,jt,!1,null,"6313ac22",null),Xt=Yt.exports,Gt=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-button",{ref:"button",on:{click:function(e){return t.$refs.window.show(t.$refs.button)}}},[t._v("显示窗口")]),e("c-window",{ref:"window",attrs:{title:"测试"},scopedSlots:t._u([{key:"beforeButton",fn:function(){return[t._v(" 自定义内容 ")]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮")])]},proxy:!0}])},[e("div",{staticStyle:{height:"100px"}},[t._v("窗口内容")])])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("window"))}})])},Zt=[],Qt={data(){return{}},mounted(){},methods:{}},Jt=Qt,te=d(Jt,Gt,Zt,!1,null,"7c9c33d0",null),ee=te.exports,ne=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://uploadstatic.mihoyo.com/puzzle/upload/puzzle/2023/03/01/d2121e7797f65af32e3ed9eb258be585_8579148517963343593.jpg")}}},[t._v("图片预览")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.preview("https://ys.mihoyo.com/main/_nuxt/videos/3e78e80.mp4")}}},[t._v("视频预览")])],1)]),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("preview"))}})])},ie=[],re={data(){return{}},mounted(){},methods:{preview(t){this.$preview({src:t})}}},oe=re,ae=d(oe,ne,ie,!1,null,"41bde794",null),se=ae.exports,le=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"border-tab"},on:{change:t.tabsHandle}})],1),e("div",[e("c-tab-list",{ref:"tabList",attrs:{tabs:t.tabs,type:"card"},on:{change:t.tabsHandle}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tab"))}})])},ce=[],ue={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{tabsHandle(t){console.log(t)}}},de=ue,he=d(de,le,ce,!1,null,"483ea3ec",null),pe=he.exports,fe=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"6"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("br"),e("c-grid-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:""}},[e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-grid-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/grid"))}}),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{margin:"",gap:""}},[e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"1"}},[e("div",{staticStyle:{height:"50px",background:"#333"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#999"}})])],1),e("br"),e("c-flex-row",{staticStyle:{background:"#F5F5F5"},attrs:{gap:""}},[e("c-flex-col",{attrs:{colspan:"3"}},[e("div",{staticStyle:{height:"50px",background:"#000"}})]),e("c-flex-col",{attrs:{colspan:"2"}},[e("div",{staticStyle:{height:"50px",background:"#666"}})])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("layout/flex"))}})],1)])},me=[],ge={data(){return{}},mounted(){},methods:{}},ve=ge,be=d(ve,fe,me,!1,null,"29fab78c",null),_e=be.exports,ye=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"标题","sub-title":"副标题"},scopedSlots:t._u([{key:"head",fn:function(){return[e("div",{staticClass:"flex-end-center",staticStyle:{height:"100%"}},[t._v(" 头部插槽 ")])]},proxy:!0},{key:"foot",fn:function(){return[e("p",{staticStyle:{"line-height":"50px","text-align":"center",background:"#fffcd1"}},[t._v("底部插槽")])]},proxy:!0},{key:"button",fn:function(){return[e("c-button",[t._v("按钮一")]),e("c-button",[t._v("按钮二")])]},proxy:!0}])},[e("div",{staticStyle:{height:"1000px"}})])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/normal"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{title:"自适应高度","sub-title":"填充剩余高度,最小高度为100(不包含头部)"}}),e("module",{attrs:{title:"固定高度",height:"200","sub-title":"指定模块高度(不包含头部)"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])]),e("module",{attrs:{title:"自动高度",height:"auto","sub-title":"根据内容高度变化"}},[e("div",{staticStyle:{height:"300px"}},[t._v("内容高300px")])])],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/multi"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",{attrs:{tabs:t.tabs,"tab-type":"border-tab"},on:{tabChange:t.tabsHandle}},[e("div")]),e("module",[e("module-tab",{attrs:{name:"选项卡一"},on:{mounted:function(e){return t.moduleTabHandle(1,"mounted")},activated:function(e){return t.moduleTabHandle(1,"activated")},deactivated:function(e){return t.moduleTabHandle(1,"deactivated")}}},[e("div",{staticStyle:{height:"600px"}},[t._v("内容高600px")])]),e("module-tab",{attrs:{name:"选项卡二"},on:{mounted:function(e){return t.moduleTabHandle(2,"mounted")},activated:function(e){return t.moduleTabHandle(2,"activated")},deactivated:function(e){return t.moduleTabHandle(2,"deactivated")}}},[e("div",{staticStyle:{height:"1000px"}},[t._v("内容高1000px")])])],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/tabs"))}}),e("div",{staticClass:"layout"},[e("page",[e("module",[e("module-row"),e("module-row",[e("module-col"),e("module-col")],1)],1)],1)],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("module/complex"))}})])},we=[],xe={data(){return{tabs:[{name:"tab1",value:1},{name:"tab2",value:2}]}},mounted(){},methods:{moduleTabHandle(t,e){console.log(t,e)},tabsHandle(t){console.log(t)}}},ke=xe,Se=(n("4acb"),d(ke,ye,we,!1,null,"0406f941",null)),De=Se.exports,Ce=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-drag-sort",{staticClass:"flex-wrap",on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])]),e("c-drag-handle",{staticClass:"handle"},[e("div",[t._v("拖")])])],1)]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-drag-sort",{staticClass:"flex-wrap",scopedSlots:t._u([{key:"default",fn:function({item:n,index:i}){return[e("c-drag-item",{key:i,staticStyle:{margin:"0 30px 10px 0"}},[e("div",{staticClass:"flex-column flex-center",staticStyle:{width:"100px",height:"100px",background:"#eee"}},[e("p",[t._v(t._s(n))]),e("button",{staticStyle:{"margin-top":"10px"},on:{click:function(e){return t.removeSortItem(i)}}},[t._v("删除")])])])]}}]),model:{value:t.sortList,callback:function(e){t.sortList=e},expression:"sortList"}}),e("c-button",{staticClass:"api-handle",on:{click:t.addSortItem}},[t._v("添加一项")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("drag_sort"))}})])},Ee=[],Ae={data(){return{sortList:[0,1,2,3,4,5],sortAdd:6}},watch:{sortList(t){console.log(t)}},mounted(){},methods:{addSortItem(){this.sortList.push(this.sortAdd++)},removeSortItem(t){this.sortList.splice(t,1)},sortHandle(t,e,n){console.log(t,e,n)}}},Te=Ae,Fe=(n("c15a"),d(Te,Ce,Ee,!1,null,"1d55c72d",null)),Be=Fe.exports,$e=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-dropdown",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("c-button",[t._v("下拉菜单"),e("i",{staticClass:"c-dropdown-angle c-icon-tri-down"})])],1)],1)])},Le=[],Ie={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},Me=Ie,Pe=d(Me,$e,Le,!1,null,"6d885ec1",null),Ne=Pe.exports,He=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-right-menu",{attrs:{menu:t.menuList},on:{handle:t.handle}},[e("div",{staticStyle:{display:"inline-block",padding:"20px",background:"#F5F5F5"}},[t._v(" 在此处单击右键 ")])])],1)])},Oe=[],Re={data(){return{menuList:[[{name:"菜单1-1"},{name:"菜单1-2"}],[{name:"菜单2-1"},{name:"菜单2-2",submenu:[{name:"子菜单1-1"},{name:"子菜单1-2"}]},{name:"菜单2-3"}],{name:"菜单3-1"}]}},mounted(){},methods:{handle(t){console.log(t)}}},ze=Re,Ue=d(ze,He,Oe,!1,null,"cefe2f94",null),Ke=Ue.exports,We=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("div",{staticStyle:{"margin-bottom":"20px"}},[e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","root")}}},[t._v("获取根节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","selected")}}},[t._v("获取选中节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("getNode","checked")}}},[t._v("获取勾选节点")]),e("c-button",{staticClass:"api-handle",on:{click:function(e){return t.treeHandle("insertRoot")}}},[t._v("插入根节点")])],1),e("c-tree",{ref:"tree",attrs:{data:t.treeData,select:{expand:!0,unselect:!0},check:{clickCheck:!0}},on:{load:function(e){return t.treeHandle("load",arguments[0],arguments[1])},click:function(e){return t.treeHandle("click",e)},check:function(e){return t.treeHandle("check",e)}}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("tree"))}})])},je=[],Ve={data(){return{treeData:[{id:1,pId:0,name:"节点1"},{id:2,pId:0,name:"节点2"}]}},mounted(){},methods:{treeHandle(t,e,n){if(console.log(t,e),"load"==t){let t=[],i=this.$parent.random(2,6);for(let n=1;n<=i;n++)t.push({id:e.id.toString()+n,name:e.name+n,pId:e.id,leaf:this.$parent.random(0,9)>6});setTimeout(()=>{n(t)},500)}else if("getNode"==t)console.log(this.$refs.tree.getNode(e));else if("insertRoot"==t){let t=[],e=this.$refs.tree.getNode().length+1,n=e+this.$parent.random(2,6);for(let i=e;i<=n;i++)t.push({id:i,name:"节点"+i,pId:0,leaf:this.$parent.random(0,9)>6});this.$refs.tree.insertRoot(t)}}}},qe=Ve,Ye=d(qe,We,je,!1,null,"3dac96a0",null),Xe=Ye.exports,Ge=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("c-steps",{attrs:{steps:t.stepsList,active:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("steps"))}})])},Ze=[],Qe={data(){return{stepsList:[{name:"步骤一"},{name:"步骤二",message:"步骤描述"},{name:"步骤三",message:"步骤描述"},{name:"步骤四"}]}},mounted(){},methods:{}},Je=Qe,tn=d(Je,Ge,Ze,!1,null,"852e07c0",null),en=tn.exports,nn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"200px"}},[e("c-progress",{attrs:{type:"line",rate:[5,10],decimal:"1"}}),e("br"),e("br"),e("c-progress",{attrs:{type:"circle",rate:"44,111",decimal:"2"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("progress"))}})])},rn=[],on={data(){return{}},mounted(){},methods:{}},an=on,sn=d(an,nn,rn,!1,null,"7fc615f7",null),ln=sn.exports,cn=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{padding:"20px",background:"#FAFAFA"}},[e("c-qrcode",{attrs:{value:"qweqwqwe",margin:"20"}})],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("qrcode"))}})])},un=[],dn={data(){return{}},mounted(){},methods:{}},hn=dn,pn=d(hn,cn,un,!1,null,"77da1f1b",null),fn=pn.exports,mn=function(){var t=this,e=t._self._c;return e("div",[e("div",[e("p",[e("c-countdown",{ref:"cd",attrs:{icon:"",sec:"86400"},on:{end:t.endHandle}})],1),e("br"),e("c-button",{on:{click:function(e){return t.$refs.cd.setSec(10)}}},[t._v("10S")])],1),e("div",{staticClass:"doc",domProps:{innerHTML:t._s(t.$parent.loadDoc("countdown"))}})])},gn=[],vn={data(){return{}},mounted(){},methods:{endHandle(){console.log("end")}}},bn=vn,_n=d(bn,mn,gn,!1,null,"2e48d6ac",null),yn=_n.exports,wn=n("7c5c"),xn=n.n(wn),kn={name:"vueComponentLibrary",components:{apiButton:p,apiInput:_,apiOptions:D,apiSelector:B,apiSwitch:N,apiFile:K,apiEditor:X,apiLink:et,apiTooltip:st,apiTitle:pt,apiPagination:_t,apiTable:Dt,apiForm:Bt,apiDetail:Nt,apiPopup:Kt,apiDialog:Xt,apiWindow:ee,apiPreview:se,apiTab:pe,apiLayout:_e,apiModule:De,apiDragSort:Be,apiDropdown:Ne,apiRightMenu:Ke,apiTree:Xe,apiSteps:en,apiProgress:ln,apiQrcode:fn,apiCountdown:yn},data(){return{marked:xn.a,docTab:["按钮","输入框","单复选框","选择器","开关","文件","编辑器","链接","提示信息","标题","分页栏","表格","表单","详情","消息弹窗","会话弹窗","悬浮窗口","媒体预览","选项卡","布局","模块","拖拽排序","下拉菜单","右键菜单","树","步骤条","进度条","二维码","倒计时"],tabColor:["main","lesser","red","green","blue","yellow"],crtTab:qf.get("crt_tab")||"按钮"}},computed:{crtTabColor(){return this.crtTab,this.tabColor[Math.floor(Math.random()*this.tabColor.length)]},loadDoc(){return t=>xn.a.parse(n("5aa3")(`./${t}.md`).default)}},watch:{crtTab(t){qf.set("crt_tab",t)}},mounted(){window.$app=this},methods:{random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}}},Sn=kn,Dn=(n("5af5"),d(Sn,o,a,!1,null,null,null)),Cn=Dn.exports,En=function(){var t=this,e=t._self._c;return e("button",{staticClass:"c-button",style:t.compStyle,attrs:{color:t.color,hollow:t.hollow,disabled:!!t.disabled},on:{click:function(e){return t.$emit("click")},mouseenter:function(e){t.hoverState=!0},mouseleave:function(e){t.hoverState=!1}}},[e("div",{staticClass:"flex-center"},[t.prependIcon?e("i",{staticClass:"icon",class:t.prependIcon}):t._e(),e("span",[t._t("default")],2),t.appendIcon?e("i",{staticClass:"icon",class:t.appendIcon}):t._e()])])},An=[],Tn={name:"cButton",props:{size:{type:String,default:"normal"},color:{type:String,default:"normal"},hollow:Boolean,disabled:Boolean,prependIcon:String,appendIcon:String},data(){return{hoverState:!1}},computed:{sizeStyle(){return this.$compsConfig.style.buttonSize[this.size]||{}},colorStyle(){let t=this.$compsConfig.color[this.color];if(!t)return{};let e=t[this.hoverState?1:0];return{"border-color":e,color:this.hollow?e:"#fff",background:this.hollow?"#fff":e}},compStyle(){return Object.assign({},this.sizeStyle,this.colorStyle)}}},Fn=Tn,Bn=(n("25f9"),d(Fn,En,An,!1,null,"ff8f74d6",null)),$n=Bn.exports,Ln=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:"hidden"!=t.type,expression:"type != 'hidden'"}],staticClass:"c-input",class:{"c-textarea":"textarea"==t.type,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},["textarea"==t.type?[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",style:{resize:!0===t.heightResize?"vertical":"none"},attrs:{rows:"1",placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.changeHandle}}),t.maxlength?e("span",{staticClass:"c-input-length",style:{right:!0===t.heightResize?"20px":"5px"}},[t._v(t._s(t.valueData.length)+" / "+t._s(t.maxlength))]):t._e()]:e("div",{staticClass:"flex"},[t.$scopedSlots.prependText||t.prependText?e("div",{staticClass:"c-input-text flex-center"},[t._t("prependText"),e("span",[t._v(t._s(t.$t(t.prependText)))])],2):t._e(),"stepper"==t.type&&"both"==t.stepControls?e("button",{staticClass:"c-input-step flex-center",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e(),e("div",{staticClass:"flex-center flex-grow"},[t.$scopedSlots.prepend?e("div",{staticClass:"c-input-content"},[t._t("prepend")],2):t._e(),t.$scopedSlots.prependIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("prependIcon")],2):t._e(),"checkbox"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"checkbox"},domProps:{checked:Array.isArray(t.valueData)?t._i(t.valueData,null)>-1:t.valueData},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){var n=t.valueData,i=e.target,r=!!i.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);i.checked?a<0&&(t.valueData=n.concat([o])):a>-1&&(t.valueData=n.slice(0,a).concat(n.slice(a+1)))}else t.valueData=r},t.changeHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):"radio"===t.compType?e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:"radio"},domProps:{checked:t._q(t.valueData,null)},on:{input:t.inputHandle,focus:t.inputHandle,blur:t.inputHandle,change:[function(e){t.valueData=null},t.changeHandle],keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],ref:"input",staticClass:"flex-grow",style:{"text-align":t.alignCenter?"center":"left"},attrs:{placeholder:t.$t(t.placeholder),maxlength:t.maxlength,disabled:t.disabled,readonly:t.readonly,autocomplete:"off",type:t.compType},domProps:{value:t.valueData},on:{input:[function(e){e.target.composing||(t.valueData=e.target.value)},t.inputHandle],focus:t.inputHandle,blur:t.inputHandle,change:t.changeHandle,keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.enterHandle.apply(null,arguments)}}}),t.clear&&t.valueData&&!t.readonly?e("a",{staticClass:"c-input-icon clear flex-center",on:{click:t.clearHandle}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t.visible?e("a",{staticClass:"c-input-icon flex-center",on:{click:function(e){t.visibleState=!t.visibleState}}},[e("i",{staticClass:"c-icon-eyes",class:{"c-icon-eyes-close":t.visibleState}})]):t._e(),t.$scopedSlots.appendIcon?e("span",{staticClass:"c-input-icon flex-center"},[t._t("appendIcon")],2):t._e(),t.$scopedSlots.append?e("div",{staticClass:"c-input-content"},[t._t("append")],2):t._e()]),e("div",{staticClass:"flex-column"},["stepper"==t.type?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.maxRange&&t.maxRange==t.valueData},on:{click:function(e){return t.stepHandle(1)}}},[e("i",{staticClass:"c-icon-plus"})]):t._e(),"stepper"==t.type&&"side"==t.stepControls?e("button",{staticClass:"c-input-step flex-center flex-grow",class:{"z-dis":""!==t.valueData&&!1!==t.minRange&&t.minRange==t.valueData},on:{click:function(e){return t.stepHandle(-1)}}},[e("i",{staticClass:"c-icon-minus"})]):t._e()]),t.$scopedSlots.appendText||t.appendText||t.unit?e("div",{staticClass:"c-input-text flex-center"},[t._t("appendText"),e("span",[t._v(t._s(t.$t(t.appendText||t.unit)))])],2):t._e()]),t._events.suggest?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition&&t.suggestList.length,expression:"listPosition && suggestList.length"}],ref:"list",staticClass:"c-input-suggest",style:t.listPosition,on:{mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{options:t.suggestList},on:{click:t.set}})],1):t._e()],2)},In=[];function Mn(t,e){var n=window.getComputedStyle(t,null);return n[e]}function Pn(t,e){var n=t.parentNode;if(n)return n===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?e(window.document.body):e(window):((["scroll","auto"].includes(Mn(n,"overflow"))||["scroll","auto"].includes(Mn(n,"overflow-x"))||["scroll","auto"].includes(Mn(n,"overflow-y")))&&e(n),Pn(t.parentNode,e))}var Nn=n("8bbf"),Hn=n.n(Nn);function On(t,e={}){let{computed:n,watch:i,methods:r}=e;const o="function"==typeof t?t:Hn.a.extend({data(){return t},computed:n,watch:i,methods:{...r,commit(t,e){this[t]=e}}});return new o({i18n:Uf})}function Rn(t,e="store"){let n;return function t(i){i&&(i[e]?n=i[e]:t(i.$parent))}(t),{[e]:n||{commit:function(){}}}}function zn(t,e){"string"!=typeof t&&(e=t,t="store");const n={};if(e.constructor==Array)e.forEach(e=>{n[e]={get(){try{return this[t][e]}catch(n){return}},set(){}}});else for(let i in e)n[i]={get(){return e[i](this[t])},set(){}};return n}const Un={render(t){return t("div",[this.options.map(e=>[t("div",{class:"flex-center-cross c-input-suggest-item flex-center-cross",attrs:{title:this.$t(e)},on:{click:()=>this.clickHandle(e)}},[t("p",{class:"ellipsis flex-grow"},[this.$t(e)])])])])},props:{options:Array},methods:{clickHandle(t){this.$emit("click",t),this.$parent.blurHandle()}}};var Kn={name:"cInput",components:{selectList:Un},props:{type:{type:String,default:"text"},value:[Number,String],name:String,placeholder:String,maxlength:[Number,String],decimal:[Number,String],range:[String,Array],disabled:Boolean,readonly:Boolean,alignCenter:Boolean,prependText:String,appendText:String,unit:String,visible:Boolean,clear:{type:Boolean,default:!0},step:{type:[String,Number],default:1},stepControls:{type:String,default:"both"},heightResize:{type:[Boolean,String],default(){return this.$compsConfig.config.input.heightResize}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:"",visibleState:!1,listPosition:!1,suggestList:[],active:!1}},computed:{...zn("cFormStore",["submitHandle"]),...zn("cFormItemStore",["warnState"]),compType(){return"number"==this.type||this.visibleState?"text":this.type},compRange(){return!!this.range&&("string"==typeof this.range?this.range.split(","):this.range)},minRange(){return"object"==typeof this.compRange&&2==this.compRange.length&&parseFloat(this.compRange[0])},maxRange(){return!1!==this.compRange&&parseFloat(this.compRange[1])},compDecimal(){return!!["number","stepper"].includes(this.type)&&(parseInt(this.decimal)||0)}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get()),this.$nextTick(this.updateHeight)},compDecimal(){this.inputHandle({type:"blur"})}},mounted(){this.set(this.value),this._events.suggest&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this._events.suggest&&document.body.removeChild(this.$refs.list)},methods:{set(t=""){t=t||0===t?t:"",this.valueData=t.toString().trim(),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData.toString().trim()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},inputHandle(t){if(this.cFormItemStore.commit("warnState",!1),!1!==this.compDecimal){var e=[["^(-?)0?(\\d+)$","$1$2"],["^(-?)\\.$","$1"],["\\.(\\d*)\\.+",".$1"],["^(\\d+\\.?\\d*)-+","$1"],["^(-\\d*\\.?\\d*)-+","$1"],["^(-?\\d+\\.\\d{"+this.compDecimal+"}).+","$1"],[this.compDecimal?"[^-\\d\\.]+$":"[^-\\d]+$",""]];e.forEach(t=>{this.valueData=this.valueData.toString().replace(new RegExp(t[0]),t[1])}),""!==this.valueData&&"blur"==t.type&&(this.valueData=this.valueData.toString().replace(this.compDecimal?/[^-\d\.]+/g:/[^-\d]+/g,""),!1!==this.minRange&&this.valueData<this.minRange&&(this.valueData=this.minRange),!1!==this.maxRange&&this.valueData>this.maxRange&&(this.valueData=this.maxRange))}"input"!=t.type?(this.$emit(t.type,this.get()),"focus"==t.type?this._events.suggest&&(this.suggestHandle(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)})):"blur"==t.type&&this.blurHandle(t)):this.suggestHandle()},blurHandle(t){t&&this.active||(this.listPosition=!1,this.suggestList=[],window.removeEventListener("click",this.blurHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)})},clearHandle(){this.valueData="",this.suggestHandle(),this.focus(),this.changeHandle()},enterHandle(){this.$emit("enter",this.get()),this.submitHandle&&this.submitHandle()},suggestHandle(){this.valueData?this.$emit("suggest",this.valueData,t=>{this.suggestList=t,this.$nextTick(this.updatePosition)}):this.suggestList=[]},stepHandle(t){let e=this.valueData.toString().split(".")[1]||"",n=this.step.toString().split(".")[1]||"",i=n.length>e.length?n.length:e.length;this.valueData=parseFloat(((parseFloat(this.valueData)||0)+t*parseFloat(this.step)).toFixed(i)),this.inputHandle({type:"blur"}),this.changeHandle()},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<300?this.$refs.list.offsetHeight:300,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+this.$el.offsetHeight-1)+"px",width:this.$el.offsetWidth+"px","max-height":this.parsePixel(300,!0)}},updateHeight(){"textarea"==this.type&&"auto"==this.heightResize&&(this.$refs.input.style.height="auto",this.$refs.input.style.height=this.$refs.input.scrollHeight+"px")}}},Wn=Kn,jn=(n("5e90"),d(Wn,Ln,In,!1,null,"0cd68ede",null)),Vn=jn.exports,qn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio",class:{"z-chk":t.checkState,"z-dis":t.disabledState},on:{click:t.checkHandle}},[e("div",{staticClass:"c-radio-check"}),t.$slots.default?e("div",{staticClass:"c-radio-content"},[t._t("default")],2):t._e()])},Yn=[],Xn={name:"cRadio",props:{value:[Number,String],disabled:Boolean},data(){return{store:this.$parent.store}},computed:{...zn(["valueData","groupDisabled"]),checkState(){return this.valueData==this.value},disabledState(){return this.groupDisabled||this.disabled}},methods:{checkHandle(){this.disabledState||this.checkState||this.$parent.changeHandle(this.value)},changeHandle(t){this.$emit("change",t)}}},Gn=Xn,Zn=(n("647a"),d(Gn,qn,Yn,!1,null,"1ef111e6",null)),Qn=Zn.exports,Jn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-radio-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-radio",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},ti=[],ei={name:"cRadioGroup",props:{value:[String,Number],name:String,disabled:Boolean,options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({valueData:this.value,groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},disabled(t){this.store.commit("groupDisabled",t)}},methods:{set(t=""){this.store.commit("valueData",t),this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(t){this.$children.forEach(e=>{(e.checkState||e.value==t)&&e.changeHandle(e.value==t)}),this.store.commit("valueData",t),this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},ni=ei,ii=(n("0a75"),d(ni,Jn,ti,!1,null,"1345d698",null)),ri=ii.exports,oi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox",class:{"z-chk":t.checkState,"z-dis":t.disabledState},style:{height:t.parsePixel(t.size,!0)},on:{click:function(e){return t.checkHandle(!t.checkState)}}},[e("div",{staticClass:"c-checkbox-check",style:{width:t.parsePixel(t.size,!0),height:t.parsePixel(t.size,!0),"line-height":t.parsePixel(t.size,!0),"font-size":t.parsePixel(t.iconSize,!0)}},[t.half?e("i",{staticClass:"c-icon-check-half"}):t.checkState?e("i",{staticClass:"c-icon-check"}):t._e()]),t.$slots.default?e("div",{staticClass:"c-checkbox-content"},[t._t("default")],2):t._e()])},ai=[],si={name:"cCheckbox",props:{value:[Number,String,Boolean],disabled:Boolean,half:Boolean,size:{type:[Number,String],default:20}},data(){let t="cCheckboxGroup"==this.$parent.$options.name;return{selfChecked:!!this.value,inGroup:t,store:t?this.$parent.store:void 0}},computed:{...zn(["valueData","limit","groupDisabled"]),parseValueData(){return"object"==typeof this.valueData?Array.from(this.valueData,t=>t.toString()):this.valueData.toString()?this.valueData.toString().split(","):[]},checkState(){return this.inGroup?this.parseValueData.includes(this.value.toString()):this.selfChecked},disabledState(){return this.inGroup&&this.groupDisabled||this.disabled},overflow(){return!this.checkState&&this.limit>0&&this.parseValueData.length>=this.limit},iconSize(){return parseInt(this.size)<20?12:13}},watch:{value(t){this.selfChecked=!!t,this.store&&this.store.updateValueData()}},mounted(){this.store&&this.store.updateValueData()},beforeDestroy(){this.store&&this.store.updateValueData()},methods:{checkHandle(t){if(!this.disabledState){if(this.inGroup){if(this.overflow)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.limit})});let e;t?e=this.parseValueData.concat([this.value.toString()]):(e=this.parseValueData.join(",").split(","),e.splice(e.indexOf(this.value.toString()),1)),this.store.commit("valueData","object"==typeof this.valueData?e:e.join(",")),this.$parent.changeHandle()}else this.selfChecked=t,this.$emit("input",t);this.$emit("change",t)}}}},li=si,ci=(n("5d56"),d(li,oi,ai,!1,null,"2b8f077c",null)),ui=ci.exports,di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-checkbox-group",attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)}}},[t.$slots.default?t._t("default"):t._l(t.options,(function(n,i){return e("c-checkbox",{key:i,attrs:{value:n.value}},[t._v(t._s(t.$t(n.name)))])}))],2)},hi=[],pi={name:"cCheckboxGroup",props:{value:{type:[String,Number,Array],default:""},name:String,disabled:Boolean,limit:[String,Number],options:Array},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({updateValueData:Wf(()=>{this.set(this.valueData.filter(t=>!!this.$children.find(e=>"cCheckbox"==e.$options.name&&e.value.toString()==t.toString())))},10),valueData:[],limit:parseInt(this.limit),groupDisabled:this.disabled})}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["valueData"])},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},limit(t){this.store.commit("limit",t)},disabled(t){this.store.commit("groupDisabled",t)}},mounted(){this.set(this.value)},methods:{set(t){t||(t=[]),"string"==typeof t&&(t=t.split(",")),this.store.commit("valueData",t),this.valueData.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},fi=pi,mi=(n("830f"),d(fi,di,hi,!1,null,"cca96b80",null)),gi=mi.exports,vi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-select",class:{"z-active":t.listPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState,"auto-height":t.multiple&&t.multipleConfig.linefeed&&!t.emptyState},on:{click:t.developHandle,mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-select-main flex-between-center"},[e("div",{ref:"value",staticClass:"flex-grow flex-center-cross",class:{"flex-wrap":t.multipleConfig.linefeed,"c-select-tag":t.multiple&&!t.emptyState}},[t.multiple&&!t.emptyState?t._l(t.currentData,(function(n,i){return e("div",{key:i,staticClass:"c-select-tag-item flex-center"},[e("span",{staticClass:"ellipsis",attrs:{title:t.$t(n.name)}},[t._v(t._s(t.$t(n.name)))]),t.disabled?t._e():e("a",{staticClass:"c-icon-cross",on:{click:function(e){return e.stopPropagation(),t.deleteValue(n)}}})])})):t._e(),t.searchConfig?e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchValue,expression:"searchValue"}],ref:"input",staticClass:"c-select-input flex-grow",attrs:{disabled:t.disabled,placeholder:t.emptyState?t.$t(t.placeholder):t.multiple?"":t.valueName,autocomplete:"off"},domProps:{value:t.searchValue},on:{input:[function(e){e.target.composing||(t.searchValue=e.target.value)},t.asyncSearchDebounceHandle]}}):t._e(),!t.emptyState&&t.multiple||t.searchConfig?t._e():e("span",{staticClass:"c-select-current flex-grow ellipsis",class:{"z-empty":t.emptyState},attrs:{title:t.emptyState?t.$t(t.placeholder):t.valueName}},[t._v(t._s(t.emptyState?t.$t(t.placeholder):t.valueName))])],2),t.clear&&!t.emptyState?e("a",{staticClass:"c-select-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),e("span",{staticClass:"c-select-icon flex-center"},[t.$scopedSlots.icon?t._t("icon"):e("i",{staticClass:"c-icon-angle-down"})],2)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-select-options",style:t.listPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("select-list",{ref:"options",attrs:{async:t.asyncState,options:t.optionsList,disableOptions:t.disableOptions,multiple:!!t.multiple,add:t.searchConfig.add},on:{search:t.searchFocus},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}})],1)])},bi=[];function _i(t,e,n=0){var i=[];return e&&e.map(e=>{(this.async||!this.keyword||this.$t(e.name).toLocaleLowerCase().includes(this.keyword.toLocaleLowerCase()))&&(i=i.concat(this.$parent.$scopedSlots.option?[t("div",{class:"c-select-options-custom",on:{click:()=>this.clickHandle(e)}},[this.$parent.$scopedSlots.option({data:e,selected:this.currentDataValue.includes(e.value.toString()),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)})])]:[t("div",{class:"flex-center-cross c-select-options-item "+(this.currentDataValue.includes(e.value.toString())?"z-crt":""),attrs:{title:this.$t(e.name),disabled:-1!=this.disableOptions.findIndex(t=>t==e.value)},on:{click:()=>this.clickHandle(e)}},[n?[t("div",{class:"c-select-options-item-level c-icon-level-line",style:`margin-left: ${20*(n-1)}px;`})]:[],t("p",{class:"ellipsis flex-grow"},[this.$t(e.name)]),this.multiple?[t("i",{class:"c-select-options-item-check c-icon-check"})]:[]])])),i=i.concat(_i.call(this,t,e.children,n+1))}),i}const yi={render(t){return t("div",[this.undefinedOption?[t("div",{class:"flex-center-cross c-select-options-item c-select-options-add",on:{click:()=>this.addHandle()}},[t("i",{class:"c-select-options-add-icon c-icon-add"}),t("span",[this.$t("_t.select.add")])])]:[],_i.call(this,t,this.options)])},props:{async:Boolean,options:Array,disableOptions:Array,multiple:Boolean,add:Boolean,value:String},data(){return{store:this.$parent.store}},computed:{...zn(["currentValue","currentData"]),keyword(){return this.value.trim()},currentDataValue(){return this.currentData.map(t=>t.value.toString())},undefinedOption(){if(this.add&&this.keyword)return!this.options.find(t=>this.$t(t.name)==this.keyword)}},watch:{currentValue(){this.updateCurrentData()},options(){this.async||this.updateCurrentData()}},mounted(){this.updateCurrentData()},methods:{updateCurrentData(){let t=[],e="object"==typeof this.currentValue?this.currentValue.map(t=>t.toString()):this.currentValue.toString().split(",");e.length&&function n(i){i.forEach(i=>{e.includes(i.value.toString())&&t.push(i),i.children&&n(i.children)})}(this.async?this.currentData:this.options),this.store.commit("currentData",t)},clickHandle(t){if(-1==this.disableOptions.findIndex(e=>e==t.value))if(this.multiple){let e,n=this.currentData.findIndex(e=>e.value==t.value);if(-1!=n)e=this.currentData.map(t=>t),e.splice(n,1);else{if(this.currentData.length>=this.$parent.multipleConfig.limit)return void this.$message({message:this.$t("_t.select.upperLimit",{count:this.$parent.multipleConfig.limit})});e=this.currentData.concat([t])}this.store.commit("currentData",e);let i=e.map(t=>t.value);this.store.commit("currentValue","object"==typeof this.currentValue?i:i.join(",")),this.$parent.changeHandle(),this.$emit("input",""),this.$emit("search")}else this.currentDataValue.includes(t.value.toString())||(this.store.commit("currentData",[t]),this.store.commit("currentValue",t.value),this.$parent.changeHandle()),this.$parent.foldHandle()},addHandle(){this.$parent.addHandle(this.keyword)}}};var wi={name:"cSelect",components:{selectList:yi},props:{async:Boolean,value:{type:[String,Number,Array],default:""},valueData:Array,name:String,placeholder:{type:String,default:"_t.select.placeholder"},options:{type:[Array,String],default:()=>[]},disableOptions:{type:Array,default(){return[]}},listWidth:[Number,String],listHeight:{type:[Number,String],default:300},disabled:Boolean,clear:{type:Boolean,default:!0},multiple:[Boolean,Object],search:{type:[Boolean,Object],default(){return this.$compsConfig.config.select.search}}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),store:On({currentValue:this.multiple?[]:"",currentData:[]}),optionsList:[],listPosition:!1,active:!1,searchValue:""}},computed:{...zn("cFormItemStore",["warnState"]),...zn(["currentValue","currentData"]),multipleConfig(){return!!this.multiple&&Object.assign({limit:1/0,linefeed:!1},"object"==typeof this.multiple?this.multiple:{})},searchConfig(){return!this._events.customEvent&&(!(!this.asyncState&&!this.search)&&Object.assign({empty:!0,add:!1},"object"==typeof this.search?this.search:{}))},valueName(){return this.currentData[0]?this.$t(this.currentData[0].name):""},emptyState(){return!this.currentValue&&0!==this.currentValue||this.multiple&&!this.currentValue.length},asyncState(){return this.async||!!this._events.customEvent}},watch:{value(t){this.set(t)},currentValue(){this.$emit("input",this.get())},currentData(){this.multipleConfig&&this.multipleConfig.linefeed&&this.listPosition&&this.updatePosition()},valueName(t){this.searchConfig&&!this.multiple&&(this.searchValue=t)},valueData(t){this.asyncState&&this.setValueData(t)},options(){this.asyncState||this.getOptionsList()},optionsList(t,e){if(!this.asyncState&&e.length){let e=Array.isArray(this.currentValue)?this.currentValue:[this.currentValue];e=e.filter(e=>t.find(t=>t.value==e)),this.set(e.join(","))}},searchValue(){this.$nextTick(()=>{this.listPosition&&this.updatePosition()})}},mounted(){this.asyncState?this.setValueData(this.valueData):(this.set(this.value),this.getOptionsList()),document.body.appendChild(this.$refs.list)},beforeDestroy(){document.body.removeChild(this.$refs.list)},methods:{set(t){t||0===t||(t=this.multiple?[]:""),this.multiple&&!Array.isArray(t)&&(t=t.toString().split(",")),this.store.commit("currentValue",t),Array.isArray(this.currentValue)?this.currentValue.length&&this.cFormItemStore.commit("warnState",!1):this.currentValue&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.multiple?this.currentData:this.currentData[0]||{}},setValueData(t){t&&(this.store.commit("currentData",t),this.set(this.multiple?t.map(t=>t.value):t[0]?t[0].value:""))},getOptionsList(){Array.isArray(this.options)?this.optionsList=JSON.parse(JSON.stringify(this.options)):this.$compsConfig.data.options[this.options]&&this.$compsConfig.data.options[this.options]("",t=>{this.optionsList=t})},developHandle(){this.cFormItemStore.commit("warnState",!1),this.disabled||(this._events.customEvent?this.$emit("customEvent",this.currentData,t=>{this.multiple?this.setValueData(t):this.setValueData(Array.isArray(t)?[t[0]]:[t]),this.changeHandle()}):this.listPosition?this.foldHandle():(this.searchFocus(),this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.asyncState&&this.searchConfig.empty&&this.asyncSearchHandle(),this.$refs.value.scrollLeft=9999))},foldHandle(t){t&&this.active||this._events.customEvent||(this.searchFocus(!1),this.searchValue=this.searchConfig&&!this.multiple?this.valueName:"",this.listPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.asyncState&&(this.optionsList=[]),this.$refs.value.scrollLeft=0)},searchFocus(t=!0){this.searchValue="",this.$nextTick(()=>{this.$refs.input&&this.$refs.input[t?"focus":"blur"]()})},asyncSearchHandle(){this.asyncState&&(this.searchConfig.empty||this.searchValue.trim()?this.searchConfig.options?this.$compsConfig.data.options[this.searchConfig.options](this.searchValue.trim(),t=>{this.optionsList=t||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.$emit("search",this.searchValue.trim(),t=>{this.optionsList=JSON.parse(JSON.stringify(t))||[],this.listPosition&&this.$nextTick(this.updatePosition)}):this.optionsList=[])},asyncSearchDebounceHandle:Wf((function(){this.asyncSearchHandle()}),300),deleteValue(t){this.currentValue.splice(this.currentValue.findIndex(e=>e==t.value),1),this.changeHandle(),this.searchFocus()},clearHandle(){this.set("object"==typeof this.currentValue?[]:""),this.changeHandle(),this.listPosition&&this.searchFocus()},changeHandle(){this.$nextTick(()=>{this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)})},addHandle(t){this.$emit("add",t,t=>{t&&(this.optionsList.push(t),this.$refs.options.clickHandle(t))})},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.list.offsetHeight<this.listHeight?this.$refs.list.offsetHeight:this.listHeight,n=window.innerHeight-t.bottom<e;this.listPosition={left:t.left+"px",top:window.scrollY+(n?t.top-e+1:t.top+t.height-1)+"px",width:(this.listWidth||t.width)+"px","max-height":this.parsePixel(this.listHeight,!0)}}}},xi=wi,ki=(n("a624"),d(xi,vi,bi,!1,null,"2a3afe98",null)),Si=ki.exports,Di=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-region",attrs:{warn:!!t.provinceName&&t.warnState}},[e("div",{staticClass:"flex"},[t.level>=1?e("c-select",{ref:"province",staticClass:"flex-grow",attrs:{options:t.provinceOptions,placeholder:"_t.region.province",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"province")}},model:{value:t.valueData.province,callback:function(e){t.$set(t.valueData,"province",e)},expression:"valueData.province"}}):t._e(),t.level>=2?e("c-select",{ref:"city",staticClass:"flex-grow",attrs:{options:t.cityOptions,placeholder:"_t.region.city",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"city")}},model:{value:t.valueData.city,callback:function(e){t.$set(t.valueData,"city",e)},expression:"valueData.city"}}):t._e(),t.level>=3?e("c-select",{ref:"county",staticClass:"flex-grow",attrs:{options:t.countyOptions,placeholder:"_t.region.county",search:"",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"county")}},model:{value:t.valueData.county,callback:function(e){t.$set(t.valueData,"county",e)},expression:"valueData.county"}}):t._e()],1),4==t.level?e("c-input",{attrs:{placeholder:"_t.region.address",disabled:t.disabled},on:{change:function(e){return t.changeHandle(e,"address")}},model:{value:t.valueData.address,callback:function(e){t.$set(t.valueData,"address",e)},expression:"valueData.address"}}):t._e()],1)},Ci=[],Ei={name:"cRegion",props:{value:{type:Object,default:()=>({})},provinceName:String,cityName:String,countyName:String,addressName:String,level:{type:[Number,String],default:3},disabled:Boolean,immediate:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormItemStore"),valueData:{province:"",city:"",county:"",address:""},provinceOptions:[],cityOptions:[],countyOptions:[]}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},async mounted(){this.immediate&&await this.updateOptions("province"),this.set(this.value)},methods:{async set(t={}){this.valueData.province=t.province,await this.updateOptions("city",t.province,t.city),await this.updateOptions("county",t.city,t.county),this.valueData.address=t.address||""},get(){return this.valueData},getData(){return{province:this.$refs.province.getData(),city:this.$refs.city&&this.$refs.city.getData(),county:this.$refs.county&&this.$refs.county.getData(),address:this.valueData.address}},async resetOptions(t){this.cityOptions=[],this.countyOptions=[],await this.updateOptions("province",t),this.set(this.valueData)},updateOptions(t,e,n){return new Promise(async i=>{("province"==t||"city"==t&&this.level>1||"county"==t&&this.level>2)&&(this[t+"Options"]=[],(e||"province"==t)&&(this[t+"Options"]=await new Promise(n=>{let i;i="province"!=t?this[("county"==t?"city":"province")+"Options"].find(t=>t.value==e)||{value:e}:e,this.$compsConfig.data.region(t,i,n)})),"province"!=t&&(this.valueData[t]=n),(1==this.level||2==this.level&&"city"==t||3==this.level&&"county"==t)&&this.$emit("input",this.get())),i()})},changeHandle(t,e){"province"==e?(this.updateOptions("city",t.value),this.updateOptions("county")):"city"==e?this.updateOptions("county",t.value):this.$emit("input",this.get()),this.$emit("change",this.get())}}},Ai=Ei,Ti=(n("8def"),d(Ai,Di,Ci,!1,null,"586236aa",null)),Fi=Ti.exports,Bi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-datetime",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!(t.name||t.startName||t.endName)&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-datetime-main flex-center"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputStart,expression:"inputStart"}],ref:"start",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.range?t.placeholder[0]:t.placeholder),disabled:t.disabled},domProps:{value:t.inputStart},on:{change:function(e){return t.inputHandle("start")},click:function(e){return t.developHandle("start")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputStart=e.target.value)}}}),t.range?e("span",{staticClass:"c-datetime-line"},[t._v("-")]):t._e(),t.range?e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputEnd,expression:"inputEnd"}],ref:"end",staticClass:"flex-grow",attrs:{placeholder:t.$t(t.placeholder[1]),disabled:t.disabled},domProps:{value:t.inputEnd},on:{change:function(e){return t.inputHandle("end")},click:function(e){return t.developHandle("end")},blur:t.blurHandle,input:function(e){e.target.composing||(t.inputEnd=e.target.value)}}}):t._e(),t.clear&&(t.start||t.end)?e("a",{staticClass:"c-datetime-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e(),t._m(0)]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-datetime-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-datetime-picker",{ref:"picker",attrs:{type:t.type,timeAccuracy:t.timeAccuracy,start:"end"==t.inputType?t.start:"",end:"start"==t.inputType?t.end:"",format:t.format},on:{input:t.setDate}})],1)])},$i=[function(){var t=this,e=t._self._c;return e("span",{staticClass:"c-datetime-icon flex-center"},[e("i",{staticClass:"c-icon-calendar"})])}],Li={name:"cDatetime",props:{value:[String,Array],name:String,startName:String,endName:String,type:{type:String,default:"datetime"},timeAccuracy:{type:String,default:"sec"},range:Boolean,disabled:Boolean,placeholder:{type:[String,Array],default(){return this.range?["_t.datetime.placeholderStart","_t.datetime.placeholderEnd"]:"_t.datetime.placeholder"}},defaultTime:{type:[String,Array],default(){return this.range?["00:00:00","23:59:59"]:"00:00:00"}},format:{type:String,default(){return{datetime:"yyyy-MM-dd hh:mm:ss",date:"yyyy-MM-dd",time:"hh:mm:ss"}[this.type]}},clear:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),start:"",end:"",inputType:"",inputStart:"",inputEnd:"",pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"]),valueData(){return this.range?[this.start,this.end]:this.start}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())},inputType(t,e){t?(this.blurHandle(),this.updatePosition()):this.$refs[e].blur()}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t=""){this.range?(this.inputStart=this.start=t&&t[0]||"",this.inputEnd=this.end=t&&t[1]||"",(this.start||this.end)&&this.cFormItemStore.commit("warnState",!1)):(this.inputStart=this.start=t,this.start&&this.cFormItemStore.commit("warnState",!1))},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},developHandle(t){this.disabled||(this.inputType=t,this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$refs.picker.set(this[this.inputType]||(new Date).format("yyyy-MM-dd "+(this.range?this.defaultTime["end"==t?1:0]:this.defaultTime))))},foldHandle(t){t&&this.active||(this.inputType="",this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.range?this.$refs.end.getBoundingClientRect():null,n=this.$refs.pickerBox.getBoundingClientRect(),i="end"==this.inputType?e.left-8:t.left,r=window.innerWidth-i-20,o=window.innerHeight-t.bottom<n.height;this.pickerPosition={left:(r<n.width?i+r-n.width:i)+"px",top:window.scrollY+(o?t.top-n.height+1:t.top+t.height-1)+"px"}},blurHandle(){this.inputType&&this.$refs[this.inputType].focus()},inputHandle(t){let e="end"==t?"inputEnd":"inputStart",n=this.$refs.picker.parseDate(this[e])||[],i=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`);this[e]="Invalid Date"==i?this[t]:this[t]=new Date(`${n[0]}-${n[1]}-${n[2]} ${n[3]}:${n[4]}:${n[5]}`).format(this.format)},clearHandle(){this.set(""),this.changeHandle()},setDate(t){"start"==this.inputType?(this.start=t,this.inputStart=t,this.range&&!this.end?this.developHandle("end"):(this.inputType="",this.foldHandle())):(this.end=t,this.inputEnd=t,this.start?(this.inputType="",this.foldHandle()):this.developHandle("start")),this.changeHandle()}}},Ii=Li,Mi=(n("d0f7"),d(Ii,Bi,$i,!1,null,"7d4bf2fb",null)),Pi=Mi.exports,Ni=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-color",class:{"z-active":t.pickerPosition,"z-dis":t.disabled},attrs:{warn:!!t.name&&t.warnState},on:{click:function(e){return t.cFormItemStore.commit("warnState",!1)},mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("div",{staticClass:"c-color-main flex-center",on:{click:t.developHandle}},[e("div",{staticClass:"c-color-preview",style:{background:t.valueData}}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.valueData,expression:"valueData"}],staticClass:"flex-grow",attrs:{disabled:t.disabled},domProps:{value:t.valueData},on:{blur:function(e){return t.set(t.valueData)},input:function(e){e.target.composing||(t.valueData=e.target.value)}}}),t.clear&&t.valueData?e("a",{staticClass:"c-color-clear flex-center",on:{click:function(e){return e.stopPropagation(),t.clearHandle.apply(null,arguments)}}},[e("i",{staticClass:"c-icon-clear"})]):t._e()]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.pickerPosition,expression:"pickerPosition"}],ref:"pickerBox",staticClass:"c-color-selector",style:t.pickerPosition,on:{click:t=>t.stopPropagation(),mouseenter:function(e){t.active=!0},mouseleave:function(e){t.active=!1}}},[e("c-color-picker",{ref:"picker",on:{input:t.pickerHandle}})],1)])},Hi=[],Oi={name:"cColor",props:{value:String,name:String,disabled:Boolean,clear:{type:Boolean,default:!0}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.value,pickerPosition:!1,active:!1}},computed:{...zn("cFormItemStore",["warnState"])},watch:{value(t){this.set(t)}},mounted(){this.set(this.value),document.body.appendChild(this.$refs.pickerBox)},beforeDestroy(){document.body.removeChild(this.$refs.pickerBox)},methods:{set(t){t?(this.$refs.picker.set(t),this.cFormItemStore.commit("warnState",!1)):this.valueData=""},get(){return this.valueData},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)},clearHandle(){this.set("")},developHandle(t){this.disabled||(this.listPosition=!0,this.$nextTick(this.updatePosition),window.addEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.addEventListener("scroll",this.updatePosition)}))},foldHandle(t){t&&this.active||(this.pickerPosition=!1,window.removeEventListener("click",this.foldHandle,!0),Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}))},updatePosition(){let t=this.$el.getBoundingClientRect(),e=this.$refs.pickerBox.getBoundingClientRect(),n=window.innerWidth-t.left-20,i=window.innerHeight-t.bottom<e.height;this.pickerPosition={left:(n<e.width?t.left+n-e.width:t.left)+"px",top:window.scrollY+(i?t.top-e.height+1:t.top+t.height-1)+"px"}},pickerHandle(t){this.valueData=t,this.$emit("input",this.get()),this.changeHandle()}}},Ri=Oi,zi=(n("c21e"),d(Ri,Ni,Hi,!1,null,"5470b092",null)),Ui=zi.exports,Ki=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-transfer flex-center-cross"},[e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[0]))]),t.searchConfig?e("dd",[e("div",{staticClass:"c-transfer-search flex-center"},[e("c-input",{staticClass:"flex-grow",attrs:{type:"text",placeholder:t.$t(t.searchConfig.placeholder)},on:{input:t.searchDebounceHandle},scopedSlots:t._u([{key:"appendIcon",fn:function(){return[e("i",{staticClass:"c-icon-search"})]},proxy:!0}],null,!1,2573559812),model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]):t._e(),e("dd",{staticClass:"flex-grow"},[t._l(t.options,(function(n,i){return[e("div",{directives:[{name:"show",rawName:"v-show",value:t.async||!t.keyword||t.$t(n.name).toLocaleLowerCase().includes(t.keyword.toLocaleLowerCase()),expression:"async || !keyword || $t(item.name).toLocaleLowerCase().includes(keyword.toLocaleLowerCase())"}],key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)},on:{click:function(e){return t.transferHandle(n)}}},[e("c-checkbox",{attrs:{value:!!t.currentOptions.find(t=>t.value==n.value),readonly:""}}),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))])],1)]}))],2)]),e("dl",{staticClass:"flex-column flex-grow",style:{height:t.parsePixel(t.height,!0)},attrs:{warn:!!t.name&&t.warnState}},[e("dt",[t._v(t._s(t.compTitle[1]))]),e("dd",{staticClass:"flex-grow"},[e("c-drag-sort",{attrs:{disabled:!t.sort},on:{sort:t.sortHandle},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i}){return[e("c-drag-item",{key:i,staticClass:"c-transfer-option flex-center",attrs:{title:t.$t(n.name)}},[e("c-drag-handle",[e("i",{staticClass:"c-transfer-option-drag c-icon-sort-drag"})]),e("p",{staticClass:"flex-grow ellipsis"},[t._v(t._s(t.$t(n.name)))]),e("a",{staticClass:"c-transfer-option-delete",on:{click:function(e){return t.transferHandle(n)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}}]),model:{value:t.currentOptions,callback:function(e){t.currentOptions=e},expression:"currentOptions"}})],1)])])},Wi=[],ji={name:"cTransfer",props:{async:Boolean,value:Array,valueData:Array,name:String,data:Array,title:{type:[String,Array],default:"_t.transfer.title"},search:[Boolean,Object],height:{type:[String,Number],default:300},sort:Boolean},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),options:[],currentOptions:[],currentValue:[],keyword:""}},computed:{...zn("cFormItemStore",["warnState"]),searchConfig(){return!(!this.async&&!this.search)&&Object.assign({placeholder:"_t.transfer.searchPlaceholder",immediate:!0},"object"==typeof this.search?this.search:{})},compTitle(){return"string"==typeof this.title?[this.$t("_t.transfer.titleLeft",{name:this.$t(this.title)}),this.$t("_t.transfer.titleRight",{name:this.$t(this.title)})]:[this.$t(this.title[0]),this.$t(this.title[1])]}},watch:{value(t){this.set(t)},currentValue(){this.async||this.updateCurrentOption(),this.$emit("input",this.get())},options(){this.async||this.updateCurrentOption()},valueData(t){this.async&&this.setValueData(t)},data(t,e){this.async||(this.updateOption(t),Array.isArray(t)&&e.length&&this.set(""))}},mounted(){this.async?(this.setValueData(this.valueData),this.searchConfig.immediate&&this.searchHandle()):(this.updateOption(this.data),this.set(this.value))},methods:{set(t){this.currentValue=t||[],this.currentValue.length&&this.cFormItemStore.commit("warnState",!1)},get(){return this.currentValue},getData(){return this.currentOptions},setValueData(t){t&&(this.currentOptions=t,this.set(t.map(t=>t.value)))},updateOption(t){this.options=JSON.parse(JSON.stringify(t))},updateCurrentOption(){this.currentOptions=this.currentValue.map(t=>this.options.find(e=>e.value==t)).filter(t=>t)},transferHandle(t){this.cFormItemStore.commit("warnState",!1);let e=this.currentValue.findIndex(e=>e==t.value);-1==e?this.currentValue.push(t.value):this.currentValue.splice(e,1),this.async&&(-1==e?this.currentOptions.push(t):this.currentOptions.splice(e,1)),this.$emit("change",this.getData()),this.cFormStore.commit("editState",!0)},sortHandle(t,e,n,i){this.async||i(),this.currentValue.splice(n,0,this.currentValue.splice(e,1)[0])},searchHandle(){this.async&&this.$emit("search",this.keyword.trim(),this.updateOption)},searchDebounceHandle:Wf((function(){this.searchHandle()}),300)}},Vi=ji,qi=(n("7185"),d(Vi,Ki,Wi,!1,null,"1ca8c1c7",null)),Yi=qi.exports,Xi=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-switch",class:t.state?"z-open":"",style:{width:t.compWidth+"px",background:t.stateColor[t.state?0:1]},on:{click:t.switchHandle}},[e("div",{staticClass:"text flex-center",style:t.textStyle},[t._v(t._s(t.$t(t.stateText[t.state?0:1])))]),e("div",{staticClass:"handle",style:{left:t.handleSeat,width:t.handleSize+"px",height:t.handleSize+"px"}})])},Gi=[],Zi={name:"cSwitch",props:{value:[Boolean,Number,String],stateValue:{type:Array,default(){return[!0,!1]}},stateText:{type:Array,default(){return["_t.switch.open","_t.switch.close"]}},stateColor:{type:Array,default(){return["#00B578","#eee"]}},name:String},data(){return{...Rn(this,"cFormStore"),handleSize:22,valueData:this.value||this.stateValue[1]}},computed:{state(){return!this.stateValue.indexOf(this.valueData)},compWidth(){let t=Math.max(this.$t(this.stateText[0]).length,this.$t(this.stateText[1]).length);return 3+this.handleSize+4+t*("zh"==this.$i18n.locale?1:.5)*13+10},handleSeat(){return this.state?this.compWidth-this.handleSize-3+"px":"3px"},textStyle(){return this.state?{left:0}:{right:0}}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},methods:{set(t=this.stateValue[1]){this.valueData=t},get(){return this.valueData},switchHandle(){this._events.beforeChange?this.$emit("beforeChange",this.state,()=>{this.switch()}):this.switch()},switch(t=this.state){this.valueData=this.stateValue[t?1:0],this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},Qi=Zi,Ji=(n("f67f"),d(Qi,Xi,Gi,!1,null,"13c36189",null)),tr=Ji.exports,er=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-upload",class:{"flex-start-end":t.media},attrs:{media:t.media}},[t.media?e("c-drag-sort",{staticClass:"c-upload-media flex-wrap",attrs:{disabled:!t.multiple||!t.sort},scopedSlots:t._u([{key:"default",fn:function({item:n,id:i,index:r}){return[e("c-drag-item",{key:i,staticClass:"c-upload-media-item flex-center"},[e("c-file",{attrs:{src:n,media:""}}),e("a",{staticClass:"flex-center",on:{click:function(e){return e.stopPropagation(),t.removeHandle(r)}}},[e("i",{staticClass:"c-icon-cross"})])],1)]}},{key:"append",fn:function(){return[t.upperLimit||t.parseValueData.length&&t.button?t._e():e("div",{staticClass:"c-upload-media-item c-upload-media-upload flex-center",on:{click:t.uploadHandle}},[e("i",{class:t.mediaIcon})])]},proxy:!0}],null,!1,3604882091),model:{value:t.parseValueData,callback:function(e){t.parseValueData=e},expression:"parseValueData"}}):t._e(),e("div",{staticClass:"c-upload-handle",class:{"flex-column":t.media,"flex-center-cross":!t.media}},[t.button?e("c-button",{style:{"align-self":t.media?"flex-start":""},attrs:{size:"upload","prepend-icon":t.icon,hollow:"",warn:!!t.name&&t.warnState},on:{click:t.uploadHandle}},[t._v(t._s(t.$t(t.button)))]):t._e(),t.type||t.tip||t.$slots.tip?e("div",{staticClass:"c-upload-tip"},[t._t("tip",null,{type:t.fileTypeTip}),t.$scopedSlots.tip?t._e():e("div",{class:{"flex-center":!t.media}},[t.tip?e("p",[t._v(t._s(t.tip))]):t._e(),t.fileTypeTip?e("p",[t._v(t._s(t.tip&&!t.media?",":"")+t._s(t.fileTypeTip))]):t._e()])],2):t._e()],1),t.media?t._e():e("ul",{directives:[{name:"show",rawName:"v-show",value:t.parseValueData.length,expression:"parseValueData.length"}],staticClass:"c-upload-list"},t._l(t.parseValueData,(function(n,i){return e("li",{key:i,staticClass:"flex-center-cross"},[e("c-file",{staticClass:"ellipsis",attrs:{src:n}}),e("a",{on:{click:function(e){return t.removeHandle(i)}}},[t._v(t._s(t.$t("_t.upload.delete")))])],1)})),0)],1)},nr=[],ir={name:"cUploadFile",props:{value:{type:[String,Array],default:""},name:String,type:String,size:[String,Number],media:Boolean,sort:{type:Boolean,default:!0},icon:{type:String,default:"c-icon-upload"},mediaIcon:{type:String,default:"c-icon-media"},button:{type:[String,Boolean],default:"_t.upload.button"},tip:String,multiple:{type:[Boolean,Number,String],default:!1}},data(){return{...Rn(this,"cFormStore"),...Rn(this,"cFormItemStore"),valueData:this.multiple?[]:""}},computed:{...zn("cFormItemStore",["warnState"]),parseValueData:{get(){return this.valueData?"object"==typeof this.valueData?this.valueData:this.valueData.toString().split(","):[]},set(t){this.multiple&&(this.valueData=t.join(",").split(","))}},fileTypeTip(){if(this.type){let t=[];return this.type.split(",").forEach(e=>{t=t.concat({image:[this.$t("_t.upload.type.image")],video:["mp4"],word:["doc(x)"],excel:["xls(x)"],zip:[this.$t("_t.upload.type.zip")]}[e]||[e])}),this.$t("_t.upload.tip",{type:t.join(",")})}return""},upperLimit(){return this.multiple?"boolean"!=typeof this.multiple&&this.parseValueData.length>=parseInt(this.multiple):this.parseValueData.length>0}},watch:{value(t){this.set(t)},valueData(){this.$emit("input",this.get())}},mounted(){this.set(this.value)},methods:{set(t){t||(t=this.multiple?[]:""),this.multiple&&"string"==typeof t&&(t=t.split(",")),this.valueData=t,Array.isArray(this.valueData)?this.valueData.length&&this.cFormItemStore.commit("warnState",!1):this.valueData&&this.cFormItemStore.commit("warnState",!1)},get(){return this.valueData},removeHandle(t){let e=this.parseValueData.join(",").split(",");e.splice(t,1),this.set(this.multiple?e:e.join(",")),this.changeHandle()},uploadHandle(){this.cFormItemStore.commit("warnState",!1),this.upperLimit&&this.multiple?this.$message({message:this.$t("_t.upload.message.limit",{limit:this.multiple})}):this._events.click?this.$emit("click",{type:this.type,size:this.size,count:this.multiple?"boolean"!=typeof this.multiple?parseInt(this.multiple)-this.parseValueData.length:"":1,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):this.set(t[0].path),this.changeHandle()}}):this.$upload({type:this.type,size:this.size,multiple:this.multiple,loading:!0,success:t=>{this.multiple?this.set(this.parseValueData.concat(Array.from(t,t=>t.path))):(Array.isArray(t)&&(t=t[0]),this.set(t.path)),this.changeHandle()}})},changeHandle(){this.$emit("change",this.get()),this.cFormStore.commit("editState",!0)}}},rr=ir,or=(n("fb1c"),d(rr,er,nr,!1,null,"66fcf5e0",null)),ar=or.exports,sr=function(){var t=this,e=t._self._c;return t.media?e("div",{staticClass:"c-file-media flex-center",attrs:{title:`${t.info.name}${t.info.suffix?".":""}${t.info.suffix}`},on:{click:t.previewHandle}},["video"==t.info.media?e("video",{attrs:{src:t.src}}):"image"==t.info.media?e("img",{attrs:{src:t.src}}):e("i",{staticClass:"c-file-icon c-icon-file",class:"c-icon-file-"+t.info.suffix})]):e("div",{staticClass:"c-file flex-center-cross",on:{click:t.download}},[e("i",{staticClass:"c-file-icon c-icon-fw c-icon-file",class:"c-icon-file-"+t.info.suffix}),e("a",{staticClass:"ellipsis"},[t._v(t._s(t.info.name)+t._s(t.info.suffix?".":"")+t._s(t.info.suffix))])])},lr=[],cr={name:"cFile",props:{src:String,media:Boolean,preview:{type:Boolean,default:!0}},computed:{info(){return this.parseFile(this.src)}},methods:{download(){window.open(this.src)},previewHandle(){this.preview&&(this.info.media?this.$preview({src:this.src}):this.download())}}},ur=cr,dr=(n("ad6e"),d(ur,sr,lr,!1,null,"b510596e",null)),hr=dr.exports,pr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-editor"},[e("div",{ref:"div",attrs:{id:t.id}})])},fr=[],mr=(n("79d9"),n("5a08"),{name:"cEditor",props:{value:String,name:String,height:{type:[String,Number],default:300},autoHeight:Boolean},data(){return{id:"KindEditor"+this._uid}},watch:{value(t){this.editor.html(t)}},mounted(){setTimeout(()=>{this.editor||this.create(),this.set(this.value)})},activated(){this.destroy(),this.create()},beforeDestroy(){this.destroy()},methods:{set(t=""){this.editor.html(t)},get(){return this.editor.html()},create(){this.editor=KindEditor.create("#"+this.id,{width:"100%",height:this.height,resizeType:1,autoHeightMode:!!this.autoHeight,afterBlur:()=>{this.$emit("input",this.get())}})},destroy(){this.editor&&this.editor.remove()}}}),gr=mr,vr=(n("6286"),d(gr,pr,fr,!1,null,"cbdbd666",null)),br=vr.exports,_r=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}]},[t.mask?e("div",t._g({staticClass:"c-popup-mask an an-fadein",class:{"an-fadeout":!t.active},style:{"z-index":t.zIndex}},t.maskEvent)):t._e(),e("div",{ref:"wrapper",staticClass:"c-dialog-wrapper",class:{"z-max":t.max},style:{...t.position,"z-index":t.zIndex,width:t.parsePixel(t.compWidth,!0)},attrs:{mode:t.mode}},[e("div",{staticClass:"c-dialog flex-column an",class:{"z-shadow":!t.mask,[t.animateClass]:t.active,"an-fadeout":!t.active},attrs:{mode:t.mode,confirm:t.confirm}},[!1!==t.options.title?e("div",{staticClass:"c-dialog-head flex-center-cross",attrs:{move:!!t.move},on:{mousedown:t.moveHandle}},[e("p",[t._v(t._s(t.$t(t.options.title)))]),t._t("head")],2):t._e(),e("div",{staticClass:"flex c-dialog-handle"},[t.compResizeButton?[t.compResizeButton.includes("min")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:t.minimize}},[e("i",{staticClass:"c-icon-dialog-min"})]):t._e(),t.compResizeButton.includes("max")?e("div",{staticClass:"c-dialog-handle-item flex-center",on:{click:function(e){t.max=!t.max}}},[e("i",{class:[t.max?"c-icon-dialog-normal":"c-icon-dialog-max"]})]):t._e()]:t._e(),t.closeButton?e("div",{staticClass:"c-dialog-handle-item close flex-center",on:{click:t.close}},[e("i",{staticClass:"c-icon-cross"})]):t._e()],2),e("div",{class:{"flex-grow":"slide"==t.mode||t.max,"flex-column":t.enableFlex},style:{height:t.compHeight,overflow:"auto"==t.compHeight?"":"auto"}},[t._t("default")],2),t.options.button?e("div",{staticClass:"c-dialog-button flex-center-cross flex-end-center"},[t.$slots.button?t._t("button"):[e("c-button",{attrs:{size:"dialog",color:"main"},on:{click:function(e){return t.buttonHandle("resolve")}}},[t._v(t._s(t.$t(t.options.buttonName)))]),t.options.cancelButton?e("c-button",{attrs:{size:"dialog"},on:{click:function(e){return t.buttonHandle("cancel")}}},[t._v(t._s(t.$t(t.options.cancelButtonName)))]):t._e()]],2):t._e()])])])},yr=[],wr={name:"cDialog",props:{mode:{type:String,default:"popup"},confirm:Boolean,title:{type:[String,Boolean],default:""},width:[Number,String],height:{type:[Number,String],default:"auto"},resizeButton:[Boolean,Array],closeButton:{type:Boolean,default:!0},move:{type:Boolean,default:!0},moveLimit:{type:Boolean,default:!0},button:{type:Boolean,default:!0},buttonName:{type:String,default:"_t.popup.button"},cancelButton:{type:Boolean,default:!0},cancelButtonName:{type:String,default:"_t.popup.cancelButton"},enableFlex:Boolean,maskClose:{type:Boolean,default(){return this.$compsConfig.config.dialog.maskClose}},mask:{type:Boolean,default:!0}},data(){return{zIndex:1001,animate:!1,show:!1,active:!1,position:{},actualWidth:0,actualHeight:0,openOptions:{},max:!1,min:!1,maskEvent:{[this.$compsConfig.config.dialog.maskCloseEvent]:()=>{this.maskClose&&this.closeButton&&this.close()}}}},computed:{compWidth(){return this.show,this.max?"100%":this.actualWidth||this.parsePixel(this.width+"+0")||{popup:750,slide:600}[this.mode]},compHeight(){return this.show,"slide"==this.mode?"100%":this.parsePixel(this.actualHeight||this.height+"+0",!0)},propsOptions(){return{title:this.title,button:this.button,buttonName:this.buttonName,cancelButton:this.cancelButton,cancelButtonName:this.cancelButtonName}},options(){return Object.assign({},this.propsOptions,this.openOptions)},animateClass(){return this.animate?{popup:"an-popup",slide:"an-slidein"}[this.mode]:""},compResizeButton(){return Array.isArray(this.resizeButton)?this.resizeButton:!!this.resizeButton&&["min","max"]}},watch:{max(t){t?(this._lastPosition=this.position,this.position={left:0,top:0,right:0,bottom:0}):this.position=this._lastPosition}},mounted(){(function t(e){e&&("cDialog"==e.$options.name?this.zIndex=e.zIndex+1:t.call(this,e.$parent))}).call(this,this.$parent)},activated(){this._min&&this._min.show()},deactivated(){this._min&&this._min.hide()},beforeDestroy(){this._min&&this._min.remove()},methods:{updatePosition(t){this.show&&this.$nextTick(()=>{let e=this.$refs.wrapper.getBoundingClientRect();if(e.width>document.body.clientWidth-80?e.width=this.actualWidth=document.body.clientWidth-80:this.actualWidth=0,"popup"==this.mode){let t=(!1!==this.options.title?61:0)+(this.options.button?61:0);e.height>window.innerHeight-80?(this.actualHeight=window.innerHeight-80-t,e.height=this.actualHeight+t):this.actualHeight=0}"slide"==this.mode?this.position={right:0,top:0}:this.position=t?{left:parseInt(t.left)+"px",top:parseInt(t.top)+"px"}:{left:(document.body.clientWidth-e.width)/2+"px",top:(window.innerHeight-e.height)/2+"px"}})},open(t={}){if(!this._min)return t.zIndex&&(this.zIndex=t.zIndex),this.openOptions=t,this.openHandle(),this.updatePosition(t.position),new Promise(t=>{this._resolve=t});this.openHandle()},minimize(){this.active&&(this._min=this.$minDialog(this,{title:this.options.title||"",closeButton:this.closeButton,back:this.openHandle}),this.outHandle())},close(){let t=!1;(function(t,e){this.$emit("close",t,e),this.openOptions.close&&this.openOptions.close(t,e)}).call(this,()=>{t=!0},this.closeHandle),setTimeout(()=>{!t&&this.closeHandle()})},openHandle(){this._min&&this._min.remove(),delete this._min,this.animate=!0,this.active=!0,this.show=!0,setTimeout(()=>{this.animate=!1},450)},closeHandle(){this._min&&this._min.remove(),delete this._min,this.outHandle(),setTimeout(()=>{this.actualWidth=this.actualHeight=0,this.max=this.min=!1},250)},outHandle(){this.active=!1,setTimeout(()=>{this.show=!1},250)},buttonHandle(t){let e=!1;(function(e,n){this.$emit(t,e,n),this._resolve({type:t,stop:e,next:n}),this.openOptions[t]&&this.openOptions[t](e,n)}).call(this,()=>{e=!0},this.closeHandle),setTimeout(()=>{!e&&this.closeHandle()})},moveHandle(t){if(this.max)return;this.moveEnd();let e="slide"==this.mode,n=this.$refs.wrapper.getBoundingClientRect(),i={x:e?document.body.clientWidth-n.right:n.left,y:n.top},r={x:t.clientX,y:t.clientY};this._mousemoveEvent=t=>{let o={x:t.clientX<0?0:t.clientX>document.body.clientWidth?document.body.clientWidth:t.clientX,y:t.clientY<0?0:t.clientY>window.innerHeight?window.innerHeight:t.clientY},a={x:i.x+(o.x-r.x)*(e?-1:1),y:i.y+o.y-r.y};if(this.moveLimit){let t={x:document.body.clientWidth-n.width,y:window.innerHeight-n.height};a.x=a.x<0?0:a.x>t.x?t.x:a.x,a.y=a.y<0?0:a.y>t.y?t.y:a.y}this.position={[e?"right":"left"]:a.x+"px",top:e?0:a.y+"px"}},document.addEventListener("mousemove",this._mousemoveEvent),document.addEventListener("mouseup",this.moveEnd)},moveEnd(){document.removeEventListener("mousemove",this._mousemoveEvent),document.removeEventListener("mouseup",this.moveEnd)}}},xr=wr,kr=(n("1ba6"),d(xr,_r,yr,!1,null,"b6c0bb64",null)),Sr=kr.exports,Dr=function(){var t=this,e=t._self._c;return e("dl",{directives:[{name:"show",rawName:"v-show",value:t.active,expression:"active"}],staticClass:"c-window",style:t.compStyle},[e("dt",{staticClass:"flex-between-center"},[e("p",[t._v(t._s(t.$t(t.title)))]),e("a",{on:{click:t.hideHandle}},[e("i",{staticClass:"c-icon-cross"})])]),e("dd",{ref:"content",style:{height:t.parsePixel(this.height,!0)}},[t._t("default")],2),t.$scopedSlots.button?e("dd",{staticClass:"flex-between-center"},[e("div",[t._t("beforeButton")],2),e("div",{staticClass:"c-window-button flex"},[t._t("button")],2)]):t._e()])},Cr=[],Er={name:"cWindow",props:{title:String,width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},position:{type:String,default:"bottom"},align:{type:String,default:"start"}},data(){return{active:!1,positionStyle:{}}},computed:{compStyle(){return Object.assign({width:this.parsePixel(this.width,!0)},this.positionStyle)}},deactivated(){this.hide()},methods:{show(t,e=this.position,n=this.align){if(this.active=!0,this.$nextTick(()=>{this.$refs.content.scrollTop=0}),t){t=t.$options?t.$el:t;let i=["left","right"].includes(e);this._updatePosition=()=>{let r=t.getBoundingClientRect(),o=r.top+({top:-this.$el.offsetHeight,bottom:r.height}[e]||0)+(i&&"start"!=n?r.height-this.$el.offsetHeight:0);this.positionStyle={left:r.left+({left:-this.$el.offsetWidth,right:r.width}[e]||0)+(["top","bottom"].includes(e)&&"start"!=n?r.width-this.$el.offsetWidth:0)+"px",top:Math.max(Math.min(o,window.innerHeight-this.$el.offsetHeight),0)+"px"}},this._removeEvent=()=>{Pn(t,t=>{t.removeEventListener("scroll",this._updatePosition)})},Pn(t,t=>{t.addEventListener("scroll",this._updatePosition)}),this.$nextTick(this._updatePosition)}else this.positionStyle={position:"static"}},hide(){this._removeEvent&&this._removeEvent(),this.active=!1},hideHandle(){this.hide(),this.$emit("close")}}},Ar=Er,Tr=(n("8bd4"),d(Ar,Dr,Cr,!1,null,"039b29ee",null)),Fr=Tr.exports,Br=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table flex-column flex-grow-auto",style:{height:t.compHeight,"user-select":t.widthResizePosition?"none":"auto"},attrs:{border:t.border,"fixed-width":t.fixedWidth}},[e("div",{staticClass:"c-table-main flex-column flex-grow-auto"},[e("c-tbody",{ref:"tbody",attrs:{"auto-height":"auto"==t.height},scopedSlots:t._u([{key:"head",fn:function(){return[e("c-thead")]},proxy:!0},t.$scopedSlots.empty?{key:"empty",fn:function(){return[t._t("empty")]},proxy:!0}:null,t.$scopedSlots.custom?{key:"custom",fn:function({data:e,index:n}){return[t._t("custom",null,{data:e,index:n})]}}:null,t.summedRow?{key:"summed",fn:function(){return[e("c-summed")]},proxy:!0}:null],null,!0)})],1),!t.data&&t.pageBar?e("div",{staticClass:"c-table-foot"},[e("c-pagination",{staticClass:"c-table-page",attrs:{value:t.pageIndex,total:t.total,"page-size":t.pagingConfig.size,"page-size-select":t.pagingConfig.select},on:{handle:t.pageHandle}})],1):t._e(),t.widthResizePosition?e("div",{staticClass:"c-table-head-drag-line",style:{left:t.widthResizePosition+"px"}}):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)])},$r=[];function Lr(t,e){switch(e.type){case"selector":return e.multiple?[t("div",{class:"flex-center-cross"},[t("c-checkbox",{attrs:{value:this.allSelected},on:{change:t=>{this.store.selectHandle("all",t)}}})])]:"";default:return[t("div",{class:e.isParent||e.alignCenter?"flex-center":"flex-center-cross"},[e.$scopedSlots.head?e.$scopedSlots.head():[],e.required?[t("b",{class:"c-table-head-required"},["*"])]:[],t("p",{class:"ellipsis",attrs:{title:this.$t(e.label)}},[this.$t(e.label)]),e.$scopedSlots.tip?[t("div",{class:"c-table-head-tip"},[e.$scopedSlots.tip()])]:[]])]}}var Ir={render(t){return t("div",{class:"c-table-head",style:`min-width: ${this.columnsWidth}px;`},[t("table",{style:this.fixedWidth},[t("colgroup",[this.columns.map(e=>t("col",{attrs:{width:e.resizeWidth}}))]),t("thead",[this.header.map(e=>[t("tr",[e.map(e=>[t("th",{attrs:{rowspan:e.isParent?1:this.header.length-e.headLevel,colspan:e.colspan,parent:e.isParent,fixed:"right"==e.fixed,last:e._last},style:void 0!==e._position?`z-index: 10; position: sticky; ${e.fixed}: ${e._position}px`:""},[Lr.call(this,t,e),this.widthResize&&!e.isParent&&e.widthResize?[t("div",{class:"c-table-head-drag",attrs:{type:"right"==e.fixed?"left":"right"},on:{mousedown:t=>this.dragHandle(t,e,"right"==e.fixed?"left":"right")}})]:[]])])])])])])])},data(){return{store:this.$parent.store}},computed:{...zn(["header","columns","fixedWidth","columnsWidth","allSelected","widthResize"])},methods:{dragHandle(t,e,n){let i=t.target.getBoundingClientRect().left-this.store.table.$el.getBoundingClientRect().left,r=t.clientX,o=0,a="right"==n?1/0:e.resizeWidth-20,s="left"==n?-1/0:20-e.resizeWidth;this.store.commit("widthResizePosition",i);const l=jf(t=>{o=t.clientX-r,this.store.commit("widthResizePosition",i+o)},20,!1),c=()=>{o=(o>a?a:o<s?s:o)*("right"==n?1:-1),e.resizeWidth+=o,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),this.store.commit("widthResizePosition",null),this.store.table.$emit("widthResize",{type:e.type,name:e.name,width:e.resizeWidth})};document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)}}},Mr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"c-table-button flex-wrap"},[t._l(t.buttonList.list,(function(n,i){return e("div",{key:i,staticClass:"c-table-button-item ellipsis flex-center",attrs:{title:t.$t(n.$slots.default[0].text)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[n.icon?e("i",{staticClass:"c-table-button-icon",class:n.icon}):t._e(),e("span",[t._v(t._s(t.$t(n.$slots.default[0].text)))])])})),t.buttonList.more?e("div",{ref:"more",staticClass:"c-table-button-item ellipsis flex-center",on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[t._v(" "+t._s(t.$t("_t.table.more"))),e("i",{staticClass:"c-table-button-tri c-icon-tri-down"})]):t._e(),t.buttonList.more?e("div",{directives:[{name:"show",rawName:"v-show",value:t.listPosition,expression:"listPosition"}],ref:"list",staticClass:"c-table-button-more",style:t.listPosition,on:{mouseenter:function(e){return t.moreHandle(!0)},mouseleave:function(e){return t.moreHandle(!1)}}},[e("ul",{attrs:{up:t.listPosition.up}},t._l(t.buttonList.more,(function(n,i){return e("li",{key:i,staticClass:"ellipsis flex-center-cross",attrs:{title:t.$t(n.$slots.default[0].text)},on:{click:function(e){return e.stopPropagation(),t.buttonHadnle(n)}}},[n.icon?e("i",{staticClass:"c-table-button-icon",class:n.icon}):t._e(),e("span",[t._v(t._s(t.$t(n.$slots.default[0].text)))])])})),0)]):t._e(),e("div",{ref:"hidden",staticStyle:{display:"none"}},[t._t("default")],2)],2)},Pr=[],Nr={props:{limit:Number,data:Object},data(){return{store:this.$parent.store,buttons:[],listPosition:!1}},computed:{buttonList(){var t=Array.from(this.buttons,t=>t),e="";return t.length>this.limit&&(e=t.splice(this.limit-1)),{list:t,more:e}}},watch:{data:{handler(){this.update()},immediate:!0,deep:!0},buttonList(t){t.more&&this.$nextTick(()=>{this.$refs.list&&document.body.appendChild(this.$refs.list)})}},mounted(){this.store.buttonVm.push(this),this.$refs.list&&document.body.appendChild(this.$refs.list)},beforeDestroy(){this.store.buttonVm.splice(this.store.buttonVm.findIndex(t=>t==this),1),this.$refs.list&&document.body.removeChild(this.$refs.list)},methods:{update(){this.$nextTick(()=>{this.buttons=Array.from(this.$refs.hidden?this.$refs.hidden.children:[],t=>this.$children.find(e=>e.$el==t))})},buttonHadnle(t){this.moreHandle(!1),t.$emit("click")},moreHandle(t){t?this._moreTimer?clearTimeout(this._moreTimer):(this.listPosition=!0,Pn(this.$refs.more,t=>{t.addEventListener("scroll",this.updatePosition)}),this.$nextTick(this.updatePosition)):this._moreTimer=setTimeout(()=>{delete this._moreTimer,Pn(this.$el,t=>{t.removeEventListener("scroll",this.updatePosition)}),this.listPosition=!1},20)},updatePosition(){let t=this.$refs.more.getBoundingClientRect(),e=this.$refs.list.offsetHeight,n=window.innerHeight-t.bottom<e;this.listPosition={up:n,right:document.body.offsetWidth-t.right+"px",top:(n?t.top-e:t.bottom)+"px"}}}},Hr=Nr,Or=d(Hr,Mr,Pr,!1,null,null,null),Rr=Or.exports;
19
19
  /**!
20
20
  * Sortable 1.15.2
21
21
  * @author RubaXa <trash@rubaxa.org>