UNPKG

turnilo

Version:

Business intelligence, data exploration and visualization web application for Druid, formerly known as Swiv and Pivot

2 lines 36.8 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{729:function(e,t,n){"use strict";var a=n(730),c=n(731);t.highlight=o,t.highlightAuto=function(e,t){var n,r,i,s,l=t||{},u=l.subset||a.listLanguages(),g=l.prefix,h=u.length,d=-1;null==g&&(g="hljs-");if("string"!=typeof e)throw c("Expected `string` for value, got `%s`",e);r={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};for(;++d<h;)s=u[d],a.getLanguage(s)&&((i=o(s,e,t)).language=s,i.relevance>r.relevance&&(r=i),i.relevance>n.relevance&&(r=n,n=i));r.language&&(n.secondBest=r);return n},t.registerLanguage=function(e,t){a.registerLanguage(e,t)},t.listLanguages=function(){return a.listLanguages()},t.registerAlias=function(e,t){var n,c=e;t&&((c={})[e]=t);for(n in c)a.registerAliases(c[n],{languageName:n})},r.prototype.addText=function(e){var t,n,a=this.stack;if(""===e)return;t=a[a.length-1],(n=t.children[t.children.length-1])&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})},r.prototype.addKeyword=function(e,t){this.openNode(t),this.addText(e),this.closeNode()},r.prototype.addSublanguage=function(e,t){var n=this.stack,a=n[n.length-1],c=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:c}:c;a.children=a.children.concat(o)},r.prototype.openNode=function(e){var t=this.stack,n=this.options.classPrefix+e,a=t[t.length-1],c={type:"element",tagName:"span",properties:{className:[n]},children:[]};a.children.push(c),t.push(c)},r.prototype.closeNode=function(){this.stack.pop()},r.prototype.closeAllNodes=i,r.prototype.finalize=i,r.prototype.toHTML=function(){return""};function o(e,t,n){var o,i=a.configure({}),s=(n||{}).prefix;if("string"!=typeof e)throw c("Expected `string` for name, got `%s`",e);if(!a.getLanguage(e))throw c("Unknown language: `%s` is not registered",e);if("string"!=typeof t)throw c("Expected `string` for value, got `%s`",t);if(null==s&&(s="hljs-"),a.configure({__emitter:r,classPrefix:s}),o=a.highlight(t,{language:e,ignoreIllegals:!0}),a.configure(i||{}),o.errorRaised)throw o.errorRaised;return{relevance:o.relevance,language:o.language,value:o.emitter.rootNode.children}}function r(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function i(){}},730:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var a=e[t];"object"!=typeof a||Object.isFrozen(a)||n(a)})),e}var a=n,c=n;a.default=c;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.kind;class l{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=r(e)}openNode(e){if(!s(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class u{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{u._collapse(e)}))}}class g extends u{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function h(e){return e?"string"==typeof e?e:e.source:null}const d=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;const f="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",p={begin:"\\\\[\\s\\S]",relevance:0},m={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[p]},b={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[p]},v={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},y=function(e,t,n={}){const a=i({className:"comment",begin:e,end:t,contains:[]},n);return a.contains.push(v),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},N=y("//","$"),E=y("/\\*","\\*/"),x=y("#","$"),w={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},j={className:"number",begin:f,relevance:0},O={className:"number",begin:"\\b(0b[01]+)",relevance:0},k={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},R={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[p,{begin:/\[/,end:/\]/,relevance:0,contains:[p]}]}]},_={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},L={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},S={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var I=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:f,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>h(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),i({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:p,APOS_STRING_MODE:m,QUOTE_STRING_MODE:b,PHRASAL_WORDS_MODE:v,COMMENT:y,C_LINE_COMMENT_MODE:N,C_BLOCK_COMMENT_MODE:E,HASH_COMMENT_MODE:x,NUMBER_MODE:w,C_NUMBER_MODE:j,BINARY_NUMBER_MODE:O,CSS_NUMBER_MODE:k,REGEXP_MODE:R,TITLE_MODE:_,UNDERSCORE_TITLE_MODE:L,METHOD_GUARD:S,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function M(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function A(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=M,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function T(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>h(e)).join("|")+")"}(...e.illegal))}function P(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function C(e,t){void 0===e.relevance&&(e.relevance=1)}const B=["of","and","for","in","not","or","if","then","parent","list","value"];function D(e,t){return t?Number(t):function(e){return B.includes(e.toLowerCase())}(e)?0:1}function H(e,{plugins:t}){function n(t,n){return new RegExp(h(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let a=h(e),c="";for(;a.length>0;){const e=d.exec(a);if(!e){c+=a;break}c+=a.substring(0,e.index),a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?c+="\\"+String(Number(e[1])+t):(c+=e[0],"("===e[0]&&n++)}return c}).map(e=>`(${e})`).join(t)}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),a=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,a)}}class c{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new a;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=i(e.classNameAliases||{}),function t(a,o){const r=a;if(a.isCompiled)return r;[P].forEach(e=>e(a,o)),e.compilerExtensions.forEach(e=>e(a,o)),a.__beforeBegin=null,[A,T,C].forEach(e=>e(a,o)),a.isCompiled=!0;let s=null;if("object"==typeof a.keywords&&(s=a.keywords.$pattern,delete a.keywords.$pattern),a.keywords&&(a.keywords=function e(t,n,a="keyword"){const c={};return"string"==typeof t?o(a,t.split(" ")):Array.isArray(t)?o(a,t):Object.keys(t).forEach((function(a){Object.assign(c,e(t[a],n,a))})),c;function o(e,t){n&&(t=t.map(e=>e.toLowerCase())),t.forEach((function(t){const n=t.split("|");c[n[0]]=[e,D(n[0],n[1])]}))}}(a.keywords,e.case_insensitive)),a.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||a.lexemes||/\w+/,r.keywordPatternRe=n(s,!0),o&&(a.begin||(a.begin=/\B|\b/),r.beginRe=n(a.begin),a.endSameAsBegin&&(a.end=a.begin),a.end||a.endsWithParent||(a.end=/\B|\b/),a.end&&(r.endRe=n(a.end)),r.terminatorEnd=h(a.end)||"",a.endsWithParent&&o.terminatorEnd&&(r.terminatorEnd+=(a.end?"|":"")+o.terminatorEnd)),a.illegal&&(r.illegalRe=n(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return i(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return i(e,{starts:e.starts?i(e.starts):null});if(Object.isFrozen(e))return i(e);return e}("self"===e?a:e)}))),a.contains.forEach((function(e){t(e,r)})),a.starts&&t(a.starts,o),r.matcher=function(e){const t=new c;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(r),r}(e)}function $(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,r(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const U={"after:highlightElement":({el:e,result:t,text:n})=>{const a=G(e);if(!a.length)return;const c=document.createElement("div");c.innerHTML=t.value,t.value=function(e,t,n){let a=0,c="";const o=[];function i(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function s(e){c+="<"+z(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+r(e.value)+'"'})).join("")+">"}function l(e){c+="</"+z(e)+">"}function u(e){("start"===e.event?s:l)(e.node)}for(;e.length||t.length;){let t=i();if(c+=r(n.substring(a,t[0].offset)),a=t[0].offset,t===e){o.reverse().forEach(l);do{u(t.splice(0,1)[0]),t=i()}while(t===e&&t.length&&t[0].offset===a);o.reverse().forEach(s)}else"start"===t[0].event?o.push(t[0].node):o.pop(),u(t.splice(0,1)[0])}return c+r(n.substr(a))}(a,G(c),n)}};function z(e){return e.nodeName.toLowerCase()}function G(e){const t=[];return function e(n,a){for(let c=n.firstChild;c;c=c.nextSibling)3===c.nodeType?a+=c.nodeValue.length:1===c.nodeType&&(t.push({event:"start",offset:a,node:c}),a=e(c,a),z(c).match(/br|hr|img|input/)||t.push({event:"stop",offset:a,node:c}));return a}(e,0),t}const K={},V=e=>{console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{K[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),K[`${e}/${t}`]=!0)},q=r,F=i,J=Symbol("nomatch");var Z=function(e){const t=Object.create(null),n=Object.create(null),c=[];let r=!0;const i=/(^(<[^>]+>|\t|)+|\n)/gm,s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:g};function h(e){return u.noHighlightRe.test(e)}function d(e,t,n,a){let c="",o="";"object"==typeof t?(c=e,n=t.ignoreIllegals,o=t.language,a=void 0):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,c=t);const r={code:c,language:o};k("before:highlight",r);const i=r.result?r.result:f(r.language,r.code,n,a);return i.code=r.code,k("after:highlight",i),i}function f(e,n,a,i){function l(e,t){const n=N.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function g(){null!=j.subLanguage?function(){if(""===R)return;let e=null;if("string"==typeof j.subLanguage){if(!t[j.subLanguage])return void k.addText(R);e=f(j.subLanguage,R,!0,O[j.subLanguage]),O[j.subLanguage]=e.top}else e=p(R,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(_+=e.relevance),k.addSublanguage(e.emitter,e.language)}():function(){if(!j.keywords)return void k.addText(R);let e=0;j.keywordPatternRe.lastIndex=0;let t=j.keywordPatternRe.exec(R),n="";for(;t;){n+=R.substring(e,t.index);const a=l(j,t);if(a){const[e,c]=a;if(k.addText(n),n="",_+=c,e.startsWith("_"))n+=t[0];else{const n=N.classNameAliases[e]||e;k.addKeyword(t[0],n)}}else n+=t[0];e=j.keywordPatternRe.lastIndex,t=j.keywordPatternRe.exec(R)}n+=R.substr(e),k.addText(n)}(),R=""}function h(e){return e.className&&k.openNode(N.classNameAliases[e.className]||e.className),j=Object.create(e,{parent:{value:j}}),j}function d(e){return 0===j.matcher.regexIndex?(R+=e[0],1):(I=!0,0)}function m(e){const t=e[0],n=e.rule,a=new o(n),c=[n.__beforeBegin,n["on:begin"]];for(const n of c)if(n&&(n(e,a),a.isMatchIgnored))return d(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?R+=t:(n.excludeBegin&&(R+=t),g(),n.returnBegin||n.excludeBegin||(R=t)),h(n),n.returnBegin?0:t.length}function b(e){const t=e[0],a=n.substr(e.index),c=function e(t,n,a){let c=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,a);if(c){if(t["on:end"]){const e=new o(t);t["on:end"](n,e),e.isMatchIgnored&&(c=!1)}if(c){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,a)}(j,e,a);if(!c)return J;const r=j;r.skip?R+=t:(r.returnEnd||r.excludeEnd||(R+=t),g(),r.excludeEnd&&(R=t));do{j.className&&k.closeNode(),j.skip||j.subLanguage||(_+=j.relevance),j=j.parent}while(j!==c.parent);return c.starts&&(c.endSameAsBegin&&(c.starts.endRe=c.endRe),h(c.starts)),r.returnEnd?0:t.length}let v={};function y(t,c){const o=c&&c[0];if(R+=t,null==o)return g(),0;if("begin"===v.type&&"end"===c.type&&v.index===c.index&&""===o){if(R+=n.slice(c.index,c.index+1),!r){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=c,"begin"===c.type)return m(c);if("illegal"===c.type&&!a){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(j.className||"<unnamed>")+'"');throw e.mode=j,e}if("end"===c.type){const e=b(c);if(e!==J)return e}if("illegal"===c.type&&""===o)return 1;if(S>1e5&&S>3*c.index){throw new Error("potential infinite loop, way more iterations than matches")}return R+=o,o.length}const N=w(e);if(!N)throw V(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=H(N,{plugins:c});let x="",j=i||E;const O={},k=new u.__emitter(u);!function(){const e=[];for(let t=j;t!==N;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>k.openNode(e))}();let R="",_=0,L=0,S=0,I=!1;try{for(j.matcher.considerAll();;){S++,I?I=!1:j.matcher.considerAll(),j.matcher.lastIndex=L;const e=j.matcher.exec(n);if(!e)break;const t=y(n.substring(L,e.index),e);L=e.index+t}return y(n.substr(L)),k.closeAllNodes(),k.finalize(),x=k.toHTML(),{relevance:Math.floor(_),value:x,language:e,illegal:!1,emitter:k,top:j}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(L-100,L+100),mode:t.mode},sofar:x,relevance:0,value:q(n),emitter:k};if(r)return{illegal:!1,relevance:0,value:q(n),emitter:k,language:e,top:j,errorRaised:t};throw t}}function p(e,n){n=n||u.languages||Object.keys(t);const a=function(e){const t={relevance:0,emitter:new u.__emitter(u),value:q(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),c=n.filter(w).filter(O).map(t=>f(t,e,!1));c.unshift(a);const o=c.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(w(e.language).supersetOf===t.language)return 1;if(w(t.language).supersetOf===e.language)return-1}return 0}),[r,i]=o,s=r;return s.second_best=i,s}const m={"before:highlightElement":({el:e})=>{u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{u.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},b=/^(<[^>]+>|\t)+/gm,v={"after:highlightElement":({result:e})=>{u.tabReplace&&(e.value=e.value.replace(b,e=>e.replace(/\t/g,u.tabReplace)))}};function y(e){let t=null;const a=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=w(n[1]);return t||(W(s.replace("{}",n[1])),W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>h(e)||w(e))}(e);if(h(a))return;k("before:highlightElement",{el:e,language:a}),t=e;const c=t.textContent,o=a?d(c,{language:a,ignoreIllegals:!0}):p(c);k("after:highlightElement",{el:e,result:o,text:c}),e.innerHTML=o.value,function(e,t,a){const c=t?n[t]:a;e.classList.add("hljs"),c&&e.classList.add(c)}(e,a,o.language),e.result={language:o.language,re:o.relevance,relavance:o.relevance},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.relevance,relavance:o.second_best.relevance})}const N=()=>{if(N.called)return;N.called=!0,X("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");document.querySelectorAll("pre code").forEach(y)};let E=!1;function x(){if("loading"===document.readyState)return void(E=!0);document.querySelectorAll("pre code").forEach(y)}function w(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function j(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function O(e){const t=w(e);return t&&!t.disableAutodetect}function k(e,t){const n=e;c.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){E&&x()}),!1),Object.assign(e,{highlight:d,highlightAuto:p,highlightAll:x,fixMarkup:function(e){return X("10.2.0","fixMarkup will be removed entirely in v11.0"),X("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,u.tabReplace||u.useBR?t.replace(i,e=>"\n"===e?u.useBR?"<br>":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e):t;var t},highlightElement:y,highlightBlock:function(e){return X("10.7.0","highlightBlock will be removed entirely in v12.0"),X("10.7.0","Please use highlightElement now."),y(e)},configure:function(e){e.useBR&&(X("10.3.0","'useBR' will be removed entirely in v11.0"),X("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),u=F(u,e)},initHighlighting:N,initHighlightingOnLoad:function(){X("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),E=!0},registerLanguage:function(n,a){let c=null;try{c=a(e)}catch(e){if(V("Language definition for '{}' could not be registered.".replace("{}",n)),!r)throw e;V(e),c=l}c.name||(c.name=n),t[n]=c,c.rawDefinition=a.bind(null,e),c.aliases&&j(c.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:w,registerAliases:j,requireLanguage:function(e){X("10.4.0","requireLanguage will be removed entirely in v11."),X("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=w(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:O,inherit:F,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),c.push(e)},vuePlugin:$(e).VuePlugin}),e.debugMode=function(){r=!1},e.safeMode=function(){r=!0},e.versionString="10.7.3";for(const e in I)"object"==typeof I[e]&&a(I[e]);return Object.assign(e,I),e.addPlugin(m),e.addPlugin(U),e.addPlugin(v),e}({});e.exports=Z},731:function(e,t,n){"use strict";var a=n(732),c=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=a.apply(null,arguments)),new e(t)}}e.exports=c,c.eval=o(EvalError),c.range=o(RangeError),c.reference=o(ReferenceError),c.syntax=o(SyntaxError),c.type=o(TypeError),c.uri=o(URIError),c.create=o},732:function(e,t,n){!function(){var t;function n(e){for(var t,n,a,c,o=1,r=[].slice.call(arguments),i=0,s=e.length,l="",u=!1,g=!1,h=function(){return r[o++]},d=function(){for(var n="";/\d/.test(e[i]);)n+=e[i++],t=e[i];return n.length>0?parseInt(n):null};i<s;++i)if(t=e[i],u)switch(u=!1,"."==t?(g=!1,t=e[++i]):"0"==t&&"."==e[i+1]?(g=!0,t=e[i+=2]):g=!0,c=d(),t){case"b":l+=parseInt(h(),10).toString(2);break;case"c":l+="string"==typeof(n=h())||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":l+=parseInt(h(),10);break;case"f":a=String(parseFloat(h()).toFixed(c||6)),l+=g?a:a.replace(/^0/,"");break;case"j":l+=JSON.stringify(h());break;case"o":l+="0"+parseInt(h(),10).toString(8);break;case"s":l+=h();break;case"x":l+="0x"+parseInt(h(),10).toString(16);break;case"X":l+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:l+=t}else"%"===t?u=!0:l+=t;return l}(t=e.exports=n).format=n,t.vsprintf=function(e,t){return n.apply(null,[e].concat(t))},"undefined"!=typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(n.apply(null,arguments))})}()},733:function(e,t){e.exports=function(e){const t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")};return{name:"JSON",keywords:{literal:t},contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}},734:function(e,t,n){"use strict";t.a={hljs:{display:"block",background:"white",padding:"0.5em",color:"#333333",overflowX:"auto"},"hljs-comment":{color:"#969896"},"hljs-meta":{color:"#969896"},"hljs-variable":{color:"#df5000"},"hljs-template-variable":{color:"#df5000"},"hljs-strong":{color:"#df5000"},"hljs-emphasis":{color:"#df5000"},"hljs-quote":{color:"#df5000"},"hljs-keyword":{color:"#d73a49"},"hljs-selector-tag":{color:"#d73a49"},"hljs-type":{color:"#d73a49"},"hljs-literal":{color:"#0086b3"},"hljs-symbol":{color:"#0086b3"},"hljs-bullet":{color:"#0086b3"},"hljs-attribute":{color:"#0086b3"},"hljs-section":{color:"#63a35c"},"hljs-name":{color:"#63a35c"},"hljs-tag":{color:"#333333"},"hljs-title":{color:"#6f42c1"},"hljs-attr":{color:"#6f42c1"},"hljs-selector-id":{color:"#6f42c1"},"hljs-selector-class":{color:"#6f42c1"},"hljs-selector-attr":{color:"#6f42c1"},"hljs-selector-pseudo":{color:"#6f42c1"},"hljs-addition":{color:"#55a532",backgroundColor:"#eaffea"},"hljs-deletion":{color:"#bd2c00",backgroundColor:"#ffecec"},"hljs-link":{textDecoration:"underline"},"hljs-number":{color:"#005cc5"},"hljs-string":{color:"#032f62"}}},754:function(e,t,n){"use strict";var a=n(142),c=n(34),o=n(15),r=n(0),i=n.n(r);var s={};function l(e){if(0===e.length||1===e.length)return e;var t,n,a=e.join(".");return s[a]||(s[a]=0===(n=(t=e).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),s[a]}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,a=e.filter((function(e){return"token"!==e})),c=l(a);return c.reduce((function(e,t){return Object(o.a)(Object(o.a)({},e),n[t])}),t)}function g(e){return e.join(" ")}function h(e){var t=e.node,n=e.stylesheet,a=e.style,c=void 0===a?{}:a,r=e.useInlineStyles,s=e.key,l=t.properties,d=t.type,f=t.tagName,p=t.value;if("text"===d)return p;if(f){var m,b=function(e,t){var n=0;return function(a){return n+=1,a.map((function(a,c){return h({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(c)})}))}}(n,r);if(r){var v=Object.keys(n).reduce((function(e,t){return t.split(".").forEach((function(t){e.includes(t)||e.push(t)})),e}),[]),y=l.className&&l.className.includes("token")?["token"]:[],N=l.className&&y.concat(l.className.filter((function(e){return!v.includes(e)})));m=Object(o.a)(Object(o.a)({},l),{},{className:g(N)||void 0,style:u(l.className,Object.assign({},l.style,c),n)})}else m=Object(o.a)(Object(o.a)({},l),{},{className:g(l.className)});var E=b(t.children);return i.a.createElement(f,Object.assign({key:s},m),E)}}var d=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],f=/\n/g;function p(e){var t=e.codeString,n=e.codeStyle,a=e.containerStyle,c=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,r=void 0===o?{}:o,s=e.startingLineNumber;return i.a.createElement("code",{style:Object.assign({},n,c)},function(e){var t=e.lines,n=e.startingLineNumber,a=e.style;return t.map((function(e,t){var c=t+n;return i.a.createElement("span",{key:"line-".concat(t),className:"react-syntax-highlighter-line-number",style:"function"==typeof a?a(c):a},"".concat(c,"\n"))}))}({lines:t.replace(/\n$/,"").split("\n"),style:r,startingLineNumber:s}))}function m(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function b(e,t,n){var a,c={display:"inline-block",minWidth:(a=n,"".concat(a.toString().length,".25em")),paddingRight:"1em",textAlign:"right",userSelect:"none"},r="function"==typeof e?e(t):e;return Object(o.a)(Object(o.a)({},c),r)}function v(e){var t=e.children,n=e.lineNumber,a=e.lineNumberStyle,c=e.largestLineNumber,r=e.showInlineLineNumbers,i=e.lineProps,s=void 0===i?{}:i,l=e.className,u=void 0===l?[]:l,g=e.showLineNumbers,h=e.wrapLongLines,d="function"==typeof s?s(n):s;if(d.className=u,n&&r){var f=b(a,n,c);t.unshift(m(n,f))}return h&g&&(d.style=Object(o.a)(Object(o.a)({},d.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:d,children:t}}function y(e,t,n,a,o,r,i,s,l){var u,g=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=0;o<t.length;o++){var r=t[o];if("text"===r.type)a.push(v({children:[r],className:Object(c.a)(new Set(n))}));else if(r.children){var i=n.concat(r.properties.className);e(r.children,i).forEach((function(e){return a.push(e)}))}}return a}(e.value),h=[],d=-1,p=0;function y(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return v({children:e,lineNumber:t,lineNumberStyle:s,largestLineNumber:i,showInlineLineNumbers:o,lineProps:n,className:c,showLineNumbers:a,wrapLongLines:l})}function N(e,t){if(a&&t&&o){var n=b(s,t,i);e.unshift(m(t,n))}return e}function E(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||a.length>0?y(e,n,a):N(e,n)}for(var x=function(){var e=g[p],t=e.children[0].value;if(t.match(f)){var n=t.split("\n");n.forEach((function(t,c){var o=a&&h.length+r,i={type:"text",value:"".concat(t,"\n")};if(0===c){var s=E(g.slice(d+1,p).concat(v({children:[i],className:e.properties.className})),o);h.push(s)}else if(c===n.length-1){var l=g[p+1]&&g[p+1].children&&g[p+1].children[0],u={type:"text",value:"".concat(t)};if(l){var f=v({children:[u],className:e.properties.className});g.splice(p+1,0,f)}else{var m=E([u],o,e.properties.className);h.push(m)}}else{var b=E([i],o,e.properties.className);h.push(b)}})),d=p}p++};p<g.length;)x();if(d!==g.length-1){var w=g.slice(d+1,g.length);if(w&&w.length){var j=E(w,a&&h.length+r);h.push(j)}}return t?h:(u=[]).concat.apply(u,h)}function N(e){var t=e.rows,n=e.stylesheet,a=e.useInlineStyles;return t.map((function(e,t){return h({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})}))}function E(e){return e&&void 0!==e.highlightAuto}var x,w,j=n(729),O=n.n(j),k=(x=O.a,w={},function(e){var t=e.language,n=e.children,c=e.style,r=void 0===c?w:c,s=e.customStyle,l=void 0===s?{}:s,u=e.codeTagProps,g=void 0===u?{className:t?"language-".concat(t):void 0,style:Object(o.a)(Object(o.a)({},r['code[class*="language-"]']),r['code[class*="language-'.concat(t,'"]')])}:u,h=e.useInlineStyles,f=void 0===h||h,m=e.showLineNumbers,b=void 0!==m&&m,v=e.showInlineLineNumbers,j=void 0===v||v,O=e.startingLineNumber,k=void 0===O?1:O,R=e.lineNumberContainerStyle,_=e.lineNumberStyle,L=void 0===_?{}:_,S=e.wrapLines,I=e.wrapLongLines,M=void 0!==I&&I,A=e.lineProps,T=void 0===A?{}:A,P=e.renderer,C=e.PreTag,B=void 0===C?"pre":C,D=e.CodeTag,H=void 0===D?"code":D,$=e.code,U=void 0===$?(Array.isArray(n)?n[0]:n)||"":$,z=e.astGenerator,G=Object(a.a)(e,d);z=z||x;var K=b?i.a.createElement(p,{containerStyle:R,codeStyle:g.style||{},numberStyle:L,startingLineNumber:k,codeString:U}):null,V=r.hljs||r['pre[class*="language-"]']||{backgroundColor:"#fff"},W=E(z)?"hljs":"prismjs",X=f?Object.assign({},G,{style:Object.assign({},V,l)}):Object.assign({},G,{className:G.className?"".concat(W," ").concat(G.className):W,style:Object.assign({},l)});if(g.style=M?Object(o.a)(Object(o.a)({},g.style),{},{whiteSpace:"pre-wrap"}):Object(o.a)(Object(o.a)({},g.style),{},{whiteSpace:"pre"}),!z)return i.a.createElement(B,X,K,i.a.createElement(H,g,U));(void 0===S&&P||M)&&(S=!0),P=P||N;var q=[{type:"text",value:U}],F=function(e){var t=e.astGenerator,n=e.language,a=e.code,c=e.defaultCodeValue;if(E(t)){var o=function(e,t){return-1!==e.listLanguages().indexOf(t)}(t,n);return"text"===n?{value:c,language:"text"}:o?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:c}}catch(e){return{value:c}}}({astGenerator:z,language:t,code:U,defaultCodeValue:q});null===F.language&&(F.value=q);var J=y(F,S,T,b,j,k,F.value.length+k,L,M);return i.a.createElement(B,X,i.a.createElement(H,g,!j&&K,P({rows:J,stylesheet:r,useInlineStyles:f})))});k.registerLanguage=O.a.registerLanguage;t.a=k}}]); //# sourceMappingURL=vendors~highlighter.df8447523b31875b6e4d.js.map