text: webpackJsonp([1],{"82Gx":function(t,a){},EiFT:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAACcFBMVEUAAAAcHBwdHR3///8zMzMcHBwbGxsaGhobGxsrKysaGhobGxsbGxsaGhobGxsaGhpVVVUzMzMaGhobGxsbGxsbGxsbGxsnJycaGhoaGhobGxsiIiIkJCQrKysbGxsbGxsgICAkJCQbGxtAQEAkJCQaGhobGxuAgIAaGhouLi4bGxsgICAbGxsaGhoaGhobGxsbGxscHBwbGxscHBwbGxsbGxsbGxscHBwbGxsmJiYbGxsdHR0aGhocHBwaGhoaGhocHBwcHBwdHR0iIiIcHBwbGxsbGxsbGxscHBwbGxscHBwcHBwfHx8hISEaGhobGxsbGxsgICAbGxsaGhobGxsaGhoaGhocHBwaGhobGxseHh4bGxsaGhobGxsbGxsbGxsdHR0bGxsbGxsdHR0bGxsbGxsbGxsbGxscHBwbGxseHh4gICAbGxsaGhoaGhobGxsaGhoaGhobGxsbGxsaGhobGxsaGhobGxsaGhoaGhoaGhocHBwaGhobGxsbGxsdHR0aGhodHR0cHBweHh4bGxsbGxsbGxsdHR0aGhocHBwbGxscHBwbGxsbGxsbGxscHBwbGxsbGxsbGxsaGhoaGhoaGhoaGhoeHh4jIyMaGhocHBwbGxscHBwcHBwbGxsbGxsbGxseHh4aGhodHR0bGxsaGhocHBwaGhocHBwaGhocHBwbGxsaGhobGxsbGxsaGhobGxseHh4bGxsaGhobGxsaGhobGxsbGxsbGxsaGhogICAbGxsbGxsdHR0bGxscHBwaGhocHBwbGxsaGhocHBwbGxsbGxsbGxsaGhobGxsfHx8aGhocHBwfHx8aGhoaGhpb1WbNAAAAz3RSTlMAJEYBCnj36PgG/tjsOtD8AwX1+eI5yA3W9IQeFQw43QgOXQQH+9ECVwtfGLz9wYWjXJYSffqgQPYUHEfnWiewJTdZD0mDraotn1uAIR/p7u0QmOHOh2pu1KsRVLnZJrU0zzA1rHvJvxvlPCC28v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BtHC6sooUQzhddGmuYgini+ZLhnC66EXJEE4XvaQbglg4XQ0vK4ZwuujAK7oheDXF6LXFuiGYaYHidbohmGOBznrdkGibBd6IcB44/V9CECtMTS986+0Vh+LvNg/PqMZ54AxD9kLZdoaUQ9l7DIlB2RH+9EVQxidN70NZeZK/F1D2gY37EMpOMuRjKPuEIZ9C2GZ2LIsgrJ8hXRA2lMaQ9RAWZ8dgBXTlrGTI5xD2hVEmhH3JjkYIO23UDF2Jo+woboKur6Q/CLXtZ8fXEDafHdnfQFdlkiHfQtfy79iR/j10jbKjYTN0/WAUh67MBnacgq6hE+worIas+oPsyG+DrNwf2VGyBbJytrFj8CfIavqZHZOPQVZ0Muj4Bbp6g44BCPu1ZPzZayWE8SL72wjE/W7nZP0BdYkdZtZeA31lGfZnAqRr+FCEf+Ccc84555xzzjn3F11aVtBiO6paAAAAAElFTkSuQmCC"},NHnr:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("7+uW"),s=e("2EC8"),i=e.n(s),r=e("/zV6"),l=e.n(r),o=e("5CJf"),c=e.n(o),u={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},staticRenderFns:[]};var d=e("VU/8")({name:"App"},u,!1,function(t){e("Y2gL")},null,null).exports,h=e("/ocq"),m={input:[{name:"alice.js",lang:"javascript",content:"\n// Alice is a developer.\nconst alice = {\n  name: 'Alice',\n  beverage: 'Club-Mate',\n  monitors: 2,\n  languages: [\n    'python',\n    'haskell',\n    'c++',\n    '68k assembly', // Alice is cool like that!\n  ],\n};\n\n// Instruct to write the alice object as a YAML file.\nexport default [\n  { value: alice, file: `developers/${alice.name.toLowerCase()}.yaml` },\n];\n".trim()}],output:[{name:"alice.yaml",lang:"YAML",content:"\nbeverage: Club-Mate\nlanguages:\n- python\n- haskell\n- c++\n- 68k assembly\nmonitors: 2\nname: Alice\n".trim()}]},g="\nimport { MicroService } from './micro-service';\n\nconst billing = {\n  name: 'billing',\n  description: 'Provides the /api/billing endpoints for frontend.',\n  maintainer: 'damien@weave.works',\n  namespace: 'billing',\n  port: 80,\n  image: 'quay.io/acmecorp/billing:master-fd986f62',\n  ingress: {\n    path: '/api/billing',\n  },\n  dashboards: [\n    'service.RPS.HTTP',\n  ],\n  alerts: [\n    'service.RPS.HTTP.HighErrorRate',\n  ],\n};\n\nexport default MicroService(billing);\n".trim(),v="\napiVersion: v1\nkind: Namespace\nmetadata:\n  name: billing\n".trim(),b={input:[{name:"billing.js",lang:"javascript",content:g}],output:[{name:"billing-deploy.yaml",lang:"YAML",content:"\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  labels:\n    app: billing\n    maintainer: damien@weave.works\n  name: billing\n  namespace: billing\nspec:\n  revisionHistoryLimit: 2\n  selector:\n    matchLabels:\n      app: billing\n  strategy:\n    rollingUpdate:\n      maxSurge: 1\n      maxUnavailable: 0\n  template:\n    metadata:\n      labels:\n        app: billing\n        maintainer: damien@weave.works\n    spec:\n      containers:\n      - image: quay.io/acmecorp/billing:master-fd986f62\n        name: billing\n        ports:\n        - containerPort: 80\n".trim()},{name:"billing-svc.yaml",lang:"YAML",content:"\napiVersion: v1\nkind: Service\nmetadata:\n  labels:\n    app: billing\n    maintainer: damien@weave.works\n  name: billing\n  namespace: billing\nspec:\n  ports:\n  - port: 80\n  selector:\n    app: billing\n".trim()},{name:"billing-ingress.yaml",lang:"YAML",content:"\napiVersion: extensions/v1beta1\nkind: Ingress\nmetadata:\n  annotations:\n    nginx.ingress.kubernetes.io/rewrite-target: /\n  labels:\n    app: billing\n    maintainer: damien@weave.works\n  name: billing\n  namespace: billing\nspec:\n  rules:\n  - http:\n      paths:\n      - backend:\n          serviceName: billing\n          servicePort: 80\n        path: /api/billing\n".trim()},{name:"billing-dashboards-cm.yaml",lang:"YAML",content:'\napiVersion: v1\ndata:\n  dashboard: \'[{"annotations":{"list":[]},"editable":false,"gnetId":null,"graphTooltip":0,"hideControls":false,"id":null,"links":[],"panels":[{"aliasColors":{},"bars":false,"dashLength":10,"dashes":false,"dataSource":"$PROMETHEUS_DS","datasource":null,"fill":1,"gridPos":{"h":7,"w":12,"x":0,"y":0},"id":2,"legend":{"alignAsTable":false,"avg":false,"current":false,"max":false,"min":false,"rightSide":false,"show":true,"total":false,"values":false},"lines":true,"linewidth":1,"links":[],"nullPointMode":"null","percentage":false,"pointradius":5,"points":false,"renderer":"flot","repeat":null,"seriesOverrides":[],"spaceLength":10,"stack":false,"steppedLine":false,"targets":[{"expr":"sum\n    by (code)(sum(irate(http_requests_total{job=\'\'billing\'\'}[2m])))","format":"time_series","intervalFactor":2,"legendFormat":"{{code}}","refId":"A"}],"thresholds":[],"title":"billing\n    RPS","tooltip":{"shared":true,"sort":0,"value_type":"individual"},"type":"graph","xaxis":{"buckets":null,"mode":"time","name":null,"show":true},"yaxis":[{"format":"short","label":null,"logBase":1,"max":null,"min":null,"show":true},{"format":"short","label":null,"logBase":1,"max":null,"min":null,"show":true}]},{"aliasColors":{},"bars":false,"dashLength":10,"dashes":false,"dataSource":"$PROMETHEUS_DS","datasource":null,"fill":1,"gridPos":{"h":7,"w":12,"x":12,"y":0},"id":3,"legend":{"alignAsTable":false,"avg":false,"current":false,"max":false,"min":false,"rightSide":false,"show":true,"total":false,"values":false},"lines":true,"linewidth":1,"links":[],"nullPointMode":"null","percentage":false,"pointradius":5,"points":false,"renderer":"flot","repeat":null,"seriesOverrides":[],"spaceLength":10,"stack":false,"steppedLine":false,"targets":[{"expr":"histogram_quantile(0.99,\n    sum(rate(http_request_duration_seconds_bucket{job=\'\'billing\'\'}[2m])) by (route)\n    * 1e3","format":"time_series","intervalFactor":2,"legendFormat":"99th percentile","refId":"A"},{"expr":"histogram_quantile(0.50,\n    sum(rate(http_request_duration_seconds_bucket{job=\'\'billing\'\'}[2m])) by (route)\n    * 1e3","format":"time_series","intervalFactor":2,"legendFormat":"median","refId":"B"},{"expr":"sum(rate(http_request_total{job=\'\'billing\'\'}[2m]))\n    / sum(rate(http_request_duration_seconds_count{job=\'\'billing\'\'}[2m])) * 1e3","format":"time_series","intervalFactor":2,"legendFormat":"mean","refId":"C"}],"thresholds":[],"title":"billing\n    Latency","tooltip":{"shared":true,"sort":0,"value_type":"individual"},"type":"graph","xaxis":{"buckets":null,"mode":"time","name":null,"show":true},"yAxis":[{"format":"ms","label":null,"logBase":1,"max":null,"min":null,"show":true},{"format":"short","label":null,"logBase":1,"max":null,"min":null,"show":true}],"yaxis":[{"format":"short","label":null,"logBase":1,"max":null,"min":null,"show":true},{"format":"short","label":null,"logBase":1,"max":null,"min":null,"show":true}]}],"refresh":"","schemaVersion":16,"style":"dark","tags":[],"templating":{"list":[]},"time":{"from":"now-6h","to":"now"},"timepicker":{"refresh_intervals":["5s","10s","30s","1m","5m","15m","30m","1h","2h","1d"],"time_options":["5m","15m","1h","6h","12h","24h","2d","7d","30d"]},"timezone":"browser","title":"Service\n    > billing","uid":"","version":0}]\'\nkind: ConfigMap\nmetadata:\n  labels:\n    app: billing\n    maintainer: damien@weave.works\n  name: billing-dashboards\n  namespace: billing\n'.trim()},{name:"billing-prometheus-rule.yaml",lang:"YAML",content:'\napiVersion: monitoring.coreos.com/v1\nkind: PrometheusRule\nmetadata:\n  labels:\n    app: billing\n    maintainer: damien@weave.works\n    prometheus: global\n    role: alert-rules\n  name: billing\nspec:\n  groups:\n  - name: billing-alerts.rules\n    rules:\n    - alert: HighErrorRate\n      annotations:\n        description: More than 10% of requests to the billing service are failing\n          with 5xx errors\n        details: \'{{$value | printf "%.1f"}}% errors for more than 5m\'\n        service: billing\n      expr: |-\n        rate(http_request_total{job=billing,code=~"5.."}[2m])\n            / rate(http_request_duration_seconds_count{job=billing}[2m]) * 100 > 10\n      for: 5m\n      labels:\n        severity: critical\n'.trim()},{name:"billing-ns.yaml",lang:"YAML",content:v}]},p={name:"Home",data:function(){return{alice:m,kubernetes:b}}},f={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",[n("navbar"),t._v(" "),n("div",{staticClass:"uk-section"},[n("div",{staticClass:"uk-width-1-1 uk-text-center"},[n("div",{staticClass:"uk-container"},[n("img",{attrs:{src:e("EiFT")}}),t._v(" "),t._m(0),t._v(" "),n("div",[n("router-link",{staticClass:"uk-button uk-button-primary uk-margin-right",attrs:{to:"/documentation/quick-start"}},[t._v("\n            Get Started\n          ")]),t._v(" "),t._m(1)],1)])])]),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"uk-section"},[n("div",{staticClass:"uk-container"},[n("div",{staticClass:"uk-width-1-1"},[n("div",{staticClass:"uk-grid",attrs:{"uk-grid":""}},[t._m(3),t._v(" "),t._m(4),t._v(" "),n("div",{staticClass:"uk-width-1-2"},[n("codepane",{attrs:{files:t.alice.input}})],1),t._v(" "),n("div",{staticClass:"uk-width-1-2"},[n("codepane",{attrs:{files:t.alice.output}})],1),t._v(" "),t._m(5),t._v(" "),t._m(6),t._v(" "),n("div",{staticClass:"uk-width-1-2"},[n("codepane",{attrs:{files:t.kubernetes.input}})],1),t._v(" "),n("div",{staticClass:"uk-width-1-2"},[n("codepane",{attrs:{files:t.kubernetes.output}})],1)])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("h2",{staticClass:"uk-margin-medium-bottom"},[this._v("Configuration as "),a("b",[this._v("Code")]),this._v(".")])},function(){var t=this.$createElement,a=this._self._c||t;return a("a",{staticClass:"uk-button uk-button-default uk-margin-left uk-margin-right",attrs:{href:"https://github.com/jkcfg/jk/releases/latest"}},[a("span",{staticClass:"tm-upper"},[this._v("Download")]),this._v(" "),a("canvas",{attrs:{"uk-icon":"icon: download",width:"20",height:"20"}})])},function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"uk-section uk-section-muted"},[e("div",{staticClass:"uk-align-center"},[e("div",{staticClass:"uk-container"},[e("div",{staticClass:"uk-grid uk-grid-match",attrs:{"uk-grid":""}},[e("div",{staticClass:"uk-width-1-2"},[e("div",{staticClass:"uk-card uk-card-default uk-card-body"},[e("h4",{staticClass:"uk-card-title"},[t._v("Write code")]),t._v(" "),e("p",[t._v("Use the expressivity of "),e("a",{attrs:{href:"http://www.ecma-international.org/publications/standards/Ecma-262.htm"}},[t._v("\n              ECMAScript")]),t._v(", the world's largest "),e("a",{attrs:{href:"https://www.npmjs.com/"}},[t._v("software ecosystem")]),t._v(" and the\n              speed of "),e("a",{attrs:{href:"https://v8.dev/"}},[t._v("v8")]),t._v(" to build, organize\n              and maintain configuration.")])])]),t._v(" "),e("div",{staticClass:"uk-width-1-2"},[e("div",{staticClass:"uk-card uk-card-default uk-card-body"},[e("h4",{staticClass:"uk-card-title"},[t._v("Generate configuration")]),t._v(" "),e("p",[e("code",[t._v("jk")]),t._v(" generates all your JSON, YAML and\n              arbitrary text configuration files. With a little luck, you\n              will not have to touch a YAML file again. Ever.")])])])])])])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"uk-width-1-2"},[a("div",{staticClass:"uk-card uk-card-default uk-card-body noshadow"},[a("h4",{staticClass:"uk-card-title"},[this._v("Write JavaScript objects")])])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"uk-width-1-2"},[a("div",{staticClass:"uk-card uk-card-default uk-card-body noshadow"},[a("h4",{staticClass:"uk-card-title"},[this._v("Generate YAML (or JSON, plain text, ...)")])])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"uk-width-1-2"},[a("div",{staticClass:"uk-card uk-card-default uk-card-body noshadow"},[a("h4",{staticClass:"uk-card-title"},[this._v("Write high-level microservice definitions")])])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"uk-width-1-2"},[a("div",{staticClass:"uk-card uk-card-default uk-card-body noshadow"},[a("h4",{staticClass:"uk-card-title"},[this._v("Generate their Kubernetes configuration")])])])}]};var k=e("VU/8")(p,f,!1,function(t){e("bMS8")},"data-v-f7567b90",null).exports,M=e("rr5i"),x=e.n(M),w={name:"Documentation",data:function(){return{navigation:x.a,ids:{},page:!1,component:!1}}},G={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("navbar",{attrs:{sticky:"true",active:"documentation"}}),t._v(" "),e("div",{staticClass:"tm-sidebar-left uk-visible@m"},t._l(t.navigation,function(a,n,s){return e("ul",{key:s,staticClass:"uk-nav uk-nav-default tm-nav",class:{"uk-margin-top":s}},[e("li",{staticClass:"uk-nav-header"},[t._v(t._s(n))]),t._v(" "),t._l(a,function(a,n){return e("router-link",{key:a,attrs:{tag:"li",to:"/documentation/"+a}},[e("a",[t._v(t._s(n))])])})],2)}),0),t._v(" "),e("div",{staticClass:"tm-main uk-section uk-section-default"},[e("div",{staticClass:"uk-container uk-container-small uk-position-relative"},[e("markdownpage"),t._v(" "),e("div",{staticClass:"tm-sidebar-right uk-visible@l"},[e("div",{attrs:{"uk-sticky":"offset: 160"}},[e("ul",{staticClass:"uk-nav uk-nav-default tm-nav uk-nav-parent-icon",attrs:{"uk-scrollspy-nav":"closest: li; scroll: true; offset: 100"}},[t._l(t.ids,function(a,n){return e("li",{key:a},[e("a",{attrs:{href:"#"+a}},[t._v(t._s(n))])])}),t._v(" "),e("li",{staticClass:"uk-nav-divider"}),t._v(" "),t.component?e("li",[e("a",{attrs:{href:"../assets/uikit/tests/"+t.component+".html",target:"_blank"}},[e("span",{staticClass:"uk-margin-small-right",attrs:{"uk-icon":"icon: push"}}),t._v(" "),e("span",{staticClass:"uk-text-middle"},[t._v("Open test")])])]):t._e(),t._v(" "),t._m(0)],2)])])],1)]),t._v(" "),e("div",{attrs:{id:"offcanvas","uk-offcanvas":"mode: push; overlay: true"}},[e("div",{staticClass:"uk-offcanvas-bar"},[e("div",{staticClass:"uk-panel"},[t._m(1),t._v(" "),t._l(t.navigation,function(a,n,s){return e("ul",{key:s,staticClass:"uk-nav uk-nav-default tm-nav uk-margin-top"},[e("li",{staticClass:"uk-nav-header"},[t._v(t._s(n))]),t._v(" "),t._l(a,function(a,n,s){return e("li",{key:s,attrs:{exact:""}},[e("a",{attrs:{href:"#/documentation/"+a}},[t._v(t._s(n))])])})],2)})],2)])])],1)},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("li",[a("a",{attrs:{href:"https://github.com/jkcfg/jk/issues",target:"_blank"}},[a("span",{staticClass:"uk-margin-small-right",attrs:{"uk-icon":"icon: warning"}}),this._v(" "),a("span",{staticClass:"uk-text-middle"},[this._v("Report issue")])])])},function(){var t=this.$createElement,a=this._self._c||t;return a("ul",{staticClass:"uk-nav uk-nav-default tm-nav"},[a("li",{staticClass:"uk-nav-header"},[this._v("General")]),this._v(" "),a("li",[a("a",{attrs:{href:"/"}},[this._v("Home")])])])}]},y=e("VU/8")(w,G,!1,null,null,null).exports;n.a.use(h.a);var N=new h.a({linkActiveClass:"uk-active",routes:[{path:"/",component:k},{path:"/documentation/",redirect:"/documentation/quick-start"},{path:"/documentation/:page/",component:y},{path:"/documentation/:page/:href/",component:y}]}),C={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("ul",{attrs:{"uk-tab":""}},t._l(t.files,function(a){return e("li",{key:a.name},[e("a",{attrs:{href:"#"}},[e("span",{staticClass:"tm-lower"},[t._v(t._s(a.name))])])])}),0),t._v(" "),e("ul",{staticClass:"uk-switcher uk-margin"},t._l(t.files,function(t){return e("li",{key:t.name},[e("pre",{directives:[{name:"highlightjs",rawName:"v-highlightjs",value:t.content,expression:"file.content"}],staticClass:"maxheight"},[e("code",{class:t.lang})])])}),0)])},staticRenderFns:[]};var _=e("VU/8")({name:"CodePanel",props:["files"]},C,!1,function(t){e("82Gx")},"data-v-37c94c62",null).exports,j={render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"uk-navbar-container tm-navbar-container",attrs:{"uk-sticky":!!t.sticky&&"media: 960"}},[n("div",{staticClass:"uk-container uk-container-expand"},[n("nav",{staticClass:"uk-navbar"},[n("div",{staticClass:"uk-navbar-left"},[n("router-link",{staticClass:"uk-navbar-item uk-logo",attrs:{to:"/"}},[n("img",{attrs:{src:e("a7Jz")}})])],1),t._v(" "),n("div",{staticClass:"uk-navbar-right"},[n("ul",{staticClass:"uk-navbar-nav uk-visible@m"},[n("router-link",{class:{"uk-active":"documentation"==t.active},attrs:{to:"/documentation/quick-start",tag:"li"}},[n("a",[t._v("Documentation")])]),t._v(" "),t._m(0)],1),t._v(" "),t._m(1),t._v(" "),n("a",{staticClass:"uk-navbar-toggle uk-hidden@m",attrs:{"uk-navbar-toggle-icon":"",href:"#offcanvas","uk-toggle":""}})])])])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("li",[a("a",{attrs:{href:"https://github.com/jkcfg/jk",rel:"noopener",target:"_blank"}},[this._v("Github")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"uk-navbar-item uk-visible@m"},[a("a",{staticClass:"uk-button uk-button-default tm-button-default uk-icon",attrs:{href:"https://github.com/jkcfg/jk/releases/latest"}},[a("span",{staticClass:"tm-upper"},[this._v("Download")]),this._v(" "),a("canvas",{attrs:{"uk-icon":"icon: download",width:"20",height:"20"}})])])}]},I=e("VU/8")({name:"Navbar",props:["sticky","active"]},j,!1,null,null,null).exports,D=e("V8mf"),A=e.n(D),T=e("TQvf"),E=e.n(T),L=e("2bpm"),z=e.n(L),H=e("t02m"),O=e("EFqf"),B=e.n(O),Q=e("qaNP");function U(t,a){var e=this,n=new B.a.Renderer({langPrefix:"lang-"}),s=new B.a.Renderer({langPrefix:"lang-"}),i=function(t){var a=location.hash.split("/").splice(0,3);return a[0]="",a.push(function(t){return t.toLowerCase().trim().replace(/(&amp;| & )/g,"-and-").replace(/&(.+?);/g,"").replace(/[\s\W-]+/g,"-")}(t)),a.join("/")};return n.strong=function(t){return"Note"===t?'<span class="uk-label">'+t+"</span>":"<strong>"+t+"</strong>"},n.list=function(t){return'<ul class="uk-list uk-list-bullet">'+t+"</ul>"},n.link=function(t,a,e){return t.match(/\.md/)?s.link(t.replace(/.md(.*)/,"$1"),a,e):s.link(t,a,e)},n.code=function(t,a,e){return"example"===a?function(t){var a=z()("code-");return'<div class="uk-position-relative uk-margin-medium">\n\n                    <ul uk-tab>\n                        <li><a href="#">Preview</a></li>\n                        <li><a href="#">Markup</a></li>\n                    </ul>\n\n                    <ul class="uk-switcher uk-margin">\n                        <li>'+t+'</li>\n                        <li><pre><code id="'+a+'" class="lang-html">'+Object(H.escape)(t)+'</code></pre></li>\n                    </ul>\n\n                    <div class="uk-position-top-right uk-margin-small-top">\n                        <ul class="uk-iconnav">\n                            <li><a class="js-copy" uk-tooltip="Copy to Clipboard" rel="#'+a+'"><img class="uk-icon" src="../images/icon-clipboard.svg" uk-svg></a></li>\n                            <li><a class="js-codepen" uk-tooltip="Edit on Codepen" rel="#'+a+'"><img class="uk-icon" src="../images/icon-flask.svg" uk-svg></a></li>\n                        </ul>\n                    </div>\n                </div>'}(t):'<div class="uk-margin-medium">'+s.code(t,a,e)+"</div>"},n.hr=function(){return'<hr class="uk-margin-large">'},n.table=function(t,a){return'<div class="uk-overflow-auto"><table class="uk-table uk-table-divider"><thead>'+t+"</thead><tbody>"+a+"</tbody></table></div>"},n.heading=function(t,a){return"<h"+a+' id="'+i(t)+'" class="uk-h'+(a>1?a+1:a)+' tm-heading-fragment"><a href="#'+i(t)+'">'+t+"</a></h"+a+">"},B()(t,{renderer:n},function(t,n){n=n.replace(/%%latestVersion%%/g,Q.jk.latestVersion),a&&a.apply(e,[t,n])})}var S=i.a.util,R=S.$,Y=S.$$,P=S.ajax,Z=S.attr,V=S.offset,F=S.on,q=S.Promise,W=S.startsWith,J={name:"MarkdownPage",data:function(){return{error:null,cache:{}}},mounted:function(){new E.a("a.js-copy",{text:function(t){return R(Z(t,"rel")).innerText}}).on("success",function(){i.a.notification({message:"Copied!",pos:"bottom-right"})}).on("error",function(){i.a.notification({message:"Copy failed!",status:"danger",pos:"bottom-right"})}),F(this.$refs.container,"click",'[href="#"]',function(t){return t.preventDefault()}),F(document,"click",'a[href^="#"]:not([href="#"])',function(t){return history.pushState({},"",t.target.href)}),F(window,"popstate",function(){setTimeout(function(){location.hash&&R(location.hash)&&scrollTo(0,V(R(location.hash)).top-100)})})},watch:{$route:{handler:function(){var t=this,a=this.$route.params.page;this.error=null,this.$parent.page=a,new q(function(e,n){t.cache[a]?e(t.cache[a]):P("static/docs/"+a+".md?{{BUILD}}").then(function(n){var s=n.response;W(s.trim(),"<!DOCTYPE html>")&&(s='<div class="uk-text-center">\n                                                <h1>404</h1>\n                                                <p class="uk-text-large">Page not found!</p>\n                                            </div>'),t.cache[a]=s,e(s)},function(t){return n(t)})}).then(function(a){U(a,function(a,e){a?(t.page=null,t.error=a):t.setPage(e)})},function(){t.error="Failed loading page"})},immediate:!0}},methods:{setPage:function(t){var a=this;document.title=""+this.$parent.page.split("-").map(i.a.util.ucfirst).join(" "),function(t,a){t.innerHTML="";var e=document.createRange();e.selectNode(t),t.appendChild(e.createContextualFragment(a))}(this.$refs.container,t),this.$parent.ids=Y('> h2 a[href^="#"]',this.$refs.container).reduce(function(t,a){return t[a.innerText]=Z(a,"href").substr(1),t},{});var e=this.$route.params.href;e&&R("#"+e)?scrollTo(0,V(R("#"+e)).top-100):scrollTo(0,0),setTimeout(function(){return Y("pre code",a.$refs.container).forEach(function(t){return A.a.highlightBlock(t)})})}}},$={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",[this.error?a("div",{staticClass:"uk-alert uk-alert-danger"},[this._v(this._s(this.error))]):this._e(),this._v(" "),a("div",{ref:"container"})])},staticRenderFns:[]},K=e("VU/8")(J,$,!1,null,null,null).exports;function X(){var t=window.dataLayer;t||(t=[],window.dataLayer=t);for(var a=arguments.length,e=Array(a),n=0;n<a;n++)e[n]=arguments[n];t.push(e)}n.a.config.productionTip=!1,n.a.use(c.a),n.a.component("navbar",I),n.a.component("codepane",_),n.a.component("markdownpage",K),i.a.use(l.a),new n.a({el:"#app",router:N,components:{App:d,Navbar:I},template:"<App/>"}),function(t){var a,e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};X("js",new Date),X("config",t,n),a="https://www.googletagmanager.com/gtag/js?id="+t,(e=document.createElement("script")).src=a,e.async=!0,document.head.appendChild(e)}("UA-130052649-1",{anonymize_ip:!0})},Y2gL:function(t,a){},a7Jz:function(t,a){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNjRweCIgaGVpZ2h0PSI2NHB4IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1LjEgKDc4MTM2KSAtIGh0dHBzOi8vc2tldGNoYXBwLmNvbSAtLT4KICAgIDx0aXRsZT5qay1sb2dvLTY0eDY0PC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGcgaWQ9ImprLWxvZ28tNjR4NjQiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0xNy4wNCw1NS41NzY2OTU2IEMxOS4zOTk2NTM1LDUzLjM4NzY2MSAyMS4wNzUzMjQzLDUwLjg3MzcyOTMgMjIuMDY3MDYyNyw0OC4wMzQ4MjUxIEMyMi40NDMyMzkzLDQ2Ljk3NDUxMTUgMjIuNjMxMzI0OCw0NS45MTQyMTM3IDIyLjYzMTMyNDgsNDQuODUzOTAwMSBMMjIuNjMxMzI0OCwxOS4yMDEyNzkzIEwyNS45NjU2MDExLDE4Ljk0NDc1MzEgTDI1Ljk2NTYwMTEsNDUuMTYxNzMxNiBDMjUuOTY1NjAxMSw0Ny44OTgwMjQ4IDI1LjA0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MzIuMjM2NjA1NCwzMS4yMDY3MDU5IEw0NC4yNCw0NC44NTM5MDAxIEw0MC4xNzQ3NDc4LDQ1LjExMDQyNjMgTDI4LjU4MTcyNTYsMzEuMjA2NzA1OSBMMzguODkyMzMzOCwxOS4yMDEyNzkzIFoiIGlkPSJqayIgZmlsbD0iIzFBMUExQSIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICA8L2c+Cjwvc3ZnPg=="},bMS8:function(t,a){},qaNP:function(t,a){t.exports={jk:{latestVersion:"0.2.8"}}},rr5i:function(t,a){t.exports={"Getting started":{"Quick start":"quick-start"},Tour:{Logging:"std-log","Writing files":"std-write","Reading files":"std-read","Input parameters":"std-param",Filesystem:"std-fs"}}}},["NHnr"]);
  //# sourceMappingURL=app.d08516d718c746896b0c.js.map