All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.bb8c8232-6377.7a8cab922f60905f3c23.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-6377"],{"2GbzTNI4":(F,v,P)=>{"use strict";const C=P("5r+JV7ey"),A=P("dXodAadn"),O=P("TND2RH7A");F.exports={XMLParser:A,XMLValidator:C,XMLBuilder:O}},wju6KyuS:(F,v)=>{"use strict";const P=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",C=P+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",A="["+P+"]["+C+"]*",O=new RegExp("^"+A+"$"),E=function(c,l){const i=[];let o=l.exec(c);for(;o;){const s=[];s.startIndex=l.lastIndex-o[0].length;const e=o.length;for(let f=0;f"u")};v.isExist=function(c){return typeof c<"u"},v.isEmptyObject=function(c){return Object.keys(c).length===0},v.merge=function(c,l,i){if(l){const o=Object.keys(l),s=o.length;for(let e=0;e{"use strict";const C=P("wju6KyuS"),A={allowBooleanAttributes:!1,unpairedTags:[]};v.validate=function(t,u){u=Object.assign({},A,u);const g=[];let r=!1,a=!1;t[0]==="\uFEFF"&&(t=t.substr(1));for(let n=0;n"&&t[n]!==" "&&t[n]!=="	"&&t[n]!==`
`&&t[n]!=="\r";n++)d+=t[n];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),n--),!V(d)){let h;return d.trim().length===0?h="Invalid space after '<'.":h="Tag '"+d+"' is an invalid name.",p("InvalidTag",h,I(t,n))}const x=i(t,n);if(x===!1)return p("InvalidAttr","Attributes for '"+d+"' have open quote.",I(t,n));let m=x.value;if(n=x.index,m[m.length-1]==="/"){const h=n-m.length;m=m.substring(0,m.length-1);const _=s(m,u);if(_===!0)r=!0;else return p(_.err.code,_.err.msg,I(t,h+_.err.line))}else if(N)if(x.tagClosed){if(m.trim().length>0)return p("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",I(t,b));{const h=g.pop();if(d!==h.tagName){let _=I(t,h.tagStartPos);return p("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+_.line+", col "+_.col+") instead of closing tag '"+d+"'.",I(t,b))}g.length==0&&(a=!0)}}else return p("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",I(t,n));else{const h=s(m,u);if(h!==!0)return p(h.err.code,h.err.msg,I(t,n-m.length+h.err.line));if(a===!0)return p("InvalidXml","Multiple possible root nodes found.",I(t,n));u.unpairedTags.indexOf(d)!==-1||g.push({tagName:d,tagStartPos:b}),r=!0}for(n++;n0)return p("InvalidXml","Invalid '"+JSON.stringify(g.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return p("InvalidXml","Start tag expected.",1);return!0};function O(t){return t===" "||t==="	"||t===`
`||t==="\r"}function E(t,u){const g=u;for(;u5&&r==="xml")return p("InvalidXml","XML declaration allowed only at the start of the document.",I(t,u));if(t[u]=="?"&&t[u+1]==">"){u++;break}else continue}return u}function w(t,u){if(t.length>u+5&&t[u+1]==="-"&&t[u+2]==="-"){for(u+=3;u"){u+=2;break}}else if(t.length>u+8&&t[u+1]==="D"&&t[u+2]==="O"&&t[u+3]==="C"&&t[u+4]==="T"&&t[u+5]==="Y"&&t[u+6]==="P"&&t[u+7]==="E"){let g=1;for(u+=8;u"&&(g--,g===0))break}else if(t.length>u+9&&t[u+1]==="["&&t[u+2]==="C"&&t[u+3]==="D"&&t[u+4]==="A"&&t[u+5]==="T"&&t[u+6]==="A"&&t[u+7]==="["){for(u+=8;u"){u+=2;break}}return u}const c='"',l="'";function i(t,u){let g="",r="",a=!1;for(;u"&&r===""){a=!0;break}g+=t[u]}return r!==""?!1:{value:g,index:u,tagClosed:a}}const o=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function s(t,u){const g=C.getAllMatches(t,o),r={};for(let a=0;a{"use strict";const C=P("l1BD5vLw"),A={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(i,o){return o},attributeValueProcessor:function(i,o){return o},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function O(i){this.options=Object.assign({},A,i),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=E,this.options.format?(this.indentate=c,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}O.prototype.build=function(i){return this.options.preserveOrder?C(i,this.options):(Array.isArray(i)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(i={[this.options.arrayNodeName]:i}),this.j2x(i,0).val)},O.prototype.j2x=function(i,o){let s="",e="";for(let f in i)if(Object.prototype.hasOwnProperty.call(i,f))if(typeof i[f]>"u")this.isAttribute(f)&&(e+="");else if(i[f]===null)this.isAttribute(f)?e+="":f[0]==="?"?e+=this.indentate(o)+"<"+f+"?"+this.tagEndChar:e+=this.indentate(o)+"<"+f+"/"+this.tagEndChar;else if(i[f]instanceof Date)e+=this.buildTextValNode(i[f],f,"",o);else if(typeof i[f]!="object"){const p=this.isAttribute(f);if(p)s+=this.buildAttrPairStr(p,""+i[f]);else if(f===this.options.textNodeName){let y=this.options.tagValueProcessor(f,""+i[f]);e+=this.replaceEntitiesValue(y)}else e+=this.buildTextValNode(i[f],f,"",o)}else if(Array.isArray(i[f])){const p=i[f].length;let y="";for(let V=0;V"u"||(I===null?f[0]==="?"?e+=this.indentate(o)+"<"+f+"?"+this.tagEndChar:e+=this.indentate(o)+"<"+f+"/"+this.tagEndChar:typeof I=="object"?this.options.oneListGroup?y+=this.j2x(I,o+1).val:y+=this.processTextOrObjNode(I,f,o):y+=this.buildTextValNode(I,f,"",o))}this.options.oneListGroup&&(y=this.buildObjectNode(y,f,"",o)),e+=y}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const p=Object.keys(i[f]),y=p.length;for(let V=0;V"+i+f:this.options.commentPropName!==!1&&o===this.options.commentPropName&&p.length===0?this.indentate(e)+``+this.newLine:this.indentate(e)+"<"+o+s+p+this.tagEndChar+i+this.indentate(e)+f}},O.prototype.closeTag=function(i){let o="";return this.options.unpairedTags.indexOf(i)!==-1?this.options.suppressUnpairedNode||(o="/"):this.options.suppressEmptyNode?o="/":o=`>`+this.newLine;if(this.options.commentPropName!==!1&&o===this.options.commentPropName)return this.indentate(e)+``+this.newLine;if(o[0]==="?")return this.indentate(e)+"<"+o+s+"?"+this.tagEndChar;{let f=this.options.tagValueProcessor(o,i);return f=this.replaceEntitiesValue(f),f===""?this.indentate(e)+"<"+o+s+this.closeTag(o)+this.tagEndChar:this.indentate(e)+"<"+o+s+">"+f+"0&&this.options.processEntities)for(let o=0;o{const v=`
`;function P(c,l){let i="";return l.format&&l.indentBy.length>0&&(i=v),C(c,l,"",i)}function C(c,l,i,o){let s="",e=!1;for(let f=0;f`,e=!1;continue}else if(y===l.commentPropName){s+=o+``,e=!0;continue}else if(y[0]==="?"){const g=O(p[":@"],l),r=y==="?xml"?"":o;let a=p[y][0][l.textNodeName];a=a.length!==0?" "+a:"",s+=r+`<${y}${a}${g}?>`,e=!0;continue}let I=o;I!==""&&(I+=l.indentBy);const T=O(p[":@"],l),t=o+`<${y}${T}`,u=C(p[y],l,V,I);l.unpairedTags.indexOf(y)!==-1?l.suppressUnpairedNode?s+=t+">":s+=t+"/>":(!u||u.length===0)&&l.suppressEmptyNode?s+=t+"/>":u&&u.endsWith(">")?s+=t+`>${u}${o}`:(s+=t+">",u&&o!==""&&(u.includes("/>")||u.includes("`),e=!0}return s}function A(c){const l=Object.keys(c);for(let i=0;i0&&l.processEntities)for(let i=0;i{const C=P("wju6KyuS");function A(s,e){const f={};if(s[e+3]==="O"&&s[e+4]==="C"&&s[e+5]==="T"&&s[e+6]==="Y"&&s[e+7]==="P"&&s[e+8]==="E"){e=e+9;let p=1,y=!1,V=!1,I="";for(;e"){if(V?s[e-1]==="-"&&s[e-2]==="-"&&(V=!1,p--):p--,p===0)break}else s[e]==="["?y=!0:I+=s[e];if(p!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:f,i:e}}function O(s,e){let f="";for(;e{const P={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(A,O){return O},attributeValueProcessor:function(A,O){return O},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(A,O,E){return A}},C=function(A){return Object.assign({},P,A)};v.buildOptions=C,v.defaultOptions=P},NKfXgVaJ:(F,v,P)=>{"use strict";const C=P("wju6KyuS"),A=P("i3LHsDJu"),O=P("FtgyghmH"),E=P("sw2ZU+YB");class w{constructor(a){this.options=a,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=c,this.parseXml=e,this.parseTextData=l,this.resolveNameSpace=i,this.buildAttributesMap=s,this.isItStopNode=V,this.replaceEntitiesValue=p,this.readStopNodeData=u,this.saveTextToParentTag=y,this.addChild=f}}function c(r){const a=Object.keys(r);for(let n=0;n0)){x||(r=this.replaceEntitiesValue(r));const m=this.options.tagValueProcessor(a,r,n,N,d);return m==null?r:typeof m!=typeof r||m!==r?m:this.options.trimValues?g(r,this.options.parseTagValue,this.options.numberParseOptions):r.trim()===r?g(r,this.options.parseTagValue,this.options.numberParseOptions):r}}function i(r){if(this.options.removeNSPrefix){const a=r.split(":"),n=r.charAt(0)==="/"?"/":"";if(a[0]==="xmlns")return"";a.length===2&&(r=n+a[1])}return r}const o=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(r,a,n){if(!this.options.ignoreAttributes&&typeof r=="string"){const b=C.getAllMatches(r,o),N=b.length,d={};for(let x=0;x",d,"Closing Tag is not closed.");let h=r.substring(d+2,m).trim();if(this.options.removeNSPrefix){const $=h.indexOf(":");$!==-1&&(h=h.substr($+1))}this.options.transformTagName&&(h=this.options.transformTagName(h)),n&&(b=this.saveTextToParentTag(b,n,N));const _=N.substring(N.lastIndexOf(".")+1);if(h&&this.options.unpairedTags.indexOf(h)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: `);let S=0;_&&this.options.unpairedTags.indexOf(_)!==-1?(S=N.lastIndexOf(".",N.lastIndexOf(".")-1),this.tagsNodeStack.pop()):S=N.lastIndexOf("."),N=N.substring(0,S),n=this.tagsNodeStack.pop(),b="",d=m}else if(r[d+1]==="?"){let m=t(r,d,!1,"?>");if(!m)throw new Error("Pi Tag is not closed.");if(b=this.saveTextToParentTag(b,n,N),!(this.options.ignoreDeclaration&&m.tagName==="?xml"||this.options.ignorePiTags)){const h=new A(m.tagName);h.add(this.options.textNodeName,""),m.tagName!==m.tagExp&&m.attrExpPresent&&(h[":@"]=this.buildAttributesMap(m.tagExp,N,m.tagName)),this.addChild(n,h,N)}d=m.closeIndex+1}else if(r.substr(d+1,3)==="!--"){const m=T(r,"-->",d+4,"Comment is not closed.");if(this.options.commentPropName){const h=r.substring(d+4,m-2);b=this.saveTextToParentTag(b,n,N),n.add(this.options.commentPropName,[{[this.options.textNodeName]:h}])}d=m}else if(r.substr(d+1,2)==="!D"){const m=O(r,d);this.docTypeEntities=m.entities,d=m.i}else if(r.substr(d+1,2)==="!["){const m=T(r,"]]>",d,"CDATA is not closed.")-2,h=r.substring(d+9,m);b=this.saveTextToParentTag(b,n,N);let _=this.parseTextData(h,n.tagname,N,!0,!1,!0,!0);_==null&&(_=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:h}]):n.add(this.options.textNodeName,_),d=m+2}else{let m=t(r,d,this.options.removeNSPrefix),h=m.tagName;const _=m.rawTagName;let S=m.tagExp,$=m.attrExpPresent,X=m.closeIndex;this.options.transformTagName&&(h=this.options.transformTagName(h)),n&&b&&n.tagname!=="!xml"&&(b=this.saveTextToParentTag(b,n,N,!1));const M=n;if(M&&this.options.unpairedTags.indexOf(M.tagname)!==-1&&(n=this.tagsNodeStack.pop(),N=N.substring(0,N.lastIndexOf("."))),h!==a.tagname&&(N+=N?"."+h:h),this.isItStopNode(this.options.stopNodes,N,h)){let L="";if(S.length>0&&S.lastIndexOf("/")===S.length-1)d=m.closeIndex;else if(this.options.unpairedTags.indexOf(h)!==-1)d=m.closeIndex;else{const B=this.readStopNodeData(r,_,X+1);if(!B)throw new Error(`Unexpected end of ${_}`);d=B.i,L=B.tagContent}const R=new A(h);h!==S&&$&&(R[":@"]=this.buildAttributesMap(S,N,h)),L&&(L=this.parseTextData(L,h,N,!0,$,!0,!0)),N=N.substr(0,N.lastIndexOf(".")),R.add(this.options.textNodeName,L),this.addChild(n,R,N)}else{if(S.length>0&&S.lastIndexOf("/")===S.length-1){h[h.length-1]==="/"?(h=h.substr(0,h.length-1),N=N.substr(0,N.length-1),S=h):S=S.substr(0,S.length-1),this.options.transformTagName&&(h=this.options.transformTagName(h));const L=new A(h);h!==S&&$&&(L[":@"]=this.buildAttributesMap(S,N,h)),this.addChild(n,L,N),N=N.substr(0,N.lastIndexOf("."))}else{const L=new A(h);this.tagsNodeStack.push(n),h!==S&&$&&(L[":@"]=this.buildAttributesMap(S,N,h)),this.addChild(n,L,N),n=L}b="",d=X}}else b+=r[d];return a.child};function f(r,a,n){const b=this.options.updateTag(a.tagname,n,a[":@"]);b===!1||(typeof b=="string"&&(a.tagname=b),r.addChild(a))}const p=function(r){if(this.options.processEntities){for(let a in this.docTypeEntities){const n=this.docTypeEntities[a];r=r.replace(n.regx,n.val)}for(let a in this.lastEntities){const n=this.lastEntities[a];r=r.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let a in this.htmlEntities){const n=this.htmlEntities[a];r=r.replace(n.regex,n.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};function y(r,a,n,b){return r&&(b===void 0&&(b=Object.keys(a.child).length===0),r=this.parseTextData(r,a.tagname,n,!1,a[":@"]?Object.keys(a[":@"]).length!==0:!1,b),r!==void 0&&r!==""&&a.add(this.options.textNodeName,r),r=""),r}function V(r,a,n){const b="*."+n;for(const N in r){const d=r[N];if(b===d||a===d)return!0}return!1}function I(r,a,n=">"){let b,N="";for(let d=a;d",n,`${a} is not closed`);if(r.substring(n+2,d).trim()===a&&(N--,N===0))return{tagContent:r.substring(b,n),i:d};n=d}else if(r[n+1]==="?")n=T(r,"?>",n+1,"StopNode is not closed.");else if(r.substr(n+1,3)==="!--")n=T(r,"-->",n+3,"StopNode is not closed.");else if(r.substr(n+1,2)==="![")n=T(r,"]]>",n,"StopNode is not closed.")-2;else{const d=t(r,n,">");d&&((d&&d.tagName)===a&&d.tagExp[d.tagExp.length-1]!=="/"&&N++,n=d.closeIndex)}}function g(r,a,n){if(a&&typeof r=="string"){const b=r.trim();return b==="true"?!0:b==="false"?!1:E(r,n)}else return C.isExist(r)?r:""}F.exports=w},dXodAadn:(F,v,P)=>{const{buildOptions:C}=P("EQgJ8zXC"),A=P("NKfXgVaJ"),{prettify:O}=P("pe21f2Fs"),E=P("5r+JV7ey");class w{constructor(l){this.externalEntities={},this.options=C(l)}parse(l,i){if(typeof l!="string")if(l.toString)l=l.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(i){i===!0&&(i={});const e=E.validate(l,i);if(e!==!0)throw Error(`${e.err.msg}:${e.err.line}:${e.err.col}`)}const o=new A(this.options);o.addExternalEntities(this.externalEntities);const s=o.parseXml(l);return this.options.preserveOrder||s===void 0?s:O(s,this.options)}addEntity(l,i){if(i.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(l.indexOf("&")!==-1||l.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(i==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[l]=i}}F.exports=w},pe21f2Fs:(F,v)=>{"use strict";function P(w,c){return C(w,c)}function C(w,c,l){let i;const o={};for(let s=0;s0&&(o[c.textNodeName]=i):i!==void 0&&(o[c.textNodeName]=i),o}function A(w){const c=Object.keys(w);for(let l=0;l{"use strict";class v{constructor(C){this.tagname=C,this.child=[],this[":@"]={}}add(C,A){C==="__proto__"&&(C="#__proto__"),this.child.push({[C]:A})}addChild(C){C.tagname==="__proto__"&&(C.tagname="#__proto__"),C[":@"]&&Object.keys(C[":@"]).length>0?this.child.push({[C.tagname]:C.child,":@":C[":@"]}):this.child.push({[C.tagname]:C.child})}}F.exports=v},PH5VRLCQ:(F,v,P)=>{var C=P("R+B8SaP1"),A=C(function(O,E,w){return O+(w?" ":"")+E.toLowerCase()});F.exports=A},"sw2ZU+YB":F=>{const v=/^[-+]?0x[a-fA-F0-9]+$/,P=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const C={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function A(E,w={}){if(w=Object.assign({},C,w),!E||typeof E!="string")return E;let c=E.trim();if(w.skipLike!==void 0&&w.skipLike.test(c))return E;if(w.hex&&v.test(c))return Number.parseInt(c,16);{const l=P.exec(c);if(l){const i=l[1],o=l[2];let s=O(l[3]);const e=l[4]||l[6];if(!w.leadingZeros&&o.length>0&&i&&c[2]!==".")return E;if(!w.leadingZeros&&o.length>0&&!i&&c[1]!==".")return E;{const f=Number(c),p=""+f;return p.search(/[eE]/)!==-1||e?w.eNotation?f:E:c.indexOf(".")!==-1?p==="0"&&s===""||p===s||i&&p==="-"+s?f:E:o?s===p||i+s===p?f:E:c===p||c===i+p?f:E}}else return E}}function O(E){return E&&E.indexOf(".")!==-1&&(E=E.replace(/0+$/,""),E==="."?E="0":E[0]==="."?E="0"+E:E[E.length-1]==="."&&(E=E.substr(0,E.length-1))),E}F.exports=A},PLazxdob:(F,v,P)=>{"use strict";P.d(v,{s:()=>C});function C({storage:E,key:w="REACT_QUERY_OFFLINE_CACHE",throttleTime:c=1e3,serialize:l=JSON.stringify,deserialize:i=JSON.parse,retry:o}){if(E){const s=e=>{try{E.setItem(w,l(e));return}catch(f){return f}};return{persistClient:A(e=>{let f=e,p=s(f),y=0;for(;p&&f;)y++,f=o==null?void 0:o({persistedClient:f,error:p,errorCount:y}),f&&(p=s(f))},c),restoreClient:()=>{const e=E.getItem(w);if(e)return i(e)},removeClient:()=>{E.removeItem(w)}}}return{persistClient:O,restoreClient:()=>{},removeClient:O}}function A(E,w=100){let c=null,l;return function(...i){l=i,c===null&&(c=setTimeout(()=>{E(...l),c=null},w))}}function O(){}},GRU0vAV6:(F,v,P)=>{"use strict";P.d(v,{t:()=>I});function C(){return C=Object.assign?Object.assign.bind():function(T){for(var t=1;t{r(a)&&u.push(O(a))})}if(t.dehydrateQueries!==!1){const r=t.shouldDehydrateQuery||c;T.getQueryCache().getAll().forEach(a=>{r(a)&&g.push(E(a))})}return{mutations:u,queries:g}}function i(T,t,u){if(typeof t!="object"||t===null)return;const g=T.getMutationCache(),r=T.getQueryCache(),a=t.mutations||[],n=t.queries||[];a.forEach(b=>{var N;g.build(T,{...u==null||(N=u.defaultOptions)==null?void 0:N.mutations,mutationKey:b.mutationKey},b.state)}),n.forEach(({queryKey:b,state:N,queryHash:d})=>{var x;const m=r.get(d);if(m){if(m.state.dataUpdatedAtu,b=a.buster!==g;n||b?t.removeClient():i(T,a.clientState,r)}else t.removeClient()}catch{t.removeClient()}}async function f({queryClient:T,persister:t,buster:u="",dehydrateOptions:g}){const r={buster:u,timestamp:Date.now(),clientState:l(T,g)};await t.persistClient(r)}function p(T){const t=T.queryClient.getQueryCache().subscribe(g=>{s(g.type)&&f(T)}),u=T.queryClient.getMutationCache().subscribe(g=>{s(g.type)&&f(T)});return()=>{t(),u()}}function y(T){let t=!1,u;const g=()=>{t=!0,u==null||u()},r=e(T).then(()=>{t||(u=p(T))});return[g,r]}var V=P("DUKaTDO2");const I=({client:T,children:t,persistOptions:u,onSuccess:g,...r})=>{const[a,n]=A.useState(!0),b=A.useRef({persistOptions:u,onSuccess:g}),N=A.useRef(!1);return A.useEffect(()=>{b.current={persistOptions:u,onSuccess:g}}),A.useEffect(()=>{const d={...b.current.persistOptions,queryClient:T};return N.current||(N.current=!0,n(!0),e(d).then(async()=>{try{await(b.current.onSuccess==null?void 0:b.current.onSuccess())}finally{n(!1)}})),a?void 0:p(d)},[T,a]),A.createElement(V.QueryClientProvider,C({client:T},r),A.createElement(V.IsRestoringProvider,{value:a},t))}}}]);})();

//# sourceMappingURL=bb8c8232-6377.7a8cab922f60905f3c23.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy