@cubejs-backend/server-core 0.31.50 → 0.31.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/core/CompilerApi.d.ts +3 -0
- package/dist/src/core/CompilerApi.d.ts.map +1 -1
- package/dist/src/core/CompilerApi.js +33 -0
- package/dist/src/core/CompilerApi.js.map +1 -1
- package/dist/src/core/RefreshScheduler.d.ts +1 -0
- package/dist/src/core/RefreshScheduler.d.ts.map +1 -1
- package/package.json +7 -7
- package/playground/assets/CachePane.45ec43b8.js +1 -0
- package/playground/assets/GraphiQLSandbox.42d66bcc.css +1 -0
- package/playground/assets/GraphiQLSandbox.9f2d5710.js +268 -0
- package/playground/assets/SchemaReference.aec69db9.js +1 -0
- package/playground/assets/SqlQueryTab.266d8bac.js +1 -0
- package/playground/{static/media/athena.3d08e54a.svg → assets/athena.6bb5702d.svg} +0 -0
- package/playground/{static/media/bigquery.47cbd6db.svg → assets/bigquery.da521185.svg} +0 -0
- package/playground/assets/brace-fold.483c40cf.js +1 -0
- package/playground/{static/media/clickhouse.15d7a0f1.svg → assets/clickhouse.c923cfe7.svg} +0 -0
- package/playground/assets/closebrackets.a924ca3e.js +2 -0
- package/playground/assets/codemirror.882303cf.js +24 -0
- package/playground/assets/comment.832e29e0.js +2 -0
- package/playground/{static/media/crate.7256b773.svg → assets/crate.b646e4b5.svg} +0 -0
- package/playground/assets/dialog.e1ff6297.js +1 -0
- package/playground/assets/dialog.eb38192b.js +1 -0
- package/playground/{static/media/druid.7ac8cbb7.svg → assets/druid.749d725a.svg} +0 -0
- package/playground/{static/media/firebolt.832e1506.svg → assets/firebolt.f9ba6fb1.svg} +0 -0
- package/playground/assets/foldgutter.6389239e.js +1 -0
- package/playground/assets/forEachState.e5eb4db7.js +1 -0
- package/playground/assets/hint.ad517b99.js +1 -0
- package/playground/assets/hint.df36f3f6.js +1 -0
- package/playground/{static/media/hive.b33891fc.svg → assets/hive.f1d55e07.svg} +0 -0
- package/playground/assets/index.21ab2afd.js +24 -0
- package/playground/assets/index.25008d94.js +15 -0
- package/playground/assets/index.af3b87a2.css +1 -0
- package/playground/assets/index.dd4e94d8.js +1707 -0
- package/playground/assets/info-addon.158fc0aa.js +1 -0
- package/playground/assets/info.a6a59f58.js +1 -0
- package/playground/assets/javascript.d1eadb50.js +1 -0
- package/playground/assets/jump-to-line.65ee2556.js +1 -0
- package/playground/assets/jump.796ae7cf.js +1 -0
- package/playground/assets/lint.38839579.js +1 -0
- package/playground/assets/lint.556b9d2d.js +1 -0
- package/playground/assets/lint.5ef76045.js +1 -0
- package/playground/assets/matchbrackets.3d17a317.js +1 -0
- package/playground/assets/matchbrackets.6444f512.js +1 -0
- package/playground/{static/media/materialize.102ab165.svg → assets/materialize.1c275282.svg} +0 -0
- package/playground/assets/mode.38a5c79d.js +1 -0
- package/playground/assets/mode.7dca0610.js +1 -0
- package/playground/assets/mode.b947ede4.js +1 -0
- package/playground/{static/media/mongodb.23376a66.svg → assets/mongodb.ff875234.svg} +0 -0
- package/playground/{static/media/mssql.7dc54d0e.svg → assets/mssql.ee163b5c.svg} +0 -0
- package/playground/{static/media/mysql.376b985e.svg → assets/mysql.505410e7.svg} +0 -0
- package/playground/{static/media/oracle.e2b7363b.svg → assets/oracle.ac621595.svg} +0 -0
- package/playground/{static/media/postgres.e67db92e.svg → assets/postgres.f2e5378f.svg} +0 -0
- package/playground/{static/media/presto.bf9e7a80.svg → assets/presto.23044820.svg} +0 -0
- package/playground/{static/media/questdb.c7cab014.svg → assets/questdb.e8a2159a.svg} +0 -0
- package/playground/{static/media/redshift.b80154fa.svg → assets/redshift.e3635b1b.svg} +0 -0
- package/playground/assets/search.f951de3c.js +2 -0
- package/playground/assets/searchcursor.15e8960e.js +7 -0
- package/playground/assets/searchcursor.efeef7ac.js +1 -0
- package/playground/assets/show-hint.8dc1760e.js +1 -0
- package/playground/{static/media/snowflake.7e110f33.svg → assets/snowflake.6ddc094d.svg} +0 -0
- package/playground/assets/sqlFormatter.085175c4.js +7 -0
- package/playground/assets/sublime.895ab231.js +6 -0
- package/playground/index.html +36 -1
- package/playground/asset-manifest.json +0 -67
- package/playground/static/css/12.b984234c.chunk.css +0 -2
- package/playground/static/css/12.b984234c.chunk.css.map +0 -1
- package/playground/static/css/13.ea0ece1a.chunk.css +0 -2
- package/playground/static/css/13.ea0ece1a.chunk.css.map +0 -1
- package/playground/static/js/0.7620deb7.chunk.js +0 -1
- package/playground/static/js/1.eb173039.chunk.js +0 -1
- package/playground/static/js/12.642c8629.chunk.js +0 -2
- package/playground/static/js/12.642c8629.chunk.js.LICENSE.txt +0 -118
- package/playground/static/js/13.92083fba.chunk.js +0 -2
- package/playground/static/js/13.92083fba.chunk.js.LICENSE.txt +0 -37
- package/playground/static/js/14.0cfe7b6f.chunk.js +0 -1
- package/playground/static/js/15.f38b6b5f.chunk.js +0 -1
- package/playground/static/js/16.1b335189.chunk.js +0 -1
- package/playground/static/js/17.c086e6af.chunk.js +0 -1
- package/playground/static/js/18.a21f3b39.chunk.js +0 -1
- package/playground/static/js/19.9bfcb348.chunk.js +0 -1
- package/playground/static/js/2.1a98b5cb.chunk.js +0 -1
- package/playground/static/js/20.8b146a77.chunk.js +0 -1
- package/playground/static/js/21.b69be632.chunk.js +0 -1
- package/playground/static/js/22.fa40fe26.chunk.js +0 -1
- package/playground/static/js/23.5524e341.chunk.js +0 -1
- package/playground/static/js/24.f7da0ecd.chunk.js +0 -1
- package/playground/static/js/25.8fed1751.chunk.js +0 -1
- package/playground/static/js/26.2e4020c6.chunk.js +0 -1
- package/playground/static/js/27.70b6131c.chunk.js +0 -1
- package/playground/static/js/28.719988e2.chunk.js +0 -1
- package/playground/static/js/29.3eceb22f.chunk.js +0 -1
- package/playground/static/js/3.04731c2f.chunk.js +0 -1
- package/playground/static/js/30.b846564c.chunk.js +0 -1
- package/playground/static/js/31.46d333af.chunk.js +0 -1
- package/playground/static/js/32.8fd735a1.chunk.js +0 -1
- package/playground/static/js/4.d45911cc.chunk.js +0 -1
- package/playground/static/js/5.7c8bf80e.chunk.js +0 -1
- package/playground/static/js/6.1ef0d8e8.chunk.js +0 -1
- package/playground/static/js/7.71053dcd.chunk.js +0 -1
- package/playground/static/js/8.d3853cd0.chunk.js +0 -1
- package/playground/static/js/9.dbc40770.chunk.js +0 -1
- package/playground/static/js/main.bc4b34eb.chunk.js +0 -1
- package/playground/static/js/runtime-main.93b346ec.js +0 -1
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* escape-html
|
|
3
|
-
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
4
|
-
* Copyright(c) 2015 Andreas Lubbe
|
|
5
|
-
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
6
|
-
* MIT Licensed
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/*!
|
|
10
|
-
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
11
|
-
*
|
|
12
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
13
|
-
* Released under the MIT License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* is-primitive <https://github.com/jonschlinkert/is-primitive>
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
20
|
-
* Released under the MIT License.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/*!
|
|
24
|
-
* isobject <https://github.com/jonschlinkert/isobject>
|
|
25
|
-
*
|
|
26
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
27
|
-
* Released under the MIT License.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/*!
|
|
31
|
-
* set-value <https://github.com/jonschlinkert/set-value>
|
|
32
|
-
*
|
|
33
|
-
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
34
|
-
* Released under the MIT License.
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[14,25],{756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],i=e;i&&i.kind;)n.push(i),i=i.prevState;for(var a=n.length-1;a>=0;a--)t(n[a])}},779:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(727),r=n(734),o=i(n(756));function u(e,t,n){return n===r.SchemaMetaFieldDef.name&&e.getQueryType()===t?r.SchemaMetaFieldDef:n===r.TypeMetaFieldDef.name&&e.getQueryType()===t?r.TypeMetaFieldDef:n===r.TypeNameMetaFieldDef.name&&a.isCompositeType(t)?r.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return o.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?u(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?a.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var i=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&u(e,n.parentType,t.prevState.name):null:null;n.argDefs=i?i.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var r=0;r<n.argDefs.length;r++)if(n.argDefs[r].name===t.name){n.argDef=n.argDefs[r];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var o=n.inputType?a.getNamedType(n.inputType):null;n.enumValue=o instanceof a.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(o.getValues(),(function(e){return e.value===t.name})):null;break;case"ListValue":var l=n.inputType?a.getNullableType(n.inputType):null;n.inputType=l instanceof a.GraphQLList?l.ofType:null;break;case"ObjectValue":var d=n.inputType?a.getNamedType(n.inputType):null;n.objectFieldDefs=d instanceof a.GraphQLInputObjectType?d.getFields():null;break;case"ObjectField":var f=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=f&&f.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}},780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var i=n(727);function a(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:a(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:a(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?i.getNamedType(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}},802:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(728));function r(e,t){var n=e.state.info,i=t.target||t.srcElement;if(i instanceof HTMLElement&&"SPAN"===i.nodeName&&void 0===n.hoverTimeout){var r=i.getBoundingClientRect(),o=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,d)},u=function t(){a.default.off(document,"mousemove",o),a.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){a.default.off(document,"mousemove",o),a.default.off(e.getWrapperElement(),"mouseout",u),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,r=i.render||e.getHelper(n,"info");if(r){var o=e.getTokenAt(n,!0);if(o){var u=r(o,i,e,n);u&&function(e,t,n){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);var r=i.getBoundingClientRect(),o=window.getComputedStyle(i),u=r.right-r.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),l=r.bottom-r.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),d=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-l);d<0&&(d=t.bottom);var f,c=Math.max(0,window.innerWidth-u-15);c>t.left&&(c=t.left);i.style.opacity="1",i.style.top=d+"px",i.style.left=c+"px";var p=function(){clearTimeout(f)},m=function(){clearTimeout(f),f=setTimeout(s,200)},s=function(){a.default.off(i,"mouseover",p),a.default.off(i,"mouseout",m),a.default.off(e.getWrapperElement(),"mouseout",m),i.style.opacity?(i.style.opacity="0",setTimeout((function(){i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)};a.default.on(i,"mouseover",p),a.default.on(i,"mouseout",m),a.default.on(e.getWrapperElement(),"mouseout",m)}(e,t,u)}}}(e,r)},d=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(l,d),a.default.on(document,"mousemove",o),a.default.on(e.getWrapperElement(),"mouseout",u)}}a.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==a.default.Init){var i=e.state.info.onMouseOver;a.default.off(e.getWrapperElement(),"mouseover",i),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var o=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);o.onMouseOver=r.bind(null,e),a.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}}))},946:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(727),r=i(n(728)),o=i(n(779)),u=n(780);function l(e,t,n){var i,a=(null===(i=t.fieldDef)||void 0===i?void 0:i.name)||"";"__"!==a.slice(0,2)&&(c(e,t,n,t.parentType),m(e,".")),m(e,a,"field-name",n,u.getFieldReference(t))}function d(e,t,n){var i;m(e,"@"+((null===(i=t.directiveDef)||void 0===i?void 0:i.name)||""),"directive-name",n,u.getDirectiveReference(t))}function f(e,t,n,i){m(e,": "),c(e,t,n,i)}function c(e,t,n,i){i instanceof a.GraphQLNonNull?(c(e,t,n,i.ofType),m(e,"!")):i instanceof a.GraphQLList?(m(e,"["),c(e,t,n,i.ofType),m(e,"]")):m(e,(null===i||void 0===i?void 0:i.name)||"","type-name",n,u.getTypeReference(t,i))}function p(e,t,n){var i=n.description;if(i){var a=document.createElement("div");a.className="info-description",t.renderDescription?a.innerHTML=t.renderDescription(i):a.appendChild(document.createTextNode(i)),e.appendChild(a)}!function(e,t,n){var i=n.deprecationReason;if(i){var a=document.createElement("div");a.className="info-deprecation",t.renderDescription?a.innerHTML=t.renderDescription(i):a.appendChild(document.createTextNode(i));var r=document.createElement("span");r.className="info-deprecation-label",r.appendChild(document.createTextNode("Deprecated: ")),a.insertBefore(r,a.firstChild),e.appendChild(a)}}(e,t,n)}function m(e,t,n,i,a){if(void 0===n&&(n=""),void 0===i&&(i={onClick:null}),void 0===a&&(a=null),n){var r=i.onClick,o=void 0;r?((o=document.createElement("a")).href="javascript:void 0",o.addEventListener("click",(function(e){r(a,e)}))):o=document.createElement("span"),o.className=n,o.appendChild(document.createTextNode(t)),e.appendChild(o)}else e.appendChild(document.createTextNode(t))}n(802),r.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,i=e.state,a=i.kind,r=i.step,s=o.default(t.schema,e.state);return"Field"===a&&0===r&&s.fieldDef||"AliasedField"===a&&2===r&&s.fieldDef?(function(e,t,n){l(e,t,n),f(e,t,n,t.type)}(n=document.createElement("div"),s,t),p(n,t,s.fieldDef),n):"Directive"===a&&1===r&&s.directiveDef?(d(n=document.createElement("div"),s,t),p(n,t,s.directiveDef),n):"Argument"===a&&0===r&&s.argDef?(function(e,t,n){var i;t.directiveDef?d(e,t,n):t.fieldDef&&l(e,t,n);var a=(null===(i=t.argDef)||void 0===i?void 0:i.name)||"";m(e,"("),m(e,a,"arg-name",n,u.getArgumentReference(t)),f(e,t,n,t.inputType),m(e,")")}(n=document.createElement("div"),s,t),p(n,t,s.argDef),n):"EnumValue"===a&&s.enumValue&&s.enumValue.description?(function(e,t,n){var i,a=(null===(i=t.enumValue)||void 0===i?void 0:i.name)||"";c(e,t,n,t.inputType),m(e,"."),m(e,a,"enum-value",n,u.getEnumValueReference(t))}(n=document.createElement("div"),s,t),p(n,t,s.enumValue),n):"NamedType"===a&&s.type&&s.type.description?(c(n=document.createElement("div"),s,t,s.type),p(n,t,s.type),n):void 0}}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[15],{756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],a=e;a&&a.kind;)n.push(a),a=a.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},779:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(727),r=n(734),u=a(n(756));function l(e,t,n){return n===r.SchemaMetaFieldDef.name&&e.getQueryType()===t?r.SchemaMetaFieldDef:n===r.TypeMetaFieldDef.name&&e.getQueryType()===t?r.TypeMetaFieldDef:n===r.TypeNameMetaFieldDef.name&&i.isCompositeType(t)?r.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return u.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?l(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?i.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var a=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&l(e,n.parentType,t.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var r=0;r<n.argDefs.length;r++)if(n.argDefs[r].name===t.name){n.argDef=n.argDefs[r];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var u=n.inputType?i.getNamedType(n.inputType):null;n.enumValue=u instanceof i.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(u.getValues(),(function(e){return e.value===t.name})):null;break;case"ListValue":var o=n.inputType?i.getNullableType(n.inputType):null;n.inputType=o instanceof i.GraphQLList?o.ofType:null;break;case"ObjectValue":var f=n.inputType?i.getNamedType(n.inputType):null;n.objectFieldDefs=f instanceof i.GraphQLInputObjectType?f.getFields():null;break;case"ObjectField":var p=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=p&&p.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}},780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var a=n(727);function i(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:i(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?a.getNamedType(e.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}},925:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(728));function r(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null===n||void 0===n?void 0:n.nodeName)){var a=n.getBoundingClientRect(),i={left:(a.left+a.right)/2,top:(a.top+a.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&f(e)}}function u(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&p(e):e.state.jump.cursor=null}function l(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(o?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&f(e);var n=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},a=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};i.default.on(document,"keyup",(function r(u){u.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&p(e),i.default.off(document,"keyup",r),i.default.off(document,"click",n),e.off("mousedown",a))})),i.default.on(document,"click",n),e.on("mousedown",a)}}i.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==i.default.Init){var a=e.state.jump.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",a);var o=e.state.jump.onMouseOut;i.default.off(e.getWrapperElement(),"mouseout",o),i.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var f=e.state.jump={options:t,onMouseOver:r.bind(null,e),onMouseOut:u.bind(null,e),onKeyDown:l.bind(null,e)};i.default.on(e.getWrapperElement(),"mouseover",f.onMouseOver),i.default.on(e.getWrapperElement(),"mouseout",f.onMouseOut),i.default.on(document,"keydown",f.onKeyDown)}}));var o="undefined"!==typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function f(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),a=e.getTokenAt(n,!0),i=e.state.jump.options,r=i.getDestination||e.getHelper(n,"jump");if(r){var u=r(a,i,e);if(u){var l=e.markText({line:n.line,ch:a.start},{line:n.line,ch:a.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=l,e.state.jump.destination=u}}}}function p(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}},947:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(728)),r=a(n(779)),u=n(780);n(925),i.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,a=n.kind,i=n.step,l=r.default(t.schema,n);return"Field"===a&&0===i&&l.fieldDef||"AliasedField"===a&&2===i&&l.fieldDef?u.getFieldReference(l):"Directive"===a&&1===i&&l.directiveDef?u.getDirectiveReference(l):"Argument"===a&&0===i&&l.argDef?u.getArgumentReference(l):"EnumValue"===a&&l.enumValue?u.getEnumValueReference(l):"NamedType"===a&&l.type?u.getTypeReference(l):void 0}}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[16],{926:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(749),l=i(n(927));t.default=function(e){var t=u.onlineParser({eatWhitespace:function(e){return e.eatWhile(u.isIgnored)},lexRules:u.LexRules,parseRules:u.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}},927:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,i,u=e.levels;return((u&&0!==u.length?u[u.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(i=this.config)||void 0===i?void 0:i.indentUnit)||0)}},948:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=i(n(728)),l=i(n(926));u.default.defineMode("graphql",l.default)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[17],{756:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}},929:function(e,t,n){"use strict";function r(e,t){var n=e.filter(t);return 0===n.length?e:n}function i(e){return e.toLowerCase().replace(/\W/g,"")}function a(e,t){var n=function(e,t){var n,r,i=[],a=e.length,u=t.length;for(n=0;n<=a;n++)i[n]=[n];for(r=1;r<=u;r++)i[0][r]=r;for(n=1;n<=a;n++)for(r=1;r<=u;r++){var l=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+l),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+l))}return i[a][u]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var u=function(e,t){if(!t)return r(e,(function(e){return!e.isDeprecated}));return r(r(e.map((function(e){return{proximity:a(i(e.text),t),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry}))}(n,i(t.string));if(u){var l=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:u,from:{line:e.line,ch:l},to:{line:e.line,ch:t.end}}}}},955:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(728)),a=n(727),u=r(n(756)),l=r(n(929));i.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),r=e.getTokenAt(n),o=function(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,i=r.kind,o=r.step;if("Document"===i&&0===o)return l.default(e,t,[{text:"{"}]);var f=n.variableToType;if(!f)return;var p=function(e,t){var n={type:null,fields:null};return u.default(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?a.getNullableType(n.type):void 0;n.type=r instanceof a.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var i=n.type?a.getNamedType(n.type):void 0;n.fields=i instanceof a.GraphQLInputObjectType?i.getFields():null}else if("ObjectField"===t.kind){var u=t.name&&n.fields?n.fields[t.name]:null;n.type=u&&u.type}})),n}(f,t.state);if("Document"===i||"Variable"===i&&0===o){var s=Object.keys(f);return l.default(e,t,s.map((function(e){return{text:'"'+e+'": ',type:f[e]}})))}if(("ObjectValue"===i||"ObjectField"===i&&0===o)&&p.fields){var c=Object.keys(p.fields).map((function(e){return p.fields[e]}));return l.default(e,t,c.map((function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}})))}if("StringValue"===i||"NumberValue"===i||"BooleanValue"===i||"NullValue"===i||"ListValue"===i&&1===o||"ObjectField"===i&&2===o||"Variable"===i&&2===o){var d=p.type?a.getNamedType(p.type):void 0;if(d instanceof a.GraphQLInputObjectType)return l.default(e,t,[{text:"{"}]);if(d instanceof a.GraphQLEnumType){var y=d.getValues();return l.default(e,t,y.map((function(e){return{text:'"'+e.name+'"',type:d,description:e.description}})))}if(d===a.GraphQLBoolean)return l.default(e,t,[{text:"true",type:a.GraphQLBoolean,description:"Not false."},{text:"false",type:a.GraphQLBoolean,description:"Not true."}])}}(n,r,t);return o&&o.list&&o.list.length>0&&(o.from=i.default.Pos(o.from.line,o.from.ch),o.to=i.default.Pos(o.to.line,o.to.ch),i.default.signal(e,"hasCompletion",e,o,r)),o}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[18,30],{801:function(t,e,i){!function(t){"use strict";var e="CodeMirror-hint",i="CodeMirror-hint-active";function n(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}t.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var o in i)n[o]=i[o];return t.showHint(n)},t.defineExtension("showHint",(function(e){e=r(this,this.getCursor("start"),e);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var s=this.state.completionActive=new n(this,e);s.options.hint&&(t.signal(this,"startCompletion",this),s.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var o=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},s=window.cancelAnimationFrame||clearTimeout;function r(t,e,i){var n=t.options.hintOptions,o={};for(var s in p)o[s]=p[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(i)for(var s in i)void 0!==i[s]&&(o[s]=i[s]);return o.hint.resolve&&(o.hint=o.hint.resolve(t,e)),o}function c(t){return"string"==typeof t?t:t.text}function l(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var n=t.options.customKeys,o=n?{}:i;function s(t,n){var s;s="string"!=typeof n?function(t){return n(t,e)}:i.hasOwnProperty(n)?i[n]:n,o[t]=s}if(n)for(var r in n)n.hasOwnProperty(r)&&s(r,n[r]);var c=t.options.extraKeys;if(c)for(var r in c)c.hasOwnProperty(r)&&s(r,c[r]);return o}function h(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(n,o){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=o,this.picked=!1;var s=this,r=n.cm,a=r.getInputField().ownerDocument,u=a.defaultView||a.parentWindow,d=this.hints=a.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var f=n.cm.options.theme;d.className="CodeMirror-hints "+f,this.selectedHint=o.selectedHint||0;for(var p=o.list,m=0;m<p.length;++m){var g=d.appendChild(a.createElement("li")),v=p[m],y=e+(m!=this.selectedHint?"":" "+i);null!=v.className&&(y=v.className+" "+y),g.className=y,m==this.selectedHint&&g.setAttribute("aria-selected","true"),g.id=this.id+"-"+m,g.setAttribute("role","option"),v.render?v.render(g,o,v):g.appendChild(a.createTextNode(v.displayText||c(v))),g.hintId=m}var w=n.options.container||a.body,b=r.cursorCoords(n.options.alignWithWord?o.from:null),A=b.left,H=b.bottom,C=!0,k=0,x=0;if(w!==a.body){var S=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(w).position)?w:w.offsetParent,T=S.getBoundingClientRect(),F=a.body.getBoundingClientRect();k=T.left-F.left-S.scrollLeft,x=T.top-F.top-S.scrollTop}d.style.left=A-k+"px",d.style.top=H-x+"px";var M=u.innerWidth||Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),O=u.innerHeight||Math.max(a.body.offsetHeight,a.documentElement.offsetHeight);w.appendChild(d),r.getInputField().setAttribute("aria-autocomplete","list"),r.getInputField().setAttribute("aria-owns",this.id),r.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var N,P=n.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,I=!!n.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;if(setTimeout((function(){N=r.getScrollInfo()})),P.bottom-O>0){var E=P.bottom-P.top;if(b.top-(b.bottom-P.top)-E>0)d.style.top=(H=b.top-E-x)+"px",C=!1;else if(E>O){d.style.height=O-5+"px",d.style.top=(H=b.bottom-P.top-x)+"px";var R=r.getCursor();o.from.ch!=R.ch&&(b=r.cursorCoords(R),d.style.left=(A=b.left-k)+"px",P=d.getBoundingClientRect())}}var W,B=P.right-M;if(I&&(B+=r.display.nativeBarWidth),B>0&&(P.right-P.left>M&&(d.style.width=M-5+"px",B-=P.right-P.left-M),d.style.left=(A=b.left-B-k)+"px"),I)for(var K=d.firstChild;K;K=K.nextSibling)K.style.paddingRight=r.display.nativeBarWidth+"px";r.addKeyMap(this.keyMap=l(n,{moveFocus:function(t,e){s.changeActive(s.selectedHint+t,e)},setFocus:function(t){s.changeActive(t)},menuSize:function(){return s.screenAmount()},length:p.length,close:function(){n.close()},pick:function(){s.pick()},data:o})),n.options.closeOnUnfocus&&(r.on("blur",this.onBlur=function(){W=setTimeout((function(){n.close()}),100)}),r.on("focus",this.onFocus=function(){clearTimeout(W)})),r.on("scroll",this.onScroll=function(){var t=r.getScrollInfo(),e=r.getWrapperElement().getBoundingClientRect();N||(N=r.getScrollInfo());var i=H+N.top-t.top,o=i-(u.pageYOffset||(a.documentElement||a.body).scrollTop);if(C||(o+=d.offsetHeight),o<=e.top||o>=e.bottom)return n.close();d.style.top=i+"px",d.style.left=A+N.left-t.left+"px"}),t.on(d,"dblclick",(function(t){var e=h(d,t.target||t.srcElement);e&&null!=e.hintId&&(s.changeActive(e.hintId),s.pick())})),t.on(d,"click",(function(t){var e=h(d,t.target||t.srcElement);e&&null!=e.hintId&&(s.changeActive(e.hintId),n.options.completeOnSingleClick&&s.pick())})),t.on(d,"mousedown",(function(){setTimeout((function(){r.focus()}),20)}));var L=this.getSelectedHintRange();return 0===L.from&&0===L.to||this.scrollToActive(),t.signal(o,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function u(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function d(t,e,i,n){if(t.async)t(e,n,i);else{var o=t(e,i);o&&o.then?o.then(n):n(o)}}function f(e,i){var n,o=e.getHelpers(i,"hint");if(o.length){var s=function(t,e,i){var n=u(t,o);function s(o){if(o==n.length)return e(null);d(n[o],t,i,(function(t){t&&t.list.length>0?e(t):s(o+1)}))}s(0)};return s.async=!0,s.supportsSelection=!0,s}return(n=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:n})}:t.hint.anyword?function(e,i){return t.hint.anyword(e,i)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,i){var n=e.list[i],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,e,n):o.cm.replaceRange(c(n),n.from||e.from,n.to||e.to,"complete"),t.signal(e,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(s(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=o((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,i=++this.tick;d(this.options.hint,this.cm,this.options,(function(n){e.tick==i&&e.finishUpdate(n,t)}))}},finishUpdate:function(e,i){this.data&&t.signal(this.data,"update");var n=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(n&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+i,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=e]).className+=" "+i,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},t.registerHelper("hint","auto",{resolve:f}),t.registerHelper("hint","fromList",(function(e,i){var n,o=e.getCursor(),s=e.getTokenAt(o),r=t.Pos(o.line,s.start),c=o;s.start<o.ch&&/\w/.test(s.string.charAt(o.ch-s.start-1))?n=s.string.substr(0,o.ch-s.start):(n="",r=o);for(var l=[],h=0;h<i.words.length;h++){var a=i.words[h];a.slice(0,n.length)==n&&l.push(a)}if(l.length)return{list:l,from:r,to:c}})),t.commands.autocomplete=t.showHint;var p={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(i(728))},944:function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(i(728));i(801);var s=i(749);o.default.registerHelper("hint","graphql",(function(t,e){var i=e.schema;if(i){var n=t.getCursor(),r=t.getTokenAt(n),c=null!==r.type&&/"|\w/.test(r.string[0])?r.start:r.end,l=new s.Position(n.line,c),h={list:s.getAutocompleteSuggestions(i,t.getValue(),l,r,e.externalFragments).map((function(t){return{text:t.label,type:t.type,description:t.documentation,isDeprecated:t.isDeprecated,deprecationReason:t.deprecationReason}})),from:{line:n.line,ch:c},to:{line:n.line,ch:r.end}};return h&&h.list&&h.list.length>0&&(h.from=o.default.Pos(h.from.line,h.from.ch),h.to=o.default.Pos(h.to.line,h.to.ch),o.default.signal(t,"hasCompletion",t,h,r)),h}}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[19],{930:function(e,r,n){"use strict";var t,a,i,u,o,c,s;function l(){var e=i,r=[];if(v("{"),!y("}")){do{r.push(f())}while(y(","));v("}")}return{kind:"Object",start:e,end:o,members:r}}function f(){var e=i,r="String"===s?p():null;v("String"),v(":");var n=d();return{kind:"Member",start:e,end:o,key:r,value:n}}function d(){switch(s){case"[":return function(){var e=i,r=[];if(v("["),!y("]")){do{r.push(d())}while(y(","));v("]")}return{kind:"Array",start:e,end:o,values:r}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=p();return m(),e}v("Value")}function p(){return{kind:s,start:i,end:u,value:JSON.parse(t.slice(i,u))}}function v(e){if(s!==e){var r;if("EOF"===s)r="[end of file]";else if(u-i>1)r="`"+t.slice(i,u)+"`";else{var n=t.slice(i).match(/^.+?\b/);r="`"+(n?n[0]:t[i])+"`"}throw h("Expected "+e+" but found "+r+".")}m()}function h(e){return{message:e,start:i,end:u}}function y(e){if(s===e)return m(),!0}function b(){return u<a&&(u++,c=u===a?0:t.charCodeAt(u)),c}function m(){for(o=u;9===c||10===c||13===c||32===c;)b();if(0!==c){switch(i=u,c){case 34:return s="String",function(){b();for(;34!==c&&c>31;)if(92===c)switch(c=b()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:b();break;case 117:b(),k(),k(),k(),k();break;default:throw h("Bad character escape sequence.")}else{if(u===a)throw h("Unterminated string.");b()}if(34===c)return void b();throw h("Unterminated string.")}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s="Number",function(){45===c&&b();48===c?b():g();46===c&&(b(),g());69!==c&&101!==c||(43!==(c=b())&&45!==c||b(),g())}();case 102:if("false"!==t.slice(i,i+5))break;return u+=4,b(),void(s="Boolean");case 110:if("null"!==t.slice(i,i+4))break;return u+=3,b(),void(s="Null");case 116:if("true"!==t.slice(i,i+4))break;return u+=3,b(),void(s="Boolean")}s=t[i],b()}else s="EOF"}function k(){if(c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102)return b();throw h("Expected hexadecimal digit.")}function g(){if(c<48||c>57)throw h("Expected decimal digit.");do{b()}while(c>=48&&c<=57)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){t=e,a=e.length,i=u=o=-1,b(),m();var r=l();return v("EOF"),r}},956:function(e,r,n){"use strict";var t=this&&this.__read||function(e,r){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var t,a,i=n.call(e),u=[];try{for(;(void 0===r||r-- >0)&&!(t=i.next()).done;)u.push(t.value)}catch(o){a={error:o}}finally{try{t&&!t.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return u},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var i=a(n(728)),u=n(727),o=a(n(930));function c(e,r){if(!e||!r)return[];if(e instanceof u.GraphQLNonNull)return"Null"===r.kind?[[r,'Type "'+e+'" is non-nullable and cannot be null.']]:c(e.ofType,r);if("Null"===r.kind)return[];if(e instanceof u.GraphQLList){var n=e.ofType;return"Array"===r.kind?l(r.values||[],(function(e){return c(n,e)})):c(n,r)}if(e instanceof u.GraphQLInputObjectType){if("Object"!==r.kind)return[[r,'Type "'+e+'" must be an Object.']];var t=Object.create(null),a=l(r.members,(function(r){var n,a=null===(n=null===r||void 0===r?void 0:r.key)||void 0===n?void 0:n.value;t[a]=!0;var i=e.getFields()[a];return i?c(i?i.type:void 0,r.value):[[r.key,'Type "'+e+'" does not have a field "'+a+'".']]}));return Object.keys(e.getFields()).forEach((function(n){t[n]||e.getFields()[n].type instanceof u.GraphQLNonNull&&a.push([r,'Object of type "'+e+'" is missing required field "'+n+'".'])})),a}return"Boolean"===e.name&&"Boolean"!==r.kind||"String"===e.name&&"String"!==r.kind||"ID"===e.name&&"Number"!==r.kind&&"String"!==r.kind||"Float"===e.name&&"Number"!==r.kind||"Int"===e.name&&("Number"!==r.kind||(0|r.value)!==r.value)||(e instanceof u.GraphQLEnumType||e instanceof u.GraphQLScalarType)&&("String"!==r.kind&&"Number"!==r.kind&&"Boolean"!==r.kind&&"Null"!==r.kind||(null===(i=e.parseValue(r.value))||void 0===i||i!==i))?[[r,'Expected value of type "'+e+'".']]:[];var i}function s(e,r,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(r.start),to:e.posFromIndex(r.end)}}function l(e,r){return Array.prototype.concat.apply([],e.map(r))}i.default.registerHelper("lint","graphql-variables",(function(e,r,n){if(!e)return[];var a;try{a=o.default(e)}catch(u){if(u.stack)throw u;return[s(n,u,u.message)]}var i=r.variableToType;return i?function(e,r,n){var a=[];return n.members.forEach((function(n){var i;if(n){var u=null===(i=n.key)||void 0===i?void 0:i.value,o=r[u];o?c(o,n.value).forEach((function(r){var n=t(r,2),i=n[0],u=n[1];a.push(s(e,i,u))})):a.push(s(e,n.key,'Variable "$'+u+'" does not appear in any GraphQL query.'))}})),a}(n,i,a):[]}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[2],{746:function(e,E,t){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var n,T=(n=t(755))&&n.__esModule?n:{default:n};function r(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function R(e){return e.replace(/[\$\(-\+\.\?\[-\^\{-\}]/g,"\\$&")}var o=function(){function e(E){!function(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}(this,e),this.WHITESPACE_REGEX=/^([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/,this.NUMBER_REGEX=/^((\x2D[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?[0-9]+(\.[0-9]+)?([Ee]\x2D?[0-9]+(\.[0-9]+)?)?|0x[0-9A-Fa-f]+|0b[01]+)\b/,this.OPERATOR_REGEX=/^(!=|<<|>>|<>|==|<=|>=|!<|!>|\|\|\/|\|\/|\|\||::|\x2D>>|\x2D>|~~\*|~~|!~~\*|!~~|~\*|!~\*|!~|@|:=|(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/,this.BLOCK_COMMENT_REGEX=/^(\/\*(?:(?![])[\s\S])*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=this.createLineCommentRegex(E.lineCommentTypes),this.RESERVED_TOP_LEVEL_REGEX=this.createReservedWordRegex(E.reservedTopLevelWords),this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX=this.createReservedWordRegex(E.reservedTopLevelWordsNoIndent),this.RESERVED_NEWLINE_REGEX=this.createReservedWordRegex(E.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=this.createReservedWordRegex(E.reservedWords),this.WORD_REGEX=this.createWordRegex(E.specialWordChars),this.STRING_REGEX=this.createStringRegex(E.stringTypes),this.OPEN_PAREN_REGEX=this.createParenRegex(E.openParens),this.CLOSE_PAREN_REGEX=this.createParenRegex(E.closeParens),this.INDEXED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(E.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(E.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=this.createPlaceholderRegex(E.namedPlaceholderTypes,this.createStringPattern(E.stringTypes))}var E,t,n;return E=e,t=[{key:"createLineCommentRegex",value:function(e){return new RegExp("^((?:".concat(e.map((function(e){return R(e)})).join("|"),").*?(?:\r\n|\r|\n|$))"),"u")}},{key:"createReservedWordRegex",value:function(e){if(0===e.length)return new RegExp("^\b$","u");var E=(e=e.sort((function(e,E){return E.length-e.length||e.localeCompare(E)}))).join("|").replace(/ /g,"\\s+");return new RegExp("^(".concat(E,")\\b"),"iu")}},{key:"createWordRegex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new RegExp("^([\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}\\p{Connector_Punctuation}\\p{Join_Control}".concat(e.join(""),"]+)"),"u")}},{key:"createStringRegex",value:function(e){return new RegExp("^("+this.createStringPattern(e)+")","u")}},{key:"createStringPattern",value:function(e){var E={"``":"((`[^`]*($|`))+)","{}":"((\\{[^\\}]*($|\\}))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^N'\\\\]*(?:\\\\.[^N'\\\\]*)*('|$))+)"};return e.map((function(e){return E[e]})).join("|")}},{key:"createParenRegex",value:function(e){var E=this;return new RegExp("^("+e.map((function(e){return E.escapeParen(e)})).join("|")+")","iu")}},{key:"escapeParen",value:function(e){return 1===e.length?R(e):"\\b"+e+"\\b"}},{key:"createPlaceholderRegex",value:function(e,E){if(t=e,!Array.isArray(t)||0===t.length)return!1;var t,n=e.map(R).join("|");return new RegExp("^((?:".concat(n,")(?:").concat(E,"))"),"u")}},{key:"tokenize",value:function(e){for(var E,t=[];e.length;)E=this.getNextToken(e,E),e=e.substring(E.value.length),t.push(E);return t}},{key:"getNextToken",value:function(e,E){return this.getWhitespaceToken(e)||this.getCommentToken(e)||this.getStringToken(e)||this.getOpenParenToken(e)||this.getCloseParenToken(e)||this.getPlaceholderToken(e)||this.getNumberToken(e)||this.getReservedWordToken(e,E)||this.getWordToken(e)||this.getOperatorToken(e)}},{key:"getWhitespaceToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.WHITESPACE,regex:this.WHITESPACE_REGEX})}},{key:"getCommentToken",value:function(e){return this.getLineCommentToken(e)||this.getBlockCommentToken(e)}},{key:"getLineCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})}},{key:"getBlockCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})}},{key:"getStringToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.STRING,regex:this.STRING_REGEX})}},{key:"getOpenParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})}},{key:"getCloseParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})}},{key:"getPlaceholderToken",value:function(e){return this.getIdentNamedPlaceholderToken(e)||this.getStringNamedPlaceholderToken(e)||this.getIndexedPlaceholderToken(e)}},{key:"getIdentNamedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getStringNamedPlaceholderToken",value:function(e){var E=this;return this.getPlaceholderTokenWithKey({input:e,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return E.getEscapedPlaceholderKey({key:e.slice(2,-1),quoteChar:e.slice(-1)})}})}},{key:"getIndexedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getPlaceholderTokenWithKey",value:function(e){var E=e.input,t=e.regex,n=e.parseKey,r=this.getTokenOnFirstMatch({input:E,regex:t,type:T.default.PLACEHOLDER});return r&&(r.key=n(r.value)),r}},{key:"getEscapedPlaceholderKey",value:function(e){var E=e.key,t=e.quoteChar;return E.replace(new RegExp(R("\\"+t),"gu"),t)}},{key:"getNumberToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.NUMBER,regex:this.NUMBER_REGEX})}},{key:"getOperatorToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.OPERATOR,regex:this.OPERATOR_REGEX})}},{key:"getReservedWordToken",value:function(e,E){if(!E||!E.value||"."!==E.value)return this.getTopLevelReservedToken(e)||this.getNewlineReservedToken(e)||this.getTopLevelReservedTokenNoIndent(e)||this.getPlainReservedToken(e)}},{key:"getTopLevelReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.RESERVED_TOP_LEVEL,regex:this.RESERVED_TOP_LEVEL_REGEX})}},{key:"getNewlineReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})}},{key:"getTopLevelReservedTokenNoIndent",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.RESERVED_TOP_LEVEL_NO_INDENT,regex:this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX})}},{key:"getPlainReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.RESERVED,regex:this.RESERVED_PLAIN_REGEX})}},{key:"getWordToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:T.default.WORD,regex:this.WORD_REGEX})}},{key:"getTokenOnFirstMatch",value:function(e){var E=e.input,t=e.type,n=e.regex,T=E.match(n);return T?{type:t,value:T[1]}:void 0}}],t&&r(E.prototype,t),n&&r(E,n),e}();E.default=o,e.exports=E.default},748:function(e,E,t){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var n=N(t(755)),T=N(t(917)),r=N(t(918)),R=N(t(919)),o=N(t(746));function N(e){return e&&e.__esModule?e:{default:e}}function A(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,E,t){return E in e?Object.defineProperty(e,E,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[E]=t,e}var I=function(e){return e.replace(/[\t ]+$/,"")},i=function(){function e(E){!function(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}(this,e),this.cfg=E||{},this.indentation=new T.default(this.cfg.indent),this.inlineBlock=new r.default,this.params=new R.default(this.cfg.params),this.previousReservedToken={},this.tokens=[],this.index=0}var E,t,o;return E=e,t=[{key:"tokenOverride",value:function(){}},{key:"format",value:function(e){return this.tokens=this.constructor.tokenizer.tokenize(e),this.getFormattedQueryFromTokens().trim()}},{key:"getFormattedQueryFromTokens",value:function(){var e=this,E="";return this.tokens.forEach((function(t,T){e.index=T,(t=e.tokenOverride(t)||t).type===n.default.WHITESPACE||(t.type===n.default.LINE_COMMENT?E=e.formatLineComment(t,E):t.type===n.default.BLOCK_COMMENT?E=e.formatBlockComment(t,E):t.type===n.default.RESERVED_TOP_LEVEL?(E=e.formatTopLevelReservedWord(t,E),e.previousReservedToken=t):t.type===n.default.RESERVED_TOP_LEVEL_NO_INDENT?(E=e.formatTopLevelReservedWordNoIndent(t,E),e.previousReservedToken=t):t.type===n.default.RESERVED_NEWLINE?(E=e.formatNewlineReservedWord(t,E),e.previousReservedToken=t):t.type===n.default.RESERVED?(E=e.formatWithSpaces(t,E),e.previousReservedToken=t):E=t.type===n.default.OPEN_PAREN?e.formatOpeningParentheses(t,E):t.type===n.default.CLOSE_PAREN?e.formatClosingParentheses(t,E):t.type===n.default.PLACEHOLDER?e.formatPlaceholder(t,E):","===t.value?e.formatComma(t,E):":"===t.value?e.formatWithSpaceAfter(t,E):"."===t.value?e.formatWithoutSpaces(t,E):";"===t.value?e.formatQuerySeparator(t,E):e.formatWithSpaces(t,E))})),E}},{key:"formatLineComment",value:function(e,E){return this.addNewline(E+e.value)}},{key:"formatBlockComment",value:function(e,E){return this.addNewline(this.addNewline(E)+this.indentComment(e.value))}},{key:"indentComment",value:function(e){return e.replace(/\n[\t ]*/g,"\n"+this.indentation.getIndent()+" ")}},{key:"formatTopLevelReservedWordNoIndent",value:function(e,E){return this.indentation.decreaseTopLevel(),E=this.addNewline(E)+this.equalizeWhitespace(this.formatReservedWord(e.value)),this.addNewline(E)}},{key:"formatTopLevelReservedWord",value:function(e,E){return this.indentation.decreaseTopLevel(),E=this.addNewline(E),this.indentation.increaseTopLevel(),E+=this.equalizeWhitespace(this.formatReservedWord(e.value)),this.addNewline(E)}},{key:"formatNewlineReservedWord",value:function(e,E){return this.addNewline(E)+this.equalizeWhitespace(this.formatReservedWord(e.value))+" "}},{key:"equalizeWhitespace",value:function(e){return e.replace(/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g," ")}},{key:"formatOpeningParentheses",value:function(e,E){var t;return(O(t={},n.default.WHITESPACE,!0),O(t,n.default.OPEN_PAREN,!0),O(t,n.default.LINE_COMMENT,!0),O(t,n.default.OPERATOR,!0),t)[this.previousToken().type]||(E=I(E)),E+=this.cfg.uppercase?e.value.toUpperCase():e.value,this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),E=this.addNewline(E)),E}},{key:"formatClosingParentheses",value:function(e,E){return e.value=this.cfg.uppercase?e.value.toUpperCase():e.value,this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(e,E)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(e,this.addNewline(E)))}},{key:"formatPlaceholder",value:function(e,E){return E+this.params.get(e)+" "}},{key:"formatComma",value:function(e,E){return E=I(E)+e.value+" ",this.inlineBlock.isActive()||/^LIMIT$/i.test(this.previousReservedToken.value)?E:this.addNewline(E)}},{key:"formatWithSpaceAfter",value:function(e,E){return I(E)+e.value+" "}},{key:"formatWithoutSpaces",value:function(e,E){return I(E)+e.value}},{key:"formatWithSpaces",value:function(e,E){return E+("reserved"===e.type?this.formatReservedWord(e.value):e.value)+" "}},{key:"formatReservedWord",value:function(e){return this.cfg.uppercase?e.toUpperCase():e}},{key:"formatQuerySeparator",value:function(e,E){return this.indentation.resetIndentation(),I(E)+e.value+"\n".repeat(this.cfg.linesBetweenQueries||1)}},{key:"addNewline",value:function(e){return(e=I(e)).endsWith("\n")||(e+="\n"),e+this.indentation.getIndent()}},{key:"previousToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index-e]||{}}},{key:"tokenLookBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,E=Math.max(0,this.index-e),t=this.index;return this.tokens.slice(E,t).reverse()}},{key:"tokenLookAhead",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,E=this.index+1,t=this.index+e+1;return this.tokens.slice(E,t)}}],t&&A(E.prototype,t),o&&A(E,o),e}();E.default=i,O(i,"tokenizer",new o.default({reservedWords:[],reservedTopLevelWords:[],reservedNewlineWords:[],reservedTopLevelWordsNoIndent:[],stringTypes:[],openParens:[],closeParens:[],indexedPlaceholderTypes:[],namedPlaceholderTypes:[],lineCommentTypes:[],specialWordChars:[]})),e.exports=E.default},755:function(e,E,t){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;E.default={WHITESPACE:"whitespace",WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOP_LEVEL:"reserved-top-level",RESERVED_TOP_LEVEL_NO_INDENT:"reserved-top-level-no-indent",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"},e.exports=E.default},800:function(e,E,t){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.default=E.format=E.FORMATTERS=void 0;var n=A(t(916)),T=A(t(920)),r=A(t(921)),R=A(t(922)),o=A(t(923)),N=A(t(924));function A(e){return e&&e.__esModule?e:{default:e}}function O(e){return O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}var I={db2:n.default,n1ql:T.default,"pl/sql":r.default,plsql:r.default,redshift:R.default,spark:o.default,sql:N.default};E.FORMATTERS=I;var i=function(e){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!==typeof e)throw new Error("Invalid query argument. Extected string, instead got "+O(e));var t=N.default;if(void 0!==E.language&&(t=I[E.language]),void 0===t)throw Error("Unsupported SQL dialect: ".concat(E.language));return new t(E).format(e)};E.format=i;var u={format:i,FORMATTERS:I};E.default=u},916:function(e,E,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=R(t(748)),r=R(t(746));function R(e){return e&&e.__esModule?e:{default:e}}function o(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}function N(e,E){return N=Object.setPrototypeOf||function(e,E){return e.__proto__=E,e},N(e,E)}function A(e){var E=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=I(e);if(E){var T=I(this).constructor;t=Reflect.construct(n,arguments,T)}else t=n.apply(this,arguments);return O(this,t)}}function O(e,E){return!E||"object"!==n(E)&&"function"!==typeof E?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):E}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var i,u,S,L=function(e){!function(e,E){if("function"!==typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(E&&E.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),E&&N(e,E)}(t,e);var E=A(t);function t(){return o(this,t),E.apply(this,arguments)}return t}(T.default);E.default=L,i=L,u="tokenizer",S=new r.default({reservedWords:["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],reservedTopLevelWords:["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],reservedNewlineWords:["AND","CROSS JOIN","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],reservedTopLevelWordsNoIndent:["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"]}),u in i?Object.defineProperty(i,u,{value:S,enumerable:!0,configurable:!0,writable:!0}):i[u]=S,e.exports=E.default},917:function(e,E,t){"use strict";function n(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T="top-level",r=function(){function e(E){!function(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}(this,e),this.indent=E||" ",this.indentTypes=[]}var E,t,r;return E=e,(t=[{key:"getIndent",value:function(){return this.indent.repeat(this.indentTypes.length)}},{key:"increaseTopLevel",value:function(){this.indentTypes.push(T)}},{key:"increaseBlockLevel",value:function(){this.indentTypes.push("block-level")}},{key:"decreaseTopLevel",value:function(){this.indentTypes.length>0&&this.indentTypes[this.indentTypes.length-1]===T&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===T;);}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}])&&n(E.prototype,t),r&&n(E,r),e}();E.default=r,e.exports=E.default},918:function(e,E,t){"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var n,T=(n=t(755))&&n.__esModule?n:{default:n};function r(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var R=function(){function e(){!function(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}(this,e),this.level=0}var E,t,n;return E=e,(t=[{key:"beginIfPossible",value:function(e,E){0===this.level&&this.isInlineBlock(e,E)?this.level=1:this.level>0?this.level++:this.level=0}},{key:"end",value:function(){this.level--}},{key:"isActive",value:function(){return this.level>0}},{key:"isInlineBlock",value:function(e,E){for(var t=0,n=0,r=E;r<e.length;r++){var R=e[r];if((t+=R.value.length)>50)return!1;if(R.type===T.default.OPEN_PAREN)n++;else if(R.type===T.default.CLOSE_PAREN&&0===--n)return!0;if(this.isForbiddenToken(R))return!1}return!1}},{key:"isForbiddenToken",value:function(e){var E=e.type,t=e.value;return E===T.default.RESERVED_TOP_LEVEL||E===T.default.RESERVED_NEWLINE||E===T.default.COMMENT||E===T.default.BLOCK_COMMENT||";"===t}}])&&r(E.prototype,t),n&&r(E,n),e}();E.default=R,e.exports=E.default},919:function(e,E,t){"use strict";function n(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=function(){function e(E){!function(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}(this,e),this.params=E,this.index=0}var E,t,T;return E=e,(t=[{key:"get",value:function(e){var E=e.key,t=e.value;return this.params?E?this.params[E]:this.params[this.index++]:t}}])&&n(E.prototype,t),T&&n(E,T),e}();E.default=T,e.exports=E.default},920:function(e,E,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=R(t(748)),r=R(t(746));function R(e){return e&&e.__esModule?e:{default:e}}function o(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}function N(e,E){return N=Object.setPrototypeOf||function(e,E){return e.__proto__=E,e},N(e,E)}function A(e){var E=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=I(e);if(E){var T=I(this).constructor;t=Reflect.construct(n,arguments,T)}else t=n.apply(this,arguments);return O(this,t)}}function O(e,E){return!E||"object"!==n(E)&&"function"!==typeof E?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):E}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var i,u,S,L=function(e){!function(e,E){if("function"!==typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(E&&E.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),E&&N(e,E)}(t,e);var E=A(t);function t(){return o(this,t),E.apply(this,arguments)}return t}(T.default);E.default=L,i=L,u="tokenizer",S=new r.default({reservedWords:["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],reservedTopLevelWords:["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],reservedNewlineWords:["AND","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","XOR"],reservedTopLevelWordsNoIndent:["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"]}),u in i?Object.defineProperty(i,u,{value:S,enumerable:!0,configurable:!0,writable:!0}):i[u]=S,e.exports=E.default},921:function(e,E,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=o(t(748)),r=o(t(746)),R=o(t(755));function o(e){return e&&e.__esModule?e:{default:e}}function N(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}function A(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,E){return O=Object.setPrototypeOf||function(e,E){return e.__proto__=E,e},O(e,E)}function I(e){var E=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=u(e);if(E){var T=u(this).constructor;t=Reflect.construct(n,arguments,T)}else t=n.apply(this,arguments);return i(this,t)}}function i(e,E){return!E||"object"!==n(E)&&"function"!==typeof E?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):E}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var S,L,a,l=function(e){!function(e,E){if("function"!==typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(E&&E.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),E&&O(e,E)}(r,e);var E,t,n,T=I(r);function r(){return N(this,r),T.apply(this,arguments)}return E=r,(t=[{key:"tokenOverride",value:function(e){if(e.type===R.default.RESERVED_TOP_LEVEL&&"SET"===e.value.toUpperCase()&&"BY"===this.previousReservedToken.value.toUpperCase())return e.type=R.default.RESERVED,e}}])&&A(E.prototype,t),n&&A(E,n),r}(T.default);E.default=l,S=l,L="tokenizer",a=new r.default({reservedWords:["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BREADTH","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DEPTH","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","END","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SEARCH","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],reservedTopLevelWords:["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UPDATE","VALUES","WHERE"],reservedNewlineWords:["AND","CROSS APPLY","CROSS JOIN","ELSE","END","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],reservedTopLevelWordsNoIndent:["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],stringTypes:['""',"N''","''","``"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"]}),L in S?Object.defineProperty(S,L,{value:a,enumerable:!0,configurable:!0,writable:!0}):S[L]=a,e.exports=E.default},922:function(e,E,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=R(t(748)),r=R(t(746));function R(e){return e&&e.__esModule?e:{default:e}}function o(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}function N(e,E){return N=Object.setPrototypeOf||function(e,E){return e.__proto__=E,e},N(e,E)}function A(e){var E=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=I(e);if(E){var T=I(this).constructor;t=Reflect.construct(n,arguments,T)}else t=n.apply(this,arguments);return O(this,t)}}function O(e,E){return!E||"object"!==n(E)&&"function"!==typeof E?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):E}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var i,u,S,L=function(e){!function(e,E){if("function"!==typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(E&&E.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),E&&N(e,E)}(t,e);var E=A(t);function t(){return o(this,t),E.apply(this,arguments)}return t}(T.default);E.default=L,i=L,u="tokenizer",S=new r.default({reservedWords:["AES128","AES256","ALLOWOVERWRITE","ANALYSE","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GZIP","IDENTITY","IGNORE","ILIKE","INITIALLY","INTO","LEADING","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NULLS","OFF","OFFLINE","OFFSET","OLD","ON","ONLY","OPEN","ORDER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","REJECTLOG","RESORT","RESTORE","SESSION_USER","SIMILAR","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WITH","WITHOUT","PREDICATE","COLUMNS","COMPROWS","COMPRESSION","COPY","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE","VACUUM","COPY","UNLOAD","EVEN","ALL"],reservedTopLevelWords:["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","INTERSECT","TOP","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UPDATE","VALUES","WHERE","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE"],reservedNewlineWords:["AND","CROSS JOIN","ELSE","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED"],reservedTopLevelWordsNoIndent:[],stringTypes:['""',"''","``"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@","#","$"],lineCommentTypes:["--"]}),u in i?Object.defineProperty(i,u,{value:S,enumerable:!0,configurable:!0,writable:!0}):i[u]=S,e.exports=E.default},923:function(e,E,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=o(t(748)),r=o(t(746)),R=o(t(755));function o(e){return e&&e.__esModule?e:{default:e}}function N(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}function A(e,E){for(var t=0;t<E.length;t++){var n=E[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function O(e,E){return O=Object.setPrototypeOf||function(e,E){return e.__proto__=E,e},O(e,E)}function I(e){var E=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=u(e);if(E){var T=u(this).constructor;t=Reflect.construct(n,arguments,T)}else t=n.apply(this,arguments);return i(this,t)}}function i(e,E){return!E||"object"!==n(E)&&"function"!==typeof E?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):E}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var S,L,a,l=function(e){!function(e,E){if("function"!==typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(E&&E.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),E&&O(e,E)}(r,e);var E,t,n,T=I(r);function r(){return N(this,r),T.apply(this,arguments)}return E=r,(t=[{key:"tokenOverride",value:function(e){if(e.type===R.default.RESERVED_TOP_LEVEL&&"WINDOW"===e.value.toUpperCase())for(var E=this.tokenLookAhead(),t=0;t<E.length;t++)return E[t].type===R.default.OPEN_PAREN&&(e.type=R.default.RESERVED),e;if(e.type===R.default.CLOSE_PAREN&&"END"===e.value.toUpperCase())for(var n=this.tokenLookBack(),T=0;T<n.length;T++){var r=n[T];return r.type===R.default.OPERATOR&&"."===r.value&&(e.type=R.default.WORD),e}}}])&&A(E.prototype,t),n&&A(E,n),r}(T.default);E.default=l,S=l,L="tokenizer",a=new r.default({reservedWords:["ALL","ALTER","ANALYSE","ANALYZE","ARRAY_ZIP","ARRAY","AS","ASC","AVG","BETWEEN","CASCADE","CASE","CAST","COALESCE","COLLECT_LIST","COLLECT_SET","COLUMN","COLUMNS","COMMENT","CONSTRAINT","CONTAINS","CONVERT","COUNT","CUME_DIST","CURRENT ROW","CURRENT_DATE","CURRENT_TIMESTAMP","DATABASE","DATABASES","DATE_ADD","DATE_SUB","DATE_TRUNC","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DAY","DAYS","DECODE","DEFAULT","DELETE","DENSE_RANK","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DROP","ELSE","ENCODE","END","EXISTS","EXPLAIN","EXPLODE_OUTER","EXPLODE","FILTER","FIRST_VALUE","FIRST","FIXED","FLATTEN","FOLLOWING","FROM_UNIXTIME","FULL","GREATEST","GROUP_CONCAT","HOUR_MINUTE","HOUR_SECOND","HOUR","HOURS","IF","IFNULL","IN","INSERT","INTERVAL","INTO","IS","LAG","LAST_VALUE","LAST","LEAD","LEADING","LEAST","LEVEL","LIKE","MAX","MERGE","MIN","MINUTE_SECOND","MINUTE","MONTH","NATURAL","NOT","NOW()","NTILE","NULL","NULLIF","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPTIMIZE","OVER","PERCENT_RANK","PRECEDING","RANGE","RANK","REGEXP","RENAME","RLIKE","ROW","ROWS","SECOND","SEPARATOR","SEQUENCE","SIZE","STRING","STRUCT","SUM","TABLE","TABLES","TEMPORARY","THEN","TO_DATE","TO_JSON","TO","TRAILING","TRANSFORM","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNIQUE","UNIX_TIMESTAMP","UNLOCK","UNSIGNED","USING","VARIABLES","VIEW","WHEN","WITH","YEAR_MONTH"],reservedTopLevelWords:["ADD","AFTER","ALTER COLUMN","ALTER DATABASE","ALTER SCHEMA","ALTER TABLE","CLUSTER BY","CLUSTERED BY","DELETE FROM","DISTRIBUTE BY","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","OPTIONS","ORDER BY","PARTITION BY","PARTITIONED BY","RANGE","ROWS","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","TBLPROPERTIES","UPDATE","USING","VALUES","WHERE","WINDOW"],reservedNewlineWords:["AND","ANTI JOIN","CREATE OR","CREATE","CROSS JOIN","ELSE","FULL OUTER JOIN","INNER JOIN","JOIN","LATERAL VIEW","LEFT ANTI JOIN","LEFT JOIN","LEFT OUTER JOIN","LEFT SEMI JOIN","NATURAL ANTI JOIN","NATURAL FULL OUTER JOIN","NATURAL INNER JOIN","NATURAL JOIN","NATURAL LEFT ANTI JOIN","NATURAL LEFT OUTER JOIN","NATURAL LEFT SEMI JOIN","NATURAL OUTER JOIN","NATURAL RIGHT OUTER JOIN","NATURAL RIGHT SEMI JOIN","NATURAL SEMI JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","RIGHT SEMI JOIN","SEMI JOIN","WHEN","XOR"],reservedTopLevelWordsNoIndent:["EXCEPT ALL","EXCEPT","INTERSECT ALL","INTERSECT","UNION ALL","UNION"],stringTypes:['""',"''","``","{}"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["$"],lineCommentTypes:["--"]}),L in S?Object.defineProperty(S,L,{value:a,enumerable:!0,configurable:!0,writable:!0}):S[L]=a,e.exports=E.default},924:function(e,E,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(E,"__esModule",{value:!0}),E.default=void 0;var T=R(t(748)),r=R(t(746));function R(e){return e&&e.__esModule?e:{default:e}}function o(e,E){if(!(e instanceof E))throw new TypeError("Cannot call a class as a function")}function N(e,E){return N=Object.setPrototypeOf||function(e,E){return e.__proto__=E,e},N(e,E)}function A(e){var E=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=I(e);if(E){var T=I(this).constructor;t=Reflect.construct(n,arguments,T)}else t=n.apply(this,arguments);return O(this,t)}}function O(e,E){return!E||"object"!==n(E)&&"function"!==typeof E?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):E}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var i,u,S,L=function(e){!function(e,E){if("function"!==typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(E&&E.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),E&&N(e,E)}(t,e);var E=A(t);function t(){return o(this,t),E.apply(this,arguments)}return t}(T.default);E.default=L,i=L,u="tokenizer",S=new r.default({reservedWords:["ACCESSIBLE","ACTION","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ANALYSE","ANALYZE","AS","ASC","AUTOCOMMIT","AUTO_INCREMENT","BACKUP","BEGIN","BETWEEN","BINLOG","BOTH","CASCADE","CHANGE","CHANGED","CHARACTER SET","CHARSET","CHECK","CHECKSUM","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPRESSED","CONCURRENT","CONSTRAINT","CONTAINS","CONVERT","CREATE","CROSS","CURRENT_TIMESTAMP","DATABASE","DATABASES","DAY","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DEFAULT","DEFINER","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO","DROP","DUMPFILE","DUPLICATE","DYNAMIC","ELSE","ENCLOSED","ENGINE","ENGINES","ENGINE_TYPE","ESCAPE","ESCAPED","EVENTS","EXEC","EXECUTE","EXISTS","EXPLAIN","EXTENDED","FAST","FETCH","FIELDS","FILE","FIRST","FIXED","FLUSH","FOR","FORCE","FOREIGN","FULL","FULLTEXT","FUNCTION","GLOBAL","GRANT","GRANTS","GROUP_CONCAT","HEAP","HIGH_PRIORITY","HOSTS","HOUR","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IFNULL","IGNORE","IN","INDEX","INDEXES","INFILE","INSERT","INSERT_ID","INSERT_METHOD","INTERVAL","INTO","INVOKER","IS","ISOLATION","KEY","KEYS","KILL","LAST_INSERT_ID","LEADING","LEVEL","LIKE","LINEAR","LINES","LOAD","LOCAL","LOCK","LOCKS","LOGS","LOW_PRIORITY","MARIA","MASTER","MASTER_CONNECT_RETRY","MASTER_HOST","MASTER_LOG_FILE","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MERGE","MINUTE","MINUTE_SECOND","MIN_ROWS","MODE","MODIFY","MONTH","MRG_MYISAM","MYISAM","NAMES","NATURAL","NOT","NOW()","NULL","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPEN","OPTIMIZE","OPTION","OPTIONALLY","OUTFILE","PACK_KEYS","PAGE","PARTIAL","PARTITION","PARTITIONS","PASSWORD","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PURGE","QUICK","RAID0","RAID_CHUNKS","RAID_CHUNKSIZE","RAID_TYPE","RANGE","READ","READ_ONLY","READ_WRITE","REFERENCES","REGEXP","RELOAD","RENAME","REPAIR","REPEATABLE","REPLACE","REPLICATION","RESET","RESTORE","RESTRICT","RETURN","RETURNS","REVOKE","RLIKE","ROLLBACK","ROW","ROWS","ROW_FORMAT","SECOND","SECURITY","SEPARATOR","SERIALIZABLE","SESSION","SHARE","SHOW","SHUTDOWN","SLAVE","SONAME","SOUNDS","SQL","SQL_AUTO_IS_NULL","SQL_BIG_RESULT","SQL_BIG_SELECTS","SQL_BIG_TABLES","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_LOG_BIN","SQL_LOG_OFF","SQL_LOG_UPDATE","SQL_LOW_PRIORITY_UPDATES","SQL_MAX_JOIN_SIZE","SQL_NO_CACHE","SQL_QUOTE_SHOW_CREATE","SQL_SAFE_UPDATES","SQL_SELECT_LIMIT","SQL_SLAVE_SKIP_COUNTER","SQL_SMALL_RESULT","SQL_WARNINGS","START","STARTING","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","STRIPED","SUPER","TABLE","TABLES","TEMPORARY","TERMINATED","THEN","TO","TRAILING","TRANSACTIONAL","TRUE","TRUNCATE","TYPE","TYPES","UNCOMMITTED","UNIQUE","UNLOCK","UNSIGNED","USAGE","USE","USING","VARIABLES","VIEW","WITH","WORK","WRITE","YEAR_MONTH"],reservedTopLevelWords:["ADD","AFTER","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INSERT","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],reservedNewlineWords:["AND","CROSS APPLY","CROSS JOIN","ELSE","INNER JOIN","JOIN","LEFT JOIN","LEFT OUTER JOIN","OR","OUTER APPLY","OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","WHEN","XOR"],reservedTopLevelWordsNoIndent:["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],stringTypes:['""',"N''","''","``","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@",":"],lineCommentTypes:["#","--"]}),u in i?Object.defineProperty(i,u,{value:S,enumerable:!0,configurable:!0,writable:!0}):i[u]=S,e.exports=E.default}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[20],{941:function(e,r,n){"use strict";n.r(r);var t=n(7),a=n(192),l=n(78),i=n(321),s=n(689),o=n(105),c=n(800),u=n(150),d=n(98),j=n(1);r.default=function(e){var r=e.query;return Object(j.jsx)(o.d,{loadSql:!0,query:Object(t.a)(Object(t.a)({},r),{},{renewQuery:!0}),render:function(e){var r,n=e.sqlQuery,t=e.resultSet,o=e.error;if(o)return Object(j.jsx)(d.a,{error:o});var b=(null===t||void 0===t?void 0:t.serialize())||{},f=null===n||void 0===n?void 0:n.rawQuery(),y=null===(r=b.loadResponse)||void 0===r?void 0:r.results[0];return Object(j.jsxs)(i.a,{defaultActiveKey:"refreshKeys",tabBarExtraContent:Object(j.jsxs)("span",{children:["Last Refresh Time:\xa0",Object(j.jsx)("b",{children:null===y||void 0===y?void 0:y.lastRefreshTime})]}),children:[Object(j.jsx)(i.a.TabPane,{tab:"Refresh Keys",children:Object(j.jsx)(s.a,{loading:!n,pagination:!1,scroll:{x:!0},columns:[{title:"Refresh Key SQL",key:"refreshKey",render:function(e,r){return Object(j.jsx)(u.a,{code:Object(c.format)(r[0])})}},{title:"Value",key:"value",render:function(e,r){return Object(j.jsx)(u.a,{code:(null===y||void 0===y?void 0:y.refreshKeyValues)&&f&&JSON.stringify(y.refreshKeyValues[f.cacheKeyQueries.indexOf(r)],null,2)})}}],dataSource:null===f||void 0===f?void 0:f.cacheKeyQueries})},"refreshKeys"),Object(j.jsx)(i.a.TabPane,{tab:"Pre-aggregations",children:Object(j.jsx)(s.a,{loading:!n,pagination:!1,scroll:{x:!0},columns:[{title:"Table Name",key:"tableName",dataIndex:"tableName",render:function(e){return Object(j.jsx)("b",{children:e})}},{title:"Refresh Key SQL",key:"refreshKey",dataIndex:"invalidateKeyQueries",render:function(e){return e.map((function(e){return Object(j.jsx)(u.a,{code:Object(c.format)(e[0])},e[0])}))}},{title:"Refresh Key Value",key:"value",render:function(e,r){var n,t,a,l=null===y||void 0===y||null===(n=y.usedPreAggregations)||void 0===n||null===(t=n[r.tableName])||void 0===t?void 0:t.refreshKeyValues;return Array.isArray(l)&&(l=l.reduce((function(e,r){return e.concat(r)}),[])),null===(a=l)||void 0===a?void 0:a.map((function(e){return Object(j.jsx)(u.a,{code:JSON.stringify(e,null,2)},JSON.stringify(e))}))}}],dataSource:null===f||void 0===f?void 0:f.preAggregations})},"preAggregations"),Object(j.jsx)(i.a.TabPane,{tab:"Rollup Match Results",children:Object(j.jsx)(s.a,{loading:!n,pagination:!1,scroll:{x:!0},columns:[{title:"Rollup Name",key:"name",dataIndex:"name",render:function(e){return Object(j.jsx)("b",{children:e})}},{title:"Rollup Definition",key:"rollup",dataIndex:"references",render:function(e){return Object(j.jsx)(u.a,{code:JSON.stringify(e,null,2)})}},{title:"Can Be Used",key:"canUsePreAggregation",dataIndex:"canUsePreAggregation",render:function(e){return e?Object(j.jsx)(a.a,{style:{color:"#52c41a",fontSize:"2em"}}):Object(j.jsx)(l.a,{style:{color:"#c2371b",fontSize:"2em"}})}}],dataSource:null===f||void 0===f?void 0:f.rollupMatchResults})},"rollupMatchResults")]})}})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[21],{960:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return A}));var r,i=t(15),a=t(932),u=t(931),o=t(14),l=t(0),c=(t(915),t(101)),s=t(52),d=t(26),b=t(7),f=t(9),v=t(50),h=t(51),k=t(732),E=t(738),m=["gt","gte","lt","lte"],O={equals:"in",notEquals:"notIn",notSet:"set"};!function(e){e.AND="AND",e.OR="OR",e.PLAIN="PLAIN"}(r||(r={}));var p,y=function(){function e(n,t){Object(v.a)(this,e),this.cubeQuery=n,this.types=t,this.cubes={},this.prepareCubes()}return Object(h.a)(e,[{key:"convert",value:function(){return E.a(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"CubeQuery";return{kind:k.a.DOCUMENT,definitions:[{kind:k.a.OPERATION_DEFINITION,name:{kind:k.a.NAME,value:t},operation:"query",selectionSet:{kind:k.a.SELECTION_SET,selections:[{kind:k.a.FIELD,name:{kind:k.a.NAME,value:"cube"},arguments:e,selectionSet:{kind:k.a.SELECTION_SET,selections:n}}]}}]}}(this.getCubeArgs(),this.getFieldsSelections()))}},{key:"resolveFilter",value:function(e,n){var t=this,i=Object.values(e.reduce((function(e,n){if(n.or||n.and)return e;var t=(n.member||n.dimension).split("."),i=Object(f.a)(t,2),a=i[0],u=i[1];return e[a]||(e[a]={kind:r.PLAIN,cubeName:a,fields:[],filters:[]}),e[a].fields.push(u),e[a].filters.push(n),e}),{})),a=e.map((function(e){return!(!e.and&&!e.or)&&{kind:e.and?r.AND:r.OR,filters:e.and||e.or}})).filter(Boolean);return i.concat(a).map((function(e){return e.kind!==r.PLAIN?n?t.objectValue([t.booleanFilter(e.kind,t.resolveFilter(e.filters,e))]):t.booleanFilter(e.kind,t.resolveFilter(e.filters,e)):e.fields.length===Object(s.i)(e.fields).length?n?t.objectValue(t.objectFieldFilter(e.filters),Object(s.h)(e.cubeName)):t.objectFieldFilter(e.filters,Object(s.h)(e.cubeName)):t.objectField(t.booleanFilter((null===n||void 0===n?void 0:n.kind)||"AND",e.filters.map((function(n){return(n.and||n.or)&&t.resolveFilter(e.filters,e.kind),t.objectValue(t.objectFieldFilter(n))}))),Object(s.h)(e.cubeName))}))}},{key:"objectValue",value:function(e,n){return n?{kind:k.a.OBJECT,fields:[{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:n},value:{kind:k.a.OBJECT,fields:Array.isArray(e)?e:[e]}}]}:{kind:k.a.OBJECT,fields:Array.isArray(e)?e:[e]}}},{key:"objectFieldFilter",value:function(e,n){var t=this,r=Array.isArray(e)?e:[e],i=function(e){var n="number"===t.types[e.member||e.dimension]?k.a.FLOAT:k.a.STRING;return["set","notSet"].includes(e.operator)?{kind:k.a.BOOLEAN,value:"set"===e.operator}:"string"===typeof e.values?{kind:n,value:e.values}:1===e.values.length?{kind:n,value:e.values[0].toString()}:{kind:k.a.LIST,values:e.values.map((function(e){return{kind:n,value:e}}))}},a=r.map((function(e){var n=e.member||e.dimension;if(!t.types[n])throw new Error('Unknown member type for "'.concat(n,'". Make sure "').concat(n,'" exists in the schema.'));if(m.includes(e.operator)&&(e.values||[]).length>1)throw new Error('Filter operator "'.concat(e.operator,'" must have a single value'));return{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:n.split(".")[1]},value:{kind:k.a.OBJECT,fields:void 0!==e.values||["set","notSet"].includes(e.operator)?[{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:"equals"===e.operator&&(e.values||[]).length<=1?e.operator:O[e.operator]||e.operator},value:i(e)}]:[]}}}));return n?[{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:n},value:{kind:k.a.OBJECT,fields:a}}]:a}},{key:"objectField",value:function(e,n){return{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:n},value:{kind:k.a.OBJECT,fields:Array.isArray(e)?e:[e]}}}},{key:"booleanFilter",value:function(e,n){return{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:e},value:{kind:k.a.LIST,values:n}}}},{key:"orderByArg",value:function(e){return{kind:k.a.ARGUMENT,name:{kind:k.a.NAME,value:"orderBy"},value:{kind:k.a.OBJECT,fields:e.map((function(e){var n=Object(f.a)(e,2),t=n[0],r=n[1];return{kind:k.a.OBJECT_FIELD,name:{kind:k.a.NAME,value:t},value:{kind:k.a.ENUM,value:r}}}))}}}},{key:"getFieldsSelections",value:function(){var e=this,n=[];return Object.entries(this.cubes).forEach((function(t){var r=Object(f.a)(t,2),i=r[0],a=r[1],u=a.fields,o=a.orderBy;n.push({kind:k.a.FIELD,name:{kind:k.a.NAME,value:i},arguments:o.length?[e.orderByArg(o)]:[],selectionSet:{kind:k.a.SELECTION_SET,selections:u.map((function(e){var n=null;return e.granularities&&(n={selectionSet:{kind:k.a.SELECTION_SET,selections:e.granularities.map((function(e){return{kind:k.a.FIELD,name:{kind:k.a.NAME,value:e}}}))}}),Object(b.a)({kind:k.a.FIELD,name:{kind:k.a.NAME,value:e.name}},n)}))}})})),n}},{key:"getCubeArgs",value:function(){var e=this,n=[["timezone",k.a.STRING],["limit",k.a.INT],["offset",k.a.INT]],t=[];n.forEach((function(n){var r=Object(f.a)(n,2),i=r[0],a=r[1];e.cubeQuery[i]&&t.push({kind:k.a.ARGUMENT,name:{kind:k.a.NAME,value:i},value:{kind:a,value:e.cubeQuery[i]}})}));var r=Object(d.a)(this.cubeQuery.filters||[]);return(this.cubeQuery.timeDimensions||[]).forEach((function(e){e.dateRange&&r.push({member:e.dimension,operator:"inDateRange",values:e.dateRange})})),r.length&&t.push({kind:k.a.ARGUMENT,name:{kind:k.a.NAME,value:"where"},value:{kind:k.a.OBJECT,fields:this.resolveFilter(r)}}),t}},{key:"prepareCubes",value:function(){var e,n=this,t=function(e){n.cubes[e]||(n.cubes[e]={fields:[],filters:[],orderBy:[]})};["measures","dimensions","segments"].forEach((function(e){n.cubeQuery[e]&&n.cubeQuery[e].forEach((function(e){var r=e.split("."),i=Object(f.a)(r,3),a=i[0],u=i[1],o=i[2],l=Object(s.h)(a),c=o;"time"===n.types["".concat(a,".").concat(u)]&&(c="value"),t(l);var v=n.cubes[l].fields.find((function(e){return e.name===u}));n.cubes[l].fields.push(Object(b.a)({name:u},c?{granularities:[].concat(Object(d.a)((null===v||void 0===v?void 0:v.granularities)||[]),[c])}:null))}))}));var r={};(null===(e=this.cubeQuery.timeDimensions)||void 0===e||e.forEach((function(e){var n=e.dimension.split("."),t=Object(f.a)(n,2),i=t[0],a=t[1],u="".concat(i,".").concat(a);e.granularity&&(r[u]=(r[u]||[]).concat([e.granularity]))})),Object.entries(r).forEach((function(e){var r=Object(f.a)(e,2),i=r[0],a=r[1],u=i.split("."),o=Object(f.a)(u,2),l=o[0],c=o[1],b=Object(s.h)(l);t(b);var v=n.cubes[b].fields.find((function(e){return e.name===c}));v?v.granularities=Object(s.i)([].concat(Object(d.a)(v.granularities||[]),Object(d.a)(a))):n.cubes[b].fields.push({name:c,granularities:a})})),this.cubeQuery.order)&&(Array.isArray(this.cubeQuery.order)?this.cubeQuery.order:Object.entries(this.cubeQuery.order)).forEach((function(e){var t=Object(f.a)(e,2),r=t[0],i=t[1],a=r.split("."),u=Object(f.a)(a,2),o=u[0],l=u[1],c=Object(s.h)(o);if(!n.cubes[c])throw new Error('Order without selecting the cube is not allowed. Did you forget to include the "'.concat(o,'" cube?'));if(!n.cubes[c].fields.find((function(e){return e.name===l})))throw new Error('Order without selecting the member is not allowed. Did you forget to include the "'.concat(l,'" member?'));n.cubes[c].orderBy.push([l,i])}))}}]),e}(),j=t(30),g=t(1),N=o.d.div(p||(p=Object(i.a)(["\n margin-top: -15px;\n height: 400px;\n border-radius: 8px;\n overflow: hidden;\n\n .graphiql-container {\n box-sizing: initial;\n\n * {\n box-sizing: initial;\n }\n\n .topBar {\n background: none;\n }\n\n .docExplorerShow {\n border-left: none;\n background: none;\n }\n\n .CodeMirror-scroll,\n .CodeMirror-lines {\n background: white;\n }\n\n .doc-explorer-title-bar {\n height: 50px;\n }\n }\n"])));function A(e){var n=e.apiUrl,t=e.query,r=e.meta,i=Object(j.i)().token,o=Object(j.l)(),d=i||o,b=Object(l.useMemo)((function(){return Object(a.a)({url:n.replace("/v1","/graphql"),headers:d?{authorization:d}:{}})}),[n,d]),f=Object(l.useMemo)((function(){return Object(s.f)(r)}),[r]),v=Object(c.a)((function(){if(!f)return"";try{return new y(t,f).convert().replace("{"," { ").replace("}"," } ")}catch(e){return"# ".concat(e,"\n")}}),[t,f]);return Object(g.jsx)(N,{children:Object(g.jsx)(u.a,{query:v,fetcher:b})})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[22],{940:function(n,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return d}));var t=r(9),a=r(0),o=r(105),c=r(800),u=r(150),l=r(98),s=r(1);function i(n){var e=n.sql,r=n.loading,t=n.onChange;return Object(a.useEffect)((function(){t({sql:e,loading:r})}),[e,r]),null}function d(n){var e=n.query,r=n.onChange;return Object(s.jsx)(o.d,{loadSql:"only",query:e,render:function(n){var e=n.sqlQuery,a=n.loadingState,o=n.error;if(o)return Object(s.jsx)(l.a,{error:o});var d=Array.isArray(e)?e:[e],j=Object(t.a)(d,1)[0],g=j&&Object(c.format)(j.sql());return Object(s.jsxs)(s.Fragment,{children:[Object(s.jsx)(u.a,{code:g}),Object(s.jsx)(i,{loading:a.isLoading,sql:g,onChange:function(n){var e=n.sql,t=n.loading;r({loading:t,value:e})}})]})}})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[23],{945:function(e,t,r){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(728)),i=r(749),s=["error","warning","information","hint"],o={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};n.default.registerHelper("lint","graphql",(function(e,t){var r=t.schema;return i.getDiagnostics(e,r,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?s[e.severity-1]:s[0],type:e.source?o[e.source]:void 0,from:n.default.Pos(e.range.start.line,e.range.start.character),to:n.default.Pos(e.range.end.line,e.range.end.character)}}))}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[24],{959:function(e,t,n){"use strict";var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(728)),l=n(749);function a(e,t){var n,u,r=e.levels;return((r&&0!==r.length?r[r.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(u=this.config)||void 0===u?void 0:u.indentUnit)||0)}r.default.defineMode("graphql-results",(function(e){var t=l.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:i,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:a,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var i={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[l.p("{"),l.list("Entry",l.p(",")),l.p("}")],Entry:[l.t("String","def"),l.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[l.t("Number","number")],StringValue:[l.t("String","string")],BooleanValue:[l.t("Keyword","builtin")],NullValue:[l.t("Keyword","keyword")],ListValue:[l.p("["),l.list("Value",l.p(",")),l.p("]")],ObjectValue:[l.p("{"),l.list("ObjectField",l.p(",")),l.p("}")],ObjectField:[l.t("String","property"),l.p(":"),"Value"]}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[25],{802:function(e,t,o){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(o(728));function u(e,t){var o=e.state.info,n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===n.nodeName&&void 0===o.hoverTimeout){var u=n.getBoundingClientRect(),r=function(){clearTimeout(o.hoverTimeout),o.hoverTimeout=setTimeout(f,m)},a=function t(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(o.hoverTimeout),o.hoverTimeout=void 0},f=function(){i.default.off(document,"mousemove",r),i.default.off(e.getWrapperElement(),"mouseout",a),o.hoverTimeout=void 0,function(e,t){var o=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),n=e.state.info.options,u=n.render||e.getHelper(o,"info");if(u){var r=e.getTokenAt(o,!0);if(r){var a=u(r,n,e,o);a&&function(e,t,o){var n=document.createElement("div");n.className="CodeMirror-info",n.appendChild(o),document.body.appendChild(n);var u=n.getBoundingClientRect(),r=window.getComputedStyle(n),a=u.right-u.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=u.bottom-u.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom),m=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(m=t.top-f);m<0&&(m=t.bottom);var l,s=Math.max(0,window.innerWidth-a-15);s>t.left&&(s=t.left);n.style.opacity="1",n.style.top=m+"px",n.style.left=s+"px";var d=function(){clearTimeout(l)},p=function(){clearTimeout(l),l=setTimeout(c,200)},c=function(){i.default.off(n,"mouseover",d),i.default.off(n,"mouseout",p),i.default.off(e.getWrapperElement(),"mouseout",p),n.style.opacity?(n.style.opacity="0",setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n)}),600)):n.parentNode&&n.parentNode.removeChild(n)};i.default.on(n,"mouseover",d),i.default.on(n,"mouseout",p),i.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,a)}}}(e,u)},m=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);o.hoverTimeout=setTimeout(f,m),i.default.on(document,"mousemove",r),i.default.on(e.getWrapperElement(),"mouseout",a)}}i.default.defineOption("info",!1,(function(e,t,o){if(o&&o!==i.default.Init){var n=e.state.info.onMouseOver;i.default.off(e.getWrapperElement(),"mouseover",n),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var r=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);r.onMouseOver=u.bind(null,e),i.default.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[26],{957:function(e,t,n){"use strict";var u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(728)),a=n(749);function l(e,t){var n,u,r=e.levels;return((r&&0!==r.length?r[r.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(u=this.config)||void 0===u?void 0:u.indentUnit)||0)}r.default.defineMode("graphql-variables",(function(e){var t=a.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:i,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:l,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var i={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[a.p("{"),a.list("Variable",a.opt(a.p(","))),a.p("}")],Variable:[c("variable"),a.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[a.t("Number","number")],StringValue:[a.t("String","string")],BooleanValue:[a.t("Keyword","builtin")],NullValue:[a.t("Keyword","keyword")],ListValue:[a.p("["),a.list("Value",a.opt(a.p(","))),a.p("]")],ObjectValue:[a.p("{"),a.list("ObjectField",a.opt(a.p(","))),a.p("}")],ObjectField:[c("attribute"),a.p(":"),"Value"]};function c(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[27],{942:function(e,n,t){!function(e){"use strict";var n={},t=/[^\s\u00a0]/,i=e.Pos,l=e.cmpPos;function o(e){var n=e.search(t);return-1==n?0:n}function a(e,n,t){return/\bstring\b/.test(e.getTokenTypeAt(i(n.line,0)))&&!/^[\'\"\`]/.test(t)}function r(e,n){var t=e.getMode();return!1!==t.useInnerComments&&t.innerMode?e.getModeAt(n):t}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=n);for(var t=this,l=1/0,o=this.listSelections(),a=null,r=o.length-1;r>=0;r--){var m=o[r].from(),c=o[r].to();m.line>=l||(c.line>=l&&(c=i(l,0)),l=m.line,null==a?t.uncomment(m,c,e)?a="un":(t.lineComment(m,c,e),a="line"):"un"==a?t.uncomment(m,c,e):t.lineComment(m,c,e))}})),e.defineExtension("lineComment",(function(e,l,m){m||(m=n);var c=this,s=r(c,e),g=c.getLine(e.line);if(null!=g&&!a(c,e,g)){var f=m.lineComment||s.lineComment;if(f){var u=Math.min(0!=l.ch||l.line==e.line?l.line+1:l.line,c.lastLine()+1),h=null==m.padding?" ":m.padding,d=m.commentBlankLines||e.line==l.line;c.operation((function(){if(m.indent){for(var n=null,l=e.line;l<u;++l){var a=(r=c.getLine(l)).slice(0,o(r));(null==n||n.length>a.length)&&(n=a)}for(l=e.line;l<u;++l){var r=c.getLine(l),s=n.length;(d||t.test(r))&&(r.slice(0,s)!=n&&(s=o(r)),c.replaceRange(n+f+h,i(l,0),i(l,s)))}}else for(l=e.line;l<u;++l)(d||t.test(c.getLine(l)))&&c.replaceRange(f+h,i(l,0))}))}else(m.blockCommentStart||s.blockCommentStart)&&(m.fullLines=!0,c.blockComment(e,l,m))}})),e.defineExtension("blockComment",(function(e,o,a){a||(a=n);var m=this,c=r(m,e),s=a.blockCommentStart||c.blockCommentStart,g=a.blockCommentEnd||c.blockCommentEnd;if(s&&g){if(!/\bcomment\b/.test(m.getTokenTypeAt(i(e.line,0)))){var f=Math.min(o.line,m.lastLine());f!=e.line&&0==o.ch&&t.test(m.getLine(f))&&--f;var u=null==a.padding?" ":a.padding;e.line>f||m.operation((function(){if(0!=a.fullLines){var n=t.test(m.getLine(f));m.replaceRange(u+g,i(f)),m.replaceRange(s+u,i(e.line,0));var r=a.blockCommentLead||c.blockCommentLead;if(null!=r)for(var h=e.line+1;h<=f;++h)(h!=f||n)&&m.replaceRange(r+u,i(h,0))}else{var d=0==l(m.getCursor("to"),o),p=!m.somethingSelected();m.replaceRange(g,o),d&&m.setSelection(p?o:m.getCursor("from"),o),m.replaceRange(s,e)}}))}}else(a.lineComment||c.lineComment)&&0!=a.fullLines&&m.lineComment(e,o,a)})),e.defineExtension("uncomment",(function(e,l,o){o||(o=n);var a,m=this,c=r(m,e),s=Math.min(0!=l.ch||l.line==e.line?l.line:l.line-1,m.lastLine()),g=Math.min(e.line,s),f=o.lineComment||c.lineComment,u=[],h=null==o.padding?" ":o.padding;e:if(f){for(var d=g;d<=s;++d){var p=m.getLine(d),v=p.indexOf(f);if(v>-1&&!/comment/.test(m.getTokenTypeAt(i(d,v+1)))&&(v=-1),-1==v&&t.test(p))break e;if(v>-1&&t.test(p.slice(0,v)))break e;u.push(p)}if(m.operation((function(){for(var e=g;e<=s;++e){var n=u[e-g],t=n.indexOf(f),l=t+f.length;t<0||(n.slice(l,l+h.length)==h&&(l+=h.length),a=!0,m.replaceRange("",i(e,t),i(e,l)))}})),a)return!0}var C=o.blockCommentStart||c.blockCommentStart,b=o.blockCommentEnd||c.blockCommentEnd;if(!C||!b)return!1;var k=o.blockCommentLead||c.blockCommentLead,L=m.getLine(g),x=L.indexOf(C);if(-1==x)return!1;var R=s==g?L:m.getLine(s),O=R.indexOf(b,s==g?x+C.length:0),T=i(g,x+1),S=i(s,O+1);if(-1==O||!/comment/.test(m.getTokenTypeAt(T))||!/comment/.test(m.getTokenTypeAt(S))||m.getRange(T,S,"\n").indexOf(b)>-1)return!1;var E=L.lastIndexOf(C,e.ch),y=-1==E?-1:L.slice(0,e.ch).indexOf(b,E+C.length);if(-1!=E&&-1!=y&&y+b.length!=e.ch)return!1;y=R.indexOf(b,l.ch);var M=R.slice(l.ch).lastIndexOf(C,y-l.ch);return E=-1==y||-1==M?-1:l.ch+M,(-1==y||-1==E||E==l.ch)&&(m.operation((function(){m.replaceRange("",i(s,O-(h&&R.slice(O-h.length,O)==h?h.length:0)),i(s,O+b.length));var e=x+C.length;if(h&&L.slice(e,e+h.length)==h&&(e+=h.length),m.replaceRange("",i(g,x),i(g,e)),k)for(var n=g+1;n<=s;++n){var l=m.getLine(n),o=l.indexOf(k);if(-1!=o&&!t.test(l.slice(0,o))){var a=o+k.length;h&&l.slice(a,a+h.length)==h&&(a+=h.length),m.replaceRange("",i(n,o),i(n,a))}}})),!0)}))}(t(728))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[28],{949:function(e,n,t){!function(e){var n={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},t=e.Pos;function r(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:n[t]}e.defineOption("autoCloseBrackets",!1,(function(n,t,s){s&&s!=e.Init&&(n.removeKeyMap(i),n.state.closeBrackets=null),t&&(a(r(t,"pairs")),n.state.closeBrackets=t,n.addKeyMap(i))}));var i={Backspace:o,Enter:c};function a(e){for(var n=0;n<e.length;n++){var t=e.charAt(n),r="'"+t+"'";i[r]||(i[r]=s(t))}}function s(e){return function(n){return f(n,e)}}function l(e){var n=e.state.closeBrackets;return!n||n.override?n:e.getModeAt(e.getCursor()).closeBrackets||n}function o(n){var i=l(n);if(!i||n.getOption("disableInput"))return e.Pass;for(var a=r(i,"pairs"),s=n.listSelections(),o=0;o<s.length;o++){if(!s[o].empty())return e.Pass;var c=p(n,s[o].head);if(!c||a.indexOf(c)%2!=0)return e.Pass}for(o=s.length-1;o>=0;o--){var h=s[o].head;n.replaceRange("",t(h.line,h.ch-1),t(h.line,h.ch+1),"+delete")}}function c(n){var t=l(n),i=t&&r(t,"explode");if(!i||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),s=0;s<a.length;s++){if(!a[s].empty())return e.Pass;var o=p(n,a[s].head);if(!o||i.indexOf(o)%2!=0)return e.Pass}n.operation((function(){var e=n.lineSeparator()||"\n";n.replaceSelection(e+e,null),h(n,-1),a=n.listSelections();for(var t=0;t<a.length;t++){var r=a[t].head.line;n.indentLine(r,null,!0),n.indentLine(r+1,null,!0)}}))}function h(e,n){for(var t=[],r=e.listSelections(),i=0,a=0;a<r.length;a++){var s=r[a];s.head==e.getCursor()&&(i=a);var l=s.head.ch||n>0?{line:s.head.line,ch:s.head.ch+n}:{line:s.head.line-1};t.push({anchor:l,head:l})}e.setSelections(t,i)}function u(n){var r=e.cmpPos(n.anchor,n.head)>0;return{anchor:new t(n.anchor.line,n.anchor.ch+(r?-1:1)),head:new t(n.head.line,n.head.ch+(r?1:-1))}}function f(n,i){var a=l(n);if(!a||n.getOption("disableInput"))return e.Pass;var s=r(a,"pairs"),o=s.indexOf(i);if(-1==o)return e.Pass;for(var c,f=r(a,"closeBefore"),p=r(a,"triples"),g=s.charAt(o+1)==i,v=n.listSelections(),b=o%2==0,k=0;k<v.length;k++){var P,S=v[k],y=S.head,O=n.getRange(y,t(y.line,y.ch+1));if(b&&!S.empty())P="surround";else if(!g&&b||O!=i)if(g&&y.ch>1&&p.indexOf(i)>=0&&n.getRange(t(y.line,y.ch-2),y)==i+i){if(y.ch>2&&/\bstring/.test(n.getTokenTypeAt(t(y.line,y.ch-2))))return e.Pass;P="addFour"}else if(g){var x=0==y.ch?" ":n.getRange(t(y.line,y.ch-1),y);if(e.isWordChar(O)||x==i||e.isWordChar(x))return e.Pass;P="both"}else{if(!b||!(0===O.length||/\s/.test(O)||f.indexOf(O)>-1))return e.Pass;P="both"}else P=g&&d(n,y)?"both":p.indexOf(i)>=0&&n.getRange(y,t(y.line,y.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=P)return e.Pass}else c=P}var A=o%2?s.charAt(o-1):i,B=o%2?i:s.charAt(o+1);n.operation((function(){if("skip"==c)h(n,1);else if("skipThree"==c)h(n,3);else if("surround"==c){for(var e=n.getSelections(),t=0;t<e.length;t++)e[t]=A+e[t]+B;for(n.replaceSelections(e,"around"),e=n.listSelections().slice(),t=0;t<e.length;t++)e[t]=u(e[t]);n.setSelections(e)}else"both"==c?(n.replaceSelection(A+B,null),n.triggerElectric(A+B),h(n,-1)):"addFour"==c&&(n.replaceSelection(A+A+A+A,"before"),h(n,1))}))}function p(e,n){var r=e.getRange(t(n.line,n.ch-1),t(n.line,n.ch+1));return 2==r.length?r:null}function d(e,n){var r=e.getTokenAt(t(n.line,n.ch+1));return/\bstring/.test(r.type)&&r.start==n.ch&&(0==n.ch||!/\bstring/.test(e.getTokenTypeAt(n)))}a(n.pairs+"`")}(t(728))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[29],{803:function(t,e,n){!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(t){return t&&t.bracketRegex||/[(){}[\]]/}function c(t,e,c){var o=t.getLineHandle(e.line),h=e.ch-1,s=c&&c.afterCursor;null==s&&(s=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var l=a(c),u=!s&&h>=0&&l.test(o.text.charAt(h))&&r[o.text.charAt(h)]||l.test(o.text.charAt(h+1))&&r[o.text.charAt(++h)];if(!u)return null;var f=">"==u.charAt(1)?1:-1;if(c&&c.strict&&f>0!=(h==e.ch))return null;var g=t.getTokenTypeAt(n(e.line,h+1)),m=i(t,n(e.line,h+(f>0?1:0)),f,g,c);return null==m?null:{from:n(e.line,h),to:m&&m.pos,match:m&&m.ch==u.charAt(0),forward:f>0}}function i(t,e,c,i,o){for(var h=o&&o.maxScanLineLength||1e4,s=o&&o.maxScanLines||1e3,l=[],u=a(o),f=c>0?Math.min(e.line+s,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-s),g=e.line;g!=f;g+=c){var m=t.getLine(g);if(m){var d=c>0?0:m.length-1,k=c>0?m.length:-1;if(!(m.length>h))for(g==e.line&&(d=e.ch-(c<0?1:0));d!=k;d+=c){var p=m.charAt(d);if(u.test(p)&&(void 0===i||(t.getTokenTypeAt(n(g,d+1))||"")==(i||""))){var v=r[p];if(v&&">"==v.charAt(1)==c>0)l.push(p);else{if(!l.length)return{pos:n(g,d),ch:p};l.pop()}}}}}return g-c!=(c>0?t.lastLine():t.firstLine())&&null}function o(t,r,a){for(var i=t.state.matchBrackets.maxHighlightLineLength||1e3,o=a&&a.highlightNonMatching,h=[],s=t.listSelections(),l=0;l<s.length;l++){var u=s[l].empty()&&c(t,s[l].head,a);if(u&&(u.match||!1!==o)&&t.getLine(u.from.line).length<=i){var f=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";h.push(t.markText(u.from,n(u.from.line,u.from.ch+1),{className:f})),u.to&&t.getLine(u.to.line).length<=i&&h.push(t.markText(u.to,n(u.to.line,u.to.ch+1),{className:f}))}}if(h.length){e&&t.state.focused&&t.focus();var g=function(){t.operation((function(){for(var t=0;t<h.length;t++)h[t].clear()}))};if(!r)return g;setTimeout(g,800)}}function h(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=o(t,!1,t.state.matchBrackets)}))}function s(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}t.defineOption("matchBrackets",!1,(function(e,n,r){r&&r!=t.Init&&(e.off("cursorActivity",h),e.off("focus",h),e.off("blur",s),s(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",h),e.on("focus",h),e.on("blur",s))})),t.defineExtension("matchBrackets",(function(){o(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),c(this,t,e)})),t.defineExtension("scanForBracket",(function(t,e,n,r){return i(this,t,e,n,r)}))}(n(728))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[3,7,9],{765:function(e,n,t){!function(e){"use strict";var n,t,o=e.Pos;function r(e){var n=e.flags;return null!=n?n:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function i(e,n){for(var t=r(e),o=t,i=0;i<n.length;i++)-1==o.indexOf(n.charAt(i))&&(o+=n.charAt(i));return t==o?e:new RegExp(e.source,o)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,n,t){n=i(n,"g");for(var r=t.line,a=t.ch,s=e.lastLine();r<=s;r++,a=0){n.lastIndex=a;var l=e.getLine(r),c=n.exec(l);if(c)return{from:o(r,c.index),to:o(r,c.index+c[0].length),match:c}}}function l(e,n,t){if(!a(n))return s(e,n,t);n=i(n,"gm");for(var r,l=1,c=t.line,u=e.lastLine();c<=u;){for(var f=0;f<l&&!(c>u);f++){var h=e.getLine(c++);r=null==r?h:r+"\n"+h}l*=2,n.lastIndex=t.ch;var p=n.exec(r);if(p){var g=r.slice(0,p.index).split("\n"),d=p[0].split("\n"),m=t.line+g.length-1,v=g[g.length-1].length;return{from:o(m,v),to:o(m+d.length-1,1==d.length?v+d[0].length:d[d.length-1].length),match:p}}}}function c(e,n,t){for(var o,r=0;r<=e.length;){n.lastIndex=r;var i=n.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-t)break;(!o||a>o.index+o[0].length)&&(o=i),r=i.index+1}return o}function u(e,n,t){n=i(n,"g");for(var r=t.line,a=t.ch,s=e.firstLine();r>=s;r--,a=-1){var l=e.getLine(r),u=c(l,n,a<0?0:l.length-a);if(u)return{from:o(r,u.index),to:o(r,u.index+u[0].length),match:u}}}function f(e,n,t){if(!a(n))return u(e,n,t);n=i(n,"gm");for(var r,s=1,l=e.getLine(t.line).length-t.ch,f=t.line,h=e.firstLine();f>=h;){for(var p=0;p<s&&f>=h;p++){var g=e.getLine(f--);r=null==r?g:g+"\n"+r}s*=2;var d=c(r,n,l);if(d){var m=r.slice(0,d.index).split("\n"),v=d[0].split("\n"),y=f+m.length,x=m[m.length-1].length;return{from:o(y,x),to:o(y+v.length-1,1==v.length?x+v[0].length:v[v.length-1].length),match:d}}}}function h(e,n,t,o){if(e.length==n.length)return t;for(var r=0,i=t+Math.max(0,e.length-n.length);;){if(r==i)return r;var a=r+i>>1,s=o(e.slice(0,a)).length;if(s==t)return a;s>t?i=a:r=a+1}}function p(e,r,i,a){if(!r.length)return null;var s=a?n:t,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,f=e.lastLine()+1-l.length;c<=f;c++,u=0){var p=e.getLine(c).slice(u),g=s(p);if(1==l.length){var d=g.indexOf(l[0]);if(-1==d)continue e;return i=h(p,g,d,s)+u,{from:o(c,h(p,g,d,s)+u),to:o(c,h(p,g,d+l[0].length,s)+u)}}var m=g.length-l[0].length;if(g.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),x=s(y),C=l[l.length-1];if(x.slice(0,C.length)==C)return{from:o(c,h(p,g,m,s)+u),to:o(c+l.length-1,h(y,x,C.length,s))}}}}function g(e,r,i,a){if(!r.length)return null;var s=a?n:t,l=s(r).split(/\r|\n\r?/);e:for(var c=i.line,u=i.ch,f=e.firstLine()-1+l.length;c>=f;c--,u=-1){var p=e.getLine(c);u>-1&&(p=p.slice(0,u));var g=s(p);if(1==l.length){var d=g.lastIndexOf(l[0]);if(-1==d)continue e;return{from:o(c,h(p,g,d,s)),to:o(c,h(p,g,d+l[0].length,s))}}var m=l[l.length-1];if(g.slice(0,m.length)==m){var v=1;for(i=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(i+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),x=s(y);if(x.slice(x.length-l[0].length)==l[0])return{from:o(c+1-l.length,h(y,x,y.length-l[0].length,s)),to:o(c,h(p,g,m.length,s))}}}}function d(e,n,t,r){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,t=t?e.clipPos(t):o(0,0),this.pos={from:t,to:t},"object"==typeof r?a=r.caseFold:(a=r,r=null),"string"==typeof n?(null==a&&(a=!1),this.matches=function(t,o){return(t?g:p)(e,n,o,a)}):(n=i(n,"gm"),r&&!1===r.multiline?this.matches=function(t,o){return(t?u:s)(e,n,o)}:this.matches=function(t,o){return(t?f:l)(e,n,o)})}String.prototype.normalize?(n=function(e){return e.normalize("NFD").toLowerCase()},t=function(e){return e.normalize("NFD")}):(n=function(e){return e.toLowerCase()},t=function(e){return e}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(n){var t=this.doc.clipPos(n?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(t=o(t.line,t.ch),n?(t.ch--,t.ch<0&&(t.line--,t.ch=(this.doc.getLine(t.line)||"").length)):(t.ch++,t.ch>(this.doc.getLine(t.line)||"").length&&(t.ch=0,t.line++)),0!=e.cmpPos(t,this.doc.clipPos(t))))return this.atOccurrence=!1;var r=this.matches(n,t);if(this.afterEmptyMatch=r&&0==e.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var i=o(n?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,t){if(this.atOccurrence){var r=e.splitLines(n);this.doc.replaceRange(r,this.pos.from,this.pos.to,t),this.pos.to=o(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,n,t){return new d(this.doc,e,n,t)})),e.defineDocExtension("getSearchCursor",(function(e,n,t){return new d(this,e,n,t)})),e.defineExtension("selectMatches",(function(n,t){for(var o=[],r=this.getSearchCursor(n,this.getCursor("from"),t);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)o.push({anchor:r.from(),head:r.to()});o.length&&this.setSelections(o,0)}))}(t(728))},766:function(e,n,t){!function(e){function n(n,t,o){var r,i=n.getWrapperElement();return(r=i.appendChild(document.createElement("div"))).className=o?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?r.innerHTML=t:r.appendChild(t),e.addClass(i,"dialog-opened"),r}function t(e,n){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=n}e.defineExtension("openDialog",(function(o,r,i){i||(i={}),t(this,null);var a=n(this,o,i.bottom),s=!1,l=this;function c(n){if("string"==typeof n)f.value=n;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),i.onClose&&i.onClose(a)}}var u,f=a.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",(function(e){i.onInput(e,f.value,c)})),i.onKeyUp&&e.on(f,"keyup",(function(e){i.onKeyUp(e,f.value,c)})),e.on(f,"keydown",(function(n){i&&i.onKeyDown&&i.onKeyDown(n,f.value,c)||((27==n.keyCode||!1!==i.closeOnEnter&&13==n.keyCode)&&(f.blur(),e.e_stop(n),c()),13==n.keyCode&&r(f.value,n))})),!1!==i.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",(function(){c(),l.focus()})),!1!==i.closeOnBlur&&e.on(u,"blur",c),u.focus()),c})),e.defineExtension("openConfirm",(function(o,r,i){t(this,null);var a=n(this,o,i&&i.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function f(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var h=0;h<s.length;++h){var p=s[h];!function(n){e.on(p,"click",(function(t){e.e_preventDefault(t),f(),n&&n(c)}))}(r[h]),e.on(p,"blur",(function(){--u,setTimeout((function(){u<=0&&f()}),200)})),e.on(p,"focus",(function(){++u}))}})),e.defineExtension("openNotification",(function(o,r){t(this,c);var i,a=n(this,o,r&&r.bottom),s=!1,l=r&&"undefined"!==typeof r.duration?r.duration:5e3;function c(){s||(s=!0,clearTimeout(i),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(n){e.e_preventDefault(n),c()})),l&&(i=setTimeout(c,l)),c}))}(t(728))},943:function(e,n,t){!function(e){"use strict";function n(e,n){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),n?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(n){e.lastIndex=n.pos;var t=e.exec(n.string);if(t&&t.index==n.pos)return n.pos+=t[0].length||1,"searching";t?n.pos=t.index:n.skipToEnd()}}}function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,n,t){return e.getSearchCursor(n,t,{caseFold:r(n),multiline:!0})}function a(e,n,t,o,r){e.openDialog(n,o,{value:t,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){g(e)},onKeyDown:r,bottom:e.options.search.bottom})}function s(e,n,t,o,r){e.openDialog?e.openDialog(n,r,{value:o,selectValueOnOpen:!0,bottom:e.options.search.bottom}):r(prompt(t,o))}function l(e,n,t,o){e.openConfirm?e.openConfirm(n,o):confirm(t)&&o[0]()}function c(e){return e.replace(/\\([nrt\\])/g,(function(e,n){return"n"==n?"\n":"r"==n?"\r":"t"==n?"\t":"\\"==n?"\\":e}))}function u(e){var n=e.match(/^\/(.*)\/([a-z]*)$/);if(n)try{e=new RegExp(n[1],-1==n[2].indexOf("i")?"":"i")}catch(t){}else e=c(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,t,o){t.queryText=o,t.query=u(o),e.removeOverlay(t.overlay,r(t.query)),t.overlay=n(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function h(n,t,r,i){var l=o(n);if(l.query)return p(n,t);var c=n.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),r&&n.openDialog){var u=null,h=function(t,o){e.e_stop(o),t&&(t!=l.queryText&&(f(n,l,t),l.posFrom=l.posTo=n.getCursor()),u&&(u.style.opacity=1),p(n,o.shiftKey,(function(e,t){var o;t.line<3&&document.querySelector&&(o=n.display.wrapper.querySelector(".CodeMirror-dialog"))&&o.getBoundingClientRect().bottom-4>n.cursorCoords(t,"window").top&&((u=o).style.opacity=.4)})))};a(n,m(n),c,h,(function(t,r){var i=e.keyName(t),a=n.getOption("extraKeys"),s=a&&a[i]||e.keyMap[n.getOption("keyMap")][i];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(t),f(n,o(n),r),n.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(t),h(r,t))})),i&&c&&(f(n,l,c),p(n,t))}else s(n,m(n),"Search for:",c,(function(e){e&&!l.query&&n.operation((function(){f(n,l,e),l.posFrom=l.posTo=n.getCursor(),p(n,t)}))}))}function p(n,t,r){n.operation((function(){var a=o(n),s=i(n,a.query,t?a.posFrom:a.posTo);(s.find(t)||(s=i(n,a.query,t?e.Pos(n.lastLine()):e.Pos(n.firstLine(),0))).find(t))&&(n.setSelection(s.from(),s.to()),n.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),r&&r(s.from(),s.to()))}))}function g(e){e.operation((function(){var n=o(e);n.lastQuery=n.query,n.query&&(n.query=n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))}))}function d(e,n){var t=e?document.createElement(e):document.createDocumentFragment();for(var o in n)t[o]=n[o];for(var r=2;r<arguments.length;r++){var i=arguments[r];t.appendChild("string"==typeof i?document.createTextNode(i):i)}return t}function m(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("Search:"))," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",d("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function v(e){return d("",null," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",d("span",{style:"color: #888",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function y(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",d("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function x(e){return d("",null,d("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",d("button",{},e.phrase("Yes"))," ",d("button",{},e.phrase("No"))," ",d("button",{},e.phrase("All"))," ",d("button",{},e.phrase("Stop")))}function C(e,n,t){e.operation((function(){for(var o=i(e,n);o.findNext();)if("string"!=typeof n){var r=e.getRange(o.from(),o.to()).match(n);o.replace(t.replace(/\$(\d)/g,(function(e,n){return r[n]})))}else o.replace(t)}))}function N(e,n){if(!e.getOption("readOnly")){var t=e.getSelection()||o(e).lastQuery,r=n?e.phrase("Replace all:"):e.phrase("Replace:"),a=d("",null,d("span",{className:"CodeMirror-search-label"},r),v(e));s(e,a,r,t,(function(t){t&&(t=u(t),s(e,y(e),e.phrase("Replace with:"),"",(function(o){if(o=c(o),n)C(e,t,o);else{g(e);var r=i(e,t,e.getCursor("from")),a=function n(){var a,c=r.from();!(a=r.findNext())&&(r=i(e,t),!(a=r.findNext())||c&&r.from().line==c.line&&r.from().ch==c.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),l(e,x(e),e.phrase("Replace?"),[function(){s(a)},n,function(){C(e,t,o)}]))},s=function(e){r.replace("string"==typeof t?o:o.replace(/\$(\d)/g,(function(n,t){return e[t]}))),a()};a()}})))}))}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){g(e),h(e)},e.commands.findPersistent=function(e){g(e),h(e,!1,!0)},e.commands.findPersistentNext=function(e){h(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){h(e,!0,!0,!0)},e.commands.findNext=h,e.commands.findPrev=function(e){h(e,!0)},e.commands.clearSearch=g,e.commands.replace=N,e.commands.replaceAll=function(e){N(e,!0)}}(t(728),t(765),t(766))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[30],{801:function(t,e,i){!function(t){"use strict";var e="CodeMirror-hint",i="CodeMirror-hint-active";function n(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var i=this;t.on("cursorActivity",this.activityFunc=function(){i.cursorActivity()})}}t.showHint=function(t,e,i){if(!e)return t.showHint(i);i&&i.async&&(e.async=!0);var n={hint:e};if(i)for(var o in i)n[o]=i[o];return t.showHint(n)},t.defineExtension("showHint",(function(e){e=c(this,this.getCursor("start"),e);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var s=this.state.completionActive=new n(this,e);s.options.hint&&(t.signal(this,"startCompletion",this),s.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var o=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},s=window.cancelAnimationFrame||clearTimeout;function c(t,e,i){var n=t.options.hintOptions,o={};for(var s in p)o[s]=p[s];if(n)for(var s in n)void 0!==n[s]&&(o[s]=n[s]);if(i)for(var s in i)void 0!==i[s]&&(o[s]=i[s]);return o.hint.resolve&&(o.hint=o.hint.resolve(t,e)),o}function r(t){return"string"==typeof t?t:t.text}function l(t,e){var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(i["Ctrl-P"]=function(){e.moveFocus(-1)},i["Ctrl-N"]=function(){e.moveFocus(1)});var n=t.options.customKeys,o=n?{}:i;function s(t,n){var s;s="string"!=typeof n?function(t){return n(t,e)}:i.hasOwnProperty(n)?i[n]:n,o[t]=s}if(n)for(var c in n)n.hasOwnProperty(c)&&s(c,n[c]);var r=t.options.extraKeys;if(r)for(var c in r)r.hasOwnProperty(c)&&s(c,r[c]);return o}function h(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(n,o){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=o,this.picked=!1;var s=this,c=n.cm,a=c.getInputField().ownerDocument,u=a.defaultView||a.parentWindow,d=this.hints=a.createElement("ul");d.setAttribute("role","listbox"),d.setAttribute("aria-expanded","true"),d.id=this.id;var f=n.cm.options.theme;d.className="CodeMirror-hints "+f,this.selectedHint=o.selectedHint||0;for(var p=o.list,m=0;m<p.length;++m){var g=d.appendChild(a.createElement("li")),v=p[m],y=e+(m!=this.selectedHint?"":" "+i);null!=v.className&&(y=v.className+" "+y),g.className=y,m==this.selectedHint&&g.setAttribute("aria-selected","true"),g.id=this.id+"-"+m,g.setAttribute("role","option"),v.render?v.render(g,o,v):g.appendChild(a.createTextNode(v.displayText||r(v))),g.hintId=m}var w=n.options.container||a.body,b=c.cursorCoords(n.options.alignWithWord?o.from:null),A=b.left,H=b.bottom,C=!0,k=0,S=0;if(w!==a.body){var x=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(w).position)?w:w.offsetParent,T=x.getBoundingClientRect(),F=a.body.getBoundingClientRect();k=T.left-F.left-x.scrollLeft,S=T.top-F.top-x.scrollTop}d.style.left=A-k+"px",d.style.top=H-S+"px";var O=u.innerWidth||Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),M=u.innerHeight||Math.max(a.body.offsetHeight,a.documentElement.offsetHeight);w.appendChild(d),c.getInputField().setAttribute("aria-autocomplete","list"),c.getInputField().setAttribute("aria-owns",this.id),c.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var N,I=n.options.moveOnOverlap?d.getBoundingClientRect():new DOMRect,P=!!n.options.paddingForScrollbar&&d.scrollHeight>d.clientHeight+1;if(setTimeout((function(){N=c.getScrollInfo()})),I.bottom-M>0){var E=I.bottom-I.top;if(b.top-(b.bottom-I.top)-E>0)d.style.top=(H=b.top-E-S)+"px",C=!1;else if(E>M){d.style.height=M-5+"px",d.style.top=(H=b.bottom-I.top-S)+"px";var W=c.getCursor();o.from.ch!=W.ch&&(b=c.cursorCoords(W),d.style.left=(A=b.left-k)+"px",I=d.getBoundingClientRect())}}var R,B=I.right-O;if(P&&(B+=c.display.nativeBarWidth),B>0&&(I.right-I.left>O&&(d.style.width=O-5+"px",B-=I.right-I.left-O),d.style.left=(A=b.left-B-k)+"px"),P)for(var K=d.firstChild;K;K=K.nextSibling)K.style.paddingRight=c.display.nativeBarWidth+"px";c.addKeyMap(this.keyMap=l(n,{moveFocus:function(t,e){s.changeActive(s.selectedHint+t,e)},setFocus:function(t){s.changeActive(t)},menuSize:function(){return s.screenAmount()},length:p.length,close:function(){n.close()},pick:function(){s.pick()},data:o})),n.options.closeOnUnfocus&&(c.on("blur",this.onBlur=function(){R=setTimeout((function(){n.close()}),100)}),c.on("focus",this.onFocus=function(){clearTimeout(R)})),c.on("scroll",this.onScroll=function(){var t=c.getScrollInfo(),e=c.getWrapperElement().getBoundingClientRect();N||(N=c.getScrollInfo());var i=H+N.top-t.top,o=i-(u.pageYOffset||(a.documentElement||a.body).scrollTop);if(C||(o+=d.offsetHeight),o<=e.top||o>=e.bottom)return n.close();d.style.top=i+"px",d.style.left=A+N.left-t.left+"px"}),t.on(d,"dblclick",(function(t){var e=h(d,t.target||t.srcElement);e&&null!=e.hintId&&(s.changeActive(e.hintId),s.pick())})),t.on(d,"click",(function(t){var e=h(d,t.target||t.srcElement);e&&null!=e.hintId&&(s.changeActive(e.hintId),n.options.completeOnSingleClick&&s.pick())})),t.on(d,"mousedown",(function(){setTimeout((function(){c.focus()}),20)}));var L=this.getSelectedHintRange();return 0===L.from&&0===L.to||this.scrollToActive(),t.signal(o,"select",p[this.selectedHint],d.childNodes[this.selectedHint]),!0}function u(t,e){if(!t.somethingSelected())return e;for(var i=[],n=0;n<e.length;n++)e[n].supportsSelection&&i.push(e[n]);return i}function d(t,e,i,n){if(t.async)t(e,n,i);else{var o=t(e,i);o&&o.then?o.then(n):n(o)}}function f(e,i){var n,o=e.getHelpers(i,"hint");if(o.length){var s=function(t,e,i){var n=u(t,o);function s(o){if(o==n.length)return e(null);d(n[o],t,i,(function(t){t&&t.list.length>0?e(t):s(o+1)}))}s(0)};return s.async=!0,s.supportsSelection=!0,s}return(n=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:n})}:t.hint.anyword?function(e,i){return t.hint.anyword(e,i)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,i){var n=e.list[i],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,e,n):o.cm.replaceRange(r(n),n.from||e.from,n.to||e.to,"complete"),t.signal(e,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(s(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),i=this.cm.getLine(e.line);if(e.line!=this.startPos.line||i.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(i.charAt(e.ch-1)))this.close();else{var n=this;this.debounce=o((function(){n.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,i=++this.tick;d(this.options.hint,this.cm,this.options,(function(n){e.tick==i&&e.finishUpdate(n,t)}))}},finishUpdate:function(e,i){this.data&&t.signal(this.data,"update");var n=this.widget&&this.widget.picked||i&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(n&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+i,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=e]).className+=" "+i,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],i=this.hints.childNodes[t.to],n=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-n.offsetTop:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},t.registerHelper("hint","auto",{resolve:f}),t.registerHelper("hint","fromList",(function(e,i){var n,o=e.getCursor(),s=e.getTokenAt(o),c=t.Pos(o.line,s.start),r=o;s.start<o.ch&&/\w/.test(s.string.charAt(o.ch-s.start-1))?n=s.string.substr(0,o.ch-s.start):(n="",c=o);for(var l=[],h=0;h<i.words.length;h++){var a=i.words[h];a.slice(0,n.length)==n&&l.push(a)}if(l.length)return{list:l,from:c,to:r}})),t.commands.autocomplete=t.showHint;var p={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(i(728))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[31],{952:function(t,e,n){!function(t){"use strict";var e="CodeMirror-lint-markers",n="CodeMirror-lint-line-";function o(e,n,o){var i=document.createElement("div");function r(e){if(!i.parentNode)return t.off(document,"mousemove",r);i.style.top=Math.max(0,e.clientY-i.offsetHeight-5)+"px",i.style.left=e.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+e.options.theme,i.appendChild(o.cloneNode(!0)),e.state.lint.options.selfContain?e.getWrapperElement().appendChild(i):document.body.appendChild(i),t.on(document,"mousemove",r),r(n),null!=i.style.opacity&&(i.style.opacity=1),i}function i(t){t.parentNode&&t.parentNode.removeChild(t)}function r(t){t.parentNode&&(null==t.style.opacity&&i(t),t.style.opacity=0,setTimeout((function(){i(t)}),600))}function a(e,n,i,a){var s=o(e,n,i);function l(){t.off(a,"mouseout",l),s&&(r(s),s=null)}var u=setInterval((function(){if(s)for(var t=a;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){l();break}}if(!s)return clearInterval(u)}),400);t.on(a,"mouseout",l)}function s(t,e,n){for(var o in this.marked=[],e instanceof Function&&(e={getAnnotations:e}),e&&!0!==e||(e={}),this.options={},this.linterOptions=e.options||{},l)this.options[o]=l[o];for(var o in e)l.hasOwnProperty(o)?null!=e[o]&&(this.options[o]=e[o]):e.options||(this.linterOptions[o]=e[o]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){M(t,e)},this.waitingFor=0}var l={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function u(t){var n=t.state.lint;n.hasGutter&&t.clearGutter(e),n.options.highlightLines&&c(t);for(var o=0;o<n.marked.length;++o)n.marked[o].clear();n.marked.length=0}function c(t){t.eachLine((function(e){var n=e.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(e.wrapClass);n&&t.removeLineClass(e,"wrap",n[0])}))}function f(e,n,o,i,r){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+o,i&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=r&&t.on(l,"mouseover",(function(t){a(e,t,n,l)})),s}function p(t,e){return"error"==t?t:e}function m(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],i=o.from.line;(e[i]||(e[i]=[])).push(o)}return e}function d(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+e,"undefined"!=typeof t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function h(e,n){var o=e.state.lint,i=++o.waitingFor;function r(){i=-1,e.off("change",r)}e.on("change",r),n(e.getValue(),(function(n,a){e.off("change",r),o.waitingFor==i&&(a&&n instanceof t&&(n=a),e.operation((function(){v(e,n)})))}),o.linterOptions,e)}function g(e){var n=e.state.lint;if(n){var o=n.options,i=o.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(i)if(o.async||i.async)h(e,i);else{var r=i(e.getValue(),n.linterOptions,e);if(!r)return;r.then?r.then((function(t){e.operation((function(){v(e,t)}))})):e.operation((function(){v(e,r)}))}}}function v(t,o){var i=t.state.lint;if(i){var r=i.options;u(t);for(var a=m(o),s=0;s<a.length;++s){var l=a[s];if(l){var c=[];l=l.filter((function(t){return!(c.indexOf(t.message)>-1)&&c.push(t.message)}));for(var h=null,g=i.hasGutter&&document.createDocumentFragment(),v=0;v<l.length;++v){var C=l[v],y=C.severity;y||(y="error"),h=p(h,y),r.formatAnnotation&&(C=r.formatAnnotation(C)),i.hasGutter&&g.appendChild(d(C)),C.to&&i.marked.push(t.markText(C.from,C.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+y,__annotation:C}))}i.hasGutter&&t.setGutterMarker(s,e,f(t,g,h,a[s].length>1,r.tooltips)),r.highlightLines&&t.addLineClass(s,"wrap",n+h)}}r.onUpdateLinting&&r.onUpdateLinting(o,a,t)}}function C(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout((function(){g(t)}),e.options.delay))}function y(t,e,n){for(var o=n.target||n.srcElement,i=document.createDocumentFragment(),r=0;r<e.length;r++){var s=e[r];i.appendChild(d(s))}a(t,n,i,o)}function M(t,e){var n=e.target||e.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var o=n.getBoundingClientRect(),i=(o.left+o.right)/2,r=(o.top+o.bottom)/2,a=t.findMarksAt(t.coordsChar({left:i,top:r},"client")),s=[],l=0;l<a.length;++l){var u=a[l].__annotation;u&&s.push(u)}s.length&&y(t,s,e)}}t.defineOption("lint",!1,(function(n,o,i){if(i&&i!=t.Init&&(u(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",C),t.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),o){for(var r=n.getOption("gutters"),a=!1,l=0;l<r.length;++l)r[l]==e&&(a=!0);var c=n.state.lint=new s(n,o,a);c.options.lintOnChange&&n.on("change",C),0!=c.options.tooltips&&"gutter"!=c.options.tooltips&&t.on(n.getWrapperElement(),"mouseover",c.onMouseOver),g(n)}})),t.defineExtension("performLint",(function(){g(this)}))}(n(728))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this["webpackJsonp@cubejs-client/playground"]=this["webpackJsonp@cubejs-client/playground"]||[]).push([[32],{958:function(e,t,r){!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,a,i=t.indentUnit,o=r.statementIndent,c=r.jsonld,s=r.json||c,u=!1!==r.trackScope,l=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function k(e,t,r){return n=e,a=r,t}function y(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=w(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return k("number","number");if("."==r&&e.match(".."))return k("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return k(r);if("="==r&&e.eat(">"))return k("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return k("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),k("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),k("comment","comment")):at(e,t,1)?(v(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),k("regexp","string-2")):(e.eat("="),k("operator","operator",e.current()));if("`"==r)return t.tokenize=h,h(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),k("meta","meta");if("#"==r&&e.eatWhile(f))return k("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),k("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?k("."):k("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var a=d[n];return k(a.type,a.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return k("async","keyword",n)}return k("variable","variable",n)}}function w(e){return function(t,r){var n,a=!1;if(c&&"@"==t.peek()&&t.match(m))return r.tokenize=y,k("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=y),k("string","string")}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=y;break}n="*"==r}return k("comment","comment")}function h(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=y;break}n=!n&&"\\"==r}return k("quasi","string-2",e.current())}var x="([{}])";function g(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(l){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s=x.indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(f.test(c))i=!0;else if(/["'\/`]/.test(c))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==c&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}var j={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function M(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function A(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function V(e,t,r,n,a){var i=e.cc;for(E.state=e,E.stream=a,E.marked=null,E.cc=i,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():s?D:F)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return E.marked?E.marked:"variable"==r&&A(e,n)?"variable-2":t}}var E={state:null,column:null,marked:null,cc:null};function z(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function I(){return z.apply(null,arguments),!0}function T(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function $(e){var t=E.state;if(E.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=S(e,t.context);if(null!=n)return void(t.context=n)}else if(!T(e,t.localVars))return void(t.localVars=new C(e,t.localVars));r.globalVars&&!T(e,t.globalVars)&&(t.globalVars=new C(e,t.globalVars))}}function S(e,t){if(t){if(t.block){var r=S(e,t.prev);return r?r==t.prev?t:new q(r,t.vars,!0):null}return T(e,t.vars)?t:new q(t.prev,new C(e,t.vars),!1)}return null}function _(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function q(e,t,r){this.prev=e,this.vars=t,this.block=r}function C(e,t){this.name=e,this.next=t}var O=new C("this",new C("arguments",null));function P(){E.state.context=new q(E.state.context,E.state.localVars,!1),E.state.localVars=O}function J(){E.state.context=new q(E.state.context,E.state.localVars,!0),E.state.localVars=null}function N(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function U(e,t){var r=function(){var r=E.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new M(n,E.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function W(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){function t(r){return r==e?I():";"==e||"}"==r||")"==r||"]"==r?z():I(t)}return t}function F(e,t){return"var"==e?I(U("vardef",t),ze,B(";"),W):"keyword a"==e?I(U("form"),K,F,W):"keyword b"==e?I(U("form"),F,W):"keyword d"==e?E.stream.match(/^\s*$/,!1)?I():I(U("stat"),Q,B(";"),W):"debugger"==e?I(B(";")):"{"==e?I(U("}"),J,de,W,N):";"==e?I():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==W&&E.state.cc.pop()(),I(U("form"),K,F,W,qe)):"function"==e?I(Je):"for"==e?I(U("form"),J,Ce,F,N,W):"class"==e||l&&"interface"==t?(E.marked="keyword",I(U("form","class"==e?e:t),Fe,W)):"variable"==e?l&&"declare"==t?(E.marked="keyword",I(F)):l&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?I(tt):"type"==t?I(Ue,B("operator"),ye,B(";")):I(U("form"),Ie,B("{"),U("}"),de,W,W)):l&&"namespace"==t?(E.marked="keyword",I(U("form"),D,F,W)):l&&"abstract"==t?(E.marked="keyword",I(F)):I(U("stat"),ie):"switch"==e?I(U("form"),K,B("{"),U("}","switch"),J,de,W,W,N):"case"==e?I(D,B(":")):"default"==e?I(B(":")):"catch"==e?I(U("form"),P,H,F,W,N):"export"==e?I(U("stat"),Ke,W):"import"==e?I(U("stat"),Qe,W):"async"==e?I(F):"@"==t?I(D,F):z(U("stat"),D,B(";"),W)}function H(e){if("("==e)return I(We,B(")"))}function D(e,t){return L(e,t,!1)}function G(e,t){return L(e,t,!0)}function K(e){return"("!=e?z():I(U(")"),Q,B(")"),W)}function L(e,t,r){if(E.state.fatArrowAt==E.stream.start){var n=r?te:ee;if("("==e)return I(P,U(")"),le(We,")"),W,B("=>"),n,N);if("variable"==e)return z(P,Ie,B("=>"),n,N)}var a=r?X:R;return j.hasOwnProperty(e)?I(a):"function"==e?I(Je,a):"class"==e||l&&"interface"==t?(E.marked="keyword",I(U("form"),Be,W)):"keyword c"==e||"async"==e?I(r?G:D):"("==e?I(U(")"),Q,B(")"),W,a):"operator"==e||"spread"==e?I(r?G:D):"["==e?I(U("]"),et,W,a):"{"==e?fe(ce,"}",null,a):"quasi"==e?z(Y,a):"new"==e?I(re(r)):I()}function Q(e){return e.match(/[;\}\)\],]/)?z():z(D)}function R(e,t){return","==e?I(Q):X(e,t,!1)}function X(e,t,r){var n=0==r?R:X,a=0==r?D:G;return"=>"==e?I(P,r?te:ee,N):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?I(n):l&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?I(U(">"),le(ye,">"),W,n):"?"==t?I(D,B(":"),a):I(a):"quasi"==e?z(Y,n):";"!=e?"("==e?fe(G,")","call",n):"."==e?I(oe,n):"["==e?I(U("]"),Q,B("]"),W,n):l&&"as"==t?(E.marked="keyword",I(ye,n)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),I(a)):void 0:void 0}function Y(e,t){return"quasi"!=e?z():"${"!=t.slice(t.length-2)?I(Y):I(Q,Z)}function Z(e){if("}"==e)return E.marked="string-2",E.state.tokenize=h,I(Y)}function ee(e){return g(E.stream,E.state),z("{"==e?F:D)}function te(e){return g(E.stream,E.state),z("{"==e?F:G)}function re(e){return function(t){return"."==t?I(e?ae:ne):"variable"==t&&l?I(Ae,e?X:R):z(e?G:D)}}function ne(e,t){if("target"==t)return E.marked="keyword",I(R)}function ae(e,t){if("target"==t)return E.marked="keyword",I(X)}function ie(e){return":"==e?I(W,F):z(R,B(";"),W)}function oe(e){if("variable"==e)return E.marked="property",I()}function ce(e,t){return"async"==e?(E.marked="property",I(ce)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?I(se):(l&&E.state.fatArrowAt==E.stream.start&&(r=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+r[0].length),I(ue))):"number"==e||"string"==e?(E.marked=c?"property":E.style+" property",I(ue)):"jsonld-keyword"==e?I(ue):l&&_(t)?(E.marked="keyword",I(ce)):"["==e?I(D,pe,B("]"),ue):"spread"==e?I(G,ue):"*"==t?(E.marked="keyword",I(ce)):":"==e?z(ue):void 0;var r}function se(e){return"variable"!=e?z(ue):(E.marked="property",I(Je))}function ue(e){return":"==e?I(G):"("==e?z(Je):void 0}function le(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=E.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),I((function(r,n){return r==t||n==t?z():z(e)}),n)}return a==t||i==t?I():r&&r.indexOf(";")>-1?z(e):I(B(t))}return function(r,a){return r==t||a==t?I():z(e,n)}}function fe(e,t,r){for(var n=3;n<arguments.length;n++)E.cc.push(arguments[n]);return I(U(t,r),le(e,t),W)}function de(e){return"}"==e?I():z(F,de)}function pe(e,t){if(l){if(":"==e)return I(ye);if("?"==t)return I(pe)}}function me(e,t){if(l&&(":"==e||"in"==t))return I(ye)}function ve(e){if(l&&":"==e)return E.stream.match(/^\s*\w+\s+is\b/,!1)?I(D,ke,ye):I(ye)}function ke(e,t){if("is"==t)return E.marked="keyword",I()}function ye(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(E.marked="keyword",I("typeof"==t?G:ye)):"variable"==e||"void"==t?(E.marked="type",I(Me)):"|"==t||"&"==t?I(ye):"string"==e||"number"==e||"atom"==e?I(Me):"["==e?I(U("]"),le(ye,"]",","),W,Me):"{"==e?I(U("}"),be,W,Me):"("==e?I(le(je,")"),we,Me):"<"==e?I(le(ye,">"),ye):"quasi"==e?z(xe,Me):void 0}function we(e){if("=>"==e)return I(ye)}function be(e){return e.match(/[\}\)\]]/)?I():","==e||";"==e?I(be):z(he,be)}function he(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",I(he)):"?"==t||"number"==e||"string"==e?I(he):":"==e?I(ye):"["==e?I(B("variable"),me,B("]"),he):"("==e?z(Ne,he):e.match(/[;\}\)\],]/)?void 0:I()}function xe(e,t){return"quasi"!=e?z():"${"!=t.slice(t.length-2)?I(xe):I(ye,ge)}function ge(e){if("}"==e)return E.marked="string-2",E.state.tokenize=h,I(xe)}function je(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?I(je):":"==e?I(ye):"spread"==e?I(je):z(ye)}function Me(e,t){return"<"==t?I(U(">"),le(ye,">"),W,Me):"|"==t||"."==e||"&"==t?I(ye):"["==e?I(ye,B("]"),Me):"extends"==t||"implements"==t?(E.marked="keyword",I(ye)):"?"==t?I(ye,B(":"),ye):void 0}function Ae(e,t){if("<"==t)return I(U(">"),le(ye,">"),W,Me)}function Ve(){return z(ye,Ee)}function Ee(e,t){if("="==t)return I(ye)}function ze(e,t){return"enum"==t?(E.marked="keyword",I(tt)):z(Ie,pe,Se,_e)}function Ie(e,t){return l&&_(t)?(E.marked="keyword",I(Ie)):"variable"==e?($(t),I()):"spread"==e?I(Ie):"["==e?fe($e,"]"):"{"==e?fe(Te,"}"):void 0}function Te(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?I(Ie):"}"==e?z():"["==e?I(D,B("]"),B(":"),Te):I(B(":"),Ie,Se)):($(t),I(Se))}function $e(){return z(Ie,Se)}function Se(e,t){if("="==t)return I(G)}function _e(e){if(","==e)return I(ze)}function qe(e,t){if("keyword b"==e&&"else"==t)return I(U("form","else"),F,W)}function Ce(e,t){return"await"==t?I(Ce):"("==e?I(U(")"),Oe,W):void 0}function Oe(e){return"var"==e?I(ze,Pe):"variable"==e?I(Pe):z(Pe)}function Pe(e,t){return")"==e?I():";"==e?I(Pe):"in"==t||"of"==t?(E.marked="keyword",I(D,Pe)):z(D,Pe)}function Je(e,t){return"*"==t?(E.marked="keyword",I(Je)):"variable"==e?($(t),I(Je)):"("==e?I(P,U(")"),le(We,")"),W,ve,F,N):l&&"<"==t?I(U(">"),le(Ve,">"),W,Je):void 0}function Ne(e,t){return"*"==t?(E.marked="keyword",I(Ne)):"variable"==e?($(t),I(Ne)):"("==e?I(P,U(")"),le(We,")"),W,ve,N):l&&"<"==t?I(U(">"),le(Ve,">"),W,Ne):void 0}function Ue(e,t){return"keyword"==e||"variable"==e?(E.marked="type",I(Ue)):"<"==t?I(U(">"),le(Ve,">"),W):void 0}function We(e,t){return"@"==t&&I(D,We),"spread"==e?I(We):l&&_(t)?(E.marked="keyword",I(We)):l&&"this"==e?I(pe,Se):z(Ie,pe,Se)}function Be(e,t){return"variable"==e?Fe(e,t):He(e,t)}function Fe(e,t){if("variable"==e)return $(t),I(He)}function He(e,t){return"<"==t?I(U(">"),le(Ve,">"),W,He):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(E.marked="keyword"),I(l?ye:D,He)):"{"==e?I(U("}"),De,W):void 0}function De(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&_(t))&&E.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",I(De)):"variable"==e||"keyword"==E.style?(E.marked="property",I(Ge,De)):"number"==e||"string"==e?I(Ge,De):"["==e?I(D,pe,B("]"),Ge,De):"*"==t?(E.marked="keyword",I(De)):l&&"("==e?z(Ne,De):";"==e||","==e?I(De):"}"==e?I():"@"==t?I(D,De):void 0}function Ge(e,t){if("!"==t)return I(Ge);if("?"==t)return I(Ge);if(":"==e)return I(ye,Se);if("="==t)return I(G);var r=E.state.lexical.prev;return z(r&&"interface"==r.info?Ne:Je)}function Ke(e,t){return"*"==t?(E.marked="keyword",I(Ze,B(";"))):"default"==t?(E.marked="keyword",I(D,B(";"))):"{"==e?I(le(Le,"}"),Ze,B(";")):z(F)}function Le(e,t){return"as"==t?(E.marked="keyword",I(B("variable"))):"variable"==e?z(G,Le):void 0}function Qe(e){return"string"==e?I():"("==e?z(D):"."==e?z(R):z(Re,Xe,Ze)}function Re(e,t){return"{"==e?fe(Re,"}"):("variable"==e&&$(t),"*"==t&&(E.marked="keyword"),I(Ye))}function Xe(e){if(","==e)return I(Re,Xe)}function Ye(e,t){if("as"==t)return E.marked="keyword",I(Re)}function Ze(e,t){if("from"==t)return E.marked="keyword",I(D)}function et(e){return"]"==e?I():z(le(G,"]"))}function tt(){return z(U("form"),Ie,B("{"),U("}"),le(rt,"}"),W,W)}function rt(){return z(Ie,Se)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function at(e,t,r){return t.tokenize==y&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return N.lex=!0,W.lex=!0,{startState:function(e){var t={tokenize:y,lastType:"sof",cc:[],lexical:new M((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new q(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),g(e,t)),t.tokenize!=b&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=a&&"--"!=a?n:"incdec",V(t,r,n,a,e))},indent:function(t,n){if(t.tokenize==b||t.tokenize==h)return e.Pass;if(t.tokenize!=y)return 0;var a,c=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var l=t.cc[u];if(l==W)s=s.prev;else if(l!=qe&&l!=N)break}for(;("stat"==s.type||"form"==s.type)&&("}"==c||(a=t.cc[t.cc.length-1])&&(a==R||a==X)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;o&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=c==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==c?s.indented:"form"==f?s.indented+i:"stat"==f?s.indented+(nt(t,n)?o||i:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:c,jsonMode:s,expressionAllowed:at,skipExpression:function(t){V(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r(728))}}]);
|