mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2024-11-07 17:04:32 +01:00
393 lines
939 KiB
JavaScript
393 lines
939 KiB
JavaScript
|
|
||
|
/*!
|
||
|
* Webflow: Front-end site library
|
||
|
* @license MIT
|
||
|
* Inline scripts may access the api using an async handler:
|
||
|
* var Webflow = Webflow || [];
|
||
|
* Webflow.push(readyFunction);
|
||
|
*/
|
||
|
|
||
|
(()=>{var x_=Object.defineProperty;var _V=Object.getOwnPropertyDescriptor;var AV=Object.getOwnPropertyNames;var mV=Object.prototype.hasOwnProperty;var Y_=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Zf=(e,t)=>()=>(e&&(t=e(e=0)),t);var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var OV=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of AV(t))!mV.call(e,i)&&i!==r&&x_(e,i,{get:()=>t[i],enumerable:!(n=_V(t,i))||n.enumerable});return e};var bV=e=>OV(x_({},"__esModule",{value:!0}),e);var ed=p(()=>{window.tram=function(e){function t(E,v){var g=new ee.Bare;return g.init(E,v)}function r(E){return E.replace(/[A-Z]/g,function(v){return"-"+v.toLowerCase()})}function n(E){var v=parseInt(E.slice(1),16),g=v>>16&255,R=v>>8&255,w=255&v;return[g,R,w]}function i(E,v,g){return"#"+(1<<24|E<<16|v<<8|g).toString(16).slice(1)}function a(){}function o(E,v){f("Type warning: Expected: ["+E+"] Got: ["+typeof v+"] "+v)}function c(E,v,g){f("Units do not match ["+E+"]: "+v+", "+g)}function s(E,v,g){if(v!==void 0&&(g=v),E===void 0)return g;var R=g;return ye.test(E)||!ke.test(E)?R=parseInt(E,10):ke.test(E)&&(R=1e3*parseFloat(E)),0>R&&(R=0),R===R?R:g}function f(E){De.debug&&window&&window.console.warn(E)}function M(E){for(var v=-1,g=E?E.length:0,R=[];++v<g;){var w=E[v];w&&R.push(w)}return R}var d=function(E,v,g){function R(be){return typeof be=="object"}function w(be){return typeof be=="function"}function B(){}function pe(be,qe){function he(){var Fe=new Te;return w(Fe.init)&&Fe.init.apply(Fe,arguments),Fe}function Te(){}qe===g&&(qe=be,be=Object),he.Bare=Te;var Ne,He=B[E]=be[E],it=Te[E]=he[E]=new B;return it.constructor=he,he.mixin=function(Fe){return Te[E]=he[E]=pe(he,Fe)[E],he},he.open=function(Fe){if(Ne={},w(Fe)?Ne=Fe.call(he,it,He,he,be):R(Fe)&&(Ne=Fe),R(Ne))for(var Ue in Ne)v.call(Ne,Ue)&&(it[Ue]=Ne[Ue]);return w(it.init)||(it.init=be),he},he.open(qe)}return pe}("prototype",{}.hasOwnProperty),A={ease:["ease",function(E,v,g,R){var w=(E/=R)*E,B=w*E;return v+g*(-2.75*B*w+11*w*w+-15.5*B+8*w+.25*E)}],"ease-in":["ease-in",function(E,v,g,R){var w=(E/=R)*E,B=w*E;return v+g*(-1*B*w+3*w*w+-3*B+2*w)}],"ease-out":["ease-out",function(E,v,g,R){var w=(E/=R)*E,B=w*E;return v+g*(.3*B*w+-1.6*w*w+2.2*B+-1.8*w+1.9*E)}],"ease-in-out":["ease-in-out",function(E,v,g,R){var w=(E/=R)*E,B=w*E;return v+g*(2*B*w+-5*w*w+2*B+2*w)}],linear:["linear",function(E,v,g,R){return g*E/R+v}],"ease-in-quad":["cubic-bezier(0.550, 0.085, 0.680, 0.530)",function(E,v,g,R){return g*(E/=R)*E+v}],"ease-out-quad":["cubic-bezier(0.250, 0.460, 0.450, 0.940)",function(E,v,g,R){return-g*(E/=R)*(E-2)+v}],"ease-in-out-quad":["cubic-bezier(0.455, 0.030, 0.515, 0.955)",function(E,v,g,R){return(E/=R/2)<1?g/2*E*E+v:-g/2*(--E*(E-2)-1)+v}],"ease-in-cubic":["cubic-bezier(0.550, 0.055, 0.675, 0.190)",function(E,v,g,R){return g*(E/=R)*E*E+v}],"ease-out-cubic":["cubic-bezier(0.215, 0.610, 0.355, 1)",function(E,v,g,R){return g*((E=E/R-1)*E*E+1)+v}],"ease-in-out-cubic":["cubic-bezier(0.645, 0.045, 0.355, 1)",function(E,v,g,R){return(E/=R/2)<1?g/2*E*E*E+v:g/2*((E-=2)*E*E+2)+v}],"ease-in-quart":["cubic-bezier(0.895, 0.030, 0.685, 0.220)",function(E,v,g,R){return g*(E/=R)*E*E*E+v}],"ease-out-quart":["cubic-bezier(0.165, 0.840, 0.440, 1)",function(E,v,g,R){return-g*((E=E/R-1)*E*E*E-1)+v}],"ease-in-out-quart":["cubic-bezier(0.770, 0, 0.175, 1)",function(E,v,g,R){return(E/=R/2)<1?g/2*E*E*E*E+v:-g/2*((E-=2)*E*E*E-2)+v}],"ease-in-quint":["cubic-bezier(0.755, 0.050, 0.855, 0.060)",function(E,v,g,R){return g*(E/=R)*E*E*E*E+v}],"ease-out-quint":["cubic-bezier(0.230, 1, 0.320, 1)",function(E,v,g,R){return g*((E=E/R-1)*E*E*E*E+1)+v}],"ease-in-out-quint":["cubic-bezier(0.860, 0, 0.070, 1)",function(E,v,g,R){return(E/=R/2)<1?g/2*E*E*E*E*E+v:g/2*((E-=2)*E*E*E*E+2)+v}],"ease-in-sine":["cubic-bezier(0.470, 0, 0.745, 0.715)",function(E,v,g,R){return-g*Math.cos(E/R*(Math.PI/2))+g+v}],"ease-out-sin
|
||
|
((__t=(`+oe+`))==null?'':_.escape(__t))+
|
||
|
'`:x?C+=`'+
|
||
|
((__t=(`+x+`))==null?'':__t)+
|
||
|
'`:de&&(C+=`';
|
||
|
`+de+`
|
||
|
__p+='`),ee}),C+=`';
|
||
|
`;var F=le.variable;if(F){if(!Q.test(F))throw new Error("variable is not a bare identifier: "+F)}else C=`with(obj||{}){
|
||
|
`+C+`}
|
||
|
`,F="obj";C=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
||
|
`+C+`return __p;
|
||
|
`;var Y;try{Y=new Function(le.variable||"obj","_",C)}catch(ee){throw ee.source=C,ee}var Z=function(ee){return Y.call(this,ee,e)};return Z.source="function("+F+`){
|
||
|
`+C+"}",Z},e}()});var dr=p((a5e,eA)=>{var st={},Z1={},ei=[],rd=window.Webflow||[],En=window.jQuery,Kr=En(window),yV=En(document),E0=En.isFunction,Hr=st._=j_(),H_=st.tram=ed()&&En.tram,wc=!1,nd=!1;H_.config.hideBackface=!1;H_.config.keepInherited=!0;st.define=function(e,t,r){Z1[e]&&Q_(Z1[e]);var n=Z1[e]=t(En,Hr,r)||{};return K_(n),n};st.require=function(e){return Z1[e]};function K_(e){st.env()&&(E0(e.design)&&Kr.on("__wf_design",e.design),E0(e.preview)&&Kr.on("__wf_preview",e.preview)),E0(e.destroy)&&Kr.on("__wf_destroy",e.destroy),e.ready&&E0(e.ready)&&SV(e)}function SV(e){if(wc){e.ready();return}Hr.contains(ei,e.ready)||ei.push(e.ready)}function Q_(e){E0(e.design)&&Kr.off("__wf_design",e.design),E0(e.preview)&&Kr.off("__wf_preview",e.preview),E0(e.destroy)&&Kr.off("__wf_destroy",e.destroy),e.ready&&E0(e.ready)&&RV(e)}function RV(e){ei=Hr.filter(ei,function(t){return t!==e.ready})}st.push=function(e){if(wc){E0(e)&&e();return}rd.push(e)};st.env=function(e){var t=window.__wf_design,r=typeof t<"u";if(!e)return r;if(e==="design")return r&&t;if(e==="preview")return r&&!t;if(e==="slug")return r&&window.__wf_slug;if(e==="editor")return window.WebflowEditor;if(e==="test")return window.__wf_test;if(e==="frame")return window!==window.top};var Pc=navigator.userAgent.toLowerCase(),$_=st.env.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,NV=st.env.chrome=/chrome/.test(Pc)&&/Google/.test(navigator.vendor)&&parseInt(Pc.match(/chrome\/(\d+)\./)[1],10),IV=st.env.ios=/(ipod|iphone|ipad)/.test(Pc);st.env.safari=/safari/.test(Pc)&&!NV&&!IV;var td;$_&&yV.on("touchstart mousedown",function(e){td=e.target});st.validClick=$_?function(e){return e===td||En.contains(e,td)}:function(){return!0};var J_="resize.webflow orientationchange.webflow load.webflow",LV="scroll.webflow "+J_;st.resize=id(Kr,J_);st.scroll=id(Kr,LV);st.redraw=id();function id(e,t){var r=[],n={};return n.up=Hr.throttle(function(i){Hr.each(r,function(a){a(i)})}),e&&t&&e.on(t,n.up),n.on=function(i){typeof i=="function"&&(Hr.contains(r,i)||r.push(i))},n.off=function(i){if(!arguments.length){r=[];return}r=Hr.filter(r,function(a){return a!==i})},n}st.location=function(e){window.location=e};st.env()&&(st.location=function(){});st.ready=function(){wc=!0,nd?CV():Hr.each(ei,V_),Hr.each(rd,V_),st.resize.up()};function V_(e){E0(e)&&e()}function CV(){nd=!1,Hr.each(Z1,K_)}var s1;st.load=function(e){s1.then(e)};function Z_(){s1&&(s1.reject(),Kr.off("load",s1.resolve)),s1=new En.Deferred,Kr.on("load",s1.resolve)}st.destroy=function(e){e=e||{},nd=!0,Kr.triggerHandler("__wf_destroy"),e.domready!=null&&(wc=e.domready),Hr.each(Z1,Q_),st.resize.off(),st.scroll.off(),st.redraw.off(),ei=[],rd=[],s1.state()==="pending"&&Z_()};En(st.ready);Z_();eA.exports=window.Webflow=st});var nA=p((o5e,rA)=>{var tA=dr();tA.define("brand",rA.exports=function(e){var t={},r=document,n=e("html"),i=e("body"),a=".w-webflow-badge",o=window.location,c=/PhantomJS/i.test(navigator.userAgent),s="fullscreenchange webkitfullscreenchange mozfullscreenchange msfullscreenchange",f;t.ready=function(){var I=n.attr("data-wf-status"),b=n.attr("data-wf-domain")||"";/\.webflow\.io$/i.test(b)&&o.hostname!==b&&(I=!0),I&&!c&&(f=f||d(),A(),setTimeout(A,500),e(r).off(s,M).on(s,M))};function M(){var I=r.fullScreen||r.mozFullScreen||r.webkitIsFullScreen||r.msFullscreenElement||!!r.webkitFullscreenElement;e(f).attr("style",I?"display: none !important;":"")}function d(){var I=e('<a class="w-webflow-badge"></a>').attr("href","https://webflow.com?utm_campaign=brandjs"),b=e("<img>").attr("src","https://d3e54v103j8qbb.cloudfront.net/img/webflow-badge-icon.f67cd735e3.svg").attr("alt","").css({marginRight:"8px",width:"16px"}),z=e("<img>").attr("src","https://d1otoma47x30pg.cloudfront.net/img/webflow-badge-text.6faa6a38cd.svg").attr("alt","Made in Webflow");return I.append(b,z),I[0]}function A(){var I=i.children(a),b=I.length&&I.get(0)===f,z=tA.env("editor");if(b){z&&I.remove();return}I.length&&I.remove(),z||i.append(f)}return t})});var aA=p((c5e,iA)=>{var qV=dr();qV.define("focus-visible",iA.exports=functi
|
||
|
Use variables instead of inline arguments to overcome this limitation.`)}function z(W,H){var m=null;W.directives&&(m={},W.directives.forEach(function(X){m[X.name.value]={},X.arguments&&X.arguments.forEach(function(ae){var ge=ae.name,Le=ae.value;return b(m[X.name.value],ge,Le,H)})}));var q=null;return W.arguments&&W.arguments.length&&(q={},W.arguments.forEach(function(X){var ae=X.name,ge=X.value;return b(q,ae,ge,H)})),y(W.name.value,q,m)}var U=["connection","include","skip","client","rest","export"];function y(W,H,m){if(m&&m.connection&&m.connection.key)if(m.connection.filter&&m.connection.filter.length>0){var q=m.connection.filter?m.connection.filter:[];q.sort();var X=H,ae={};return q.forEach(function(Oe){ae[Oe]=X[Oe]}),m.connection.key+"("+JSON.stringify(ae)+")"}else return m.connection.key;var ge=W;if(H){var Le=t(H);ge+="("+Le+")"}return m&&Object.keys(m).forEach(function(Oe){U.indexOf(Oe)===-1&&(m[Oe]&&Object.keys(m[Oe]).length?ge+="@"+Oe+"("+JSON.stringify(m[Oe])+")":ge+="@"+Oe)}),ge}function P(W,H){if(W.arguments&&W.arguments.length){var m={};return W.arguments.forEach(function(q){var X=q.name,ae=q.value;return b(m,X,ae,H)}),m}return null}function k(W){return W.alias?W.alias.value:W.name.value}function te(W){return W.kind==="Field"}function ie(W){return W.kind==="InlineFragment"}function J(W){return W&&W.type==="id"}function fe(W,H){return H===void 0&&(H=!1),r({type:"id",generated:H},typeof W=="string"?{id:W,typename:void 0}:W)}function K(W){return W!=null&&typeof W=="object"&&W.type==="json"}function ce(W){throw new Error("Variable nodes are not supported by valueFromNode")}function ve(W,H){switch(H===void 0&&(H=ce),W.kind){case"Variable":return H(W);case"NullValue":return null;case"IntValue":return parseInt(W.value,10);case"FloatValue":return parseFloat(W.value);case"ListValue":return W.values.map(function(ge){return ve(ge,H)});case"ObjectValue":{for(var m={},q=0,X=W.fields;q<X.length;q++){var ae=X[q];m[ae.name.value]=ve(ae.value,H)}return m}default:return W.value}}function se(W,H){if(W.directives&&W.directives.length){var m={};return W.directives.forEach(function(q){m[q.name.value]=P(q,H)}),m}return null}function Q(W,H){if(H===void 0&&(H={}),!W.directives)return!0;var m=!0;return W.directives.forEach(function(q){if(!(q.name.value!=="skip"&&q.name.value!=="include")){var X=q.arguments||[],ae=q.name.value;if(X.length!==1)throw new Error("Incorrect number of arguments for the @"+ae+" directive.");var ge=X[0];if(!ge.name||ge.name.value!=="if")throw new Error("Invalid argument for the @"+ae+" directive.");var Le=X[0].value,Oe=!1;if(!Le||Le.kind!=="BooleanValue"){if(Le.kind!=="Variable")throw new Error("Argument for the @"+ae+" directive must be a variable or a boolean value.");if(Oe=H[Le.name.value],Oe===void 0)throw new Error("Invalid variable referenced in @"+ae+" directive.")}else Oe=Le.value;ae==="skip"&&(Oe=!Oe),Oe||(m=!1)}}),m}function j(W){return!W.selectionSet||!(W.selectionSet.selections.length>0)?[W]:[W].concat(W.selectionSet.selections.map(function(H){return[H].concat(j(H))}).reduce(function(H,m){return H.concat(m)},[]))}function le(W){var H=W.definitions.filter(function(m){return m.selectionSet&&m.selectionSet.selections}).map(function(m){return j(m)}).reduce(function(m,q){return m.concat(q)},[]).filter(function(m){return m.directives&&m.directives.length>0}).map(function(m){return m.directives}).reduce(function(m,q){return m.concat(q)},[]).map(function(m){return m.name.value});return H}function L(W,H){return le(H).some(function(m){return W.indexOf(m)>-1})}var h=Object.assign||function(W){for(var H,m=1,q=arguments.length;m<q;m++){H=arguments[m];for(var X in H)Object.prototype.hasOwnProperty.call(H,X)&&(W[X]=H[X])}return W};function O(W,H){var m=H,q=[];if(W.definitions.forEach(function(ae){if(ae.kind==="OperationDefinition")throw new Error("Found a "+ae.operation+" operation"+(ae.name?" named '"+ae.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");ae.kind==="FragmentDefinition"&&q.push(ae)}),typeof m>"u"){if(q.length!==1)thro
|
||
|
|
||
|
`)+`
|
||
|
`},OperationDefinition:function(t){var r=t.operation,n=t.name,i=sr("(",We(t.variableDefinitions,", "),")"),a=We(t.directives," "),o=t.selectionSet;return!n&&!a&&!i&&r==="query"?o:We([r,We([n,i]),a,o]," ")},VariableDefinition:function(t){var r=t.variable,n=t.type,i=t.defaultValue;return r+": "+n+sr(" = ",i)},SelectionSet:function(t){var r=t.selections;return q0(r)},Field:function(t){var r=t.alias,n=t.name,i=t.arguments,a=t.directives,o=t.selectionSet;return We([sr("",r,": ")+n+sr("(",We(i,", "),")"),We(a," "),o]," ")},Argument:function(t){var r=t.name,n=t.value;return r+": "+n},FragmentSpread:function(t){var r=t.name,n=t.directives;return"..."+r+sr(" ",We(n," "))},InlineFragment:function(t){var r=t.typeCondition,n=t.directives,i=t.selectionSet;return We(["...",sr("on ",r),We(n," "),i]," ")},FragmentDefinition:function(t){var r=t.name,n=t.typeCondition,i=t.variableDefinitions,a=t.directives,o=t.selectionSet;return"fragment "+r+sr("(",We(i,", "),")")+" "+("on "+n+" "+sr("",We(a," ")," "))+o},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var n=t.value,i=t.block;return i?Vbe(n,r==="description"):JSON.stringify(n)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+We(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+We(r,", ")+"}"},ObjectField:function(t){var r=t.name,n=t.value;return r+": "+n},Directive:function(t){var r=t.name,n=t.arguments;return"@"+r+sr("(",We(n,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:function(t){var r=t.directives,n=t.operationTypes;return We(["schema",We(r," "),q0(n)]," ")},OperationTypeDefinition:function(t){var r=t.operation,n=t.type;return r+": "+n},ScalarTypeDefinition:C0(function(e){var t=e.name,r=e.directives;return We(["scalar",t,We(r," ")]," ")}),ObjectTypeDefinition:C0(function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return We(["type",t,sr("implements ",We(r," & ")),We(n," "),q0(i)]," ")}),FieldDefinition:C0(function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+sr("(",We(r,", "),")")+": "+n+sr(" ",We(i," "))}),InputValueDefinition:C0(function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return We([t+": "+r,sr("= ",n),We(i," ")]," ")}),InterfaceTypeDefinition:C0(function(e){var t=e.name,r=e.directives,n=e.fields;return We(["interface",t,We(r," "),q0(n)]," ")}),UnionTypeDefinition:C0(function(e){var t=e.name,r=e.directives,n=e.types;return We(["union",t,We(r," "),n&&n.length!==0?"= "+We(n," | "):""]," ")}),EnumTypeDefinition:C0(function(e){var t=e.name,r=e.directives,n=e.values;return We(["enum",t,We(r," "),q0(n)]," ")}),EnumValueDefinition:C0(function(e){var t=e.name,r=e.directives;return We([t,We(r," ")]," ")}),InputObjectTypeDefinition:C0(function(e){var t=e.name,r=e.directives,n=e.fields;return We(["input",t,We(r," "),q0(n)]," ")}),ScalarTypeExtension:function(t){var r=t.name,n=t.directives;return We(["extend scalar",r,We(n," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,n=t.interfaces,i=t.directives,a=t.fields;return We(["extend type",r,sr("implements ",We(n," & ")),We(i," "),q0(a)]," ")},InterfaceTypeExtension:function(t){var r=t.name,n=t.directives,i=t.fields;return We(["extend interface",r,We(n," "),q0(i)]," ")},UnionTypeExtension:function(t){var r=t.name,n=t.directives,i=t.types;return We(["extend union",r,We(n," "),i&&i.length!==0?"= "+We(i," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,n=t.directives,i=t.values;return We(["extend enum",r,We(n," "),q0(i)]," ")},InputObjectTypeExtension:function(t){var r=t.name,n=t.directives,i=t.fields;return We(["extend input",r,We(n," "),q0(i)]," ")},DirectiveDefinition:C0(function(e){var t=e.name,r=e.arguments,n=e.locations;return"directive @"+t+sr("(",We(r,", "),")")+" on "+We(n," | ")})};function C0(e){return function(t){retu
|
||
|
`)}}function We(e,t){return e?e.filter(function(r){return r}).join(t||""):""}function q0(e){return e&&e.length!==0?`{
|
||
|
`+hw(We(e,`
|
||
|
`))+`
|
||
|
}`:""}function sr(e,t,r){return t?e+t+(r||""):""}function hw(e){return e&&" "+e.replace(/\n/g,`
|
||
|
`)}function Vbe(e,t){var r=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(`
|
||
|
`)===-1?'"""'+r.replace(/"$/,`"
|
||
|
`)+'"""':`"""
|
||
|
`+(t?r:hw(r))+`
|
||
|
"""`}});var Ki=p((Qs,vw)=>{(function(e,t){typeof Qs=="object"&&typeof vw<"u"?t(Qs,iv(),Mw(),Ho()):typeof define=="function"&&define.amd?define(["exports","apollo-utilities","zen-observable-ts","graphql/language/printer"],t):t((e.apolloLink=e.apolloLink||{},e.apolloLink.core={}),e.apollo.utilities,e.apolloLink.zenObservable,e.printer)})(Qs,function(e,t,r,n){"use strict";r=r&&r.hasOwnProperty("default")?r.default:r;var i=function(){var K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ve){ce.__proto__=ve}||function(ce,ve){for(var se in ve)ve.hasOwnProperty(se)&&(ce[se]=ve[se])};return function(ce,ve){K(ce,ve);function se(){this.constructor=ce}ce.prototype=ve===null?Object.create(ve):(se.prototype=ve.prototype,new se)}}(),a=Object.assign||function(K){for(var ce,ve=1,se=arguments.length;ve<se;ve++){ce=arguments[ve];for(var Q in ce)Object.prototype.hasOwnProperty.call(ce,Q)&&(K[Q]=ce[Q])}return K};function o(K){for(var ce=["query","operationName","variables","extensions","context"],ve=0,se=Object.keys(K);ve<se.length;ve++){var Q=se[ve];if(ce.indexOf(Q)<0)throw new Error("illegal argument: "+Q)}return K}var c=function(K){i(ce,K);function ce(ve,se){var Q=K.call(this,ve)||this;return Q.link=se,Q}return ce}(Error);function s(K){return K.request.length<=1}function f(K){var ce=!1;return new Promise(function(ve,se){K.subscribe({next:function(Q){ce?console.warn("Promise Wrapper does not support multiple results from Observable"):(ce=!0,ve(Q))},error:se})})}var M=f;function d(K){return new r(function(ce){K.then(function(ve){ce.next(ve),ce.complete()}).catch(ce.error.bind(ce))})}function A(K){return new r(function(ce){ce.error(K)})}function I(K){var ce={variables:K.variables||{},extensions:K.extensions||{},operationName:K.operationName,query:K.query};return ce.operationName||(ce.operationName=typeof ce.query!="string"?t.getOperationName(ce.query):""),ce}function b(K,ce){var ve=a({},K),se=function(j){typeof j=="function"?ve=a({},ve,j(ve)):ve=a({},ve,j)},Q=function(){return a({},ve)};return Object.defineProperty(ce,"setContext",{enumerable:!1,value:se}),Object.defineProperty(ce,"getContext",{enumerable:!1,value:Q}),Object.defineProperty(ce,"toKey",{enumerable:!1,value:function(){return z(ce)}}),ce}function z(K){return n.print(K.query)+"|"+JSON.stringify(K.variables)+"|"+K.operationName}var U=function(K,ce){return ce?ce(K):r.of()},y=function(K){return typeof K=="function"?new J(K):K},P=function(){return new J(function(K,ce){return r.of()})},k=function(K){return K.length===0?P():K.map(y).reduce(function(ce,ve){return ce.concat(ve)})},te=function(K,ce,ve){ve===void 0&&(ve=new J(U));var se=y(ce),Q=y(ve);return s(se)&&s(Q)?new J(function(j){return K(j)?se.request(j)||r.of():Q.request(j)||r.of()}):new J(function(j,le){return K(j)?se.request(j,le)||r.of():Q.request(j,le)||r.of()})},ie=function(K,ce){var ve=y(K);if(s(ve))return console.warn(new c("You are calling concat on a terminating link, which will have no effect",ve)),ve;var se=y(ce);return s(se)?new J(function(Q){return ve.request(Q,function(j){return se.request(j)||r.of()})||r.of()}):new J(function(Q,j){return ve.request(Q,function(le){return se.request(le,j)||r.of()})||r.of()})},J=function(){function K(ce){ce&&(this.request=ce)}return K.prototype.split=function(ce,ve,se){return se===void 0&&(se=new K(U)),this.concat(te(ce,ve,se))},K.prototype.concat=function(ce){return ie(this,ce)},K.prototype.request=function(ce,ve){throw new Error("request is not implemented")},K.empty=P,K.from=k,K.split=te,K.execute=fe,K}();function fe(K,ce){return K.request(b(ce.context,I(o(ce))))||r.of()}e.Observable=r,e.createOperation=b,e.makePromise=M,e.toPromise=f,e.fromPromise=d,e.fromError=A,e.empty=P,e.from=k,e.split=te,e.concat=ie,e.ApolloLink=J,e.execute=fe,Object.defineProperty(e,"__esModule",{value:!0})})});var _w=p(($s,Ew)=>{(function(e,t){typeof $s=="object"&&typeof Ew<"u"?t($s,Ki()):typeof define=="function"&&define.amd?define(["exports","apollo-link"],t):t((e.apolloLink=e.apolloLink||{},e.apolloLink.dedup={}),e.apolloLink.core)})($s,function(e,t){"use strict";var r=function(){var
|
||
|
`}),L.networkError&&(h+="Network error: "+L.networkError.message+`
|
||
|
`),h=h.replace(/\n$/,""),h},A=function(L){f(h,L);function h(O){var C=O.graphQLErrors,F=O.networkError,Y=O.errorMessage,Z=O.extraInfo,ee=L.call(this,Y)||this;return ee.graphQLErrors=C||[],ee.networkError=F||null,Y?ee.message=Y:ee.message=d(ee),ee.extraInfo=Z,ee.__proto__=h.prototype,ee}return h}(Error);(function(L){L[L.normal=1]="normal",L[L.refetch=2]="refetch",L[L.poll=3]="poll"})(e.FetchType||(e.FetchType={}));var I=function(){var L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,O){h.__proto__=O}||function(h,O){for(var C in O)O.hasOwnProperty(C)&&(h[C]=O[C])};return function(h,O){L(h,O);function C(){this.constructor=h}h.prototype=O===null?Object.create(O):(C.prototype=O.prototype,new C)}}(),b=Object.assign||function(L){for(var h,O=1,C=arguments.length;O<C;O++){h=arguments[O];for(var F in h)Object.prototype.hasOwnProperty.call(h,F)&&(L[F]=h[F])}return L},z=function(L,h){return h===void 0&&(h="none"),L&&(L.graphQLErrors&&L.graphQLErrors.length>0&&h==="none"||L.networkError)},U=function(L){I(h,L);function h(O){var C=O.scheduler,F=O.options,Y=O.shouldSubscribe,Z=Y===void 0?!0:Y,ee=L.call(this,function(oe){return ee.onSubscribe(oe)})||this;return ee.isCurrentlyPolling=!1,ee.isTornDown=!1,ee.options=F,ee.variables=F.variables||{},ee.queryId=C.queryManager.generateQueryId(),ee.shouldSubscribe=Z,ee.scheduler=C,ee.queryManager=C.queryManager,ee.observers=[],ee.subscriptionHandles=[],ee}return h.prototype.result=function(){var O=this;return new Promise(function(C,F){var Y,Z={next:function(ee){C(ee),O.observers.some(function(oe){return oe!==Z})||O.queryManager.removeQuery(O.queryId),setTimeout(function(){Y.unsubscribe()},0)},error:function(ee){F(ee)}};Y=O.subscribe(Z)})},h.prototype.currentResult=function(){if(this.isTornDown)return{data:this.lastError?{}:this.lastResult?this.lastResult.data:{},error:this.lastError,loading:!1,networkStatus:e.NetworkStatus.error};var O=this.queryManager.queryStore.get(this.queryId);if(z(O,this.options.errorPolicy))return{data:{},loading:!1,networkStatus:O.networkStatus,error:new A({graphQLErrors:O.graphQLErrors,networkError:O.networkError})};var C=this.queryManager.getCurrentQueryResult(this),F=C.data,Y=C.partial,Z=!O||O.networkStatus===e.NetworkStatus.loading,ee=this.options.fetchPolicy==="network-only"&&Z||Y&&this.options.fetchPolicy!=="cache-only",oe;O?oe=O.networkStatus:oe=ee?e.NetworkStatus.loading:e.NetworkStatus.ready;var x={data:F,loading:o(oe),networkStatus:oe};if(O&&O.graphQLErrors&&this.options.errorPolicy==="all"&&(x.errors=O.graphQLErrors),!Y){var de=!1;this.lastResult=b({},x,{stale:de})}return b({},x,{partial:Y})},h.prototype.getLastResult=function(){return this.lastResult},h.prototype.getLastError=function(){return this.lastError},h.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastError,this.isTornDown=!1},h.prototype.refetch=function(O){var C=this.options.fetchPolicy;if(C==="cache-only")return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));n.isEqual(this.variables,O)||(this.variables=Object.assign({},this.variables,O)),n.isEqual(this.options.variables,this.variables)||(this.options.variables=Object.assign({},this.options.variables,this.variables));var F=C==="network-only"||C==="no-cache",Y=b({},this.options,{fetchPolicy:F?C:"network-only"});return this.queryManager.fetchQuery(this.queryId,Y,e.FetchType.refetch).then(function(Z){return n.maybeDeepFreeze(Z)})},h.prototype.fetchMore=function(O){var C=this;if(!O.updateQuery)throw new Error("updateQuery option is required. This function defines how to update the query data with the new results.");var F;return Promise.resolve().then(function(){var Y=C.queryManager.generateQueryId();return O.query?F=O:F=b({},C.options,O,{variables:Object.assign({},C.variables,O.variables)}),F.fetchPolicy="network-only",C.queryManager.fetchQuery(Y,F,e.FetchType.normal,C.queryId)}).then(function(Y){return C.updateQuery(function(Z){return O.updateQuery(Z,{fetchMoreResult:Y.data,variables:F.variables})}),Y})},h.prototype.subscribeToMore=function(O){var
|
||
|
In order to initialize Apollo Client, you must specify link & cache properties on the config object.
|
||
|
This is part of the required upgrade when migrating from Apollo Client 1.0 to Apollo Client 2.0.
|
||
|
For more information, please visit:
|
||
|
https://www.apollographql.com/docs/react/basics/setup.html
|
||
|
to help you get started.
|
||
|
`);this.link=j.concat(C),this.cache=F,this.store=new ce(F),this.disableNetworkFetches=Z||oe>0,this.queryDeduplication=Me,this.ssrMode=Z,this.defaultOptions=ue||{},oe&&setTimeout(function(){return O.disableNetworkFetches=!1},oe),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);var Ce=!n.isProduction()&&typeof window<"u"&&!window.__APOLLO_CLIENT__;(typeof x>"u"?Ce:x&&typeof window<"u")&&(window.__APOLLO_CLIENT__=this),!Q&&!n.isProduction()&&(Q=!0,typeof window<"u"&&window.document&&window.top===window.self&&typeof window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__>"u"&&window.navigator&&window.navigator.userAgent.indexOf("Chrome")>-1&&console.debug("Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm")),this.version=ve}return L.prototype.watchQuery=function(h){return this.initQueryManager(),this.defaultOptions.watchQuery&&(h=se({},this.defaultOptions.watchQuery,h)),this.disableNetworkFetches&&(h.fetchPolicy==="network-only"||h.fetchPolicy==="cache-and-network")&&(h=se({},h,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(h)},L.prototype.query=function(h){if(this.initQueryManager(),this.defaultOptions.query&&(h=se({},this.defaultOptions.query,h)),h.fetchPolicy==="cache-and-network")throw new Error("cache-and-network fetchPolicy can only be used with watchQuery");return this.disableNetworkFetches&&h.fetchPolicy==="network-only"&&(h=se({},h,{fetchPolicy:"cache-first"})),this.queryManager.query(h)},L.prototype.mutate=function(h){return this.initQueryManager(),this.defaultOptions.mutate&&(h=se({},this.defaultOptions.mutate,h)),this.queryManager.mutate(h)},L.prototype.subscribe=function(h){return this.initQueryManager(),this.queryManager.startGraphQLSubscription(h)},L.prototype.readQuery=function(h){return this.initProxy().readQuery(h)},L.prototype.readFragment=function(h){return this.initProxy().readFragment(h)},L.prototype.writeQuery=function(h){var O=this.initProxy().writeQuery(h);return this.queryManager.broadcastQueries(),O},L.prototype.writeFragment=function(h){var O=this.initProxy().writeFragment(h);return this.queryManager.broadcastQueries(),O},L.prototype.writeData=function(h){var O=this.initProxy().writeData(h);return this.queryManager.broadcastQueries(),O},L.prototype.__actionHookForDevTools=function(h){this.devToolsHookCb=h},L.prototype.__requestRaw=function(h){return t.execute(this.link,h)},L.prototype.initQueryManager=function(){var h=this;this.queryManager||(this.queryManager=new K({link:this.link,store:this.store,queryDeduplication:this.queryDeduplication,ssrMode:this.ssrMode,onBroadcast:function(){h.devToolsHookCb&&h.devToolsHookCb({action:{},state:{queries:h.queryManager.queryStore.getStore(),mutations:h.queryManager.mutationStore.getStore()},dataWithOptimisticResults:h.cache.extract(!0)})}}))},L.prototype.resetStore=function(){var h=this;return Promise.resolve().then(function(){return h.queryManager?h.queryManager.clearStore():Promise.resolve(null)}).then(function(){return Promise.all(h.resetStoreCallbacks.map(function(O){return O()}))}).then(function(){return h.queryManager&&h.queryManager.reFetchObservableQueries?h.queryManager.reFetchObservableQueries():Promise.resolve(null)})},L.prototype.onResetStore=function(h){var O=this;return this.resetStoreCallbacks.push(h),function(){O.resetStoreCallbacks=O.resetStoreCallbacks.filter(function(C){return C!==h})}},L.prototype.reFetchObservableQueries=function(h){return this.queryManager?this.queryManager.reFetchObservableQueries(h):Promise.resolve(null)},L.prototype.extract=function(h){return this.initProxy().extract(h)},L.prototype.restore=function(h){return this.initProxy().restore(h)},L.prototype.initProxy=function(){return this.proxy||(this.initQueryManager(),this.proxy=this.cache),this.proxy},L}();e.printAST=i.print,e.ApolloClient=le,e.default=le,e.ObservableQuery=U,e.Apol
|
||
|
fetch is not found globally and no fetcher passed, to fix pass a fetch for
|
||
|
your environment like https://www.npmjs.com/package/`+z+`.
|
||
|
|
||
|
For example:
|
||
|
import fetch from '`+z+`';
|
||
|
import { createHttpLink } from 'apollo-link-http';
|
||
|
|
||
|
const link = createHttpLink({ uri: '/graphql', fetch: fetch });`)}},M=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var b=new AbortController,z=b.signal;return{controller:b,signal:z}},d=function(b,z){for(var U=[],y=2;y<arguments.length;y++)U[y-2]=arguments[y];var P=r({},z.options,{headers:z.headers,credentials:z.credentials}),k=z.http;U.forEach(function(ce){P=r({},P,ce.options,{headers:r({},P.headers,ce.headers)}),ce.credentials&&(P.credentials=ce.credentials),k=r({},k,ce.http)});var te=b.operationName,ie=b.extensions,J=b.variables,fe=b.query,K={operationName:te,variables:J};return k.includeExtensions&&(K.extensions=ie),k.includeQuery&&(K.query=t.print(fe)),{options:P,body:K}},A=function(b,z){var U;try{U=JSON.stringify(b)}catch(P){var y=new Error("Network request failed. "+z+" is not serializable: "+P.message);throw y.parseError=P,y}return U},I=function(b,z){var U=b.getContext(),y=U.uri;return y||(typeof z=="function"?z(b):z||"/graphql")};e.fallbackHttpConfig=o,e.throwServerError=c,e.parseAndCheckHttpResponse=s,e.checkFetcher=f,e.createSignalIfSupported=M,e.selectHttpOptionsAndBody=d,e.serializeFetchParameter=A,e.selectURI=I,Object.defineProperty(e,"__esModule",{value:!0})})});var Tw=p((el,bw)=>{(function(e,t){typeof el=="object"&&typeof bw<"u"?t(el,Ki()):typeof define=="function"&&define.amd?define(["exports","apollo-link"],t):t((e.apolloLink=e.apolloLink||{},e.apolloLink.batch={}),e.apolloLink.core)})(el,function(e,t){"use strict";var r=Object.assign||function(o){for(var c,s=1,f=arguments.length;s<f;s++){c=arguments[s];for(var M in c)Object.prototype.hasOwnProperty.call(c,M)&&(o[M]=c[M])}return o},n=function(){function o(c){var s=c.batchInterval,f=c.batchMax,M=f===void 0?0:f,d=c.batchHandler,A=c.batchKey,I=A===void 0?function(){return""}:A;this.queuedRequests=new Map,this.batchInterval=s,this.batchMax=M,this.batchHandler=d,this.batchKey=I}return o.prototype.enqueueRequest=function(c){var s=this,f=r({},c),M=!1,d=this.batchKey(c.operation);return f.observable||(f.observable=new t.Observable(function(A){s.queuedRequests.has(d)||s.queuedRequests.set(d,[]),M||(s.queuedRequests.get(d).push(f),M=!0),f.next=f.next||[],A.next&&f.next.push(A.next.bind(A)),f.error=f.error||[],A.error&&f.error.push(A.error.bind(A)),f.complete=f.complete||[],A.complete&&f.complete.push(A.complete.bind(A)),s.queuedRequests.get(d).length===1&&s.scheduleQueueConsumption(d),s.queuedRequests.get(d).length===s.batchMax&&s.consumeQueue(d)})),f.observable},o.prototype.consumeQueue=function(c){c===void 0&&(c="");var s=this.queuedRequests.get(c);if(s){this.queuedRequests.delete(c);var f=s.map(function(y){return y.operation}),M=s.map(function(y){return y.forward}),d=[],A=[],I=[],b=[];s.forEach(function(y,P){d.push(y.observable),A.push(y.next),I.push(y.error),b.push(y.complete)});var z=this.batchHandler(f,M)||t.Observable.of(),U=function(y){I.forEach(function(P){P&&P.forEach(function(k){return k(y)})})};return z.subscribe({next:function(y){if(Array.isArray(y)||(y=[y]),A.length!==y.length){var P=new Error("server returned results with length "+y.length+", expected length of "+A.length);return P.result=y,U(P)}y.forEach(function(k,te){f[te].setContext({response:k}),A[te]&&A[te].forEach(function(ie){return ie(k)})})},error:U,complete:function(){b.forEach(function(y){y&&y.forEach(function(P){return P()})})}}),d}},o.prototype.scheduleQueueConsumption=function(c){var s=this;c===void 0&&(c=""),setTimeout(function(){s.queuedRequests.get(c)&&s.queuedRequests.get(c).length&&s.consumeQueue(c)},this.batchInterval)},o}(),i=function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var f in s)s.hasOwnProperty(f)&&(c[f]=s[f])};return function(c,s){o(c,s);function f(){this.constructor=c}c.prototype=s===null?Object.create(s):(f.prototype=s.prototype,new f)}}(),a=function(o){i(c,o);function c(s){s===void 0&&(s={});var f=o.call(this)||this,M=s.batchInterval,d=M===void 0?10:M,A=s.batchMax,I=A===void 0?0:A,b=s.batchHandler,z=b===void 0?function(){return null}:b,U=s.batchKey,y=U===void 0?functio
|
||
|
true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.
|
||
|
Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client
|
||
|
can accurately match fragments.`),console.warn("Could not find __typename on Fragment ",g,w),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),i.isTest()||(d=!0)),"heuristic"):!1},E}(),I=function(){function E(v){v&&v.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(v.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return E.prototype.match=function(v,g,R){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var w=R.store.get(v.id);if(!w)return!1;if(!w.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(w));if(w.__typename===g)return!0;var B=this.possibleTypesMap[g];return!!(B&&B.indexOf(w.__typename)>-1)},E.prototype.parseIntrospectionResult=function(v){var g={};return v.__schema.types.forEach(function(R){(R.kind==="UNION"||R.kind==="INTERFACE")&&(g[R.name]=R.possibleTypes.map(function(w){return w.name}))}),g},E}(),b=n4().wrap,z=function(){function E(){this.children=null,this.key=null}return E.prototype.lookup=function(){for(var v=[],g=0;g<arguments.length;g++)v[g]=arguments[g];return this.lookupArray(v)},E.prototype.lookupArray=function(v){var g=this;return v.forEach(function(R){g=g.getOrCreate(R)}),g.key||(g.key=Object.create(null))},E.prototype.getOrCreate=function(v){var g=this.children||(this.children=new Map),R=g.get(v);return R||g.set(v,R=new E),R},E}(),U=Object.prototype.hasOwnProperty,y=function(){function E(v){v===void 0&&(v=Object.create(null));var g=this;this.data=v,this.depend=b(function(R){return g.data[R]},{disposable:!0,makeCacheKey:function(R){return R}})}return E.prototype.toObject=function(){return this.data},E.prototype.get=function(v){return this.depend(v),this.data[v]},E.prototype.set=function(v,g){var R=this.data[v];g!==R&&(this.data[v]=g,this.depend.dirty(v))},E.prototype.delete=function(v){U.call(this.data,v)&&(delete this.data[v],this.depend.dirty(v))},E.prototype.clear=function(){this.replace(null)},E.prototype.replace=function(v){var g=this;v?(Object.keys(v).forEach(function(R){g.set(R,v[R])}),Object.keys(this.data).forEach(function(R){U.call(v,R)||g.delete(R)})):Object.keys(this.data).forEach(function(R){g.delete(R)})},E}();function P(E){return new y(E)}var k=function(){return k=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},k.apply(this,arguments)},te=Object.create(null),ie=Object.prototype.toString,J=function(){function E(v){this.cacheKeyRoot=v,this.perQueryKeyMakers=new Map}return E.prototype.forQuery=function(v){return this.perQueryKeyMakers.has(v)||this.perQueryKeyMakers.set(v,new fe(this.cacheKeyRoot,v)),this.perQueryKeyMakers.get(v)},E}(),fe=function(){function E(v,g){this.cacheKeyRoot=v,this.query=g,this.cache=new Map,this.lookupArray=this.cacheMethod(this.lookupArray),this.lookupObject=this.cacheMethod(this.lookupObject),this.lookupFragmentSpread=this.cacheMethod(this.lookupFragmentSpread)}return E.prototype.cacheMethod=function(v){var g=this;return function(R){if(g.cache.has(R)){var w=g.cache.get(R);if(w===te)throw new Error("QueryKeyMaker cannot handle circular query structures");return w}g.cache.set(R,te);try{var B=v.call(g,R);return g.cache.set(R,B),B}catch(pe){throw g.cache.delete(R),pe}}},E.prototype.lookupQuery=function(v){return this.lookupObject(v)},E.prototype.lookupSelectionSet=function(v){return this.lookupObject(v)},E.prototype.lookupFragmentSpread=function(v){var g=v.name.value,R=null;return this.query.definitions.some(function(w){return w.kind==="FragmentDefinition"&&w.name.value===g?(R=w,!0):!1}),this.lookupObject(k({},v,{fragment:R}))},E.prototype.lookupAny=function(v){return Array.isArray(v)?this.lookupArray(v):typeof v=="object"&&v!==null?v.kind==="FragmentSpread"?this.lookupFragmentSpread(v):this.lookupObject(v):
|
||
|
`+n.print(v));return g.message+=`
|
||
|
`+E.message,g.stack=E.stack,g}var Me=function(){function E(){}return E.prototype.writeQueryToStore=function(v){var g=v.query,R=v.result,w=v.store,B=w===void 0?P():w,pe=v.variables,be=v.dataIdFromObject,qe=v.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:R,document:g,store:B,variables:pe,dataIdFromObject:be,fragmentMatcherFunction:qe})},E.prototype.writeResultToStore=function(v){var g=v.dataId,R=v.result,w=v.document,B=v.store,pe=B===void 0?P():B,be=v.variables,qe=v.dataIdFromObject,he=v.fragmentMatcherFunction,Te=i.getOperationDefinition(w);try{return this.writeSelectionSetToStore({result:R,dataId:g,selectionSet:Te.selectionSet,context:{store:pe,processedData:{},variables:i.assign({},i.getDefaultValues(Te),be),dataIdFromObject:qe,fragmentMap:i.createFragmentMap(i.getFragmentDefinitions(w)),fragmentMatcherFunction:he}})}catch(Ne){throw de(Ne,w)}},E.prototype.writeSelectionSetToStore=function(v){var g=this,R=v.result,w=v.dataId,B=v.selectionSet,pe=v.context,be=pe.variables,qe=pe.store,he=pe.fragmentMap;return B.selections.forEach(function(Te){if(i.shouldInclude(Te,be))if(i.isField(Te)){var Ne=i.resultKeyNameFromField(Te),He=R[Ne];if(typeof He<"u")g.writeFieldToStore({dataId:w,value:He,field:Te,context:pe});else{var it=Te.directives&&Te.directives.length&&Te.directives.some(function(ze){return ze.name&&ze.name.value==="defer"});!it&&pe.fragmentMatcherFunction&&(i.isProduction()||console.warn("Missing field "+Ne+" in "+JSON.stringify(R,null,2).substring(0,100)))}}else{var Fe=void 0;if(i.isInlineFragment(Te))Fe=Te;else if(Fe=(he||{})[Te.name.value],!Fe)throw new Error("No fragment named "+Te.name.value+".");var Ue=!0;if(pe.fragmentMatcherFunction&&Fe.typeCondition){var Mt=i.toIdValue({id:"self",typename:void 0}),tt={store:new Y({self:R}),cacheRedirects:{}},ut=pe.fragmentMatcherFunction(Mt,Fe.typeCondition.name.value,tt);!i.isProduction()&&ut==="heuristic"&&console.error("WARNING: heuristic fragment matching going on!"),Ue=!!ut}Ue&&g.writeSelectionSetToStore({result:R,selectionSet:Fe.selectionSet,dataId:w,context:pe})}}),qe},E.prototype.writeFieldToStore=function(v){var g=v.field,R=v.value,w=v.dataId,B=v.context,pe,be=B.variables,qe=B.dataIdFromObject,he=B.store,Te,Ne,He=i.storeKeyNameFromField(g,be);if(!g.selectionSet||R===null)Te=R!=null&&typeof R=="object"?{type:"json",json:R}:R;else if(Array.isArray(R)){var it=w+"."+He;Te=this.processArrayValue(R,it,g.selectionSet,B)}else{var Fe=w+"."+He,Ue=!0;if(ue(Fe)||(Fe="$"+Fe),qe){var Mt=qe(R);if(Mt&&ue(Mt))throw new Error('IDs returned by dataIdFromObject cannot begin with the "$" character.');(Mt||typeof Mt=="number"&&Mt===0)&&(Fe=Mt,Ue=!1)}Ve(Fe,g,B.processedData)||this.writeSelectionSetToStore({dataId:Fe,result:R,selectionSet:g.selectionSet,context:B});var tt=R.__typename;Te=i.toIdValue({id:Fe,typename:tt},Ue),Ne=he.get(w);var ut=Ne&&Ne[He];if(ut!==Te&&i.isIdValue(ut)){var ze=ut.typename!==void 0,W=tt!==void 0,H=ze&&W&&ut.typename!==tt;if(Ue&&!ut.generated&&!H)throw new Error("Store error: the application attempted to write an object with no provided id"+(" but the store already contains an id of "+ut.id+" for this object. The selectionSet")+` that was trying to be written is:
|
||
|
`+n.print(g));if(ze&&!W)throw new Error("Store error: the application attempted to write an object with no provided typename"+(" but the store already contains an object with typename of "+ut.typename+" for the object of id "+ut.id+". The selectionSet")+` that was trying to be written is:
|
||
|
`+n.print(g));ut.generated&&(H?Ue||he.delete(ut.id):Ce(ut.id,Te.id,he))}}Ne=he.get(w),(!Ne||!i.isEqual(Te,Ne[He]))&&he.set(w,oe({},Ne,(pe={},pe[He]=Te,pe)))},E.prototype.processArrayValue=function(v,g,R,w){var B=this;return v.map(function(pe,be){if(pe===null)return null;var qe=g+"."+be;if(Array.isArray(pe))return B.processArrayValue(pe,qe,R,w);var he=!0;if(w.dataIdFromObject){var Te=w.dataIdFromObject(pe);Te&&(qe=Te,he=!1)}return Ve(qe,R,w.processedData)||B.writeSelectionSetToStore({dataId:qe,result:pe,selectionSet:R,context:w}),i.toIdValue({id:qe,typename:pe.__typename},he)})},E}();function ue(E){return E[0]==="$"}function Ce(E,v,g){if(E===v)return!1;var R=g.get(E),w=g.get(v),B=!1;Object.keys(R).forEach(function(be){var qe=R[be],he=w[be];i.isIdValue(qe)&&ue(qe.id)&&i.isIdValue(he)&&!i.isEqual(qe,he)&&Ce(qe.id,he.id,g)&&(B=!0)}),g.delete(E);var pe=oe({},R,w);return i.isEqual(pe,w)?B:(g.set(v,pe),!0)}function Ve(E,v,g){if(!g)return!1;if(g[E]){if(g[E].indexOf(v)>=0)return!0;g[E].push(v)}else g[E]=[v];return!1}var De=function(){return De=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},De.apply(this,arguments)},S=function(){function E(v){v===void 0&&(v={}),this.data=v,this.recordedData={}}return E.prototype.record=function(v){v(this);var g=this.recordedData;return this.recordedData={},g},E.prototype.toObject=function(){return De({},this.data,this.recordedData)},E.prototype.get=function(v){return this.recordedData.hasOwnProperty(v)?this.recordedData[v]:this.data[v]},E.prototype.set=function(v,g){this.get(v)!==g&&(this.recordedData[v]=g)},E.prototype.delete=function(v){this.recordedData[v]=void 0},E.prototype.clear=function(){var v=this;Object.keys(this.data).forEach(function(g){return v.delete(g)}),this.recordedData={}},E.prototype.replace=function(v){this.clear(),this.recordedData=De({},v)},E}();function G(E,v){var g=new S(E);return g.record(v)}var V=function(){var E=function(v,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,w){R.__proto__=w}||function(R,w){for(var B in w)w.hasOwnProperty(B)&&(R[B]=w[B])},E(v,g)};return function(v,g){E(v,g);function R(){this.constructor=v}v.prototype=g===null?Object.create(g):(R.prototype=g.prototype,new R)}}(),re=function(){return re=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},re.apply(this,arguments)},Ae={fragmentMatcher:new A,dataIdFromObject:ye,addTypename:!0};function ye(E){if(E.__typename){if(E.id!==void 0)return E.__typename+":"+E.id;if(E._id!==void 0)return E.__typename+":"+E._id}return null}var ke=function(E){V(v,E);function v(g){g===void 0&&(g={});var R=E.call(this)||this;R.optimistic=[],R.watches=new Set,R.typenameDocumentCache=new Map,R.cacheKeyRoot=new z,R.silenceBroadcast=!1,R.config=re({},Ae,g),R.config.customResolvers&&(console.warn("customResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating customResolvers in the next major version."),R.config.cacheRedirects=R.config.customResolvers),R.config.cacheResolvers&&(console.warn("cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version."),R.config.cacheRedirects=R.config.cacheResolvers),R.addTypename=R.config.addTypename,R.data=P(),R.storeReader=new se(R.cacheKeyRoot),R.storeWriter=new Me;var w=R,B=w.maybeBroadcastWatch;return R.maybeBroadcastWatch=b(function(pe){return B.call(R,pe)},{makeCacheKey:function(pe){if(!(pe.optimistic&&w.optimistic.length>0)&&!pe.previousResult&&w.data instanceof y)return w.cacheKeyRoot.lookup(pe.query,JSON.stringify(pe.variables))}}),R}return v.prototype.restore=function(g){return g&&this.data.replace(g),this},v.prototype.extract=function(g){if(g===void 0&&(g=!1),g&&this.optimistic.length>0){var R=this.optimistic.map(function(w){return w.data});return Object.assign.apply(Object,[{},this.data.toObject()].concat
|
||
|
|
||
|
`)+`
|
||
|
`}function L5(e,t){var r=t.line,n=e.locationOffset.line-1,i=TIe(e,t),a=r+n,o=t.column+i,c=(a-1).toString(),s=a.toString(),f=(a+1).toString(),M=f.length,d=e.body.split(/\r\n|[\n\r]/g);d[0]=YE(e.locationOffset.column-1)+d[0];var A=[e.name+" ("+a+":"+o+")",r>=2&&xE(M,c)+": "+d[r-2],xE(M,s)+": "+d[r-1],YE(2+M+o-1)+"^",r<d.length&&xE(M,f)+": "+d[r]];return A.filter(Boolean).join(`
|
||
|
`)}function TIe(e,t){return t.line===1?e.locationOffset.column-1:0}function YE(e){return Array(e+1).join(" ")}function xE(e,t){return YE(e-t.length)+t}});var Xl=p(VE=>{"use strict";Object.defineProperty(VE,"__esModule",{value:!0});VE.GraphQLError=kl;var gIe=jE(),C5=XE();function kl(e,t,r,n,i,a,o){var c=Array.isArray(t)?t.length!==0?t:void 0:t?[t]:void 0,s=r;if(!s&&c){var f=c[0];s=f&&f.loc&&f.loc.source}var M=n;!M&&c&&(M=c.reduce(function(A,I){return I.loc&&A.push(I.loc.start),A},[])),M&&M.length===0&&(M=void 0);var d=void 0;n&&r?d=n.map(function(A){return(0,C5.getLocation)(r,A)}):c&&(d=c.reduce(function(A,I){return I.loc&&A.push((0,C5.getLocation)(I.loc.source,I.loc.start)),A},[])),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:i||void 0,enumerable:!0},nodes:{value:c||void 0},source:{value:s||void 0},positions:{value:M||void 0},originalError:{value:a},extensions:{value:o||a&&a.extensions}}),a&&a.stack?Object.defineProperty(this,"stack",{value:a.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,kl):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}kl.prototype=Object.create(Error.prototype,{constructor:{value:kl},name:{value:"GraphQLError"},toString:{value:function(){return(0,gIe.printError)(this)}}})});var q5=p(HE=>{"use strict";Object.defineProperty(HE,"__esModule",{value:!0});HE.syntaxError=SIe;var yIe=Xl();function SIe(e,t,r){return new yIe.GraphQLError("Syntax Error: "+r,void 0,e,[t])}});var D5=p(KE=>{"use strict";Object.defineProperty(KE,"__esModule",{value:!0});KE.locatedError=NIe;var RIe=Xl();function NIe(e,t,r){return e&&Array.isArray(e.path)?e:new RIe.GraphQLError(e&&e.message,e&&e.nodes||t,e&&e.source,e&&e.positions,r,e)}});var z5=p(QE=>{"use strict";Object.defineProperty(QE,"__esModule",{value:!0});var IIe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};QE.formatError=DIe;var LIe=BE(),CIe=qIe(LIe);function qIe(e){return e&&e.__esModule?e:{default:e}}function DIe(e){return e||(0,CIe.default)(0,"Received null or undefined error."),IIe({},e.extensions,{message:e.message||"An unknown error occurred.",locations:e.locations,path:e.path})}});var $E=p(U1=>{"use strict";Object.defineProperty(U1,"__esModule",{value:!0});var zIe=Xl();Object.defineProperty(U1,"GraphQLError",{enumerable:!0,get:function(){return zIe.GraphQLError}});var PIe=q5();Object.defineProperty(U1,"syntaxError",{enumerable:!0,get:function(){return PIe.syntaxError}});var wIe=D5();Object.defineProperty(U1,"locatedError",{enumerable:!0,get:function(){return wIe.locatedError}});var FIe=jE();Object.defineProperty(U1,"printError",{enumerable:!0,get:function(){return FIe.printError}});var WIe=z5();Object.defineProperty(U1,"formatError",{enumerable:!0,get:function(){return WIe.formatError}})});var F5=p(JE=>{"use strict";Object.defineProperty(JE,"__esModule",{value:!0});JE.default=UIe;function UIe(e){for(var t=e.split(/\r\n|[\n\r]/g),r=null,n=1;n<t.length;n++){var i=t[n],a=w5(i);if(a<i.length&&(r===null||a<r)&&(r=a,r===0))break}if(r)for(var o=1;o<t.length;o++)t[o]=t[o].slice(r);for(;t.length>0&&P5(t[0]);)t.shift();for(;t.length>0&&P5(t[t.length-1]);)t.pop();return t.join(`
|
||
|
`)}function w5(e){for(var t=0;t<e.length&&(e[t]===" "||e[t]===" ");)t++;return t}function P5(e){return w5(e)===e.length}});var W5=p(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.TokenKind=void 0;va.createLexer=xIe;va.getTokenDesc=jIe;var B0=$E(),BIe=F5(),kIe=XIe(BIe);function XIe(e){return e&&e.__esModule?e:{default:e}}function xIe(e,t){var r=new gt(Et.SOF,0,0,0,0,null),n={source:e,options:t,lastToken:r,token:r,line:1,lineStart:0,advance:YIe,lookahead:GIe};return n}function YIe(){this.lastToken=this.token;var e=this.token=this.lookahead();return e}function GIe(){var e=this.token;if(e.kind!==Et.EOF)do e=e.next||(e.next=VIe(this,e));while(e.kind===Et.COMMENT);return e}var Et=va.TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function jIe(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind}var ot=String.prototype.charCodeAt,B1=String.prototype.slice;function gt(e,t,r,n,i,a,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=a,this.next=null}gt.prototype.toJSON=gt.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};function ha(e){return isNaN(e)?Et.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function VIe(e,t){var r=e.source,n=r.body,i=n.length,a=KIe(n,t.end,e),o=e.line,c=1+a-e.lineStart;if(a>=i)return new gt(Et.EOF,i,i,o,c,t);var s=ot.call(n,a);if(s<32&&s!==9&&s!==10&&s!==13)throw(0,B0.syntaxError)(r,a,"Cannot contain the invalid character "+ha(s)+".");switch(s){case 33:return new gt(Et.BANG,a,a+1,o,c,t);case 35:return QIe(r,a,o,c,t);case 36:return new gt(Et.DOLLAR,a,a+1,o,c,t);case 38:return new gt(Et.AMP,a,a+1,o,c,t);case 40:return new gt(Et.PAREN_L,a,a+1,o,c,t);case 41:return new gt(Et.PAREN_R,a,a+1,o,c,t);case 46:if(ot.call(n,a+1)===46&&ot.call(n,a+2)===46)return new gt(Et.SPREAD,a,a+3,o,c,t);break;case 58:return new gt(Et.COLON,a,a+1,o,c,t);case 61:return new gt(Et.EQUALS,a,a+1,o,c,t);case 64:return new gt(Et.AT,a,a+1,o,c,t);case 91:return new gt(Et.BRACKET_L,a,a+1,o,c,t);case 93:return new gt(Et.BRACKET_R,a,a+1,o,c,t);case 123:return new gt(Et.BRACE_L,a,a+1,o,c,t);case 124:return new gt(Et.PIPE,a,a+1,o,c,t);case 125:return new gt(Et.BRACE_R,a,a+1,o,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return tLe(r,a,o,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return $Ie(r,a,s,o,c,t);case 34:return ot.call(n,a+1)===34&&ot.call(n,a+2)===34?ZIe(r,a,o,c,t):JIe(r,a,o,c,t)}throw(0,B0.syntaxError)(r,a,HIe(s))}function HIe(e){return e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character "+ha(e)+"."}function KIe(e,t,r){for(var n=e.length,i=t;i<n;){var a=ot.call(e,i);if(a===9||a===32||a===44||a===65279)++i;else if(a===10)++i,++r.line,r.lineStart=i;else if(a===13)ot.call(e,i+1)===10?i+=2:++i,++r.line,r.lineStart=i;else break}return i}function QIe(e,t,r,n,i){var a=e.body,o=void 0,c=t;do o=ot.call(a,++c);while(o!==null&&(o>31||o===9));return new gt(Et.COMMENT,t,c,r,n,i,B1.call(a,t+1,c))}function $Ie(e,t,r,n,i,a){var o=e.body,c=r,s=t,f=!1;if(c===45&&(c=ot.call(o,++s)),c===48){if(c=ot.call(o,++s),c>=48&&c<=57)throw(0,B0.syntaxError)(e,s,"Invalid number, unexpected digit after 0: "+ha(c)+".")}else s=ZE(e,s,c),c=ot.call(o,s);return c===46&&(f=!0,c=ot.call(o,++s),s=ZE(e,s,c),c=ot.call(o,s)),(c===69||c===1
|
||
|
`;break;case 114:f+="\r";break;case 116:f+=" ";break;case 117:var M=eLe(ot.call(a,o+1),ot.call(a,o+2),ot.call(a,o+3),ot.call(a,o+4));if(M<0)throw(0,B0.syntaxError)(e,o,"Invalid character escape sequence: "+("\\u"+a.slice(o+1,o+5)+"."));f+=String.fromCharCode(M),o+=4;break;default:throw(0,B0.syntaxError)(e,o,"Invalid character escape sequence: \\"+String.fromCharCode(s)+".")}++o,c=o}}throw(0,B0.syntaxError)(e,o,"Unterminated string.")}function ZIe(e,t,r,n,i){for(var a=e.body,o=t+3,c=o,s=0,f="";o<a.length&&(s=ot.call(a,o))!==null;){if(s===34&&ot.call(a,o+1)===34&&ot.call(a,o+2)===34)return f+=B1.call(a,c,o),new gt(Et.BLOCK_STRING,t,o+3,r,n,i,(0,kIe.default)(f));if(s<32&&s!==9&&s!==10&&s!==13)throw(0,B0.syntaxError)(e,o,"Invalid character within String: "+ha(s)+".");s===92&&ot.call(a,o+1)===34&&ot.call(a,o+2)===34&&ot.call(a,o+3)===34?(f+=B1.call(a,c,o)+'"""',o+=4,c=o):++o}throw(0,B0.syntaxError)(e,o,"Unterminated string.")}function eLe(e,t,r,n){return xl(e)<<12|xl(t)<<8|xl(r)<<4|xl(n)}function xl(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function tLe(e,t,r,n,i){for(var a=e.body,o=a.length,c=t+1,s=0;c!==o&&(s=ot.call(a,c))!==null&&(s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++c;return new gt(Et.NAME,t,c,r,n,i,B1.call(a,t,c))}});var U5=p(e2=>{"use strict";Object.defineProperty(e2,"__esModule",{value:!0});var THe=e2.Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",VARIABLE:"Variable",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension",DIRECTIVE_DEFINITION:"DirectiveDefinition"})});var B5=p(t2=>{"use strict";Object.defineProperty(t2,"__esModule",{value:!0});var yHe=t2.DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})});var tB=p(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.parse=nLe;Qn.parseValue=iLe;Qn.parseType=aLe;Qn.parseConstValue=Gl;Qn.parseTypeReference=Aa;Qn.parseNamedType=Hn;var Yl=I5(),i2=$E(),Se=W5(),Ye=U5(),rLe=B5();function nLe(e,t){var r=typeof e=="string"?new Yl.Source(e):e;if(!(r instanceof Yl.Source))throw new TypeError("Must provide Source. Received: "+String(r));var n=(0,Se.createLexer)(r,t||{});return oLe(n)}function iLe(e,t){var r=typeof e=="string"?new Yl.Source(e):e,n=(0,Se.createLexer)(r,t||{});Nt(n,Se.TokenKind.SOF);var i=_a(n,!1);return Nt(n,Se.TokenKind.EOF),i}function aLe(e,t){var r=typeof e=="string"?new Yl.Source(e):e,n=(0,Se.createLexer)(r,t||{});Nt(n,Se.TokenKind.SOF);var
|
||
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
||
|
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`),i[ie][J]=!0):i.hasOwnProperty(ie)||(i[ie]={},i[ie][J]=!0),y[J]||(y[J]=!0,P.push(te))}else P.push(te)}return U.definitions=P,U}function f(){c=!1}function M(U,y){var P=Object.prototype.toString.call(U);if(P==="[object Array]")return U.map(function(fe){return M(fe,y)});if(P!=="[object Object]")throw new Error("Unexpected input.");y&&U.loc&&delete U.loc,U.loc&&(delete U.loc.startToken,delete U.loc.endToken);var k=Object.keys(U),te,ie,J;for(te in k)k.hasOwnProperty(te)&&(ie=U[k[te]],J=Object.prototype.toString.call(ie),(J==="[object Object]"||J==="[object Array]")&&(U[k[te]]=M(ie,!0)));return U}var d=!1;function A(U){var y=r(U);if(n[y])return n[y];var P=t(U,{experimentalFragmentVariables:d});if(!P||P.kind!=="Document")throw new Error("Not a valid GraphQL document.");return P=s(P),P=M(P,!1),n[y]=P,P}function I(){d=!0}function b(){d=!1}function z(){for(var U=Array.prototype.slice.call(arguments),y=U[0],P=typeof y=="string"?y:y[0],k=1;k<U.length;k++)U[k]&&U[k].kind&&U[k].kind==="Document"?P+=U[k].loc.source.body:P+=U[k],P+=y[k];return A(P)}z.default=z,z.resetCaches=o,z.disableFragmentWarnings=f,z.enableExperimentalFragmentVariables=I,z.disableExperimentalFragmentVariables=b,c2.exports=z})});var $n=p(Wt=>{"use strict";var kLe=at().default;Object.defineProperty(Wt,"__esModule",{value:!0});Wt.buildUpdateUsysUserDataMutation=xLe;Wt.verifyEmailMutation=Wt.updatePasswordMutation=Wt.signupMutation=Wt.resetPasswordMutation=Wt.logoutMutation=Wt.loginMutation=Wt.getUploadURLMutation=Wt.cancelSubscriptionMutation=void 0;var cn=kLe(u2()),XLe=(0,cn.default)`
|
||
|
mutation UserLoginRequest($email: String!, $authPassword: String!) {
|
||
|
usysCreateSession(email: $email, authPassword: $authPassword) {
|
||
|
user {
|
||
|
id
|
||
|
email
|
||
|
createdOn
|
||
|
emailVerified
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`;Wt.loginMutation=XLe;function xLe(e){return(0,cn.default)`
|
||
|
mutation UpdateUsysUserData(
|
||
|
$data: usys_update_user_data!
|
||
|
) {
|
||
|
usysUpdateUserData(
|
||
|
data: $data
|
||
|
) {
|
||
|
data {
|
||
|
${e.map(t=>{let r=`${t.key}: ${t.type}(id: "${t.id}")`;return t.type==="option"?r+`{
|
||
|
slug
|
||
|
}`:t.type==="fileRef"?r+`{
|
||
|
id
|
||
|
}`:r}).join(`
|
||
|
`)}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`}var YLe=(0,cn.default)`
|
||
|
mutation UserSignupRequest(
|
||
|
$email: String!
|
||
|
$name: String!
|
||
|
$acceptPrivacy: Boolean
|
||
|
$acceptCommunications: Boolean
|
||
|
$authPassword: String!
|
||
|
$inviteToken: String
|
||
|
$redirectPath: String
|
||
|
$data: usys_update_user_data
|
||
|
) {
|
||
|
usysCreateUser(
|
||
|
email: $email
|
||
|
name: $name
|
||
|
acceptPrivacy: $acceptPrivacy
|
||
|
acceptCommunications: $acceptCommunications
|
||
|
authPassword: $authPassword
|
||
|
inviteToken: $inviteToken
|
||
|
redirectPath: $redirectPath
|
||
|
data: $data
|
||
|
) {
|
||
|
user {
|
||
|
id
|
||
|
email
|
||
|
name
|
||
|
createdOn
|
||
|
emailVerified
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`;Wt.signupMutation=YLe;var GLe=(0,cn.default)`
|
||
|
mutation UserLogoutRequest {
|
||
|
usysDestroySession {
|
||
|
ok
|
||
|
}
|
||
|
}
|
||
|
`;Wt.logoutMutation=GLe;var jLe=(0,cn.default)`
|
||
|
mutation UserResetPasswordRequest($email: String!) {
|
||
|
usysResetPassword(email: $email) {
|
||
|
ok
|
||
|
}
|
||
|
}
|
||
|
`;Wt.resetPasswordMutation=jLe;var VLe=(0,cn.default)`
|
||
|
mutation UserUpdatePasswordRequest($authPassword: String!, $token: String!) {
|
||
|
usysUpdatePassword(authPassword: $authPassword, token: $token) {
|
||
|
ok
|
||
|
}
|
||
|
}
|
||
|
`;Wt.updatePasswordMutation=VLe;var HLe=(0,cn.default)`
|
||
|
mutation UserVerifyEmail($verifyToken: String!, $redirectPath: String) {
|
||
|
usysVerifyEmail(verifyToken: $verifyToken, redirectPath: $redirectPath) {
|
||
|
ok
|
||
|
}
|
||
|
}
|
||
|
`;Wt.verifyEmailMutation=HLe;var KLe=(0,cn.default)`
|
||
|
mutation CancelSiteUserSubscription($subscriptionId: String!) {
|
||
|
ecommerceCancelSubscriptionForSiteUser(subscriptionId: $subscriptionId) {
|
||
|
ok
|
||
|
}
|
||
|
}
|
||
|
`;Wt.cancelSubscriptionMutation=KLe;var QLe=(0,cn.default)`
|
||
|
mutation getUploadURL($fieldId: String!, $filename: String!) {
|
||
|
usysGetUploadURL(fieldId: $fieldId, filename: $filename) {
|
||
|
presignedPOST {
|
||
|
url
|
||
|
fields {
|
||
|
key
|
||
|
value
|
||
|
}
|
||
|
}
|
||
|
key
|
||
|
}
|
||
|
}
|
||
|
`;Wt.getUploadURLMutation=QLe});var nB=p(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.asyncLogInUser=rB;oc.handleLogInForms=aCe;oc.handleLoginRedirects=ZLe;var ma=U0(),Ar=xr(),$Le=$n();function JLe(){return Array.prototype.slice.call(document.links).filter(e=>e.getAttribute("href")==="/log-in")}function ZLe(){JLe().forEach(e=>{let r=window.location.search.match(/\?usredir=([^&]+)/g);r&&(e.href=e.href.concat(r[0]))})}var eCe=`form[${Ar.USYS_DATA_ATTRS.formType}="${Ar.USYS_FORM_TYPES.login}"]`,s2=document.querySelector(`[${Ar.USYS_DATA_ATTRS.formError}]`),tCe=Ar.logInErrorStates[Ar.LOGIN_UI_ERROR_CODES.GENERAL_ERROR].copy,rCe=document.querySelector(`.${Ar.ERROR_MSG_CLASS}`),nCe=e=>{let t;switch(e){case"UsysInvalidCredentials":t=Ar.LOGIN_UI_ERROR_CODES.INVALID_EMAIL_OR_PASSWORD;break;default:t=Ar.LOGIN_UI_ERROR_CODES.GENERAL_ERROR}return t};function iCe(){let e=document.querySelectorAll(eCe);return Array.prototype.slice.call(e).filter(t=>t instanceof HTMLFormElement)}function aCe(){iCe().forEach(e=>{e.addEventListener("submit",t=>{t.preventDefault();let r=t.currentTarget;if(!(r instanceof HTMLFormElement))return;let n=r.querySelector('input[type="submit"]'),i=(0,ma.disableSubmit)(n);(0,ma.hideElement)(s2);let a=r.querySelector(`input[${Ar.USYS_DATA_ATTRS.inputType}="${Ar.USYS_INPUT_TYPES.email}"]`),o=r.querySelector(`input[${Ar.USYS_DATA_ATTRS.inputType}="${Ar.USYS_INPUT_TYPES.password}"]`);if(!(a instanceof HTMLInputElement)||!(o instanceof HTMLInputElement))return;let c=r.getAttribute(Ar.USYS_DATA_ATTRS.redirectUrl);rB(a.value,o.value).then(()=>{(0,ma.handleRedirect)(c)}).catch(s=>{if((0,ma.resetSubmit)(n,i),s2){var f,M,d;let A=(f=s==null||(M=s.graphQLErrors)===null||M===void 0||(d=M[0])===null||d===void 0?void 0:d.code)!==null&&f!==void 0?f:"",I=nCe(A);(0,ma.handleErrorNode)(rCe,s2,I,Ar.ERROR_ATTRIBUTE_PREFIX.LOGIN,tCe)}})})})}function rB(e,t){return ma.userSystemsRequestClient.mutate({mutation:$Le.loginMutation,variables:{email:e,authPassword:t}})}});var Vl=p($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.setUserFileKey=$t.setTempUserFileKey=$t.removeTempUserFileKey=$t.parseWfUsysVariant=$t.getUserFileKey=$t.getTempUserFileKey=$t.appendUserInputClasses=void 0;$t.uploadFileToS3=uCe;var Oa=xr(),oCe=(e,t)=>{let r=t.push("w-input");return e.getIn(["data","attr","disabled"])?r.push("w-input-disabled"):r};$t.appendUserInputClasses=oCe;var cCe=e=>{if(!e)return[];let t=[];for(let r of e.split(","))if(Oa.USER_ACCESS_META_OPTIONS.includes(r)&&!t.includes(r))t.push(r);else{console.error("UnexpectedWfUsysVariant: Renderer received unexpected wf-usys-variant"),t=[];break}return t};$t.parseWfUsysVariant=cCe;function uCe(e,t,r){return new Promise((n,i)=>{let a=new FormData;Object.entries(t).forEach(([o,c])=>{a.append(o,c)}),a.append("file",r),fetch(e,{method:"POST",body:a}).then(o=>{if(o.ok)n();else return o.text()}).then(o=>{i(o)})})}var sCe=e=>e.getAttribute(Oa.USYS_DATA_ATTRS.fileUploadKey);$t.getUserFileKey=sCe;var lCe=(e,t)=>{e.setAttribute(Oa.USYS_DATA_ATTRS.fileUploadKey,t)};$t.setUserFileKey=lCe;var fCe=e=>e.getAttribute(Oa.USYS_DATA_ATTRS.unsavedFileUploadKey);$t.getTempUserFileKey=fCe;var dCe=(e,t)=>{e.setAttribute(Oa.USYS_DATA_ATTRS.unsavedFileUploadKey,t)};$t.setTempUserFileKey=dCe;var pCe=e=>{e.removeAttribute(Oa.USYS_DATA_ATTRS.unsavedFileUploadKey)};$t.removeTempUserFileKey=pCe});var f2=p(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getCustomFields=Yr.getCommonFields=Yr.commonFields=void 0;Yr.getFieldValueById=vCe;Yr.getFieldsAsTypeKeys=ECe;Yr.getFieldsForFetch=void 0;var Jt=xr(),iB=Vl(),Hl=e=>e instanceof HTMLInputElement?e.value:"",Kl={PlainText:Hl,Email:Hl,Bool:e=>e instanceof HTMLInputElement?e.checked:!1,Number:Hl,Option:e=>e instanceof HTMLSelectElement?e.value:"",Link:Hl,FileRef:e=>{let t=(0,iB.getUserFileKey)(e),r=(0,iB.getTempUserFileKey)(e);if(r)return{key:r};if(t==="DELETE")return null;if(t)return{_id:t}}},MCe=["PlainText","Bool","Email","Number","Option","Link","FileRef"],aB=[{type:"Email",slug:"email",selector:e=>e.querySelector(`i
|
||
|
[`+ne+"] ";for(var me in arguments[0])D+=me+": "+arguments[0][me]+", ";D=D.slice(0,-2)}else D=arguments[ne];T.push(D)}ve(u+`
|
||
|
Arguments: `+Array.prototype.slice.call(T).join("")+`
|
||
|
`+new Error().stack),_=!1}return l.apply(this,arguments)},l)}var Q={};function j(u,l){t.deprecationHandler!=null&&t.deprecationHandler(u,l),Q[u]||(ve(l),Q[u]=!0)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;function le(u){return u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function L(u){var l,_;for(_ in u)l=u[_],le(l)?this[_]=l:this["_"+_]=l;this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function h(u,l){var _=d({},u),T;for(T in l)M(l,T)&&(i(u[T])&&i(l[T])?(_[T]={},d(_[T],u[T]),d(_[T],l[T])):l[T]!=null?_[T]=l[T]:delete _[T]);for(T in u)M(u,T)&&!M(l,T)&&i(u[T])&&(_[T]=d({},_[T]));return _}function O(u){u!=null&&this.set(u)}var C;Object.keys?C=Object.keys:C=function(u){var l,_=[];for(l in u)M(u,l)&&_.push(l);return _};var F={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Y(u,l,_){var T=this._calendar[u]||this._calendar.sameElse;return le(T)?T.call(l,_):T}var Z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ee(u){var l=this._longDateFormat[u],_=this._longDateFormat[u.toUpperCase()];return l||!_?l:(this._longDateFormat[u]=_.replace(/MMMM|MM|DD|dddd/g,function(T){return T.slice(1)}),this._longDateFormat[u])}var oe="Invalid date";function x(){return this._invalidDate}var de="%d",Me=/\d{1,2}/;function ue(u){return this._ordinal.replace("%d",u)}var Ce={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ve(u,l,_,T){var D=this._relativeTime[_];return le(D)?D(u,l,_,T):D.replace(/%d/i,u)}function De(u,l){var _=this._relativeTime[u>0?"future":"past"];return le(_)?_(l):_.replace(/%s/i,l)}var S={};function G(u,l){var _=u.toLowerCase();S[_]=S[_+"s"]=S[l]=u}function V(u){return typeof u=="string"?S[u]||S[u.toLowerCase()]:void 0}function re(u){var l={},_,T;for(T in u)M(u,T)&&(_=V(T),_&&(l[_]=u[T]));return l}var Ae={};function ye(u,l){Ae[u]=l}function ke(u){var l=[];for(var _ in u)l.push({unit:_,priority:Ae[_]});return l.sort(function(T,D){return T.priority-D.priority}),l}function E(u,l,_){var T=""+Math.abs(u),D=l-T.length,ne=u>=0;return(ne?_?"+":"":"-")+Math.pow(10,Math.max(0,D)).toString().substr(1)+T}var v=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,g=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},w={};function B(u,l,_,T){var D=T;typeof T=="string"&&(D=function(){return this[T]()}),u&&(w[u]=D),l&&(w[l[0]]=function(){return E(D.apply(this,arguments),l[1],l[2])}),_&&(w[_]=function(){return this.localeData().ordinal(D.apply(this,arguments),u)})}function pe(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function be(u){var l=u.match(v),_,T;for(_=0,T=l.length;_<T;_++)w[l[_]]?l[_]=w[l[_]]:l[_]=pe(l[_]);return function(D){var ne="",me;for(me=0;me<T;me++)ne+=le(l[me])?l[me].call(D,u):l[me];return ne}}function qe(u,l){return u.isValid()?(l=he(l,u.localeData()),R[l]=R[l]||be(l),R[l](u)):u.localeData().invalidDate()}function he(u,l){var _=5;function T(D){return l.longDateFormat(D)||D}for(g.lastIndex=0;_>=0&&g.test(u);)u=u.replace(g,T),g.lastIndex=0,_-=1;return u}var Te=/\d/,Ne=/\d\d/,He=/\d{3}/,it=/\d{4}/,Fe=/[+-]?\d{6}/,Ue=/\d\d?/,Mt=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,ut=/\d{1,3}/,ze=/\d{1,4}/,W=/[+-]?\d{1,6}/,H=/\d+/,m=/[+-]?\d+/,q=/Z|[+-]\d\d:?\d\d/gi,X=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[+-]?\d+(\.\d{1,3})?/,ge=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Le={};function Oe(u,l,_){Le[u]=le(l)?l:function(T,D){return T&&_?_:l}}function Kt(u,l){return M(Le,u)?Le[u](l._strict,l._locale):new RegExp(Bt
|
||
|
query FetchSubscriptions {
|
||
|
database {
|
||
|
userSubscriptions {
|
||
|
_id
|
||
|
productName
|
||
|
variantPrice {
|
||
|
string
|
||
|
unit
|
||
|
value
|
||
|
}
|
||
|
variantImage {
|
||
|
url
|
||
|
alt
|
||
|
}
|
||
|
status
|
||
|
lastInvoiced
|
||
|
periodEnd
|
||
|
subCreatedOn
|
||
|
canceledOn
|
||
|
billingAddressAddressee
|
||
|
billingAddressLine1
|
||
|
billingAddressLine2
|
||
|
billingAddressCity
|
||
|
billingAddressState
|
||
|
billingAddressPostalCode
|
||
|
billingAddressCountry
|
||
|
cardLast4
|
||
|
cardExpiresMonth
|
||
|
cardExpiresYear
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`;V1.getUserSubscriptions=wFe;function FFe(e=[]){return(0,X2.default)`
|
||
|
query FetchUser {
|
||
|
site {
|
||
|
siteUser {
|
||
|
createdOn
|
||
|
${e.length>0?`
|
||
|
data {
|
||
|
${e.map(t=>{let r=`${t.key}: ${t.type}(id: "${t.id}")`;return t.type==="option"?r+`{
|
||
|
slug
|
||
|
}`:t.type==="fileRef"?r+`{
|
||
|
url
|
||
|
|
||
|
id
|
||
|
}`:r}).join(`
|
||
|
`)}
|
||
|
}`:""}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`}var WFe=(0,X2.default)`
|
||
|
query GetFieldValidations {
|
||
|
site {
|
||
|
usysFieldSchema {
|
||
|
id
|
||
|
required
|
||
|
validations {
|
||
|
minLength
|
||
|
maxLength
|
||
|
min
|
||
|
max
|
||
|
step
|
||
|
extensions
|
||
|
options {
|
||
|
slug
|
||
|
name
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
`;V1.getFieldValidations=WFe});var Xx=p((k7e,kx)=>{var UFe=tf(),BFe={"&":"&","<":"<",">":">",'"':""","'":"'"},kFe=UFe(BFe);kx.exports=kFe});var Y2=p((X7e,Yx)=>{var XFe=Xx(),xFe=yn(),xx=/[&<>"']/g,YFe=RegExp(xx.source);function GFe(e){return e=xFe(e),e&&YFe.test(e)?e.replace(xx,XFe):e}Yx.exports=GFe});var jx=p((x7e,Gx)=>{function jFe(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}Gx.exports=jFe});var Hx=p((Y7e,Vx)=>{var VFe=Wu();function HFe(e,t,r,n){return VFe(e,function(i,a,o){t(n,i,r(i),o)}),n}Vx.exports=HFe});var Qx=p((G7e,Kx)=>{var KFe=jx(),QFe=Hx(),$Fe=H0(),JFe=Yt();function ZFe(e,t){return function(r,n){var i=JFe(r)?KFe:QFe,a=t?t():{};return i(r,e,$Fe(n,2),a)}}Kx.exports=ZFe});var Jx=p((j7e,$x)=>{var eWe=Ku(),tWe=Qx(),rWe=tWe(function(e,t,r){eWe(e,r,t)});$x.exports=rWe});var e6=p((V7e,Zx)=>{var nWe=e0(),iWe=wr(),aWe="[object Number]";function oWe(e){return typeof e=="number"||iWe(e)&&nWe(e)==aWe}Zx.exports=oWe});var Q2=p(ct=>{"use strict";var _c=at().default;Object.defineProperty(ct,"__esModule",{value:!0});ct._invalid=t1;ct.convertPaypalAmountToWFPrice=EWe;ct.convertWFPriceToPaypalAmount=yf;ct.convertWFPriceToPaypalAmountWithBreakdown=vWe;ct.currencyInfoByCodePaypal=ct.currencyInfoByCode=void 0;ct.equalPrice=MWe;ct.formatPrice=fWe;ct.getCurrencyInfo=Ac;ct.getCurrencyInfoPaypal=V2;ct.intToUnsafeFloat=ct.getCurrencySymbol=void 0;ct.parsePrice=hWe;ct.renderPrice=o6;ct.scalePrice=c6;ct.subtractPrice=pWe;ct.sumPrice=dWe;ct.unsafeFloatToInt=void 0;ct.validatePrice=e1;ct.zeroUnitPaypal=s6;ct.zeroUnitWF=u6;var cWe=_c(O0()),t6=_c(Jx()),uWe=_c(Pp()),sWe=_c(rM()),r6=_c(e6()),n6=df(),j2=(0,t6.default)(n6.stripeCurrencyList,"code");ct.currencyInfoByCode=j2;var i6=(0,t6.default)(n6.paypalCurrencyList,"code");ct.currencyInfoByCodePaypal=i6;function Ac(e,t="stripe"){return Sf(e)?t==="stripe"?j2[e.toUpperCase()]:i6[e.toUpperCase()]:{code:"???",digits:2,minCharge:0,name:"Unknown currency"}}function V2(e){return Ac(e,"paypal")}var Sf=e=>typeof e=="string"&&j2.hasOwnProperty(e.toUpperCase()),G2=class{format(t){return"NaN"}},a6=(0,uWe.default)((e,t="symbol")=>e!=null&&Sf(e)?new Intl.NumberFormat("en-US",{currency:e,style:"currency",currencyDisplay:t}):new G2,(e,t="symbol")=>[String(e),t].join("::")),lWe=e=>{let t=String(a6(e).format(0)).match(/^([^0-9\s]*)/);return t?t[0]:e};ct.getCurrencySymbol=lWe;var H2=(e,t,r=Math.round)=>{let n=typeof t=="object"?t:Ac(t);return r(e*Math.pow(10,n.digits))};ct.unsafeFloatToInt=H2;var K2=(e,t)=>{let r=typeof t=="object"?t:Ac(t);return e/Math.pow(10,r.digits)};ct.intToUnsafeFloat=K2;function o6(e,t={}){let{isoFormat:r=!1,noCurrency:n=!1}=t;e=e1(e)?e:t1();let i=Number(e.value),a=Ac(e.unit),o=K2(i,a);return Number.isNaN(o)?"NaN":n?String(o):a6(e.unit,r?"code":"symbol").format(o)}function fWe(e){e=e1(e)?e:t1();let t=o6(e);return{unit:e.unit,value:e.value,string:t}}function e1(e){return!(!e||typeof e!="object"||!(0,r6.default)(e.value)||!(0,sWe.default)(e.unit)||!Sf(e.unit))}function dWe(e,t){return!e1(e)||!e1(t)||e.unit!==t.unit?t1():{value:e.value+t.value,unit:e.unit}}function pWe(e,t){return!e1(e)||!e1(t)||e.unit!==t.unit?t1():{value:e.value-t.value,unit:e.unit}}function c6(e,t){if(!e1(e)||!(0,r6.default)(t))return t1();let r=Math.round(e.value*t),n=e.unit;return{value:r,unit:n}}function MWe(e,t){return!!(e&&t&&e.value===t.value&&e.unit===t.unit)}function hWe(e,t,r){if(typeof e!="string")throw new Error("parsePrice must be called with a string");if(!Sf(t))throw new Error(`parsePrice called with invalid currency ${t}`);if(!e)return r;let n=Number(e);return Number.isNaN(n)?r:{value:H2(n,t),unit:t}}function t1(){return{value:NaN,unit:"???"}}function u6(e){return{unit:e,value:0}}function s6(e){return yf(u6(e))}function vWe(e){let{total:t,subtotal:r,shipping:n,tax:i,discount:a,discountShipping:o}=e,c=(s,f)=>s?yf(s,f):s6(t.unit);return(0,cWe.default)({},yf(t),{breakdown:{item_total:c(r),shipping:c(n),tax_total:c(i),discount:c(a,-1),shipping_discount:c(o,-1)}})}function yf(e,t){let r=V2(e.unit),n=t?c6(e,t).value:e.value,i=K2(n,r).toFixed(r.digits);ret
|
||
|
/*!
|
||
|
* tram.js v0.8.2-global
|
||
|
* Cross-browser CSS3 transitions in JavaScript
|
||
|
* https://github.com/bkwld/tram
|
||
|
* MIT License
|
||
|
*/
|
||
|
/*!
|
||
|
* Webflow._ (aka) Underscore.js 1.6.0 (custom build)
|
||
|
* _.each
|
||
|
* _.map
|
||
|
* _.find
|
||
|
* _.filter
|
||
|
* _.any
|
||
|
* _.contains
|
||
|
* _.delay
|
||
|
* _.defer
|
||
|
* _.throttle (webflow)
|
||
|
* _.debounce
|
||
|
* _.keys
|
||
|
* _.has
|
||
|
* _.now
|
||
|
* _.template (webflow: upgraded to 1.13.6)
|
||
|
*
|
||
|
* http://underscorejs.org
|
||
|
* (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
|
* Underscore may be freely distributed under the MIT license.
|
||
|
* @license MIT
|
||
|
*/
|
||
|
/*! Bundled license information:
|
||
|
|
||
|
timm/lib/timm.js:
|
||
|
(*!
|
||
|
* Timm
|
||
|
*
|
||
|
* Immutability helpers with fast reads and acceptable writes.
|
||
|
*
|
||
|
* @copyright Guillermo Grau Panea 2016
|
||
|
* @license MIT
|
||
|
*)
|
||
|
|
||
|
tslib/tslib.js:
|
||
|
(*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** *)
|
||
|
|
||
|
tslib/tslib.js:
|
||
|
(*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** *)
|
||
|
|
||
|
tslib/tslib.js:
|
||
|
(*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** *)
|
||
|
|
||
|
tslib/tslib.js:
|
||
|
(*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** *)
|
||
|
|
||
|
tslib/tslib.js:
|
||
|
(*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** *)
|
||
|
|
||
|
moment/moment.js:
|
||
|
(*! moment.js *)
|
||
|
|
||
|
moment-timezone/moment-timezone.js:
|
||
|
(*! moment-timezone.js *)
|
||
|
(*! version : 0.5.31 *)
|
||
|
(*! Copyright (c) JS Foundation and other contributors *)
|
||
|
(*! license : MIT *)
|
||
|
(*! github.com/moment/moment-timezone *)
|
||
|
|
||
|
accounting/accounting.js:
|
||
|
(*!
|
||
|
* accounting.js v0.4.1
|
||
|
* Copyright 2014 Open Exchange Rates
|
||
|
*
|
||
|
* Freely distributable under the MIT license.
|
||
|
* Portions of accounting.js are inspired or borrowed from underscore.js
|
||
|
*
|
||
|
* Full details and documentation:
|
||
|
* http://openexchangerates.github.io/accounting.js/
|
||
|
*)
|
||
|
*/
|
||
|
/**
|
||
|
* ----------------------------------------------------------------------
|
||
|
* Webflow: Interactions 2.0: Init
|
||
|
*/
|
||
|
Webflow.require('ix2').init(
|
||
|
{"events":{"e":{"id":"e","name":"","animationType":"preset","eventTypeId":"NAVBAR_OPEN","action":{"id":"","actionTypeId":"GENERAL_START_ACTION","config":{"delay":0,"easing":"","duration":0,"actionListId":"a-60","affectedElements":{},"playInReverse":false,"autoStopEventId":"e-2"}},"mediaQueries":["main","medium","small","tiny"],"target":{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc22","appliesTo":"ELEMENT","styleBlockIds":[]},"targets":[{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc22","appliesTo":"ELEMENT","styleBlockIds":[]}],"config":{"loop":false,"playInReverse":false,"scrollOffsetValue":null,"scrollOffsetUnit":null,"delay":null,"direction":null,"effectIn":null},"createdOn":1650149381421},"e-2":{"id":"e-2","name":"","animationType":"preset","eventTypeId":"NAVBAR_CLOSE","action":{"id":"","actionTypeId":"GENERAL_START_ACTION","config":{"delay":0,"easing":"","duration":0,"actionListId":"a-61","affectedElements":{},"playInReverse":false,"autoStopEventId":"e"}},"mediaQueries":["main","medium","small","tiny"],"target":{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc22","appliesTo":"ELEMENT","styleBlockIds":[]},"targets":[{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc22","appliesTo":"ELEMENT","styleBlockIds":[]}],"config":{"loop":false,"playInReverse":false,"scrollOffsetValue":null,"scrollOffsetUnit":null,"delay":null,"direction":null,"effectIn":null},"createdOn":1650149381421},"e-3":{"id":"e-3","name":"","animationType":"preset","eventTypeId":"DROPDOWN_OPEN","action":{"id":"","actionTypeId":"GENERAL_START_ACTION","config":{"delay":0,"easing":"","duration":0,"actionListId":"a-98","affectedElements":{},"playInReverse":false,"autoStopEventId":"e-4"}},"mediaQueries":["main","medium","small","tiny"],"target":{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"ELEMENT","styleBlockIds":[]},"targets":[{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"ELEMENT","styleBlockIds":[]}],"config":{"loop":false,"playInReverse":false,"scrollOffsetValue":null,"scrollOffsetUnit":null,"delay":null,"direction":null,"effectIn":null},"createdOn":1650149381421},"e-4":{"id":"e-4","name":"","animationType":"preset","eventTypeId":"DROPDOWN_CLOSE","action":{"id":"","actionTypeId":"GENERAL_START_ACTION","config":{"delay":0,"easing":"","duration":0,"actionListId":"a-99","affectedElements":{},"playInReverse":false,"autoStopEventId":"e-3"}},"mediaQueries":["main","medium","small","tiny"],"target":{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"ELEMENT","styleBlockIds":[]},"targets":[{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"ELEMENT","styleBlockIds":[]}],"config":{"loop":false,"playInReverse":false,"scrollOffsetValue":null,"scrollOffsetUnit":null,"delay":null,"direction":null,"effectIn":null},"createdOn":1650149381421},"e-5":{"id":"e-5","name":"","animationType":"preset","eventTypeId":"DROPDOWN_OPEN","action":{"id":"","actionTypeId":"GENERAL_START_ACTION","config":{"delay":0,"easing":"","duration":0,"actionListId":"a-100","affectedElements":{},"playInReverse":false,"autoStopEventId":"e-6"}},"mediaQueries":["medium","small","tiny"],"target":{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"ELEMENT","styleBlockIds":[]},"targets":[{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"ELEMENT","styleBlockIds":[]}],"config":{"loop":false,"playInReverse":false,"scrollOffsetValue":null,"scrollOffsetUnit":null,"delay":null,"direction":null,"effectIn":null},"createdOn":1650149381421},"e-6":{"id":"e-6","name":"","animationType":"preset","eventTypeId":"DROPDOWN_CLOSE","action":{"id":"","actionTypeId":"GENERAL_START_ACTION","config":{"delay":0,"easing":"","duration":0,"actionListId":"a-101","affectedElements":{},"playInReverse":false,"autoStopEventId":"e-5"}},"mediaQueries":["medium","small","tiny"],"target":{"id":"64468462c3c33822ed68df0a|781863f8-09c6-117c-5768-b5d5d4e4fc32","appliesTo":"EL
|
||
|
);
|