@chillicream/nitro-embedded 19.0.0-insider.1
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/LICENSE +95 -0
- package/README.md +64 -0
- package/apple-touch-icon.png +0 -0
- package/asset-manifest.json +56 -0
- package/favicon.ico +0 -0
- package/favicon.svg +1 -0
- package/index.cjs +17 -0
- package/index.d.cts +2 -0
- package/index.d.mts +2 -0
- package/index.html +1 -0
- package/index.mjs +13 -0
- package/manifest.webmanifest +23 -0
- package/package.json +47 -0
- package/robots.txt +3 -0
- package/service-worker.js +1 -0
- package/static/css/styles.15b5693c.css +1 -0
- package/static/js/110.0e366505.js +2 -0
- package/static/js/110.0e366505.js.LICENSE.txt +33 -0
- package/static/js/195.20ede8c1.chunk.js +1 -0
- package/static/js/2.6501c554.chunk.js +1 -0
- package/static/js/230.8503bd6f.chunk.js +1 -0
- package/static/js/264.6aedd0f5.js +1 -0
- package/static/js/341.1e379763.chunk.js +2 -0
- package/static/js/341.1e379763.chunk.js.LICENSE.txt +21 -0
- package/static/js/372.fa3f790f.chunk.js +1 -0
- package/static/js/425.6cfa0c21.chunk.js +1 -0
- package/static/js/703.880391f3.js +2 -0
- package/static/js/703.880391f3.js.LICENSE.txt +121 -0
- package/static/js/709.f5147502.js +1 -0
- package/static/js/712.8d0b0855.chunk.js +2 -0
- package/static/js/712.8d0b0855.chunk.js.LICENSE.txt +6 -0
- package/static/js/720.f5d95f7e.chunk.js +1 -0
- package/static/js/755.a97870be.chunk.js +1 -0
- package/static/js/81.f8d02cc4.chunk.js +1 -0
- package/static/js/824.04baf482.chunk.js +1 -0
- package/static/js/86.e31a339b.chunk.js +1 -0
- package/static/js/90.c735d0fd.chunk.js +1 -0
- package/static/js/907.68941042.js +1 -0
- package/static/js/936.e8fa296c.js +1 -0
- package/static/js/938.e41fcc3e.chunk.js +1 -0
- package/static/js/940.e5bc3e74.js +1 -0
- package/static/js/996.7a45a01a.chunk.js +1 -0
- package/static/js/editor.afbd84bf.js +1 -0
- package/static/js/graphql-engine.072217ef.chunk.js +1 -0
- package/static/js/graphql-indexer.f8b9a0f7.chunk.js +1 -0
- package/static/js/graphql.worker.2c56696a.js +2 -0
- package/static/js/graphql.worker.2c56696a.js.LICENSE.txt +33 -0
- package/static/js/json.1cf77584.js +2 -0
- package/static/js/json.1cf77584.js.LICENSE.txt +6 -0
- package/static/js/main.8bdce5ef.js +2 -0
- package/static/js/main.8bdce5ef.js.LICENSE.txt +8 -0
- package/static/js/polyfills.0bb6438e.js +1 -0
- package/static/js/session.f12ea7cc.chunk.js +1 -0
- package/static/js/yaml.worker.f5693bf4.js +1 -0
- package/static/media/FiraCode-Medium.1bc138a84f63b384c3f2.woff2 +0 -0
- package/static/media/codicon.184be8c3aa435ca6c3f5.ttf +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[936],{64293:e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},75438:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,p,u=this._events[s],l=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),l){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(p=1,c=new Array(l-1);p<l;p++)c[p-1]=arguments[p];u.fn.apply(u.context,c)}else{var f,d=u.length;for(p=0;p<d;p++)switch(u[p].once&&this.removeListener(e,u[p].fn,void 0,!0),l){case 1:u[p].fn.call(u[p].context);break;case 2:u[p].fn.call(u[p].context,t);break;case 3:u[p].fn.call(u[p].context,t,r);break;case 4:u[p].fn.call(u[p].context,t,r,o);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];u[p].fn.apply(u[p].context,c)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var c=0,p=[],u=s.length;c<u;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&p.push(s[c]);p.length?this._events[i]=1===p.length?p[0]:p:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},62967:(e,t,n)=>{"use strict";n.d(t,{Qb:()=>r.Qb,qx:()=>r.qx,r5:()=>r.r5});n(49996);var r=n(24815);n(49358),n(94806)},28232:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});class r{constructor(e){var t=this;this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null,o=null;if("string"===typeof e){o=new RegExp(e,arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"i":"g").test(t._sourceText.slice(t._pos,t._pos+e.length)),r=e}else e instanceof RegExp&&(o=t._sourceText.slice(t._pos).match(e),r=null===o||void 0===o?void 0:o[0]);return!(null==o||!("string"===typeof e||o instanceof Array&&t._sourceText.startsWith(o[0],t._pos)))&&(n&&(t._start=t._pos,r&&r.length&&(t._pos+=r.length)),o)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"===typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}},59968:(e,t,n)=>{"use strict";n.d(t,{Rq:()=>a,pi:()=>i,vM:()=>s});var r=n(27212),o=n(466);const i=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||"\xa0"===e,a={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},s={Document:[(0,r.p_)("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return o.b.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[p("query"),(0,r.m7)(u("def")),(0,r.m7)("VariableDefinitions"),(0,r.p_)("Directive"),"SelectionSet"],Mutation:[p("mutation"),(0,r.m7)(u("def")),(0,r.m7)("VariableDefinitions"),(0,r.p_)("Directive"),"SelectionSet"],Subscription:[p("subscription"),(0,r.m7)(u("def")),(0,r.m7)("VariableDefinitions"),(0,r.p_)("Directive"),"SelectionSet"],VariableDefinitions:[(0,r.p)("("),(0,r.p_)("VariableDefinition"),(0,r.p)(")")],VariableDefinition:["Variable",(0,r.p)(":"),"Type",(0,r.m7)("DefaultValue")],Variable:[(0,r.p)("$","variable"),u("variable")],DefaultValue:[(0,r.p)("="),"Value"],SelectionSet:[(0,r.p)("{"),(0,r.p_)("Selection"),(0,r.p)("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[u("property"),(0,r.p)(":"),u("qualifier"),(0,r.m7)("Arguments"),(0,r.p_)("Directive"),(0,r.m7)("SelectionSet")],Field:[u("property"),(0,r.m7)("Arguments"),(0,r.p_)("Directive"),(0,r.m7)("SelectionSet")],Arguments:[(0,r.p)("("),(0,r.p_)("Argument"),(0,r.p)(")")],Argument:[u("attribute"),(0,r.p)(":"),"Value"],FragmentSpread:[(0,r.p)("..."),u("def"),(0,r.p_)("Directive")],InlineFragment:[(0,r.p)("..."),(0,r.m7)("TypeCondition"),(0,r.p_)("Directive"),"SelectionSet"],FragmentDefinition:[p("fragment"),(0,r.m7)((0,r.FC)(u("def"),[p("on")])),"TypeCondition",(0,r.p_)("Directive"),"SelectionSet"],TypeCondition:[p("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,r.t)("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[(0,r.t)("Name","builtin")],NullValue:[(0,r.t)("Name","keyword")],EnumValue:[u("string-2")],ListValue:[(0,r.p)("["),(0,r.p_)("Value"),(0,r.p)("]")],ObjectValue:[(0,r.p)("{"),(0,r.p_)("ObjectField"),(0,r.p)("}")],ObjectField:[u("attribute"),(0,r.p)(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[(0,r.p)("["),"Type",(0,r.p)("]"),(0,r.m7)((0,r.p)("!"))],NonNullType:["NamedType",(0,r.m7)((0,r.p)("!"))],NamedType:[(c="atom",{style:c,match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[(0,r.p)("@","meta"),u("meta"),(0,r.m7)("Arguments")],DirectiveDef:[p("directive"),(0,r.p)("@","meta"),u("meta"),(0,r.m7)("ArgumentsDef"),p("on"),(0,r.p_)("DirectiveLocation",(0,r.p)("|"))],InterfaceDef:[p("interface"),u("atom"),(0,r.m7)("Implements"),(0,r.p_)("Directive"),(0,r.p)("{"),(0,r.p_)("FieldDef"),(0,r.p)("}")],Implements:[p("implements"),(0,r.p_)("NamedType",(0,r.p)("&"))],DirectiveLocation:[u("string-2")],SchemaDef:[p("schema"),(0,r.p_)("Directive"),(0,r.p)("{"),(0,r.p_)("OperationTypeDef"),(0,r.p)("}")],OperationTypeDef:[u("keyword"),(0,r.p)(":"),u("atom")],ScalarDef:[p("scalar"),u("atom"),(0,r.p_)("Directive")],ObjectTypeDef:[p("type"),u("atom"),(0,r.m7)("Implements"),(0,r.p_)("Directive"),(0,r.p)("{"),(0,r.p_)("FieldDef"),(0,r.p)("}")],FieldDef:[u("property"),(0,r.m7)("ArgumentsDef"),(0,r.p)(":"),"Type",(0,r.p_)("Directive")],ArgumentsDef:[(0,r.p)("("),(0,r.p_)("InputValueDef"),(0,r.p)(")")],InputValueDef:[u("attribute"),(0,r.p)(":"),"Type",(0,r.m7)("DefaultValue"),(0,r.p_)("Directive")],UnionDef:[p("union"),u("atom"),(0,r.p_)("Directive"),(0,r.p)("="),(0,r.p_)("UnionMember",(0,r.p)("|"))],UnionMember:["NamedType"],EnumDef:[p("enum"),u("atom"),(0,r.p_)("Directive"),(0,r.p)("{"),(0,r.p_)("EnumValueDef"),(0,r.p)("}")],EnumValueDef:[u("string-2"),(0,r.p_)("Directive")],InputDef:[p("input"),u("atom"),(0,r.p_)("Directive"),(0,r.p)("{"),(0,r.p_)("InputValueDef"),(0,r.p)("}")],ExtendDef:[p("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return o.b.SCHEMA_EXTENSION;case"scalar":return o.b.SCALAR_TYPE_EXTENSION;case"type":return o.b.OBJECT_TYPE_EXTENSION;case"interface":return o.b.INTERFACE_TYPE_EXTENSION;case"union":return o.b.UNION_TYPE_EXTENSION;case"enum":return o.b.ENUM_TYPE_EXTENSION;case"input":return o.b.INPUT_OBJECT_TYPE_EXTENSION}},[o.b.SCHEMA_EXTENSION]:["SchemaDef"],[o.b.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[o.b.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[o.b.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[o.b.UNION_TYPE_EXTENSION]:["UnionDef"],[o.b.ENUM_TYPE_EXTENSION]:["EnumDef"],[o.b.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};var c;function p(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function u(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}},24815:(e,t,n)=>{"use strict";n.d(t,{Qb:()=>r.A,qx:()=>i.q,r5:()=>o.A});var r=n(28232),o=(n(59968),n(83759)),i=(n(80587),n(44323),n(5798))},58819:(e,t)=>{"use strict";t.nI=t.OL=void 0;t.OL=1e3;t.nI=3e4},69278:(e,t)=>{"use strict";var n=function(){function e(){throw new Error("Static Class")}return e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_CONNECTION_TERMINATE="connection_terminate",e.GQL_START="start",e.GQL_DATA="data",e.GQL_ERROR="error",e.GQL_COMPLETE="complete",e.GQL_STOP="stop",e.SUBSCRIPTION_START="subscription_start",e.SUBSCRIPTION_DATA="subscription_data",e.SUBSCRIPTION_SUCCESS="subscription_success",e.SUBSCRIPTION_FAIL="subscription_fail",e.SUBSCRIPTION_END="subscription_end",e.INIT="init",e.INIT_SUCCESS="init_success",e.INIT_FAIL="init_fail",e.KEEP_ALIVE="keepalive",e}();t.A=n},30325:(e,t)=>{"use strict";t.BS=void 0;t.BS="graphql-ws"},32691:(e,t)=>{"use strict";t.A=function(e){return null!==e&&"object"===typeof e}},87357:(e,t)=>{"use strict";t.A=function(e){return"string"===typeof e}},65292:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"===typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:e)},34145:(e,t,n)=>{"use strict";function r(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function o(e){return"object"===r(e)}function i(e,t){return e.length<124?e:t}n.d(t,{UU:()=>d});const a="graphql-transport-ws";var s,c;function p(e){if(!o(e))throw new Error("Message is expected to be an object, but got ".concat(r(e)));if(!e.type)throw new Error("Message is missing the 'type' property");if("string"!==typeof e.type)throw new Error("Message is expects the 'type' property to be a string, but got ".concat(r(e.type)));switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:if(null!=e.payload&&!o(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object or nullish or missing, but got \"").concat(e.payload,'"'));break;case c.Subscribe:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(r(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!o(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat(r(e.payload)));if("string"!==typeof e.payload.query)throw new Error('"'.concat(e.type,"\" message payload expects the 'query' property to be a string, but got ").concat(r(e.payload.query)));if(null!=e.payload.variables&&!o(e.payload.variables))throw new Error('"'.concat(e.type,"\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ").concat(r(e.payload.variables)));if(null!=e.payload.operationName&&"string"!==r(e.payload.operationName))throw new Error('"'.concat(e.type,"\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ").concat(r(e.payload.operationName)));if(null!=e.payload.extensions&&!o(e.payload.extensions))throw new Error('"'.concat(e.type,"\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ").concat(r(e.payload.extensions)));break;case c.Next:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(r(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(!o(e.payload))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an object, but got ").concat(r(e.payload)));break;case c.Error:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(r(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));if(t=e.payload,!(Array.isArray(t)&&t.length>0&&t.every((e=>"message"in e))))throw new Error('"'.concat(e.type,"\" message expects the 'payload' property to be an array of GraphQL errors, but got ").concat(JSON.stringify(e.payload)));break;case c.Complete:if("string"!==typeof e.id)throw new Error('"'.concat(e.type,"\" message expects the 'id' property to be a string, but got ").concat(r(e.id)));if(!e.id)throw new Error('"'.concat(e.type,"\" message requires a non-empty 'id' property"));break;default:throw new Error("Invalid message 'type' property \"".concat(e.type,'"'))}var t;return e}function u(e,t){return p(e),JSON.stringify(e,t)}!function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"}(s||(s={})),function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"}(c||(c={}));var l=function(e){return this instanceof l?(this.v=e,this):new l(e)},f=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof l?Promise.resolve(n.value.v).then(c,p):u(i[0][2],n)}catch(r){u(i[0][3],r)}var n}function c(e){s("next",e)}function p(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};function d(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:o=console.error,lazyCloseTimeout:d=0,keepAlive:y=0,disablePong:v,connectionAckWaitTimeout:_=0,retryAttempts:b=5,retryWait:g=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise((e=>setTimeout(e,t+Math.floor(2700*Math.random()+300))))},shouldRetry:E=m,isFatalConnectionProblem:w,on:S,webSocketImpl:T,generateID:N=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},jsonMessageReplacer:x,jsonMessageReviver:I}=e;let C;if(T){if(!("function"===typeof(D=T)&&"constructor"in D&&"CLOSED"in D&&"CLOSING"in D&&"CONNECTING"in D&&"OPEN"in D))throw new Error("Invalid WebSocket implementation provided");C=T}else"undefined"!==typeof WebSocket?C=WebSocket:"undefined"!==typeof global?C=global.WebSocket||global.MozWebSocket:"undefined"!==typeof window&&(C=window.WebSocket||window.MozWebSocket);var D;if(!C)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const A=C,O=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null===S||void 0===S?void 0:S.connecting)?[S.connecting]:[],opened:(null===S||void 0===S?void 0:S.opened)?[S.opened]:[],connected:(null===S||void 0===S?void 0:S.connected)?[S.connected]:[],ping:(null===S||void 0===S?void 0:S.ping)?[S.ping]:[],pong:(null===S||void 0===S?void 0:S.pong)?[S.pong]:[],message:(null===S||void 0===S?void 0:S.message)?[e.emit,S.message]:[e.emit],closed:(null===S||void 0===S?void 0:S.closed)?[S.closed]:[],error:(null===S||void 0===S?void 0:S.error)?[S.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const i of[...t[e]])i(...r)}}})();function k(e){const t=[O.on("error",(n=>{t.forEach((e=>e())),e(n)})),O.on("closed",(n=>{t.forEach((e=>e())),e(n)}))]}let P,V,L=0,R=!1,M=0,j=!1;async function F(){clearTimeout(V);const[e,r]=await(null!==P&&void 0!==P?P:P=new Promise(((e,r)=>(async()=>{if(R){if(await g(M),!L)return P=void 0,r({code:1e3,reason:"All Subscriptions Gone"});M++}O.emit("connecting",R);const o=new A("function"===typeof t?await t():t,a);let l,f;function d(){isFinite(y)&&y>0&&(clearTimeout(f),f=setTimeout((()=>{o.readyState===A.OPEN&&(o.send(u({type:c.Ping})),O.emit("ping",!1,void 0))}),y))}k((e=>{P=void 0,clearTimeout(l),clearTimeout(f),r(e),e instanceof h&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)})),o.onerror=e=>O.emit("error",e),o.onclose=e=>O.emit("closed",e),o.onopen=async()=>{try{O.emit("opened",o);const e="function"===typeof n?await n():n;if(o.readyState!==A.OPEN)return;o.send(u(e?{type:c.ConnectionInit,payload:e}:{type:c.ConnectionInit},x)),isFinite(_)&&_>0&&(l=setTimeout((()=>{o.close(s.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")}),_)),d()}catch(e){O.emit("error",e),o.close(s.InternalClientError,i(e instanceof Error?e.message:new Error(e).message,"Internal client error"))}};let m=!1;o.onmessage=t=>{let{data:n}=t;try{const t=function(e,t){return p("string"===typeof e?JSON.parse(e,t):e)}(n,I);if(O.emit("message",t),"ping"===t.type||"pong"===t.type)return O.emit(t.type,!0,t.payload),void("pong"===t.type?d():v||(o.send(u(t.payload?{type:c.Pong,payload:t.payload}:{type:c.Pong})),O.emit("pong",!1,t.payload)));if(m)return;if(t.type!==c.ConnectionAck)throw new Error("First message cannot be of type ".concat(t.type));clearTimeout(l),m=!0,O.emit("connected",o,t.payload,R),R=!1,M=0,e([o,new Promise(((e,t)=>k(t)))])}catch(r){o.onmessage=null,O.emit("error",r),o.close(s.BadResponse,i(r instanceof Error?r.message:new Error(r).message,"Bad response"))}}})())));e.readyState===A.CLOSING&&await r;let o=()=>{};const l=new Promise((e=>o=e));return[e,o,Promise.race([l.then((()=>{if(!L){const t=()=>e.close(1e3,"Normal Closure");isFinite(d)&&d>0?V=setTimeout((()=>{e.readyState===A.OPEN&&t()}),d):t()}})),r])]}function U(e){if(m(e)&&(t=e.code,![1e3,1001,1006,1005,1012,1013,1014].includes(t)&&t>=1e3&&t<=1999||[s.InternalServerError,s.InternalClientError,s.BadRequest,s.BadResponse,s.Unauthorized,s.SubprotocolNotAcceptable,s.SubscriberAlreadyExists,s.TooManyInitialisationRequests].includes(e.code)))throw e;var t;if(j)return!1;if(m(e)&&1e3===e.code)return L>0;if(!b||M>=b)throw e;if(!E(e))throw e;if(null===w||void 0===w?void 0:w(e))throw e;return R=!0}function q(e,t){const n=N(e);let r=!1,o=!1,i=()=>{L--,r=!0};return(async()=>{for(L++;;)try{const[a,s,p]=await F();if(r)return s();const l=O.onMessage(n,(e=>{switch(e.type){case c.Next:return void t.next(e.payload);case c.Error:return o=!0,r=!0,t.error(e.payload),void i();case c.Complete:return r=!0,void i()}}));return a.send(u({id:n,type:c.Subscribe,payload:e},x)),i=()=>{r||a.readyState!==A.OPEN||a.send(u({id:n,type:c.Complete},x)),L--,r=!0,s()},void await p.finally(l)}catch(a){if(!U(a))return}})().then((()=>{o||t.complete()})).catch((e=>{t.error(e)})),()=>{r||i()}}return r||(async()=>{for(L++;;)try{const[,,e]=await F();await e}catch(e){try{if(!U(e))return}catch(e){return null===o||void 0===o?void 0:o(e)}}})(),{on:O.on,subscribe:q,iterate(e){const t=[],n={done:!1,error:null,resolve:()=>{}},r=q(e,{next(e){t.push(e),n.resolve()},error(e){n.done=!0,n.error=e,n.resolve()},complete(){n.done=!0,n.resolve()}}),o=function(){return f(this,arguments,(function*(){for(;;){for(t.length||(yield l(new Promise((e=>n.resolve=e))));t.length;)yield yield l(t.shift());if(n.error)throw n.error;if(n.done)return yield l(void 0)}}))}();return o.throw=async e=>(n.done||(n.done=!0,n.error=e,n.resolve()),{done:!0,value:void 0}),o.return=async()=>(r(),{done:!0,value:void 0}),o},async dispose(){if(j=!0,P){const[e]=await P;e.close(1e3,"Normal Closure")}},terminate(){P&&O.emit("closed",new h)}}}class h extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function m(e){return o(e)&&"code"in e&&"reason"in e}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[938],{99850:(e,t,r)=>{"use strict";r.d(t,{EL:()=>o,SE:()=>l,j9:()=>i,ot:()=>c});r(62316),r(36022),r(75885);var n=r(10258),s=r(67942);r(3455),r(51944);const a="chillicream-nitro-insider";function o(e,t){return c((r=>r.get(e,t)))}function i(e,t){return c((async r=>{await r.put(e,t)}))}async function c(e){const t=await(0,s.P2)(a);try{return await e(t)}finally{t.close()}}async function u(e,t,r,s,a){const o=await async function(e,t,r){const s=e.transaction(t,r),a={},o={};for(const n of t){const e=s.objectStore(n),t=f(n);a[t]=e,o[t]={};for(const r of e.indexNames)o[t][r]=e.index(r)}return{abort:e=>function(e,t){throw e.abort(),new Error(t)}(s,e),done:s.done.catch((e=>{if(!(0,n.zf)(e))throw e})),store:a,index:o}}(e,t,r);try{return a?await(0,n.bA)((()=>o.abort("transaction aborted")),(()=>s(o,e.version)),a):await s(o,e.version)}finally{await o.done}}function l(e,t,r,n){return c((s=>u(s,e,t,r,n)))}const d=new Map;function f(e){let t=d.get(e);return t||(t=e.split("-").reduce(((e,t)=>(t&&(""!==e?(e+=t[0].toUpperCase(),e+=t.substring(1)):e=t),e)),""),d.set(e,t)),t}},46114:(e,t,r)=>{"use strict";r(75885),r(99850),r(10258),r(37727),r(2622),r(65107),r(59943)},13939:(e,t,r)=>{"use strict";r(62316),r(36022),r(75885),r(99850),r(10258),r(37727),r(65107),r(59943)},37727:(e,t,r)=>{"use strict";r(75885),r(19518),r(10258),r(2622),r(65107),r(59943)},9835:(e,t,r)=>{"use strict";r.d(t,{V8:()=>s,Xb:()=>n,qW:()=>a});const n="sdl-schema",s="statistics",a="items"},19255:(e,t,r)=>{"use strict";r.d(t,{GU:()=>a,q:()=>s});var n=r(99850);async function s(e){let{sub:t,tenant:r,issuer:s}=e;return(0,n.SE)(["session"],"readonly",(e=>e.index.session.key.get([t,r,s])))}async function a(e){return await(0,n.j9)("session",e),e}},54700:(e,t,r)=>{"use strict";r(75885);var n=r(84983),s=(r(10258),r(9416));s.Hw,s.X,s.wv,s.JZ},19518:(e,t,r)=>{"use strict";r(36022),r(75885);var n=r(23845);r(66094),r(99850),r(10258),r(54700),r(52396),r(59943);const s=[0,n.T2,n.To,n.To,n.MA,n.fI,n.R1,n.kf,n.CZ,n.BN];s.length},54161:(e,t,r)=>{"use strict";r(75885),r(99850)},11081:(e,t,r)=>{"use strict";var n=r(4537),s=(r(78238),r(20709));r(62316),r(93967),r(54913),r(75885);var a=r(23845),o=r(10258),i=r(20278),c=r(41192);new s.Environment({network:s.Network.create(((e,t,r)=>s.Observable.from((0,n.L)("/graphql")).mergeMap((r=>s.Observable.create((n=>s.Observable.from(new Promise(((s,i)=>{(async function(r,n){try{const{uri:s,headers:i}=n;i.set(a.VX,"application/json");const u=await fetch(s,{body:JSON.stringify(e.id?{id:e.id,variables:t}:{query:e.text,variables:t}),headers:i,method:"POST"}),l=await(0,c.z)(u);if((0,o.Td)(l))for await(const e of l){if(!e.json){r.error(new Error("Failed to parse part as json."));break}if("data"in e.body&&r.next(e.body),"incremental"in e.body)for(const t of e.body.incremental)if("data"in t)r.next({...t,hasNext:e.body.hasNext});else if(t.items){const n=t.path.slice(0,-1);let s=t.path.at(-1);for(const a of t.items)r.next({...t,path:n.concat(s++),data:a,hasNext:e.body.hasNext})}else r.next({...t,data:t.items,hasNext:e.body.hasNext})}else r.next(await l.json());r.complete()}catch(s){s instanceof Error?r.error(s,!0):r.error(new Error("Unknown error"),!0)}})(n,r).then(s,i)}))).subscribe({})))))),((e,t)=>s.Observable.from((0,n.L)("/graphql")).map((e=>{let{uri:t,headers:r}=e;const n={};return r.forEach(((e,t)=>{n[t]=e})),(0,i.UU)({url:t,headers:n})})).mergeMap((r=>s.Observable.create((n=>{var s,a;const o=r.subscribe({id:null!==(s=e.id)&&void 0!==s?s:void 0,query:null!==(a=e.text)&&void 0!==a?a:"",variables:t},{next:e=>{var t;let{data:r,errors:s,extensions:a}=e;return n.next({data:null!==r&&void 0!==r?r:void 0,errors:null!==(t=null===s||void 0===s?void 0:s.map((e=>{var t;return{message:e.message,locations:null===(t=e.locations)||void 0===t?void 0:t.map((e=>{let{line:t,column:r}=e;return{line:t,column:r}}))}})))&&void 0!==t?t:[],extensions:a})},complete:n.complete,error:e=>{e instanceof Error?n.error(e,!0):n.error(new Error("Unknown error"),!0)}});return{closed:n.closed,unsubscribe:o}})))))),store:new s.Store(new s.RecordSource)});r(77122)},77122:(e,t,r)=>{"use strict";r.d(t,{ZH:()=>i,jc:()=>c});r(62316),r(75885),r(6324),r(40231),r(95666),r(77845);var n=r(23845),s=r(66094),a=r(10258),o=r(78238);async function i(e){const t=await(0,s.K6y)();if(!t)return null;let r=await(0,s.qaW)(t);if(!r)return null;if((0,a.aE)(r)&&(r=await async function(e,t){return(0,o.T)("refresh-session",r);async function r(r){const o=t?(0,a.M_)(t,r):r;let i=await(0,s.qaW)(e)||e;if(!(0,a.aE)(i)||i.requiresSignIn)return i;const c=new Headers,u=new URLSearchParams;c.append(n.VX,"application/x-www-form-urlencoded"),u.append("client_id","d8b1d8dd-c26d-4b54-8cde-5f3c8eb054ba"),u.append("grant_type","refresh_token"),u.append("refresh_token",i.refreshToken);try{const t=await fetch("".concat(i.issuer,"/connect/token"),{method:"POST",headers:c,body:u,signal:o});if(t.ok){const e=await t.json();if(l=e,(0,a.Hf)(l)&&"access_token"in l)return(0,s.GUQ)({...i,requiresSignIn:!1,idToken:e.id_token,accessToken:e.access_token,refreshToken:e.refresh_token,expiresAt:(0,a.tB)()+e.expires_in*n.OY})}else if(400===t.status&&(i=await(0,s.qaW)(e)||e,(0,a.aE)(i)))return(0,s.GUQ)({...i,requiresSignIn:!0,lastTriedToRefresh:(0,a.tB)()});return i}catch(d){console.error(d)}var l;return i=await(0,s.qaW)(e)||e,(0,a.aE)(i)?(0,s.GUQ)({...i,lastTriedToRefresh:(0,a.tB)()}):i}}(r,e),(0,a.aE)(r)))throw new c;return r}class c extends Error{constructor(){super("User session has been expired")}}},49117:(e,t,r)=>{"use strict";r(11081)},32531:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var n=r(23845),s=r(85096);function a(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.iW;return e.expiresAt-(0,s.tB)()-t}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.iW)<1}},20709:(e,t,r)=>{e.exports=r(82685)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[940],{85890:(e,t,i)=>{i.d(t,{YR:()=>r,sP:()=>o});i(93967),i(36022),i(54913),i(75885);var n=i(96243),s=i(13295);const o=Object.freeze({});function r(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.hd;const r=new Map;for(const s of Object.values(n.xs))r.set(s,c(t,s));let a,h,l,u=Array.isArray(e),d=[e],m=-1,p=[],v=e;const y=[],f=[];do{m++;const e=m===d.length,n=e&&0!==p.length;if(e){if(h=0===f.length?void 0:y[y.length-1],v=l,l=f.pop(),n)if(u){v=v.slice();let e=0;for(const[t,i]of p){const n=t-e;null===i?(v.splice(n,1),e++):v[n]=i}}else{v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v));for(const[e,t]of p)v[e]=t}m=a.index,d=a.keys,p=a.edits,u=a.inArray,a=a.prev}else if(null!=l){if(h=u?m:d[m],v=l[h],null===v||void 0===v)continue;y.push(h)}let c;if(!Array.isArray(v)){var g,T;const i=e?null===(g=r.get(v.kind))||void 0===g?void 0:g.leave:null===(T=r.get(v.kind))||void 0===T?void 0:T.enter;if(c=null===i||void 0===i?void 0:i.call(t,v,h,l,y,f),c===o)break;if(!1===c){if(!e){y.pop();continue}}else if(void 0!==c&&(p.push([h,c]),!e)){if(!(0,s.VJ)(c)){y.pop();continue}v=c}}var w;if(void 0===c&&n&&p.push([h,v]),e)y.pop();else a={inArray:u,index:m,keys:d,edits:p,prev:a},u=Array.isArray(v),d=u?v:null!==(w=i[v.kind])&&void 0!==w?w:[],m=-1,p=[],null!=l&&f.push(l),l=v}while(void 0!==a);return 0!==p.length?p.at(-1)[1]:e}function c(e,t){const i=e[t];return"object"===typeof i?i:"function"===typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}},1103:(e,t,i)=>{i.d(t,{D:()=>f});i(62316),i(36022),i(75885);var n=i(10258),s=i(64293),o=i.n(s),r=i(75438),c=i(70807),a=i(19740),h=i(58819),l=i(69278),u=i(30325),d=i(32691),m=i(87357),p=i(65292);const v="undefined"!==typeof i.g?i.g:"undefined"!==typeof window?window:{},y=v.WebSocket||v.MozWebSocket;class f{constructor(e,t,i,n){this.client=void 0,this.operations=void 0,this.url=void 0,this.nextOperationId=void 0,this.connectionParams=void 0,this.minWsTimeout=void 0,this.wsTimeout=void 0,this.unsentMessagesQueue=void 0,this.reconnect=void 0,this.reconnecting=void 0,this.reconnectionAttempts=void 0,this.backoff=void 0,this.connectionCallback=void 0,this.eventEmitter=void 0,this.lazy=void 0,this.inactivityTimeout=void 0,this.inactivityTimeoutId=void 0,this.closedByUser=void 0,this.wsImpl=void 0,this.wsProtocols=void 0,this.wasKeepAliveReceived=void 0,this.tryReconnectTimeoutId=void 0,this.checkConnectionIntervalId=void 0,this.maxConnectTimeoutId=void 0,this.middlewares=void 0,this.maxConnectTimeGenerator=void 0,this.wsOptionArguments=void 0,this.wsOnMessage=void 0;const{connectionCallback:s,connectionParams:c={},minTimeout:a=h.OL,timeout:l=h.nI,reconnect:d=!1,reconnectionAttempts:m=1/0,lazy:p=!1,inactivityTimeout:v=0,wsOptionArguments:f=[],onMessage:g}=t||{};if(this.wsOnMessage=g,this.wsImpl=i||y,!this.wsImpl)throw new Error("Unable to find native implementation, or alternative implementation for WebSocket!");this.wsProtocols=n||u.BS,this.connectionCallback=s,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=a,this.wsTimeout=l,this.unsentMessagesQueue=[],this.reconnect=d,this.reconnecting=!1,this.reconnectionAttempts=m,this.lazy=!!p,this.inactivityTimeout=v,this.closedByUser=!1,this.backoff=new(o())({jitter:.5}),this.eventEmitter=new r.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(c),this.wsOptionArguments=f,this.lazy||this.connect()}get status(){return null===this.client?this.wsImpl.CLOSED:this.client.readyState}close(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clearInactivityTimeout(),null!==this.client&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,l.A.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit("disconnected"),e||this.tryReconnect())}request(e){const t=this.getObserver.bind(this),i=this.executeOperation.bind(this),n=this.unsubscribe.bind(this);let s=null;return this.clearInactivityTimeout(),{[p.A](){return this},subscribe(o,r,c){const a=t(o,r,c);return s=i(e,((e,t)=>{null===e&&null===t?a.complete&&a.complete():e?a.error&&a.error(e[0]):a.next&&a.next(t)})),{unsubscribe:()=>{s&&(n(s),s=null)}}}}}on(e,t,i){const n=this.eventEmitter.on(e,t,i);return()=>{n.off(e,t,i)}}onConnected(e,t){return this.on("connected",e,t)}onConnecting(e,t){return this.on("connecting",e,t)}onDisconnected(e,t){return this.on("disconnected",e,t)}onReconnected(e,t){return this.on("reconnected",e,t)}onReconnecting(e,t){return this.on("reconnecting",e,t)}onError(e,t){return this.on("error",e,t)}unsubscribeAll(){Object.keys(this.operations).forEach((e=>{this.unsubscribe(e)}))}applyMiddlewares(e){return new Promise(((t,i)=>{((n,s)=>{const o=r=>{if(r)i(r);else if(n.length>0){const t=n.shift();t&&t.applyMiddleware.apply(s,[e,o])}else t(e)};o()})([...this.middlewares],this)}))}use(e){return e.forEach((e=>{if(!(0,n.Tn)(e.applyMiddleware))throw new Error("Middleware must implement the applyMiddleware function.");this.middlewares.push(e)})),this}getConnectionParams(e){return()=>new Promise(((t,i)=>{if((0,n.Tn)(e))try{return t(e.call(null))}catch(s){return i(s)}t(e)}))}executeOperation(e,t){null===this.client&&this.connect();const i=this.generateOperationId();return this.operations[i]={options:e,handler:t},this.applyMiddlewares(e).then((e=>{this.checkOperationOptions(e,t),this.operations[i]&&(this.operations[i]={options:e,handler:t},this.sendMessage(i,l.A.GQL_START,e))})).catch((e=>{this.unsubscribe(i),t(this.formatErrors(e))})),i}getObserver(e,t,i){return(0,n.Tn)(e)?{next:t=>e(t),error:e=>t&&t(e),complete:()=>i&&i()}:e}createMaxConnectTimeGenerator(){const e=this.minWsTimeout,t=this.wsTimeout;return new(o())({min:e,max:t,factor:1.2})}clearCheckConnectionInterval(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)}clearMaxConnectTimeout(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)}clearTryReconnectTimeout(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)}clearInactivityTimeout(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)}setInactivityTimeout(){this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((()=>{0===Object.keys(this.operations).length&&this.close()}),this.inactivityTimeout))}checkOperationOptions(e,t){const{query:i,variables:n,operationName:s}=e;if(!i)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!(0,m.A)(i)&&!(0,a.A)(i,s)||s&&!(0,m.A)(s)||n&&!(0,d.A)(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")}buildMessage(e,t,i){return{id:e,type:t,payload:i&&i.query?{...i,query:"string"===typeof i.query?i.query:(0,c.y)(i.query)}:i}}formatErrors(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormattedError",message:"Unknown error",originalError:e}]}sendMessage(e,t,i){this.sendMessageRaw(this.buildMessage(e,t,i))}sendMessageRaw(e){switch(this.status){case this.wsImpl.OPEN:let i=JSON.stringify(e);try{JSON.parse(i)}catch(t){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: ".concat(e)))}this.client.send(i);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}}generateOperationId(){return String(++this.nextOperationId)}tryReconnect(){if(!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts)return;this.reconnecting||(Object.keys(this.operations).forEach((e=>{this.unsentMessagesQueue.push(this.buildMessage(e,l.A.GQL_START,this.operations[e].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();const e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((()=>{this.connect()}),e)}flushUnsentMessagesQueue(){this.unsentMessagesQueue.forEach((e=>{this.sendMessageRaw(e)})),this.unsentMessagesQueue=[]}checkConnection(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)}checkMaxConnectTimeout(){this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((()=>{this.status!==this.wsImpl.OPEN&&(this.reconnecting=!0,this.close(!1,!0))}),this.maxConnectTimeGenerator.duration())}connect(){this.client=new this.wsImpl(this.url,this.wsProtocols,...this.wsOptionArguments),this.checkMaxConnectTimeout(),this.client.onopen=async()=>{if(this.status===this.wsImpl.OPEN){this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting");try{const e=await this.connectionParams();this.sendMessage(void 0,l.A.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue()}catch(e){this.sendMessage(void 0,l.A.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue()}}},this.client.onclose=()=>{this.closedByUser||this.close(!1,!1)},this.client.onerror=e=>{this.eventEmitter.emit("error",e)},this.client.onmessage=e=>{var t;let{data:i}=e;null===(t=this.wsOnMessage)||void 0===t||t.call(this,i),this.processReceivedData(i)}}processReceivedData(e){let t,i;try{t=JSON.parse(e),i=t.id}catch(n){throw new Error("Message must be JSON-parseable. Got: ".concat(e))}if(-1===[l.A.GQL_DATA,l.A.GQL_COMPLETE,l.A.GQL_ERROR].indexOf(t.type)||this.operations[i])switch(t.type){case l.A.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case l.A.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case l.A.GQL_COMPLETE:const e=this.operations[i].handler;delete this.operations[i],e.call(this,null,null);break;case l.A.GQL_ERROR:this.operations[i].handler(this.formatErrors(t.payload),null),delete this.operations[i];break;case l.A.GQL_DATA:const n=t.payload.errors?{...t.payload,errors:this.formatErrors(t.payload.errors)}:t.payload;this.operations[i].handler(null,n);break;case l.A.GQL_CONNECTION_KEEP_ALIVE:const s="undefined"===typeof this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,s&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(i)}unsubscribe(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,l.A.GQL_STOP,void 0))}}},75468:(e,t,i)=>{i.d(t,{c:()=>n});i(5084);function n(e){return e.replace(/\/(?=\?)|\/(?=#)|\/$/,"")}},53768:(e,t,i)=>{i.d(t,{Hf:()=>s,Td:()=>n,Tn:()=>o});const n=e=>o(Object(e)[Symbol.asyncIterator]);function s(e){return null!==e&&"object"===typeof e&&!Array.isArray(e)}function o(e){return"function"===typeof e}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_chillicream_nitro=self.webpackChunk_chillicream_nitro||[]).push([[996],{23845:(e,t,i)=>{"use strict";i.d(t,{mF:()=>E,ag:()=>c,hl:()=>u,wL:()=>N.wL,To:()=>N.To,fc:()=>N.fc,VX:()=>f,c7:()=>_,CZ:()=>N.CZ,MA:()=>N.MA,iW:()=>N.iW,OY:()=>N.OY,R1:()=>N.R1,T2:()=>N.T2,BN:()=>N.BN,fI:()=>N.fI,kf:()=>N.kf});var n,r,a=i(8330);const p=a.QC,u=a.rE,c=null!==(n="Q2xpZW50Cmc5MTE3YmNmZWM4Zjk0YWExYmZkOWIxZWUzOTY0YmQwOQ==")?n:"",o=(a.rE,new RegExp("^https?:\\/\\/.*?\\.(bananacakepop\\.com|chillicream\\.cloud)","i")),l=null!==(r=null===o||void 0===o?void 0:o.test(self.origin))&&void 0!==r&&r,m=navigator.userAgent.indexOf("Electron")>=0,s=l?"cloud":m?"app":"middleware",E="".concat(p,"/").concat(u," (").concat(s,")");(function(){if(navigator.userAgent.indexOf("Win")>=0)return"Windows";if(navigator.userAgent.indexOf("Mac")>=0)return"macOS";if(navigator.userAgent.indexOf("X11")>=0||navigator.userAgent.indexOf("Linux")>=0)return"Linux"})(),function(){const e=navigator.userAgent.toLowerCase();e.includes("mac os")||e.includes("ipad")}();const f="Content-Type",_=/^https?:\/\//i;var N=i(18370)},69529:(e,t,i)=>{"use strict";i(67466),i(97353),i(26845)},13295:(e,t,i)=>{"use strict";i.d(t,{N5:()=>r,c:()=>a});var n=i(96243);function r(e){return p(e,n.xs.FIELD)}function a(e){return p(e,n.xs.DIRECTIVE)}function p(e,t){return!!e&&"object"===typeof e&&"kind"in e&&e.kind===t&&!("isConst"in e)}},96243:(e,t,i)=>{"use strict";i.d(t,{xs:()=>n});let n=function(e){return e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLES_DEFINITION="VariablesDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT_DICT="ArgumentDict",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.NUMBER="NumberValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e}({})},67466:(e,t,i)=>{"use strict";i(96243),i(13295),i(36022),i(75885);var n=i(62967),r=i(92398);i(30628);n.qx,r.ParseRules;i(54596),i(72790),i(85890)},30628:(e,t,i)=>{"use strict";i(62316),i(96243)},85890:(e,t,i)=>{"use strict";i(93967),i(36022),i(54913),i(75885),i(96243),i(13295);Object.freeze({})},29899:(e,t,i)=>{"use strict";i(36022),i(75885)},53768:(e,t,i)=>{"use strict";i.d(t,{Hf:()=>r,Td:()=>n});const n=e=>function(e){return"function"===typeof e}(Object(e)[Symbol.asyncIterator]);function r(e){return null!==e&&"object"===typeof e&&!Array.isArray(e)}},62967:(e,t,i)=>{"use strict";i.d(t,{qx:()=>n.qx});i(49996);var n=i(24815);i(49358),i(94806)},59968:(e,t,i)=>{"use strict";var n=i(27212),r=i(466);(0,n.p_)("Definition"),p("query"),(0,n.m7)(u("def")),(0,n.m7)("VariableDefinitions"),(0,n.p_)("Directive"),p("mutation"),(0,n.m7)(u("def")),(0,n.m7)("VariableDefinitions"),(0,n.p_)("Directive"),p("subscription"),(0,n.m7)(u("def")),(0,n.m7)("VariableDefinitions"),(0,n.p_)("Directive"),(0,n.p)("("),(0,n.p_)("VariableDefinition"),(0,n.p)(")"),(0,n.p)(":"),(0,n.m7)("DefaultValue"),(0,n.p)("$","variable"),u("variable"),(0,n.p)("="),(0,n.p)("{"),(0,n.p_)("Selection"),(0,n.p)("}"),u("property"),(0,n.p)(":"),u("qualifier"),(0,n.m7)("Arguments"),(0,n.p_)("Directive"),(0,n.m7)("SelectionSet"),u("property"),(0,n.m7)("Arguments"),(0,n.p_)("Directive"),(0,n.m7)("SelectionSet"),(0,n.p)("("),(0,n.p_)("Argument"),(0,n.p)(")"),u("attribute"),(0,n.p)(":"),(0,n.p)("..."),u("def"),(0,n.p_)("Directive"),(0,n.p)("..."),(0,n.m7)("TypeCondition"),(0,n.p_)("Directive"),p("fragment"),(0,n.m7)((0,n.FC)(u("def"),[p("on")])),(0,n.p_)("Directive"),p("on"),(0,n.t)("Number","number"),(0,n.t)("Name","builtin"),(0,n.t)("Name","keyword"),u("string-2"),(0,n.p)("["),(0,n.p_)("Value"),(0,n.p)("]"),(0,n.p)("{"),(0,n.p_)("ObjectField"),(0,n.p)("}"),u("attribute"),(0,n.p)(":"),(0,n.p)("["),(0,n.p)("]"),(0,n.m7)((0,n.p)("!")),(0,n.m7)((0,n.p)("!")),a="atom",(0,n.p)("@","meta"),u("meta"),(0,n.m7)("Arguments"),p("directive"),(0,n.p)("@","meta"),u("meta"),(0,n.m7)("ArgumentsDef"),p("on"),(0,n.p_)("DirectiveLocation",(0,n.p)("|")),p("interface"),u("atom"),(0,n.m7)("Implements"),(0,n.p_)("Directive"),(0,n.p)("{"),(0,n.p_)("FieldDef"),(0,n.p)("}"),p("implements"),(0,n.p_)("NamedType",(0,n.p)("&")),u("string-2"),p("schema"),(0,n.p_)("Directive"),(0,n.p)("{"),(0,n.p_)("OperationTypeDef"),(0,n.p)("}"),u("keyword"),(0,n.p)(":"),u("atom"),p("scalar"),u("atom"),(0,n.p_)("Directive"),p("type"),u("atom"),(0,n.m7)("Implements"),(0,n.p_)("Directive"),(0,n.p)("{"),(0,n.p_)("FieldDef"),(0,n.p)("}"),u("property"),(0,n.m7)("ArgumentsDef"),(0,n.p)(":"),(0,n.p_)("Directive"),(0,n.p)("("),(0,n.p_)("InputValueDef"),(0,n.p)(")"),u("attribute"),(0,n.p)(":"),(0,n.m7)("DefaultValue"),(0,n.p_)("Directive"),p("union"),u("atom"),(0,n.p_)("Directive"),(0,n.p)("="),(0,n.p_)("UnionMember",(0,n.p)("|")),p("enum"),u("atom"),(0,n.p_)("Directive"),(0,n.p)("{"),(0,n.p_)("EnumValueDef"),(0,n.p)("}"),u("string-2"),(0,n.p_)("Directive"),p("input"),u("atom"),(0,n.p_)("Directive"),(0,n.p)("{"),(0,n.p_)("InputValueDef"),(0,n.p)("}"),p("extend"),r.b.SCHEMA_EXTENSION,r.b.SCALAR_TYPE_EXTENSION,r.b.OBJECT_TYPE_EXTENSION,r.b.INTERFACE_TYPE_EXTENSION,r.b.UNION_TYPE_EXTENSION,r.b.ENUM_TYPE_EXTENSION,r.b.INPUT_OBJECT_TYPE_EXTENSION;var a;function p(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function u(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}},24815:(e,t,i)=>{"use strict";i.d(t,{qx:()=>n.q});i(59968),i(83759),i(80587),i(44323);var n=i(5798)},83759:(e,t,i)=>{"use strict";i(59968)},5355:e=>{var t="undefined"!==typeof requestIdleCallback;e.exports=t?requestIdleCallback:function(e){return setTimeout((function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},e.exports.cancelIdleCallback=t?cancelIdleCallback:clearTimeout}}]);
|