├── .gitignore ├── README.md ├── babel.config.js ├── dist ├── demo.html ├── vue-documenter.common.js ├── vue-documenter.common.js.map ├── vue-documenter.umd.js ├── vue-documenter.umd.js.map ├── vue-documenter.umd.min.js └── vue-documenter.umd.min.js.map ├── example ├── .gitignore ├── README.md ├── babel.config.js ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ └── index.html ├── src │ ├── App.vue │ ├── assets │ │ └── logo.png │ ├── components │ │ └── HelloWorld.vue │ └── main.js └── vue-documenter-example.png ├── package-lock.json ├── package.json ├── src ├── VueDocumenter.vue └── index.js └── vue.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_STORE 2 | node_modules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Vue Documenter 2 | An automatic, living Vue component documenter - yes - a component that documents components, with no build step (ie Webpack or Rollup or extra commands to run, because it's just another component). 3 | 4 | # Usage 5 | ``` 6 | // YourVueDocumentationPage.vue 7 | 8 | 45 | 63 | 64 | ``` 65 | 66 | # Output 67 | ![Example Vue Documenter output](example/vue-documenter-example.png) 68 | 69 | # Why? 70 | For when you don't always have time to keep secondary documentation updated, or aren't able to roll out something like Storybook for everybody on your team. 71 | 72 | # Read more 73 | https://medium.com/skilljar-engineering/the-quickest-dirtiest-automatic-est-vue-documenter-ever-cf55845b4df9 74 | 75 | # Roadmap 76 | * [Bug] Documentation example code spacing in named slots 77 | * [Feature] Add ability to group components in the documentation 78 | * [Feature] Better usage of slots 79 | * [Done, published 1.1.0] Update events' example value to be code highlighted 80 | * [Done, published 1.1.0] Update documentation table of contents to be sticky 81 | * [Done, published 1.1.0] Update CSS override classes to be individual properties rather than one all-or-nothing overridable object 82 | * [Done, published 1.1.0] Add documentation ~URL~ description field for component meta 83 | * [Done, published 1.1.0] Add description field for prop meta 84 | 85 | # Contributing 86 | PRs totally accepted 👍 87 | 88 | To run this project locally you'll need a few global packages installed 89 | * `npm install -g @vue/cli @vue/cli-global-service` 90 | 91 | Then get to the `example` directory 92 | * `cd /your-repo-location/vue-documenter/example` 93 | 94 | And run it! 95 | * `npm run serve` 96 | 97 | This will build the `/your-repo-location/vue-documenter/src/VueDocumenter.vue` and copy the compiled file to the `/your-repo-location/vue-documenter/example/dist/` directory where it'll be referenced correctly by the example `App.vue` entrypoint. 98 | 99 | If all worked correctly you should be able to see it working at something like `http://localhost:8080/` -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /dist/demo.html: -------------------------------------------------------------------------------- 1 | 2 | vue-documenter demo 3 | 4 | 5 | 6 | 9 | -------------------------------------------------------------------------------- /dist/vue-documenter.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-documenter"]=t():e["vue-documenter"]=t()})("undefined"!==typeof self?self:this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"0029":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"0185":function(e,t,n){var r=n("e5fa");e.exports=function(e){return Object(r(e))}},"01f9":function(e,t,n){"use strict";var r=n("2d00"),o=n("5ca1"),a=n("2aba"),i=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",g="keys",m="values",v=function(){return this};e.exports=function(e,t,n,h,b,y,x){c(n,t,h);var C,w,S,_=function(e){if(!p&&e in j)return j[e];switch(e){case g:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=b==m,A=!1,j=e.prototype,F=j[f]||j[d]||b&&j[b],T=F||_(b),E=b?O?_("entries"):T:void 0,P="Array"==t&&j.entries||F;if(P&&(S=l(P.call(new e)),S!==Object.prototype&&S.next&&(u(S,k,!0),r||"function"==typeof S[f]||i(S,f,v))),O&&F&&F.name!==m&&(A=!0,T=function(){return F.call(this)}),r&&!x||!p&&!A&&j[f]||i(j,f,T),s[t]=T,s[k]=v,b)if(C={values:O?T:_(m),keys:y?T:_(g),entries:E},x)for(w in C)w in j||a(j,w,C[w]);else o(o.P+o.F*(p||A),t,C);return C}},"02f4":function(e,t,n){var r=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var a,i,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(a=s.charCodeAt(c),a<55296||a>56319||c+1===u||(i=s.charCodeAt(c+1))<56320||i>57343?e?s.charAt(c):a:e?s.slice(c,c+2):i-56320+(a-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0a49":function(e,t,n){var r=n("9b43"),o=n("626a"),a=n("4bf8"),i=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,g){for(var m,v,h=a(t),b=o(h),y=r(s,g,3),x=i(b.length),C=0,w=n?d(t,x):c?d(t,0):void 0;x>C;C++)if((p||C in b)&&(m=b[C],v=y(m,C,h),e))if(n)w[C]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:w.push(m)}else if(l)return!1;return f?-1:u||l?l:w}}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return r(e,o)}},"0f89":function(e,t,n){var r=n("6f8a");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"103a":function(e,t,n){var r=n("da3c").document;e.exports=r&&r.documentElement},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),o=n("4630"),a=n("6821"),i=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=a(e),t=i(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},"12fd":function(e,t,n){var r=n("6f8a"),o=n("da3c").document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},1495:function(e,t,n){var r=n("86cc"),o=n("cb7c"),a=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){o(e);var n,i=a(t),s=i.length,c=0;while(s>c)r.f(e,n=i[c++],t[n]);return e}},1938:function(e,t,n){var r=n("d13f");r(r.S,"Array",{isArray:n("b5aa")})},"1b55":function(e,t,n){var r=n("7772")("wks"),o=n("7b00"),a=n("da3c").Symbol,i="function"==typeof a,s=e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))};s.store=r},"1b8f":function(e,t,n){var r=n("a812"),o=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):a(e,t)}},"1c01":function(e,t,n){var r=n("5ca1");r(r.S+r.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),o=n("32e9"),a=n("79e5"),i=n("be13"),s=n("2b4c"),c=n("520a"),u=s("species"),l=!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=s(e),d=!a(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),g=d?!a(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!t}):void 0;if(!d||!g||"replace"===e&&!l||"split"===e&&!f){var m=/./[p],v=n(i,p,""[e],function(e,t,n,r,o){return t.exec===c?d&&!o?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),h=v[0],b=v[1];r(String.prototype,e,h),o(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),o=n("7726").document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},2312:function(e,t,n){e.exports=n("8ce0")},"23c6":function(e,t,n){var r=n("2d95"),o=n("2b4c")("toStringTag"),a="Arguments"==r(function(){return arguments}()),i=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=i(t=Object(e),o))?n:a?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},2418:function(e,t,n){var r=n("6a9b"),o=n("a5ab"),a=n("1b8f");e.exports=function(e){return function(t,n,i){var s,c=r(t),u=o(c.length),l=a(i,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"245b":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var a=o(r),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([a]).join("\n")}return[n].join("\n")}function o(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;oc)r(s,n=t[c++])&&(~a(u,n)||u.push(n));return u}},"28a5":function(e,t,n){"use strict";var r=n("aae3"),o=n("cb7c"),a=n("ebd6"),i=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,p=[].push,d="split",g="length",m="lastIndex",v=4294967295,h=!l(function(){RegExp(v,"y")});n("214f")("split",2,function(e,t,n,l){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[g]||2!="ab"[d](/(?:ab)*/)[g]||4!="."[d](/(.?)(.?)/)[g]||"."[d](/()()/)[g]>1||""[d](/.?/)[g]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);var a,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?v:t>>>0,h=new RegExp(e.source,l+"g");while(a=u.call(h,o)){if(i=h[m],i>f&&(c.push(o.slice(f,a.index)),a[g]>1&&a.index=d))break;h[m]===a.index&&h[m]++}return f===o[g]?!s&&h.test("")||c.push(""):c.push(o.slice(f)),c[g]>d?c.slice(0,d):c}:"0"[d](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,o,r):b.call(String(o),n,r)},function(e,t){var r=l(b,e,this,t,b!==n);if(r.done)return r.value;var u=o(e),p=String(this),d=a(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),y=new d(h?u:"^(?:"+u.source+")",m),x=void 0===t?v:t>>>0;if(0===x)return[];if(0===p.length)return null===c(y,p)?[p]:[];var C=0,w=0,S=[];while(w=u?e?"":void 0:(a=s.charCodeAt(c),a<55296||a>56319||c+1===u||(i=s.charCodeAt(c+1))<56320||i>57343?e?s.charAt(c):a:e?s.slice(c,c+2):i-56320+(a-55296<<10)+65536)}}},"2aba":function(e,t,n){var r=n("7726"),o=n("32e9"),a=n("69a8"),i=n("ca5a")("src"),s=n("fa5b"),c="toString",u=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(a(n,i)||o(n,i,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[i]||s.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),o=n("1495"),a=n("e11e"),i=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=a.length,o="<",i=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+i+"document.F=Object"+o+"/script"+i),e.close(),u=e.F;while(r--)delete u[c][a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),o=n("ca5a"),a=n("7726").Symbol,i="function"==typeof a,s=e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2ea1":function(e,t,n){var r=n("6f8a");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},"32e9":function(e,t,n){var r=n("86cc"),o=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"38fd":function(e,t,n){var r=n("69a8"),o=n("4bf8"),a=n("613b")("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},"3adc":function(e,t,n){var r=n("0f89"),o=n("a47f"),a=n("2ea1"),i=Object.defineProperty;t.f=n("7d95")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"3b2b":function(e,t,n){var r=n("7726"),o=n("5dbc"),a=n("86cc").f,i=n("9093").f,s=n("aae3"),c=n("0bfb"),u=r.RegExp,l=u,f=u.prototype,p=/a/g,d=/a/g,g=new u(p)!==p;if(n("9e1e")&&(!g||n("79e5")(function(){return d[n("2b4c")("match")]=!1,u(p)!=p||u(d)==d||"/a/i"!=u(p,"i")}))){u=function(e,t){var n=this instanceof u,r=s(e),a=void 0===t;return!n&&r&&e.constructor===u&&a?e:o(g?new l(r&&!a?e.source:e,t):l((r=e instanceof u)?e.source:e,r&&a?c.call(e):t),n?this:f,u)};for(var m=function(e){e in u||a(u,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},v=i(l),h=0;v.length>h;)m(v[h++]);f.constructor=u,u.prototype=f,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),o=n("4630"),a=n("7f20"),i={};n("32e9")(i,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(i,{next:o(1,n)}),a(e,t+" Iterator")}},"436c":function(e,t,n){var r=n("1b55")("iterator"),o=!1;try{var a=[7][r]();a["return"]=function(){o=!0},Array.from(a,function(){throw 2})}catch(i){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var a=[7],s=a[r]();s.next=function(){return{done:n=!0}},a[r]=function(){return s},e(a)}catch(i){}return n}},"43c8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},4527:function(e,t,n){"use strict";var r=n("5781"),o=n.n(r);o.a},"456d":function(e,t,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",function(){return function(e){return o(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4917:function(e,t,n){"use strict";var r=n("cb7c"),o=n("9def"),a=n("0390"),i=n("5f1b");n("214f")("match",1,function(e,t,n,s){return[function(n){var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var c=r(e),u=String(this);if(!c.global)return i(c,u);var l=c.unicode;c.lastIndex=0;var f,p=[],d=0;while(null!==(f=i(c,u))){var g=String(f[0]);p[d]=g,""===g&&(c.lastIndex=a(u,o(c.lastIndex),l)),d++}return 0===d?null:p}]})},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o1&&a.call(i[0],n,function(){for(l=1;l")]),t.description?n("p",{domProps:{innerHTML:e._s(t.description)}}):e._e(),n("h2",[e._v("Properties")]),n("div",{class:e.cssClassComponentsColumnComponentTableWrapper||e.cssOverrideClasses.componentsColumnComponentTableWrapper,staticStyle:{"margin-bottom":"1rem"}},[n("table",{class:e.cssClassComponentsColumnComponentTable||e.cssOverrideClasses.componentsColumnComponentTable},[e._m(0,!0),n("tbody",[t.properties.length>0?e._l(t.properties,function(t){return n("tr",{key:"property-"+t.name,class:{deprecated:t.deprecated}},[n("td",[e._v("\n "+e._s("string"!==t.type?":":"")+e._s(t.name)+"\n "),t.required?n("span",{class:e.cssClassBadgeRequired||e.cssOverrideClasses.badgeRequired,attrs:{title:t.required}},[e._v("Required")]):e._e(),t.deprecated?n("span",{class:e.cssClassBadgeDeprecated||e.cssOverrideClasses.badgeDeprecated,attrs:{title:t.deprecated,"data-tippy":""}},[e._v("Deprecated "),n("i",{staticClass:"fas fa-question-circle"})]):e._e()]),n("td",{domProps:{innerHTML:e._s(t.description)}}),n("td",[e._v(e._s(t.type))]),n("td",[n("div",{domProps:{innerHTML:e._s(e.getHighlightedCodeString(t.defaultValue,"string"===t.type?"none":"javascript"))}})]),n("td",[n("div",{domProps:{innerHTML:e._s(e.getHighlightedCodeString(t.example,"string"===t.type?"none":"javascript"))}})])])}):n("tr",[n("td",{attrs:{colspan:"999"}},[e._v("\n No properties\n ")])])],2)])]),e._m(1,!0),n("div",{class:e.cssClassComponentsColumnComponentTableWrapper||e.cssOverrideClasses.componentsColumnComponentTableWrapper,staticStyle:{"margin-bottom":"1rem"}},[n("table",{class:e.cssClassComponentsColumnComponentTable||e.cssOverrideClasses.componentsColumnComponentTable},[e._m(2,!0),n("tbody",[t.events.length>0?e._l(t.events,function(r){return n("tr",{key:"event-"+r.name},[n("td",[e._v(e._s(r.name))]),n("td",{domProps:{innerHTML:e._s(r.description)}}),n("td",{domProps:{innerHTML:e._s(e.getHighlightedCodeString(r.example,"javascript"))}}),n("td",{domProps:{innerHTML:e._s(e.getEventExampleString(t,r))}})])}):n("tr",[n("td",{attrs:{colspan:"999"}},[e._v("No events")])])],2)])]),n("div",{class:e.cssClassRow||e.cssOverrideClasses.row},[n("div",{class:e.cssClassExampleMinimalColumn||e.cssOverrideClasses.exampleMinimal},[n("h2",[e._v("Minimal Example")]),n("div",{domProps:{innerHTML:e._s(e.getHighlightedCodeString(e.getComponentExampleHtml(t,!0),"html"))}})]),n("div",{class:e.cssClassExampleFullColumn||e.cssOverrideClasses.exampleFull},[n("h2",[e._v("Full Example")]),n("div",{domProps:{innerHTML:e._s(e.getHighlightedCodeString(e.getComponentExampleHtml(t),"html"))}})])])])}),0)]),n("div",{class:e.cssClassInstructions||e.cssOverrideClasses.instructions},[n("div",[n("h2",[e._v("If you're building a new Vue component and you want it to be auto-documented here")]),n("div",[n("p",[n("span",{class:e.cssClassBadgeRequired||e.cssOverrideClasses.badgeRequired},[e._v("Required")]),e._v(" The component must have it's properties defined with "),n("code",[e._v("type")]),e._v(" and "),n("code",[e._v("default")]),e._v(" properties, see "),n("a",{attrs:{href:"https://vuejs.org/v2/guide/components-props.html#Prop-Validation",target:"_blank"}},[e._v("Prop Validation")])]),n("p",[n("span",{class:e.cssClassBadgeOptional||e.cssOverrideClasses.badgeOptional},[e._v("Optional")]),e._v(" The component maybe also include a top level "),n("code",[e._v("meta")]),e._v(" property with a description, slot, and event availability, ex.\n"),n("code",{staticStyle:{"white-space":"pre"}},[e._v("\nmeta: {\n description: 'Optional component description that\\'ll get piped into the documentation',\n slots: {\n default: {\n type: 'component',\n valid: ['ComponentNameOne', 'ComponentNameTwo'],\n },\n named: [{\n name: 'filters',\n type: 'component',\n valid: ['OtherComponentName'],\n }],\n },\n events: [{\n name: 'date-selected',\n description: 'On date click',\n example: '2019-02-11',\n }],\n},\n")])]),n("p",[n("span",{class:e.cssClassBadgeOptional||e.cssOverrideClasses.badgeOptional},[e._v("Optional")]),e._v(" The component's properties may also include an additional "),n("code",[e._v("meta")]),e._v(" property in the property definition, ex.\n"),n("code",{staticStyle:{"white-space":"pre"}},[e._v("\nmeta: {\n required: [true|false],\n example: 'Example implementation code',\n description: 'Optional description of the property',\n deprecated: 'Deprecation note that will appear on hover',\n},\n")])])])])])])},o=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("Name")]),n("th",[e._v("Description")]),n("th",[e._v("Type")]),n("th",[e._v("Default Value")]),n("th",[e._v("Example")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[e._v("Events ("),n("a",{attrs:{href:"https://vuejs.org/v2/api/#vm-emit",target:"_blank"}},[e._v("Vue Docs")]),e._v(")")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("Name")]),n("th",[e._v("Description")]),n("th",[e._v("Example Value")]),n("th",[e._v("Usage")])])])}],a=(n("1c01"),n("58b2"),n("8e6e"),n("3b2b"),n("28a5"),n("4917"),n("6b54"),n("87b3"),n("55dd"),n("cadf"),n("456d"),n("ac6a"),n("f3e2"),n("a481"),n("4f37"),n("6d67"),n("7f7f"),n("a745")),i=n.n(a);function s(e){if(i()(e)){for(var t=0,n=new Array(e.length);tGithub and NPM',slots:{default:{type:"component",valid:["AnyComponent"]}}},components:{},props:{cssOverrideClasses:{type:Object,default:function(){return{badgeDeprecated:"badge badge-warning",badgeOptional:"badge badge-secondary",badgeRequired:"badge badge-danger",card:"card card-body",componentsColumn:"col-sm-9",componentsColumnComponent:"card card-body",componentsColumnComponentTableWrapper:"table-responsive",componentsColumnComponentTable:"table table-striped",container:"container-fluid",exampleMinimal:"col-sm-6",exampleFull:"col-sm-6",instructions:"alert alert-info",tableOfContentsColumn:"col-sm-3",tableOfContentsColumnList:"",row:"row"}},meta:{deprecated:"Override classes are now split out into their own properties",example:"{ card: 'your-custom-card-class' }"}},cssClassBadgeDeprecated:{type:String,default:"badge badge-warning",meta:{example:"your-custom-css-class-string"}},cssClassBadgeOptional:{type:String,default:"badge badge-secondary",meta:{example:"your-custom-css-class-string"}},cssClassBadgeRequired:{type:String,default:"badge badge-danger",meta:{example:"your-custom-css-class-string"}},cssClassCard:{type:String,default:"card card-body",meta:{example:"your-custom-css-class-string"}},cssClassComponentsColumn:{type:String,default:"col-sm-9",meta:{example:"your-custom-css-class-string"}},cssClassComponentsColumnComponent:{type:String,default:"card card-body",meta:{example:"your-custom-css-class-string"}},cssClassComponentsColumnComponentTableWrapper:{type:String,default:"table-responsive",meta:{example:"your-custom-css-class-string"}},cssClassComponentsColumnComponentTable:{type:String,default:"table table-striped",meta:{example:"your-custom-css-class-string"}},cssClassContainer:{type:String,default:"container-fluid",meta:{example:"your-custom-css-class-string"}},cssClassExampleMinimalColumn:{type:String,default:"col-sm-6",meta:{example:"your-custom-css-class-string"}},cssClassExampleFullColumn:{type:String,default:"col-sm-6",meta:{example:"your-custom-css-class-string"}},cssClassInstructions:{type:String,default:"alert alert-info",meta:{example:"your-custom-css-class-string"}},cssClassTableOfContentsColumn:{type:String,default:"col-sm-3",meta:{example:"your-custom-css-class-string"}},cssClassTableOfContentsColumnList:{type:String,default:"",meta:{example:"your-custom-css-class-string"}},cssClassRow:{type:String,default:"row",meta:{example:"your-custom-css-class-string"}},enableTableOfContents:{type:Boolean,default:!0,meta:{example:"false",description:"Show or hide the table of contents"}}},data:function(){return{loadedComponents:[]}},created:function(){this.cssClasses=C({},this.cssClasses,{},this.cssOverrideClasses)},mounted:function(){this.loadComponents()},methods:{loadComponents:function(){var e=this.$slots.default&&this.$slots.default.filter(function(e){return void 0!==e.tag});if(!e)return[];for(var t=0;t1&&void 0!==arguments[1]&&arguments[1],r=this.getKebabCaseFromCamelCase(e.name),o="";n||(o=e.events.map(function(e){return"\t@".concat(e.name,'="someFunction"')}).join("\n"),o&&(o="\n".concat(o,"\n")));var a=n?e.properties&&e.properties.filter(function(e){return e.required&&!e.deprecated}):e.properties&&e.properties.filter(function(e){return!e.deprecated}),i=a.map(function(e){return"\t".concat("string"===e.type?"":":").concat(e.name,'="').concat(e.example.replace(/[\r\n\t]+/g," ").replace(/\s+/g," ").trim(),'"')}).join("\n");i&&(i="".concat(o?"":"\n").concat(i,"\n"));var s="";if(!n){if(e.slots&&(e.slots.named&&e.slots.named.length>0&&e.slots.named.forEach(function(e){var n="";"component"===e.type&&e.valid.forEach(function(e){var r=t.getKebabCaseFromCamelCase(e);n="<".concat(r,"></").concat(r,">")}),s="\n".concat(s,"\t<template v-slot:").concat(e.name,">").concat(n,"</template>")}),e.slots.default)){s="".concat(s,"\n\t<template v-slot:default>");var c="";"component"===e.slots.default.type&&e.slots.default.valid.forEach(function(e){var n=t.getKebabCaseFromCamelCase(e);c="<".concat(n,"></").concat(n,">"),s="".concat(s,"\n\t\t").concat(c)}),s="".concat(s,"\n\t</template>")}s&&(s="".concat(s,"\n"))}var u="<".concat(r).concat(o).concat(i,">").concat(s,"</").concat(r,">");return u},getHighlightedCodeString:function(e,t){return'
').concat(e,"
")},loadProperties:function(e){if(!e)return!1;var t=[],n=e.componentInstance.$options.props&&Object.keys(e.componentInstance.$options.props);if(n){n.sort();for(var r=0;r { return value.toUpperCase() }",l=this.attemptCodeUnindent(l),s){var m=s.match(/{(.*)}/);m&&void 0!==m[1]&&(s=m[1]),s=this.attemptCodeUnindent(s)}break;case"number":l=l||"14";break;case"boolean":l=l||"true";break;default:l=l||""}l&&(l=l.replace(/"/g,"'")),t.push({name:a,type:i,defaultValue:s,example:l,description:f,required:c,deprecated:u})}t.length>0&&t.sort(function(e,t){var n=!!e.required,r=!!t.required;return n===r?e.name>t.name:n!==r&&n&&!r?-1:1})}return t},getEventExampleString:function(e,t){var n="<".concat(this.getKebabCaseFromCamelCase(e.name)," @").concat(t.name,"="someFunction" />");return this.getHighlightedCodeString(n,"html")},getKebabCaseFromCamelCase:function(e){return e&&e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},getPropertyType:function(e){if(e){var t=e.toString().split(" ")[1];return t.substr(0,t.length-2).toLowerCase()}return"unknown"},attemptCodeUnindent:function(e){var t=e.split("\n"),n=t.slice(-1)[0],r=n.match(/^\s*/)[0];if(r){var o=[];t.forEach(function(e){o.push(e.replace(new RegExp("^".concat(r)),""))}),e=o.join("\n")}return e}}},S=w;n("4527");function _(e,t,n,r,o,a,i,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var k=_(S,r,o,!1,null,"5cf2f3aa",null);t["a"]=k.exports},"5eda":function(e,t,n){var r=n("5ca1"),o=n("8378"),a=n("79e5");e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var a=n.call(e,t);if("object"!==typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},6109:function(e,t,n){"use strict";var r=n("bc25"),o=n("d13f"),a=n("0185"),i=n("9c93"),s=n("c227"),c=n("a5ab"),u=n("b3ec"),l=n("f159");o(o.S+o.F*!n("436c")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,p=a(e),d="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,v=void 0!==m,h=0,b=l(p);if(v&&(m=r(m,g>2?arguments[2]:void 0,2)),void 0==b||d==Array&&s(b))for(t=c(p.length),n=new d(t);t>h;h++)u(n,h,v?m(p[h],h):p[h]);else for(f=b.call(p),n=new d;!(o=f.next()).done;h++)u(n,h,v?i(f,m,[o.value,h],!0):o.value);return n.length=h,n}})},"613b":function(e,t,n){var r=n("5537")("keys"),o=n("ca5a");e.exports=function(e){return r[e]||(r[e]=o(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6821:function(e,t,n){var r=n("626a"),o=n("be13");e.exports=function(e){return r(o(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"6a9b":function(e,t,n){var r=n("8bab"),o=n("e5fa");e.exports=function(e){return r(o(e))}},"6b54":function(e,t,n){"use strict";n("3846");var r=n("cb7c"),o=n("0bfb"),a=n("9e1e"),i="toString",s=/./[i],c=function(e){n("2aba")(RegExp.prototype,i,e,!0)};n("79e5")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?c(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?o.call(e):void 0)}):s.name!=i&&c(function(){return s.call(this)})},"6d67":function(e,t,n){"use strict";var r=n("5ca1"),o=n("0a49")(1);r(r.P+r.F*!n("2f21")([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},"6e1f":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6f35":function(e,t,n){(function(){var t=Object.assign||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};function n(e){this.defaults=t({},e)}function r(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function o(e){for(var t=0,n=0;nt&&(a[s]="\n"+a[s],i=c)}n[r]=a.join("")}return n.join("\n")}},e.exports&&(e.exports=n),"undefined"!==typeof Prism&&(Prism.plugins.NormalizeWhitespace=new n({"remove-trailing":!0,"remove-indent":!0,"left-trim":!0,"right-trim":!0}),Prism.hooks.add("before-sanity-check",function(e){var t=Prism.plugins.NormalizeWhitespace;if(!e.settings||!1!==e.settings["whitespace-normalization"])if(e.element&&e.element.parentNode||!e.code){var n=e.element.parentNode,r=/(?:^|\s)no-whitespace-normalization(?:\s|$)/;if(e.code&&n&&"pre"===n.nodeName.toLowerCase()&&!r.test(n.className)&&!r.test(e.element.className)){for(var o=n.childNodes,a="",i="",s=!1,c=0;c";t.style.display="none",n("103a").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+i+"document.F=Object"+o+"/script"+i),e.close(),u=e.F;while(r--)delete u[c][a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[i]=e):n=u(),void 0===t?n:o(n,t)}},7633:function(e,t,n){var r=n("2695"),o=n("0029");e.exports=Object.keys||function(e){return r(e,o)}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("57f7")},7772:function(e,t,n){var r=n("a7d3"),o=n("da3c"),a="__core-js_shared__",i=o[a]||(o[a]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b457")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"77f1":function(e,t,n){var r=n("4588"),o=Math.max,a=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):a(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a56":function(e,t,n){"use strict";var r=n("7726"),o=n("86cc"),a=n("9e1e"),i=n("2b4c")("species");e.exports=function(e){var t=r[e];a&&t&&!t[i]&&o.f(t,i,{configurable:!0,get:function(){return this}})}},"7b00":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"7d8a":function(e,t,n){var r=n("6e1f"),o=n("1b55")("toStringTag"),a="Arguments"==r(function(){return arguments}()),i=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=i(t=Object(e),o))?n:a?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"7d95":function(e,t,n){e.exports=!n("d782")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"7f20":function(e,t,n){var r=n("86cc").f,o=n("69a8"),a=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,o=Function.prototype,a=/^\s*function ([^ (]*)/,i="name";i in o||n("9e1e")&&r(o,i,{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("ec5b")},"86cc":function(e,t,n){var r=n("cb7c"),o=n("c69a"),a=n("6a99"),i=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"87b3":function(e,t,n){var r=Date.prototype,o="Invalid Date",a="toString",i=r[a],s=r.getTime;new Date(NaN)+""!=o&&n("2aba")(r,a,function(){var e=s.call(this);return e===e?i.call(this):o})},"89ca":function(e,t,n){n("b42c"),n("93c4"),e.exports=n("d38f")},"8b97":function(e,t,n){var r=n("d3f4"),o=n("cb7c"),a=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(o){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},"8bab":function(e,t,n){var r=n("6e1f");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"8ce0":function(e,t,n){var r=n("3adc"),o=n("f845");e.exports=n("7d95")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"8e6e":function(e,t,n){var r=n("5ca1"),o=n("990b"),a=n("6821"),i=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),c=i.f,u=o(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&s(l,t,n);return l}})},9093:function(e,t,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"93c4":function(e,t,n){"use strict";var r=n("2a4e")(!0);n("e4a9")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},"990b":function(e,t,n){var r=n("9093"),o=n("2621"),a=n("cb7c"),i=n("7726").Reflect;e.exports=i&&i.ownKeys||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),e.exports=function(e){o[r][e]=!0}},"9c93":function(e,t,n){var r=n("0f89");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(i){var a=e["return"];throw void 0!==a&&r(a.call(e)),i}}},"9def":function(e,t,n){var r=n("4588"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a47f:function(e,t,n){e.exports=!n("7d95")&&!n("d782")(function(){return 7!=Object.defineProperty(n("12fd")("div"),"a",{get:function(){return 7}}).a})},a481:function(e,t,n){"use strict";var r=n("cb7c"),o=n("4bf8"),a=n("9def"),i=n("4588"),s=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,function(e,t,n,m){return[function(r,o){var a=e(this),i=void 0==r?void 0:r[t];return void 0!==i?i.call(r,a,o):n.call(String(a),r,o)},function(e,t){var o=m(n,e,this,t);if(o.done)return o.value;var f=r(e),p=String(this),d="function"===typeof t;d||(t=String(t));var h=f.global;if(h){var b=f.unicode;f.lastIndex=0}var y=[];while(1){var x=c(f,p);if(null===x)break;if(y.push(x),!h)break;var C=String(x[0]);""===C&&(f.lastIndex=s(p,a(f.lastIndex),b))}for(var w="",S=0,_=0;_=S&&(w+=p.slice(S,O)+E,S=O+k.length)}return w+p.slice(S)}];function v(e,t,r,a,i,s){var c=r+e.length,u=a.length,l=d;return void 0!==i&&(i=o(i),l=p),n.call(s,l,function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=i[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>u){var p=f(l/10);return 0===p?n:p<=u?void 0===a[p-1]?o.charAt(1):a[p-1]+o.charAt(1):n}s=a[l-1]}return void 0===s?"":s})}})},a5ab:function(e,t,n){var r=n("a812"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},a745:function(e,t,n){e.exports=n("d604")},a7d3:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},a812:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},aa77:function(e,t,n){var r=n("5ca1"),o=n("be13"),a=n("79e5"),i=n("fdef"),s="["+i+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var o={},s=a(function(){return!!i[e]()||c[e]()!=c}),u=o[e]=s?t(p):i[e];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},p=f.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},aae3:function(e,t,n){var r=n("d3f4"),o=n("2d95"),a=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==o(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),o=n("0d58"),a=n("2aba"),i=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(d),m=0;me.length)return;if(!(C instanceof o)){if(m&&y!=t.length-1){p.lastIndex=x;var w=p.exec(e);if(!w)break;for(var S=w.index+(g?w[1].length:0),_=w.index+w[0].length,k=y,O=x,A=t.length;k=O&&(++y,x=O);if(t[y]instanceof o)continue;j=k-y,C=e.slice(x,O),w.index-=x}else{p.lastIndex=0;w=p.exec(C);var j=1}if(w){g&&(v=w[1]?w[1].length:0);S=w.index+v,w=w[0].slice(v),_=S+w.length;var F=C.slice(0,S),T=C.slice(_),E=[y,j];F&&(++y,x+=F.length,E.push(F));var P=new o(u,d?r.tokenize(w,d):w,h,w,m);if(E.push(P),T&&E.push(T),Array.prototype.splice.apply(t,E),1!=j&&r.matchGrammar(e,t,n,y,x,!0,u),s)break}else if(s)break}}}}},tokenize:function(e,t){var n=[e],o=t.rest;if(o){for(var a in o)t[a]=o[a];delete t.rest}return r.matchGrammar(e,n,t,0,0,!1),n},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,a=0;o=n[a++];)o(t)}},Token:o};function o(e,t,n,r,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}if(e.Prism=r,o.stringify=function(e,t){if("string"==typeof e)return e;if(Array.isArray(e))return e.map(function(e){return o.stringify(e,t)}).join("");var n={type:e.type,content:o.stringify(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};if(e.alias){var a=Array.isArray(e.alias)?e.alias:[e.alias];Array.prototype.push.apply(n.classes,a)}r.hooks.run("wrap",n);var i=Object.keys(n.attributes).map(function(e){return e+'="'+(n.attributes[e]||"").replace(/"/g,""")+'"'}).join(" ");return"<"+n.tag+' class="'+n.classes.join(" ")+'"'+(i?" "+i:"")+">"+n.content+""},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),o=n.language,a=n.code,i=n.immediateClose;e.postMessage(r.highlight(a,r.languages[o],o)),i&&e.close()},!1),r):r;var a=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return a&&(r.filename=a.src,r.manual||a.hasAttribute("data-manual")||("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(r.highlightAll):window.setTimeout(r.highlightAll,16):document.addEventListener("DOMContentLoaded",r.highlightAll))),r}(n);e.exports&&(e.exports=r),"undefined"!==typeof t&&(t.Prism=r),r.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype://i,cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},r.languages.markup["tag"].inside["attr-value"].inside["entity"]=r.languages.markup["entity"],r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes["title"]=e.content.replace(/&/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:r.languages[t]},n["cdata"]=/^$/i;var o={"included-cdata":{pattern://i,inside:n}};o["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var a={};a[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:o},r.languages.insertBefore("markup","cdata",a)}}),r.languages.xml=r.languages.extend("markup",{}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css["atrule"].inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}}}),r.languages.markup&&r.languages.markup.tag.addInlined("script","javascript"),r.languages.js=r.languages.javascript,function(){"undefined"!==typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){var n,o=e.getAttribute("data-src"),a=e,i=/\blang(?:uage)?-([\w-]+)\b/i;while(a&&!i.test(a.className))a=a.parentNode;if(a&&(n=(e.className.match(i)||[,""])[1]),!n){var s=(o.match(/\.(\w+)$/)||[,""])[1];n=t[s]||s}var c=document.createElement("code");c.className="language-"+n,e.textContent="",c.textContent="Loading…",e.appendChild(c);var u=new XMLHttpRequest;u.open("GET",o,!0),u.onreadystatechange=function(){4==u.readyState&&(u.status<400&&u.responseText?(c.textContent=u.responseText,r.highlightElement(c),e.setAttribute("data-src-loaded","")):u.status>=400?c.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText:c.textContent="✖ Error: File does not exist or is empty")},u.send(null)}}),r.plugins.toolbar&&r.plugins.toolbar.registerButton("download-file",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-src")&&t.hasAttribute("data-download-link")){var n=t.getAttribute("data-src"),r=document.createElement("a");return r.textContent=t.getAttribute("data-download-link-label")||"Download",r.setAttribute("download",""),r.href=n,r}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}()}).call(this,n("c8ba"))},c227:function(e,t,n){var r=n("b22a"),o=n("1b55")("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},c366:function(e,t,n){var r=n("6821"),o=n("9def"),a=n("77f1");e.exports=function(e){return function(t,n,i){var s,c=r(t),u=o(c.length),l=a(i,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("89ca")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),o=n("d53b"),a=n("84f2"),i=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),o=n("6821"),a=n("c366")(!1),i=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=i&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~a(u,n)||u.push(n));return u}},d13f:function(e,t,n){var r=n("da3c"),o=n("a7d3"),a=n("bc25"),i=n("8ce0"),s=n("43c8"),c="prototype",u=function(e,t,n){var l,f,p,d=e&u.F,g=e&u.G,m=e&u.S,v=e&u.P,h=e&u.B,b=e&u.W,y=g?o:o[t]||(o[t]={}),x=y[c],C=g?r:m?r[t]:(r[t]||{})[c];for(l in g&&(n=t),n)f=!d&&C&&void 0!==C[l],f&&s(y,l)||(p=f?C[l]:n[l],y[l]=g&&"function"!=typeof C[l]?n[l]:h&&f?a(p,r):b&&C[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(p):v&&"function"==typeof p?a(Function.call,p):p,v&&((y.virtual||(y.virtual={}))[l]=p,e&u.R&&x&&!x[l]&&i(x,l,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},d1eb:function(e,t,n){t=e.exports=n("24fb")(!1),t.push([e.i,"code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-]::-moz-selection,code[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection,code[class*=language-] ::selection,pre[class*=language-]::selection,pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}",""])},d25f:function(e,t,n){"use strict";var r=n("5ca1"),o=n("0a49")(2);r(r.P+r.F*!n("2f21")([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},d38f:function(e,t,n){var r=n("7d8a"),o=n("1b55")("iterator"),a=n("b22a");e.exports=n("a7d3").isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||a.hasOwnProperty(r(t))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d604:function(e,t,n){n("1938"),e.exports=n("a7d3").Array.isArray},d782:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},da3c:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},dfbc:function(e,t,n){t=e.exports=n("24fb")(!1),t.i(n("d1eb"),""),t.push([e.i,"h2[data-v-5cf2f3aa]{margin-top:1rem}table td[data-v-5cf2f3aa]{white-space:nowrap}.alert h2[data-v-5cf2f3aa]{margin-top:.25rem;margin-bottom:1rem}",""])},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e341:function(e,t,n){var r=n("d13f");r(r.S+r.F*!n("7d95"),"Object",{defineProperty:n("3adc").f})},e4a9:function(e,t,n){"use strict";var r=n("b457"),o=n("d13f"),a=n("2312"),i=n("8ce0"),s=n("b22a"),c=n("5ce7"),u=n("c0d8"),l=n("ff0c"),f=n("1b55")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",g="keys",m="values",v=function(){return this};e.exports=function(e,t,n,h,b,y,x){c(n,t,h);var C,w,S,_=function(e){if(!p&&e in j)return j[e];switch(e){case g:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=b==m,A=!1,j=e.prototype,F=j[f]||j[d]||b&&j[b],T=F||_(b),E=b?O?_("entries"):T:void 0,P="Array"==t&&j.entries||F;if(P&&(S=l(P.call(new e)),S!==Object.prototype&&S.next&&(u(S,k,!0),r||"function"==typeof S[f]||i(S,f,v))),O&&F&&F.name!==m&&(A=!0,T=function(){return F.call(this)}),r&&!x||!p&&!A&&j[f]||i(j,f,T),s[t]=T,s[k]=v,b)if(C={values:O?T:_(m),keys:y?T:_(g),entries:E},x)for(w in C)w in j||a(j,w,C[w]);else o(o.P+o.F*(p||A),t,C);return C}},e5fa:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},e853:function(e,t,n){var r=n("d3f4"),o=n("1169"),a=n("2b4c")("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?Array:t}},ebd6:function(e,t,n){var r=n("cb7c"),o=n("d8e8"),a=n("2b4c")("species");e.exports=function(e,t){var n,i=r(e).constructor;return void 0===i||void 0==(n=r(i)[a])?t:o(n)}},ec5b:function(e,t,n){n("e341");var r=n("a7d3").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},f159:function(e,t,n){var r=n("7d8a"),o=n("1b55")("iterator"),a=n("b22a");e.exports=n("a7d3").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||a[r(e)]}},f1ae:function(e,t,n){"use strict";var r=n("86cc"),o=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},f2fe:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},f3e2:function(e,t,n){"use strict";var r=n("5ca1"),o=n("0a49")(0),a=n("2f21")([].forEach,!0);r(r.P+r.F*!a,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},f568:function(e,t,n){var r=n("3adc"),o=n("0f89"),a=n("7633");e.exports=n("7d95")?Object.defineProperties:function(e,t){o(e);var n,i=a(t),s=i.length,c=0;while(s>c)r.f(e,n=i[c++],t[n]);return e}},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f845:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},fa54:function(e,t,n){"use strict";var r=n("b3e7"),o=n("245b"),a=n("b22a"),i=n("6a9b");e.exports=n("e4a9")(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=n("b635");n.d(t,"install",function(){return o["b"]});t["default"]=o["a"]},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},ff0c:function(e,t,n){var r=n("43c8"),o=n("0185"),a=n("5d8f")("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}}})}); 2 | //# sourceMappingURL=vue-documenter.umd.min.js.map -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln 21 | *.sw? 22 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # example 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Run your tests 19 | ``` 20 | npm run test 21 | ``` 22 | 23 | ### Lints and fixes files 24 | ``` 25 | npm run lint 26 | ``` 27 | 28 | ### Customize configuration 29 | See [Configuration Reference](https://cli.vuejs.org/config/). 30 | -------------------------------------------------------------------------------- /example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/app' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "example", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "cd .. && npm run build && cp ./dist/vue-documenter.umd.js ./example/node_modules/vue-documenter/dist/ && cd ./example && vue-cli-service serve", 7 | "serve-dev": "cd .. && npm run build-dev && cp ./dist/vue-documenter.umd.js ./example/node_modules/vue-documenter/dist/ && cd ./example && vue-cli-service serve", 8 | "build": "vue-cli-service build", 9 | "lint": "vue-cli-service lint" 10 | }, 11 | "dependencies": { 12 | "core-js": "^2.6.5", 13 | "vue": "^2.6.10", 14 | "vue-documenter": "1.0.0" 15 | }, 16 | "devDependencies": { 17 | "@vue/cli-plugin-babel": "^3.11.0", 18 | "@vue/cli-plugin-eslint": "^3.11.0", 19 | "@vue/cli-service": "^3.11.0", 20 | "babel-eslint": "^10.0.3", 21 | "eslint": "^6.2.2", 22 | "eslint-plugin-vue": "^5.0.0", 23 | "node-sass": "^4.9.0", 24 | "sass-loader": "^7.3.1", 25 | "vue-template-compiler": "^2.6.10" 26 | }, 27 | "eslintConfig": { 28 | "root": true, 29 | "env": { 30 | "node": true 31 | }, 32 | "extends": [ 33 | "plugin:vue/essential", 34 | "eslint:recommended" 35 | ], 36 | "rules": {}, 37 | "parserOptions": { 38 | "parser": "babel-eslint" 39 | } 40 | }, 41 | "postcss": { 42 | "plugins": { 43 | "autoprefixer": {} 44 | } 45 | }, 46 | "browserslist": [ 47 | "> 1%", 48 | "last 2 versions" 49 | ] 50 | } 51 | -------------------------------------------------------------------------------- /example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theianjohnson/vue-documenter/a701b334cf9cfc99f7dbf76b054c835de27ba4ab/example/public/favicon.ico -------------------------------------------------------------------------------- /example/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | example 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /example/src/App.vue: -------------------------------------------------------------------------------- 1 | 10 | 11 | 23 | 24 | 27 | -------------------------------------------------------------------------------- /example/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theianjohnson/vue-documenter/a701b334cf9cfc99f7dbf76b054c835de27ba4ab/example/src/assets/logo.png -------------------------------------------------------------------------------- /example/src/components/HelloWorld.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 131 | 132 | 133 | 149 | -------------------------------------------------------------------------------- /example/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | render: h => h(App), 8 | }).$mount('#app') 9 | -------------------------------------------------------------------------------- /example/vue-documenter-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theianjohnson/vue-documenter/a701b334cf9cfc99f7dbf76b054c835de27ba4ab/example/vue-documenter-example.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-documenter", 3 | "version": "1.1.0", 4 | "description": "An automatic Vue component documenter - yes - a component that documents components", 5 | "author": "Ian Johnson", 6 | "scripts": { 7 | "serve": "vue-cli-service serve src/index.js", 8 | "build": "vue-cli-service build --target lib --name vue-documenter ./src/index.js", 9 | "build-dev": "vue-cli-service build --mode development --target lib --name vue-documenter ./src/index.js" 10 | }, 11 | "main": "dist/vue-documenter.common.js", 12 | "module": "dist/vue-documenter.umd.js", 13 | "unpkg": "dist/vue-documenter.umd.js", 14 | "files": [ 15 | "dist/*", 16 | "src/*", 17 | "public/*", 18 | "*.json", 19 | "*.js" 20 | ], 21 | "dependencies": { 22 | "core-js": "^2.6.5", 23 | "prismjs": "^1.17.1" 24 | }, 25 | "devDependencies": { 26 | "@vue/cli-plugin-babel": "^3.11.0", 27 | "@vue/cli-service": "^3.11.0", 28 | "css-loader": "^3.2.0", 29 | "node-sass": "^4.12.0", 30 | "postcss-loader": "^3.0.0", 31 | "sass-loader": "^7.3.1", 32 | "vue-loader": "^15.7.1", 33 | "vue-template-compiler": "^2.6.10", 34 | "webpack": "^4.39.3" 35 | }, 36 | "keywords": [ 37 | "vuejs", 38 | "vue", 39 | "documenation", 40 | "dynamic analysis" 41 | ], 42 | "license": "ISC", 43 | "repository": { 44 | "type": "git", 45 | "url": "https://github.com/theianjohnson/vue-documenter" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/VueDocumenter.vue: -------------------------------------------------------------------------------- 1 | 156 | 157 | 676 | 677 | 703 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | // Import vue component 2 | import VueDocumenter from './VueDocumenter.vue'; 3 | 4 | // Declare install function executed by Vue.use() 5 | export function install(Vue) { 6 | if (install.installed) return; 7 | install.installed = true; 8 | Vue.component('VueDocumenter', VueDocumenter); 9 | } 10 | 11 | // Create module definition for Vue.use() 12 | const plugin = { 13 | install, 14 | }; 15 | 16 | // Auto-install when vue is found (eg. in browser via