simple-flow-chart 1.0.11 → 1.0.12

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.
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .super-flow__menu-container .super-flow__menu{position:absolute;outline:none;width:180px;padding:4px 0;border:1px solid #b4b4b4;box-shadow:0 8px 16px 0 rgba(0,0,0,.3);overflow:hidden;border-radius:3px;z-index:10;background-color:#fff;margin:0}.super-flow__menu-container .super-flow__menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box;width:170px;min-height:26px;line-height:26px;cursor:pointer;position:relative;padding:0 4px}.super-flow__menu-container .super-flow__menu-item:last-child{margin:0}.super-flow__menu-container .super-flow__menu-item:last-child:after{display:none}.super-flow__menu-container .super-flow__menu-item:hover{background-color:#eee}.super-flow__menu-container .super-flow__menu-item-icon{float:left;width:26px;height:26px}.super-flow__menu-container .super-flow__menu-item-content{float:left;display:inline-block;color:#333;font-size:14px;line-height:26px;width:144px;font-weight:400}.super-flow__menu-container .super-flow__menu-item>div{position:absolute;top:0;left:0;right:0;bottom:0}.super-flow__menu-container .super-flow__menu-item.is-disabled{cursor:no-drop}.super-flow__menu-container .super-flow__menu-item.is-disabled>span{color:#999}.super-flow__menu-container .super-flow__menu-item.is-disabled:hover{background-color:transparent}.super-flow__menu-container .super-flow__menu-line{width:100%;margin:4px 0;border-bottom:1px solid #b4b4b4;height:0}.super-flow__menu-container .super-flow__menu-line:last-child{display:none}.super-flow__menu-container .flow__menu-mask{content:"";position:fixed;top:0;bottom:0;right:0;left:0;z-index:10;background-color:transparent}.super-flow__node{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;z-index:3;outline:none}.super-flow__node.can-move{cursor:move}.super-flow__node-header{background-color:green}.super-flow__node .node-side{position:absolute;cursor:crosshair}.super-flow__node .node-side-top{top:-5px;right:0;left:0;height:10px}.super-flow__node .node-side-right{top:0;right:-5px;bottom:0;width:10px}.super-flow__node .node-side-bottom{right:0;bottom:-5px;left:0;height:10px}.super-flow__node .node-side-left{top:0;bottom:0;left:-5px;width:10px}.super-flow__node.isSelect{z-index:2}.super-flow__line{position:absolute;z-index:0}.super-flow__line canvas{display:block}.super-flow__line .text{position:absolute;color:#fff;z-index:3;text-align:center;min-width:10px;padding:3px 6px;border-radius:50%;font-size:12px;cursor:pointer}.super-flow__mark-line{position:absolute;z-index:0;border:1px solid transparent}.simple-flow-chart[data-v-32e883dc]{font-family:Apple System,SF Pro SC,SF Pro Display,Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,STHeiti,Microsoft YaHei,Microsoft JhengHei,Source Han Sans SC,Noto Sans CJK SC,Source Han Sans CN,sans-serif;position:relative;background-color:transparent;width:100%;height:100%;overflow:auto}.simple-flow-chart>.select-all__mask[data-v-32e883dc]{position:absolute;background-color:rgba(85,175,255,.1);z-index:20;border:1px dashed #55abfc;cursor:move;outline:none}.template-data[data-v-32e883dc]{width:100%;height:450px;border:none;outline:0}
1
+ .super-flow__menu-container .super-flow__menu{position:absolute;outline:none;width:180px;padding:4px 0;border:1px solid #b4b4b4;box-shadow:0 8px 16px 0 rgba(0,0,0,.3);overflow:hidden;border-radius:3px;z-index:10;background-color:#fff;margin:0}.super-flow__menu-container .super-flow__menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:content-box;width:170px;min-height:26px;line-height:26px;cursor:pointer;position:relative;padding:0 4px}.super-flow__menu-container .super-flow__menu-item:last-child{margin:0}.super-flow__menu-container .super-flow__menu-item:last-child:after{display:none}.super-flow__menu-container .super-flow__menu-item:hover{background-color:#eee}.super-flow__menu-container .super-flow__menu-item-icon{float:left;width:26px;height:26px}.super-flow__menu-container .super-flow__menu-item-content{float:left;display:inline-block;color:#333;font-size:14px;line-height:26px;width:144px;font-weight:400}.super-flow__menu-container .super-flow__menu-item>div{position:absolute;top:0;left:0;right:0;bottom:0}.super-flow__menu-container .super-flow__menu-item.is-disabled{cursor:no-drop}.super-flow__menu-container .super-flow__menu-item.is-disabled>span{color:#999}.super-flow__menu-container .super-flow__menu-item.is-disabled:hover{background-color:transparent}.super-flow__menu-container .super-flow__menu-line{height:0}.super-flow__menu-container .super-flow__menu-line:last-child{display:none}.super-flow__menu-container .flow__menu-mask{content:"";position:fixed;top:0;bottom:0;right:0;left:0;z-index:10;background-color:transparent}.super-flow__node{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;z-index:3;outline:none}.super-flow__node.can-move{cursor:move}.super-flow__node-header{background-color:green}.super-flow__node .node-side{position:absolute;cursor:crosshair}.super-flow__node .node-side-top{top:-5px;right:0;left:0;height:10px}.super-flow__node .node-side-right{top:0;right:-5px;bottom:0;width:10px}.super-flow__node .node-side-bottom{right:0;bottom:-5px;left:0;height:10px}.super-flow__node .node-side-left{top:0;bottom:0;left:-5px;width:10px}.super-flow__node.isSelect{z-index:2}.super-flow__line{position:absolute;z-index:0}.super-flow__line canvas{display:block}.super-flow__line .text{position:absolute;color:#fff;z-index:3;text-align:center;min-width:10px;padding:3px 6px;border-radius:50%;font-size:12px;cursor:pointer}.super-flow__mark-line{position:absolute;z-index:0;border:1px solid transparent}.simple-flow-chart[data-v-1ee2b2d6]{font-family:Apple System,SF Pro SC,SF Pro Display,Helvetica Neue,Arial,PingFang SC,Hiragino Sans GB,STHeiti,Microsoft YaHei,Microsoft JhengHei,Source Han Sans SC,Noto Sans CJK SC,Source Han Sans CN,sans-serif;position:relative;background-color:transparent;width:100%;height:100%;overflow:auto}.simple-flow-chart>.select-all__mask[data-v-1ee2b2d6]{position:absolute;background-color:rgba(85,175,255,.1);z-index:20;border:1px dashed #55abfc;cursor:move;outline:none}.template-data[data-v-1ee2b2d6]{width:100%;height:450px;border:none;outline:0}
@@ -6,11 +6,11 @@
6
6
  * Released under MIT license <https://lodash.com/license>
7
7
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
8
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
- */(function(){var o,u="4.17.19",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",d=1,p=2,v=4,m=1,g=2,y=1,b=2,_=4,w=8,k=16,x=32,E=64,S=128,L=256,O=512,A=30,C="...",T=800,M=16,j=1,P=2,R=3,$=1/0,I=9007199254740991,N=17976931348623157e292,z=NaN,D=4294967295,B=D-1,W=D>>>1,H=[["ary",S],["bind",y],["bindKey",b],["curry",w],["curryRight",k],["flip",O],["partial",x],["partialRight",E],["rearg",L]],F="[object Arguments]",U="[object Array]",X="[object AsyncFunction]",Y="[object Boolean]",q="[object Date]",G="[object DOMException]",V="[object Error]",J="[object Function]",K="[object GeneratorFunction]",Z="[object Map]",Q="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",it="[object RegExp]",ot="[object Set]",ut="[object String]",at="[object Symbol]",st="[object Undefined]",lt="[object WeakMap]",ct="[object WeakSet]",ft="[object ArrayBuffer]",ht="[object DataView]",dt="[object Float32Array]",pt="[object Float64Array]",vt="[object Int8Array]",mt="[object Int16Array]",gt="[object Int32Array]",yt="[object Uint8Array]",bt="[object Uint8ClampedArray]",_t="[object Uint16Array]",wt="[object Uint32Array]",kt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,St=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Ot=RegExp(St.source),At=RegExp(Lt.source),Ct=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,Mt=/<%=([\s\S]+?)%>/g,jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,It=RegExp($t.source),Nt=/^\s+|\s+$/g,zt=/^\s+/,Dt=/\s+$/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ht=/,? & /,Ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/\\(\\)?/g,Xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,Jt=/^0o[0-7]+$/i,Kt=/^(?:0|[1-9]\d*)$/,Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ie="\\u20d0-\\u20ff",oe=ne+re+ie,ue="\\u2700-\\u27bf",ae="a-z\\xdf-\\xf6\\xf8-\\xff",se="\\xac\\xb1\\xd7\\xf7",le="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ce="\\u2000-\\u206f",fe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",pe=se+le+ce+fe,ve="['’]",me="["+ee+"]",ge="["+pe+"]",ye="["+oe+"]",be="\\d+",_e="["+ue+"]",we="["+ae+"]",ke="[^"+ee+pe+be+ue+ae+he+"]",xe="\\ud83c[\\udffb-\\udfff]",Ee="(?:"+ye+"|"+xe+")",Se="[^"+ee+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="["+he+"]",Ce="\\u200d",Te="(?:"+we+"|"+ke+")",Me="(?:"+Ae+"|"+ke+")",je="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",Pe="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Re=Ee+"?",$e="["+de+"]?",Ie="(?:"+Ce+"(?:"+[Se,Le,Oe].join("|")+")"+$e+Re+")*",Ne="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ze="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",De=$e+Re+Ie,Be="(?:"+[_e,Le,Oe].join("|")+")"+De,We="(?:"+[Se+ye+"?",ye,Le,Oe,me].join("|")+")",He=RegExp(ve,"g"),Fe=RegExp(ye,"g"),Ue=RegExp(xe+"(?="+xe+")|"+We+De,"g"),Xe=RegExp([Ae+"?"+we+"+"+je+"(?="+[ge,Ae,"$"].join("|")+")",Me+"+"+Pe+"(?="+[ge,Ae+Te,"$"].join("|")+")",Ae+"?"+Te+"+"+je,Ae+"+"+Pe,ze,Ne,be,Be].join("|"),"g"),Ye=RegExp("["+Ce+ee+oe+de+"]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ge=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Je={};Je[dt]=Je[pt]=Je[vt]=Je[mt]=Je[gt]=Je[yt]=Je[bt]=Je[_t]=Je[wt]=!0,Je[F]=Je[U]=Je[ft]=Je[Y]=Je[ht]=Je[q]=Je[V]=Je[J]=Je[Z]=Je[Q]=Je[et]=Je[it]=Je[ot]=Je[ut]=Je[lt]=!1;var Ke={};Ke[F]=Ke[U]=Ke[ft]=Ke[ht]=Ke[Y]=Ke[q]=Ke[dt]=Ke[pt]=Ke[vt]=Ke[mt]=Ke[gt]=Ke[Z]=Ke[Q]=Ke[et]=Ke[it]=Ke[ot]=Ke[ut]=Ke[at]=Ke[yt]=Ke[bt]=Ke[_t]=Ke[wt]=!0,Ke[V]=Ke[J]=Ke[lt]=!1;var Ze={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof t&&t&&t.Object===Object&&t,un="object"==typeof self&&self&&self.Object===Object&&self,an=on||un||Function("return this")(),sn=e&&!e.nodeType&&e,ln=sn&&"object"==typeof r&&r&&!r.nodeType&&r,cn=ln&&ln.exports===sn,fn=cn&&on.process,hn=function(){try{var t=ln&&ln.require&&ln.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),dn=hn&&hn.isArrayBuffer,pn=hn&&hn.isDate,vn=hn&&hn.isMap,mn=hn&&hn.isRegExp,gn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function bn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function _n(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var u=t[i];e(r,u,n(u),t)}return r}function wn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function kn(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function xn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function En(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o}function Sn(t,e){var n=null==t?0:t.length;return!!n&&Nn(t,e,0)>-1}function Ln(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function On(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function An(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function Cn(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function Tn(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function Mn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var jn=Wn("length");function Pn(t){return t.split("")}function Rn(t){return t.match(Ft)||[]}function $n(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function In(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}function Nn(t,e,n){return e===e?hr(t,e,n):In(t,Dn,n)}function zn(t,e,n,r){var i=n-1,o=t.length;while(++i<o)if(r(t[i],e))return i;return-1}function Dn(t){return t!==t}function Bn(t,e){var n=null==t?0:t.length;return n?Xn(t,e)/n:z}function Wn(t){return function(e){return null==e?o:e[t]}}function Hn(t){return function(e){return null==t?o:t[e]}}function Fn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Un(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Xn(t,e){var n,r=-1,i=t.length;while(++r<i){var u=e(t[r]);u!==o&&(n=n===o?u:n+u)}return n}function Yn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function qn(t,e){return On(e,(function(e){return[e,t[e]]}))}function Gn(t){return function(e){return t(e)}}function Vn(t,e){return On(e,(function(e){return t[e]}))}function Jn(t,e){return t.has(e)}function Kn(t,e){var n=-1,r=t.length;while(++n<r&&Nn(e,t[n],0)>-1);return n}function Zn(t,e){var n=t.length;while(n--&&Nn(e,t[n],0)>-1);return n}function Qn(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var tr=Hn(Ze),er=Hn(Qe);function nr(t){return"\\"+en[t]}function rr(t,e){return null==t?o:t[e]}function ir(t){return Ye.test(t)}function or(t){return qe.test(t)}function ur(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function ar(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sr(t,e){return function(n){return t(e(n))}}function lr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var u=t[n];u!==e&&u!==h||(t[n]=h,o[i++]=n)}return o}function cr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function dr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function pr(t){return ir(t)?gr(t):jn(t)}function vr(t){return ir(t)?yr(t):Pn(t)}var mr=Hn(tn);function gr(t){var e=Ue.lastIndex=0;while(Ue.test(t))++e;return e}function yr(t){return t.match(Ue)||[]}function br(t){return t.match(Xe)||[]}var _r=function t(e){e=null==e?an:wr.defaults(an.Object(),e,wr.pick(an,Ge));var n=e.Array,r=e.Date,i=e.Error,Ft=e.Function,ee=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,oe=e.TypeError,ue=n.prototype,ae=Ft.prototype,se=ne.prototype,le=e["__core-js_shared__"],ce=ae.toString,fe=se.hasOwnProperty,he=0,de=function(){var t=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),pe=se.toString,ve=ce.call(ne),me=an._,ge=re("^"+ce.call(fe).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=cn?e.Buffer:o,be=e.Symbol,_e=e.Uint8Array,we=ye?ye.allocUnsafe:o,ke=sr(ne.getPrototypeOf,ne),xe=ne.create,Ee=se.propertyIsEnumerable,Se=ue.splice,Le=be?be.isConcatSpreadable:o,Oe=be?be.iterator:o,Ae=be?be.toStringTag:o,Ce=function(){try{var t=Xu(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),Te=e.clearTimeout!==an.clearTimeout&&e.clearTimeout,Me=r&&r.now!==an.Date.now&&r.now,je=e.setTimeout!==an.setTimeout&&e.setTimeout,Pe=ee.ceil,Re=ee.floor,$e=ne.getOwnPropertySymbols,Ie=ye?ye.isBuffer:o,Ne=e.isFinite,ze=ue.join,De=sr(ne.keys,ne),Be=ee.max,We=ee.min,Ue=r.now,Xe=e.parseInt,Ye=ee.random,qe=ue.reverse,Ze=Xu(e,"DataView"),Qe=Xu(e,"Map"),tn=Xu(e,"Promise"),en=Xu(e,"Set"),on=Xu(e,"WeakMap"),un=Xu(ne,"create"),sn=on&&new on,ln={},fn=Ta(Ze),hn=Ta(Qe),jn=Ta(tn),Pn=Ta(en),Hn=Ta(on),hr=be?be.prototype:o,gr=hr?hr.valueOf:o,yr=hr?hr.toString:o;function _r(t){if(xc(t)&&!uc(t)&&!(t instanceof Sr)){if(t instanceof Er)return t;if(fe.call(t,"__wrapped__"))return ja(t)}return new Er(t)}var kr=function(){function t(){}return function(e){if(!kc(e))return{};if(xe)return xe(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function xr(){}function Er(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Sr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function Lr(){var t=new Sr(this.__wrapped__);return t.__actions__=nu(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=nu(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=nu(this.__views__),t}function Or(){if(this.__filtered__){var t=new Sr(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ar(){var t=this.__wrapped__.value(),e=this.__dir__,n=uc(t),r=e<0,i=n?t.length:0,o=Ju(0,i,this.__views__),u=o.start,a=o.end,s=a-u,l=r?a:u-1,c=this.__iteratees__,f=c.length,h=0,d=We(s,this.__takeCount__);if(!n||!r&&i==s&&d==s)return No(t,this.__actions__);var p=[];t:while(s--&&h<d){l+=e;var v=-1,m=t[l];while(++v<f){var g=c[v],y=g.iteratee,b=g.type,_=y(m);if(b==P)m=_;else if(!_){if(b==j)continue t;break t}}p[h++]=m}return p}function Cr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Tr(){this.__data__=un?un(null):{},this.size=0}function Mr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function jr(t){var e=this.__data__;if(un){var n=e[t];return n===c?o:n}return fe.call(e,t)?e[t]:o}function Pr(t){var e=this.__data__;return un?e[t]!==o:fe.call(e,t)}function Rr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=un&&e===o?c:e,this}function $r(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Ir(){this.__data__=[],this.size=0}function Nr(t){var e=this.__data__,n=si(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Se.call(e,n,1),--this.size,!0}function zr(t){var e=this.__data__,n=si(e,t);return n<0?o:e[n][1]}function Dr(t){return si(this.__data__,t)>-1}function Br(t,e){var n=this.__data__,r=si(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Wr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Cr,map:new(Qe||$r),string:new Cr}}function Fr(t){var e=Fu(this,t)["delete"](t);return this.size-=e?1:0,e}function Ur(t){return Fu(this,t).get(t)}function Xr(t){return Fu(this,t).has(t)}function Yr(t,e){var n=Fu(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function qr(t){var e=-1,n=null==t?0:t.length;this.__data__=new Wr;while(++e<n)this.add(t[e])}function Gr(t){return this.__data__.set(t,c),this}function Vr(t){return this.__data__.has(t)}function Jr(t){var e=this.__data__=new $r(t);this.size=e.size}function Kr(){this.__data__=new $r,this.size=0}function Zr(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function Qr(t){return this.__data__.get(t)}function ti(t){return this.__data__.has(t)}function ei(t,e){var n=this.__data__;if(n instanceof $r){var r=n.__data__;if(!Qe||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Wr(r)}return n.set(t,e),this.size=n.size,this}function ni(t,e){var n=uc(t),r=!n&&oc(t),i=!n&&!r&&fc(t),o=!n&&!r&&!i&&zc(t),u=n||r||i||o,a=u?Yn(t.length,ie):[],s=a.length;for(var l in t)!e&&!fe.call(t,l)||u&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ia(l,s))||a.push(l);return a}function ri(t){var e=t.length;return e?t[mo(0,e-1)]:o}function ii(t,e){return Oa(nu(t),pi(e,0,t.length))}function oi(t){return Oa(nu(t))}function ui(t,e,n){(n!==o&&!nc(t[e],n)||n===o&&!(e in t))&&hi(t,e,n)}function ai(t,e,n){var r=t[e];fe.call(t,e)&&nc(r,n)&&(n!==o||e in t)||hi(t,e,n)}function si(t,e){var n=t.length;while(n--)if(nc(t[n][0],e))return n;return-1}function li(t,e,n,r){return _i(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ci(t,e){return t&&ru(e,wf(e),t)}function fi(t,e){return t&&ru(e,kf(e),t)}function hi(t,e,n){"__proto__"==e&&Ce?Ce(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function di(t,e){var r=-1,i=e.length,u=n(i),a=null==t;while(++r<i)u[r]=a?o:vf(t,e[r]);return u}function pi(t,e,n){return t===t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function vi(t,e,n,r,i,u){var a,s=e&d,l=e&p,c=e&v;if(n&&(a=i?n(t,r,i,u):n(t)),a!==o)return a;if(!kc(t))return t;var f=uc(t);if(f){if(a=Qu(t),!s)return nu(t,a)}else{var h=Vu(t),m=h==J||h==K;if(fc(t))return Yo(t,s);if(h==et||h==F||m&&!i){if(a=l||m?{}:ta(t),!s)return l?ou(t,fi(a,t)):iu(t,ci(a,t))}else{if(!Ke[h])return i?t:{};a=ea(t,h,s)}}u||(u=new Jr);var g=u.get(t);if(g)return g;u.set(t,a),$c(t)?t.forEach((function(r){a.add(vi(r,e,n,r,t,u))})):Ec(t)&&t.forEach((function(r,i){a.set(i,vi(r,e,n,i,t,u))}));var y=c?l?zu:Nu:l?kf:wf,b=f?o:y(t);return wn(b||t,(function(r,i){b&&(i=r,r=t[i]),ai(a,i,vi(r,e,n,i,t,u))})),a}function mi(t){var e=wf(t);return function(n){return gi(n,t,e)}}function gi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],u=e[i],a=t[i];if(a===o&&!(i in t)||!u(a))return!1}return!0}function yi(t,e,n){if("function"!=typeof t)throw new oe(l);return xa((function(){t.apply(o,n)}),e)}function bi(t,e,n,r){var i=-1,o=Sn,u=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=On(e,Gn(n))),r?(o=Ln,u=!1):e.length>=a&&(o=Jn,u=!1,e=new qr(e));t:while(++i<s){var f=t[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,u&&h===h){var d=c;while(d--)if(e[d]===h)continue t;l.push(f)}else o(e,h,r)||l.push(f)}return l}_r.templateSettings={escape:Ct,evaluate:Tt,interpolate:Mt,variable:"",imports:{_:_r}},_r.prototype=xr.prototype,_r.prototype.constructor=_r,Er.prototype=kr(xr.prototype),Er.prototype.constructor=Er,Sr.prototype=kr(xr.prototype),Sr.prototype.constructor=Sr,Cr.prototype.clear=Tr,Cr.prototype["delete"]=Mr,Cr.prototype.get=jr,Cr.prototype.has=Pr,Cr.prototype.set=Rr,$r.prototype.clear=Ir,$r.prototype["delete"]=Nr,$r.prototype.get=zr,$r.prototype.has=Dr,$r.prototype.set=Br,Wr.prototype.clear=Hr,Wr.prototype["delete"]=Fr,Wr.prototype.get=Ur,Wr.prototype.has=Xr,Wr.prototype.set=Yr,qr.prototype.add=qr.prototype.push=Gr,qr.prototype.has=Vr,Jr.prototype.clear=Kr,Jr.prototype["delete"]=Zr,Jr.prototype.get=Qr,Jr.prototype.has=ti,Jr.prototype.set=ei;var _i=su(Ci),wi=su(Ti,!0);function ki(t,e){var n=!0;return _i(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function xi(t,e,n){var r=-1,i=t.length;while(++r<i){var u=t[r],a=e(u);if(null!=a&&(s===o?a===a&&!Nc(a):n(a,s)))var s=a,l=u}return l}function Ei(t,e,n,r){var i=t.length;n=Yc(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Yc(r),r<0&&(r+=i),r=n>r?0:qc(r);while(n<r)t[n++]=e;return t}function Si(t,e){var n=[];return _i(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Li(t,e,n,r,i){var o=-1,u=t.length;n||(n=ra),i||(i=[]);while(++o<u){var a=t[o];e>0&&n(a)?e>1?Li(a,e-1,n,r,i):An(i,a):r||(i[i.length]=a)}return i}var Oi=lu(),Ai=lu(!0);function Ci(t,e){return t&&Oi(t,e,wf)}function Ti(t,e){return t&&Ai(t,e,wf)}function Mi(t,e){return En(e,(function(e){return bc(t[e])}))}function ji(t,e){e=Ho(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Ca(e[n++])];return n&&n==r?t:o}function Pi(t,e,n){var r=e(t);return uc(t)?r:An(r,n(t))}function Ri(t){return null==t?t===o?st:tt:Ae&&Ae in ne(t)?Yu(t):ga(t)}function $i(t,e){return t>e}function Ii(t,e){return null!=t&&fe.call(t,e)}function Ni(t,e){return null!=t&&e in ne(t)}function zi(t,e,n){return t>=We(e,n)&&t<Be(e,n)}function Di(t,e,r){var i=r?Ln:Sn,u=t[0].length,a=t.length,s=a,l=n(a),c=1/0,f=[];while(s--){var h=t[s];s&&e&&(h=On(h,Gn(e))),c=We(h.length,c),l[s]=!r&&(e||u>=120&&h.length>=120)?new qr(s&&h):o}h=t[0];var d=-1,p=l[0];t:while(++d<u&&f.length<c){var v=h[d],m=e?e(v):v;if(v=r||0!==v?v:0,!(p?Jn(p,m):i(f,m,r))){s=a;while(--s){var g=l[s];if(!(g?Jn(g,m):i(t[s],m,r)))continue t}p&&p.push(m),f.push(v)}}return f}function Bi(t,e,n,r){return Ci(t,(function(t,i,o){e(r,n(t),i,o)})),r}function Wi(t,e,n){e=Ho(e,t),t=ba(t,e);var r=null==t?t:t[Ca(rs(e))];return null==r?o:bn(r,t,n)}function Hi(t){return xc(t)&&Ri(t)==F}function Fi(t){return xc(t)&&Ri(t)==ft}function Ui(t){return xc(t)&&Ri(t)==q}function Xi(t,e,n,r,i){return t===e||(null==t||null==e||!xc(t)&&!xc(e)?t!==t&&e!==e:Yi(t,e,n,r,Xi,i))}function Yi(t,e,n,r,i,o){var u=uc(t),a=uc(e),s=u?U:Vu(t),l=a?U:Vu(e);s=s==F?et:s,l=l==F?et:l;var c=s==et,f=l==et,h=s==l;if(h&&fc(t)){if(!fc(e))return!1;u=!0,c=!1}if(h&&!c)return o||(o=new Jr),u||zc(t)?Pu(t,e,n,r,i,o):Ru(t,e,s,n,r,i,o);if(!(n&m)){var d=c&&fe.call(t,"__wrapped__"),p=f&&fe.call(e,"__wrapped__");if(d||p){var v=d?t.value():t,g=p?e.value():e;return o||(o=new Jr),i(v,g,n,r,o)}}return!!h&&(o||(o=new Jr),$u(t,e,n,r,i,o))}function qi(t){return xc(t)&&Vu(t)==Z}function Gi(t,e,n,r){var i=n.length,u=i,a=!r;if(null==t)return!u;t=ne(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<u){s=n[i];var l=s[0],c=t[l],f=s[1];if(a&&s[2]){if(c===o&&!(l in t))return!1}else{var h=new Jr;if(r)var d=r(c,f,l,t,e,h);if(!(d===o?Xi(f,c,m|g,r,h):d))return!1}}return!0}function Vi(t){if(!kc(t)||la(t))return!1;var e=bc(t)?ge:Vt;return e.test(Ta(t))}function Ji(t){return xc(t)&&Ri(t)==it}function Ki(t){return xc(t)&&Vu(t)==ot}function Zi(t){return xc(t)&&wc(t.length)&&!!Je[Ri(t)]}function Qi(t){return"function"==typeof t?t:null==t?Ch:"object"==typeof t?uc(t)?oo(t[0],t[1]):io(t):Hh(t)}function to(t){if(!fa(t))return De(t);var e=[];for(var n in ne(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function eo(t){if(!kc(t))return ma(t);var e=fa(t),n=[];for(var r in t)("constructor"!=r||!e&&fe.call(t,r))&&n.push(r);return n}function no(t,e){return t<e}function ro(t,e){var r=-1,i=sc(t)?n(t.length):[];return _i(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function io(t){var e=Uu(t);return 1==e.length&&e[0][2]?da(e[0][0],e[0][1]):function(n){return n===t||Gi(n,t,e)}}function oo(t,e){return ua(t)&&ha(e)?da(Ca(t),e):function(n){var r=vf(n,t);return r===o&&r===e?gf(n,t):Xi(e,r,m|g)}}function uo(t,e,n,r,i){t!==e&&Oi(e,(function(u,a){if(i||(i=new Jr),kc(u))ao(t,e,a,n,uo,r,i);else{var s=r?r(wa(t,a),u,a+"",t,e,i):o;s===o&&(s=u),ui(t,a,s)}}),kf)}function ao(t,e,n,r,i,u,a){var s=wa(t,n),l=wa(e,n),c=a.get(l);if(c)ui(t,n,c);else{var f=u?u(s,l,n+"",t,e,a):o,h=f===o;if(h){var d=uc(l),p=!d&&fc(l),v=!d&&!p&&zc(l);f=l,d||p||v?uc(s)?f=s:lc(s)?f=nu(s):p?(h=!1,f=Yo(l,!0)):v?(h=!1,f=Ko(l,!0)):f=[]:jc(l)||oc(l)?(f=s,oc(s)?f=Vc(s):kc(s)&&!bc(s)||(f=ta(l))):h=!1}h&&(a.set(l,f),i(f,l,r,u,a),a["delete"](l)),ui(t,n,f)}}function so(t,e){var n=t.length;if(n)return e+=e<0?n:0,ia(e,n)?t[e]:o}function lo(t,e,n){e=e.length?On(e,(function(t){return uc(t)?function(e){return ji(e,1===t.length?t[0]:t)}:t})):[Ch];var r=-1;e=On(e,Gn(Hu()));var i=ro(t,(function(t,n,i){var o=On(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return Un(i,(function(t,e){return Qo(t,e,n)}))}function co(t,e){return fo(t,e,(function(e,n){return gf(t,n)}))}function fo(t,e,n){var r=-1,i=e.length,o={};while(++r<i){var u=e[r],a=ji(t,u);n(a,u)&&ko(o,Ho(u,t),a)}return o}function ho(t){return function(e){return ji(e,t)}}function po(t,e,n,r){var i=r?zn:Nn,o=-1,u=e.length,a=t;t===e&&(e=nu(e)),n&&(a=On(t,Gn(n)));while(++o<u){var s=0,l=e[o],c=n?n(l):l;while((s=i(a,c,s,r))>-1)a!==t&&Se.call(a,s,1),Se.call(t,s,1)}return t}function vo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;ia(i)?Se.call(t,i,1):Ro(t,i)}}return t}function mo(t,e){return t+Re(Ye()*(e-t+1))}function go(t,e,r,i){var o=-1,u=Be(Pe((e-t)/(r||1)),0),a=n(u);while(u--)a[i?u:++o]=t,t+=r;return a}function yo(t,e){var n="";if(!t||e<1||e>I)return n;do{e%2&&(n+=t),e=Re(e/2),e&&(t+=t)}while(e);return n}function bo(t,e){return Ea(ya(t,e,Ch),t+"")}function _o(t){return ri(Bf(t))}function wo(t,e){var n=Bf(t);return Oa(n,pi(e,0,n.length))}function ko(t,e,n,r){if(!kc(t))return t;e=Ho(e,t);var i=-1,u=e.length,a=u-1,s=t;while(null!=s&&++i<u){var l=Ca(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=a){var f=s[l];c=r?r(f,l,s):o,c===o&&(c=kc(f)?f:ia(e[i+1])?[]:{})}ai(s,l,c),s=s[l]}return t}var xo=sn?function(t,e){return sn.set(t,e),t}:Ch,Eo=Ce?function(t,e){return Ce(t,"toString",{configurable:!0,enumerable:!1,value:Sh(e),writable:!0})}:Ch;function So(t){return Oa(Bf(t))}function Lo(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var u=n(o);while(++i<o)u[i]=t[i+e];return u}function Oo(t,e){var n;return _i(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function Ao(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=W){while(r<i){var o=r+i>>>1,u=t[o];null!==u&&!Nc(u)&&(n?u<=e:u<e)?r=o+1:i=o}return i}return Co(t,e,Ch,n)}function Co(t,e,n,r){var i=0,u=null==t?0:t.length;if(0===u)return 0;e=n(e);var a=e!==e,s=null===e,l=Nc(e),c=e===o;while(i<u){var f=Re((i+u)/2),h=n(t[f]),d=h!==o,p=null===h,v=h===h,m=Nc(h);if(a)var g=r||v;else g=c?v&&(r||d):s?v&&d&&(r||!p):l?v&&d&&!p&&(r||!m):!p&&!m&&(r?h<=e:h<e);g?i=f+1:u=f}return We(u,B)}function To(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var u=t[n],a=e?e(u):u;if(!n||!nc(a,s)){var s=a;o[i++]=0===u?0:u}}return o}function Mo(t){return"number"==typeof t?t:Nc(t)?z:+t}function jo(t){if("string"==typeof t)return t;if(uc(t))return On(t,jo)+"";if(Nc(t))return yr?yr.call(t):"";var e=t+"";return"0"==e&&1/t==-$?"-0":e}function Po(t,e,n){var r=-1,i=Sn,o=t.length,u=!0,s=[],l=s;if(n)u=!1,i=Ln;else if(o>=a){var c=e?null:Ou(t);if(c)return cr(c);u=!1,i=Jn,l=new qr}else l=e?[]:s;t:while(++r<o){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,u&&h===h){var d=l.length;while(d--)if(l[d]===h)continue t;e&&l.push(h),s.push(f)}else i(l,h,n)||(l!==s&&l.push(h),s.push(f))}return s}function Ro(t,e){return e=Ho(e,t),t=ba(t,e),null==t||delete t[Ca(rs(e))]}function $o(t,e,n,r){return ko(t,e,n(ji(t,e)),r)}function Io(t,e,n,r){var i=t.length,o=r?i:-1;while((r?o--:++o<i)&&e(t[o],o,t));return n?Lo(t,r?0:o,r?o+1:i):Lo(t,r?o+1:0,r?i:o)}function No(t,e){var n=t;return n instanceof Sr&&(n=n.value()),Cn(e,(function(t,e){return e.func.apply(e.thisArg,An([t],e.args))}),n)}function zo(t,e,r){var i=t.length;if(i<2)return i?Po(t[0]):[];var o=-1,u=n(i);while(++o<i){var a=t[o],s=-1;while(++s<i)s!=o&&(u[o]=bi(u[o]||a,t[s],e,r))}return Po(Li(u,1),e,r)}function Do(t,e,n){var r=-1,i=t.length,u=e.length,a={};while(++r<i){var s=r<u?e[r]:o;n(a,t[r],s)}return a}function Bo(t){return lc(t)?t:[]}function Wo(t){return"function"==typeof t?t:Ch}function Ho(t,e){return uc(t)?t:ua(t,e)?[t]:Aa(Kc(t))}var Fo=bo;function Uo(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:Lo(t,e,n)}var Xo=Te||function(t){return an.clearTimeout(t)};function Yo(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function qo(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function Go(t,e){var n=e?qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Vo(t){var e=new t.constructor(t.source,Yt.exec(t));return e.lastIndex=t.lastIndex,e}function Jo(t){return gr?ne(gr.call(t)):{}}function Ko(t,e){var n=e?qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Zo(t,e){if(t!==e){var n=t!==o,r=null===t,i=t===t,u=Nc(t),a=e!==o,s=null===e,l=e===e,c=Nc(e);if(!s&&!c&&!u&&t>e||u&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!u&&!c&&t<e||c&&n&&i&&!r&&!u||s&&n&&i||!a&&i||!l)return-1}return 0}function Qo(t,e,n){var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;while(++r<u){var s=Zo(i[r],o[r]);if(s){if(r>=a)return s;var l=n[r];return s*("desc"==l?-1:1)}}return t.index-e.index}function tu(t,e,r,i){var o=-1,u=t.length,a=r.length,s=-1,l=e.length,c=Be(u-a,0),f=n(l+c),h=!i;while(++s<l)f[s]=e[s];while(++o<a)(h||o<u)&&(f[r[o]]=t[o]);while(c--)f[s++]=t[o++];return f}function eu(t,e,r,i){var o=-1,u=t.length,a=-1,s=r.length,l=-1,c=e.length,f=Be(u-s,0),h=n(f+c),d=!i;while(++o<f)h[o]=t[o];var p=o;while(++l<c)h[p+l]=e[l];while(++a<s)(d||o<u)&&(h[p+r[a]]=t[o++]);return h}function nu(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function ru(t,e,n,r){var i=!n;n||(n={});var u=-1,a=e.length;while(++u<a){var s=e[u],l=r?r(n[s],t[s],s,n,t):o;l===o&&(l=t[s]),i?hi(n,s,l):ai(n,s,l)}return n}function iu(t,e){return ru(t,qu(t),e)}function ou(t,e){return ru(t,Gu(t),e)}function uu(t,e){return function(n,r){var i=uc(n)?_n:li,o=e?e():{};return i(n,t,Hu(r,2),o)}}function au(t){return bo((function(e,n){var r=-1,i=n.length,u=i>1?n[i-1]:o,a=i>2?n[2]:o;u=t.length>3&&"function"==typeof u?(i--,u):o,a&&oa(n[0],n[1],a)&&(u=i<3?o:u,i=1),e=ne(e);while(++r<i){var s=n[r];s&&t(e,s,r,u)}return e}))}function su(t,e){return function(n,r){if(null==n)return n;if(!sc(n))return t(n,r);var i=n.length,o=e?i:-1,u=ne(n);while(e?o--:++o<i)if(!1===r(u[o],o,u))break;return n}}function lu(t){return function(e,n,r){var i=-1,o=ne(e),u=r(e),a=u.length;while(a--){var s=u[t?a:++i];if(!1===n(o[s],s,o))break}return e}}function cu(t,e,n){var r=e&y,i=du(t);function o(){var e=this&&this!==an&&this instanceof o?i:t;return e.apply(r?n:this,arguments)}return o}function fu(t){return function(e){e=Kc(e);var n=ir(e)?vr(e):o,r=n?n[0]:e.charAt(0),i=n?Uo(n,1).join(""):e.slice(1);return r[t]()+i}}function hu(t){return function(e){return Cn(_h(qf(e).replace(He,"")),t,"")}}function du(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=kr(t.prototype),r=t.apply(n,e);return kc(r)?r:n}}function pu(t,e,r){var i=du(t);function u(){var a=arguments.length,s=n(a),l=a,c=Wu(u);while(l--)s[l]=arguments[l];var f=a<3&&s[0]!==c&&s[a-1]!==c?[]:lr(s,c);if(a-=f.length,a<r)return Su(t,e,gu,u.placeholder,o,s,f,o,o,r-a);var h=this&&this!==an&&this instanceof u?i:t;return bn(h,this,s)}return u}function vu(t){return function(e,n,r){var i=ne(e);if(!sc(e)){var u=Hu(n,3);e=wf(e),n=function(t){return u(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[u?e[a]:a]:o}}function mu(t){return Iu((function(e){var n=e.length,r=n,i=Er.prototype.thru;t&&e.reverse();while(r--){var u=e[r];if("function"!=typeof u)throw new oe(l);if(i&&!a&&"wrapper"==Bu(u))var a=new Er([],!0)}r=a?r:n;while(++r<n){u=e[r];var s=Bu(u),c="wrapper"==s?Du(u):o;a=c&&sa(c[0])&&c[1]==(S|w|x|L)&&!c[4].length&&1==c[9]?a[Bu(c[0])].apply(a,c[3]):1==u.length&&sa(u)?a[s]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&uc(r))return a.plant(r).value();var i=0,o=n?e[i].apply(this,t):r;while(++i<n)o=e[i].call(this,o);return o}}))}function gu(t,e,r,i,u,a,s,l,c,f){var h=e&S,d=e&y,p=e&b,v=e&(w|k),m=e&O,g=p?o:du(t);function _(){var o=arguments.length,y=n(o),b=o;while(b--)y[b]=arguments[b];if(v)var w=Wu(_),k=Qn(y,w);if(i&&(y=tu(y,i,u,v)),a&&(y=eu(y,a,s,v)),o-=k,v&&o<f){var x=lr(y,w);return Su(t,e,gu,_.placeholder,r,y,x,l,c,f-o)}var E=d?r:this,S=p?E[t]:t;return o=y.length,l?y=_a(y,l):m&&o>1&&y.reverse(),h&&c<o&&(y.length=c),this&&this!==an&&this instanceof _&&(S=g||du(S)),S.apply(E,y)}return _}function yu(t,e){return function(n,r){return Bi(n,t,e(r),{})}}function bu(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=jo(n),r=jo(r)):(n=Mo(n),r=Mo(r)),i=t(n,r)}return i}}function _u(t){return Iu((function(e){return e=On(e,Gn(Hu())),bo((function(n){var r=this;return t(e,(function(t){return bn(t,r,n)}))}))}))}function wu(t,e){e=e===o?" ":jo(e);var n=e.length;if(n<2)return n?yo(e,t):e;var r=yo(e,Pe(t/pr(e)));return ir(e)?Uo(vr(r),0,t).join(""):r.slice(0,t)}function ku(t,e,r,i){var o=e&y,u=du(t);function a(){var e=-1,s=arguments.length,l=-1,c=i.length,f=n(c+s),h=this&&this!==an&&this instanceof a?u:t;while(++l<c)f[l]=i[l];while(s--)f[l++]=arguments[++e];return bn(h,o?r:this,f)}return a}function xu(t){return function(e,n,r){return r&&"number"!=typeof r&&oa(e,n,r)&&(n=r=o),e=Xc(e),n===o?(n=e,e=0):n=Xc(n),r=r===o?e<n?1:-1:Xc(r),go(e,n,r,t)}}function Eu(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Gc(e),n=Gc(n)),t(e,n)}}function Su(t,e,n,r,i,u,a,s,l,c){var f=e&w,h=f?a:o,d=f?o:a,p=f?u:o,v=f?o:u;e|=f?x:E,e&=~(f?E:x),e&_||(e&=~(y|b));var m=[t,e,i,p,h,v,d,s,l,c],g=n.apply(o,m);return sa(t)&&ka(g,m),g.placeholder=r,Sa(g,t,e)}function Lu(t){var e=ee[t];return function(t,n){if(t=Gc(t),n=null==n?0:We(Yc(n),292),n&&Ne(t)){var r=(Kc(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Kc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Ou=en&&1/cr(new en([,-0]))[1]==$?function(t){return new en(t)}:Nh;function Au(t){return function(e){var n=Vu(e);return n==Z?ar(e):n==ot?fr(e):qn(e,t(e))}}function Cu(t,e,n,r,i,u,a,s){var c=e&b;if(!c&&"function"!=typeof t)throw new oe(l);var f=r?r.length:0;if(f||(e&=~(x|E),r=i=o),a=a===o?a:Be(Yc(a),0),s=s===o?s:Yc(s),f-=i?i.length:0,e&E){var h=r,d=i;r=i=o}var p=c?o:Du(t),v=[t,e,n,r,i,h,d,u,a,s];if(p&&va(v,p),t=v[0],e=v[1],n=v[2],r=v[3],i=v[4],s=v[9]=v[9]===o?c?0:t.length:Be(v[9]-f,0),!s&&e&(w|k)&&(e&=~(w|k)),e&&e!=y)m=e==w||e==k?pu(t,e,s):e!=x&&e!=(y|x)||i.length?gu.apply(o,v):ku(t,e,n,r);else var m=cu(t,e,n);var g=p?xo:ka;return Sa(g(m,v),t,e)}function Tu(t,e,n,r){return t===o||nc(t,se[n])&&!fe.call(r,n)?e:t}function Mu(t,e,n,r,i,u){return kc(t)&&kc(e)&&(u.set(e,t),uo(t,e,o,Mu,u),u["delete"](e)),t}function ju(t){return jc(t)?o:t}function Pu(t,e,n,r,i,u){var a=n&m,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=u.get(t),f=u.get(e);if(c&&f)return c==e&&f==t;var h=-1,d=!0,p=n&g?new qr:o;u.set(t,e),u.set(e,t);while(++h<s){var v=t[h],y=e[h];if(r)var b=a?r(y,v,h,e,t,u):r(v,y,h,t,e,u);if(b!==o){if(b)continue;d=!1;break}if(p){if(!Mn(e,(function(t,e){if(!Jn(p,e)&&(v===t||i(v,t,n,r,u)))return p.push(e)}))){d=!1;break}}else if(v!==y&&!i(v,y,n,r,u)){d=!1;break}}return u["delete"](t),u["delete"](e),d}function Ru(t,e,n,r,i,o,u){switch(n){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!o(new _e(t),new _e(e)));case Y:case q:case Q:return nc(+t,+e);case V:return t.name==e.name&&t.message==e.message;case it:case ut:return t==e+"";case Z:var a=ar;case ot:var s=r&m;if(a||(a=cr),t.size!=e.size&&!s)return!1;var l=u.get(t);if(l)return l==e;r|=g,u.set(t,e);var c=Pu(a(t),a(e),r,i,o,u);return u["delete"](t),c;case at:if(gr)return gr.call(t)==gr.call(e)}return!1}function $u(t,e,n,r,i,u){var a=n&m,s=Nu(t),l=s.length,c=Nu(e),f=c.length;if(l!=f&&!a)return!1;var h=l;while(h--){var d=s[h];if(!(a?d in e:fe.call(e,d)))return!1}var p=u.get(t),v=u.get(e);if(p&&v)return p==e&&v==t;var g=!0;u.set(t,e),u.set(e,t);var y=a;while(++h<l){d=s[h];var b=t[d],_=e[d];if(r)var w=a?r(_,b,d,e,t,u):r(b,_,d,t,e,u);if(!(w===o?b===_||i(b,_,n,r,u):w)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var k=t.constructor,x=e.constructor;k==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof k&&k instanceof k&&"function"==typeof x&&x instanceof x||(g=!1)}return u["delete"](t),u["delete"](e),g}function Iu(t){return Ea(ya(t,o,Ya),t+"")}function Nu(t){return Pi(t,wf,qu)}function zu(t){return Pi(t,kf,Gu)}var Du=sn?function(t){return sn.get(t)}:Nh;function Bu(t){var e=t.name+"",n=ln[e],r=fe.call(ln,e)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Wu(t){var e=fe.call(_r,"placeholder")?_r:t;return e.placeholder}function Hu(){var t=_r.iteratee||Th;return t=t===Th?Qi:t,arguments.length?t(arguments[0],arguments[1]):t}function Fu(t,e){var n=t.__data__;return aa(e)?n["string"==typeof e?"string":"hash"]:n.map}function Uu(t){var e=wf(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,ha(i)]}return e}function Xu(t,e){var n=rr(t,e);return Vi(n)?n:o}function Yu(t){var e=fe.call(t,Ae),n=t[Ae];try{t[Ae]=o;var r=!0}catch(u){}var i=pe.call(t);return r&&(e?t[Ae]=n:delete t[Ae]),i}var qu=$e?function(t){return null==t?[]:(t=ne(t),En($e(t),(function(e){return Ee.call(t,e)})))}:Yh,Gu=$e?function(t){var e=[];while(t)An(e,qu(t)),t=ke(t);return e}:Yh,Vu=Ri;function Ju(t,e,n){var r=-1,i=n.length;while(++r<i){var o=n[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=We(e,t+u);break;case"takeRight":t=Be(t,e-u);break}}return{start:t,end:e}}function Ku(t){var e=t.match(Wt);return e?e[1].split(Ht):[]}function Zu(t,e,n){e=Ho(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var u=Ca(e[r]);if(!(o=null!=t&&n(t,u)))break;t=t[u]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&wc(i)&&ia(u,i)&&(uc(t)||oc(t)))}function Qu(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ta(t){return"function"!=typeof t.constructor||fa(t)?{}:kr(ke(t))}function ea(t,e,n){var r=t.constructor;switch(e){case ft:return qo(t);case Y:case q:return new r(+t);case ht:return Go(t,n);case dt:case pt:case vt:case mt:case gt:case yt:case bt:case _t:case wt:return Ko(t,n);case Z:return new r;case Q:case ut:return new r(t);case it:return Vo(t);case ot:return new r;case at:return Jo(t)}}function na(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Bt,"{\n/* [wrapped with "+e+"] */\n")}function ra(t){return uc(t)||oc(t)||!!(Le&&t&&t[Le])}function ia(t,e){var n=typeof t;return e=null==e?I:e,!!e&&("number"==n||"symbol"!=n&&Kt.test(t))&&t>-1&&t%1==0&&t<e}function oa(t,e,n){if(!kc(n))return!1;var r=typeof e;return!!("number"==r?sc(n)&&ia(e,n.length):"string"==r&&e in n)&&nc(n[e],t)}function ua(t,e){if(uc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Nc(t))||(Pt.test(t)||!jt.test(t)||null!=e&&t in ne(e))}function aa(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function sa(t){var e=Bu(t),n=_r[e];if("function"!=typeof n||!(e in Sr.prototype))return!1;if(t===n)return!0;var r=Du(n);return!!r&&t===r[0]}function la(t){return!!de&&de in t}(Ze&&Vu(new Ze(new ArrayBuffer(1)))!=ht||Qe&&Vu(new Qe)!=Z||tn&&Vu(tn.resolve())!=nt||en&&Vu(new en)!=ot||on&&Vu(new on)!=lt)&&(Vu=function(t){var e=Ri(t),n=e==et?t.constructor:o,r=n?Ta(n):"";if(r)switch(r){case fn:return ht;case hn:return Z;case jn:return nt;case Pn:return ot;case Hn:return lt}return e});var ca=le?bc:qh;function fa(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||se;return t===n}function ha(t){return t===t&&!kc(t)}function da(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==o||t in ne(n)))}}function pa(t){var e=zl(t,(function(t){return n.size===f&&n.clear(),t})),n=e.cache;return e}function va(t,e){var n=t[1],r=e[1],i=n|r,o=i<(y|b|S),u=r==S&&n==w||r==S&&n==L&&t[7].length<=e[8]||r==(S|L)&&e[7].length<=e[8]&&n==w;if(!o&&!u)return t;r&y&&(t[2]=e[2],i|=n&y?0:_);var a=e[3];if(a){var s=t[3];t[3]=s?tu(s,a,e[4]):a,t[4]=s?lr(t[3],h):e[4]}return a=e[5],a&&(s=t[5],t[5]=s?eu(s,a,e[6]):a,t[6]=s?lr(t[5],h):e[6]),a=e[7],a&&(t[7]=a),r&S&&(t[8]=null==t[8]?e[8]:We(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ma(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function ga(t){return pe.call(t)}function ya(t,e,r){return e=Be(e===o?t.length-1:e,0),function(){var i=arguments,o=-1,u=Be(i.length-e,0),a=n(u);while(++o<u)a[o]=i[e+o];o=-1;var s=n(e+1);while(++o<e)s[o]=i[o];return s[e]=r(a),bn(t,this,s)}}function ba(t,e){return e.length<2?t:ji(t,Lo(e,0,-1))}function _a(t,e){var n=t.length,r=We(e.length,n),i=nu(t);while(r--){var u=e[r];t[r]=ia(u,n)?i[u]:o}return t}function wa(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ka=La(xo),xa=je||function(t,e){return an.setTimeout(t,e)},Ea=La(Eo);function Sa(t,e,n){var r=e+"";return Ea(t,na(r,Ma(Ku(r),n)))}function La(t){var e=0,n=0;return function(){var r=Ue(),i=M-(r-n);if(n=r,i>0){if(++e>=T)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Oa(t,e){var n=-1,r=t.length,i=r-1;e=e===o?r:e;while(++n<e){var u=mo(n,i),a=t[u];t[u]=t[n],t[n]=a}return t.length=e,t}var Aa=pa((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Rt,(function(t,n,r,i){e.push(r?i.replace(Ut,"$1"):n||t)})),e}));function Ca(t){if("string"==typeof t||Nc(t))return t;var e=t+"";return"0"==e&&1/t==-$?"-0":e}function Ta(t){if(null!=t){try{return ce.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ma(t,e){return wn(H,(function(n){var r="_."+n[0];e&n[1]&&!Sn(t,r)&&t.push(r)})),t.sort()}function ja(t){if(t instanceof Sr)return t.clone();var e=new Er(t.__wrapped__,t.__chain__);return e.__actions__=nu(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Pa(t,e,r){e=(r?oa(t,e,r):e===o)?1:Be(Yc(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];var u=0,a=0,s=n(Pe(i/e));while(u<i)s[a++]=Lo(t,u,u+=e);return s}function Ra(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var o=t[e];o&&(i[r++]=o)}return i}function $a(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return An(uc(r)?nu(r):[r],Li(e,1))}var Ia=bo((function(t,e){return lc(t)?bi(t,Li(e,1,lc,!0)):[]})),Na=bo((function(t,e){var n=rs(e);return lc(n)&&(n=o),lc(t)?bi(t,Li(e,1,lc,!0),Hu(n,2)):[]})),za=bo((function(t,e){var n=rs(e);return lc(n)&&(n=o),lc(t)?bi(t,Li(e,1,lc,!0),o,n):[]}));function Da(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),Lo(t,e<0?0:e,r)):[]}function Ba(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),e=r-e,Lo(t,0,e<0?0:e)):[]}function Wa(t,e){return t&&t.length?Io(t,Hu(e,3),!0,!0):[]}function Ha(t,e){return t&&t.length?Io(t,Hu(e,3),!0):[]}function Fa(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&oa(t,e,n)&&(n=0,r=i),Ei(t,e,n,r)):[]}function Ua(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=Be(r+i,0)),In(t,Hu(e,3),i)}function Xa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Yc(n),i=n<0?Be(r+i,0):We(i,r-1)),In(t,Hu(e,3),i,!0)}function Ya(t){var e=null==t?0:t.length;return e?Li(t,1):[]}function qa(t){var e=null==t?0:t.length;return e?Li(t,$):[]}function Ga(t,e){var n=null==t?0:t.length;return n?(e=e===o?1:Yc(e),Li(t,e)):[]}function Va(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function Ja(t){return t&&t.length?t[0]:o}function Ka(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=Be(r+i,0)),Nn(t,e,i)}function Za(t){var e=null==t?0:t.length;return e?Lo(t,0,-1):[]}var Qa=bo((function(t){var e=On(t,Bo);return e.length&&e[0]===t[0]?Di(e):[]})),ts=bo((function(t){var e=rs(t),n=On(t,Bo);return e===rs(n)?e=o:n.pop(),n.length&&n[0]===t[0]?Di(n,Hu(e,2)):[]})),es=bo((function(t){var e=rs(t),n=On(t,Bo);return e="function"==typeof e?e:o,e&&n.pop(),n.length&&n[0]===t[0]?Di(n,o,e):[]}));function ns(t,e){return null==t?"":ze.call(t,e)}function rs(t){var e=null==t?0:t.length;return e?t[e-1]:o}function is(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=Yc(n),i=i<0?Be(r+i,0):We(i,r-1)),e===e?dr(t,e,i):In(t,Dn,i,!0)}function os(t,e){return t&&t.length?so(t,Yc(e)):o}var us=bo(as);function as(t,e){return t&&t.length&&e&&e.length?po(t,e):t}function ss(t,e,n){return t&&t.length&&e&&e.length?po(t,e,Hu(n,2)):t}function ls(t,e,n){return t&&t.length&&e&&e.length?po(t,e,o,n):t}var cs=Iu((function(t,e){var n=null==t?0:t.length,r=di(t,e);return vo(t,On(e,(function(t){return ia(t,n)?+t:t})).sort(Zo)),r}));function fs(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;e=Hu(e,3);while(++r<o){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return vo(t,i),n}function hs(t){return null==t?t:qe.call(t)}function ds(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&oa(t,e,n)?(e=0,n=r):(e=null==e?0:Yc(e),n=n===o?r:Yc(n)),Lo(t,e,n)):[]}function ps(t,e){return Ao(t,e)}function vs(t,e,n){return Co(t,e,Hu(n,2))}function ms(t,e){var n=null==t?0:t.length;if(n){var r=Ao(t,e);if(r<n&&nc(t[r],e))return r}return-1}function gs(t,e){return Ao(t,e,!0)}function ys(t,e,n){return Co(t,e,Hu(n,2),!0)}function bs(t,e){var n=null==t?0:t.length;if(n){var r=Ao(t,e,!0)-1;if(nc(t[r],e))return r}return-1}function _s(t){return t&&t.length?To(t):[]}function ws(t,e){return t&&t.length?To(t,Hu(e,2)):[]}function ks(t){var e=null==t?0:t.length;return e?Lo(t,1,e):[]}function xs(t,e,n){return t&&t.length?(e=n||e===o?1:Yc(e),Lo(t,0,e<0?0:e)):[]}function Es(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),e=r-e,Lo(t,e<0?0:e,r)):[]}function Ss(t,e){return t&&t.length?Io(t,Hu(e,3),!1,!0):[]}function Ls(t,e){return t&&t.length?Io(t,Hu(e,3)):[]}var Os=bo((function(t){return Po(Li(t,1,lc,!0))})),As=bo((function(t){var e=rs(t);return lc(e)&&(e=o),Po(Li(t,1,lc,!0),Hu(e,2))})),Cs=bo((function(t){var e=rs(t);return e="function"==typeof e?e:o,Po(Li(t,1,lc,!0),o,e)}));function Ts(t){return t&&t.length?Po(t):[]}function Ms(t,e){return t&&t.length?Po(t,Hu(e,2)):[]}function js(t,e){return e="function"==typeof e?e:o,t&&t.length?Po(t,o,e):[]}function Ps(t){if(!t||!t.length)return[];var e=0;return t=En(t,(function(t){if(lc(t))return e=Be(t.length,e),!0})),Yn(e,(function(e){return On(t,Wn(e))}))}function Rs(t,e){if(!t||!t.length)return[];var n=Ps(t);return null==e?n:On(n,(function(t){return bn(e,o,t)}))}var $s=bo((function(t,e){return lc(t)?bi(t,e):[]})),Is=bo((function(t){return zo(En(t,lc))})),Ns=bo((function(t){var e=rs(t);return lc(e)&&(e=o),zo(En(t,lc),Hu(e,2))})),zs=bo((function(t){var e=rs(t);return e="function"==typeof e?e:o,zo(En(t,lc),o,e)})),Ds=bo(Ps);function Bs(t,e){return Do(t||[],e||[],ai)}function Ws(t,e){return Do(t||[],e||[],ko)}var Hs=bo((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,Rs(t,n)}));function Fs(t){var e=_r(t);return e.__chain__=!0,e}function Us(t,e){return e(t),t}function Xs(t,e){return e(t)}var Ys=Iu((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return di(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Sr&&ia(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Xs,args:[i],thisArg:o}),new Er(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));function qs(){return Fs(this)}function Gs(){return new Er(this.value(),this.__chain__)}function Vs(){this.__values__===o&&(this.__values__=Uc(this.value()));var t=this.__index__>=this.__values__.length,e=t?o:this.__values__[this.__index__++];return{done:t,value:e}}function Js(){return this}function Ks(t){var e,n=this;while(n instanceof xr){var r=ja(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function Zs(){var t=this.__wrapped__;if(t instanceof Sr){var e=t;return this.__actions__.length&&(e=new Sr(this)),e=e.reverse(),e.__actions__.push({func:Xs,args:[hs],thisArg:o}),new Er(e,this.__chain__)}return this.thru(hs)}function Qs(){return No(this.__wrapped__,this.__actions__)}var tl=uu((function(t,e,n){fe.call(t,n)?++t[n]:hi(t,n,1)}));function el(t,e,n){var r=uc(t)?xn:ki;return n&&oa(t,e,n)&&(e=o),r(t,Hu(e,3))}function nl(t,e){var n=uc(t)?En:Si;return n(t,Hu(e,3))}var rl=vu(Ua),il=vu(Xa);function ol(t,e){return Li(pl(t,e),1)}function ul(t,e){return Li(pl(t,e),$)}function al(t,e,n){return n=n===o?1:Yc(n),Li(pl(t,e),n)}function sl(t,e){var n=uc(t)?wn:_i;return n(t,Hu(e,3))}function ll(t,e){var n=uc(t)?kn:wi;return n(t,Hu(e,3))}var cl=uu((function(t,e,n){fe.call(t,n)?t[n].push(e):hi(t,n,[e])}));function fl(t,e,n,r){t=sc(t)?t:Bf(t),n=n&&!r?Yc(n):0;var i=t.length;return n<0&&(n=Be(i+n,0)),Ic(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Nn(t,e,n)>-1}var hl=bo((function(t,e,r){var i=-1,o="function"==typeof e,u=sc(t)?n(t.length):[];return _i(t,(function(t){u[++i]=o?bn(e,t,r):Wi(t,e,r)})),u})),dl=uu((function(t,e,n){hi(t,n,e)}));function pl(t,e){var n=uc(t)?On:ro;return n(t,Hu(e,3))}function vl(t,e,n,r){return null==t?[]:(uc(e)||(e=null==e?[]:[e]),n=r?o:n,uc(n)||(n=null==n?[]:[n]),lo(t,e,n))}var ml=uu((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function gl(t,e,n){var r=uc(t)?Cn:Fn,i=arguments.length<3;return r(t,Hu(e,4),n,i,_i)}function yl(t,e,n){var r=uc(t)?Tn:Fn,i=arguments.length<3;return r(t,Hu(e,4),n,i,wi)}function bl(t,e){var n=uc(t)?En:Si;return n(t,Dl(Hu(e,3)))}function _l(t){var e=uc(t)?ri:_o;return e(t)}function wl(t,e,n){e=(n?oa(t,e,n):e===o)?1:Yc(e);var r=uc(t)?ii:wo;return r(t,e)}function kl(t){var e=uc(t)?oi:So;return e(t)}function xl(t){if(null==t)return 0;if(sc(t))return Ic(t)?pr(t):t.length;var e=Vu(t);return e==Z||e==ot?t.size:to(t).length}function El(t,e,n){var r=uc(t)?Mn:Oo;return n&&oa(t,e,n)&&(e=o),r(t,Hu(e,3))}var Sl=bo((function(t,e){if(null==t)return[];var n=e.length;return n>1&&oa(t,e[0],e[1])?e=[]:n>2&&oa(e[0],e[1],e[2])&&(e=[e[0]]),lo(t,Li(e,1),[])})),Ll=Me||function(){return an.Date.now()};function Ol(t,e){if("function"!=typeof e)throw new oe(l);return t=Yc(t),function(){if(--t<1)return e.apply(this,arguments)}}function Al(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Cu(t,S,o,o,o,o,e)}function Cl(t,e){var n;if("function"!=typeof e)throw new oe(l);return t=Yc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Tl=bo((function(t,e,n){var r=y;if(n.length){var i=lr(n,Wu(Tl));r|=x}return Cu(t,r,e,n,i)})),Ml=bo((function(t,e,n){var r=y|b;if(n.length){var i=lr(n,Wu(Ml));r|=x}return Cu(e,r,t,n,i)}));function jl(t,e,n){e=n?o:e;var r=Cu(t,w,o,o,o,o,o,e);return r.placeholder=jl.placeholder,r}function Pl(t,e,n){e=n?o:e;var r=Cu(t,k,o,o,o,o,o,e);return r.placeholder=Pl.placeholder,r}function Rl(t,e,n){var r,i,u,a,s,c,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new oe(l);function v(e){var n=r,u=i;return r=i=o,f=e,a=t.apply(u,n),a}function m(t){return f=t,s=xa(b,e),h?v(t):a}function g(t){var n=t-c,r=t-f,i=e-n;return d?We(i,u-r):i}function y(t){var n=t-c,r=t-f;return c===o||n>=e||n<0||d&&r>=u}function b(){var t=Ll();if(y(t))return _(t);s=xa(b,g(t))}function _(t){return s=o,p&&r?v(t):(r=i=o,a)}function w(){s!==o&&Xo(s),f=0,r=c=i=s=o}function k(){return s===o?a:_(Ll())}function x(){var t=Ll(),n=y(t);if(r=arguments,i=this,c=t,n){if(s===o)return m(c);if(d)return Xo(s),s=xa(b,e),v(c)}return s===o&&(s=xa(b,e)),a}return e=Gc(e)||0,kc(n)&&(h=!!n.leading,d="maxWait"in n,u=d?Be(Gc(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),x.cancel=w,x.flush=k,x}var $l=bo((function(t,e){return yi(t,1,e)})),Il=bo((function(t,e,n){return yi(t,Gc(e)||0,n)}));function Nl(t){return Cu(t,O)}function zl(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(l);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(zl.Cache||Wr),n}function Dl(t){if("function"!=typeof t)throw new oe(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Bl(t){return Cl(2,t)}zl.Cache=Wr;var Wl=Fo((function(t,e){e=1==e.length&&uc(e[0])?On(e[0],Gn(Hu())):On(Li(e,1),Gn(Hu()));var n=e.length;return bo((function(r){var i=-1,o=We(r.length,n);while(++i<o)r[i]=e[i].call(this,r[i]);return bn(t,this,r)}))})),Hl=bo((function(t,e){var n=lr(e,Wu(Hl));return Cu(t,x,o,e,n)})),Fl=bo((function(t,e){var n=lr(e,Wu(Fl));return Cu(t,E,o,e,n)})),Ul=Iu((function(t,e){return Cu(t,L,o,o,o,e)}));function Xl(t,e){if("function"!=typeof t)throw new oe(l);return e=e===o?e:Yc(e),bo(t,e)}function Yl(t,e){if("function"!=typeof t)throw new oe(l);return e=null==e?0:Be(Yc(e),0),bo((function(n){var r=n[e],i=Uo(n,0,e);return r&&An(i,r),bn(t,this,i)}))}function ql(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new oe(l);return kc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rl(t,e,{leading:r,maxWait:e,trailing:i})}function Gl(t){return Al(t,1)}function Vl(t,e){return Hl(Wo(e),t)}function Jl(){if(!arguments.length)return[];var t=arguments[0];return uc(t)?t:[t]}function Kl(t){return vi(t,v)}function Zl(t,e){return e="function"==typeof e?e:o,vi(t,v,e)}function Ql(t){return vi(t,d|v)}function tc(t,e){return e="function"==typeof e?e:o,vi(t,d|v,e)}function ec(t,e){return null==e||gi(t,e,wf(e))}function nc(t,e){return t===e||t!==t&&e!==e}var rc=Eu($i),ic=Eu((function(t,e){return t>=e})),oc=Hi(function(){return arguments}())?Hi:function(t){return xc(t)&&fe.call(t,"callee")&&!Ee.call(t,"callee")},uc=n.isArray,ac=dn?Gn(dn):Fi;function sc(t){return null!=t&&wc(t.length)&&!bc(t)}function lc(t){return xc(t)&&sc(t)}function cc(t){return!0===t||!1===t||xc(t)&&Ri(t)==Y}var fc=Ie||qh,hc=pn?Gn(pn):Ui;function dc(t){return xc(t)&&1===t.nodeType&&!jc(t)}function pc(t){if(null==t)return!0;if(sc(t)&&(uc(t)||"string"==typeof t||"function"==typeof t.splice||fc(t)||zc(t)||oc(t)))return!t.length;var e=Vu(t);if(e==Z||e==ot)return!t.size;if(fa(t))return!to(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function vc(t,e){return Xi(t,e)}function mc(t,e,n){n="function"==typeof n?n:o;var r=n?n(t,e):o;return r===o?Xi(t,e,o,n):!!r}function gc(t){if(!xc(t))return!1;var e=Ri(t);return e==V||e==G||"string"==typeof t.message&&"string"==typeof t.name&&!jc(t)}function yc(t){return"number"==typeof t&&Ne(t)}function bc(t){if(!kc(t))return!1;var e=Ri(t);return e==J||e==K||e==X||e==rt}function _c(t){return"number"==typeof t&&t==Yc(t)}function wc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=I}function kc(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function xc(t){return null!=t&&"object"==typeof t}var Ec=vn?Gn(vn):qi;function Sc(t,e){return t===e||Gi(t,e,Uu(e))}function Lc(t,e,n){return n="function"==typeof n?n:o,Gi(t,e,Uu(e),n)}function Oc(t){return Mc(t)&&t!=+t}function Ac(t){if(ca(t))throw new i(s);return Vi(t)}function Cc(t){return null===t}function Tc(t){return null==t}function Mc(t){return"number"==typeof t||xc(t)&&Ri(t)==Q}function jc(t){if(!xc(t)||Ri(t)!=et)return!1;var e=ke(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ce.call(n)==ve}var Pc=mn?Gn(mn):Ji;function Rc(t){return _c(t)&&t>=-I&&t<=I}var $c=gn?Gn(gn):Ki;function Ic(t){return"string"==typeof t||!uc(t)&&xc(t)&&Ri(t)==ut}function Nc(t){return"symbol"==typeof t||xc(t)&&Ri(t)==at}var zc=yn?Gn(yn):Zi;function Dc(t){return t===o}function Bc(t){return xc(t)&&Vu(t)==lt}function Wc(t){return xc(t)&&Ri(t)==ct}var Hc=Eu(no),Fc=Eu((function(t,e){return t<=e}));function Uc(t){if(!t)return[];if(sc(t))return Ic(t)?vr(t):nu(t);if(Oe&&t[Oe])return ur(t[Oe]());var e=Vu(t),n=e==Z?ar:e==ot?cr:Bf;return n(t)}function Xc(t){if(!t)return 0===t?t:0;if(t=Gc(t),t===$||t===-$){var e=t<0?-1:1;return e*N}return t===t?t:0}function Yc(t){var e=Xc(t),n=e%1;return e===e?n?e-n:e:0}function qc(t){return t?pi(Yc(t),0,D):0}function Gc(t){if("number"==typeof t)return t;if(Nc(t))return z;if(kc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=kc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Nt,"");var n=Gt.test(t);return n||Jt.test(t)?rn(t.slice(2),n?2:8):qt.test(t)?z:+t}function Vc(t){return ru(t,kf(t))}function Jc(t){return t?pi(Yc(t),-I,I):0===t?t:0}function Kc(t){return null==t?"":jo(t)}var Zc=au((function(t,e){if(fa(e)||sc(e))ru(e,wf(e),t);else for(var n in e)fe.call(e,n)&&ai(t,n,e[n])})),Qc=au((function(t,e){ru(e,kf(e),t)})),tf=au((function(t,e,n,r){ru(e,kf(e),t,r)})),ef=au((function(t,e,n,r){ru(e,wf(e),t,r)})),nf=Iu(di);function rf(t,e){var n=kr(t);return null==e?n:ci(n,e)}var of=bo((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:o;i&&oa(e[0],e[1],i)&&(r=1);while(++n<r){var u=e[n],a=kf(u),s=-1,l=a.length;while(++s<l){var c=a[s],f=t[c];(f===o||nc(f,se[c])&&!fe.call(t,c))&&(t[c]=u[c])}}return t})),uf=bo((function(t){return t.push(o,Mu),bn(Lf,o,t)}));function af(t,e){return $n(t,Hu(e,3),Ci)}function sf(t,e){return $n(t,Hu(e,3),Ti)}function lf(t,e){return null==t?t:Oi(t,Hu(e,3),kf)}function cf(t,e){return null==t?t:Ai(t,Hu(e,3),kf)}function ff(t,e){return t&&Ci(t,Hu(e,3))}function hf(t,e){return t&&Ti(t,Hu(e,3))}function df(t){return null==t?[]:Mi(t,wf(t))}function pf(t){return null==t?[]:Mi(t,kf(t))}function vf(t,e,n){var r=null==t?o:ji(t,e);return r===o?n:r}function mf(t,e){return null!=t&&Zu(t,e,Ii)}function gf(t,e){return null!=t&&Zu(t,e,Ni)}var yf=yu((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),t[e]=n}),Sh(Ch)),bf=yu((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),fe.call(t,e)?t[e].push(n):t[e]=[n]}),Hu),_f=bo(Wi);function wf(t){return sc(t)?ni(t):to(t)}function kf(t){return sc(t)?ni(t,!0):eo(t)}function xf(t,e){var n={};return e=Hu(e,3),Ci(t,(function(t,r,i){hi(n,e(t,r,i),t)})),n}function Ef(t,e){var n={};return e=Hu(e,3),Ci(t,(function(t,r,i){hi(n,r,e(t,r,i))})),n}var Sf=au((function(t,e,n){uo(t,e,n)})),Lf=au((function(t,e,n,r){uo(t,e,n,r)})),Of=Iu((function(t,e){var n={};if(null==t)return n;var r=!1;e=On(e,(function(e){return e=Ho(e,t),r||(r=e.length>1),e})),ru(t,zu(t),n),r&&(n=vi(n,d|p|v,ju));var i=e.length;while(i--)Ro(n,e[i]);return n}));function Af(t,e){return Tf(t,Dl(Hu(e)))}var Cf=Iu((function(t,e){return null==t?{}:co(t,e)}));function Tf(t,e){if(null==t)return{};var n=On(zu(t),(function(t){return[t]}));return e=Hu(e),fo(t,n,(function(t,n){return e(t,n[0])}))}function Mf(t,e,n){e=Ho(e,t);var r=-1,i=e.length;i||(i=1,t=o);while(++r<i){var u=null==t?o:t[Ca(e[r])];u===o&&(r=i,u=n),t=bc(u)?u.call(t):u}return t}function jf(t,e,n){return null==t?t:ko(t,e,n)}function Pf(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:ko(t,e,n,r)}var Rf=Au(wf),$f=Au(kf);function If(t,e,n){var r=uc(t),i=r||fc(t)||zc(t);if(e=Hu(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:kc(t)&&bc(o)?kr(ke(t)):{}}return(i?wn:Ci)(t,(function(t,r,i){return e(n,t,r,i)})),n}function Nf(t,e){return null==t||Ro(t,e)}function zf(t,e,n){return null==t?t:$o(t,e,Wo(n))}function Df(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:$o(t,e,Wo(n),r)}function Bf(t){return null==t?[]:Vn(t,wf(t))}function Wf(t){return null==t?[]:Vn(t,kf(t))}function Hf(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=Gc(n),n=n===n?n:0),e!==o&&(e=Gc(e),e=e===e?e:0),pi(Gc(t),e,n)}function Ff(t,e,n){return e=Xc(e),n===o?(n=e,e=0):n=Xc(n),t=Gc(t),zi(t,e,n)}function Uf(t,e,n){if(n&&"boolean"!=typeof n&&oa(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=Xc(t),e===o?(e=t,t=0):e=Xc(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ye();return We(t+i*(e-t+nn("1e-"+((i+"").length-1))),e)}return mo(t,e)}var Xf=hu((function(t,e,n){return e=e.toLowerCase(),t+(n?Yf(e):e)}));function Yf(t){return bh(Kc(t).toLowerCase())}function qf(t){return t=Kc(t),t&&t.replace(Zt,tr).replace(Fe,"")}function Gf(t,e,n){t=Kc(t),e=jo(e);var r=t.length;n=n===o?r:pi(Yc(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Vf(t){return t=Kc(t),t&&At.test(t)?t.replace(Lt,er):t}function Jf(t){return t=Kc(t),t&&It.test(t)?t.replace($t,"\\$&"):t}var Kf=hu((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Zf=hu((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Qf=fu("toLowerCase");function th(t,e,n){t=Kc(t),e=Yc(e);var r=e?pr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return wu(Re(i),n)+t+wu(Pe(i),n)}function eh(t,e,n){t=Kc(t),e=Yc(e);var r=e?pr(t):0;return e&&r<e?t+wu(e-r,n):t}function nh(t,e,n){t=Kc(t),e=Yc(e);var r=e?pr(t):0;return e&&r<e?wu(e-r,n)+t:t}function rh(t,e,n){return n||null==e?e=0:e&&(e=+e),Xe(Kc(t).replace(zt,""),e||0)}function ih(t,e,n){return e=(n?oa(t,e,n):e===o)?1:Yc(e),yo(Kc(t),e)}function oh(){var t=arguments,e=Kc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var uh=hu((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function ah(t,e,n){return n&&"number"!=typeof n&&oa(t,e,n)&&(e=n=o),n=n===o?D:n>>>0,n?(t=Kc(t),t&&("string"==typeof e||null!=e&&!Pc(e))&&(e=jo(e),!e&&ir(t))?Uo(vr(t),0,n):t.split(e,n)):[]}var sh=hu((function(t,e,n){return t+(n?" ":"")+bh(e)}));function lh(t,e,n){return t=Kc(t),n=null==n?0:pi(Yc(n),0,t.length),e=jo(e),t.slice(n,n+e.length)==e}function ch(t,e,n){var r=_r.templateSettings;n&&oa(t,e,n)&&(e=o),t=Kc(t),e=tf({},e,r,Tu);var i,u,a=tf({},e.imports,r.imports,Tu),s=wf(a),l=Vn(a,s),c=0,f=e.interpolate||Qt,h="__p += '",d=re((e.escape||Qt).source+"|"+f.source+"|"+(f===Mt?Xt:Qt).source+"|"+(e.evaluate||Qt).source+"|$","g"),p="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";t.replace(d,(function(e,n,r,o,a,s){return r||(r=o),h+=t.slice(c,s).replace(te,nr),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(u=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e})),h+="';\n";var v=fe.call(e,"variable")&&e.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(u?h.replace(kt,""):h).replace(xt,"$1").replace(Et,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=wh((function(){return Ft(s,p+"return "+h).apply(o,l)}));if(m.source=h,gc(m))throw m;return m}function fh(t){return Kc(t).toLowerCase()}function hh(t){return Kc(t).toUpperCase()}function dh(t,e,n){if(t=Kc(t),t&&(n||e===o))return t.replace(Nt,"");if(!t||!(e=jo(e)))return t;var r=vr(t),i=vr(e),u=Kn(r,i),a=Zn(r,i)+1;return Uo(r,u,a).join("")}function ph(t,e,n){if(t=Kc(t),t&&(n||e===o))return t.replace(Dt,"");if(!t||!(e=jo(e)))return t;var r=vr(t),i=Zn(r,vr(e))+1;return Uo(r,0,i).join("")}function vh(t,e,n){if(t=Kc(t),t&&(n||e===o))return t.replace(zt,"");if(!t||!(e=jo(e)))return t;var r=vr(t),i=Kn(r,vr(e));return Uo(r,i).join("")}function mh(t,e){var n=A,r=C;if(kc(e)){var i="separator"in e?e.separator:i;n="length"in e?Yc(e.length):n,r="omission"in e?jo(e.omission):r}t=Kc(t);var u=t.length;if(ir(t)){var a=vr(t);u=a.length}if(n>=u)return t;var s=n-pr(r);if(s<1)return r;var l=a?Uo(a,0,s).join(""):t.slice(0,s);if(i===o)return l+r;if(a&&(s+=l.length-s),Pc(i)){if(t.slice(s).search(i)){var c,f=l;i.global||(i=re(i.source,Kc(Yt.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(f))var h=c.index;l=l.slice(0,h===o?s:h)}}else if(t.indexOf(jo(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r}function gh(t){return t=Kc(t),t&&Ot.test(t)?t.replace(St,mr):t}var yh=hu((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),bh=fu("toUpperCase");function _h(t,e,n){return t=Kc(t),e=n?o:e,e===o?or(t)?br(t):Rn(t):t.match(e)||[]}var wh=bo((function(t,e){try{return bn(t,o,e)}catch(n){return gc(n)?n:new i(n)}})),kh=Iu((function(t,e){return wn(e,(function(e){e=Ca(e),hi(t,e,Tl(t[e],t))})),t}));function xh(t){var e=null==t?0:t.length,n=Hu();return t=e?On(t,(function(t){if("function"!=typeof t[1])throw new oe(l);return[n(t[0]),t[1]]})):[],bo((function(n){var r=-1;while(++r<e){var i=t[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function Eh(t){return mi(vi(t,d))}function Sh(t){return function(){return t}}function Lh(t,e){return null==t||t!==t?e:t}var Oh=mu(),Ah=mu(!0);function Ch(t){return t}function Th(t){return Qi("function"==typeof t?t:vi(t,d))}function Mh(t){return io(vi(t,d))}function jh(t,e){return oo(t,vi(e,d))}var Ph=bo((function(t,e){return function(n){return Wi(n,t,e)}})),Rh=bo((function(t,e){return function(n){return Wi(t,n,e)}}));function $h(t,e,n){var r=wf(e),i=Mi(e,r);null!=n||kc(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Mi(e,wf(e)));var o=!(kc(n)&&"chain"in n)||!!n.chain,u=bc(t);return wn(i,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=nu(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,An([this.value()],arguments))})})),t}function Ih(){return an._===this&&(an._=me),this}function Nh(){}function zh(t){return t=Yc(t),bo((function(e){return so(e,t)}))}var Dh=_u(On),Bh=_u(xn),Wh=_u(Mn);function Hh(t){return ua(t)?Wn(Ca(t)):ho(t)}function Fh(t){return function(e){return null==t?o:ji(t,e)}}var Uh=xu(),Xh=xu(!0);function Yh(){return[]}function qh(){return!1}function Gh(){return{}}function Vh(){return""}function Jh(){return!0}function Kh(t,e){if(t=Yc(t),t<1||t>I)return[];var n=D,r=We(t,D);e=Hu(e),t-=D;var i=Yn(r,e);while(++n<t)e(n);return i}function Zh(t){return uc(t)?On(t,Ca):Nc(t)?[t]:nu(Aa(Kc(t)))}function Qh(t){var e=++he;return Kc(t)+e}var td=bu((function(t,e){return t+e}),0),ed=Lu("ceil"),nd=bu((function(t,e){return t/e}),1),rd=Lu("floor");function id(t){return t&&t.length?xi(t,Ch,$i):o}function od(t,e){return t&&t.length?xi(t,Hu(e,2),$i):o}function ud(t){return Bn(t,Ch)}function ad(t,e){return Bn(t,Hu(e,2))}function sd(t){return t&&t.length?xi(t,Ch,no):o}function ld(t,e){return t&&t.length?xi(t,Hu(e,2),no):o}var cd=bu((function(t,e){return t*e}),1),fd=Lu("round"),hd=bu((function(t,e){return t-e}),0);function dd(t){return t&&t.length?Xn(t,Ch):0}function pd(t,e){return t&&t.length?Xn(t,Hu(e,2)):0}return _r.after=Ol,_r.ary=Al,_r.assign=Zc,_r.assignIn=Qc,_r.assignInWith=tf,_r.assignWith=ef,_r.at=nf,_r.before=Cl,_r.bind=Tl,_r.bindAll=kh,_r.bindKey=Ml,_r.castArray=Jl,_r.chain=Fs,_r.chunk=Pa,_r.compact=Ra,_r.concat=$a,_r.cond=xh,_r.conforms=Eh,_r.constant=Sh,_r.countBy=tl,_r.create=rf,_r.curry=jl,_r.curryRight=Pl,_r.debounce=Rl,_r.defaults=of,_r.defaultsDeep=uf,_r.defer=$l,_r.delay=Il,_r.difference=Ia,_r.differenceBy=Na,_r.differenceWith=za,_r.drop=Da,_r.dropRight=Ba,_r.dropRightWhile=Wa,_r.dropWhile=Ha,_r.fill=Fa,_r.filter=nl,_r.flatMap=ol,_r.flatMapDeep=ul,_r.flatMapDepth=al,_r.flatten=Ya,_r.flattenDeep=qa,_r.flattenDepth=Ga,_r.flip=Nl,_r.flow=Oh,_r.flowRight=Ah,_r.fromPairs=Va,_r.functions=df,_r.functionsIn=pf,_r.groupBy=cl,_r.initial=Za,_r.intersection=Qa,_r.intersectionBy=ts,_r.intersectionWith=es,_r.invert=yf,_r.invertBy=bf,_r.invokeMap=hl,_r.iteratee=Th,_r.keyBy=dl,_r.keys=wf,_r.keysIn=kf,_r.map=pl,_r.mapKeys=xf,_r.mapValues=Ef,_r.matches=Mh,_r.matchesProperty=jh,_r.memoize=zl,_r.merge=Sf,_r.mergeWith=Lf,_r.method=Ph,_r.methodOf=Rh,_r.mixin=$h,_r.negate=Dl,_r.nthArg=zh,_r.omit=Of,_r.omitBy=Af,_r.once=Bl,_r.orderBy=vl,_r.over=Dh,_r.overArgs=Wl,_r.overEvery=Bh,_r.overSome=Wh,_r.partial=Hl,_r.partialRight=Fl,_r.partition=ml,_r.pick=Cf,_r.pickBy=Tf,_r.property=Hh,_r.propertyOf=Fh,_r.pull=us,_r.pullAll=as,_r.pullAllBy=ss,_r.pullAllWith=ls,_r.pullAt=cs,_r.range=Uh,_r.rangeRight=Xh,_r.rearg=Ul,_r.reject=bl,_r.remove=fs,_r.rest=Xl,_r.reverse=hs,_r.sampleSize=wl,_r.set=jf,_r.setWith=Pf,_r.shuffle=kl,_r.slice=ds,_r.sortBy=Sl,_r.sortedUniq=_s,_r.sortedUniqBy=ws,_r.split=ah,_r.spread=Yl,_r.tail=ks,_r.take=xs,_r.takeRight=Es,_r.takeRightWhile=Ss,_r.takeWhile=Ls,_r.tap=Us,_r.throttle=ql,_r.thru=Xs,_r.toArray=Uc,_r.toPairs=Rf,_r.toPairsIn=$f,_r.toPath=Zh,_r.toPlainObject=Vc,_r.transform=If,_r.unary=Gl,_r.union=Os,_r.unionBy=As,_r.unionWith=Cs,_r.uniq=Ts,_r.uniqBy=Ms,_r.uniqWith=js,_r.unset=Nf,_r.unzip=Ps,_r.unzipWith=Rs,_r.update=zf,_r.updateWith=Df,_r.values=Bf,_r.valuesIn=Wf,_r.without=$s,_r.words=_h,_r.wrap=Vl,_r.xor=Is,_r.xorBy=Ns,_r.xorWith=zs,_r.zip=Ds,_r.zipObject=Bs,_r.zipObjectDeep=Ws,_r.zipWith=Hs,_r.entries=Rf,_r.entriesIn=$f,_r.extend=Qc,_r.extendWith=tf,$h(_r,_r),_r.add=td,_r.attempt=wh,_r.camelCase=Xf,_r.capitalize=Yf,_r.ceil=ed,_r.clamp=Hf,_r.clone=Kl,_r.cloneDeep=Ql,_r.cloneDeepWith=tc,_r.cloneWith=Zl,_r.conformsTo=ec,_r.deburr=qf,_r.defaultTo=Lh,_r.divide=nd,_r.endsWith=Gf,_r.eq=nc,_r.escape=Vf,_r.escapeRegExp=Jf,_r.every=el,_r.find=rl,_r.findIndex=Ua,_r.findKey=af,_r.findLast=il,_r.findLastIndex=Xa,_r.findLastKey=sf,_r.floor=rd,_r.forEach=sl,_r.forEachRight=ll,_r.forIn=lf,_r.forInRight=cf,_r.forOwn=ff,_r.forOwnRight=hf,_r.get=vf,_r.gt=rc,_r.gte=ic,_r.has=mf,_r.hasIn=gf,_r.head=Ja,_r.identity=Ch,_r.includes=fl,_r.indexOf=Ka,_r.inRange=Ff,_r.invoke=_f,_r.isArguments=oc,_r.isArray=uc,_r.isArrayBuffer=ac,_r.isArrayLike=sc,_r.isArrayLikeObject=lc,_r.isBoolean=cc,_r.isBuffer=fc,_r.isDate=hc,_r.isElement=dc,_r.isEmpty=pc,_r.isEqual=vc,_r.isEqualWith=mc,_r.isError=gc,_r.isFinite=yc,_r.isFunction=bc,_r.isInteger=_c,_r.isLength=wc,_r.isMap=Ec,_r.isMatch=Sc,_r.isMatchWith=Lc,_r.isNaN=Oc,_r.isNative=Ac,_r.isNil=Tc,_r.isNull=Cc,_r.isNumber=Mc,_r.isObject=kc,_r.isObjectLike=xc,_r.isPlainObject=jc,_r.isRegExp=Pc,_r.isSafeInteger=Rc,_r.isSet=$c,_r.isString=Ic,_r.isSymbol=Nc,_r.isTypedArray=zc,_r.isUndefined=Dc,_r.isWeakMap=Bc,_r.isWeakSet=Wc,_r.join=ns,_r.kebabCase=Kf,_r.last=rs,_r.lastIndexOf=is,_r.lowerCase=Zf,_r.lowerFirst=Qf,_r.lt=Hc,_r.lte=Fc,_r.max=id,_r.maxBy=od,_r.mean=ud,_r.meanBy=ad,_r.min=sd,_r.minBy=ld,_r.stubArray=Yh,_r.stubFalse=qh,_r.stubObject=Gh,_r.stubString=Vh,_r.stubTrue=Jh,_r.multiply=cd,_r.nth=os,_r.noConflict=Ih,_r.noop=Nh,_r.now=Ll,_r.pad=th,_r.padEnd=eh,_r.padStart=nh,_r.parseInt=rh,_r.random=Uf,_r.reduce=gl,_r.reduceRight=yl,_r.repeat=ih,_r.replace=oh,_r.result=Mf,_r.round=fd,_r.runInContext=t,_r.sample=_l,_r.size=xl,_r.snakeCase=uh,_r.some=El,_r.sortedIndex=ps,_r.sortedIndexBy=vs,_r.sortedIndexOf=ms,_r.sortedLastIndex=gs,_r.sortedLastIndexBy=ys,_r.sortedLastIndexOf=bs,_r.startCase=sh,_r.startsWith=lh,_r.subtract=hd,_r.sum=dd,_r.sumBy=pd,_r.template=ch,_r.times=Kh,_r.toFinite=Xc,_r.toInteger=Yc,_r.toLength=qc,_r.toLower=fh,_r.toNumber=Gc,_r.toSafeInteger=Jc,_r.toString=Kc,_r.toUpper=hh,_r.trim=dh,_r.trimEnd=ph,_r.trimStart=vh,_r.truncate=mh,_r.unescape=gh,_r.uniqueId=Qh,_r.upperCase=yh,_r.upperFirst=bh,_r.each=sl,_r.eachRight=ll,_r.first=Ja,$h(_r,function(){var t={};return Ci(_r,(function(e,n){fe.call(_r.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),_r.VERSION=u,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){_r[t].placeholder=_r})),wn(["drop","take"],(function(t,e){Sr.prototype[t]=function(n){n=n===o?1:Be(Yc(n),0);var r=this.__filtered__&&!e?new Sr(this):this.clone();return r.__filtered__?r.__takeCount__=We(n,r.__takeCount__):r.__views__.push({size:We(n,D),type:t+(r.__dir__<0?"Right":"")}),r},Sr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),wn(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==j||n==R;Sr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Hu(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),wn(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Sr.prototype[t]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Sr.prototype[t]=function(){return this.__filtered__?new Sr(this):this[n](1)}})),Sr.prototype.compact=function(){return this.filter(Ch)},Sr.prototype.find=function(t){return this.filter(t).head()},Sr.prototype.findLast=function(t){return this.reverse().find(t)},Sr.prototype.invokeMap=bo((function(t,e){return"function"==typeof t?new Sr(this):this.map((function(n){return Wi(n,t,e)}))})),Sr.prototype.reject=function(t){return this.filter(Dl(Hu(t)))},Sr.prototype.slice=function(t,e){t=Yc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Sr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(e=Yc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Sr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Sr.prototype.toArray=function(){return this.take(D)},Ci(Sr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=_r[r?"take"+("last"==e?"Right":""):e],u=r||/^find/.test(e);i&&(_r.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Sr,l=a[0],c=s||uc(e),f=function(t){var e=i.apply(_r,An([t],a));return r&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=u&&!h,v=s&&!d;if(!u&&c){e=v?e:new Sr(this);var m=t.apply(e,a);return m.__actions__.push({func:Xs,args:[f],thisArg:o}),new Er(m,h)}return p&&v?t.apply(this,a):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})})),wn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ue[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);_r.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(uc(i)?i:[],t)}return this[n]((function(n){return e.apply(uc(n)?n:[],t)}))}})),Ci(Sr.prototype,(function(t,e){var n=_r[e];if(n){var r=n.name+"";fe.call(ln,r)||(ln[r]=[]),ln[r].push({name:e,func:n})}})),ln[gu(o,b).name]=[{name:"wrapper",func:o}],Sr.prototype.clone=Lr,Sr.prototype.reverse=Or,Sr.prototype.value=Ar,_r.prototype.at=Ys,_r.prototype.chain=qs,_r.prototype.commit=Gs,_r.prototype.next=Vs,_r.prototype.plant=Ks,_r.prototype.reverse=Zs,_r.prototype.toJSON=_r.prototype.valueOf=_r.prototype.value=Qs,_r.prototype.first=_r.prototype.head,Oe&&(_r.prototype[Oe]=Js),_r},wr=_r();an._=wr,i=function(){return wr}.call(e,n,e,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},"39ef":function(t,e,n){},"4eb5":function(t,e,n){var r=n("6981"),i={autoSetContainer:!1,appendToBody:!0},o={install:function(t){t.prototype.$clipboardConfig=i,t.prototype.$copyText=function(t,e){return new Promise((function(n,o){var u=document.createElement("button"),a=new r(u,{text:function(){return t},action:function(){return"copy"},container:"object"===typeof e?e:document.body});a.on("success",(function(t){a.destroy(),n(t)})),a.on("error",(function(t){a.destroy(),o(t)})),i.appendToBody&&document.body.appendChild(u),u.click(),i.appendToBody&&document.body.removeChild(u)}))},t.directive("clipboard",{bind:function(t,e,n){if("success"===e.arg)t._vClipboard_success=e.value;else if("error"===e.arg)t._vClipboard_error=e.value;else{var o=new r(t,{text:function(){return e.value},action:function(){return"cut"===e.arg?"cut":"copy"},container:i.autoSetContainer?t:void 0});o.on("success",(function(e){var n=t._vClipboard_success;n&&n(e)})),o.on("error",(function(e){var n=t._vClipboard_error;n&&n(e)})),t._vClipboard=o}},update:function(t,e){"success"===e.arg?t._vClipboard_success=e.value:"error"===e.arg?t._vClipboard_error=e.value:(t._vClipboard.text=function(){return e.value},t._vClipboard.action=function(){return"cut"===e.arg?"cut":"copy"})},unbind:function(t,e){"success"===e.arg?delete t._vClipboard_success:"error"===e.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard)}})},config:i};t.exports=o},5341:function(t,e,n){},"5ebe":function(t,e,n){},"5fa5":function(t,e,n){},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6981:function(t,e,n){
9
+ */(function(){var o,u="4.17.19",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",d=1,p=2,v=4,m=1,g=2,y=1,b=2,_=4,w=8,k=16,x=32,E=64,S=128,L=256,O=512,A=30,C="...",T=800,M=16,j=1,P=2,R=3,$=1/0,I=9007199254740991,N=17976931348623157e292,z=NaN,D=4294967295,B=D-1,W=D>>>1,H=[["ary",S],["bind",y],["bindKey",b],["curry",w],["curryRight",k],["flip",O],["partial",x],["partialRight",E],["rearg",L]],F="[object Arguments]",U="[object Array]",X="[object AsyncFunction]",Y="[object Boolean]",q="[object Date]",G="[object DOMException]",V="[object Error]",J="[object Function]",K="[object GeneratorFunction]",Z="[object Map]",Q="[object Number]",tt="[object Null]",et="[object Object]",nt="[object Promise]",rt="[object Proxy]",it="[object RegExp]",ot="[object Set]",ut="[object String]",at="[object Symbol]",st="[object Undefined]",lt="[object WeakMap]",ct="[object WeakSet]",ft="[object ArrayBuffer]",ht="[object DataView]",dt="[object Float32Array]",pt="[object Float64Array]",vt="[object Int8Array]",mt="[object Int16Array]",gt="[object Int32Array]",yt="[object Uint8Array]",bt="[object Uint8ClampedArray]",_t="[object Uint16Array]",wt="[object Uint32Array]",kt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Et=/(__e\(.*?\)|\b__t\)) \+\n'';/g,St=/&(?:amp|lt|gt|quot|#39);/g,Lt=/[&<>"']/g,Ot=RegExp(St.source),At=RegExp(Lt.source),Ct=/<%-([\s\S]+?)%>/g,Tt=/<%([\s\S]+?)%>/g,Mt=/<%=([\s\S]+?)%>/g,jt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,It=RegExp($t.source),Nt=/^\s+|\s+$/g,zt=/^\s+/,Dt=/\s+$/,Bt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ht=/,? & /,Ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/\\(\\)?/g,Xt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Gt=/^0b[01]+$/i,Vt=/^\[object .+?Constructor\]$/,Jt=/^0o[0-7]+$/i,Kt=/^(?:0|[1-9]\d*)$/,Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,te=/['\n\r\u2028\u2029\\]/g,ee="\\ud800-\\udfff",ne="\\u0300-\\u036f",re="\\ufe20-\\ufe2f",ie="\\u20d0-\\u20ff",oe=ne+re+ie,ue="\\u2700-\\u27bf",ae="a-z\\xdf-\\xf6\\xf8-\\xff",se="\\xac\\xb1\\xd7\\xf7",le="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ce="\\u2000-\\u206f",fe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="A-Z\\xc0-\\xd6\\xd8-\\xde",de="\\ufe0e\\ufe0f",pe=se+le+ce+fe,ve="['’]",me="["+ee+"]",ge="["+pe+"]",ye="["+oe+"]",be="\\d+",_e="["+ue+"]",we="["+ae+"]",ke="[^"+ee+pe+be+ue+ae+he+"]",xe="\\ud83c[\\udffb-\\udfff]",Ee="(?:"+ye+"|"+xe+")",Se="[^"+ee+"]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="["+he+"]",Ce="\\u200d",Te="(?:"+we+"|"+ke+")",Me="(?:"+Ae+"|"+ke+")",je="(?:"+ve+"(?:d|ll|m|re|s|t|ve))?",Pe="(?:"+ve+"(?:D|LL|M|RE|S|T|VE))?",Re=Ee+"?",$e="["+de+"]?",Ie="(?:"+Ce+"(?:"+[Se,Le,Oe].join("|")+")"+$e+Re+")*",Ne="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ze="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",De=$e+Re+Ie,Be="(?:"+[_e,Le,Oe].join("|")+")"+De,We="(?:"+[Se+ye+"?",ye,Le,Oe,me].join("|")+")",He=RegExp(ve,"g"),Fe=RegExp(ye,"g"),Ue=RegExp(xe+"(?="+xe+")|"+We+De,"g"),Xe=RegExp([Ae+"?"+we+"+"+je+"(?="+[ge,Ae,"$"].join("|")+")",Me+"+"+Pe+"(?="+[ge,Ae+Te,"$"].join("|")+")",Ae+"?"+Te+"+"+je,Ae+"+"+Pe,ze,Ne,be,Be].join("|"),"g"),Ye=RegExp("["+Ce+ee+oe+de+"]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ge=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ve=-1,Je={};Je[dt]=Je[pt]=Je[vt]=Je[mt]=Je[gt]=Je[yt]=Je[bt]=Je[_t]=Je[wt]=!0,Je[F]=Je[U]=Je[ft]=Je[Y]=Je[ht]=Je[q]=Je[V]=Je[J]=Je[Z]=Je[Q]=Je[et]=Je[it]=Je[ot]=Je[ut]=Je[lt]=!1;var Ke={};Ke[F]=Ke[U]=Ke[ft]=Ke[ht]=Ke[Y]=Ke[q]=Ke[dt]=Ke[pt]=Ke[vt]=Ke[mt]=Ke[gt]=Ke[Z]=Ke[Q]=Ke[et]=Ke[it]=Ke[ot]=Ke[ut]=Ke[at]=Ke[yt]=Ke[bt]=Ke[_t]=Ke[wt]=!0,Ke[V]=Ke[J]=Ke[lt]=!1;var Ze={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},en={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},nn=parseFloat,rn=parseInt,on="object"==typeof t&&t&&t.Object===Object&&t,un="object"==typeof self&&self&&self.Object===Object&&self,an=on||un||Function("return this")(),sn=e&&!e.nodeType&&e,ln=sn&&"object"==typeof r&&r&&!r.nodeType&&r,cn=ln&&ln.exports===sn,fn=cn&&on.process,hn=function(){try{var t=ln&&ln.require&&ln.require("util").types;return t||fn&&fn.binding&&fn.binding("util")}catch(e){}}(),dn=hn&&hn.isArrayBuffer,pn=hn&&hn.isDate,vn=hn&&hn.isMap,mn=hn&&hn.isRegExp,gn=hn&&hn.isSet,yn=hn&&hn.isTypedArray;function bn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function _n(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var u=t[i];e(r,u,n(u),t)}return r}function wn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}function kn(t,e){var n=null==t?0:t.length;while(n--)if(!1===e(t[n],n,t))break;return t}function xn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!e(t[n],n,t))return!1;return!0}function En(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var u=t[n];e(u,n,t)&&(o[i++]=u)}return o}function Sn(t,e){var n=null==t?0:t.length;return!!n&&Nn(t,e,0)>-1}function Ln(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}function On(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}function An(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}function Cn(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}function Tn(t,e,n,r){var i=null==t?0:t.length;r&&i&&(n=t[--i]);while(i--)n=e(n,t[i],i,t);return n}function Mn(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var jn=Wn("length");function Pn(t){return t.split("")}function Rn(t){return t.match(Ft)||[]}function $n(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function In(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}function Nn(t,e,n){return e===e?hr(t,e,n):In(t,Dn,n)}function zn(t,e,n,r){var i=n-1,o=t.length;while(++i<o)if(r(t[i],e))return i;return-1}function Dn(t){return t!==t}function Bn(t,e){var n=null==t?0:t.length;return n?Xn(t,e)/n:z}function Wn(t){return function(e){return null==e?o:e[t]}}function Hn(t){return function(e){return null==t?o:t[e]}}function Fn(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Un(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}function Xn(t,e){var n,r=-1,i=t.length;while(++r<i){var u=e(t[r]);u!==o&&(n=n===o?u:n+u)}return n}function Yn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}function qn(t,e){return On(e,(function(e){return[e,t[e]]}))}function Gn(t){return function(e){return t(e)}}function Vn(t,e){return On(e,(function(e){return t[e]}))}function Jn(t,e){return t.has(e)}function Kn(t,e){var n=-1,r=t.length;while(++n<r&&Nn(e,t[n],0)>-1);return n}function Zn(t,e){var n=t.length;while(n--&&Nn(e,t[n],0)>-1);return n}function Qn(t,e){var n=t.length,r=0;while(n--)t[n]===e&&++r;return r}var tr=Hn(Ze),er=Hn(Qe);function nr(t){return"\\"+en[t]}function rr(t,e){return null==t?o:t[e]}function ir(t){return Ye.test(t)}function or(t){return qe.test(t)}function ur(t){var e,n=[];while(!(e=t.next()).done)n.push(e.value);return n}function ar(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function sr(t,e){return function(n){return t(e(n))}}function lr(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var u=t[n];u!==e&&u!==h||(t[n]=h,o[i++]=n)}return o}function cr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function fr(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hr(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}function dr(t,e,n){var r=n+1;while(r--)if(t[r]===e)return r;return r}function pr(t){return ir(t)?gr(t):jn(t)}function vr(t){return ir(t)?yr(t):Pn(t)}var mr=Hn(tn);function gr(t){var e=Ue.lastIndex=0;while(Ue.test(t))++e;return e}function yr(t){return t.match(Ue)||[]}function br(t){return t.match(Xe)||[]}var _r=function t(e){e=null==e?an:wr.defaults(an.Object(),e,wr.pick(an,Ge));var n=e.Array,r=e.Date,i=e.Error,Ft=e.Function,ee=e.Math,ne=e.Object,re=e.RegExp,ie=e.String,oe=e.TypeError,ue=n.prototype,ae=Ft.prototype,se=ne.prototype,le=e["__core-js_shared__"],ce=ae.toString,fe=se.hasOwnProperty,he=0,de=function(){var t=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),pe=se.toString,ve=ce.call(ne),me=an._,ge=re("^"+ce.call(fe).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=cn?e.Buffer:o,be=e.Symbol,_e=e.Uint8Array,we=ye?ye.allocUnsafe:o,ke=sr(ne.getPrototypeOf,ne),xe=ne.create,Ee=se.propertyIsEnumerable,Se=ue.splice,Le=be?be.isConcatSpreadable:o,Oe=be?be.iterator:o,Ae=be?be.toStringTag:o,Ce=function(){try{var t=Xu(ne,"defineProperty");return t({},"",{}),t}catch(e){}}(),Te=e.clearTimeout!==an.clearTimeout&&e.clearTimeout,Me=r&&r.now!==an.Date.now&&r.now,je=e.setTimeout!==an.setTimeout&&e.setTimeout,Pe=ee.ceil,Re=ee.floor,$e=ne.getOwnPropertySymbols,Ie=ye?ye.isBuffer:o,Ne=e.isFinite,ze=ue.join,De=sr(ne.keys,ne),Be=ee.max,We=ee.min,Ue=r.now,Xe=e.parseInt,Ye=ee.random,qe=ue.reverse,Ze=Xu(e,"DataView"),Qe=Xu(e,"Map"),tn=Xu(e,"Promise"),en=Xu(e,"Set"),on=Xu(e,"WeakMap"),un=Xu(ne,"create"),sn=on&&new on,ln={},fn=Ta(Ze),hn=Ta(Qe),jn=Ta(tn),Pn=Ta(en),Hn=Ta(on),hr=be?be.prototype:o,gr=hr?hr.valueOf:o,yr=hr?hr.toString:o;function _r(t){if(xc(t)&&!uc(t)&&!(t instanceof Sr)){if(t instanceof Er)return t;if(fe.call(t,"__wrapped__"))return ja(t)}return new Er(t)}var kr=function(){function t(){}return function(e){if(!kc(e))return{};if(xe)return xe(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function xr(){}function Er(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Sr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function Lr(){var t=new Sr(this.__wrapped__);return t.__actions__=nu(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=nu(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=nu(this.__views__),t}function Or(){if(this.__filtered__){var t=new Sr(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Ar(){var t=this.__wrapped__.value(),e=this.__dir__,n=uc(t),r=e<0,i=n?t.length:0,o=Ju(0,i,this.__views__),u=o.start,a=o.end,s=a-u,l=r?a:u-1,c=this.__iteratees__,f=c.length,h=0,d=We(s,this.__takeCount__);if(!n||!r&&i==s&&d==s)return No(t,this.__actions__);var p=[];t:while(s--&&h<d){l+=e;var v=-1,m=t[l];while(++v<f){var g=c[v],y=g.iteratee,b=g.type,_=y(m);if(b==P)m=_;else if(!_){if(b==j)continue t;break t}}p[h++]=m}return p}function Cr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Tr(){this.__data__=un?un(null):{},this.size=0}function Mr(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function jr(t){var e=this.__data__;if(un){var n=e[t];return n===c?o:n}return fe.call(e,t)?e[t]:o}function Pr(t){var e=this.__data__;return un?e[t]!==o:fe.call(e,t)}function Rr(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=un&&e===o?c:e,this}function $r(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Ir(){this.__data__=[],this.size=0}function Nr(t){var e=this.__data__,n=si(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Se.call(e,n,1),--this.size,!0}function zr(t){var e=this.__data__,n=si(e,t);return n<0?o:e[n][1]}function Dr(t){return si(this.__data__,t)>-1}function Br(t,e){var n=this.__data__,r=si(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Wr(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Cr,map:new(Qe||$r),string:new Cr}}function Fr(t){var e=Fu(this,t)["delete"](t);return this.size-=e?1:0,e}function Ur(t){return Fu(this,t).get(t)}function Xr(t){return Fu(this,t).has(t)}function Yr(t,e){var n=Fu(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function qr(t){var e=-1,n=null==t?0:t.length;this.__data__=new Wr;while(++e<n)this.add(t[e])}function Gr(t){return this.__data__.set(t,c),this}function Vr(t){return this.__data__.has(t)}function Jr(t){var e=this.__data__=new $r(t);this.size=e.size}function Kr(){this.__data__=new $r,this.size=0}function Zr(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}function Qr(t){return this.__data__.get(t)}function ti(t){return this.__data__.has(t)}function ei(t,e){var n=this.__data__;if(n instanceof $r){var r=n.__data__;if(!Qe||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Wr(r)}return n.set(t,e),this.size=n.size,this}function ni(t,e){var n=uc(t),r=!n&&oc(t),i=!n&&!r&&fc(t),o=!n&&!r&&!i&&zc(t),u=n||r||i||o,a=u?Yn(t.length,ie):[],s=a.length;for(var l in t)!e&&!fe.call(t,l)||u&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ia(l,s))||a.push(l);return a}function ri(t){var e=t.length;return e?t[mo(0,e-1)]:o}function ii(t,e){return Oa(nu(t),pi(e,0,t.length))}function oi(t){return Oa(nu(t))}function ui(t,e,n){(n!==o&&!nc(t[e],n)||n===o&&!(e in t))&&hi(t,e,n)}function ai(t,e,n){var r=t[e];fe.call(t,e)&&nc(r,n)&&(n!==o||e in t)||hi(t,e,n)}function si(t,e){var n=t.length;while(n--)if(nc(t[n][0],e))return n;return-1}function li(t,e,n,r){return _i(t,(function(t,i,o){e(r,t,n(t),o)})),r}function ci(t,e){return t&&ru(e,wf(e),t)}function fi(t,e){return t&&ru(e,kf(e),t)}function hi(t,e,n){"__proto__"==e&&Ce?Ce(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function di(t,e){var r=-1,i=e.length,u=n(i),a=null==t;while(++r<i)u[r]=a?o:vf(t,e[r]);return u}function pi(t,e,n){return t===t&&(n!==o&&(t=t<=n?t:n),e!==o&&(t=t>=e?t:e)),t}function vi(t,e,n,r,i,u){var a,s=e&d,l=e&p,c=e&v;if(n&&(a=i?n(t,r,i,u):n(t)),a!==o)return a;if(!kc(t))return t;var f=uc(t);if(f){if(a=Qu(t),!s)return nu(t,a)}else{var h=Vu(t),m=h==J||h==K;if(fc(t))return Yo(t,s);if(h==et||h==F||m&&!i){if(a=l||m?{}:ta(t),!s)return l?ou(t,fi(a,t)):iu(t,ci(a,t))}else{if(!Ke[h])return i?t:{};a=ea(t,h,s)}}u||(u=new Jr);var g=u.get(t);if(g)return g;u.set(t,a),$c(t)?t.forEach((function(r){a.add(vi(r,e,n,r,t,u))})):Ec(t)&&t.forEach((function(r,i){a.set(i,vi(r,e,n,i,t,u))}));var y=c?l?zu:Nu:l?kf:wf,b=f?o:y(t);return wn(b||t,(function(r,i){b&&(i=r,r=t[i]),ai(a,i,vi(r,e,n,i,t,u))})),a}function mi(t){var e=wf(t);return function(n){return gi(n,t,e)}}function gi(t,e,n){var r=n.length;if(null==t)return!r;t=ne(t);while(r--){var i=n[r],u=e[i],a=t[i];if(a===o&&!(i in t)||!u(a))return!1}return!0}function yi(t,e,n){if("function"!=typeof t)throw new oe(l);return xa((function(){t.apply(o,n)}),e)}function bi(t,e,n,r){var i=-1,o=Sn,u=!0,s=t.length,l=[],c=e.length;if(!s)return l;n&&(e=On(e,Gn(n))),r?(o=Ln,u=!1):e.length>=a&&(o=Jn,u=!1,e=new qr(e));t:while(++i<s){var f=t[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,u&&h===h){var d=c;while(d--)if(e[d]===h)continue t;l.push(f)}else o(e,h,r)||l.push(f)}return l}_r.templateSettings={escape:Ct,evaluate:Tt,interpolate:Mt,variable:"",imports:{_:_r}},_r.prototype=xr.prototype,_r.prototype.constructor=_r,Er.prototype=kr(xr.prototype),Er.prototype.constructor=Er,Sr.prototype=kr(xr.prototype),Sr.prototype.constructor=Sr,Cr.prototype.clear=Tr,Cr.prototype["delete"]=Mr,Cr.prototype.get=jr,Cr.prototype.has=Pr,Cr.prototype.set=Rr,$r.prototype.clear=Ir,$r.prototype["delete"]=Nr,$r.prototype.get=zr,$r.prototype.has=Dr,$r.prototype.set=Br,Wr.prototype.clear=Hr,Wr.prototype["delete"]=Fr,Wr.prototype.get=Ur,Wr.prototype.has=Xr,Wr.prototype.set=Yr,qr.prototype.add=qr.prototype.push=Gr,qr.prototype.has=Vr,Jr.prototype.clear=Kr,Jr.prototype["delete"]=Zr,Jr.prototype.get=Qr,Jr.prototype.has=ti,Jr.prototype.set=ei;var _i=su(Ci),wi=su(Ti,!0);function ki(t,e){var n=!0;return _i(t,(function(t,r,i){return n=!!e(t,r,i),n})),n}function xi(t,e,n){var r=-1,i=t.length;while(++r<i){var u=t[r],a=e(u);if(null!=a&&(s===o?a===a&&!Nc(a):n(a,s)))var s=a,l=u}return l}function Ei(t,e,n,r){var i=t.length;n=Yc(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Yc(r),r<0&&(r+=i),r=n>r?0:qc(r);while(n<r)t[n++]=e;return t}function Si(t,e){var n=[];return _i(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function Li(t,e,n,r,i){var o=-1,u=t.length;n||(n=ra),i||(i=[]);while(++o<u){var a=t[o];e>0&&n(a)?e>1?Li(a,e-1,n,r,i):An(i,a):r||(i[i.length]=a)}return i}var Oi=lu(),Ai=lu(!0);function Ci(t,e){return t&&Oi(t,e,wf)}function Ti(t,e){return t&&Ai(t,e,wf)}function Mi(t,e){return En(e,(function(e){return bc(t[e])}))}function ji(t,e){e=Ho(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Ca(e[n++])];return n&&n==r?t:o}function Pi(t,e,n){var r=e(t);return uc(t)?r:An(r,n(t))}function Ri(t){return null==t?t===o?st:tt:Ae&&Ae in ne(t)?Yu(t):ga(t)}function $i(t,e){return t>e}function Ii(t,e){return null!=t&&fe.call(t,e)}function Ni(t,e){return null!=t&&e in ne(t)}function zi(t,e,n){return t>=We(e,n)&&t<Be(e,n)}function Di(t,e,r){var i=r?Ln:Sn,u=t[0].length,a=t.length,s=a,l=n(a),c=1/0,f=[];while(s--){var h=t[s];s&&e&&(h=On(h,Gn(e))),c=We(h.length,c),l[s]=!r&&(e||u>=120&&h.length>=120)?new qr(s&&h):o}h=t[0];var d=-1,p=l[0];t:while(++d<u&&f.length<c){var v=h[d],m=e?e(v):v;if(v=r||0!==v?v:0,!(p?Jn(p,m):i(f,m,r))){s=a;while(--s){var g=l[s];if(!(g?Jn(g,m):i(t[s],m,r)))continue t}p&&p.push(m),f.push(v)}}return f}function Bi(t,e,n,r){return Ci(t,(function(t,i,o){e(r,n(t),i,o)})),r}function Wi(t,e,n){e=Ho(e,t),t=ba(t,e);var r=null==t?t:t[Ca(rs(e))];return null==r?o:bn(r,t,n)}function Hi(t){return xc(t)&&Ri(t)==F}function Fi(t){return xc(t)&&Ri(t)==ft}function Ui(t){return xc(t)&&Ri(t)==q}function Xi(t,e,n,r,i){return t===e||(null==t||null==e||!xc(t)&&!xc(e)?t!==t&&e!==e:Yi(t,e,n,r,Xi,i))}function Yi(t,e,n,r,i,o){var u=uc(t),a=uc(e),s=u?U:Vu(t),l=a?U:Vu(e);s=s==F?et:s,l=l==F?et:l;var c=s==et,f=l==et,h=s==l;if(h&&fc(t)){if(!fc(e))return!1;u=!0,c=!1}if(h&&!c)return o||(o=new Jr),u||zc(t)?Pu(t,e,n,r,i,o):Ru(t,e,s,n,r,i,o);if(!(n&m)){var d=c&&fe.call(t,"__wrapped__"),p=f&&fe.call(e,"__wrapped__");if(d||p){var v=d?t.value():t,g=p?e.value():e;return o||(o=new Jr),i(v,g,n,r,o)}}return!!h&&(o||(o=new Jr),$u(t,e,n,r,i,o))}function qi(t){return xc(t)&&Vu(t)==Z}function Gi(t,e,n,r){var i=n.length,u=i,a=!r;if(null==t)return!u;t=ne(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<u){s=n[i];var l=s[0],c=t[l],f=s[1];if(a&&s[2]){if(c===o&&!(l in t))return!1}else{var h=new Jr;if(r)var d=r(c,f,l,t,e,h);if(!(d===o?Xi(f,c,m|g,r,h):d))return!1}}return!0}function Vi(t){if(!kc(t)||la(t))return!1;var e=bc(t)?ge:Vt;return e.test(Ta(t))}function Ji(t){return xc(t)&&Ri(t)==it}function Ki(t){return xc(t)&&Vu(t)==ot}function Zi(t){return xc(t)&&wc(t.length)&&!!Je[Ri(t)]}function Qi(t){return"function"==typeof t?t:null==t?Ch:"object"==typeof t?uc(t)?oo(t[0],t[1]):io(t):Hh(t)}function to(t){if(!fa(t))return De(t);var e=[];for(var n in ne(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e}function eo(t){if(!kc(t))return ma(t);var e=fa(t),n=[];for(var r in t)("constructor"!=r||!e&&fe.call(t,r))&&n.push(r);return n}function no(t,e){return t<e}function ro(t,e){var r=-1,i=sc(t)?n(t.length):[];return _i(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}function io(t){var e=Uu(t);return 1==e.length&&e[0][2]?da(e[0][0],e[0][1]):function(n){return n===t||Gi(n,t,e)}}function oo(t,e){return ua(t)&&ha(e)?da(Ca(t),e):function(n){var r=vf(n,t);return r===o&&r===e?gf(n,t):Xi(e,r,m|g)}}function uo(t,e,n,r,i){t!==e&&Oi(e,(function(u,a){if(i||(i=new Jr),kc(u))ao(t,e,a,n,uo,r,i);else{var s=r?r(wa(t,a),u,a+"",t,e,i):o;s===o&&(s=u),ui(t,a,s)}}),kf)}function ao(t,e,n,r,i,u,a){var s=wa(t,n),l=wa(e,n),c=a.get(l);if(c)ui(t,n,c);else{var f=u?u(s,l,n+"",t,e,a):o,h=f===o;if(h){var d=uc(l),p=!d&&fc(l),v=!d&&!p&&zc(l);f=l,d||p||v?uc(s)?f=s:lc(s)?f=nu(s):p?(h=!1,f=Yo(l,!0)):v?(h=!1,f=Ko(l,!0)):f=[]:jc(l)||oc(l)?(f=s,oc(s)?f=Vc(s):kc(s)&&!bc(s)||(f=ta(l))):h=!1}h&&(a.set(l,f),i(f,l,r,u,a),a["delete"](l)),ui(t,n,f)}}function so(t,e){var n=t.length;if(n)return e+=e<0?n:0,ia(e,n)?t[e]:o}function lo(t,e,n){e=e.length?On(e,(function(t){return uc(t)?function(e){return ji(e,1===t.length?t[0]:t)}:t})):[Ch];var r=-1;e=On(e,Gn(Hu()));var i=ro(t,(function(t,n,i){var o=On(e,(function(e){return e(t)}));return{criteria:o,index:++r,value:t}}));return Un(i,(function(t,e){return Qo(t,e,n)}))}function co(t,e){return fo(t,e,(function(e,n){return gf(t,n)}))}function fo(t,e,n){var r=-1,i=e.length,o={};while(++r<i){var u=e[r],a=ji(t,u);n(a,u)&&ko(o,Ho(u,t),a)}return o}function ho(t){return function(e){return ji(e,t)}}function po(t,e,n,r){var i=r?zn:Nn,o=-1,u=e.length,a=t;t===e&&(e=nu(e)),n&&(a=On(t,Gn(n)));while(++o<u){var s=0,l=e[o],c=n?n(l):l;while((s=i(a,c,s,r))>-1)a!==t&&Se.call(a,s,1),Se.call(t,s,1)}return t}function vo(t,e){var n=t?e.length:0,r=n-1;while(n--){var i=e[n];if(n==r||i!==o){var o=i;ia(i)?Se.call(t,i,1):Ro(t,i)}}return t}function mo(t,e){return t+Re(Ye()*(e-t+1))}function go(t,e,r,i){var o=-1,u=Be(Pe((e-t)/(r||1)),0),a=n(u);while(u--)a[i?u:++o]=t,t+=r;return a}function yo(t,e){var n="";if(!t||e<1||e>I)return n;do{e%2&&(n+=t),e=Re(e/2),e&&(t+=t)}while(e);return n}function bo(t,e){return Ea(ya(t,e,Ch),t+"")}function _o(t){return ri(Bf(t))}function wo(t,e){var n=Bf(t);return Oa(n,pi(e,0,n.length))}function ko(t,e,n,r){if(!kc(t))return t;e=Ho(e,t);var i=-1,u=e.length,a=u-1,s=t;while(null!=s&&++i<u){var l=Ca(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=a){var f=s[l];c=r?r(f,l,s):o,c===o&&(c=kc(f)?f:ia(e[i+1])?[]:{})}ai(s,l,c),s=s[l]}return t}var xo=sn?function(t,e){return sn.set(t,e),t}:Ch,Eo=Ce?function(t,e){return Ce(t,"toString",{configurable:!0,enumerable:!1,value:Sh(e),writable:!0})}:Ch;function So(t){return Oa(Bf(t))}function Lo(t,e,r){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;var u=n(o);while(++i<o)u[i]=t[i+e];return u}function Oo(t,e){var n;return _i(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}function Ao(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e===e&&i<=W){while(r<i){var o=r+i>>>1,u=t[o];null!==u&&!Nc(u)&&(n?u<=e:u<e)?r=o+1:i=o}return i}return Co(t,e,Ch,n)}function Co(t,e,n,r){var i=0,u=null==t?0:t.length;if(0===u)return 0;e=n(e);var a=e!==e,s=null===e,l=Nc(e),c=e===o;while(i<u){var f=Re((i+u)/2),h=n(t[f]),d=h!==o,p=null===h,v=h===h,m=Nc(h);if(a)var g=r||v;else g=c?v&&(r||d):s?v&&d&&(r||!p):l?v&&d&&!p&&(r||!m):!p&&!m&&(r?h<=e:h<e);g?i=f+1:u=f}return We(u,B)}function To(t,e){var n=-1,r=t.length,i=0,o=[];while(++n<r){var u=t[n],a=e?e(u):u;if(!n||!nc(a,s)){var s=a;o[i++]=0===u?0:u}}return o}function Mo(t){return"number"==typeof t?t:Nc(t)?z:+t}function jo(t){if("string"==typeof t)return t;if(uc(t))return On(t,jo)+"";if(Nc(t))return yr?yr.call(t):"";var e=t+"";return"0"==e&&1/t==-$?"-0":e}function Po(t,e,n){var r=-1,i=Sn,o=t.length,u=!0,s=[],l=s;if(n)u=!1,i=Ln;else if(o>=a){var c=e?null:Ou(t);if(c)return cr(c);u=!1,i=Jn,l=new qr}else l=e?[]:s;t:while(++r<o){var f=t[r],h=e?e(f):f;if(f=n||0!==f?f:0,u&&h===h){var d=l.length;while(d--)if(l[d]===h)continue t;e&&l.push(h),s.push(f)}else i(l,h,n)||(l!==s&&l.push(h),s.push(f))}return s}function Ro(t,e){return e=Ho(e,t),t=ba(t,e),null==t||delete t[Ca(rs(e))]}function $o(t,e,n,r){return ko(t,e,n(ji(t,e)),r)}function Io(t,e,n,r){var i=t.length,o=r?i:-1;while((r?o--:++o<i)&&e(t[o],o,t));return n?Lo(t,r?0:o,r?o+1:i):Lo(t,r?o+1:0,r?i:o)}function No(t,e){var n=t;return n instanceof Sr&&(n=n.value()),Cn(e,(function(t,e){return e.func.apply(e.thisArg,An([t],e.args))}),n)}function zo(t,e,r){var i=t.length;if(i<2)return i?Po(t[0]):[];var o=-1,u=n(i);while(++o<i){var a=t[o],s=-1;while(++s<i)s!=o&&(u[o]=bi(u[o]||a,t[s],e,r))}return Po(Li(u,1),e,r)}function Do(t,e,n){var r=-1,i=t.length,u=e.length,a={};while(++r<i){var s=r<u?e[r]:o;n(a,t[r],s)}return a}function Bo(t){return lc(t)?t:[]}function Wo(t){return"function"==typeof t?t:Ch}function Ho(t,e){return uc(t)?t:ua(t,e)?[t]:Aa(Kc(t))}var Fo=bo;function Uo(t,e,n){var r=t.length;return n=n===o?r:n,!e&&n>=r?t:Lo(t,e,n)}var Xo=Te||function(t){return an.clearTimeout(t)};function Yo(t,e){if(e)return t.slice();var n=t.length,r=we?we(n):new t.constructor(n);return t.copy(r),r}function qo(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e}function Go(t,e){var n=e?qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Vo(t){var e=new t.constructor(t.source,Yt.exec(t));return e.lastIndex=t.lastIndex,e}function Jo(t){return gr?ne(gr.call(t)):{}}function Ko(t,e){var n=e?qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Zo(t,e){if(t!==e){var n=t!==o,r=null===t,i=t===t,u=Nc(t),a=e!==o,s=null===e,l=e===e,c=Nc(e);if(!s&&!c&&!u&&t>e||u&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!u&&!c&&t<e||c&&n&&i&&!r&&!u||s&&n&&i||!a&&i||!l)return-1}return 0}function Qo(t,e,n){var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;while(++r<u){var s=Zo(i[r],o[r]);if(s){if(r>=a)return s;var l=n[r];return s*("desc"==l?-1:1)}}return t.index-e.index}function tu(t,e,r,i){var o=-1,u=t.length,a=r.length,s=-1,l=e.length,c=Be(u-a,0),f=n(l+c),h=!i;while(++s<l)f[s]=e[s];while(++o<a)(h||o<u)&&(f[r[o]]=t[o]);while(c--)f[s++]=t[o++];return f}function eu(t,e,r,i){var o=-1,u=t.length,a=-1,s=r.length,l=-1,c=e.length,f=Be(u-s,0),h=n(f+c),d=!i;while(++o<f)h[o]=t[o];var p=o;while(++l<c)h[p+l]=e[l];while(++a<s)(d||o<u)&&(h[p+r[a]]=t[o++]);return h}function nu(t,e){var r=-1,i=t.length;e||(e=n(i));while(++r<i)e[r]=t[r];return e}function ru(t,e,n,r){var i=!n;n||(n={});var u=-1,a=e.length;while(++u<a){var s=e[u],l=r?r(n[s],t[s],s,n,t):o;l===o&&(l=t[s]),i?hi(n,s,l):ai(n,s,l)}return n}function iu(t,e){return ru(t,qu(t),e)}function ou(t,e){return ru(t,Gu(t),e)}function uu(t,e){return function(n,r){var i=uc(n)?_n:li,o=e?e():{};return i(n,t,Hu(r,2),o)}}function au(t){return bo((function(e,n){var r=-1,i=n.length,u=i>1?n[i-1]:o,a=i>2?n[2]:o;u=t.length>3&&"function"==typeof u?(i--,u):o,a&&oa(n[0],n[1],a)&&(u=i<3?o:u,i=1),e=ne(e);while(++r<i){var s=n[r];s&&t(e,s,r,u)}return e}))}function su(t,e){return function(n,r){if(null==n)return n;if(!sc(n))return t(n,r);var i=n.length,o=e?i:-1,u=ne(n);while(e?o--:++o<i)if(!1===r(u[o],o,u))break;return n}}function lu(t){return function(e,n,r){var i=-1,o=ne(e),u=r(e),a=u.length;while(a--){var s=u[t?a:++i];if(!1===n(o[s],s,o))break}return e}}function cu(t,e,n){var r=e&y,i=du(t);function o(){var e=this&&this!==an&&this instanceof o?i:t;return e.apply(r?n:this,arguments)}return o}function fu(t){return function(e){e=Kc(e);var n=ir(e)?vr(e):o,r=n?n[0]:e.charAt(0),i=n?Uo(n,1).join(""):e.slice(1);return r[t]()+i}}function hu(t){return function(e){return Cn(_h(qf(e).replace(He,"")),t,"")}}function du(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=kr(t.prototype),r=t.apply(n,e);return kc(r)?r:n}}function pu(t,e,r){var i=du(t);function u(){var a=arguments.length,s=n(a),l=a,c=Wu(u);while(l--)s[l]=arguments[l];var f=a<3&&s[0]!==c&&s[a-1]!==c?[]:lr(s,c);if(a-=f.length,a<r)return Su(t,e,gu,u.placeholder,o,s,f,o,o,r-a);var h=this&&this!==an&&this instanceof u?i:t;return bn(h,this,s)}return u}function vu(t){return function(e,n,r){var i=ne(e);if(!sc(e)){var u=Hu(n,3);e=wf(e),n=function(t){return u(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[u?e[a]:a]:o}}function mu(t){return Iu((function(e){var n=e.length,r=n,i=Er.prototype.thru;t&&e.reverse();while(r--){var u=e[r];if("function"!=typeof u)throw new oe(l);if(i&&!a&&"wrapper"==Bu(u))var a=new Er([],!0)}r=a?r:n;while(++r<n){u=e[r];var s=Bu(u),c="wrapper"==s?Du(u):o;a=c&&sa(c[0])&&c[1]==(S|w|x|L)&&!c[4].length&&1==c[9]?a[Bu(c[0])].apply(a,c[3]):1==u.length&&sa(u)?a[s]():a.thru(u)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&uc(r))return a.plant(r).value();var i=0,o=n?e[i].apply(this,t):r;while(++i<n)o=e[i].call(this,o);return o}}))}function gu(t,e,r,i,u,a,s,l,c,f){var h=e&S,d=e&y,p=e&b,v=e&(w|k),m=e&O,g=p?o:du(t);function _(){var o=arguments.length,y=n(o),b=o;while(b--)y[b]=arguments[b];if(v)var w=Wu(_),k=Qn(y,w);if(i&&(y=tu(y,i,u,v)),a&&(y=eu(y,a,s,v)),o-=k,v&&o<f){var x=lr(y,w);return Su(t,e,gu,_.placeholder,r,y,x,l,c,f-o)}var E=d?r:this,S=p?E[t]:t;return o=y.length,l?y=_a(y,l):m&&o>1&&y.reverse(),h&&c<o&&(y.length=c),this&&this!==an&&this instanceof _&&(S=g||du(S)),S.apply(E,y)}return _}function yu(t,e){return function(n,r){return Bi(n,t,e(r),{})}}function bu(t,e){return function(n,r){var i;if(n===o&&r===o)return e;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=jo(n),r=jo(r)):(n=Mo(n),r=Mo(r)),i=t(n,r)}return i}}function _u(t){return Iu((function(e){return e=On(e,Gn(Hu())),bo((function(n){var r=this;return t(e,(function(t){return bn(t,r,n)}))}))}))}function wu(t,e){e=e===o?" ":jo(e);var n=e.length;if(n<2)return n?yo(e,t):e;var r=yo(e,Pe(t/pr(e)));return ir(e)?Uo(vr(r),0,t).join(""):r.slice(0,t)}function ku(t,e,r,i){var o=e&y,u=du(t);function a(){var e=-1,s=arguments.length,l=-1,c=i.length,f=n(c+s),h=this&&this!==an&&this instanceof a?u:t;while(++l<c)f[l]=i[l];while(s--)f[l++]=arguments[++e];return bn(h,o?r:this,f)}return a}function xu(t){return function(e,n,r){return r&&"number"!=typeof r&&oa(e,n,r)&&(n=r=o),e=Xc(e),n===o?(n=e,e=0):n=Xc(n),r=r===o?e<n?1:-1:Xc(r),go(e,n,r,t)}}function Eu(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Gc(e),n=Gc(n)),t(e,n)}}function Su(t,e,n,r,i,u,a,s,l,c){var f=e&w,h=f?a:o,d=f?o:a,p=f?u:o,v=f?o:u;e|=f?x:E,e&=~(f?E:x),e&_||(e&=~(y|b));var m=[t,e,i,p,h,v,d,s,l,c],g=n.apply(o,m);return sa(t)&&ka(g,m),g.placeholder=r,Sa(g,t,e)}function Lu(t){var e=ee[t];return function(t,n){if(t=Gc(t),n=null==n?0:We(Yc(n),292),n&&Ne(t)){var r=(Kc(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(Kc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}var Ou=en&&1/cr(new en([,-0]))[1]==$?function(t){return new en(t)}:Nh;function Au(t){return function(e){var n=Vu(e);return n==Z?ar(e):n==ot?fr(e):qn(e,t(e))}}function Cu(t,e,n,r,i,u,a,s){var c=e&b;if(!c&&"function"!=typeof t)throw new oe(l);var f=r?r.length:0;if(f||(e&=~(x|E),r=i=o),a=a===o?a:Be(Yc(a),0),s=s===o?s:Yc(s),f-=i?i.length:0,e&E){var h=r,d=i;r=i=o}var p=c?o:Du(t),v=[t,e,n,r,i,h,d,u,a,s];if(p&&va(v,p),t=v[0],e=v[1],n=v[2],r=v[3],i=v[4],s=v[9]=v[9]===o?c?0:t.length:Be(v[9]-f,0),!s&&e&(w|k)&&(e&=~(w|k)),e&&e!=y)m=e==w||e==k?pu(t,e,s):e!=x&&e!=(y|x)||i.length?gu.apply(o,v):ku(t,e,n,r);else var m=cu(t,e,n);var g=p?xo:ka;return Sa(g(m,v),t,e)}function Tu(t,e,n,r){return t===o||nc(t,se[n])&&!fe.call(r,n)?e:t}function Mu(t,e,n,r,i,u){return kc(t)&&kc(e)&&(u.set(e,t),uo(t,e,o,Mu,u),u["delete"](e)),t}function ju(t){return jc(t)?o:t}function Pu(t,e,n,r,i,u){var a=n&m,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=u.get(t),f=u.get(e);if(c&&f)return c==e&&f==t;var h=-1,d=!0,p=n&g?new qr:o;u.set(t,e),u.set(e,t);while(++h<s){var v=t[h],y=e[h];if(r)var b=a?r(y,v,h,e,t,u):r(v,y,h,t,e,u);if(b!==o){if(b)continue;d=!1;break}if(p){if(!Mn(e,(function(t,e){if(!Jn(p,e)&&(v===t||i(v,t,n,r,u)))return p.push(e)}))){d=!1;break}}else if(v!==y&&!i(v,y,n,r,u)){d=!1;break}}return u["delete"](t),u["delete"](e),d}function Ru(t,e,n,r,i,o,u){switch(n){case ht:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ft:return!(t.byteLength!=e.byteLength||!o(new _e(t),new _e(e)));case Y:case q:case Q:return nc(+t,+e);case V:return t.name==e.name&&t.message==e.message;case it:case ut:return t==e+"";case Z:var a=ar;case ot:var s=r&m;if(a||(a=cr),t.size!=e.size&&!s)return!1;var l=u.get(t);if(l)return l==e;r|=g,u.set(t,e);var c=Pu(a(t),a(e),r,i,o,u);return u["delete"](t),c;case at:if(gr)return gr.call(t)==gr.call(e)}return!1}function $u(t,e,n,r,i,u){var a=n&m,s=Nu(t),l=s.length,c=Nu(e),f=c.length;if(l!=f&&!a)return!1;var h=l;while(h--){var d=s[h];if(!(a?d in e:fe.call(e,d)))return!1}var p=u.get(t),v=u.get(e);if(p&&v)return p==e&&v==t;var g=!0;u.set(t,e),u.set(e,t);var y=a;while(++h<l){d=s[h];var b=t[d],_=e[d];if(r)var w=a?r(_,b,d,e,t,u):r(b,_,d,t,e,u);if(!(w===o?b===_||i(b,_,n,r,u):w)){g=!1;break}y||(y="constructor"==d)}if(g&&!y){var k=t.constructor,x=e.constructor;k==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof k&&k instanceof k&&"function"==typeof x&&x instanceof x||(g=!1)}return u["delete"](t),u["delete"](e),g}function Iu(t){return Ea(ya(t,o,Ya),t+"")}function Nu(t){return Pi(t,wf,qu)}function zu(t){return Pi(t,kf,Gu)}var Du=sn?function(t){return sn.get(t)}:Nh;function Bu(t){var e=t.name+"",n=ln[e],r=fe.call(ln,e)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Wu(t){var e=fe.call(_r,"placeholder")?_r:t;return e.placeholder}function Hu(){var t=_r.iteratee||Th;return t=t===Th?Qi:t,arguments.length?t(arguments[0],arguments[1]):t}function Fu(t,e){var n=t.__data__;return aa(e)?n["string"==typeof e?"string":"hash"]:n.map}function Uu(t){var e=wf(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,ha(i)]}return e}function Xu(t,e){var n=rr(t,e);return Vi(n)?n:o}function Yu(t){var e=fe.call(t,Ae),n=t[Ae];try{t[Ae]=o;var r=!0}catch(u){}var i=pe.call(t);return r&&(e?t[Ae]=n:delete t[Ae]),i}var qu=$e?function(t){return null==t?[]:(t=ne(t),En($e(t),(function(e){return Ee.call(t,e)})))}:Yh,Gu=$e?function(t){var e=[];while(t)An(e,qu(t)),t=ke(t);return e}:Yh,Vu=Ri;function Ju(t,e,n){var r=-1,i=n.length;while(++r<i){var o=n[r],u=o.size;switch(o.type){case"drop":t+=u;break;case"dropRight":e-=u;break;case"take":e=We(e,t+u);break;case"takeRight":t=Be(t,e-u);break}}return{start:t,end:e}}function Ku(t){var e=t.match(Wt);return e?e[1].split(Ht):[]}function Zu(t,e,n){e=Ho(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var u=Ca(e[r]);if(!(o=null!=t&&n(t,u)))break;t=t[u]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&wc(i)&&ia(u,i)&&(uc(t)||oc(t)))}function Qu(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ta(t){return"function"!=typeof t.constructor||fa(t)?{}:kr(ke(t))}function ea(t,e,n){var r=t.constructor;switch(e){case ft:return qo(t);case Y:case q:return new r(+t);case ht:return Go(t,n);case dt:case pt:case vt:case mt:case gt:case yt:case bt:case _t:case wt:return Ko(t,n);case Z:return new r;case Q:case ut:return new r(t);case it:return Vo(t);case ot:return new r;case at:return Jo(t)}}function na(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Bt,"{\n/* [wrapped with "+e+"] */\n")}function ra(t){return uc(t)||oc(t)||!!(Le&&t&&t[Le])}function ia(t,e){var n=typeof t;return e=null==e?I:e,!!e&&("number"==n||"symbol"!=n&&Kt.test(t))&&t>-1&&t%1==0&&t<e}function oa(t,e,n){if(!kc(n))return!1;var r=typeof e;return!!("number"==r?sc(n)&&ia(e,n.length):"string"==r&&e in n)&&nc(n[e],t)}function ua(t,e){if(uc(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Nc(t))||(Pt.test(t)||!jt.test(t)||null!=e&&t in ne(e))}function aa(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function sa(t){var e=Bu(t),n=_r[e];if("function"!=typeof n||!(e in Sr.prototype))return!1;if(t===n)return!0;var r=Du(n);return!!r&&t===r[0]}function la(t){return!!de&&de in t}(Ze&&Vu(new Ze(new ArrayBuffer(1)))!=ht||Qe&&Vu(new Qe)!=Z||tn&&Vu(tn.resolve())!=nt||en&&Vu(new en)!=ot||on&&Vu(new on)!=lt)&&(Vu=function(t){var e=Ri(t),n=e==et?t.constructor:o,r=n?Ta(n):"";if(r)switch(r){case fn:return ht;case hn:return Z;case jn:return nt;case Pn:return ot;case Hn:return lt}return e});var ca=le?bc:qh;function fa(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||se;return t===n}function ha(t){return t===t&&!kc(t)}function da(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==o||t in ne(n)))}}function pa(t){var e=zl(t,(function(t){return n.size===f&&n.clear(),t})),n=e.cache;return e}function va(t,e){var n=t[1],r=e[1],i=n|r,o=i<(y|b|S),u=r==S&&n==w||r==S&&n==L&&t[7].length<=e[8]||r==(S|L)&&e[7].length<=e[8]&&n==w;if(!o&&!u)return t;r&y&&(t[2]=e[2],i|=n&y?0:_);var a=e[3];if(a){var s=t[3];t[3]=s?tu(s,a,e[4]):a,t[4]=s?lr(t[3],h):e[4]}return a=e[5],a&&(s=t[5],t[5]=s?eu(s,a,e[6]):a,t[6]=s?lr(t[5],h):e[6]),a=e[7],a&&(t[7]=a),r&S&&(t[8]=null==t[8]?e[8]:We(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ma(t){var e=[];if(null!=t)for(var n in ne(t))e.push(n);return e}function ga(t){return pe.call(t)}function ya(t,e,r){return e=Be(e===o?t.length-1:e,0),function(){var i=arguments,o=-1,u=Be(i.length-e,0),a=n(u);while(++o<u)a[o]=i[e+o];o=-1;var s=n(e+1);while(++o<e)s[o]=i[o];return s[e]=r(a),bn(t,this,s)}}function ba(t,e){return e.length<2?t:ji(t,Lo(e,0,-1))}function _a(t,e){var n=t.length,r=We(e.length,n),i=nu(t);while(r--){var u=e[r];t[r]=ia(u,n)?i[u]:o}return t}function wa(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ka=La(xo),xa=je||function(t,e){return an.setTimeout(t,e)},Ea=La(Eo);function Sa(t,e,n){var r=e+"";return Ea(t,na(r,Ma(Ku(r),n)))}function La(t){var e=0,n=0;return function(){var r=Ue(),i=M-(r-n);if(n=r,i>0){if(++e>=T)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Oa(t,e){var n=-1,r=t.length,i=r-1;e=e===o?r:e;while(++n<e){var u=mo(n,i),a=t[u];t[u]=t[n],t[n]=a}return t.length=e,t}var Aa=pa((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Rt,(function(t,n,r,i){e.push(r?i.replace(Ut,"$1"):n||t)})),e}));function Ca(t){if("string"==typeof t||Nc(t))return t;var e=t+"";return"0"==e&&1/t==-$?"-0":e}function Ta(t){if(null!=t){try{return ce.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ma(t,e){return wn(H,(function(n){var r="_."+n[0];e&n[1]&&!Sn(t,r)&&t.push(r)})),t.sort()}function ja(t){if(t instanceof Sr)return t.clone();var e=new Er(t.__wrapped__,t.__chain__);return e.__actions__=nu(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Pa(t,e,r){e=(r?oa(t,e,r):e===o)?1:Be(Yc(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];var u=0,a=0,s=n(Pe(i/e));while(u<i)s[a++]=Lo(t,u,u+=e);return s}function Ra(t){var e=-1,n=null==t?0:t.length,r=0,i=[];while(++e<n){var o=t[e];o&&(i[r++]=o)}return i}function $a(){var t=arguments.length;if(!t)return[];var e=n(t-1),r=arguments[0],i=t;while(i--)e[i-1]=arguments[i];return An(uc(r)?nu(r):[r],Li(e,1))}var Ia=bo((function(t,e){return lc(t)?bi(t,Li(e,1,lc,!0)):[]})),Na=bo((function(t,e){var n=rs(e);return lc(n)&&(n=o),lc(t)?bi(t,Li(e,1,lc,!0),Hu(n,2)):[]})),za=bo((function(t,e){var n=rs(e);return lc(n)&&(n=o),lc(t)?bi(t,Li(e,1,lc,!0),o,n):[]}));function Da(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),Lo(t,e<0?0:e,r)):[]}function Ba(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),e=r-e,Lo(t,0,e<0?0:e)):[]}function Wa(t,e){return t&&t.length?Io(t,Hu(e,3),!0,!0):[]}function Ha(t,e){return t&&t.length?Io(t,Hu(e,3),!0):[]}function Fa(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&oa(t,e,n)&&(n=0,r=i),Ei(t,e,n,r)):[]}function Ua(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=Be(r+i,0)),In(t,Hu(e,3),i)}function Xa(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Yc(n),i=n<0?Be(r+i,0):We(i,r-1)),In(t,Hu(e,3),i,!0)}function Ya(t){var e=null==t?0:t.length;return e?Li(t,1):[]}function qa(t){var e=null==t?0:t.length;return e?Li(t,$):[]}function Ga(t,e){var n=null==t?0:t.length;return n?(e=e===o?1:Yc(e),Li(t,e)):[]}function Va(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}function Ja(t){return t&&t.length?t[0]:o}function Ka(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Yc(n);return i<0&&(i=Be(r+i,0)),Nn(t,e,i)}function Za(t){var e=null==t?0:t.length;return e?Lo(t,0,-1):[]}var Qa=bo((function(t){var e=On(t,Bo);return e.length&&e[0]===t[0]?Di(e):[]})),ts=bo((function(t){var e=rs(t),n=On(t,Bo);return e===rs(n)?e=o:n.pop(),n.length&&n[0]===t[0]?Di(n,Hu(e,2)):[]})),es=bo((function(t){var e=rs(t),n=On(t,Bo);return e="function"==typeof e?e:o,e&&n.pop(),n.length&&n[0]===t[0]?Di(n,o,e):[]}));function ns(t,e){return null==t?"":ze.call(t,e)}function rs(t){var e=null==t?0:t.length;return e?t[e-1]:o}function is(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=Yc(n),i=i<0?Be(r+i,0):We(i,r-1)),e===e?dr(t,e,i):In(t,Dn,i,!0)}function os(t,e){return t&&t.length?so(t,Yc(e)):o}var us=bo(as);function as(t,e){return t&&t.length&&e&&e.length?po(t,e):t}function ss(t,e,n){return t&&t.length&&e&&e.length?po(t,e,Hu(n,2)):t}function ls(t,e,n){return t&&t.length&&e&&e.length?po(t,e,o,n):t}var cs=Iu((function(t,e){var n=null==t?0:t.length,r=di(t,e);return vo(t,On(e,(function(t){return ia(t,n)?+t:t})).sort(Zo)),r}));function fs(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;e=Hu(e,3);while(++r<o){var u=t[r];e(u,r,t)&&(n.push(u),i.push(r))}return vo(t,i),n}function hs(t){return null==t?t:qe.call(t)}function ds(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&oa(t,e,n)?(e=0,n=r):(e=null==e?0:Yc(e),n=n===o?r:Yc(n)),Lo(t,e,n)):[]}function ps(t,e){return Ao(t,e)}function vs(t,e,n){return Co(t,e,Hu(n,2))}function ms(t,e){var n=null==t?0:t.length;if(n){var r=Ao(t,e);if(r<n&&nc(t[r],e))return r}return-1}function gs(t,e){return Ao(t,e,!0)}function ys(t,e,n){return Co(t,e,Hu(n,2),!0)}function bs(t,e){var n=null==t?0:t.length;if(n){var r=Ao(t,e,!0)-1;if(nc(t[r],e))return r}return-1}function _s(t){return t&&t.length?To(t):[]}function ws(t,e){return t&&t.length?To(t,Hu(e,2)):[]}function ks(t){var e=null==t?0:t.length;return e?Lo(t,1,e):[]}function xs(t,e,n){return t&&t.length?(e=n||e===o?1:Yc(e),Lo(t,0,e<0?0:e)):[]}function Es(t,e,n){var r=null==t?0:t.length;return r?(e=n||e===o?1:Yc(e),e=r-e,Lo(t,e<0?0:e,r)):[]}function Ss(t,e){return t&&t.length?Io(t,Hu(e,3),!1,!0):[]}function Ls(t,e){return t&&t.length?Io(t,Hu(e,3)):[]}var Os=bo((function(t){return Po(Li(t,1,lc,!0))})),As=bo((function(t){var e=rs(t);return lc(e)&&(e=o),Po(Li(t,1,lc,!0),Hu(e,2))})),Cs=bo((function(t){var e=rs(t);return e="function"==typeof e?e:o,Po(Li(t,1,lc,!0),o,e)}));function Ts(t){return t&&t.length?Po(t):[]}function Ms(t,e){return t&&t.length?Po(t,Hu(e,2)):[]}function js(t,e){return e="function"==typeof e?e:o,t&&t.length?Po(t,o,e):[]}function Ps(t){if(!t||!t.length)return[];var e=0;return t=En(t,(function(t){if(lc(t))return e=Be(t.length,e),!0})),Yn(e,(function(e){return On(t,Wn(e))}))}function Rs(t,e){if(!t||!t.length)return[];var n=Ps(t);return null==e?n:On(n,(function(t){return bn(e,o,t)}))}var $s=bo((function(t,e){return lc(t)?bi(t,e):[]})),Is=bo((function(t){return zo(En(t,lc))})),Ns=bo((function(t){var e=rs(t);return lc(e)&&(e=o),zo(En(t,lc),Hu(e,2))})),zs=bo((function(t){var e=rs(t);return e="function"==typeof e?e:o,zo(En(t,lc),o,e)})),Ds=bo(Ps);function Bs(t,e){return Do(t||[],e||[],ai)}function Ws(t,e){return Do(t||[],e||[],ko)}var Hs=bo((function(t){var e=t.length,n=e>1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,Rs(t,n)}));function Fs(t){var e=_r(t);return e.__chain__=!0,e}function Us(t,e){return e(t),t}function Xs(t,e){return e(t)}var Ys=Iu((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return di(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Sr&&ia(n)?(r=r.slice(n,+n+(e?1:0)),r.__actions__.push({func:Xs,args:[i],thisArg:o}),new Er(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)}));function qs(){return Fs(this)}function Gs(){return new Er(this.value(),this.__chain__)}function Vs(){this.__values__===o&&(this.__values__=Uc(this.value()));var t=this.__index__>=this.__values__.length,e=t?o:this.__values__[this.__index__++];return{done:t,value:e}}function Js(){return this}function Ks(t){var e,n=this;while(n instanceof xr){var r=ja(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e}function Zs(){var t=this.__wrapped__;if(t instanceof Sr){var e=t;return this.__actions__.length&&(e=new Sr(this)),e=e.reverse(),e.__actions__.push({func:Xs,args:[hs],thisArg:o}),new Er(e,this.__chain__)}return this.thru(hs)}function Qs(){return No(this.__wrapped__,this.__actions__)}var tl=uu((function(t,e,n){fe.call(t,n)?++t[n]:hi(t,n,1)}));function el(t,e,n){var r=uc(t)?xn:ki;return n&&oa(t,e,n)&&(e=o),r(t,Hu(e,3))}function nl(t,e){var n=uc(t)?En:Si;return n(t,Hu(e,3))}var rl=vu(Ua),il=vu(Xa);function ol(t,e){return Li(pl(t,e),1)}function ul(t,e){return Li(pl(t,e),$)}function al(t,e,n){return n=n===o?1:Yc(n),Li(pl(t,e),n)}function sl(t,e){var n=uc(t)?wn:_i;return n(t,Hu(e,3))}function ll(t,e){var n=uc(t)?kn:wi;return n(t,Hu(e,3))}var cl=uu((function(t,e,n){fe.call(t,n)?t[n].push(e):hi(t,n,[e])}));function fl(t,e,n,r){t=sc(t)?t:Bf(t),n=n&&!r?Yc(n):0;var i=t.length;return n<0&&(n=Be(i+n,0)),Ic(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Nn(t,e,n)>-1}var hl=bo((function(t,e,r){var i=-1,o="function"==typeof e,u=sc(t)?n(t.length):[];return _i(t,(function(t){u[++i]=o?bn(e,t,r):Wi(t,e,r)})),u})),dl=uu((function(t,e,n){hi(t,n,e)}));function pl(t,e){var n=uc(t)?On:ro;return n(t,Hu(e,3))}function vl(t,e,n,r){return null==t?[]:(uc(e)||(e=null==e?[]:[e]),n=r?o:n,uc(n)||(n=null==n?[]:[n]),lo(t,e,n))}var ml=uu((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));function gl(t,e,n){var r=uc(t)?Cn:Fn,i=arguments.length<3;return r(t,Hu(e,4),n,i,_i)}function yl(t,e,n){var r=uc(t)?Tn:Fn,i=arguments.length<3;return r(t,Hu(e,4),n,i,wi)}function bl(t,e){var n=uc(t)?En:Si;return n(t,Dl(Hu(e,3)))}function _l(t){var e=uc(t)?ri:_o;return e(t)}function wl(t,e,n){e=(n?oa(t,e,n):e===o)?1:Yc(e);var r=uc(t)?ii:wo;return r(t,e)}function kl(t){var e=uc(t)?oi:So;return e(t)}function xl(t){if(null==t)return 0;if(sc(t))return Ic(t)?pr(t):t.length;var e=Vu(t);return e==Z||e==ot?t.size:to(t).length}function El(t,e,n){var r=uc(t)?Mn:Oo;return n&&oa(t,e,n)&&(e=o),r(t,Hu(e,3))}var Sl=bo((function(t,e){if(null==t)return[];var n=e.length;return n>1&&oa(t,e[0],e[1])?e=[]:n>2&&oa(e[0],e[1],e[2])&&(e=[e[0]]),lo(t,Li(e,1),[])})),Ll=Me||function(){return an.Date.now()};function Ol(t,e){if("function"!=typeof e)throw new oe(l);return t=Yc(t),function(){if(--t<1)return e.apply(this,arguments)}}function Al(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Cu(t,S,o,o,o,o,e)}function Cl(t,e){var n;if("function"!=typeof e)throw new oe(l);return t=Yc(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Tl=bo((function(t,e,n){var r=y;if(n.length){var i=lr(n,Wu(Tl));r|=x}return Cu(t,r,e,n,i)})),Ml=bo((function(t,e,n){var r=y|b;if(n.length){var i=lr(n,Wu(Ml));r|=x}return Cu(e,r,t,n,i)}));function jl(t,e,n){e=n?o:e;var r=Cu(t,w,o,o,o,o,o,e);return r.placeholder=jl.placeholder,r}function Pl(t,e,n){e=n?o:e;var r=Cu(t,k,o,o,o,o,o,e);return r.placeholder=Pl.placeholder,r}function Rl(t,e,n){var r,i,u,a,s,c,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new oe(l);function v(e){var n=r,u=i;return r=i=o,f=e,a=t.apply(u,n),a}function m(t){return f=t,s=xa(b,e),h?v(t):a}function g(t){var n=t-c,r=t-f,i=e-n;return d?We(i,u-r):i}function y(t){var n=t-c,r=t-f;return c===o||n>=e||n<0||d&&r>=u}function b(){var t=Ll();if(y(t))return _(t);s=xa(b,g(t))}function _(t){return s=o,p&&r?v(t):(r=i=o,a)}function w(){s!==o&&Xo(s),f=0,r=c=i=s=o}function k(){return s===o?a:_(Ll())}function x(){var t=Ll(),n=y(t);if(r=arguments,i=this,c=t,n){if(s===o)return m(c);if(d)return Xo(s),s=xa(b,e),v(c)}return s===o&&(s=xa(b,e)),a}return e=Gc(e)||0,kc(n)&&(h=!!n.leading,d="maxWait"in n,u=d?Be(Gc(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),x.cancel=w,x.flush=k,x}var $l=bo((function(t,e){return yi(t,1,e)})),Il=bo((function(t,e,n){return yi(t,Gc(e)||0,n)}));function Nl(t){return Cu(t,O)}function zl(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(l);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(zl.Cache||Wr),n}function Dl(t){if("function"!=typeof t)throw new oe(l);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Bl(t){return Cl(2,t)}zl.Cache=Wr;var Wl=Fo((function(t,e){e=1==e.length&&uc(e[0])?On(e[0],Gn(Hu())):On(Li(e,1),Gn(Hu()));var n=e.length;return bo((function(r){var i=-1,o=We(r.length,n);while(++i<o)r[i]=e[i].call(this,r[i]);return bn(t,this,r)}))})),Hl=bo((function(t,e){var n=lr(e,Wu(Hl));return Cu(t,x,o,e,n)})),Fl=bo((function(t,e){var n=lr(e,Wu(Fl));return Cu(t,E,o,e,n)})),Ul=Iu((function(t,e){return Cu(t,L,o,o,o,e)}));function Xl(t,e){if("function"!=typeof t)throw new oe(l);return e=e===o?e:Yc(e),bo(t,e)}function Yl(t,e){if("function"!=typeof t)throw new oe(l);return e=null==e?0:Be(Yc(e),0),bo((function(n){var r=n[e],i=Uo(n,0,e);return r&&An(i,r),bn(t,this,i)}))}function ql(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new oe(l);return kc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rl(t,e,{leading:r,maxWait:e,trailing:i})}function Gl(t){return Al(t,1)}function Vl(t,e){return Hl(Wo(e),t)}function Jl(){if(!arguments.length)return[];var t=arguments[0];return uc(t)?t:[t]}function Kl(t){return vi(t,v)}function Zl(t,e){return e="function"==typeof e?e:o,vi(t,v,e)}function Ql(t){return vi(t,d|v)}function tc(t,e){return e="function"==typeof e?e:o,vi(t,d|v,e)}function ec(t,e){return null==e||gi(t,e,wf(e))}function nc(t,e){return t===e||t!==t&&e!==e}var rc=Eu($i),ic=Eu((function(t,e){return t>=e})),oc=Hi(function(){return arguments}())?Hi:function(t){return xc(t)&&fe.call(t,"callee")&&!Ee.call(t,"callee")},uc=n.isArray,ac=dn?Gn(dn):Fi;function sc(t){return null!=t&&wc(t.length)&&!bc(t)}function lc(t){return xc(t)&&sc(t)}function cc(t){return!0===t||!1===t||xc(t)&&Ri(t)==Y}var fc=Ie||qh,hc=pn?Gn(pn):Ui;function dc(t){return xc(t)&&1===t.nodeType&&!jc(t)}function pc(t){if(null==t)return!0;if(sc(t)&&(uc(t)||"string"==typeof t||"function"==typeof t.splice||fc(t)||zc(t)||oc(t)))return!t.length;var e=Vu(t);if(e==Z||e==ot)return!t.size;if(fa(t))return!to(t).length;for(var n in t)if(fe.call(t,n))return!1;return!0}function vc(t,e){return Xi(t,e)}function mc(t,e,n){n="function"==typeof n?n:o;var r=n?n(t,e):o;return r===o?Xi(t,e,o,n):!!r}function gc(t){if(!xc(t))return!1;var e=Ri(t);return e==V||e==G||"string"==typeof t.message&&"string"==typeof t.name&&!jc(t)}function yc(t){return"number"==typeof t&&Ne(t)}function bc(t){if(!kc(t))return!1;var e=Ri(t);return e==J||e==K||e==X||e==rt}function _c(t){return"number"==typeof t&&t==Yc(t)}function wc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=I}function kc(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function xc(t){return null!=t&&"object"==typeof t}var Ec=vn?Gn(vn):qi;function Sc(t,e){return t===e||Gi(t,e,Uu(e))}function Lc(t,e,n){return n="function"==typeof n?n:o,Gi(t,e,Uu(e),n)}function Oc(t){return Mc(t)&&t!=+t}function Ac(t){if(ca(t))throw new i(s);return Vi(t)}function Cc(t){return null===t}function Tc(t){return null==t}function Mc(t){return"number"==typeof t||xc(t)&&Ri(t)==Q}function jc(t){if(!xc(t)||Ri(t)!=et)return!1;var e=ke(t);if(null===e)return!0;var n=fe.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ce.call(n)==ve}var Pc=mn?Gn(mn):Ji;function Rc(t){return _c(t)&&t>=-I&&t<=I}var $c=gn?Gn(gn):Ki;function Ic(t){return"string"==typeof t||!uc(t)&&xc(t)&&Ri(t)==ut}function Nc(t){return"symbol"==typeof t||xc(t)&&Ri(t)==at}var zc=yn?Gn(yn):Zi;function Dc(t){return t===o}function Bc(t){return xc(t)&&Vu(t)==lt}function Wc(t){return xc(t)&&Ri(t)==ct}var Hc=Eu(no),Fc=Eu((function(t,e){return t<=e}));function Uc(t){if(!t)return[];if(sc(t))return Ic(t)?vr(t):nu(t);if(Oe&&t[Oe])return ur(t[Oe]());var e=Vu(t),n=e==Z?ar:e==ot?cr:Bf;return n(t)}function Xc(t){if(!t)return 0===t?t:0;if(t=Gc(t),t===$||t===-$){var e=t<0?-1:1;return e*N}return t===t?t:0}function Yc(t){var e=Xc(t),n=e%1;return e===e?n?e-n:e:0}function qc(t){return t?pi(Yc(t),0,D):0}function Gc(t){if("number"==typeof t)return t;if(Nc(t))return z;if(kc(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=kc(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Nt,"");var n=Gt.test(t);return n||Jt.test(t)?rn(t.slice(2),n?2:8):qt.test(t)?z:+t}function Vc(t){return ru(t,kf(t))}function Jc(t){return t?pi(Yc(t),-I,I):0===t?t:0}function Kc(t){return null==t?"":jo(t)}var Zc=au((function(t,e){if(fa(e)||sc(e))ru(e,wf(e),t);else for(var n in e)fe.call(e,n)&&ai(t,n,e[n])})),Qc=au((function(t,e){ru(e,kf(e),t)})),tf=au((function(t,e,n,r){ru(e,kf(e),t,r)})),ef=au((function(t,e,n,r){ru(e,wf(e),t,r)})),nf=Iu(di);function rf(t,e){var n=kr(t);return null==e?n:ci(n,e)}var of=bo((function(t,e){t=ne(t);var n=-1,r=e.length,i=r>2?e[2]:o;i&&oa(e[0],e[1],i)&&(r=1);while(++n<r){var u=e[n],a=kf(u),s=-1,l=a.length;while(++s<l){var c=a[s],f=t[c];(f===o||nc(f,se[c])&&!fe.call(t,c))&&(t[c]=u[c])}}return t})),uf=bo((function(t){return t.push(o,Mu),bn(Lf,o,t)}));function af(t,e){return $n(t,Hu(e,3),Ci)}function sf(t,e){return $n(t,Hu(e,3),Ti)}function lf(t,e){return null==t?t:Oi(t,Hu(e,3),kf)}function cf(t,e){return null==t?t:Ai(t,Hu(e,3),kf)}function ff(t,e){return t&&Ci(t,Hu(e,3))}function hf(t,e){return t&&Ti(t,Hu(e,3))}function df(t){return null==t?[]:Mi(t,wf(t))}function pf(t){return null==t?[]:Mi(t,kf(t))}function vf(t,e,n){var r=null==t?o:ji(t,e);return r===o?n:r}function mf(t,e){return null!=t&&Zu(t,e,Ii)}function gf(t,e){return null!=t&&Zu(t,e,Ni)}var yf=yu((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),t[e]=n}),Sh(Ch)),bf=yu((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=pe.call(e)),fe.call(t,e)?t[e].push(n):t[e]=[n]}),Hu),_f=bo(Wi);function wf(t){return sc(t)?ni(t):to(t)}function kf(t){return sc(t)?ni(t,!0):eo(t)}function xf(t,e){var n={};return e=Hu(e,3),Ci(t,(function(t,r,i){hi(n,e(t,r,i),t)})),n}function Ef(t,e){var n={};return e=Hu(e,3),Ci(t,(function(t,r,i){hi(n,r,e(t,r,i))})),n}var Sf=au((function(t,e,n){uo(t,e,n)})),Lf=au((function(t,e,n,r){uo(t,e,n,r)})),Of=Iu((function(t,e){var n={};if(null==t)return n;var r=!1;e=On(e,(function(e){return e=Ho(e,t),r||(r=e.length>1),e})),ru(t,zu(t),n),r&&(n=vi(n,d|p|v,ju));var i=e.length;while(i--)Ro(n,e[i]);return n}));function Af(t,e){return Tf(t,Dl(Hu(e)))}var Cf=Iu((function(t,e){return null==t?{}:co(t,e)}));function Tf(t,e){if(null==t)return{};var n=On(zu(t),(function(t){return[t]}));return e=Hu(e),fo(t,n,(function(t,n){return e(t,n[0])}))}function Mf(t,e,n){e=Ho(e,t);var r=-1,i=e.length;i||(i=1,t=o);while(++r<i){var u=null==t?o:t[Ca(e[r])];u===o&&(r=i,u=n),t=bc(u)?u.call(t):u}return t}function jf(t,e,n){return null==t?t:ko(t,e,n)}function Pf(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:ko(t,e,n,r)}var Rf=Au(wf),$f=Au(kf);function If(t,e,n){var r=uc(t),i=r||fc(t)||zc(t);if(e=Hu(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:kc(t)&&bc(o)?kr(ke(t)):{}}return(i?wn:Ci)(t,(function(t,r,i){return e(n,t,r,i)})),n}function Nf(t,e){return null==t||Ro(t,e)}function zf(t,e,n){return null==t?t:$o(t,e,Wo(n))}function Df(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:$o(t,e,Wo(n),r)}function Bf(t){return null==t?[]:Vn(t,wf(t))}function Wf(t){return null==t?[]:Vn(t,kf(t))}function Hf(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=Gc(n),n=n===n?n:0),e!==o&&(e=Gc(e),e=e===e?e:0),pi(Gc(t),e,n)}function Ff(t,e,n){return e=Xc(e),n===o?(n=e,e=0):n=Xc(n),t=Gc(t),zi(t,e,n)}function Uf(t,e,n){if(n&&"boolean"!=typeof n&&oa(t,e,n)&&(e=n=o),n===o&&("boolean"==typeof e?(n=e,e=o):"boolean"==typeof t&&(n=t,t=o)),t===o&&e===o?(t=0,e=1):(t=Xc(t),e===o?(e=t,t=0):e=Xc(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Ye();return We(t+i*(e-t+nn("1e-"+((i+"").length-1))),e)}return mo(t,e)}var Xf=hu((function(t,e,n){return e=e.toLowerCase(),t+(n?Yf(e):e)}));function Yf(t){return bh(Kc(t).toLowerCase())}function qf(t){return t=Kc(t),t&&t.replace(Zt,tr).replace(Fe,"")}function Gf(t,e,n){t=Kc(t),e=jo(e);var r=t.length;n=n===o?r:pi(Yc(n),0,r);var i=n;return n-=e.length,n>=0&&t.slice(n,i)==e}function Vf(t){return t=Kc(t),t&&At.test(t)?t.replace(Lt,er):t}function Jf(t){return t=Kc(t),t&&It.test(t)?t.replace($t,"\\$&"):t}var Kf=hu((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Zf=hu((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Qf=fu("toLowerCase");function th(t,e,n){t=Kc(t),e=Yc(e);var r=e?pr(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return wu(Re(i),n)+t+wu(Pe(i),n)}function eh(t,e,n){t=Kc(t),e=Yc(e);var r=e?pr(t):0;return e&&r<e?t+wu(e-r,n):t}function nh(t,e,n){t=Kc(t),e=Yc(e);var r=e?pr(t):0;return e&&r<e?wu(e-r,n)+t:t}function rh(t,e,n){return n||null==e?e=0:e&&(e=+e),Xe(Kc(t).replace(zt,""),e||0)}function ih(t,e,n){return e=(n?oa(t,e,n):e===o)?1:Yc(e),yo(Kc(t),e)}function oh(){var t=arguments,e=Kc(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var uh=hu((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function ah(t,e,n){return n&&"number"!=typeof n&&oa(t,e,n)&&(e=n=o),n=n===o?D:n>>>0,n?(t=Kc(t),t&&("string"==typeof e||null!=e&&!Pc(e))&&(e=jo(e),!e&&ir(t))?Uo(vr(t),0,n):t.split(e,n)):[]}var sh=hu((function(t,e,n){return t+(n?" ":"")+bh(e)}));function lh(t,e,n){return t=Kc(t),n=null==n?0:pi(Yc(n),0,t.length),e=jo(e),t.slice(n,n+e.length)==e}function ch(t,e,n){var r=_r.templateSettings;n&&oa(t,e,n)&&(e=o),t=Kc(t),e=tf({},e,r,Tu);var i,u,a=tf({},e.imports,r.imports,Tu),s=wf(a),l=Vn(a,s),c=0,f=e.interpolate||Qt,h="__p += '",d=re((e.escape||Qt).source+"|"+f.source+"|"+(f===Mt?Xt:Qt).source+"|"+(e.evaluate||Qt).source+"|$","g"),p="//# sourceURL="+(fe.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ve+"]")+"\n";t.replace(d,(function(e,n,r,o,a,s){return r||(r=o),h+=t.slice(c,s).replace(te,nr),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),a&&(u=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+e.length,e})),h+="';\n";var v=fe.call(e,"variable")&&e.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(u?h.replace(kt,""):h).replace(xt,"$1").replace(Et,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=wh((function(){return Ft(s,p+"return "+h).apply(o,l)}));if(m.source=h,gc(m))throw m;return m}function fh(t){return Kc(t).toLowerCase()}function hh(t){return Kc(t).toUpperCase()}function dh(t,e,n){if(t=Kc(t),t&&(n||e===o))return t.replace(Nt,"");if(!t||!(e=jo(e)))return t;var r=vr(t),i=vr(e),u=Kn(r,i),a=Zn(r,i)+1;return Uo(r,u,a).join("")}function ph(t,e,n){if(t=Kc(t),t&&(n||e===o))return t.replace(Dt,"");if(!t||!(e=jo(e)))return t;var r=vr(t),i=Zn(r,vr(e))+1;return Uo(r,0,i).join("")}function vh(t,e,n){if(t=Kc(t),t&&(n||e===o))return t.replace(zt,"");if(!t||!(e=jo(e)))return t;var r=vr(t),i=Kn(r,vr(e));return Uo(r,i).join("")}function mh(t,e){var n=A,r=C;if(kc(e)){var i="separator"in e?e.separator:i;n="length"in e?Yc(e.length):n,r="omission"in e?jo(e.omission):r}t=Kc(t);var u=t.length;if(ir(t)){var a=vr(t);u=a.length}if(n>=u)return t;var s=n-pr(r);if(s<1)return r;var l=a?Uo(a,0,s).join(""):t.slice(0,s);if(i===o)return l+r;if(a&&(s+=l.length-s),Pc(i)){if(t.slice(s).search(i)){var c,f=l;i.global||(i=re(i.source,Kc(Yt.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(f))var h=c.index;l=l.slice(0,h===o?s:h)}}else if(t.indexOf(jo(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r}function gh(t){return t=Kc(t),t&&Ot.test(t)?t.replace(St,mr):t}var yh=hu((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),bh=fu("toUpperCase");function _h(t,e,n){return t=Kc(t),e=n?o:e,e===o?or(t)?br(t):Rn(t):t.match(e)||[]}var wh=bo((function(t,e){try{return bn(t,o,e)}catch(n){return gc(n)?n:new i(n)}})),kh=Iu((function(t,e){return wn(e,(function(e){e=Ca(e),hi(t,e,Tl(t[e],t))})),t}));function xh(t){var e=null==t?0:t.length,n=Hu();return t=e?On(t,(function(t){if("function"!=typeof t[1])throw new oe(l);return[n(t[0]),t[1]]})):[],bo((function(n){var r=-1;while(++r<e){var i=t[r];if(bn(i[0],this,n))return bn(i[1],this,n)}}))}function Eh(t){return mi(vi(t,d))}function Sh(t){return function(){return t}}function Lh(t,e){return null==t||t!==t?e:t}var Oh=mu(),Ah=mu(!0);function Ch(t){return t}function Th(t){return Qi("function"==typeof t?t:vi(t,d))}function Mh(t){return io(vi(t,d))}function jh(t,e){return oo(t,vi(e,d))}var Ph=bo((function(t,e){return function(n){return Wi(n,t,e)}})),Rh=bo((function(t,e){return function(n){return Wi(t,n,e)}}));function $h(t,e,n){var r=wf(e),i=Mi(e,r);null!=n||kc(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Mi(e,wf(e)));var o=!(kc(n)&&"chain"in n)||!!n.chain,u=bc(t);return wn(i,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=nu(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,An([this.value()],arguments))})})),t}function Ih(){return an._===this&&(an._=me),this}function Nh(){}function zh(t){return t=Yc(t),bo((function(e){return so(e,t)}))}var Dh=_u(On),Bh=_u(xn),Wh=_u(Mn);function Hh(t){return ua(t)?Wn(Ca(t)):ho(t)}function Fh(t){return function(e){return null==t?o:ji(t,e)}}var Uh=xu(),Xh=xu(!0);function Yh(){return[]}function qh(){return!1}function Gh(){return{}}function Vh(){return""}function Jh(){return!0}function Kh(t,e){if(t=Yc(t),t<1||t>I)return[];var n=D,r=We(t,D);e=Hu(e),t-=D;var i=Yn(r,e);while(++n<t)e(n);return i}function Zh(t){return uc(t)?On(t,Ca):Nc(t)?[t]:nu(Aa(Kc(t)))}function Qh(t){var e=++he;return Kc(t)+e}var td=bu((function(t,e){return t+e}),0),ed=Lu("ceil"),nd=bu((function(t,e){return t/e}),1),rd=Lu("floor");function id(t){return t&&t.length?xi(t,Ch,$i):o}function od(t,e){return t&&t.length?xi(t,Hu(e,2),$i):o}function ud(t){return Bn(t,Ch)}function ad(t,e){return Bn(t,Hu(e,2))}function sd(t){return t&&t.length?xi(t,Ch,no):o}function ld(t,e){return t&&t.length?xi(t,Hu(e,2),no):o}var cd=bu((function(t,e){return t*e}),1),fd=Lu("round"),hd=bu((function(t,e){return t-e}),0);function dd(t){return t&&t.length?Xn(t,Ch):0}function pd(t,e){return t&&t.length?Xn(t,Hu(e,2)):0}return _r.after=Ol,_r.ary=Al,_r.assign=Zc,_r.assignIn=Qc,_r.assignInWith=tf,_r.assignWith=ef,_r.at=nf,_r.before=Cl,_r.bind=Tl,_r.bindAll=kh,_r.bindKey=Ml,_r.castArray=Jl,_r.chain=Fs,_r.chunk=Pa,_r.compact=Ra,_r.concat=$a,_r.cond=xh,_r.conforms=Eh,_r.constant=Sh,_r.countBy=tl,_r.create=rf,_r.curry=jl,_r.curryRight=Pl,_r.debounce=Rl,_r.defaults=of,_r.defaultsDeep=uf,_r.defer=$l,_r.delay=Il,_r.difference=Ia,_r.differenceBy=Na,_r.differenceWith=za,_r.drop=Da,_r.dropRight=Ba,_r.dropRightWhile=Wa,_r.dropWhile=Ha,_r.fill=Fa,_r.filter=nl,_r.flatMap=ol,_r.flatMapDeep=ul,_r.flatMapDepth=al,_r.flatten=Ya,_r.flattenDeep=qa,_r.flattenDepth=Ga,_r.flip=Nl,_r.flow=Oh,_r.flowRight=Ah,_r.fromPairs=Va,_r.functions=df,_r.functionsIn=pf,_r.groupBy=cl,_r.initial=Za,_r.intersection=Qa,_r.intersectionBy=ts,_r.intersectionWith=es,_r.invert=yf,_r.invertBy=bf,_r.invokeMap=hl,_r.iteratee=Th,_r.keyBy=dl,_r.keys=wf,_r.keysIn=kf,_r.map=pl,_r.mapKeys=xf,_r.mapValues=Ef,_r.matches=Mh,_r.matchesProperty=jh,_r.memoize=zl,_r.merge=Sf,_r.mergeWith=Lf,_r.method=Ph,_r.methodOf=Rh,_r.mixin=$h,_r.negate=Dl,_r.nthArg=zh,_r.omit=Of,_r.omitBy=Af,_r.once=Bl,_r.orderBy=vl,_r.over=Dh,_r.overArgs=Wl,_r.overEvery=Bh,_r.overSome=Wh,_r.partial=Hl,_r.partialRight=Fl,_r.partition=ml,_r.pick=Cf,_r.pickBy=Tf,_r.property=Hh,_r.propertyOf=Fh,_r.pull=us,_r.pullAll=as,_r.pullAllBy=ss,_r.pullAllWith=ls,_r.pullAt=cs,_r.range=Uh,_r.rangeRight=Xh,_r.rearg=Ul,_r.reject=bl,_r.remove=fs,_r.rest=Xl,_r.reverse=hs,_r.sampleSize=wl,_r.set=jf,_r.setWith=Pf,_r.shuffle=kl,_r.slice=ds,_r.sortBy=Sl,_r.sortedUniq=_s,_r.sortedUniqBy=ws,_r.split=ah,_r.spread=Yl,_r.tail=ks,_r.take=xs,_r.takeRight=Es,_r.takeRightWhile=Ss,_r.takeWhile=Ls,_r.tap=Us,_r.throttle=ql,_r.thru=Xs,_r.toArray=Uc,_r.toPairs=Rf,_r.toPairsIn=$f,_r.toPath=Zh,_r.toPlainObject=Vc,_r.transform=If,_r.unary=Gl,_r.union=Os,_r.unionBy=As,_r.unionWith=Cs,_r.uniq=Ts,_r.uniqBy=Ms,_r.uniqWith=js,_r.unset=Nf,_r.unzip=Ps,_r.unzipWith=Rs,_r.update=zf,_r.updateWith=Df,_r.values=Bf,_r.valuesIn=Wf,_r.without=$s,_r.words=_h,_r.wrap=Vl,_r.xor=Is,_r.xorBy=Ns,_r.xorWith=zs,_r.zip=Ds,_r.zipObject=Bs,_r.zipObjectDeep=Ws,_r.zipWith=Hs,_r.entries=Rf,_r.entriesIn=$f,_r.extend=Qc,_r.extendWith=tf,$h(_r,_r),_r.add=td,_r.attempt=wh,_r.camelCase=Xf,_r.capitalize=Yf,_r.ceil=ed,_r.clamp=Hf,_r.clone=Kl,_r.cloneDeep=Ql,_r.cloneDeepWith=tc,_r.cloneWith=Zl,_r.conformsTo=ec,_r.deburr=qf,_r.defaultTo=Lh,_r.divide=nd,_r.endsWith=Gf,_r.eq=nc,_r.escape=Vf,_r.escapeRegExp=Jf,_r.every=el,_r.find=rl,_r.findIndex=Ua,_r.findKey=af,_r.findLast=il,_r.findLastIndex=Xa,_r.findLastKey=sf,_r.floor=rd,_r.forEach=sl,_r.forEachRight=ll,_r.forIn=lf,_r.forInRight=cf,_r.forOwn=ff,_r.forOwnRight=hf,_r.get=vf,_r.gt=rc,_r.gte=ic,_r.has=mf,_r.hasIn=gf,_r.head=Ja,_r.identity=Ch,_r.includes=fl,_r.indexOf=Ka,_r.inRange=Ff,_r.invoke=_f,_r.isArguments=oc,_r.isArray=uc,_r.isArrayBuffer=ac,_r.isArrayLike=sc,_r.isArrayLikeObject=lc,_r.isBoolean=cc,_r.isBuffer=fc,_r.isDate=hc,_r.isElement=dc,_r.isEmpty=pc,_r.isEqual=vc,_r.isEqualWith=mc,_r.isError=gc,_r.isFinite=yc,_r.isFunction=bc,_r.isInteger=_c,_r.isLength=wc,_r.isMap=Ec,_r.isMatch=Sc,_r.isMatchWith=Lc,_r.isNaN=Oc,_r.isNative=Ac,_r.isNil=Tc,_r.isNull=Cc,_r.isNumber=Mc,_r.isObject=kc,_r.isObjectLike=xc,_r.isPlainObject=jc,_r.isRegExp=Pc,_r.isSafeInteger=Rc,_r.isSet=$c,_r.isString=Ic,_r.isSymbol=Nc,_r.isTypedArray=zc,_r.isUndefined=Dc,_r.isWeakMap=Bc,_r.isWeakSet=Wc,_r.join=ns,_r.kebabCase=Kf,_r.last=rs,_r.lastIndexOf=is,_r.lowerCase=Zf,_r.lowerFirst=Qf,_r.lt=Hc,_r.lte=Fc,_r.max=id,_r.maxBy=od,_r.mean=ud,_r.meanBy=ad,_r.min=sd,_r.minBy=ld,_r.stubArray=Yh,_r.stubFalse=qh,_r.stubObject=Gh,_r.stubString=Vh,_r.stubTrue=Jh,_r.multiply=cd,_r.nth=os,_r.noConflict=Ih,_r.noop=Nh,_r.now=Ll,_r.pad=th,_r.padEnd=eh,_r.padStart=nh,_r.parseInt=rh,_r.random=Uf,_r.reduce=gl,_r.reduceRight=yl,_r.repeat=ih,_r.replace=oh,_r.result=Mf,_r.round=fd,_r.runInContext=t,_r.sample=_l,_r.size=xl,_r.snakeCase=uh,_r.some=El,_r.sortedIndex=ps,_r.sortedIndexBy=vs,_r.sortedIndexOf=ms,_r.sortedLastIndex=gs,_r.sortedLastIndexBy=ys,_r.sortedLastIndexOf=bs,_r.startCase=sh,_r.startsWith=lh,_r.subtract=hd,_r.sum=dd,_r.sumBy=pd,_r.template=ch,_r.times=Kh,_r.toFinite=Xc,_r.toInteger=Yc,_r.toLength=qc,_r.toLower=fh,_r.toNumber=Gc,_r.toSafeInteger=Jc,_r.toString=Kc,_r.toUpper=hh,_r.trim=dh,_r.trimEnd=ph,_r.trimStart=vh,_r.truncate=mh,_r.unescape=gh,_r.uniqueId=Qh,_r.upperCase=yh,_r.upperFirst=bh,_r.each=sl,_r.eachRight=ll,_r.first=Ja,$h(_r,function(){var t={};return Ci(_r,(function(e,n){fe.call(_r.prototype,n)||(t[n]=e)})),t}(),{chain:!1}),_r.VERSION=u,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){_r[t].placeholder=_r})),wn(["drop","take"],(function(t,e){Sr.prototype[t]=function(n){n=n===o?1:Be(Yc(n),0);var r=this.__filtered__&&!e?new Sr(this):this.clone();return r.__filtered__?r.__takeCount__=We(n,r.__takeCount__):r.__views__.push({size:We(n,D),type:t+(r.__dir__<0?"Right":"")}),r},Sr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),wn(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=n==j||n==R;Sr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Hu(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),wn(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Sr.prototype[t]=function(){return this[n](1).value()[0]}})),wn(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Sr.prototype[t]=function(){return this.__filtered__?new Sr(this):this[n](1)}})),Sr.prototype.compact=function(){return this.filter(Ch)},Sr.prototype.find=function(t){return this.filter(t).head()},Sr.prototype.findLast=function(t){return this.reverse().find(t)},Sr.prototype.invokeMap=bo((function(t,e){return"function"==typeof t?new Sr(this):this.map((function(n){return Wi(n,t,e)}))})),Sr.prototype.reject=function(t){return this.filter(Dl(Hu(t)))},Sr.prototype.slice=function(t,e){t=Yc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Sr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(e=Yc(e),n=e<0?n.dropRight(-e):n.take(e-t)),n)},Sr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Sr.prototype.toArray=function(){return this.take(D)},Ci(Sr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=_r[r?"take"+("last"==e?"Right":""):e],u=r||/^find/.test(e);i&&(_r.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Sr,l=a[0],c=s||uc(e),f=function(t){var e=i.apply(_r,An([t],a));return r&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=u&&!h,v=s&&!d;if(!u&&c){e=v?e:new Sr(this);var m=t.apply(e,a);return m.__actions__.push({func:Xs,args:[f],thisArg:o}),new Er(m,h)}return p&&v?t.apply(this,a):(m=this.thru(f),p?r?m.value()[0]:m.value():m)})})),wn(["pop","push","shift","sort","splice","unshift"],(function(t){var e=ue[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);_r.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(uc(i)?i:[],t)}return this[n]((function(n){return e.apply(uc(n)?n:[],t)}))}})),Ci(Sr.prototype,(function(t,e){var n=_r[e];if(n){var r=n.name+"";fe.call(ln,r)||(ln[r]=[]),ln[r].push({name:e,func:n})}})),ln[gu(o,b).name]=[{name:"wrapper",func:o}],Sr.prototype.clone=Lr,Sr.prototype.reverse=Or,Sr.prototype.value=Ar,_r.prototype.at=Ys,_r.prototype.chain=qs,_r.prototype.commit=Gs,_r.prototype.next=Vs,_r.prototype.plant=Ks,_r.prototype.reverse=Zs,_r.prototype.toJSON=_r.prototype.valueOf=_r.prototype.value=Qs,_r.prototype.first=_r.prototype.head,Oe&&(_r.prototype[Oe]=Js),_r},wr=_r();an._=wr,i=function(){return wr}.call(e,n,e,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},"419f":function(t,e,n){"use strict";n("95a9")},"4eb5":function(t,e,n){var r=n("6981"),i={autoSetContainer:!1,appendToBody:!0},o={install:function(t){t.prototype.$clipboardConfig=i,t.prototype.$copyText=function(t,e){return new Promise((function(n,o){var u=document.createElement("button"),a=new r(u,{text:function(){return t},action:function(){return"copy"},container:"object"===typeof e?e:document.body});a.on("success",(function(t){a.destroy(),n(t)})),a.on("error",(function(t){a.destroy(),o(t)})),i.appendToBody&&document.body.appendChild(u),u.click(),i.appendToBody&&document.body.removeChild(u)}))},t.directive("clipboard",{bind:function(t,e,n){if("success"===e.arg)t._vClipboard_success=e.value;else if("error"===e.arg)t._vClipboard_error=e.value;else{var o=new r(t,{text:function(){return e.value},action:function(){return"cut"===e.arg?"cut":"copy"},container:i.autoSetContainer?t:void 0});o.on("success",(function(e){var n=t._vClipboard_success;n&&n(e)})),o.on("error",(function(e){var n=t._vClipboard_error;n&&n(e)})),t._vClipboard=o}},update:function(t,e){"success"===e.arg?t._vClipboard_success=e.value:"error"===e.arg?t._vClipboard_error=e.value:(t._vClipboard.text=function(){return e.value},t._vClipboard.action=function(){return"cut"===e.arg?"cut":"copy"})},unbind:function(t,e){"success"===e.arg?delete t._vClipboard_success:"error"===e.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard)}})},config:i};t.exports=o},5341:function(t,e,n){},"5ebe":function(t,e,n){},"5fa5":function(t,e,n){},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},6981:function(t,e,n){
10
10
  /*!
11
11
  * clipboard.js v2.0.8
12
12
  * https://clipboardjs.com/
13
13
  *
14
14
  * Licensed MIT © Zeno Rocha
15
15
  */
16
- !function(e,n){t.exports=n()}(0,(function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return v}});e=n(279);var r=n.n(e),i=(e=n(370),n.n(e)),o=(e=n(817),n.n(e));function u(t){return(u="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})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}var e,n,r;return e=t,(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&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:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return 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[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=o()(e),this.copyText(),this.removeFake()}},{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=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{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(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&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"!==u(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}}])&&a(e.prototype,n),r&&a(e,r),t}();function l(t){return(l="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})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var t,r=d(e);return t=n?(t=d(this).constructor,Reflect.construct(r,arguments,t)):r.apply(this,arguments),r=this,!(t=t)||"object"!==l(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):t}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var v=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,r());var t,e,n,o=h(u);function u(t,e){var n;return function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=u,n=[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e=(t="string"==typeof t?[t]:t,!!document.queryCommandSupported);return t.forEach((function(t){e=e&&!!document.queryCommandSupported(t)})),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&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"===l(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=i()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return p("action",t)}},{key:"defaultTarget",value:function(t){if(t=p("target",t),t)return document.querySelector(t)}},{key:"defaultText",value:function(t){return p("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&c(t.prototype,e),n&&c(t,n),u}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function i(t,e,n,i,o){var u=function(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,u,o),{destroy:function(){t.removeEventListener(n,u,o)}}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return l=e,c=n,(s=t).addEventListener(l,c),{destroy:function(){s.removeEventListener(l,c)}};if(r.nodeList(t))return o=t,u=e,a=n,Array.prototype.forEach.call(o,(function(t){t.addEventListener(u,a)})),{destroy:function(){Array.prototype.forEach.call(o,(function(t){t.removeEventListener(u,a)}))}};if(r.string(t))return t=t,e=e,n=n,i(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,u,a,s,l,c}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,u=r.length;o<u;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(134).default;function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var e,n}))},"7e2d":function(t,e,n){"use strict";n("5fa5")},8875:function(t,e,n){var r,i,o;(function(n,u){i=[],r=u,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(f){var t,e,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=r.exec(f.stack)||i.exec(f.stack),u=o&&o[1]||!1,a=o&&o[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===s&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var c=0;c<l.length;c++){if("interactive"===l[c].readyState)return l[c];if(l[c].src===u)return l[c];if(u===s&&l[c].innerHTML&&l[c].innerHTML.trim()===n)return l[c]}return null}}return t}))},a733:function(t,e,n){},b8fb:function(t,e,n){"use strict";n("a733")},bce9:function(t,e,n){"use strict";n("5ebe")},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ddde:function(t,e,n){"use strict";n("39ef")},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"flow-canvas",staticClass:"simple-flow-chart",on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.contextmenu(e)},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.canvasMousedown(e)},mousemove:t.canvasMousemove,mouseup:t.canvasMouseup}},[t.temEdgeConf.visible?n("graph-line",{attrs:{padding:t.linkPadding,graph:t.graph,link:t.temEdgeConf.link,"link-base-style":t.linkBaseStyle,"link-desc":t.linkDesc,"link-style":t.linkStyle}}):t._e(),t._l(t.graph.linkList,(function(e,r){return n("graph-line",{key:e.key,attrs:{index:r,padding:t.linkPadding,graph:t.graph,link:e,"link-base-style":t.linkBaseStyle,"link-desc":t.linkDesc,"link-style":t.linkStyle,dblclickLink:t.dblclickLink},on:{changeLinkStyle:t.changeLinkStyle},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.meta;return[t._t("desc",null,{meta:n})]}}],null,!0)})})),t.moveNodeConf.isMove&&t.hasMarkLine?n("mark-line",{attrs:{width:t.clientWidth,height:t.clientHeight,"mark-color":t.markLineColor,markLine:t.moveNodeConf.markLine}}):t._e(),t._l(t.graph.nodeList,(function(e,r){return n("graph-node",{key:e.key,attrs:{index:r,node:e,graph:t.graph,"is-move":e===t.moveNodeConf.node,"is-tem-edge":t.temEdgeConf.visible,"node-intercept":t.nodeIntercept(e),"line-drop":t.linkAddable,"node-drop":t.draggable},on:{"node-mousedown":t.nodeMousedown,"node-mouseenter":t.nodeMouseenter,"node-mouseleave":t.nodeMouseleave,"node-mouseup":t.nodeMouseup,"side-mousedown":t.sideMousedown,"node-contextmenu":t.nodeContextmenu},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.meta;return[t._t("node",null,{meta:n})]}}],null,!0)})})),n("graph-menu",{attrs:{visible:t.menuConf.visible,graph:t.graph,position:t.menuConf.position,list:t.menuConf.list,source:t.menuConf.source},on:{"update:visible":function(e){return t.$set(t.menuConf,"visible",e)}},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.item;return[t._t("menuItem",null,{item:n})]}}],null,!0)}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.graph.graphSelected,expression:"graph.graphSelected"}],ref:"selectAllMask",staticClass:"select-all__mask",style:t.maskStyle,attrs:{tabindex:"-1"},on:{mousedown:function(e){return e.stopPropagation(),t.selectAllMaskMouseDown(e)},contextmenu:function(t){t.preventDefault(),t.stopPropagation()}}}),n("modal",{attrs:{name:"templateModal",height:500}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.templateData,expression:"templateData"}],staticClass:"template-data",domProps:{value:t.templateData},on:{input:function(e){e.target.composing||(t.templateData=e.target.value)}}}),n("button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.templateData,expression:"templateData",arg:"copy"}]},[t._v("复制")])])],2)},a=[],s=n("2ef0"),l=n.n(s);function c(t){return p(t)||d(t)||h(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return v(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)?v(t,e):void 0}}function d(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function p(t){if(Array.isArray(t))return v(t)}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var b,_=function(){function t(){m(this,t),this.listeners={}}return y(t,[{key:"add",value:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"remove",value:function(t,e){if(t in this.listeners)for(var n=this.listeners[t],r=0,i=n.length;r<i;r++)if(n[r]===e)return n.splice(r,1),this.remove(t,e)}},{key:"dispatch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.type in this.listeners){var r=this.listeners[t.type];t.target=this,n?r.some((function(n,i){var o=n.call(e,t);return o&&r.unshift.apply(r,c(r.splice(i,1))),o})):r.forEach((function(n){return n.call(e,t)}))}}}]),t}();function w(t){return S(t)||E(t)||x(t)||k()}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t,e){if(t){if("string"===typeof t)return L(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)?L(t,e):void 0}}function E(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function S(t){if(Array.isArray(t))return L(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=n.length,i=[],o=16,u=0;u<o;u++)i[u]=n[0|Math.random()*r];return t+i.join("")+e}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.clientX,i=t.clientY,o=t.currentTarget,u=e||o,a=u.getBoundingClientRect(),s=a.left,l=a.top;return[r-s,i-l+((n||{}).scrollTop||0)]}function C(t,e){var n=t.clientX,r=t.clientY;if(e){var i=e.getBoundingClientRect(),o=i.top,u=i.right,a=i.bottom,s=i.left;return o<r&&u>n&&a>r&&s<n}}function T(t,e){return[t[0]+e[0],t[1]+e[1]]}function M(t,e){return[t[0]*e,t[1]*e]}function j(t,e){return[e[0]-t[0],e[1]-t[1]]}function P(t,e){return[t[0]-e[0],t[1]-e[1]]}function R(t,e){return t[0]*e[0]+t[1]*e[1]}function $(t,e){return t[0]*e[1]-t[1]*e[0]}function I(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t){return Math.round(180/Math.PI*Math.atan2(t[1],t[0]))+180}function D(t,e){return t[0]*e[1]-t[1]*e[0]===0}function B(t){var e={add:T,multiply:M,differ:j,minus:P,dotProduct:R,cross:$,unitVector:I,equals:N,angle:z,parallel:D},n={};return Object.keys(e).forEach((function(r){Object.defineProperty(n,r,{get:function(){return function(i){return t=e[r](t,i),n}}})})),Object.defineProperty(n,"end",{get:function(){return t}}),n}function W(t){return Object.prototype.toString.call(t).slice(8,-1).toLocaleLowerCase()}function H(t){return"function"===W(t)}function F(t){return"boolean"===W(t)}function U(t){return"object"===W(t)}function X(t,e){t.splice.apply(t,[0,t.length].concat(w(e)))}function Y(t,e){var n=e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom;return!n}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G={top:1,right:2,bottom:3,left:4},V=(b={},q(b,G.top,[0,-1]),q(b,G.right,[1,0]),q(b,G.bottom,[0,1]),q(b,G.left,[-1,0]),b);function J(t){return tt(t)||Q(t)||Z(t)||K()}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(t,e){if(t){if("string"===typeof t)return et(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)?et(t,e):void 0}}function Q(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function tt(t){if(Array.isArray(t))return et(t)}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e,n){return e&&rt(t.prototype,e),n&&rt(t,n),t}var ot=function(){function t(e,n){nt(this,t);var r=e.id,i=void 0===r?O("node"):r,o=e.width,u=void 0===o?180:o,a=e.height,s=void 0===a?100:a,l=e.coordinate,c=void 0===l?[0,0]:l,f=e.meta,h=void 0===f?{}:f;this.key=O("node"),this.graph=n,this.id=i,this.coordinate=J(c),this.meta=h,this.width=u,this.height=s}return it(t,[{key:"position",get:function(){return B(this.coordinate).add(this.graph.origin).end},set:function(t){this.coordinate=B(t).minus(this.graph.origin).end}},{key:"center",get:function(){return B(this.coordinate).add([this.width/2,this.height/2]).end},set:function(t){this.coordinate=B(t).minus([this.width/2,this.height/2]).end}},{key:"width",get:function(){return this._width},set:function(t){t=Math.floor(t),this._width=t>50?t:50,this.angle()}},{key:"height",get:function(){return this._height},set:function(t){t=Math.floor(t),this._height=t>20?t:20,this.angle()}},{key:"angle",value:function(){var t=this.width/2,e=this.height/2,n=[0,0],r=B(n).minus([t,e]).angle().end,i=B(n).add([t,0]).minus([0,e]).angle().end,o=B(n).add([t,e]).angle().end,u=B(n).add([0,e]).minus([t,0]).angle().end;this.angleList=[r,i,o,u]}},{key:"relative",value:function(t){var e=B(t).minus([this.width/2,this.height/2]).angle().end,n=this.angleList,r=[G.top,G.right,G.bottom,G.left],i=G.left;return n.reduce((function(t,n,o){return e>=t&&e<n&&(i=r[o-1]),n})),{position:this.fixOffset(t,i),direction:V[i]}}},{key:"fixOffset",value:function(t,e){switch(e){case G.top:t[0]=this.width/2,t[1]=0;break;case G.right:t[0]=this.width,t[1]=this.height/2;break;case G.bottom:t[0]=this.width/2,t[1]=this.height;break;case G.left:default:t[0]=0,t[1]=this.height/2;break}return t}},{key:"remove",value:function(){return this.graph.removeNode(this)}},{key:"toJSON",value:function(){return{id:this.id,width:this.width,height:this.height,coordinate:J(this.coordinate),meta:this.meta}}}]),t}();function ut(t,e){return ft(t)||ct(t,e)||st(t,e)||at()}function at(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(t,e){if(t){if("string"===typeof t)return lt(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)?lt(t,e):void 0}}function lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ct(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function ft(t){if(Array.isArray(t))return t}function ht(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pt(t,e,n){return e&&dt(t.prototype,e),n&&dt(t,n),t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mt=function(){function t(e,n){ht(this,t);var r=e.id,i=void 0===r?O("link"):r,o=e.start,u=e.end,a=void 0===u?null:u,s=e.startAt,l=void 0===s?[0,0]:s,c=e.endAt,f=void 0===c?[0,0]:c,h=e.meta,d=void 0===h?{desc:0}:h;this.key=O("link"),this.id=i,this.graph=n,this.start=o,this.meta=d,this.end=a,this.startDirection=V[G.top],this.endDirection=V[G.top],this.startAt=l,this.endAt=f}return pt(t,[{key:"end",get:function(){return this._end},set:function(t){if(this.start===t)return!1;this._end=t}},{key:"startAt",get:function(){return this._startAt},set:function(t){var e=this.start.relative(t);this._startAt=e.position,this.startDirection=e.direction}},{key:"endAt",get:function(){return this._endAt},set:function(t){if(this.end){var e=this.end.relative(t);this._endAt=e.position,this.endDirection=e.direction}else this._endAt=t}},{key:"movePosition",get:function(){return this._movePosition},set:function(t){if(this._movePosition=t,!this.end){var e=this.start.relative(B(t).minus(this.graph.origin).minus(this.start.coordinate).end);this.endDirection=B(e.direction).multiply(-1).end}}},{key:"pathPointList",get:function(){var t=this.coordinateList(),e=[],n=[];return t.forEach((function(t){e.push(t[0]),n.push(t[1])})),{pointList:t,xList:e,yList:n,minX:Math.min.apply(Math,e),maxX:Math.max.apply(Math,e),minY:Math.min.apply(Math,n),maxY:Math.max.apply(Math,n)}}},{key:"startCoordinate",value:function(){return B(this.start.position).add(this.startAt).end}},{key:"endCoordinate",value:function(){return this.end?B(this.end.position).add(this.endAt).end:this.movePosition}},{key:"coordinateList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=this.startCoordinate(),r=this.endCoordinate(),i=this.startDirection,o=this.endDirection,u=B(i).multiply(t.distance).add(n).end,a=B(o).multiply(t.distance).add(r).end;o=B(o).multiply(-1).end;var s=[a[0]-u[0],0],l=[0,a[1]-u[1]],c=this.pathDirection(l,s,i),f=this.pathDirection(l,s,o),h=B(c).dotProduct(f).end>0?2:1,d=f===s?l:s,p=[];if(p.push(n,u),1===h){var v=B(u).add(c).end,m=B(v).add(f).end;p.push(v,m)}else{var g=B(c).multiply(e).add(u).end,y=B(g).add(d).end,b=B(f).multiply(1-e).add(y).end;p.push(g,y,b)}return p.push(r),p}},{key:"pathDirection",value:function(t,e,n){return B(e).parallel(n).end?B(e).dotProduct(n).end>0?e:t:B(t).dotProduct(n).end>0?t:e}},{key:"isPointInLink",value:function(t,e){var n=e||this.pathPointList,r=n.pointList,i=n.minX,o=n.minY,u=n.maxX,a=n.maxY,s=5;if(t[0]<i-s||t[0]>u+s||t[1]<o-s||t[1]>a+s)return!1;for(var l=0;l<r.length-2;l++){var c=r[l],f=r[l+1],h=Math.min(c[1],f[1])-s,d=Math.max(c[0],f[0])+s,p=Math.max(c[1],f[1])+s,v=Math.min(c[0],f[0])-s,m=ut(t,2),g=m[0],y=m[1];if(g>v&&g<d&&y>h&&y<p)return!0}return!1}},{key:"remove",value:function(){return this.graph.removeLink(this)}},{key:"toJSON",value:function(){return{id:this.id,startId:this.start.id,endId:this.end.id,startAt:this.startAt,endAt:this.endAt,meta:this.meta}}}]),t}();function gt(t){return gt="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},gt(t)}function yt(t){return kt(t)||wt(t)||_t(t)||bt()}function bt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _t(t,e){if(t){if("string"===typeof t)return xt(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)?xt(t,e):void 0}}function wt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function kt(t){if(Array.isArray(t))return xt(t)}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lt(t,e,n){return e&&St(t.prototype,e),n&&St(t,n),t}function Ot(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&At(t,e)}function At(t,e){return At=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},At(t,e)}function Ct(t){var e=jt();return function(){var n,r=Pt(t);if(e){var i=Pt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(t,e){return!e||"object"!==gt(e)&&"function"!==typeof e?Mt(t):e}function Mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Pt(t)}vt(mt,"distance",15);var Rt=function(t){Ot(n,t);var e=Ct(n);function n(t){var r;Et(this,n);var i=t.nodeList,o=void 0===i?[]:i,u=t.linkList,a=void 0===u?[]:u,s=t.origin;return r=e.call(this),r.nodeList=[],r.linkList=[],r.origin=s,r.mouseonLink=null,r.mouseonNode=null,r.graphSelected=!1,r.maskBoundingRect={},r.initNode(o),r.initLink(a),r}return Lt(n,[{key:"pointMap",value:function(){var t={};return this.nodeList.forEach((function(e){t[e.id]=e})),t}},{key:"initNode",value:function(t){var e=this;return X(this.nodeList,t.map((function(t){return e.createNode(t)}))),this.nodeList}},{key:"initLink",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=t.startId,i=void 0===r?"":r,o=t.endId,u=void 0===o?"":o,a=t.startAt,s=void 0===a?[0,0]:a,l=t.endAt,c=void 0===l?[0,0]:l,f=t.meta,h=e.pointMap(),d=h[i],p=h[u];d&&p&&n.push(e.createLink({start:d,end:p,meta:f,startAt:s,endAt:c}))})),X(this.linkList,n),this.linkList}},{key:"createNode",value:function(t){return new ot(t,this)}},{key:"createLink",value:function(t){return new mt(t,this)}},{key:"addNode",value:function(t,e){var n=t.constructor===ot?t:this.createNode(t);return this.nodeList.splice(null!==e&&void 0!==e?e:this.nodeList.length,0,n),n}},{key:"addLink",value:function(t){var e=t.constructor===mt?t:this.createLink(t),n=this.linkList.find((function(t){return t.start===e.start&&t.end===e.end}));return n?(n.startAt=e.startAt,n.endAt=e.endAt):e.start&&e.end&&this.linkList.push(e),e}},{key:"removeNode",value:function(t){var e=this,n=this.nodeList.indexOf(t);return this.linkList.filter((function(e){return e.start===t||e.end===t})).forEach((function(t){e.removeLink(t)})),this.nodeList.splice(n,1),t}},{key:"removeLink",value:function(t){var e=this.linkList.indexOf(t);return this.linkList.splice(e,1),this.mouseonLink===t&&(this.mouseonLink=null),t}},{key:"toLastNode",value:function(t){var e=this.nodeList;e.splice.apply(e,[e.length-1,0].concat(yt(e.splice(t,1))))}},{key:"toLastLink",value:function(t){var e=this.linkList;e.splice.apply(e,[e.length-1,0].concat(yt(e.splice(t,1))))}},{key:"toJSON",value:function(){return{nodeList:this.nodeList.map((function(t){return t.toJSON()})),linkList:this.linkList.map((function(t){return t.toJSON()}))}}},{key:"selectAll",value:function(){var t=this.nodeList,e=20;this.maskBoundingRect={top:Math.min.apply(Math,yt(t.map((function(t){return t.center[1]-t.height/2}))))-e,right:Math.max.apply(Math,yt(t.map((function(t){return t.center[0]+t.width/2}))))+e,bottom:Math.max.apply(Math,yt(t.map((function(t){return t.center[1]+t.height/2}))))+e,left:Math.min.apply(Math,yt(t.map((function(t){return t.center[0]-t.width/2}))))-e},this.graphSelected=!0}}]),n}(_),$t=Rt,It=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"super-flow__menu-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"flow__menu-mask",on:{mousemove:function(t){t.stopPropagation(),t.preventDefault()},mousedown:t.close}}),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"super-flow__menu",style:t.style,attrs:{tabindex:"-1"},on:{mousemove:function(t){t.stopPropagation(),t.preventDefault()},contextmenu:function(t){t.preventDefault(),t.stopPropagation()},blur:t.close}},[t._l(t.list,(function(e,r){return[t._l(e,(function(e,i){return n("li",{key:r+"-"+i,staticClass:"super-flow__menu-item",class:{"is-disabled":e.disable},on:{click:function(n){return t.select(e)}}},[t._t("default",[n("span",{staticClass:"super-flow__menu-item-icon"}),n("span",{staticClass:"super-flow__menu-item-content"},[t._v(" "+t._s(e.label)+" ")])],{item:e})],2)})),n("li",{key:r,staticClass:"super-flow__menu-line"})]}))],2)])},Nt=[],zt={props:{graph:Object,visible:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}},position:{type:Array,default:function(){return[0,0]}},source:{type:Object,default:function(){return{}}}},computed:{style:function(){return{left:this.position[0]+"px",top:this.position[1]+"px"}}},methods:{select:function(t){t.disable||(this.$emit("update:visible",!1),t.selected(this.source,B(this.position).minus(this.graph.origin).end))},close:function(t){this.$emit("update:visible",!1)}},watch:{visible:function(){var t=this;this.visible&&this.$nextTick((function(){return t.$el.focus()}))}}},Dt=zt;n("b8fb");function Bt(t,e,n,r,i,o,u,a){var s,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),u?(s=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},l._ssrRegister=s):i&&(s=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var c=l.render;l.render=function(t,e){return s.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:l}}var Wt=Bt(Dt,It,Nt,!1,null,null,null),Ht=Wt.exports,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"super-flow__node",class:{"can-move":t.nodeDrop},style:t.style,attrs:{tabindex:"-1"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.nodeMousedown(e))},mouseenter:t.nodeMouseenter,mouseleave:t.nodeMouseleave,mouseup:t.nodeMouseup,contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.nodeContextmenu(e)}}},[t._t("default",null,{meta:t.node.meta}),t._l(t.direction,(function(e,r){return n("div",{directives:[{name:"show",rawName:"v-show",value:t.output&&t.lineDrop,expression:"output && lineDrop"}],key:r,class:"node-side node-side-"+r,on:{contextmenu:function(t){t.stopPropagation(),t.preventDefault()},mousedown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&0!==n.button?null:(n.preventDefault(),n.stopPropagation(),function(n){return t.sideMousedown(n,e)}(n))}}})}))],2)},Ut=[],Xt={props:{graph:Object,node:Object,index:Number,isMove:Boolean,isTemEdge:Boolean,nodeIntercept:Function,lineDrop:Boolean,nodeDrop:Boolean},data:function(){return{direction:G,output:this.nodeIntercept()}},computed:{style:function(){var t=this.node,e=t.position,n=t.width,r=t.height;return{width:n+"px",height:r+"px",top:e[1]+"px",left:e[0]+"px"}}},methods:{nodeMousedown:function(t){this.graph.toLastNode(this.index),this.$emit("node-mousedown",this.node,A(t))},nodeMouseenter:function(t){this.output=this.nodeIntercept(),this.graph.mouseonNode=this.node,this.isTemEdge&&this.$emit("node-mouseenter",t,this.node,A(t,this.$el))},nodeMouseleave:function(){this.graph.mouseonNode=null,this.isTemEdge&&this.$emit("node-mouseleave")},nodeMouseup:function(){this.isTemEdge&&this.$emit("node-mouseup")},nodeContextmenu:function(t){this.$emit("node-contextmenu",t,this.node)},sideMousedown:function(t){this.$emit("side-mousedown",t,this.node,A(t,this.$el))}}},Yt=Xt,qt=(n("2470"),Bt(Yt,Ft,Ut,!1,null,null,null)),Gt=qt.exports,Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"super-flow__line"},[n("canvas",{ref:"canvas"}),t.hasTextDesc?n("div",{staticClass:"text",style:t.textStyle},[t._t("default",[t._v(t._s(t.link.meta.desc))],{meta:t.link.meta})],2):t._e()])},Jt=[];function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){Qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function te(t,e){return re(t)||ne(t,e)||ue(t,e)||ee()}function ee(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ne(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function re(t){if(Array.isArray(t))return t}function ie(t){return se(t)||ae(t)||ue(t)||oe()}function oe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(t,e){if(t){if("string"===typeof t)return le(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)?le(t,e):void 0}}function ae(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function se(t){if(Array.isArray(t))return le(t)}function le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ce={props:{padding:{type:Number,default:50},linkDesc:[Function,null],linkStyle:[Function,null],linkBaseStyle:Object,index:Number,graph:Object,link:Object,dblclickLink:[Function,null]},data:function(){return{top:0,right:0,bottom:0,left:0,currentPointList:[],currentPathPointList:null,ellipse:{},inText:!1,textStyle:{left:0,top:0}}},mounted:function(){var t=this;this.ctx=this.$refs.canvas.getContext("2d"),this.draw(),this.graph.add("mousemove",this.rootMousemove),this.graph.add("dblclick",this.dblclick),this.$once("hook:beforeDestroy",(function(){t.graph.remove("mousemove",t.rootMousemove),t.graph.remove("dblclick",t.dblclick)}))},computed:{styles:function(){return Object.assign({lineColor:"#5959FF",lineHover:"#000",lineCheck:"red",lineColorMinor:"yellow",textColor:"#fff",textHover:"#000",textCheck:"pink",font:"14px Arial",dotted:!1,lineDash:[4,4],background:"rgba(255,255,255,0.6)"},this.linkBaseStyle)},hasTextDesc:function(){return 0===this.link.meta.desc||!!this.link.meta.desc},inPath:{get:function(){return this.graph.mouseonLink===this.link},set:function(t){t&&!this.graph.mouseonNode?this.graph.mouseonLink=this.link:this.inPath&&(this.graph.mouseonLink=null)}}},methods:{draw:function(){var t=this,e=this.currentPathPointList=this.link.pathPointList,n=e.pointList,r=e.minX,i=e.minY,o=e.maxX,u=e.maxY;this.top=i-this.padding,this.right=o+this.padding,this.bottom=u+this.padding,this.left=r-this.padding,this.currentPointList=n.map((function(e){return[Math.floor(e[0]-t.left),Math.floor(e[1]-t.top)]})),this.changeStyle(),this.initLine()},changeStyle:function(){this.$refs.canvas.width=this.right-this.left,this.$refs.canvas.height=this.bottom-this.top,this.$el.style.top=this.top+"px",this.$el.style.left=this.left+"px"},initLine:function(){if(this.ctx.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.linkStyle){var t=this.linkStyle(this.link);U(t)&&Object.assign(this.styles,t)}var e=this.styles,n=e.lineColor,r=e.lineCheck,i=e.lineColorMinor;if(this.highlight)this.drawLine(r),this.drawDesc(r),this.drawArrow(r),this.$el.style.zIndex="2";else{var o=this.hasTextDesc?n:i;this.drawLine(o),this.drawDesc(o),this.drawArrow(o),this.$el.style.zIndex=this.inPath?"3":this.hasTextDesc?"1":"2"}},drawLine:function(t){if(this.currentPointList.length){var e=2,n=this.ctx;n.lineJoin="round",n.beginPath(),this.inPath?(n.shadowBlur=2,n.shadowColor=t):(n.shadowBlur=0,n.shadowColor="none"),this.styles.dotted&&n.setLineDash(this.styles.lineDash),n.lineWidth=e,n.strokeStyle=t,this.currentPointList.forEach((function(t,e){0===e?n.moveTo.apply(n,ie(t)):n.lineTo.apply(n,ie(t))})),n.stroke(),n.save()}},drawDesc:function(t){var e=this.styles.background,n=this.descPosition(),r=te(n,2),i=r[0],o=r[1];this.textStyle=Zt({left:i+"px",top:o+"px",background:e,color:t,transform:this.setTextCenter()},this.inPath&&{"font-size":"16px"})},drawDesc2:function(t){this.ctx,this.link.meta.desc;var e=this.styles,n=e.font,r=e.background;this.ctx.font=n,this.ctx.textAlign="center",this.ctx.textBaseline="middle";var i=parseInt(n.match(/(\d+px)/g)[0]),o=Math.max(width,i)/2+5,u=this.descPosition(),a=this.ellipse={x:u[0],y:u[1],a:o,b:.8*o},s=a.x,l=a.y;a.a,a.b;this.textStyle={left:s+"px",top:l+"px",background:r,color:t}},setTextCenter:function(){var t=te(this.currentPointList[0],2),e=t[0],n=t[1],r=l.a.last(this.currentPointList),i=te(r,2),o=i[0],u=i[1];return e===o?"translateY(-50%)":n===u?"translateX(-50%)":"none"},linkDescPosition:function(t,e){var n=te(this.currentPointList[0],2),r=n[0],i=n[1],o=!!this.link.startDirection[0],u=this.descPosition(),a=te(u,2),s=a[0],l=a[1];return o?[s,l-e-5]:[r+e+t/2,i-e-5]},descPosition:function(){var t=0,e=0,n=null;return this.currentPointList.reduce((function(e,n){var r=B(e).minus(n).end;return t+=Math.abs(r[0])+Math.abs(r[1]),n})),this.currentPointList.reduce((function(r,i){var o=B(r).minus(i).end,u=Math.abs(o[0])+Math.abs(o[1]),a=e,s=t/2;return e+=u,e>=t/2&&null===n&&(n=r,n=r[0]===i[0]?r[1]<i[1]?B(r).add([0,s-a]).end:B(r).add([0,-(s-a)]).end:r[0]<i[0]?B(r).add([s-a,0]).end:B(r).add([-(s-a),0]).end),i})),n},descIntercept:function(t){var e=this.ctx,n=e.measureText(t).width,r=2*this.padding-10,i="...",o=e.measureText(i).width;if(n<=r||r<=o)return{text:t,width:n};var u=t.length;while(n>=r-o&&u-- >0)t=t.slice(0,u),n=e.measureText(t).width;return{text:t+i,width:r+o}},drawArrow:function(t){var e=4,n=this.currentPointList.length;if(!(n<2)){var r=this.currentPointList[n-2],i=this.currentPointList[n-1],o=this.ctx;o.translate.apply(o,ie(i));var u=Math.atan((i[0]-r[0])/(i[1]-r[1]));o.beginPath(),i[1]-r[1]>=0?o.rotate(-u):o.rotate(Math.PI-u),o.fillStyle=t,o.lineTo(-e,2*-e),o.lineTo(0,-e),o.lineTo(e,2*-e),o.lineTo(0,0),o.closePath(),o.fill(),o.restore()}},isPointInStroke:function(t){var e=A(t,this.$refs.canvas),n=te(e,2),r=n[0],i=n[1];return this.link.isPointInLink([this.left+r,this.top+i],this.currentPathPointList)},rootMousemove:function(t){var e=t.evt;return this.inPath=this.isPointInStroke(e)||this.isInText(e),this.inPath},isInText:function(t){return C(t,this.$el.querySelector(".text"))},dblclick:function(t){var e,n=t.evt;this.isInEllipse(n)&&(null===(e=this.dblclickLink)||void 0===e||e.call(this,this.link,[n.clientX,n.clientY]))},isInEllipse:function(t){var e=this.ellipse,n=e.x,r=e.y,i=e.a,o=e.b,u=A(t,this.$refs.canvas),a=te(u,2),s=a[0],l=a[1],c=s-n,f=l-r;return c*c/(i*i)+f*f/(o*o)<=1}},watch:{"link.pathPointList":function(){this.draw()},inPath:function(){this.initLine()},"link.meta":{deep:!0,handler:function(t){var e=t.error;this.highlight=e,this.draw(),this.$emit("changeLinkStyle")}},linkBaseStyle:{deep:!0,handler:function(){this.draw()}},inText:function(t){}}},fe=ce,he=(n("7e2d"),Bt(fe,Vt,Jt,!1,null,null,null)),de=he.exports,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("canvas",{ref:"markLine",staticClass:"super-flow__mark-line"})},ve=[];function me(t){return be(t)||ye(t)||ke(t)||ge()}function ge(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ye(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function be(t){if(Array.isArray(t))return xe(t)}function _e(t,e){return Se(t)||Ee(t,e)||ke(t,e)||we()}function we(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ke(t,e){if(t){if("string"===typeof t)return xe(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)?xe(t,e):void 0}}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ee(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function Se(t){if(Array.isArray(t))return t}var Le={props:{width:{type:Number,default:0},height:{type:Number,default:0},markLine:Array,markColor:String},mounted:function(){this.$refs.markLine.height=this.height,this.$refs.markLine.width=this.width,this.draw()},methods:{draw:function(){var t=this.$el.getContext("2d");t.clearRect(0,0,this.width,this.height),t.strokeStyle=this.markColor,t.lineWidth=1,t.setLineDash([4,2]),this.markLine.forEach((function(e){var n=_e(e,2),r=n[0],i=n[1];t.beginPath(),t.moveTo.apply(t,me(r)),t.lineTo.apply(t,me(i)),t.stroke()}))}},watch:{markLine:function(){this.draw()}}},Oe=Le,Ae=(n("bce9"),Bt(Oe,pe,ve,!1,null,null,null)),Ce=Ae.exports;function Te(t,e){if(null==t)return{};var n,r,i=Me(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Me(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Re(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $e(t){return ze(t)||Ne(t)||We(t)||Ie()}function Ie(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ne(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ze(t){if(Array.isArray(t))return He(t)}function De(t,e){return Ue(t)||Fe(t,e)||We(t,e)||Be()}function Be(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function We(t,e){if(t){if("string"===typeof t)return He(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)?He(t,e):void 0}}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fe(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function Ue(t){if(Array.isArray(t))return t}var Xe={name:"simple-flow-chart",props:{draggable:{type:Boolean,default:!0},linkAddable:{type:Boolean,default:!0},linkEditable:{type:Boolean,default:!0},hasMarkLine:{type:Boolean,default:!0},linkDesc:{type:[Function,null],default:null},linkStyle:{type:[Function,null],default:null},linkBaseStyle:{type:Object,default:function(){return{}}},markLineColor:{type:String,default:"#55abfc"},origin:{type:Array,default:function(){return[0,0]}},nodeList:{type:Array,default:function(){return[]}},linkList:{type:Array,default:function(){return[]}},graphMenu:{type:Array,default:function(){return[]}},nodeMenu:{type:Array,default:function(){return[]}},linkMenu:{type:Array,default:function(){return[]}},linkPadding:{type:Number,default:50},enterIntercept:{type:Function,default:function(){return!0}},outputIntercept:{type:Function,default:function(){return!0}},dblclickLink:[Function,null],maxTotal:[Number,String],range:{type:Array,default:function(){return["start","end"]}},draggableMultiple:Boolean},data:function(){return{graph:new $t({width:this.width,height:this.height,origin:this.origin}),menuConf:{visible:!1,position:[0,0],source:null,list:[]},moveNodeConf:{isMove:!1,node:null,offset:null,verticalList:[],horizontalList:[],markLine:[]},moveAllConf:{isMove:!1,downPosition:[0,0]},temEdgeConf:{visible:!1,link:null},loaded:!1,clientWidth:0,clientHeight:0,templateData:""}},components:{GraphMenu:Ht,GraphNode:Gt,GraphLine:de,MarkLine:Ce},computed:{maskStyle:function(){var t=this.graph.maskBoundingRect,e=t.top,n=t.right,r=t.bottom,i=t.left;return{width:"".concat(n-i,"px"),height:"".concat(r-e,"px"),top:"".concat(e+this.graph.origin[1],"px"),left:"".concat(i+this.graph.origin[0],"px")}},getBeyondLimitPath:function(){var t=this,e=[],n=this.graph.linkList,r=De(this.range,2),i=r[0],o=r[1],u=function r(i){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=n.filter((function(t){return t.start.id===i}));if(a&&s>Number(t.maxTotal))return e.push.apply(e,$e(u));l.includes(i)||c.forEach((function(t){var e=$e(u),n=s;e.push(t.id),n+=Number(t.meta.desc),r(t.end.id,e,t.end.id===o,n,[].concat($e(l),[i]))}))};return u(i),e},rangeNodeIndex:function(){var t=De(this.range,2),e=t[0],n=t[1],r=l.a.findIndex(this.graph.nodeList,{id:e}),i=l.a.findIndex(this.graph.nodeList,{id:n});return[r,i+1]}},mounted:function(){var t=this;document.addEventListener("mouseup",this.docMouseup),document.addEventListener("mousemove",this.docMousemove),document.addEventListener("dblclick",this.dblclick),document.addEventListener("dragover",(function(t){return t.preventDefault()})),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("mouseup",t.docMouseup),document.removeEventListener("mousemove",t.docMousemove),document.removeEventListener("dblclick",t.dblclick)})),this.$nextTick((function(){t.graph.initNode(t.nodeList),t.graph.initLink(t.linkList)}))},methods:{initMenu:function(t,e){return t.map((function(t){return t.map((function(t){var n,r;return n=H(t.disable)?t.disable(e):F(t.disable)?t.disable:Boolean(t.disable),r=H(t.hidden)?t.hidden(e):F(t.hidden)?t.hidden:Boolean(t.hidden),Pe(Pe({},t),{},{disable:n,hidden:r})})).filter((function(t){return!t.hidden}))})).filter((function(t){return t.length}))},showContextMenu:function(t,e,n){e.length&&(this.$set(this.menuConf,"position",t),this.$set(this.menuConf,"list",e),this.$set(this.menuConf,"source",n),this.menuConf.visible=!0)},dblclick:function(t){this.graph.dispatch({type:"dblclick",evt:t})},docMouseup:function(t){this.moveNodeConf.isMove&&(t.stopPropagation(),t.preventDefault()),this.moveNodeConf.isMove=!1,this.moveNodeConf.node=null,this.moveNodeConf.offset=null,X(this.moveNodeConf.markLine,[]),this.temEdgeConf.visible=!1,this.temEdgeConf.link=null,this.moveAllConf.isMove=!1,this.graph.maskBoundingLastRect=null,this.setSelectedNodeLastCenter(!0)},docMousemove:function(t){this.moveNodeConf.isMove?this.moveNode(t):this.temEdgeConf.visible?this.moveTemEdge(t):this.graph.graphSelected?this.moveSelectedNode(t):this.linkEditable&&this.graph.dispatch({type:"mousemove",evt:t},!0)},moveNode:function(t){var e=this,n=10,r=this.moveNodeConf,i=this.graph.origin,o=B(r.offset).differ(A(t,this.$el,this.$refs["flow-canvas"])).minus(i).add([r.node.width/2,r.node.height/2]).end;if(this.hasMarkLine){var u=[];r.verticalList.some((function(t){var r=o[0],a=t-n<r&&t+n>r;return a&&(o[0]=t,t=Math.floor(t),t+=i[0],t+=t%1===0?.5:0,u.push([[t,0],[t,e.clientHeight]])),a})),r.horizontalList.some((function(t){var r=o[1],a=t-n<r&&t+n>r;return a&&(o[1]=t,t=Math.floor(t),t+=i[1],t+=t%1===0?.5:0,u.push([[0,t],[e.clientWidth,t]])),a})),X(r.markLine,u)}r.node.center=o},moveTemEdge:function(t){this.temEdgeConf.link.movePosition=A(t,this.$el,this.$refs["flow-canvas"])},moveSelectedNode:function(t){if(this.moveAllConf.isMove){var e=this.graph.maskBoundingLastRect,n=e.left,r=e.top,i=e.bottom,o=e.right,u=De(B(this.moveAllConf.downPosition).differ([t.clientX,t.clientY]).end,2),a=u[0],s=u[1];this.graph.maskBoundingRect={left:n+a,top:r+s,bottom:i+s,right:o+a},this.selectedNodeList.forEach((function(t){return t.center=B(t.lastCenter).add([a,s]).end}))}},contextmenu:function(t){var e,n,r=this.graph.mouseonLink,i=A(t,null,this.$refs["flow-canvas"]);r?(e=this.initMenu(this.linkMenu,r),n=r):(r&&(this.graph.mouseonLink=null),e=this.initMenu(this.graphMenu,this.graph),n=this.graph),this.showContextMenu(i,e,n)},nodeMousedown:function(t,e){if(this.draggable){this.clientWidth=this.$el.clientWidth,this.clientHeight=this.$el.clientHeight;var n=this.moveNodeConf.verticalList,r=this.moveNodeConf.horizontalList,i=this.graph.nodeList.filter((function(e){return e!==t})).map((function(t){return t.center}));X(n,$e(new Set(i.map((function(t){return t[0]})))).sort((function(t,e){return t-e}))),X(r,$e(new Set(i.map((function(t){return t[1]})))).sort((function(t,e){return t-e}))),this.moveNodeConf.isMove=!0,this.moveNodeConf.node=t,this.moveNodeConf.offset=e}},nodeMouseenter:function(t,e,n){var r=this.temEdgeConf.link;this.enterIntercept(r.start,e,this.graph)&&(r.end=e,r.endAt=n)},nodeMouseleave:function(){this.temEdgeConf.link.end=null},nodeMouseup:function(){this.graph.addLink(this.temEdgeConf.link)},nodeContextmenu:function(t,e){var n=this.initMenu(this.nodeMenu,e);n.length&&(this.$set(this.menuConf,"position",A(t,this.$el,this.$refs["flow-canvas"])),this.$set(this.menuConf,"list",n),this.$set(this.menuConf,"source",e),this.menuConf.visible=!0)},sideMousedown:function(t,e,n){if(this.linkAddable){var r=this.graph.createLink({start:e,startAt:n});r.movePosition=A(t,this.$el,this.$refs["flow-canvas"]),this.$set(this.temEdgeConf,"link",r),this.temEdgeConf.visible=!0}},nodeIntercept:function(t){var e=this;return function(){return e.outputIntercept(t,e.graph)}},menuItemSelect:function(){this.menuConf.visible=!1},selectAllMaskMouseDown:function(t){this.moveAllConf.isMove=!0,this.setSelectedNodeLastCenter(),this.moveAllConf.downPosition=[t.clientX,t.clientY],this.graph.maskBoundingLastRect=Pe({},this.graph.maskBoundingRect)},selectedAll:function(){this.graph.selectAll()},toJSON:function(){return this.graph.toJSON()},getMouseCoordinate:function(t,e){var n=A({clientX:t,clientY:e},this.$el,this.$refs["flow-canvas"]);return B(n).minus(this.graph.origin).end},addNode:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"line",n=arguments.length>2?arguments[2]:void 0;return"line"===e?this.graph.addNode(t,n):this.updateFishBoneNode(t,n)},updateFishBoneNode:function(t,e){var n=this.toJSON(),r=n.nodeList;return t&&r.splice(e,0,t),this.addFishBoneTemplate(r),t},changeLinkStyle:function(){var t=this;this.graph.linkList.forEach((function(e){return t.$set(e.meta,"error",t.getBeyondLimitPath.includes(e.id))}))},addNodeIfNeed:function(t,e){if(C(t,this.$el)){var n=this.getMouseCoordinate(t.clientX-e.width/2,t.clientY-e.height/2);return this.addNode(Pe(Pe({},e),{},{id:e.id,meta:e,coordinate:n}))}},addTemplate:function(t){var e=100,n=t.map((function(t,n){return Pe(Pe({},t),{},{meta:t,coordinate:[50+200*n,e+120]})})),r=n.map((function(t,e){var r,i=t.id,o=null===(r=n[e+1])||void 0===r?void 0:r.id;return{startId:i,endId:o,startAt:[120,20],endAt:[0,20]}}));this.initTemplate({nodeList:n,linkList:r})},addFishBoneTemplate:function(t){var e=250,n=50,r=100,i=t.map((function(t,i){var o=t.meta,u=Te(t,["meta"]),a=["start","end"].includes(u.id)?0:r;return Pe(Pe({},u),{},{meta:Object.assign({},o,u),coordinate:[n+150*i,i%2?e-a:e+a]})})),o=i.reduce((function(t,e,n){var r,o=e.id,u=e.width,a=e.height,s=null===(r=i[n+1])||void 0===r?void 0:r.id,l=t[n-1],c="start"===o?[u,a/2]:null===l||void 0===l?void 0:l.endAt,f=n%2?[u/2,0]:[u/2,a];return t.push({startId:o,endId:s,startAt:c,endAt:"end"===s?[0,a/2]:f}),t}),[]);this.initTemplate({nodeList:i,linkList:o})},canvasMousedown:function(t){this.$emit("canvasMousedown",t),this.draggableMultiple&&(this.mousedownCoordinate=t,this.graph.graphSelected=!1)},canvasMousemove:function(t){this.$emit("canvasMousemove",t),this.selectNode(t)},canvasMouseup:function(t){this.$emit("canvasMouseup",t),this.mousedownCoordinate=null},selectNode:function(t){var e=this;this.mousedownCoordinate&&(this.setMaskBoundingClientRect(t),this.graph.graphSelected=!0,this.selectedNodeList=this.graph.nodeList.filter((function(t){var n=t.coordinate,r=t.width,i=t.height,o=De(n,2),u=o[0],a=o[1],s={left:u,top:a,bottom:a+i,right:u+r};return Y(e.graph.maskBoundingRect,s)})))},setSelectedNodeLastCenter:function(t){var e;null===(e=this.selectedNodeList)||void 0===e||e.forEach((function(e){e.lastCenter=t?null:$e(e.center)}))},setMaskBoundingClientRect:function(t){var e=t.clientX,n=t.clientY,r=this.mousedownCoordinate,i=r.clientX,o=r.clientY,u=this.getMouseCoordinate(i,o),a=De(u,2),s=a[0],l=a[1],c=Math.abs(e-i),f=Math.abs(n-o);e>=i&&n<o?this.graph.maskBoundingRect={left:s,top:l-f,bottom:l,right:s+c}:e<i&&n<o?this.graph.maskBoundingRect={left:s-c,top:l-f,bottom:l,right:s}:e<i&&n>=o?this.graph.maskBoundingRect={left:s-c,top:l,bottom:l+f,right:s}:e>=i&&n>=o&&(this.graph.maskBoundingRect={left:s,top:l,bottom:l+f,right:s+c})},initTemplate:function(t){var e=t.nodeList,n=t.linkList;this.graph.initNode(e),this.graph.initLink(n)},saveFlowChart:function(){},isNodeInRange:function(t){var e=l.a.findIndex(this.graph.nodeList,{id:t});return l.a.inRange.apply(l.a,[e].concat($e(this.rangeNodeIndex)))}},watch:{"graph.mouseonLink":function(){this.graph.mouseonLink?document.body.style.cursor="pointer":document.body.style.cursor=""},origin:function(){this.graph.origin=this.origin||[]},nodeList:function(){this.graph.initNode(this.nodeList)},linkList:function(){this.graph.initLink(this.linkList)},"graph.linkList":function(){2===this.range.length&&this.$nextTick(this.changeLinkStyle)},range:function(){2===this.range.length&&this.changeLinkStyle()}}},Ye=Xe,qe=(n("ddde"),Bt(Ye,u,a,!1,null,"32e883dc",null)),Ge=qe.exports,Ve=n("1881"),Je=n.n(Ve),Ke=n("4eb5"),Ze=n.n(Ke),Qe=function(t){t.component(Ge.name,Ge),t.use(Je.a).use(Ze.a)};"undefined"!==typeof window&&window.Vue&&Qe(window.Vue);var tn={install:Qe};e["default"]=tn}})}));
16
+ !function(e,n){t.exports=n()}(0,(function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return v}});e=n(279);var r=n.n(e),i=(e=n(370),n.n(e)),o=(e=n(817),n.n(e));function u(t){return(u="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})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var s=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}var e,n,r;return e=t,(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&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:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return 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[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=o()(e),this.copyText(),this.removeFake()}},{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=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{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(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&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"!==u(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}}])&&a(e.prototype,n),r&&a(e,r),t}();function l(t){return(l="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})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var t,r=d(e);return t=n?(t=d(this).constructor,Reflect.construct(r,arguments,t)):r.apply(this,arguments),r=this,!(t=t)||"object"!==l(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):t}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var v=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,r());var t,e,n,o=h(u);function u(t,e){var n;return function(t){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=u,n=[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e=(t="string"==typeof t?[t]:t,!!document.queryCommandSupported);return t.forEach((function(t){e=e&&!!document.queryCommandSupported(t)})),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&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"===l(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=i()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return p("action",t)}},{key:"defaultTarget",value:function(t){if(t=p("target",t),t)return document.querySelector(t)}},{key:"defaultText",value:function(t){return p("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&c(t.prototype,e),n&&c(t,n),u}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function i(t,e,n,i,o){var u=function(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,u,o),{destroy:function(){t.removeEventListener(n,u,o)}}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return l=e,c=n,(s=t).addEventListener(l,c),{destroy:function(){s.removeEventListener(l,c)}};if(r.nodeList(t))return o=t,u=e,a=n,Array.prototype.forEach.call(o,(function(t){t.addEventListener(u,a)})),{destroy:function(){Array.prototype.forEach.call(o,(function(t){t.removeEventListener(u,a)}))}};if(r.string(t))return t=t,e=e,n=n,i(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,u,a,s,l,c}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,u=r.length;o<u;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(134).default;function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var e,n}))},"7e2d":function(t,e,n){"use strict";n("5fa5")},8875:function(t,e,n){var r,i,o;(function(n,u){i=[],r=u,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){if(document.currentScript)return document.currentScript;try{throw new Error}catch(f){var t,e,n,r=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,o=r.exec(f.stack)||i.exec(f.stack),u=o&&o[1]||!1,a=o&&o[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");u===s&&(t=document.documentElement.outerHTML,e=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),n=t.replace(e,"$1").trim());for(var c=0;c<l.length;c++){if("interactive"===l[c].readyState)return l[c];if(l[c].src===u)return l[c];if(u===s&&l[c].innerHTML&&l[c].innerHTML.trim()===n)return l[c]}return null}}return t}))},"95a9":function(t,e,n){},a733:function(t,e,n){},b8fb:function(t,e,n){"use strict";n("a733")},bce9:function(t,e,n){"use strict";n("5ebe")},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"flow-canvas",staticClass:"simple-flow-chart",on:{contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.contextmenu(e)},mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:t.canvasMousedown(e)},mousemove:t.canvasMousemove,mouseup:t.canvasMouseup}},[t.temEdgeConf.visible?n("graph-line",{attrs:{padding:t.linkPadding,graph:t.graph,link:t.temEdgeConf.link,"link-base-style":t.linkBaseStyle,"link-desc":t.linkDesc,"link-style":t.linkStyle}}):t._e(),t._l(t.graph.linkList,(function(e,r){return n("graph-line",{key:e.key,attrs:{index:r,padding:t.linkPadding,graph:t.graph,link:e,"link-base-style":t.linkBaseStyle,"link-desc":t.linkDesc,"link-style":t.linkStyle,dblclickLink:t.dblclickLink,el:t.el},on:{changeLinkStyle:t.changeLinkStyle},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.meta;return[t._t("desc",null,{meta:n})]}}],null,!0)})})),t.moveNodeConf.isMove&&t.hasMarkLine?n("mark-line",{attrs:{width:t.clientWidth,height:t.clientHeight,"mark-color":t.markLineColor,markLine:t.moveNodeConf.markLine}}):t._e(),t._l(t.graph.nodeList,(function(e,r){return n("graph-node",{key:e.key,attrs:{index:r,node:e,graph:t.graph,"is-move":e===t.moveNodeConf.node,"is-tem-edge":t.temEdgeConf.visible,"node-intercept":t.nodeIntercept(e),"line-drop":t.linkAddable,"node-drop":t.draggable},on:{"node-mousedown":t.nodeMousedown,"node-mouseenter":t.nodeMouseenter,"node-mouseleave":t.nodeMouseleave,"node-mouseup":t.nodeMouseup,"side-mousedown":t.sideMousedown,"node-contextmenu":t.nodeContextmenu},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.meta;return[t._t("node",null,{meta:n})]}}],null,!0)})})),n("graph-menu",{attrs:{visible:t.menuConf.visible,graph:t.graph,position:t.menuConf.position,list:t.menuConf.list,source:t.menuConf.source},on:{"update:visible":function(e){return t.$set(t.menuConf,"visible",e)}},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.item;return[t._t("menuItem",null,{item:n})]}}],null,!0)}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.graph.graphSelected,expression:"graph.graphSelected"}],ref:"selectAllMask",staticClass:"select-all__mask",style:t.maskStyle,attrs:{tabindex:"-1"},on:{mousedown:function(e){return e.stopPropagation(),t.selectAllMaskMouseDown(e)},contextmenu:function(t){t.preventDefault(),t.stopPropagation()}}}),n("modal",{attrs:{name:"templateModal",height:500}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.templateData,expression:"templateData"}],staticClass:"template-data",domProps:{value:t.templateData},on:{input:function(e){e.target.composing||(t.templateData=e.target.value)}}}),n("button",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.templateData,expression:"templateData",arg:"copy"}]},[t._v("复制")])])],2)},a=[],s=n("2ef0"),l=n.n(s);function c(t){return p(t)||d(t)||h(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return v(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)?v(t,e):void 0}}function d(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function p(t){if(Array.isArray(t))return v(t)}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var b,_=function(){function t(){m(this,t),this.listeners={}}return y(t,[{key:"add",value:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"remove",value:function(t,e){if(t in this.listeners)for(var n=this.listeners[t],r=0,i=n.length;r<i;r++)if(n[r]===e)return n.splice(r,1),this.remove(t,e)}},{key:"dispatch",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.type in this.listeners){var r=this.listeners[t.type];t.target=this,n?r.some((function(n,i){var o=n.call(e,t);return o&&r.unshift.apply(r,c(r.splice(i,1))),o})):r.forEach((function(n){return n.call(e,t)}))}}}]),t}();function w(t){return S(t)||E(t)||x(t)||k()}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t,e){if(t){if("string"===typeof t)return L(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)?L(t,e):void 0}}function E(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function S(t){if(Array.isArray(t))return L(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function O(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=n.length,i=[],o=16,u=0;u<o;u++)i[u]=n[0|Math.random()*r];return t+i.join("")+e}function A(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.clientX,i=t.clientY,o=t.currentTarget,u=e||o,a=u.getBoundingClientRect(),s=a.left,l=a.top;return[r-s,i-l+((n||{}).scrollTop||0)]}function C(t,e){var n=t.clientX,r=t.clientY;if(e){var i=e.getBoundingClientRect(),o=i.top,u=i.right,a=i.bottom,s=i.left;return o<r&&u>n&&a>r&&s<n}}function T(t,e){return[t[0]+e[0],t[1]+e[1]]}function M(t,e){return[t[0]*e,t[1]*e]}function j(t,e){return[e[0]-t[0],e[1]-t[1]]}function P(t,e){return[t[0]-e[0],t[1]-e[1]]}function R(t,e){return t[0]*e[0]+t[1]*e[1]}function $(t,e){return t[0]*e[1]-t[1]*e[0]}function I(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t){return Math.round(180/Math.PI*Math.atan2(t[1],t[0]))+180}function D(t,e){return t[0]*e[1]-t[1]*e[0]===0}function B(t){var e={add:T,multiply:M,differ:j,minus:P,dotProduct:R,cross:$,unitVector:I,equals:N,angle:z,parallel:D},n={};return Object.keys(e).forEach((function(r){Object.defineProperty(n,r,{get:function(){return function(i){return t=e[r](t,i),n}}})})),Object.defineProperty(n,"end",{get:function(){return t}}),n}function W(t){return Object.prototype.toString.call(t).slice(8,-1).toLocaleLowerCase()}function H(t){return"function"===W(t)}function F(t){return"boolean"===W(t)}function U(t){return"object"===W(t)}function X(t,e){t.splice.apply(t,[0,t.length].concat(w(e)))}function Y(t,e){var n=e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom;return!n}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G={top:1,right:2,bottom:3,left:4},V=(b={},q(b,G.top,[0,-1]),q(b,G.right,[1,0]),q(b,G.bottom,[0,1]),q(b,G.left,[-1,0]),b);function J(t){return tt(t)||Q(t)||Z(t)||K()}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(t,e){if(t){if("string"===typeof t)return et(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)?et(t,e):void 0}}function Q(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function tt(t){if(Array.isArray(t))return et(t)}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e,n){return e&&rt(t.prototype,e),n&&rt(t,n),t}var ot=function(){function t(e,n){nt(this,t);var r=e.id,i=void 0===r?O("node"):r,o=e.width,u=void 0===o?180:o,a=e.height,s=void 0===a?100:a,l=e.coordinate,c=void 0===l?[0,0]:l,f=e.meta,h=void 0===f?{}:f;this.key=O("node"),this.graph=n,this.id=i,this.coordinate=J(c),this.meta=h,this.width=u,this.height=s}return it(t,[{key:"position",get:function(){return B(this.coordinate).add(this.graph.origin).end},set:function(t){this.coordinate=B(t).minus(this.graph.origin).end}},{key:"center",get:function(){return B(this.coordinate).add([this.width/2,this.height/2]).end},set:function(t){this.coordinate=B(t).minus([this.width/2,this.height/2]).end}},{key:"width",get:function(){return this._width},set:function(t){t=Math.floor(t),this._width=t>50?t:50,this.angle()}},{key:"height",get:function(){return this._height},set:function(t){t=Math.floor(t),this._height=t>20?t:20,this.angle()}},{key:"angle",value:function(){var t=this.width/2,e=this.height/2,n=[0,0],r=B(n).minus([t,e]).angle().end,i=B(n).add([t,0]).minus([0,e]).angle().end,o=B(n).add([t,e]).angle().end,u=B(n).add([0,e]).minus([t,0]).angle().end;this.angleList=[r,i,o,u]}},{key:"relative",value:function(t){var e=B(t).minus([this.width/2,this.height/2]).angle().end,n=this.angleList,r=[G.top,G.right,G.bottom,G.left],i=G.left;return n.reduce((function(t,n,o){return e>=t&&e<n&&(i=r[o-1]),n})),{position:this.fixOffset(t,i),direction:V[i]}}},{key:"fixOffset",value:function(t,e){switch(e){case G.top:t[0]=this.width/2,t[1]=0;break;case G.right:t[0]=this.width,t[1]=this.height/2;break;case G.bottom:t[0]=this.width/2,t[1]=this.height;break;case G.left:default:t[0]=0,t[1]=this.height/2;break}return t}},{key:"remove",value:function(){return this.graph.removeNode(this)}},{key:"toJSON",value:function(){return{id:this.id,width:this.width,height:this.height,coordinate:J(this.coordinate),meta:this.meta}}}]),t}();function ut(t,e){return ft(t)||ct(t,e)||st(t,e)||at()}function at(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function st(t,e){if(t){if("string"===typeof t)return lt(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)?lt(t,e):void 0}}function lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ct(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function ft(t){if(Array.isArray(t))return t}function ht(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pt(t,e,n){return e&&dt(t.prototype,e),n&&dt(t,n),t}function vt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mt=function(){function t(e,n){ht(this,t);var r=e.id,i=void 0===r?O("link"):r,o=e.start,u=e.end,a=void 0===u?null:u,s=e.startAt,l=void 0===s?[0,0]:s,c=e.endAt,f=void 0===c?[0,0]:c,h=e.meta,d=void 0===h?{desc:0}:h;this.key=O("link"),this.id=i,this.graph=n,this.start=o,this.meta=d,this.end=a,this.startDirection=V[G.top],this.endDirection=V[G.top],this.startAt=l,this.endAt=f}return pt(t,[{key:"end",get:function(){return this._end},set:function(t){if(this.start===t)return!1;this._end=t}},{key:"startAt",get:function(){return this._startAt},set:function(t){var e=this.start.relative(t);this._startAt=e.position,this.startDirection=e.direction}},{key:"endAt",get:function(){return this._endAt},set:function(t){if(this.end){var e=this.end.relative(t);this._endAt=e.position,this.endDirection=e.direction}else this._endAt=t}},{key:"movePosition",get:function(){return this._movePosition},set:function(t){if(this._movePosition=t,!this.end){var e=this.start.relative(B(t).minus(this.graph.origin).minus(this.start.coordinate).end);this.endDirection=B(e.direction).multiply(-1).end}}},{key:"pathPointList",get:function(){var t=this.coordinateList(),e=[],n=[];return t.forEach((function(t){e.push(t[0]),n.push(t[1])})),{pointList:t,xList:e,yList:n,minX:Math.min.apply(Math,e),maxX:Math.max.apply(Math,e),minY:Math.min.apply(Math,n),maxY:Math.max.apply(Math,n)}}},{key:"startCoordinate",value:function(){return B(this.start.position).add(this.startAt).end}},{key:"endCoordinate",value:function(){return this.end?B(this.end.position).add(this.endAt).end:this.movePosition}},{key:"coordinateList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,n=this.startCoordinate(),r=this.endCoordinate(),i=this.startDirection,o=this.endDirection,u=B(i).multiply(t.distance).add(n).end,a=B(o).multiply(t.distance).add(r).end;o=B(o).multiply(-1).end;var s=[a[0]-u[0],0],l=[0,a[1]-u[1]],c=this.pathDirection(l,s,i),f=this.pathDirection(l,s,o),h=B(c).dotProduct(f).end>0?2:1,d=f===s?l:s,p=[];if(p.push(n,u),1===h){var v=B(u).add(c).end,m=B(v).add(f).end;p.push(v,m)}else{var g=B(c).multiply(e).add(u).end,y=B(g).add(d).end,b=B(f).multiply(1-e).add(y).end;p.push(g,y,b)}return p.push(r),p}},{key:"pathDirection",value:function(t,e,n){return B(e).parallel(n).end?B(e).dotProduct(n).end>0?e:t:B(t).dotProduct(n).end>0?t:e}},{key:"isPointInLink",value:function(t,e){var n=e||this.pathPointList,r=n.pointList,i=n.minX,o=n.minY,u=n.maxX,a=n.maxY,s=5;if(t[0]<i-s||t[0]>u+s||t[1]<o-s||t[1]>a+s)return!1;for(var l=0;l<r.length-2;l++){var c=r[l],f=r[l+1],h=Math.min(c[1],f[1])-s,d=Math.max(c[0],f[0])+s,p=Math.max(c[1],f[1])+s,v=Math.min(c[0],f[0])-s,m=ut(t,2),g=m[0],y=m[1];if(g>v&&g<d&&y>h&&y<p)return!0}return!1}},{key:"remove",value:function(){return this.graph.removeLink(this)}},{key:"toJSON",value:function(){return{id:this.id,startId:this.start.id,endId:this.end.id,startAt:this.startAt,endAt:this.endAt,meta:this.meta}}}]),t}();function gt(t){return gt="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},gt(t)}function yt(t){return kt(t)||wt(t)||_t(t)||bt()}function bt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _t(t,e){if(t){if("string"===typeof t)return xt(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)?xt(t,e):void 0}}function wt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function kt(t){if(Array.isArray(t))return xt(t)}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lt(t,e,n){return e&&St(t.prototype,e),n&&St(t,n),t}function Ot(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&At(t,e)}function At(t,e){return At=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},At(t,e)}function Ct(t){var e=jt();return function(){var n,r=Pt(t);if(e){var i=Pt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(t,e){return!e||"object"!==gt(e)&&"function"!==typeof e?Mt(t):e}function Mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Pt(t)}vt(mt,"distance",15);var Rt=function(t){Ot(n,t);var e=Ct(n);function n(t){var r;Et(this,n);var i=t.nodeList,o=void 0===i?[]:i,u=t.linkList,a=void 0===u?[]:u,s=t.origin;return r=e.call(this),r.nodeList=[],r.linkList=[],r.origin=s,r.mouseonLink=null,r.mouseonNode=null,r.graphSelected=!1,r.maskBoundingRect={},r.initNode(o),r.initLink(a),r}return Lt(n,[{key:"pointMap",value:function(){var t={};return this.nodeList.forEach((function(e){t[e.id]=e})),t}},{key:"initNode",value:function(t){var e=this;return X(this.nodeList,t.map((function(t){return e.createNode(t)}))),this.nodeList}},{key:"initLink",value:function(t){var e=this,n=[];return t.forEach((function(t){var r=t.startId,i=void 0===r?"":r,o=t.endId,u=void 0===o?"":o,a=t.startAt,s=void 0===a?[0,0]:a,l=t.endAt,c=void 0===l?[0,0]:l,f=t.meta,h=e.pointMap(),d=h[i],p=h[u];d&&p&&n.push(e.createLink({start:d,end:p,meta:f,startAt:s,endAt:c}))})),X(this.linkList,n),this.linkList}},{key:"createNode",value:function(t){return new ot(t,this)}},{key:"createLink",value:function(t){return new mt(t,this)}},{key:"addNode",value:function(t,e){var n=t.constructor===ot?t:this.createNode(t);return this.nodeList.splice(null!==e&&void 0!==e?e:this.nodeList.length,0,n),n}},{key:"addLink",value:function(t){var e=t.constructor===mt?t:this.createLink(t),n=this.linkList.find((function(t){return t.start===e.start&&t.end===e.end}));return n?(n.startAt=e.startAt,n.endAt=e.endAt):e.start&&e.end&&this.linkList.push(e),e}},{key:"removeNode",value:function(t){var e=this,n=this.nodeList.indexOf(t);return this.linkList.filter((function(e){return e.start===t||e.end===t})).forEach((function(t){e.removeLink(t)})),this.nodeList.splice(n,1),t}},{key:"removeLink",value:function(t){var e=this.linkList.indexOf(t);return this.linkList.splice(e,1),this.mouseonLink===t&&(this.mouseonLink=null),t}},{key:"toLastNode",value:function(t){var e=this.nodeList;e.splice.apply(e,[e.length-1,0].concat(yt(e.splice(t,1))))}},{key:"toLastLink",value:function(t){var e=this.linkList;e.splice.apply(e,[e.length-1,0].concat(yt(e.splice(t,1))))}},{key:"toJSON",value:function(){return{nodeList:this.nodeList.map((function(t){return t.toJSON()})),linkList:this.linkList.map((function(t){return t.toJSON()}))}}},{key:"selectAll",value:function(){var t=this.nodeList,e=20;this.maskBoundingRect={top:Math.min.apply(Math,yt(t.map((function(t){return t.center[1]-t.height/2}))))-e,right:Math.max.apply(Math,yt(t.map((function(t){return t.center[0]+t.width/2}))))+e,bottom:Math.max.apply(Math,yt(t.map((function(t){return t.center[1]+t.height/2}))))+e,left:Math.min.apply(Math,yt(t.map((function(t){return t.center[0]-t.width/2}))))-e},this.graphSelected=!0}}]),n}(_),$t=Rt,It=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"super-flow__menu-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"flow__menu-mask",on:{mousemove:function(t){t.stopPropagation(),t.preventDefault()},mousedown:t.close}}),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"super-flow__menu",style:t.style,attrs:{tabindex:"-1"},on:{mousemove:function(t){t.stopPropagation(),t.preventDefault()},contextmenu:function(t){t.preventDefault(),t.stopPropagation()},blur:t.close}},[t._l(t.list,(function(e,r){return[t._l(e,(function(e,i){return n("li",{key:r+"-"+i,staticClass:"super-flow__menu-item",class:{"is-disabled":e.disable},on:{click:function(n){return t.select(e)}}},[t._t("default",[n("span",{staticClass:"super-flow__menu-item-icon"}),n("span",{staticClass:"super-flow__menu-item-content"},[t._v(" "+t._s(e.label)+" ")])],{item:e})],2)})),n("li",{key:r,staticClass:"super-flow__menu-line"})]}))],2)])},Nt=[],zt={props:{graph:Object,visible:{type:Boolean,default:!1},list:{type:Array,default:function(){return[]}},position:{type:Array,default:function(){return[0,0]}},source:{type:Object,default:function(){return{}}}},computed:{style:function(){return{left:this.position[0]+"px",top:this.position[1]+"px"}}},methods:{select:function(t){t.disable||(this.$emit("update:visible",!1),t.selected(this.source,B(this.position).minus(this.graph.origin).end))},close:function(t){this.$emit("update:visible",!1)}},watch:{visible:function(){var t=this;this.visible&&this.$nextTick((function(){return t.$el.focus()}))}}},Dt=zt;n("b8fb");function Bt(t,e,n,r,i,o,u,a){var s,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),u?(s=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},l._ssrRegister=s):i&&(s=a?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(l.functional){l._injectStyles=s;var c=l.render;l.render=function(t,e){return s.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:l}}var Wt=Bt(Dt,It,Nt,!1,null,null,null),Ht=Wt.exports,Ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"super-flow__node",class:{"can-move":t.nodeDrop},style:t.style,attrs:{tabindex:"-1"},on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),t.nodeMousedown(e))},mouseenter:t.nodeMouseenter,mouseleave:t.nodeMouseleave,mouseup:t.nodeMouseup,contextmenu:function(e){return e.preventDefault(),e.stopPropagation(),t.nodeContextmenu(e)}}},[t._t("default",null,{meta:t.node.meta}),t._l(t.direction,(function(e,r){return n("div",{directives:[{name:"show",rawName:"v-show",value:t.output&&t.lineDrop,expression:"output && lineDrop"}],key:r,class:"node-side node-side-"+r,on:{contextmenu:function(t){t.stopPropagation(),t.preventDefault()},mousedown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"left",37,n.key,["Left","ArrowLeft"])||"button"in n&&0!==n.button?null:(n.preventDefault(),n.stopPropagation(),function(n){return t.sideMousedown(n,e)}(n))}}})}))],2)},Ut=[],Xt={props:{graph:Object,node:Object,index:Number,isMove:Boolean,isTemEdge:Boolean,nodeIntercept:Function,lineDrop:Boolean,nodeDrop:Boolean},data:function(){return{direction:G,output:this.nodeIntercept()}},computed:{style:function(){var t=this.node,e=t.position,n=t.width,r=t.height;return{width:n+"px",height:r+"px",top:e[1]+"px",left:e[0]+"px"}}},methods:{nodeMousedown:function(t){this.graph.toLastNode(this.index),this.$emit("node-mousedown",this.node,A(t))},nodeMouseenter:function(t){this.output=this.nodeIntercept(),this.graph.mouseonNode=this.node,this.isTemEdge&&this.$emit("node-mouseenter",t,this.node,A(t,this.$el))},nodeMouseleave:function(){this.graph.mouseonNode=null,this.isTemEdge&&this.$emit("node-mouseleave")},nodeMouseup:function(){this.isTemEdge&&this.$emit("node-mouseup")},nodeContextmenu:function(t){this.$emit("node-contextmenu",t,this.node)},sideMousedown:function(t){this.$emit("side-mousedown",t,this.node,A(t,this.$el))}}},Yt=Xt,qt=(n("2470"),Bt(Yt,Ft,Ut,!1,null,null,null)),Gt=qt.exports,Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"super-flow__line"},[n("canvas",{ref:"canvas"}),t.hasTextDesc?n("div",{staticClass:"text",style:t.textStyle},[t._t("default",[t._v(t._s(t.link.meta.desc))],{meta:t.link.meta})],2):t._e()])},Jt=[];function Kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(n),!0).forEach((function(e){Qt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function te(t,e){return re(t)||ne(t,e)||ue(t,e)||ee()}function ee(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ne(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function re(t){if(Array.isArray(t))return t}function ie(t){return se(t)||ae(t)||ue(t)||oe()}function oe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(t,e){if(t){if("string"===typeof t)return le(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)?le(t,e):void 0}}function ae(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function se(t){if(Array.isArray(t))return le(t)}function le(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ce={props:{padding:{type:Number,default:50},linkDesc:[Function,null],linkStyle:[Function,null],linkBaseStyle:Object,index:Number,graph:Object,link:Object,dblclickLink:[Function,null],el:HTMLDivElement},data:function(){return{top:0,right:0,bottom:0,left:0,currentPointList:[],currentPathPointList:null,ellipse:{},inText:!1,textStyle:{left:0,top:0}}},mounted:function(){var t=this;this.ctx=this.$refs.canvas.getContext("2d"),this.draw(),this.graph.add("mousemove",this.rootMousemove),this.graph.add("dblclick",this.dblclick),this.$once("hook:beforeDestroy",(function(){t.graph.remove("mousemove",t.rootMousemove),t.graph.remove("dblclick",t.dblclick)}))},computed:{styles:function(){return Object.assign({lineColor:"#5959FF",lineHover:"#000",lineCheck:"red",lineColorMinor:"yellow",textColor:"#fff",textHover:"#000",textCheck:"pink",font:"14px Arial",dotted:!1,lineDash:[4,4],background:"rgba(255,255,255,0.6)"},this.linkBaseStyle)},hasTextDesc:function(){return 0===this.link.meta.desc||!!this.link.meta.desc},inPath:{get:function(){return this.graph.mouseonLink===this.link},set:function(t){t&&!this.graph.mouseonNode?this.graph.mouseonLink=this.link:this.inPath&&(this.graph.mouseonLink=null)}}},methods:{draw:function(){var t=this,e=this.currentPathPointList=this.link.pathPointList,n=e.pointList,r=e.minX,i=e.minY,o=e.maxX,u=e.maxY;this.top=i-this.padding,this.right=o+this.padding,this.bottom=u+this.padding,this.left=r-this.padding,this.currentPointList=n.map((function(e){return[Math.floor(e[0]-t.left),Math.floor(e[1]-t.top)]})),this.changeStyle(),this.initLine()},changeStyle:function(){this.$refs.canvas.width=this.right-this.left,this.$refs.canvas.height=this.bottom-this.top,this.$el.style.top=this.top+"px",this.$el.style.left=this.left+"px"},initLine:function(){if(this.ctx.clearRect(0,0,this.$refs.canvas.width,this.$refs.canvas.height),this.linkStyle){var t=this.linkStyle(this.link);U(t)&&Object.assign(this.styles,t)}var e=this.styles,n=e.lineColor,r=e.lineCheck,i=e.lineColorMinor;if(this.highlight)this.drawLine(r),this.drawDesc(r),this.drawArrow(r),this.$el.style.zIndex="2";else{var o=this.hasTextDesc?n:i;this.drawLine(o),this.drawDesc(o),this.drawArrow(o),this.$el.style.zIndex=this.inPath?"3":this.hasTextDesc?"1":"2"}},drawLine:function(t){if(this.currentPointList.length){var e=2,n=this.ctx;n.lineJoin="round",n.beginPath(),this.inPath?(n.shadowBlur=6,n.shadowColor=t):(n.shadowBlur=0,n.shadowColor="none"),this.styles.dotted&&n.setLineDash(this.styles.lineDash),n.lineWidth=e,n.strokeStyle=t,this.currentPointList.forEach((function(t,e){0===e?n.moveTo.apply(n,ie(t)):n.lineTo.apply(n,ie(t))})),n.stroke(),n.save()}},drawDesc:function(t){var e=this.styles.background,n=this.descPosition(),r=te(n,2),i=r[0],o=r[1];this.textStyle=Zt({left:i+"px",top:o+"px",background:e,color:t,transform:this.setTextCenter()},this.inPath&&{"font-size":"18px","font-weight":"bold"})},drawDesc2:function(t){this.ctx,this.link.meta.desc;var e=this.styles,n=e.font,r=e.background;this.ctx.font=n,this.ctx.textAlign="center",this.ctx.textBaseline="middle";var i=parseInt(n.match(/(\d+px)/g)[0]),o=Math.max(width,i)/2+5,u=this.descPosition(),a=this.ellipse={x:u[0],y:u[1],a:o,b:.8*o},s=a.x,l=a.y;a.a,a.b;this.textStyle={left:s+"px",top:l+"px",background:r,color:t}},setTextCenter:function(){var t=te(this.currentPointList[0],2),e=t[0],n=t[1],r=l.a.last(this.currentPointList),i=te(r,2),o=i[0],u=i[1];return e===o?"translateY(-50%)":n===u?"translateX(-50%)":"none"},linkDescPosition:function(t,e){var n=te(this.currentPointList[0],2),r=n[0],i=n[1],o=!!this.link.startDirection[0],u=this.descPosition(),a=te(u,2),s=a[0],l=a[1];return o?[s,l-e-5]:[r+e+t/2,i-e-5]},descPosition:function(){var t=0,e=0,n=null;return this.currentPointList.reduce((function(e,n){var r=B(e).minus(n).end;return t+=Math.abs(r[0])+Math.abs(r[1]),n})),this.currentPointList.reduce((function(r,i){var o=B(r).minus(i).end,u=Math.abs(o[0])+Math.abs(o[1]),a=e,s=t/2;return e+=u,e>=t/2&&null===n&&(n=r,n=r[0]===i[0]?r[1]<i[1]?B(r).add([0,s-a]).end:B(r).add([0,-(s-a)]).end:r[0]<i[0]?B(r).add([s-a,0]).end:B(r).add([-(s-a),0]).end),i})),n},descIntercept:function(t){var e=this.ctx,n=e.measureText(t).width,r=2*this.padding-10,i="...",o=e.measureText(i).width;if(n<=r||r<=o)return{text:t,width:n};var u=t.length;while(n>=r-o&&u-- >0)t=t.slice(0,u),n=e.measureText(t).width;return{text:t+i,width:r+o}},drawArrow:function(t){var e=4,n=this.currentPointList.length;if(!(n<2)){var r=this.currentPointList[n-2],i=this.currentPointList[n-1],o=this.ctx;o.translate.apply(o,ie(i));var u=Math.atan((i[0]-r[0])/(i[1]-r[1]));o.beginPath(),i[1]-r[1]>=0?o.rotate(-u):o.rotate(Math.PI-u),o.fillStyle=t,o.lineTo(-e,2*-e),o.lineTo(0,-e),o.lineTo(e,2*-e),o.lineTo(0,0),o.closePath(),o.fill(),o.restore()}},isPointInStroke:function(t){var e=A(t,this.$refs.canvas),n=te(e,2),r=n[0],i=n[1];return this.link.isPointInLink([this.left+r,this.top+i],this.currentPathPointList)},rootMousemove:function(t){var e=t.evt;return C(e,this.el)?(this.inPath=this.isPointInStroke(e)||this.isInText(e),this.inPath):this.inPath=!1},isInText:function(t){return C(t,this.$el.querySelector(".text"))},dblclick:function(t){var e,n=t.evt;this.isInEllipse(n)&&(null===(e=this.dblclickLink)||void 0===e||e.call(this,this.link,[n.clientX,n.clientY]))},isInEllipse:function(t){var e=this.ellipse,n=e.x,r=e.y,i=e.a,o=e.b,u=A(t,this.$refs.canvas),a=te(u,2),s=a[0],l=a[1],c=s-n,f=l-r;return c*c/(i*i)+f*f/(o*o)<=1}},watch:{"link.pathPointList":function(){this.draw()},inPath:function(){this.initLine()},"link.meta":{deep:!0,handler:function(t){var e=t.error;this.highlight=e,this.draw(),this.$emit("changeLinkStyle")}},linkBaseStyle:{deep:!0,handler:function(){this.draw()}},inText:function(t){}}},fe=ce,he=(n("7e2d"),Bt(fe,Vt,Jt,!1,null,null,null)),de=he.exports,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("canvas",{ref:"markLine",staticClass:"super-flow__mark-line"})},ve=[];function me(t){return be(t)||ye(t)||ke(t)||ge()}function ge(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ye(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function be(t){if(Array.isArray(t))return xe(t)}function _e(t,e){return Se(t)||Ee(t,e)||ke(t,e)||we()}function we(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ke(t,e){if(t){if("string"===typeof t)return xe(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)?xe(t,e):void 0}}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ee(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function Se(t){if(Array.isArray(t))return t}var Le={props:{width:{type:Number,default:0},height:{type:Number,default:0},markLine:Array,markColor:String},mounted:function(){this.$refs.markLine.height=this.height,this.$refs.markLine.width=this.width,this.draw()},methods:{draw:function(){var t=this.$el.getContext("2d");t.clearRect(0,0,this.width,this.height),t.strokeStyle=this.markColor,t.lineWidth=1,t.setLineDash([4,2]),this.markLine.forEach((function(e){var n=_e(e,2),r=n[0],i=n[1];t.beginPath(),t.moveTo.apply(t,me(r)),t.lineTo.apply(t,me(i)),t.stroke()}))}},watch:{markLine:function(){this.draw()}}},Oe=Le,Ae=(n("bce9"),Bt(Oe,pe,ve,!1,null,null,null)),Ce=Ae.exports;function Te(t,e){if(null==t)return{};var n,r,i=Me(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Me(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function je(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Pe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?je(Object(n),!0).forEach((function(e){Re(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Re(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $e(t){return ze(t)||Ne(t)||We(t)||Ie()}function Ie(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ne(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ze(t){if(Array.isArray(t))return He(t)}function De(t,e){return Ue(t)||Fe(t,e)||We(t,e)||Be()}function Be(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function We(t,e){if(t){if("string"===typeof t)return He(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)?He(t,e):void 0}}function He(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Fe(t,e){var n=t&&("undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done);u=!0)if(o.push(r.value),e&&o.length===e)break}catch(s){a=!0,i=s}finally{try{u||null==n["return"]||n["return"]()}finally{if(a)throw i}}return o}}function Ue(t){if(Array.isArray(t))return t}var Xe={name:"simple-flow-chart",props:{draggable:{type:Boolean,default:!0},linkAddable:{type:Boolean,default:!0},linkEditable:{type:Boolean,default:!0},hasMarkLine:{type:Boolean,default:!0},linkDesc:{type:[Function,null],default:null},linkStyle:{type:[Function,null],default:null},linkBaseStyle:{type:Object,default:function(){return{}}},markLineColor:{type:String,default:"#55abfc"},origin:{type:Array,default:function(){return[0,0]}},nodeList:{type:Array,default:function(){return[]}},linkList:{type:Array,default:function(){return[]}},graphMenu:{type:Array,default:function(){return[]}},nodeMenu:{type:Array,default:function(){return[]}},linkMenu:{type:Array,default:function(){return[]}},linkPadding:{type:Number,default:50},enterIntercept:{type:Function,default:function(){return!0}},outputIntercept:{type:Function,default:function(){return!0}},dblclickLink:[Function,null],maxTotal:[Number,String],range:{type:Array,default:function(){return["start","end"]}},el:HTMLDivElement,draggableMultiple:Boolean},data:function(){return{graph:new $t({width:this.width,height:this.height,origin:this.origin}),menuConf:{visible:!1,position:[0,0],source:null,list:[]},moveNodeConf:{isMove:!1,node:null,offset:null,verticalList:[],horizontalList:[],markLine:[]},moveAllConf:{isMove:!1,downPosition:[0,0]},temEdgeConf:{visible:!1,link:null},loaded:!1,clientWidth:0,clientHeight:0,templateData:""}},components:{GraphMenu:Ht,GraphNode:Gt,GraphLine:de,MarkLine:Ce},computed:{maskStyle:function(){var t=this.graph.maskBoundingRect,e=t.top,n=t.right,r=t.bottom,i=t.left;return{width:"".concat(n-i,"px"),height:"".concat(r-e,"px"),top:"".concat(e+this.graph.origin[1],"px"),left:"".concat(i+this.graph.origin[0],"px")}},getBeyondLimitPath:function(){var t=this,e=[],n=this.graph.linkList,r=De(this.range,2),i=r[0],o=r[1],u=function r(i){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],c=n.filter((function(t){return t.start.id===i}));if(a&&s>Number(t.maxTotal))return e.push.apply(e,$e(u));l.includes(i)||c.forEach((function(t){var e=$e(u),n=s;e.push(t.id),n+=Number(t.meta.desc),r(t.end.id,e,t.end.id===o,n,[].concat($e(l),[i]))}))};return u(i),e},rangeNodeIndex:function(){var t=De(this.range,2),e=t[0],n=t[1],r=l.a.findIndex(this.graph.nodeList,{id:e}),i=l.a.findIndex(this.graph.nodeList,{id:n});return[r,i+1]}},mounted:function(){var t=this;document.addEventListener("mouseup",this.docMouseup),document.addEventListener("mousemove",this.docMousemove),document.addEventListener("dblclick",this.dblclick),document.addEventListener("dragover",(function(t){return t.preventDefault()})),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("mouseup",t.docMouseup),document.removeEventListener("mousemove",t.docMousemove),document.removeEventListener("dblclick",t.dblclick)})),this.$nextTick((function(){var e=l.a.cloneDeep(t.nodeList);t.graph.initNode(e),t.graph.initLink(t.linkList)}))},methods:{initMenu:function(t,e){return t.map((function(t){return t.map((function(t){var n,r;return n=H(t.disable)?t.disable(e):F(t.disable)?t.disable:Boolean(t.disable),r=H(t.hidden)?t.hidden(e):F(t.hidden)?t.hidden:Boolean(t.hidden),Pe(Pe({},t),{},{disable:n,hidden:r})})).filter((function(t){return!t.hidden}))})).filter((function(t){return t.length}))},showContextMenu:function(t,e,n){e.length&&(this.$set(this.menuConf,"position",t),this.$set(this.menuConf,"list",e),this.$set(this.menuConf,"source",n),this.menuConf.visible=!0)},dblclick:function(t){this.graph.dispatch({type:"dblclick",evt:t})},docMouseup:function(t){this.moveNodeConf.isMove&&(t.stopPropagation(),t.preventDefault()),this.moveNodeConf.isMove=!1,this.moveNodeConf.node=null,this.moveNodeConf.offset=null,X(this.moveNodeConf.markLine,[]),this.temEdgeConf.visible=!1,this.temEdgeConf.link=null,this.moveAllConf.isMove=!1,this.graph.maskBoundingLastRect=null,this.setSelectedNodeLastCenter(!0)},docMousemove:function(t){this.moveNodeConf.isMove?this.moveNode(t):this.temEdgeConf.visible?this.moveTemEdge(t):this.graph.graphSelected?this.moveSelectedNode(t):this.linkEditable&&this.graph.dispatch({type:"mousemove",evt:t},!0)},moveNode:function(t){var e=this,n=10,r=this.moveNodeConf,i=this.graph.origin,o=B(r.offset).differ(A(t,this.$el,this.$refs["flow-canvas"])).minus(i).add([r.node.width/2,r.node.height/2]).end;if(this.hasMarkLine){var u=[];r.verticalList.some((function(t){var r=o[0],a=t-n<r&&t+n>r;return a&&(o[0]=t,t=Math.floor(t),t+=i[0],t+=t%1===0?.5:0,u.push([[t,0],[t,e.clientHeight]])),a})),r.horizontalList.some((function(t){var r=o[1],a=t-n<r&&t+n>r;return a&&(o[1]=t,t=Math.floor(t),t+=i[1],t+=t%1===0?.5:0,u.push([[0,t],[e.clientWidth,t]])),a})),X(r.markLine,u)}r.node.center=o},moveTemEdge:function(t){this.temEdgeConf.link.movePosition=A(t,this.$el,this.$refs["flow-canvas"])},moveSelectedNode:function(t){if(this.moveAllConf.isMove){var e=this.graph.maskBoundingLastRect,n=e.left,r=e.top,i=e.bottom,o=e.right,u=De(B(this.moveAllConf.downPosition).differ([t.clientX,t.clientY]).end,2),a=u[0],s=u[1];this.graph.maskBoundingRect={left:n+a,top:r+s,bottom:i+s,right:o+a},this.selectedNodeList.forEach((function(t){return t.center=B(t.lastCenter).add([a,s]).end}))}},contextmenu:function(t){var e,n,r=this.graph.mouseonLink,i=A(t,null,this.$refs["flow-canvas"]);r?(e=this.initMenu(this.linkMenu,r),n=r):(r&&(this.graph.mouseonLink=null),e=this.initMenu(this.graphMenu,this.graph),n=this.graph),this.showContextMenu(i,e,n)},nodeMousedown:function(t,e){if(this.draggable){this.clientWidth=this.$el.clientWidth,this.clientHeight=this.$el.clientHeight;var n=this.moveNodeConf.verticalList,r=this.moveNodeConf.horizontalList,i=this.graph.nodeList.filter((function(e){return e!==t})).map((function(t){return t.center}));X(n,$e(new Set(i.map((function(t){return t[0]})))).sort((function(t,e){return t-e}))),X(r,$e(new Set(i.map((function(t){return t[1]})))).sort((function(t,e){return t-e}))),this.moveNodeConf.isMove=!0,this.moveNodeConf.node=t,this.moveNodeConf.offset=e}},nodeMouseenter:function(t,e,n){var r=this.temEdgeConf.link;this.enterIntercept(r.start,e,this.graph)&&(r.end=e,r.endAt=n)},nodeMouseleave:function(){this.temEdgeConf.link.end=null},nodeMouseup:function(){this.graph.addLink(this.temEdgeConf.link)},nodeContextmenu:function(t,e){var n=this.initMenu(this.nodeMenu,e);n.length&&(this.$set(this.menuConf,"position",A(t,this.$el,this.$refs["flow-canvas"])),this.$set(this.menuConf,"list",n),this.$set(this.menuConf,"source",e),this.menuConf.visible=!0)},sideMousedown:function(t,e,n){if(this.linkAddable){var r=this.graph.createLink({start:e,startAt:n});r.movePosition=A(t,this.$el,this.$refs["flow-canvas"]),this.$set(this.temEdgeConf,"link",r),this.temEdgeConf.visible=!0}},nodeIntercept:function(t){var e=this;return function(){return e.outputIntercept(t,e.graph)}},menuItemSelect:function(){this.menuConf.visible=!1},selectAllMaskMouseDown:function(t){this.moveAllConf.isMove=!0,this.setSelectedNodeLastCenter(),this.moveAllConf.downPosition=[t.clientX,t.clientY],this.graph.maskBoundingLastRect=Pe({},this.graph.maskBoundingRect)},selectedAll:function(){this.graph.selectAll()},toJSON:function(){return this.graph.toJSON()},getMouseCoordinate:function(t,e){var n=A({clientX:t,clientY:e},this.$el,this.$refs["flow-canvas"]);return B(n).minus(this.graph.origin).end},addNode:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"line",n=arguments.length>2?arguments[2]:void 0;return"line"===e?this.graph.addNode(t,n):this.updateFishBoneNode(t,n)},updateFishBoneNode:function(t,e){var n=this.toJSON(),r=n.nodeList;return t&&r.splice(e,0,t),this.addFishBoneTemplate(r),t},changeLinkStyle:function(){var t=this;this.graph.linkList.forEach((function(e){return t.$set(e.meta,"error",t.getBeyondLimitPath.includes(e.id))}))},addNodeIfNeed:function(t,e){var n=e.el||this.$el;if(C(t,n)){var r=this.getMouseCoordinate(t.clientX-e.width/2,t.clientY-e.height/2);return this.addNode(Pe(Pe({},e),{},{id:e.id,meta:e,coordinate:r}))}},addTemplate:function(t){var e=100,n=t.map((function(t,n){return Pe(Pe({},t),{},{meta:t,coordinate:[50+200*n,e+120]})})),r=n.map((function(t,e){var r,i=t.id,o=null===(r=n[e+1])||void 0===r?void 0:r.id;return{startId:i,endId:o,startAt:[120,20],endAt:[0,20]}}));this.initTemplate({nodeList:n,linkList:r})},addFishBoneTemplate:function(t){var e=250,n=50,r=100,i=t.map((function(t,i){var o=t.meta,u=Te(t,["meta"]),a=["start","end"].includes(u.id)?0:r;return Pe(Pe({},u),{},{meta:Object.assign({},o,u),coordinate:[n+150*i,i%2?e-a:e+a]})})),o=i.reduce((function(t,e,n){var r,o=e.id,u=e.width,a=e.height,s=null===(r=i[n+1])||void 0===r?void 0:r.id,l=t[n-1],c="start"===o?[u,a/2]:null===l||void 0===l?void 0:l.endAt,f=n%2?[u/2,0]:[u/2,a];return t.push({startId:o,endId:s,startAt:c,endAt:"end"===s?[0,a/2]:f}),t}),[]);this.initTemplate({nodeList:i,linkList:o})},canvasMousedown:function(t){this.$emit("canvasMousedown",t),this.draggableMultiple&&(this.mousedownCoordinate=t,this.graph.graphSelected=!1)},canvasMousemove:function(t){this.$emit("canvasMousemove",t),this.selectNode(t)},canvasMouseup:function(t){this.$emit("canvasMouseup",t),this.mousedownCoordinate=null},selectNode:function(t){var e=this;this.mousedownCoordinate&&(this.setMaskBoundingClientRect(t),this.graph.graphSelected=!0,this.selectedNodeList=this.graph.nodeList.filter((function(t){var n=t.coordinate,r=t.width,i=t.height,o=De(n,2),u=o[0],a=o[1],s={left:u,top:a,bottom:a+i,right:u+r};return Y(e.graph.maskBoundingRect,s)})))},setSelectedNodeLastCenter:function(t){var e;null===(e=this.selectedNodeList)||void 0===e||e.forEach((function(e){e.lastCenter=t?null:$e(e.center)}))},setMaskBoundingClientRect:function(t){var e=t.clientX,n=t.clientY,r=this.mousedownCoordinate,i=r.clientX,o=r.clientY,u=this.getMouseCoordinate(i,o),a=De(u,2),s=a[0],l=a[1],c=Math.abs(e-i),f=Math.abs(n-o);e>=i&&n<o?this.graph.maskBoundingRect={left:s,top:l-f,bottom:l,right:s+c}:e<i&&n<o?this.graph.maskBoundingRect={left:s-c,top:l-f,bottom:l,right:s}:e<i&&n>=o?this.graph.maskBoundingRect={left:s-c,top:l,bottom:l+f,right:s}:e>=i&&n>=o&&(this.graph.maskBoundingRect={left:s,top:l,bottom:l+f,right:s+c})},initTemplate:function(t){var e=t.nodeList,n=t.linkList;this.graph.initNode(e),this.graph.initLink(n)},saveFlowChart:function(){},isNodeInRange:function(t){var e=l.a.findIndex(this.graph.nodeList,{id:t});return l.a.inRange.apply(l.a,[e].concat($e(this.rangeNodeIndex)))}},watch:{"graph.mouseonLink":function(){this.graph.mouseonLink?document.body.style.cursor="pointer":document.body.style.cursor=""},origin:function(){this.graph.origin=this.origin||[]},nodeList:function(){var t=l.a.cloneDeep(this.nodeList);this.graph.initNode(t)},linkList:function(){this.graph.initLink(this.linkList)},"graph.linkList":function(){2===this.range.length&&this.$nextTick(this.changeLinkStyle)},range:function(){2===this.range.length&&this.changeLinkStyle()}}},Ye=Xe,qe=(n("419f"),Bt(Ye,u,a,!1,null,"1ee2b2d6",null)),Ge=qe.exports,Ve=n("1881"),Je=n.n(Ve),Ke=n("4eb5"),Ze=n.n(Ke),Qe=function(t){t.component(Ge.name,Ge),t.use(Je.a).use(Ze.a)};"undefined"!==typeof window&&window.Vue&&Qe(window.Vue);var tn={install:Qe};e["default"]=tn}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-flow-chart",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "keywords": [
5
5
  "flowChart",
6
6
  "super flow",