UNPKG

@techdocs/cli

Version:

Utility CLI for managing TechDocs sites in Backstage.

2 lines • 45.2 kB
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["8292"],{82291(t,n,e){e.d(n,{A:()=>M});var r,o,c,i,a,u,l,s,h=e(17545);function f(t,n,e,r,o,c,i){try{var a=t[c](i),u=a.value}catch(t){return void e(t)}a.done?n(u):Promise.resolve(u).then(r,o)}function d(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var c=t.apply(n,e);function i(t){f(c,r,o,i,a,"next",t)}function a(t){f(c,r,o,i,a,"throw",t)}i(void 0)})}}var p=e(89575),g=e(55152),b=e(30414),y=e(95309),m=e(72715),v=e(29296),j=e(24586),w=e(14041),L=e(39850),x=e(62064);function k(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function O(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?k(Object(e),!0).forEach(function(n){(0,j.A)(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):k(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}var N={};let E=function(t,n){return -1!==t.listLanguages().indexOf(n)};var S=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function P(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function A(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?P(Object(e),!0).forEach(function(n){(0,j.A)(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):P(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}var _=/\n/g;function G(t){var n,e,r,o,c=t.codeString,i=t.codeStyle,a=t.containerStyle,u=t.numberStyle,l=t.startingLineNumber;return w.createElement("code",{style:Object.assign({},i,void 0===a?{float:"left",paddingRight:"10px"}:a)},(e=(n={lines:c.replace(/\n$/,"").split("\n"),style:void 0===u?{}:u,startingLineNumber:l}).lines,r=n.startingLineNumber,o=n.style,e.map(function(t,n){var e=n+r;return w.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof o?o(e):o},"".concat(e,"\n"))})))}function q(t,n){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:n},children:[{type:"text",value:t}]}}function R(t,n,e){var r={display:"inline-block",minWidth:"".concat(e.toString().length,".25em"),paddingRight:"1em",textAlign:"right",userSelect:"none"},o="function"==typeof t?t(n):t;return A(A({},r),o)}function T(t){var n=t.children,e=t.lineNumber,r=t.lineNumberStyle,o=t.largestLineNumber,c=t.showInlineLineNumbers,i=t.lineProps,a=void 0===i?{}:i,u=t.className,l=void 0===u?[]:u,s=t.showLineNumbers,h=t.wrapLongLines,f=t.wrapLines,d=void 0!==f&&f?A({},"function"==typeof a?a(e):a):{};if(d.className=d.className?[].concat((0,x.A)(d.className.trim().split(/\s+/)),(0,x.A)(l)):l,e&&c){var p=R(r,e,o);n.unshift(q(e,p))}return h&s&&(d.style=A({display:"flex"},d.style)),{type:"element",tagName:"span",properties:d,children:n}}function I(t){var n=t.rows,e=t.stylesheet,r=t.useInlineStyles;return n.map(function(t,n){return function t(n){var e=n.node,r=n.stylesheet,o=n.style,c=n.useInlineStyles,i=n.key,a=e.properties,u=e.type,l=e.tagName,s=e.value;if("text"===u)return s;if(l){var h,f,d=(h=0,function(n){return h+=1,n.map(function(n,e){return t({node:n,stylesheet:r,useInlineStyles:c,key:"code-segment-".concat(h,"-").concat(e)})})});if(c){var g=Object.keys(r).reduce(function(t,n){return n.split(".").forEach(function(n){t.includes(n)||t.push(n)}),t},[]),b=a.className&&a.className.includes("token")?["token"]:[],y=a.className&&b.concat(a.className.filter(function(t){return!g.includes(t)}));f=O(O({},a),{},{className:y.join(" ")||void 0,style:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;return(function(t){if(0===t.length||1===t.length)return t;var n,e=t.join(".");return N[e]||(N[e]=0===(n=t.length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),N[e]})(t.filter(function(t){return"token"!==t})).reduce(function(t,n){return O(O({},t),e[n])},n)}(a.className,Object.assign({},a.style,void 0===o?{}:o),r)})}else f=O(O({},a),{},{className:a.className.join(" ")});var m=d(e.children);return w.createElement(l,(0,p.A)({key:i},f),m)}}({node:t,stylesheet:e,useInlineStyles:r,key:"code-segment-".concat(n)})})}function C(t){return t&&void 0!==t.highlightAuto}function W(){W=function(){return n};var t,n={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,n,e){t[n]=e.value},c="function"==typeof Symbol?Symbol:{},i=c.iterator||"@@iterator",a=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function l(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,e){return t[n]=e}}function s(n,e,r,c){var i,a,u,l,s=Object.create((e&&e.prototype instanceof y?e:y).prototype);return o(s,"_invoke",{value:(i=n,a=r,u=new S(c||[]),l=d,function(n,e){if(l===p)throw Error("Generator is already running");if(l===g){if("throw"===n)throw e;return{value:t,done:!0}}for(u.method=n,u.arg=e;;){var r=u.delegate;if(r){var o=function n(e,r){var o=r.method,c=e.iterator[o];if(c===t)return r.delegate=null,"throw"===o&&e.iterator.return&&(r.method="return",r.arg=t,n(e,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var i=f(c,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}(r,u);if(o){if(o===b)continue;return o}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(l===d)throw l=g,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);l=p;var c=f(i,a,u);if("normal"===c.type){if(l=u.done?g:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:u.done}}"throw"===c.type&&(l=g,u.method="throw",u.arg=c.arg)}})}),s}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}n.wrap=s;var d="suspendedStart",p="executing",g="completed",b={};function y(){}function m(){}function v(){}var j={};l(j,i,function(){return this});var w=Object.getPrototypeOf,L=w&&w(w(P([])));L&&L!==e&&r.call(L,i)&&(j=L);var x=v.prototype=y.prototype=Object.create(j);function k(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){var e;o(this,"_invoke",{value:function(o,c){function i(){return new n(function(e,i){!function e(o,c,i,a){var u=f(t[o],t,c);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==(0,h.A)(s)&&r.call(s,"__await")?n.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):n.resolve(s).then(function(t){l.value=t,i(l)},function(t){return e("throw",t,i,a)})}a(u.arg)}(o,c,e,i)})}return e=e?e.then(i,i):i()}})}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function E(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(n){if(n||""===n){var e=n[i];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,c=function e(){for(;++o<n.length;)if(r.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return c.next=c}}throw TypeError((0,h.A)(n)+" is not iterable")}return m.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},n.awrap=function(t){return{__await:t}},k(O.prototype),l(O.prototype,a,function(){return this}),n.AsyncIterator=O,n.async=function(t,e,r,o,c){void 0===c&&(c=Promise);var i=new O(s(t,e,r,o),c);return n.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},k(x),l(x,u,"Generator"),l(x,i,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),n.keys=function(t){var n=Object(t),e=[];for(var r in n)e.push(r);return e.reverse(),function t(){for(;e.length;){var r=e.pop();if(r in n)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=P,S.prototype={constructor:S,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!n)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var e=this;function o(r,o){return a.type="throw",a.arg=n,e.next=r,o&&(e.method="next",e.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var i=c?c.completion:{};return i.type=t,i.arg=n,c?(this.method="next",this.next=c.finallyLoc,b):this.complete(i)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),b},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;E(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,e,r){return this.delegate={iterator:P(n),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}function D(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(D=function(){return!!t})()}function F(){F=function(){return n};var t,n={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,n,e){t[n]=e.value},c="function"==typeof Symbol?Symbol:{},i=c.iterator||"@@iterator",a=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function l(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,e){return t[n]=e}}function s(n,e,r,c){var i,a,u,l,s=Object.create((e&&e.prototype instanceof y?e:y).prototype);return o(s,"_invoke",{value:(i=n,a=r,u=new S(c||[]),l=d,function(n,e){if(l===p)throw Error("Generator is already running");if(l===g){if("throw"===n)throw e;return{value:t,done:!0}}for(u.method=n,u.arg=e;;){var r=u.delegate;if(r){var o=function n(e,r){var o=r.method,c=e.iterator[o];if(c===t)return r.delegate=null,"throw"===o&&e.iterator.return&&(r.method="return",r.arg=t,n(e,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var i=f(c,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,b)}(r,u);if(o){if(o===b)continue;return o}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(l===d)throw l=g,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);l=p;var c=f(i,a,u);if("normal"===c.type){if(l=u.done?g:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:u.done}}"throw"===c.type&&(l=g,u.method="throw",u.arg=c.arg)}})}),s}function f(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}n.wrap=s;var d="suspendedStart",p="executing",g="completed",b={};function y(){}function m(){}function v(){}var j={};l(j,i,function(){return this});var w=Object.getPrototypeOf,L=w&&w(w(P([])));L&&L!==e&&r.call(L,i)&&(j=L);var x=v.prototype=y.prototype=Object.create(j);function k(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function O(t,n){var e;o(this,"_invoke",{value:function(o,c){function i(){return new n(function(e,i){!function e(o,c,i,a){var u=f(t[o],t,c);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==(0,h.A)(s)&&r.call(s,"__await")?n.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):n.resolve(s).then(function(t){l.value=t,i(l)},function(t){return e("throw",t,i,a)})}a(u.arg)}(o,c,e,i)})}return e=e?e.then(i,i):i()}})}function N(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function E(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function P(n){if(n||""===n){var e=n[i];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,c=function e(){for(;++o<n.length;)if(r.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return c.next=c}}throw TypeError((0,h.A)(n)+" is not iterable")}return m.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},n.awrap=function(t){return{__await:t}},k(O.prototype),l(O.prototype,a,function(){return this}),n.AsyncIterator=O,n.async=function(t,e,r,o,c){void 0===c&&(c=Promise);var i=new O(s(t,e,r,o),c);return n.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},k(x),l(x,u,"Generator"),l(x,i,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),n.keys=function(t){var n=Object(t),e=[];for(var r in n)e.push(r);return e.reverse(),function t(){for(;e.length;){var r=e.pop();if(r in n)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=P,S.prototype={constructor:S,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!n)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var e=this;function o(r,o){return a.type="throw",a.arg=n,e.next=r,o&&(e.method="next",e.arg=t),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var i=this.tryEntries[c],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===t||"continue"===t)&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var i=c?c.completion:{};return i.type=t,i.arg=n,c?(this.method="next",this.next=c.finallyLoc,b):this.complete(i)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),b},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),E(e),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;E(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,e,r){return this.delegate={iterator:P(n),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=t),b}},n}let z=function(t,n){var e;return e=d(F().mark(function e(r){var o;return F().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:r(t,(o=e.sent).default||o);case 4:case"end":return e.stop()}},e)})),function(t){return e.apply(this,arguments)}},M=(o=(r={loader:function(){return e.e("8508").then(e.t.bind(e,63341,19)).then(function(t){return t.default||t})},isLanguageRegistered:function(t,n){return!!E(t,n)},languageLoaders:{oneC:z("oneC",function(){return e.e("8190").then(e.t.bind(e,87431,23))}),abnf:z("abnf",function(){return e.e("3724").then(e.t.bind(e,25104,23))}),accesslog:z("accesslog",function(){return e.e("1107").then(e.t.bind(e,24407,23))}),actionscript:z("actionscript",function(){return e.e("3310").then(e.t.bind(e,50594,23))}),ada:z("ada",function(){return e.e("5431").then(e.t.bind(e,49643,23))}),angelscript:z("angelscript",function(){return e.e("8317").then(e.t.bind(e,60297,23))}),apache:z("apache",function(){return e.e("7781").then(e.t.bind(e,50733,23))}),applescript:z("applescript",function(){return e.e("3664").then(e.t.bind(e,39952,23))}),arcade:z("arcade",function(){return e.e("5623").then(e.t.bind(e,4663,23))}),arduino:z("arduino",function(){return e.e("6983").then(e.t.bind(e,11535,23))}),armasm:z("armasm",function(){return e.e("7830").then(e.t.bind(e,34338,23))}),asciidoc:z("asciidoc",function(){return e.e("4268").then(e.t.bind(e,6004,23))}),aspectj:z("aspectj",function(){return e.e("5261").then(e.t.bind(e,46585,23))}),autohotkey:z("autohotkey",function(){return e.e("5430").then(e.t.bind(e,80726,23))}),autoit:z("autoit",function(){return e.e("2813").then(e.t.bind(e,94885,23))}),avrasm:z("avrasm",function(){return e.e("1981").then(e.t.bind(e,3493,23))}),awk:z("awk",function(){return e.e("5998").then(e.t.bind(e,22686,23))}),axapta:z("axapta",function(){return e.e("2380").then(e.t.bind(e,96804,23))}),bash:z("bash",function(){return e.e("4765").then(e.t.bind(e,78385,23))}),basic:z("basic",function(){return e.e("4533").then(e.t.bind(e,89681,23))}),bnf:z("bnf",function(){return e.e("1009").then(e.t.bind(e,23133,23))}),brainfuck:z("brainfuck",function(){return e.e("368").then(e.t.bind(e,21356,23))}),cLike:z("cLike",function(){return e.e("5197").then(e.t.bind(e,88636,23))}),c:z("c",function(){return e.e("6566").then(e.t.bind(e,60802,23))}),cal:z("cal",function(){return e.e("5747").then(e.t.bind(e,32907,23))}),capnproto:z("capnproto",function(){return e.e("7399").then(e.t.bind(e,29015,23))}),ceylon:z("ceylon",function(){return e.e("6215").then(e.t.bind(e,43371,23))}),clean:z("clean",function(){return e.e("506").then(e.t.bind(e,54186,23))}),clojureRepl:z("clojureRepl",function(){return e.e("9142").then(e.t.bind(e,41105,23))}),clojure:z("clojure",function(){return e.e("6735").then(e.t.bind(e,14171,23))}),cmake:z("cmake",function(){return e.e("9108").then(e.t.bind(e,55144,23))}),coffeescript:z("coffeescript",function(){return e.e("7016").then(e.t.bind(e,29868,23))}),coq:z("coq",function(){return e.e("3978").then(e.t.bind(e,36058,23))}),cos:z("cos",function(){return e.e("8736").then(e.t.bind(e,99280,23))}),cpp:z("cpp",function(){return e.e("7134").then(e.t.bind(e,16554,23))}),crmsh:z("crmsh",function(){return e.e("3156").then(e.t.bind(e,84892,23))}),crystal:z("crystal",function(){return e.e("1497").then(e.t.bind(e,35253,23))}),csharp:z("csharp",function(){return e.e("9404").then(e.t.bind(e,29984,23))}),csp:z("csp",function(){return e.e("7197").then(e.t.bind(e,36797,23))}),css:z("css",function(){return e.e("6940").then(e.t.bind(e,24948,23))}),d:z("d",function(){return e.e("6119").then(e.t.bind(e,46763,23))}),dart:z("dart",function(){return e.e("8698").then(e.t.bind(e,62018,23))}),delphi:z("delphi",function(){return e.e("3587").then(e.t.bind(e,51307,23))}),diff:z("diff",function(){return e.e("9676").then(e.t.bind(e,68340,23))}),django:z("django",function(){return e.e("6032").then(e.t.bind(e,80008,23))}),dns:z("dns",function(){return e.e("552").then(e.t.bind(e,1484,23))}),dockerfile:z("dockerfile",function(){return e.e("9573").then(e.t.bind(e,55485,23))}),dos:z("dos",function(){return e.e("3321").then(e.t.bind(e,85193,23))}),dsconfig:z("dsconfig",function(){return e.e("4532").then(e.t.bind(e,13740,23))}),dts:z("dts",function(){return e.e("3414").then(e.t.bind(e,42554,23))}),dust:z("dust",function(){return e.e("7855").then(e.t.bind(e,39467,23))}),ebnf:z("ebnf",function(){return e.e("9352").then(e.t.bind(e,48084,23))}),elixir:z("elixir",function(){return e.e("1980").then(e.t.bind(e,22496,23))}),elm:z("elm",function(){return e.e("9751").then(e.t.bind(e,8139,23))}),erb:z("erb",function(){return e.e("2352").then(e.t.bind(e,4340,23))}),erlangRepl:z("erlangRepl",function(){return e.e("2377").then(e.t.bind(e,56900,23))}),erlang:z("erlang",function(){return e.e("1872").then(e.t.bind(e,74700,23))}),excel:z("excel",function(){return e.e("7472").then(e.t.bind(e,10424,23))}),fix:z("fix",function(){return e.e("3248").then(e.t.bind(e,44344,23))}),flix:z("flix",function(){return e.e("5860").then(e.t.bind(e,29488,23))}),fortran:z("fortran",function(){return e.e("1313").then(e.t.bind(e,1429,23))}),fsharp:z("fsharp",function(){return e.e("1365").then(e.t.bind(e,12165,23))}),gams:z("gams",function(){return e.e("9047").then(e.t.bind(e,67239,23))}),gauss:z("gauss",function(){return e.e("2894").then(e.t.bind(e,6906,23))}),gcode:z("gcode",function(){return e.e("2587").then(e.t.bind(e,1627,23))}),gherkin:z("gherkin",function(){return e.e("6657").then(e.t.bind(e,79889,23))}),glsl:z("glsl",function(){return e.e("6899").then(e.t.bind(e,57171,23))}),gml:z("gml",function(){return e.e("4163").then(e.t.bind(e,57531,23))}),go:z("go",function(){return e.e("9285").then(e.t.bind(e,51233,23))}),golo:z("golo",function(){return e.e("6908").then(e.t.bind(e,36984,23))}),gradle:z("gradle",function(){return e.e("6968").then(e.t.bind(e,24296,23))}),groovy:z("groovy",function(){return e.e("3237").then(e.t.bind(e,43117,23))}),haml:z("haml",function(){return e.e("2249").then(e.t.bind(e,57909,23))}),handlebars:z("handlebars",function(){return e.e("7923").then(e.t.bind(e,43123,23))}),haskell:z("haskell",function(){return e.e("8599").then(e.t.bind(e,76971,23))}),haxe:z("haxe",function(){return e.e("3323").then(e.t.bind(e,23883,23))}),hsp:z("hsp",function(){return e.e("2056").then(e.t.bind(e,3992,23))}),htmlbars:z("htmlbars",function(){return e.e("3036").then(e.t.bind(e,92240,23))}),http:z("http",function(){return e.e("9935").then(e.t.bind(e,3127,23))}),hy:z("hy",function(){return e.e("592").then(e.t.bind(e,46144,23))}),inform7:z("inform7",function(){return e.e("9453").then(e.t.bind(e,93561,23))}),ini:z("ini",function(){return e.e("1553").then(e.t.bind(e,71517,23))}),irpf90:z("irpf90",function(){return e.e("987").then(e.t.bind(e,57363,23))}),isbl:z("isbl",function(){return e.e("7997").then(e.t.bind(e,75409,23))}),java:z("java",function(){return e.e("5583").then(e.t.bind(e,74639,23))}),javascript:z("javascript",function(){return e.e("9860").then(e.t.bind(e,94704,23))}),jbossCli:z("jbossCli",function(){return e.e("5944").then(e.t.bind(e,74999,23))}),json:z("json",function(){return e.e("9457").then(e.t.bind(e,70365,23))}),juliaRepl:z("juliaRepl",function(){return e.e("3075").then(e.t.bind(e,88450,23))}),julia:z("julia",function(){return e.e("1822").then(e.t.bind(e,62010,23))}),kotlin:z("kotlin",function(){return e.e("6798").then(e.t.bind(e,55702,23))}),lasso:z("lasso",function(){return e.e("2429").then(e.t.bind(e,99225,23))}),latex:z("latex",function(){return e.e("3383").then(e.t.bind(e,26619,23))}),ldif:z("ldif",function(){return e.e("2176").then(e.t.bind(e,90564,23))}),leaf:z("leaf",function(){return e.e("531").then(e.t.bind(e,96447,23))}),less:z("less",function(){return e.e("7702").then(e.t.bind(e,78074,23))}),lisp:z("lisp",function(){return e.e("5287").then(e.t.bind(e,7473,23))}),livecodeserver:z("livecodeserver",function(){return e.e("5911").then(e.t.bind(e,21835,23))}),livescript:z("livescript",function(){return e.e("278").then(e.t.bind(e,12202,23))}),llvm:z("llvm",function(){return e.e("5374").then(e.t.bind(e,66142,23))}),lsl:z("lsl",function(){return e.e("3192").then(e.t.bind(e,18816,23))}),lua:z("lua",function(){return e.e("97").then(e.t.bind(e,10209,23))}),makefile:z("makefile",function(){return e.e("6267").then(e.t.bind(e,93123,23))}),markdown:z("markdown",function(){return e.e("4762").then(e.t.bind(e,82410,23))}),mathematica:z("mathematica",function(){return e.e("3583").then(e.t.bind(e,12135,23))}),matlab:z("matlab",function(){return e.e("8138").then(e.t.bind(e,61586,23))}),maxima:z("maxima",function(){return e.e("3400").then(e.t.bind(e,1080,23))}),mel:z("mel",function(){return e.e("9281").then(e.t.bind(e,89937,23))}),mercury:z("mercury",function(){return e.e("7082").then(e.t.bind(e,92174,23))}),mipsasm:z("mipsasm",function(){return e.e("477").then(e.t.bind(e,54861,23))}),mizar:z("mizar",function(){return e.e("8332").then(e.t.bind(e,34080,23))}),mojolicious:z("mojolicious",function(){return e.e("5982").then(e.t.bind(e,95406,23))}),monkey:z("monkey",function(){return e.e("6690").then(e.t.bind(e,10714,23))}),moonscript:z("moonscript",function(){return e.e("9989").then(e.t.bind(e,89177,23))}),n1ql:z("n1ql",function(){return e.e("9927").then(e.t.bind(e,69571,23))}),nginx:z("nginx",function(){return e.e("2203").then(e.t.bind(e,90395,23))}),nim:z("nim",function(){return e.e("5275").then(e.t.bind(e,48083,23))}),nix:z("nix",function(){return e.e("8568").then(e.t.bind(e,76656,23))}),nodeRepl:z("nodeRepl",function(){return e.e("2554").then(e.t.bind(e,69697,23))}),nsis:z("nsis",function(){return e.e("168").then(e.t.bind(e,13532,23))}),objectivec:z("objectivec",function(){return e.e("4575").then(e.t.bind(e,7231,23))}),ocaml:z("ocaml",function(){return e.e("203").then(e.t.bind(e,94927,23))}),openscad:z("openscad",function(){return e.e("6872").then(e.t.bind(e,12128,23))}),oxygene:z("oxygene",function(){return e.e("1028").then(e.t.bind(e,89620,23))}),parser3:z("parser3",function(){return e.e("5031").then(e.t.bind(e,25755,23))}),perl:z("perl",function(){return e.e("514").then(e.t.bind(e,10690,23))}),pf:z("pf",function(){return e.e("221").then(e.t.bind(e,90293,23))}),pgsql:z("pgsql",function(){return e.e("3600").then(e.t.bind(e,90012,23))}),phpTemplate:z("phpTemplate",function(){return e.e("317").then(e.t.bind(e,53230,23))}),php:z("php",function(){return e.e("3147").then(e.t.bind(e,73095,23))}),plaintext:z("plaintext",function(){return e.e("5328").then(e.t.bind(e,68416,23))}),pony:z("pony",function(){return e.e("5191").then(e.t.bind(e,66647,23))}),powershell:z("powershell",function(){return e.e("66").then(e.t.bind(e,30270,23))}),processing:z("processing",function(){return e.e("6324").then(e.t.bind(e,99136,23))}),profile:z("profile",function(){return e.e("9842").then(e.t.bind(e,61798,23))}),prolog:z("prolog",function(){return e.e("7200").then(e.t.bind(e,72680,23))}),properties:z("properties",function(){return e.e("9146").then(e.t.bind(e,87582,23))}),protobuf:z("protobuf",function(){return e.e("8856").then(e.t.bind(e,42756,23))}),puppet:z("puppet",function(){return e.e("9893").then(e.t.bind(e,71409,23))}),purebasic:z("purebasic",function(){return e.e("7991").then(e.t.bind(e,17371,23))}),pythonRepl:z("pythonRepl",function(){return e.e("6924").then(e.t.bind(e,59611,23))}),python:z("python",function(){return e.e("6689").then(e.t.bind(e,33981,23))}),q:z("q",function(){return e.e("3052").then(e.t.bind(e,79464,23))}),qml:z("qml",function(){return e.e("9517").then(e.t.bind(e,36133,23))}),r:z("r",function(){return e.e("9661").then(e.t.bind(e,98209,23))}),reasonml:z("reasonml",function(){return e.e("6378").then(e.t.bind(e,61902,23))}),rib:z("rib",function(){return e.e("2350").then(e.t.bind(e,16222,23))}),roboconf:z("roboconf",function(){return e.e("9873").then(e.t.bind(e,18381,23))}),routeros:z("routeros",function(){return e.e("3528").then(e.t.bind(e,47788,23))}),rsl:z("rsl",function(){return e.e("8858").then(e.t.bind(e,56634,23))}),ruby:z("ruby",function(){return e.e("8183").then(e.t.bind(e,34759,23))}),ruleslanguage:z("ruleslanguage",function(){return e.e("1926").then(e.t.bind(e,75578,23))}),rust:z("rust",function(){return e.e("7301").then(e.t.bind(e,55153,23))}),sas:z("sas",function(){return e.e("3730").then(e.t.bind(e,27738,23))}),scala:z("scala",function(){return e.e("6441").then(e.t.bind(e,56585,23))}),scheme:z("scheme",function(){return e.e("5204").then(e.t.bind(e,79108,23))}),scilab:z("scilab",function(){return e.e("9655").then(e.t.bind(e,83259,23))}),scss:z("scss",function(){return e.e("1331").then(e.t.bind(e,51355,23))}),shell:z("shell",function(){return e.e("7529").then(e.t.bind(e,61949,23))}),smali:z("smali",function(){return e.e("135").then(e.t.bind(e,37255,23))}),smalltalk:z("smalltalk",function(){return e.e("8614").then(e.t.bind(e,39454,23))}),sml:z("sml",function(){return e.e("3151").then(e.t.bind(e,36943,23))}),sqf:z("sqf",function(){return e.e("7941").then(e.t.bind(e,62661,23))}),sql:z("sql",function(){return e.e("7795").then(e.t.bind(e,20299,23))}),sqlMore:z("sqlMore",function(){return e.e("2098").then(e.t.bind(e,75923,23))}),stan:z("stan",function(){return e.e("8011").then(e.t.bind(e,91283,23))}),stata:z("stata",function(){return e.e("2766").then(e.t.bind(e,95682,23))}),step21:z("step21",function(){return e.e("160").then(e.t.bind(e,40992,23))}),stylus:z("stylus",function(){return e.e("6601").then(e.t.bind(e,58597,23))}),subunit:z("subunit",function(){return e.e("4667").then(e.t.bind(e,83067,23))}),swift:z("swift",function(){return e.e("1928").then(e.t.bind(e,14632,23))}),taggerscript:z("taggerscript",function(){return e.e("4442").then(e.t.bind(e,41654,23))}),tap:z("tap",function(){return e.e("8646").then(e.t.bind(e,25278,23))}),tcl:z("tcl",function(){return e.e("5091").then(e.t.bind(e,31256,23))}),thrift:z("thrift",function(){return e.e("8280").then(e.t.bind(e,72752,23))}),tp:z("tp",function(){return e.e("6579").then(e.t.bind(e,2443,23))}),twig:z("twig",function(){return e.e("7282").then(e.t.bind(e,69966,23))}),typescript:z("typescript",function(){return e.e("3356").then(e.t.bind(e,18576,23))}),vala:z("vala",function(){return e.e("4389").then(e.t.bind(e,89205,23))}),vbnet:z("vbnet",function(){return e.e("7072").then(e.t.bind(e,92064,23))}),vbscriptHtml:z("vbscriptHtml",function(){return e.e("9969").then(e.t.bind(e,80052,23))}),vbscript:z("vbscript",function(){return e.e("220").then(e.t.bind(e,63008,23))}),verilog:z("verilog",function(){return e.e("9169").then(e.t.bind(e,4841,23))}),vhdl:z("vhdl",function(){return e.e("8441").then(e.t.bind(e,42113,23))}),vim:z("vim",function(){return e.e("211").then(e.t.bind(e,38891,23))}),x86asm:z("x86asm",function(){return e.e("4702").then(e.t.bind(e,90378,23))}),xl:z("xl",function(){return e.e("1155").then(e.t.bind(e,50131,23))}),xml:z("xml",function(){return e.e("2866").then(e.t.bind(e,26450,23))}),xquery:z("xquery",function(){return e.e("6775").then(e.t.bind(e,65915,23))}),yaml:z("yaml",function(){return e.e("1436").then(e.t.bind(e,75332,23))}),zephir:z("zephir",function(){return e.e("9829").then(e.t.bind(e,5257,23))})},registerLanguage:function(t,n,e){return t.registerLanguage(n,e)}}).loader,c=r.isLanguageRegistered,i=r.registerLanguage,a=r.languageLoaders,u=r.noAsyncLoadingLanguages,l=function(t){var n;function e(){var t,n;return(0,g.A)(this,e),t=e,n=arguments,t=(0,m.A)(t),(0,y.A)(this,D()?Reflect.construct(t,n||[],(0,m.A)(this).constructor):t.apply(this,n))}return(0,v.A)(e,t),(0,b.A)(e,[{key:"componentDidUpdate",value:function(){!e.isRegistered(this.props.language)&&a&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var t=this;e.astGeneratorPromise||e.loadAstGenerator(),e.astGenerator||e.astGeneratorPromise.then(function(){t.forceUpdate()}),!e.isRegistered(this.props.language)&&a&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var t=this,n=this.props.language;"text"!==n&&e.loadLanguage(n).then(function(){return t.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(t){return e.isSupportedLanguage(t)?t:"text"}},{key:"render",value:function(){return w.createElement(e.highlightInstance,(0,p.A)({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:e.astGenerator}))}}],[{key:"preload",value:function(){return e.loadAstGenerator()}},{key:"loadLanguage",value:(n=d(W().mark(function t(n){var r;return W().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof(r=a[n])){t.next=5;break}return t.abrupt("return",r(e.registerLanguage));case 5:throw Error("Language ".concat(n," not supported"));case 6:case"end":return t.stop()}},t)})),function(t){return n.apply(this,arguments)})},{key:"isSupportedLanguage",value:function(t){return e.isRegistered(t)||"function"==typeof a[t]}},{key:"loadAstGenerator",value:function(){return e.astGeneratorPromise=o().then(function(t){e.astGenerator=t,i&&e.languages.forEach(function(n,e){return i(t,e,n)})}),e.astGeneratorPromise}}])}(w.PureComponent),(0,j.A)(l,"astGenerator",null),(0,j.A)(l,"highlightInstance",(s={},function(t){var n,e,r=t.language,o=t.children,c=t.style,i=void 0===c?s:c,a=t.customStyle,u=void 0===a?{}:a,l=t.codeTagProps,h=void 0===l?{className:r?"language-".concat(r):void 0,style:A(A({},i['code[class*="language-"]']),i['code[class*="language-'.concat(r,'"]')])}:l,f=t.useInlineStyles,d=void 0===f||f,p=t.showLineNumbers,g=void 0!==p&&p,b=t.showInlineLineNumbers,y=void 0===b||b,m=t.startingLineNumber,v=void 0===m?1:m,j=t.lineNumberContainerStyle,k=t.lineNumberStyle,O=void 0===k?{}:k,N=t.wrapLines,P=t.wrapLongLines,W=void 0!==P&&P,D=t.lineProps,F=t.renderer,z=t.PreTag,M=void 0===z?"pre":z,Y=t.CodeTag,U=void 0===Y?"code":Y,B=t.code,H=void 0===B?(Array.isArray(o)?o[0]:o)||"":B,V=t.astGenerator,X=(0,L.A)(t,S);V=V||null;var $=g?w.createElement(G,{containerStyle:j,codeStyle:h.style||{},numberStyle:O,startingLineNumber:v,codeString:H}):null,J=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},K=C(V)?"hljs":"prismjs",Q=d?Object.assign({},X,{style:Object.assign({},J,u)}):Object.assign({},X,{className:X.className?"".concat(K," ").concat(X.className):K,style:Object.assign({},u)});if(W?h.style=A({whiteSpace:"pre-wrap"},h.style):h.style=A({whiteSpace:"pre"},h.style),!V)return w.createElement(M,Q,$,w.createElement(U,h,H));(void 0===N&&F||W)&&(N=!0),F=F||I;var Z=[{type:"text",value:H}],tt=function(t){var n=t.astGenerator,e=t.language,r=t.code,o=t.defaultCodeValue;if(C(n)){var c=E(n,e);return"text"===e?{value:o,language:"text"}:c?n.highlight(e,r):n.highlightAuto(r)}try{return e&&"text"!==e?{value:n.highlight(r,e)}:{value:o}}catch(t){return{value:o}}}({astGenerator:V,language:r,code:H,defaultCodeValue:Z});null===tt.language&&(tt.value=Z);var tn=v+(null!=(n=null==(e=H.match(/\n/g))?void 0:e.length)?n:0),te=function(t,n,e,r,o,c,i,a,u){var l,s=function t(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=0;o<n.length;o++){var c=n[o];if("text"===c.type)r.push(T({children:[c],className:(0,x.A)(new Set(e))}));else if(c.children){var i=e.concat(c.properties.className);t(c.children,i).forEach(function(t){return r.push(t)})}}return r}(t.value),h=[],f=-1,d=0;function p(t,c){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return n||l.length>0?function(t,c){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return T({children:t,lineNumber:c,lineNumberStyle:a,largestLineNumber:i,showInlineLineNumbers:o,lineProps:e,className:l,showLineNumbers:r,wrapLongLines:u,wrapLines:n})}(t,c,l):function(t,n){if(r&&n&&o){var e=R(a,n,i);t.unshift(q(n,e))}return t}(t,c)}for(;d<s.length;)!function(){var t=s[d],n=t.children[0].value;if(n.match(_)){var e=n.split("\n");e.forEach(function(n,o){var i=r&&h.length+c,a={type:"text",value:"".concat(n,"\n")};if(0===o){var u=p(s.slice(f+1,d).concat(T({children:[a],className:t.properties.className})),i);h.push(u)}else if(o===e.length-1){var l=s[d+1]&&s[d+1].children&&s[d+1].children[0],g={type:"text",value:"".concat(n)};if(l){var b=T({children:[g],className:t.properties.className});s.splice(d+1,0,b)}else{var y=p([g],i,t.properties.className);h.push(y)}}else{var m=p([a],i,t.properties.className);h.push(m)}}),f=d}d++}();if(f!==s.length-1){var g=s.slice(f+1,s.length);if(g&&g.length){var b=p(g,r&&h.length+c);h.push(b)}}return n?h:(l=[]).concat.apply(l,h)}(tt,N,void 0===D?{}:D,g,y,v,tn,O,W);return w.createElement(M,Q,w.createElement(U,h,!y&&$,F({rows:te,stylesheet:i,useInlineStyles:d})))})),(0,j.A)(l,"astGeneratorPromise",null),(0,j.A)(l,"languages",new Map),(0,j.A)(l,"supportedLanguages",r.supportedLanguages||Object.keys(a||{})),(0,j.A)(l,"isRegistered",function(t){if(u)return!0;if(!i)throw Error("Current syntax highlighter doesn't support registration of languages");return l.astGenerator?c(l.astGenerator,t):l.languages.has(t)}),(0,j.A)(l,"registerLanguage",function(t,n){if(!i)throw Error("Current syntax highlighter doesn't support registration of languages");if(l.astGenerator)return i(l.astGenerator,t,n);l.languages.set(t,n)}),l)},40697(t,n,e){e.d(n,{A:()=>r});let r={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#444",color:"#ddd"},"hljs-keyword":{color:"white",fontWeight:"bold"},"hljs-selector-tag":{color:"white",fontWeight:"bold"},"hljs-literal":{color:"white",fontWeight:"bold"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-link":{color:"white"},"hljs-subst":{color:"#ddd"},"hljs-string":{color:"#d88"},"hljs-title":{color:"#d88",fontWeight:"bold"},"hljs-name":{color:"#d88",fontWeight:"bold"},"hljs-type":{color:"#d88",fontWeight:"bold"},"hljs-attribute":{color:"#d88"},"hljs-symbol":{color:"#d88"},"hljs-bullet":{color:"#d88"},"hljs-built_in":{color:"#d88"},"hljs-addition":{color:"#d88"},"hljs-variable":{color:"#d88"},"hljs-template-tag":{color:"#d88"},"hljs-template-variable":{color:"#d88"},"hljs-comment":{color:"#777"},"hljs-quote":{color:"#777"},"hljs-deletion":{color:"#777"},"hljs-meta":{color:"#777"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}}},25577(t,n,e){e.d(n,{A:()=>r});let r={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#f8f8ff"},"hljs-comment":{color:"#408080",fontStyle:"italic"},"hljs-quote":{color:"#408080",fontStyle:"italic"},"hljs-keyword":{color:"#954121"},"hljs-selector-tag":{color:"#954121"},"hljs-literal":{color:"#954121"},"hljs-subst":{color:"#954121"},"hljs-number":{color:"#40a070"},"hljs-string":{color:"#219161"},"hljs-doctag":{color:"#219161"},"hljs-selector-id":{color:"#19469d"},"hljs-selector-class":{color:"#19469d"},"hljs-section":{color:"#19469d"},"hljs-type":{color:"#19469d"},"hljs-params":{color:"#00f"},"hljs-title":{color:"#458",fontWeight:"bold"},"hljs-tag":{color:"#000080",fontWeight:"normal"},"hljs-name":{color:"#000080",fontWeight:"normal"},"hljs-attribute":{color:"#000080",fontWeight:"normal"},"hljs-variable":{color:"#008080"},"hljs-template-variable":{color:"#008080"},"hljs-regexp":{color:"#b68"},"hljs-link":{color:"#b68"},"hljs-symbol":{color:"#990073"},"hljs-bullet":{color:"#990073"},"hljs-built_in":{color:"#0086b3"},"hljs-builtin-name":{color:"#0086b3"},"hljs-meta":{color:"#999",fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}}}]); //# sourceMappingURL=8292.48ee1553aa14.chunk.js.map