UNPKG

bpmn-process-designer

Version:

A process designer base on Vue 2.x and ElementUI

11 lines 1.7 MB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["bpmn-process-designer"]=t(require("vue")):e["bpmn-process-designer"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({0:function(e,t){},"0014":function(e,t,n){"use strict";var i=n("e81d").is,r=n("99e7"),o=r.CONSUME_TOKEN_EVENT,a=r.GENERATE_TOKEN_EVENT,s=r.UPDATE_ELEMENT_EVENT;function l(e,t,n){this._animation=e,this._eventBus=t,this._log=n}l.prototype.consume=function(e){var t=e.element,n=e.processInstanceId,r=t.children.filter((function(e){return i(e,"bpmn:StartEvent")}))[0];r?(this._log.log("Starting Subprocess","info","fa-sign-in"),this._eventBus.fire(a,{element:r,parentProcessInstanceId:n})):(this._log.log("Skipping Subprocess","info","fa-angle-double-right"),this._eventBus.fire(a,e)),this._eventBus.fire(s,{element:t})},l.prototype.generate=function(e){var t=this,n=e.element,r=e.processInstanceId,a=n.outgoing.filter((function(e){return i(e,"bpmn:SequenceFlow")}));a.forEach((function(e){t._animation.createAnimation(e,r,(function(){t._eventBus.fire(o,{element:e.target,processInstanceId:r})}))})),this._eventBus.fire(s,{element:n})},l.$inject=["animation","eventBus","log"],e.exports=l},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"0131":function(e,t,n){"use strict";var i=n("0af7"),r=n("99e7"),o=r.TOGGLE_MODE_EVENT,a=r.RESET_SIMULATION_EVENT,s=r.GENERATE_TOKEN_EVENT,l=-15,c=15;function u(e,t){var n=this;this._overlays=e,t.on(o,(function(e){var t=e.simulationModeActive;t||n.removeElementNotifications()})),t.on([a,s],(function(){n.removeElementNotifications()}))}u.prototype.addElementNotifications=function(e,t){var n=this;e.forEach((function(e){n.addElementNotification(e,t)}))},u.prototype.addElementNotification=function(e,t){var n={top:l,right:c},r='<div class="element-notification '+(t.type||"")+'">'+(t.icon?'<i class="fa '+t.icon+'"></i>':"")+('<span class="text">'+t.text+"</span>"||!1)+"</div>",o=i(r);this._overlays.add(e,"element-notification",{position:n,html:o,show:{minZoom:.5}})},u.prototype.removeElementNotifications=function(e){var t=this;e?e.forEach((function(e){t.removeElementNotification(e)})):this._overlays.remove({type:"element-notification"})},u.prototype.removeElementNotification=function(e){this._overlays.remove({element:e})},u.$inject=["overlays","eventBus"],e.exports=u},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"0394":function(e,t,n){"use strict";var i=n("e81d").is,r=n("99e7"),o=r.CONSUME_TOKEN_EVENT,a=r.GENERATE_TOKEN_EVENT;function s(e,t){this._animation=e,this._eventBus=t}s.prototype.consume=function(e){this._eventBus.fire(a,{element:e})},s.prototype.generate=function(e){var t=this,n=e.outgoing.filter((function(e){return i(e,"bpmn:SequenceFlow")}));n.forEach((function(e){t._animation.createAnimation(e,(function(){t._eventBus.fire(o,{element:e.target})}))}))},s.$inject=["animation","eventBus"],e.exports=s},"03d6":function(e,t,n){var i=n("9c0e"),r=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"04fb":function(e,t,n){"use strict";var i=n("99e7"),r=i.TOGGLE_MODE_EVENT,o=i.PROCESS_INSTANCE_CREATED_EVENT,a=i.PROCESS_INSTANCE_FINISHED_EVENT,s=i.PROCESS_INSTANCE_SHOWN_EVENT,l=i.PROCESS_INSTANCE_HIDDEN_EVENT,c=500;function u(e,t,n,i){var s=this;this._animation=e,this._eventBus=t,this._processInstances=n,this._elementRegistry=i,this._eventBus.on(o,c,(function(e){var t=e.parent,i=e.processInstanceId,r=n.getProcessInstances(t).filter((function(e){return!e.isFinished}));1===r.length?s.showProcessInstance(i,t):r.length>1&&s.hideProcessInstance(i)})),this._eventBus.on(a,c,(function(e){var t=e.parent,r=e.processInstanceId,o=n.getProcessInstances(t).filter((function(e){return r!==e.processInstanceId&&!e.isFinished}));o.length&&r===t.shownProcessInstance?s.showProcessInstance(o[0].processInstanceId,t):delete t.shownProcessInstance,t.parent||i.forEach((function(e){delete e.shownProcessInstance}))})),t.on(r,(function(){i.forEach((function(e){delete e.shownProcessInstance}))}))}u.prototype.showProcessInstance=function(e,t){this._animation.showProcessInstanceAnimations(e),t.shownProcessInstance=e,this._eventBus.fire(s,{processInstanceId:e})},u.prototype.hideProcessInstance=function(e){this._animation.hideProcessInstanceAnimations(e),this._eventBus.fire(l,{processInstanceId:e})},u.prototype.showNext=function(e){var t=this,n=this._processInstances.getProcessInstances(e),i=e.shownProcessInstance,r=0;for(let o=0;o<n.length;o++){if(n[o].processInstanceId===i)break;r++}n.forEach((function(e){t.hideProcessInstance(e.processInstanceId)})),r===n.length-1?this.showProcessInstance(n[0].processInstanceId,e):this.showProcessInstance(n[r+1].processInstanceId,e)},u.$inject=["animation","eventBus","processInstances","elementRegistry"],e.exports=u},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,p=a.f;while(c>u){var d,f=l(arguments[u++]),m=h?r(f).concat(h(f)):r(f),v=m.length,g=0;while(v>g)d=m[g++],i&&!p.call(f,d)||(n[d]=f[d])}return n}:c},"078a":function(e,t,n){var i=n("96c1"),r=n("844f");function o(e){var t=i.copyOptions(e);return i.ensureSpacesExists(t),t}e.exports=function(e,t){var n,i,a,s;return n=o(t),i=r(e,n),s="compact"in n&&n.compact?"_parent":"parent",a="addParent"in n&&n.addParent?JSON.stringify(i,(function(e,t){return e===s?"_":t}),n.spaces):JSON.stringify(i,null,n.spaces),a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},"0809":function(e,t,n){e.exports=n("ddeb")},"0960":function(e,t,n){e.exports=n("b19a")},"0983":function(e,t,n){var i=n("c901");e.exports=function(e){return Object(i(e))}},"09c5":function(e,t,n){"use strict";n("45fc"),n("b0c0"),n("ac1f"),n("5319");var i=n("87f2").some,r={FailedJobRetryTimeCycle:["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent","bpmn:Activity"],Connector:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"],Field:["bpmn:EndEvent","bpmn:IntermediateThrowEvent"]};function o(e,t){return e&&"function"===typeof e.$instanceOf&&e.$instanceOf(t)}function a(e){return e&&e.length}function s(e,t){return a(e)&&i(e,(function(e){return o(e,t)}))}function l(e,t){return i(t,(function(t){return o(e,t)}))}function c(e,t,n){var i=t.name,o=r[i.replace(/activiti:/,"")];return i===e&&l(n,o)}function u(e){e.on("property.clone",(function(e){var t=e.newElement,n=e.propertyDescriptor;this.canCloneProperty(t,n)}),this)}u.$inject=["eventBus"],u.prototype.canCloneProperty=function(e,t){return c("activiti:FailedJobRetryTimeCycle",t,e)?s(e.eventDefinitions,"bpmn:TimerEventDefinition")||s(e.eventDefinitions,"bpmn:SignalEventDefinition")||o(e.loopCharacteristics,"bpmn:MultiInstanceLoopCharacteristics"):c("activiti:Connector",t,e)||c("activiti:Field",t,e)?s(e.eventDefinitions,"bpmn:MessageEventDefinition"):void 0},e.exports=u},"0ae2":function(e,t,n){var i=n("9876"),r=n("fed5"),o=n("1917");e.exports=function(e){var t=i(e),n=r.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},"0af7":function(e,t,n){e.exports=n("f95b")},"0b99":function(e,t,n){"use strict";var i=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("c430"),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0ebc":function(e,t,n){"use strict";var i=n("4193"),r=n("e81d"),o=r.is,a=r.supportedElements,s=n("99e7"),l=s.TOGGLE_MODE_EVENT,c=s.GENERATE_TOKEN_EVENT,u=["bpmn:Process","bpmn:Collaboration","bpmn:Participant","bpmn:Lane","bpmn:TextAnnotation"];function h(e){return e.labelTarget}function p(e,t,n,r,a){var s=this;this._eventBus=e,this._elementRegistry=t,this._elementNotifications=a,this._notifications=r,this.canvasParent=n.getContainer().parentNode,e.on(c,2e4,(function(e){var t=e.element;if(o(t,"bpmn:StartEvent"))return s.allElementsSupported()?void 0:(s.showWarnings(),i(s.canvasParent).add("warning"),!0)})),e.on(l,(function(e){var t=e.simulationModeActive;t||i(s.canvasParent).remove("warning")}))}p.prototype.allElementsSupported=function(){var e=!0;return this._elementRegistry.forEach((function(t){o(t,u)||o(t,a)||h(t)||(e=!1)})),e},p.prototype.showWarnings=function(e){var t=this,n=[];this._elementRegistry.forEach((function(e){o(e,u)||o(e,a)||h(e)||(t.showWarning(e),n.indexOf(e.type)&&(t._notifications.showNotification(e.type+" not supported","warning"),n.push(e.type)))}))},p.prototype.showWarning=function(e){this._elementNotifications.addElementNotification(e,{type:"warning",icon:"fa-exclamation-triangle",text:"Not supported"})},p.$inject=["eventBus","elementRegistry","canvas","notifications","elementNotifications"],e.exports=p},"0fab":function(e,t,n){e.exports=n("c7ca")},1:function(e,t){},1020:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];"object"!=typeof i||Object.isFrozen(i)||n(i)})),e}var i=n,r=n;i.default=r;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(e,...t){const n=Object.create(null);for(const i in e)n[i]=e[i];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const l="</span>",c=e=>!!e.kind;class u{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+=l)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class h{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every(e=>"string"===typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{h._collapse(e)}))}}class p extends h{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){const e=new u(this,this.options);return e.value()}finalize(){return!0}}function d(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function f(e){return e?"string"===typeof e?e:e.source:null}function m(...e){const t=e.map(e=>f(e)).join("");return t}function v(...e){const t="("+e.map(e=>f(e)).join("|")+")";return t}function g(e){return new RegExp(e.toString()+"|").exec("").length-1}function b(e,t){const n=e&&e.exec(t);return n&&0===n.index}function y(e,t="|"){const n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let i=0,r="";for(let o=0;o<e.length;o++){i+=1;const a=i;let s=f(e[o]);o>0&&(r+=t),r+="(";while(s.length>0){const e=n.exec(s);if(null==e){r+=s;break}r+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+a):(r+=e[0],"("===e[0]&&i++)}r+=")"}return r}const x="[a-zA-Z]\\w*",w="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",S="\\b(0b[01]+)",C="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",k=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=m(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},O={begin:"\\\\[\\s\\S]",relevance:0},T={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[O]},j={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[O]},A={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},D=function(e,t,n={}){const i=s({className:"comment",begin:e,end:t,contains:[]},n);return i.contains.push(A),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),i},P=D("//","$"),M=D("/\\*","\\*/"),N=D("#","$"),I={className:"number",begin:_,relevance:0},F={className:"number",begin:E,relevance:0},R={className:"number",begin:S,relevance:0},L={className:"number",begin:_+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},$={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]}]},B={className:"title",begin:x,relevance:0},V={className:"title",begin:w,relevance:0},z={begin:"\\.\\s*"+w,relevance:0},H=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var W=Object.freeze({__proto__:null,IDENT_RE:x,UNDERSCORE_IDENT_RE:w,NUMBER_RE:_,C_NUMBER_RE:E,BINARY_NUMBER_RE:S,RE_STARTERS_RE:C,SHEBANG:k,BACKSLASH_ESCAPE:O,APOS_STRING_MODE:T,QUOTE_STRING_MODE:j,PHRASAL_WORDS_MODE:A,COMMENT:D,C_LINE_COMMENT_MODE:P,C_BLOCK_COMMENT_MODE:M,HASH_COMMENT_MODE:N,NUMBER_MODE:I,C_NUMBER_MODE:F,BINARY_NUMBER_MODE:R,CSS_NUMBER_MODE:L,REGEXP_MODE:$,TITLE_MODE:B,UNDERSCORE_TITLE_MODE:V,METHOD_GUARD:z,END_SAME_AS_BEGIN:H});function q(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function U(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=q,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords)}function G(e,t){Array.isArray(e.illegal)&&(e.illegal=v(...e.illegal))}function K(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Y(e,t){void 0===e.relevance&&(e.relevance=1)}const X=["of","and","for","in","not","or","if","then","parent","list","value"];function J(e,t){const n={};return"string"===typeof e?i("keyword",e):Object.keys(e).forEach((function(t){i(t,e[t])})),n;function i(e,i){t&&(i=i.toLowerCase()),i.split(" ").forEach((function(t){const i=t.split("|");n[i[0]]=[e,Z(i[0],i[1])]}))}}function Z(e,t){return t?Number(t):Q(e)?0:1}function Q(e){return X.includes(e.toLowerCase())}function ee(e,{plugins:t}){function n(t,n){return new RegExp(f(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class i{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=g(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(y(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,i)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new i;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function o(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function a(t,i){const r=t;if(t.compiled)return r;[K].forEach(e=>e(t,i)),e.compilerExtensions.forEach(e=>e(t,i)),t.__beforeBegin=null,[U,G,Y].forEach(e=>e(t,i)),t.compiled=!0;let s=null;if("object"===typeof t.keywords&&(s=t.keywords.$pattern,delete t.keywords.$pattern),t.keywords&&(t.keywords=J(t.keywords,e.case_insensitive)),t.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||t.lexemes||/\w+/,r.keywordPatternRe=n(s,!0),i&&(t.begin||(t.begin=/\B|\b/),r.beginRe=n(t.begin),t.endSameAsBegin&&(t.end=t.begin),t.end||t.endsWithParent||(t.end=/\B|\b/),t.end&&(r.endRe=n(t.end)),r.terminatorEnd=f(t.end)||"",t.endsWithParent&&i.terminatorEnd&&(r.terminatorEnd+=(t.end?"|":"")+i.terminatorEnd)),t.illegal&&(r.illegalRe=n(t.illegal)),t.contains||(t.contains=[]),t.contains=[].concat(...t.contains.map((function(e){return ne("self"===e?t:e)}))),t.contains.forEach((function(e){a(e,r)})),t.starts&&a(t.starts,i),r.matcher=o(r),r}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),a(e)}function te(e){return!!e&&(e.endsWithParent||te(e.starts))}function ne(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:te(e)?s(e,{starts:e.starts?s(e.starts):null}):Object.isFrozen(e)?s(e):e}var ie="10.5.0";function re(e){return Boolean(e||""===e)}function oe(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||re(this.autodetect)},ignoreIllegals(){return!0}},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},n={install(e){e.component("highlightjs",t)}};return{Component:t,VuePlugin:n}}const ae={"after:highlightBlock":({block:e,result:t,text:n})=>{const i=le(e);if(!i.length)return;const r=document.createElement("div");r.innerHTML=t.value,t.value=ce(i,le(r),n)}};function se(e){return e.nodeName.toLowerCase()}function le(e){const t=[];return function e(n,i){for(let r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?i+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:i,node:r}),i=e(r,i),se(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:r}));return i}(e,0),t}function ce(e,t,n){let i=0,r="";const o=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function l(e){function t(e){return" "+e.nodeName+'="'+a(e.value)+'"'}r+="<"+se(e)+[].map.call(e.attributes,t).join("")+">"}function c(e){r+="</"+se(e)+">"}function u(e){("start"===e.event?l:c)(e.node)}while(e.length||t.length){let t=s();if(r+=a(n.substring(i,t[0].offset)),i=t[0].offset,t===e){o.reverse().forEach(c);do{u(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===i);o.reverse().forEach(l)}else"start"===t[0].event?o.push(t[0].node):o.pop(),u(t.splice(0,1)[0])}return r+a(n.substr(i))}const ue=e=>{console.error(e)},he=(e,...t)=>{console.log("WARN: "+e,...t)},pe=(e,t)=>{console.log(`Deprecated as of ${e}. ${t}`)},de=a,fe=s,me=Symbol("nomatch"),ve=function(e){const t=Object.create(null),n=Object.create(null),r=[];let a=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:p};function h(e){return u.noHighlightRe.test(e)}function f(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=P(n[1]);return t||(he(l.replace("{}",n[1])),he("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>h(e)||P(e))}function m(e,t,n,i){const r={code:t,language:e};F("before:highlight",r);const o=r.result?r.result:v(r.language,r.code,n,i);return o.code=r.code,F("after:highlight",o),o}function v(e,n,i,s){const c=n;function h(e,t){const n=O.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function p(){if(!A.keywords)return void M.addText(N);let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(N),n="";while(t){n+=N.substring(e,t.index);const i=h(A,t);if(i){const[e,r]=i;M.addText(n),n="",I+=r;const o=O.classNameAliases[e]||e;M.addKeyword(t[0],o)}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(N)}n+=N.substr(e),M.addText(n)}function f(){if(""===N)return;let e=null;if("string"===typeof A.subLanguage){if(!t[A.subLanguage])return void M.addText(N);e=v(A.subLanguage,N,!0,D[A.subLanguage]),D[A.subLanguage]=e.top}else e=y(N,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(I+=e.relevance),M.addSublanguage(e.emitter,e.language)}function m(){null!=A.subLanguage?f():p(),N=""}function g(e){return e.className&&M.openNode(O.classNameAliases[e.className]||e.className),A=Object.create(e,{parent:{value:A}}),A}function x(e,t,n){let i=b(e.endRe,n);if(i){if(e["on:end"]){const n=new o(e);e["on:end"](t,n),n.ignore&&(i=!1)}if(i){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return x(e.parent,t,n)}function w(e){return 0===A.matcher.regexIndex?(N+=e[0],1):(L=!0,0)}function _(e){const t=e[0],n=e.rule,i=new o(n),r=[n.__beforeBegin,n["on:begin"]];for(const o of r)if(o&&(o(e,i),i.ignore))return w(t);return n&&n.endSameAsBegin&&(n.endRe=d(t)),n.skip?N+=t:(n.excludeBegin&&(N+=t),m(),n.returnBegin||n.excludeBegin||(N=t)),g(n),n.returnBegin?0:t.length}function E(e){const t=e[0],n=c.substr(e.index),i=x(A,e,n);if(!i)return me;const r=A;r.skip?N+=t:(r.returnEnd||r.excludeEnd||(N+=t),m(),r.excludeEnd&&(N=t));do{A.className&&M.closeNode(),A.skip||A.subLanguage||(I+=A.relevance),A=A.parent}while(A!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),g(i.starts)),r.returnEnd?0:t.length}function S(){const e=[];for(let t=A;t!==O;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>M.openNode(e))}let C={};function k(t,n){const r=n&&n[0];if(N+=t,null==r)return m(),0;if("begin"===C.type&&"end"===n.type&&C.index===n.index&&""===r){if(N+=c.slice(n.index,n.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=C.rule,t}return 1}if(C=n,"begin"===n.type)return _(n);if("illegal"===n.type&&!i){const e=new Error('Illegal lexeme "'+r+'" for mode "'+(A.className||"<unnamed>")+'"');throw e.mode=A,e}if("end"===n.type){const e=E(n);if(e!==me)return e}if("illegal"===n.type&&""===r)return 1;if(R>1e5&&R>3*n.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return N+=r,r.length}const O=P(e);if(!O)throw ue(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const T=ee(O,{plugins:r});let j="",A=s||T;const D={},M=new u.__emitter(u);S();let N="",I=0,F=0,R=0,L=!1;try{for(A.matcher.considerAll();;){R++,L?L=!1:A.matcher.considerAll(),A.matcher.lastIndex=F;const e=A.matcher.exec(c);if(!e)break;const t=c.substring(F,e.index),n=k(t,e);F=e.index+n}return k(c.substr(F)),M.closeAllNodes(),M.finalize(),j=M.toHTML(),{relevance:I,value:j,language:e,illegal:!1,emitter:M,top:A}}catch($){if($.message&&$.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:$.message,context:c.slice(F-100,F+100),mode:$.mode},sofar:j,relevance:0,value:de(c),emitter:M};if(a)return{illegal:!1,relevance:0,value:de(c),emitter:M,language:e,top:A,errorRaised:$};throw $}}function g(e){const t={relevance:0,emitter:new u.__emitter(u),value:de(e),illegal:!1,top:c};return t.emitter.addText(e),t}function y(e,n){n=n||u.languages||Object.keys(t);const i=g(e),r=n.filter(P).filter(N).map(t=>v(t,e,!1));r.unshift(i);const o=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(P(e.language).supersetOf===t.language)return 1;if(P(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,l=a;return l.second_best=s,l}function x(e){return u.tabReplace||u.useBR?e.replace(s,e=>"\n"===e?u.useBR?"<br>":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e):e}function w(e,t,i){const r=t?n[t]:i;e.classList.add("hljs"),r&&e.classList.add(r)}const _={"before:highlightBlock":({block:e})=>{u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightBlock":({result:e})=>{u.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},E=/^(<[^>]+>|\t)+/gm,S={"after:highlightBlock":({result:e})=>{u.tabReplace&&(e.value=e.value.replace(E,e=>e.replace(/\t/g,u.tabReplace)))}};function C(e){let t=null;const n=f(e);if(h(n))return;F("before:highlightBlock",{block:e,language:n}),t=e;const i=t.textContent,r=n?m(n,i,!0):y(i);F("after:highlightBlock",{block:e,result:r,text:i}),e.innerHTML=r.value,w(e,n,r.language),e.result={language:r.language,re:r.relevance,relavance:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance,relavance:r.second_best.relevance})}function k(e){e.useBR&&(pe("10.3.0","'useBR' will be removed entirely in v11.0"),pe("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),u=fe(u,e)}const O=()=>{if(O.called)return;O.called=!0;const e=document.querySelectorAll("pre code");e.forEach(C)};function T(){window.addEventListener("DOMContentLoaded",O,!1)}function j(n,i){let r=null;try{r=i(e)}catch(o){if(ue("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw o;ue(o),r=c}r.name||(r.name=n),t[n]=r,r.rawDefinition=i.bind(null,e),r.aliases&&M(r.aliases,{languageName:n})}function A(){return Object.keys(t)}function D(e){pe("10.4.0","requireLanguage will be removed entirely in v11."),pe("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=P(e);if(t)return t;const n=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw n}function P(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function M(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach(e=>{n[e]=t})}function N(e){const t=P(e);return t&&!t.disableAutodetect}function I(e){r.push(e)}function F(e,t){const n=e;r.forEach((function(e){e[n]&&e[n](t)}))}function R(e){return pe("10.2.0","fixMarkup will be removed entirely in v11.0"),pe("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),x(e)}Object.assign(e,{highlight:m,highlightAuto:y,fixMarkup:R,highlightBlock:C,configure:k,initHighlighting:O,initHighlightingOnLoad:T,registerLanguage:j,listLanguages:A,getLanguage:P,registerAliases:M,requireLanguage:D,autoDetection:N,inherit:fe,addPlugin:I,vuePlugin:oe(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=ie;for(const o in W)"object"===typeof W[o]&&i(W[o]);return Object.assign(e,W),e.addPlugin(_),e.addPlugin(ae),e.addPlugin(S),e};var ge=ve({});e.exports=ge},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=l(i),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1145:function(e,t){function n(e,t){return t.querySelector(e)}t=e.exports=function(e,t){return t=t||document,n(e,t)},t.all=function(e,t){return t=t||document,t.querySelectorAll(e)},t.engine=function(e){if(!e.one)throw new Error(".one callback required");if(!e.all)throw new Error(".all callback required");return n=e.one,t.all=e.all,t}},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),h=n("9263"),p=n("d039"),d=[].push,f=Math.min,m=4294967295,v=!p((function(){return!RegExp(m,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),o=void 0===n?m:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var s,l,c,u=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,v=new RegExp(e.source,p+"g");while(s=h.call(v,i)){if(l=v.lastIndex,l>f&&(u.push(i.slice(f,s.index)),s.length>1&&s.index<i.length&&d.apply(u,s.slice(1)),c=s[0].length,f=l,u.length>=o))break;v.lastIndex===s.index&&v.lastIndex++}return f===i.length?!c&&v.test("")||u.push(""):u.push(i.slice(f)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var h=o(e),p=String(this),d=s(h,RegExp),g=h.unicode,b=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(v?"y":"g"),y=new d(v?h:"^(?:"+h.source+")",b),x=void 0===r?m:r>>>0;if(0===x)return[];if(0===p.length)return null===u(y,p)?[p]:[];var w=0,_=0,E=[];while(_<p.length){y.lastIndex=v?_:0;var S,C=u(y,v?p:p.slice(_));if(null===C||(S=f(c(y.lastIndex+(v?0:_)),p.length))===w)_=l(p,_,g);else{if(E.push(p.slice(w,_)),E.length===x)return E;for(var k=1;k<=C.length-1;k++)if(E.push(C[k]),E.length===x)return E;_=w=S}}return E.push(p.slice(w)),E}]}),!v)},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,o=n("a640"),a=n("ae40"),s=n("2d00"),l=n("605d"),c=o("reduce"),u=a("reduce",{1:0}),h=!l&&s>79&&s<83;i({target:"Array",proto:!0,forced:!c||!u||h},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},1460:function(e,t){e.exports=function(e){var t;while(e.childNodes.length)t=e.childNodes[0],e.removeChild(t);return e}},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=127)}({127:function(e,t,n){"use strict";n.r(t);var i=n(16),r=n(39),o=n.n(r),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function c(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var u={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:c({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:u},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),c=void 0;return c=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(u,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(u,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},c)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(i["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(h.name,h)}};t["default"]=h},16:function(e,t){e.exports=n("4010")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},39:function(e,t){e.exports=n("e62d")}})},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in r){var l=i[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1741:function(e,t,n){e.exports=n("af04")},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=n("ae40"),a=r("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1836:function(e,t,n){var i=n("6ca1"),r=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},1917:function(e,t){t.f={}.propertyIsEnumerable},1929:function(e,t,n){var i; /*! * svg.js - A lightweight library for manipulating and animating SVG. * @version 2.7.1 * https://svgdotjs.github.io/ * * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * * BUILT: Fri Nov 30 2018 10:01:55 GMT+0100 (GMT+01:00) */(function(r,o){i=function(){return o(r,r.document)}.call(t,n,t,e),void 0===i||(e.exports=i)})("undefined"!==typeof window?window:this,(function(e,t){var n="undefined"!==typeof this?this:e,i=n.SVG=function(e){if(i.supported)return e=new i.Doc(e),i.parser.draw||i.prepare(),e};if(i.ns="http://www.w3.org/2000/svg",i.xmlns="http://www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.com/svgjs",i.supported=function(){return!!t.createElementNS&&!!t.createElementNS(i.ns,"svg").createSVGRect}(),!i.supported)return!1;i.did=1e3,i.eid=function(e){return"Svgjs"+f(e)+i.did++},i.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},i.extend=function(){var e,t,n,r;for(e=[].slice.call(arguments),t=e.pop(),r=e.length-1;r>=0;r--)if(e[r])for(n in t)e[r].prototype[n]=t[n];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,i.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&i.extend(t,e.extend),e.construct&&i.extend(e.parent||i.Container,e.construct),t},i.adopt=function(t){return t?t.instance?t.instance:(n="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new i.Nested:new i.Doc:"linearGradient"==t.nodeName?new i.Gradient("linear"):"radialGradient"==t.nodeName?new i.Gradient("radial"):i[f(t.nodeName)]?new(i[f(t.nodeName)]):new i.Element(t),n.type=t.nodeName,n.node=t,t.instance=n,n instanceof i.Doc&&n.namespace().defs(),n.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),n):null;var n},i.prepare=function(){var e=t.getElementsByTagName("body")[0],n=(e?new i.Doc(e):i.adopt(t.documentElement).nested()).size(2,0);i.parser={body:e||t.documentElement,draw:n.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").attr("focusable","false").node,poly:n.polyline().node,path:n.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},t.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(e,t){var n,i=e.length,r=[];for(n=0;n<i;n++)r.push(t(e[n]));return r},filter:function(e,t){var n,i=e.length,r=[];for(n=0;n<i;n++)t(e[n])&&r.push(e[n]);return r},radians:function(e){return e%360*Math.PI/180},degrees:function(e){return 180*e/Math.PI%360},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},i.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},i.Color=function(e){var t;this.r=0,this.g=0,this.b=0,e&&("string"===typeof e?i.regex.isRgb.test(e)?(t=i.regex.rgb.exec(e.replace(i.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):i.regex.isHex.test(e)&&(t=i.regex.hex.exec(m(e)),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===typeof e&&(this.r=e.r,this.g=e.g,this.b=e.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+v(this.r)+v(this.g)+v(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new i.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new i.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),i.Color.test=function(e){return e+="",i.regex.isHex.test(e)||i.regex.isRgb.test(e)},i.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},i.Color.isColor=function(e){return i.Color.isRgb(e)||i.Color.test(e)},i.Array=function(e,t){e=(e||[]).valueOf(),0==e.length&&t&&(e=t.valueOf()),this.value=this.parse(e)},i.extend(i.Array,{morph:function(e){if(this.destination=this.parse(e),this.value.length!=this.destination.length){var t=this.value[this.value.length-1],n=this.destination[this.destination.length-1];while(this.value.length>this.destination.length)this.destination.push(n);while(this.value.length<this.destination.length)this.value.push(t)}return this},settle:function(){for(var e=0,t=this.value.length,n=[];e<t;e++)-1==n.indexOf(this.value[e])&&n.push(this.value[e]);return this.value=n},at:function(e){if(!this.destination)return this;for(var t=0,n=this.value.length,r=[];t<n;t++)r.push(this.value[t]+(this.destination[t]-this.value[t])*e);return new i.Array(r)},toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)},split:function(e){return e.trim().split(i.regex.delimiter).map(parseFloat)},reverse:function(){return this.value.reverse(),this},clone:function(){var e=new this.constructor;return e.value=u(this.value),e}}),i.PointArray=function(e,t){i.Array.call(this,e,t||[[0,0]])},i.PointArray.prototype=new i.Array,i.PointArray.prototype.constructor=i.PointArray,i.extend(i.PointArray,{toString:function(){for(var e=0,t=this.value.length,n=[];e<t;e++)n.push(this.value[e].join(","));return n.join(" ")},toLine:function(){return{x1:this.value[0][0],y1:this.value[0][1],x2:this.value[1][0],y2:this.value[1][1]}},at:function(e){if(!this.destination)return this;for(var t=0,n=this.value.length,r=[];t<n;t++)r.push([this.value[t][0]+(this.destination[t][0]-this.value[t][0])*e,this.value[t][1]+(this.destination[t][1]-this.value[t][1])*e]);return new i.PointArray(r)},parse:function(e){var t=[];if(e=e.valueOf(),Array.isArray(e)){if(Array.isArray(e[0]))return e.map((function(e){return e.slice()}));if(null!=e[0].x)return e.map((function(e){return[e.x,e.y]}))}else e=e.trim().split(i.regex.delimiter).map(parseFloat);e.length%2!==0&&e.pop();for(var n=0,r=e.length;n<r;n+=2)t.push([e[n],e[n+1]]);return t},move:function(e,t){var n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(var i=this.value.length-1;i>=0;i--)this.value[i]=[this.value[i][0]+e,this.value[i][1]+t];return this},size:function(e,t){var n,i=this.bbox();for(n=this.value.length-1;n>=0;n--)i.width&&(this.value[n][0]=(this.value[n][0]-i.x)*e/i.width+i.x),i.height&&(this.value[n][1]=(this.value[n][1]-i.y)*t/i.height+i.y);return this},bbox:function(){return i.parser.poly.setAttribute("points",this.toString()),i.parser.poly.getBBox()}});for(var r={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},o="mlhvqtcsaz".split(""),a=0,s=o.length;a<s;++a)r[o[a]]=function(e){return function(t,n,i){if("H"==e)t[0]=t[0]+n.x;else if("V"==e)t[0]=t[0]+n.y;else if("A"==e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(var o=0,a=t.length;o<a;++o)t[o]=t[o]+(o%2?n.y:n.x);return r[e](t,n,i)}}(o[a].toUpperCase());