PageSourceSearch

https://app.litcommerce.com/assets/FeedPreview-BbHqwG14.js

js litcommerce.com collected 2026-10-02 02:29:46 UTC 104,198 bytes, 23 lines download raw bytes

1import{r as C,j as o,jg as tr,u as on,it as gs,nW as ms,P as st,af as vs,ag as xs,ah as pt,ai as gt,aj as ys,B as L,C as it,A as Ne,d as ot,L as Ie,aa as an,m as de,g as He,fg as bs,aO as js,t as ye,b as kt,I as _s,az as ln,d3 as ws,v as cn,w as un,x as dn,gH as fn,k7 as hn,T as se,cJ as Es,h as Cs,ig as Ss,aN as ks,qU as Ns,aK as As,aL as Os,R as qe,qV as Ts,qW as Is,aI as Fs,co as Ps,$ as Nt,X as pn,a1 as gn,a2 as mn,a0 as vn,cV as Rs,N as Ds,aE as Ls,aF as $s,aG as Ms,k as zs,l as Us,a_ as Bs,aT as Vs,ac as Ws,qX as Hs,qY as qs,au as Ks}from"./index-DD7wEX2k.js";import{P as Gs}from"./Page-mik8EZ_Q.js";import{a as be,F as Xs,I as Qs,b as Ys}from"./ImportLanguageWrapper-DENdKda1.js";import{Q as Zs,a as Js}from"./QueryClientProvider-Dzw9-502.js";import{R as ei}from"./RefreshButton-Cb_40s1N.js";import{T as ti}from"./TableContainer-BUx5ZMeU.js";import{d as ri}from"./GetApp-Hti2t4Qg.js";import{i as ni}from"./feedPlan-tH-6sJ00.js";import{d as si}from"./Info-OZvC33_z.js";import{d as ii}from"./Link-cipbfOBM.js";import{d as oi}from"./FileCopyOutlined-CsLkg8dP.js";import{d as ai}from"./FileCopy-B5bx8XnM.js";import{c as li}from"./FeedHelper-MRUQ0M26.js";import{d as ci}from"./Send-WKWNl_ft.js";import{e as rr}from"./constant-DwQ-lYYh.js";import{d as xn}from"./CheckCircle-CmxgKwYs.js";import{f as ui}from"./utils-Bgys39Sh.js";import{C as nr}from"./Card-CU05tOYa.js";import"./FeedTableLogButton-Bwhn_acc.js";import"./react-router-dom.min-Caf_HWK8.js";import"./ArrowBack-DPKRexet.js";import"./FeedGuideButton-DuiK-byC.js";import"./HelpOutlineOutlined-BibOM1T3.js";/* empty css                      */import"./CustomLoadingButton-DzS_9QXf.js";import"./ArrowDropDown-AeO9ZKDt.js";import"./ArrowDropUp-xVit32Pr.js";import"./ActionButtonMenu-BC9lDWO8.js";import"./Grid-eV9hG1VW.js";import"./Publish-JkXB9gP0.js";import"./ToggleOn-DyW7ZvlH.js";import"./Delete-TaFDY8Lv.js";import"./AddCircleOutline-COf8fMgR.js";import"./Update-CQ15_MJp.js";import"./link-B9vAowY9.js";const sr=":@",Je="#text",At="#comment",Ot="#cdata",yn="DECLARATION_TAG",di="TAG",yt={tagColor:"#d43900",textColor:"#333",attributeKeyColor:"#2a7ab0",attributeValueColor:"#008000",separatorColor:"#333",commentColor:"#aaa",cdataColor:"#1d781d",fontFamily:"monospace"},fi={theme:yt,collapsible:!1,indentSize:2},bn=C.createContext(fi),je=()=>C.useContext(bn);var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof tr<"u"?tr:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={},at={};(function(e){const t=":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",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",s=new RegExp("^"+n+"$"),i=function(a,c){const u=[];let p=c.exec(a);for(;p;){const h=[];h.startIndex=c.lastIndex-p[0].length;const m=p.length;for(let v=0;v<m;v++)h.push(p[v]);u.push(h),p=c.exec(a)}return u},l=function(a){const c=s.exec(a);return!(c===null||typeof c>"u")};e.isExist=function(a){return typeof a<"u"},e.isEmptyObject=function(a){return Object.keys(a).length===0},e.merge=function(a,c,u){if(c){const p=Object.keys(c),h=p.length;for(let m=0;m<h;m++)u==="strict"?a[p[m]]=[c[p[m]]]:a[p[m]]=c[p[m]]}},e.getValue=function(a){return e.isExist(a)?a:""},e.isName=l,e.getAllMatches=i,e.nameRegexp=n})(at);const Ft=at,hi={allowBooleanAttributes:!1,unpairedTags:[]};It.validate=function(e,t){t=Object.assign({},hi,t);const r=[];let n=!1,s=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let i=0;i<e.length;i++)if(e[i]==="<"&&e[i+1]==="?"){if(i+=2,i=or(e,i),i.err)return i}else if(e[i]==="<"){let l=i;if(i++,e[i]==="!"){i=ar(e,i);continue}else{let a=!1;e[i]==="/"&&(a=!0,i++);let c="";for(;i<e.length&&e[i]!==">"&&e[i]!==" "&&e[i]!=="	"&&e[i]!==`
2`&&e[i]!=="\r";i++)c+=e[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!ji(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",G("InvalidTag",h,ce(e,i))}const u=mi(e,i);if(u===!1)return G("InvalidAttr","Attributes for '"+c+"' have open quote.",ce(e,i));let p=u.value;if(i=u.index,p[p.length-1]==="/"){const h=i-p.length;p=p.substring(0,p.length-1);const m=lr(p,t);
vendor: 3,816 bytes, lines 2-3
2if(m===!0)n=!0;else return G(m.err.code,m.err.msg,ce(e,h+m.err.line))}else if(a)if(u.tagClosed){if(p.trim().length>0)return G("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ce(e,l));if(r.length===0)return G("InvalidTag","Closing tag '"+c+"' has not been opened.",ce(e,l));{const h=r.pop();if(c!==h.tagName){let m=ce(e,h.tagStartPos);return G("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+c+"'.",ce(e,l))}r.length==0&&(s=!0)}}else return G("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ce(e,i));else{const h=lr(p,t);if(h!==!0)return G(h.err.code,h.err.msg,ce(e,i-p.length+h.err.line));if(s===!0)return G("InvalidXml","Multiple possible root nodes found.",ce(e,i));t.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:l}),n=!0}for(i++;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="!"){i++,i=ar(e,i);continue}else if(e[i+1]==="?"){if(i=or(e,++i),i.err)return i}else break;else if(e[i]==="&"){const h=yi(e,i);if(h==-1)return G("InvalidChar","char '&' is not expected.",ce(e,i));i=h}else if(s===!0&&!ir(e[i]))return G("InvalidXml","Extra text at the end",ce(e,i));e[i]==="<"&&i--}}else{if(ir(e[i]))continue;return G("InvalidChar","char '"+e[i]+"' is not expected.",ce(e,i))}if(n){if(r.length==1)return G("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ce(e,r[0].tagStartPos));if(r.length>0)return G("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return G("InvalidXml","Start tag expected.",1);return!0};function ir(e){return e===" "||e==="	"||e===`
3`||e==="\r"}function or(e,t){const r=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){const n=e.substr(r,t-r);if(t>5&&n==="xml")return G("InvalidXml","XML declaration allowed only at the start of the document.",ce(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function ar(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let r=1;for(t+=8;t<e.length;t++)if(e[t]==="<")r++;else if(e[t]===">"&&(r--,r===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}const pi='"',gi="'";function mi(e,t){let r="",n="",s=!1;for(;t<e.length;t++){if(e[t]===pi||e[t]===gi)n===""?n=e[t]:n!==e[t]||(n="");else if(e[t]===">"&&n===""){s=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:s}}const vi=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function lr(e,t){const r=Ft.getAllMatches(e,vi),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return G("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Be(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return G("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Be(r[s]));if(r[s][3]===void 0&&!t.allowBooleanAttributes)return G("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Be(r[s]));const i=r[s][2];if(!bi(i))return G("InvalidAttr","Attribute '"+i+"' is an invalid name.",Be(r[s]));if(!n.hasOwnProperty(i))n[i]=1;else return G("InvalidAttr","Attribute '"+i+"' is repeated.",Be(r[s]))}return!0}function xi(e,t){let r=/\d/;for(e[t]==="x"&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(r))break}return-1}function yi(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,xi(e,t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(e[t]===";")break;return-1}return t}function G(e,t,r){return{err:{code:e,msg:t,line:r.line||r,col:r.col}}}
3function bi(e){return Ft.isName(e)}function ji(e){return Ft.isName(e)}function ce(e,t){const r=e.substring(0,t).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Be(e){return e.startIndex+e[1].length}var Pt={};const jn={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(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,r){return e}},_i=function(e){return Object.assign({},jn,e)};Pt.buildOptions=_i;Pt.defaultOptions=jn;class wi{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}var Ei=wi;const Ci=at;function Si(e,t){const r={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let n=1,s=!1,i=!1,l="";for(;t<e.length;t++)if(e[t]==="<"&&!i){if(s&&Ai(e,t))t+=7,[entityName,val,t]=ki(e,t+1),val.indexOf("&")===-1&&(r[Fi(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(s&&Oi(e,t))t+=8;else if(s&&Ti(e,t))t+=8;else if(s&&Ii(e,t))t+=9;else if(Ni)i=!0;else throw new Error("Invalid DOCTYPE");n++,l=""}else if(e[t]===">"){if(i?e[t-1]==="-"&&e[t-2]==="-"&&(i=!1,n--):n--,n===0)break}else e[t]==="["?s=!0:l+=e[t];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:r,i:t}}function ki(e,t){let r="";for(;t<e.length&&e[t]!=="'"&&e[t]!=='"';t++)r+=e[t];if(r=r.trim(),r.indexOf(" ")!==-1)throw new Error("External entites are not supported");const n=e[t++];let s="";for(;t<e.length&&e[t]!==n;t++)s+=e[t];return[r,s,t]}function Ni(e,t){return e[t+1]==="!"&&e[t+2]==="-"&&e[t+3]==="-"}function Ai(e,t){return e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="N"&&e[t+4]==="T"&&e[t+5]==="I"&&e[t+6]==="T"&&e[t+7]==="Y"}function Oi(e,t){return e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="L"&&e[t+4]==="E"&&e[t+5]==="M"&&e[t+6]==="E"&&e[t+7]==="N"&&e[t+8]==="T"}function Ti(e,t){return e[t+1]==="!"&&e[t+2]==="A"&&e[t+3]==="T"&&e[t+4]==="T"&&e[t+5]==="L"&&e[t+6]==="I"&&e[t+7]==="S"&&e[t+8]==="T"}function Ii(e,t){return e[t+1]==="!"&&e[t+2]==="N"&&e[t+3]==="O"&&e[t+4]==="T"&&e[t+5]==="A"&&e[t+6]==="T"&&e[t+7]==="I"&&e[t+8]==="O"&&e[t+9]==="N"}function Fi(e){if(Ci.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var Pi=Si;const Ri=/^[-+]?0x[a-fA-F0-9]+$/,Di=/^([\-\+])?(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 Li={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function $i(e,t={}){if(t=Object.assign({},Li,t),!e||typeof e!="string")return e;let r=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(r))return e;if(t.hex&&Ri.test(r))return Number.parseInt(r,16);{const n=Di.exec(r);if(n){const s=n[1],i=n[2];let l=Mi(n[3]);const a=n[4]||n[6];if(!t.leadingZeros&&i.length>0&&s&&r[2]!=="."||!t.leadingZeros&&i.length>0&&!s&&r[1]!==".")return e;{const c=Number(r),u=""+c;return u.search(/[eE]/)!==-1||a?t.eNotation?c:e:r.indexOf(".")!==-1?u==="0"&&l===""||u===l||s&&u==="-"+l?c:e:i?l===u||s+l===u?c:e:r===u||r===s+u?c:e}}else return e}}function Mi(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}var zi=$i;function Ui(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const r of e)if(typeof r=="string"&&t===r||r instanceof RegExp&&r.test(t))return!0}:()=>!1}var _n=Ui;const wn=at,Ve=Ei,Bi=Pi,Vi=zi,Wi=_n;let Hi=class{constructor(e){this.options=e,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:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,r)=>String.fromCharCode(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,r)=>String.fromCharCode(Number.parseInt(r,16))}},this.addExternalEntities=qi,this.parseXml=Yi,this.parseTextData=Ki,this.resolveNameSpace=Gi,this.buildAttributesMap=Qi,this.isItStopNode=to,this.replaceEntitiesValue=Ji,this.readStopNodeData=no,this.saveTextToParentTag=eo,this.addChild=Zi,this.ignoreAttributesFn=Wi(this.options.ignoreAttributes)}};function qi(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:e[n]}}}function Ki(e,t,r,n,s,i,l){if(e!==void 0&&(this.options.trimValues&&!n&&(e=e.trim()),e.length>0)){l||(e=this.replaceEntitiesValue(e));const a=this.options.tagValueProcessor(t,e,r,s,i);return a==null?e:typeof a!=typeof e||a!==e?a:this.options.trimValues?jt(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?jt(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function Gi(e){if(this.options.removeNSPrefix){const t=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=r+t[1])}return e}const Xi=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Qi(e,t,r){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const n=wn.getAllMatches(e,Xi),s=n.length,i={};for(let l=0;l<s;l++){const a=this.resolveNameSpace(n[l][1]);if(this.ignoreAttributesFn(a,t))continue;let c=n[l][4],u=this.options.attributeNamePrefix+a;if(a.length)if(this.options.transformAttributeName&&(u=this.options.transformAttributeName(u)),u==="__proto__"&&(u="#__proto__"),c!==void 0){this.options.trimValues&&(c=c.trim()),c=this.replaceEntitiesValue(c);const p=this.options.attributeValueProcessor(a,c,t);p==null?i[u]=c:typeof p!=typeof c||p!==c?i[u]=p:i[u]=jt(c,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[u]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const l={};return l[this.options.attributesGroupName]=i,l}return i}}const Yi=function(e){e=e.replace(/\r\n?/g,`
4`);const t=new Ve("!xml");let r=t,n="",s="";for(let i=0;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="/"){const l=ke(e,">",i,"Closing Tag is not closed.");let a=e.substring(i+2,l).trim();if(this.options.removeNSPrefix){const p=a.indexOf(":");p!==-1&&(a=a.substr(p+1))}this.options.transformTagName&&(a=this.options.transformTagName(a)),r&&(n=this.saveTextToParentTag(n,r,s));const c=s.substring(s.lastIndexOf(".")+1);if(a&&this.options.unpairedTags.indexOf(a)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${a}>`);let u=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(u=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):u=s.lastIndexOf("."),s=s.substring(0,u),r=this.tagsNodeStack.pop(),n="",i=l}else if(e[i+1]==="?"){let l=bt(e,i,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,s),!(this.options.ignoreDeclaration&&l.tagName==="?xml"||this.options.ignorePiTags)){const a=new Ve(l.tagName);a.add(this.options.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&(a[":@"]=this.buildAttributesMap(l.tagExp,s,l.tagName)),this.addChild(r,a,s)}i=l.closeIndex+1}else if(e.substr(i+1,3)==="!--"){const l=ke(e,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){const a=e.substring(i+4,l-2);n=this.saveTextToParentTag(n,r,s),r.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}i=l}else if(e.substr(i+1,2)==="!D"){const l=Bi(e,i);this.docTypeEntities=l.entities,i=l.i}else if(e.substr(i+1,2)==="!["){const l=ke(e,"]]>",i,"CDATA is not closed.")-2,a=e.substring(i+9,l);n=this.saveTextToParentTag(n,r,s);
4let c=this.parseTextData(a,r.tagname,s,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}]):r.add(this.options.textNodeName,c),i=l+2}else{let l=bt(e,i,this.options.removeNSPrefix),a=l.tagName;const c=l.rawTagName;let u=l.tagExp,p=l.attrExpPresent,h=l.closeIndex;this.options.transformTagName&&(a=this.options.transformTagName(a)),r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,s,!1));const m=r;if(m&&this.options.unpairedTags.indexOf(m.tagname)!==-1&&(r=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),a!==t.tagname&&(s+=s?"."+a:a),this.isItStopNode(this.options.stopNodes,s,a)){let v="";if(u.length>0&&u.lastIndexOf("/")===u.length-1)a[a.length-1]==="/"?(a=a.substr(0,a.length-1),s=s.substr(0,s.length-1),u=a):u=u.substr(0,u.length-1),i=l.closeIndex;else if(this.options.unpairedTags.indexOf(a)!==-1)i=l.closeIndex;else{const j=this.readStopNodeData(e,c,h+1);if(!j)throw new Error(`Unexpected end of ${c}`);i=j.i,v=j.tagContent}const _=new Ve(a);a!==u&&p&&(_[":@"]=this.buildAttributesMap(u,s,a)),v&&(v=this.parseTextData(v,a,s,!0,p,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),_.add(this.options.textNodeName,v),this.addChild(r,_,s)}else{if(u.length>0&&u.lastIndexOf("/")===u.length-1){a[a.length-1]==="/"?(a=a.substr(0,a.length-1),s=s.substr(0,s.length-1),u=a):u=u.substr(0,u.length-1),this.options.transformTagName&&(a=this.options.transformTagName(a));const v=new Ve(a);a!==u&&p&&(v[":@"]=this.buildAttributesMap(u,s,a)),this.addChild(r,v,s),s=s.substr(0,s.lastIndexOf("."))}else{const v=new Ve(a);this.tagsNodeStack.push(r),a!==u&&p&&(v[":@"]=this.buildAttributesMap(u,s,a)),this.addChild(r,v,s),r=v}n="",i=h}}else n+=e[i];return t.child};function Zi(e,t,r){const n=this.options.updateTag(t.tagname,r,t[":@"]);n===!1||(typeof n=="string"&&(t.tagname=n),e.addChild(t))}const Ji=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const r=this.docTypeEntities[t];e=e.replace(r.regx,r.val)}for(let t in this.lastEntities){const r=this.lastEntities[t];e=e.replace(r.regex,r.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const r=this.htmlEntities[t];e=e.replace(r.regex,r.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function eo(e,t,r,n){return e&&(n===void 0&&(n=Object.keys(t.child).length===0),e=this.parseTextData(e,t.tagname,r,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,n),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function to(e,t,r){const n="*."+r;for(const s in e){const i=e[s];if(n===i||t===i)return!0}return!1}function ro(e,t,r=">"){let n,s="";for(let i=t;i<e.length;i++){let l=e[i];if(n)l===n&&(n="");else if(l==='"'||l==="'")n=l;else if(l===r[0])if(r[1]){if(e[i+1]===r[1])return{data:s,index:i}}else return{data:s,index:i};else l==="	"&&(l=" ");s+=l}}function ke(e,t,r,n){const s=e.indexOf(t,r);if(s===-1)throw new Error(n);return s+t.length-1}function bt(e,t,r,n=">"){const s=ro(e,t+1,n);if(!s)return;let i=s.data;const l=s.index,a=i.search(/\s/);let c=i,u=!0;a!==-1&&(c=i.substring(0,a),i=i.substring(a+1).trimStart());const p=c;if(r){const h=c.indexOf(":");h!==-1&&(c=c.substr(h+1),u=c!==s.data.substr(h+1))}return{tagName:c,tagExp:i,closeIndex:l,attrExpPresent:u,rawTagName:p}}function no(e,t,r){const n=r;let s=1;for(;r<e.length;r++)if(e[r]==="<")if(e[r+1]==="/"){const i=ke(e,">",r,`${t} is not closed`);if(e.substring(r+2,i).trim()===t&&(s--,s===0))return{tagContent:e.substring(n,r),i};r=i}else if(e[r+1]==="?")r=ke(e,"?>",r+1,"StopNode is not closed.");else if(e.substr(r+1,3)==="!--")r=ke(e,"-->",r+3,"StopNode is not closed.");else if(e.substr(r+1,2)==="![")r=ke(e,"]]>",r,"StopNode is not closed.")-2;else{const i=bt(e,r,">");i&&((i&&i.tagName)===t&&i.tagExp[i.tagExp.length-1]!=="/"&&s++,r=i.closeIndex)}}function jt(e,t,r){if(t&&typeof e=="string"){const n=e.trim();return n==="true"?!0:n==="false"?!1:Vi(e,r)}else return wn.isExist(e)?e:""}var so=Hi,En={};function io(e,t){return Cn(e,t)}function Cn(e,t,r){let n;const s={};for(let i=0;i<e.length;i++){const l=e[i],a=oo(l);let c="";if(r===void 0?c=a:c=r+"."+a,a===t.textNodeName)n===void 0?n=l[a]:n+=""+l[a];else{if(a===void 0)continue;if(l[a]){let u=Cn(l[a],t,c);const p=lo(u,t);l[":@"]?ao(u,l[":@"],c,t):Object.keys(u).length===1&&u[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?u=u[t.textNodeName]:Object.keys(u).length===0&&(t.alwaysCreateTextNode?u[t.textNodeName]="":u=""),s[a]!==void 0&&s.hasOwnProperty(a)?(Array.isArray(s[a])||(s[a]=[s[a]]),s[a].push(u)):t.isArray(a,c,p)?s[a]=[u]:s[a]=u}}}return typeof n=="string"?n.length>0&&(s[t.textNodeName]=n):n!==void 0&&(s[t.textNodeName]=n),s}function oo(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];
4if(n!==":@")return n}}function ao(e,t,r,n){if(t){const s=Object.keys(t),i=s.length;for(let l=0;l<i;l++){const a=s[l];n.isArray(a,r+"."+a,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}function lo(e,t){const{textNodeName:r}=t,n=Object.keys(e).length;return!!(n===0||n===1&&(e[r]||typeof e[r]=="boolean"||e[r]===0))}En.prettify=io;const{buildOptions:co}=Pt,uo=so,{prettify:fo}=En,ho=It;let po=class{constructor(e){this.externalEntities={},this.options=co(e)}parse(e,t){if(typeof e!="string")if(e.toString)e=e.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});const s=ho.validate(e,t);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const r=new uo(this.options);r.addExternalEntities(this.externalEntities);const n=r.parseXml(e);return this.options.preserveOrder||n===void 0?n:fo(n,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}};var go=po;const mo=`
5`;function vo(e,t){let r="";return t.format&&t.indentBy.length>0&&(r=mo),Sn(e,t,"",r)}function Sn(e,t,r,n){let s="",i=!1;for(let l=0;l<e.length;l++){const a=e[l],c=xo(a);if(c===void 0)continue;let u="";if(r.length===0?u=c:u=`${r}.${c}`,c===t.textNodeName){let _=a[c];yo(u,t)||(_=t.tagValueProcessor(c,_),_=kn(_,t)),i&&(s+=n),s+=_,i=!1;continue}else if(c===t.cdataPropName){i&&(s+=n),s+=`<![CDATA[${a[c][0][t.textNodeName]}]]>`,i=!1;continue}else if(c===t.commentPropName){s+=n+`<!--${a[c][0][t.textNodeName]}-->`,i=!0;continue}else if(c[0]==="?"){const _=cr(a[":@"],t),j=c==="?xml"?"":n;let w=a[c][0][t.textNodeName];w=w.length!==0?" "+w:"",s+=j+`<${c}${w}${_}?>`,i=!0;continue}let p=n;p!==""&&(p+=t.indentBy);const h=cr(a[":@"],t),m=n+`<${c}${h}`,v=Sn(a[c],t,u,p);t.unpairedTags.indexOf(c)!==-1?t.suppressUnpairedNode?s+=m+">":s+=m+"/>":(!v||v.length===0)&&t.suppressEmptyNode?s+=m+"/>":v&&v.endsWith(">")?s+=m+`>${v}${n}</${c}>`:(s+=m+">",v&&n!==""&&(v.includes("/>")||v.includes("</"))?s+=n+t.indentBy+v+n:s+=v,s+=`</${c}>`),i=!0}return s}function xo(e){const t=Object.keys(e);for(let r=0;r<t.length;r++){const n=t[r];if(e.hasOwnProperty(n)&&n!==":@")return n}}function cr(e,t){let r="";if(e&&!t.ignoreAttributes)for(let n in e){if(!e.hasOwnProperty(n))continue;let s=t.attributeValueProcessor(n,e[n]);s=kn(s,t),s===!0&&t.suppressBooleanAttributes?r+=` ${n.substr(t.attributeNamePrefix.length)}`:r+=` ${n.substr(t.attributeNamePrefix.length)}="${s}"`}return r}function yo(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let r=e.substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+r)return!0;return!1}function kn(e,t){if(e&&e.length>0&&t.processEntities)for(let r=0;r<t.entities.length;r++){const n=t.entities[r];e=e.replace(n.regex,n.val)}return e}var bo=vo;const jo=bo,_o=_n,wo={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function we(e){this.options=Object.assign({},wo,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=_o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=So),this.processTextOrObjNode=Eo,this.options.format?(this.indentate=Co,this.tagEndChar=`>
6`,this.newLine=`
7`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}we.prototype.build=function(e){return this.options.preserveOrder?jo(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)};we.prototype.j2x=function(e,t,r){let n="",s="";const i=r.join(".");for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l))if(typeof e[l]>"u")this.isAttribute(l)&&(s+="");else if(e[l]===null)this.isAttribute(l)?s+="":l[0]==="?"?s+=this.indentate(t)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(t)+"<"+l+"/"+this.tagEndChar;
7else if(e[l]instanceof Date)s+=this.buildTextValNode(e[l],l,"",t);else if(typeof e[l]!="object"){const a=this.isAttribute(l);if(a&&!this.ignoreAttributesFn(a,i))n+=this.buildAttrPairStr(a,""+e[l]);else if(!a)if(l===this.options.textNodeName){let c=this.options.tagValueProcessor(l,""+e[l]);s+=this.replaceEntitiesValue(c)}else s+=this.buildTextValNode(e[l],l,"",t)}else if(Array.isArray(e[l])){const a=e[l].length;let c="",u="";for(let p=0;p<a;p++){const h=e[l][p];if(!(typeof h>"u"))if(h===null)l[0]==="?"?s+=this.indentate(t)+"<"+l+"?"+this.tagEndChar:s+=this.indentate(t)+"<"+l+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){const m=this.j2x(h,t+1,r.concat(l));c+=m.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(u+=m.attrStr)}else c+=this.processTextOrObjNode(h,l,t,r);else if(this.options.oneListGroup){let m=this.options.tagValueProcessor(l,h);m=this.replaceEntitiesValue(m),c+=m}else c+=this.buildTextValNode(h,l,"",t)}this.options.oneListGroup&&(c=this.buildObjectNode(c,l,u,t)),s+=c}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){const a=Object.keys(e[l]),c=a.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(a[u],""+e[l][a[u]])}else s+=this.processTextOrObjNode(e[l],l,t,r);return{attrStr:n,val:s}};we.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&t==="true"?" "+e:" "+e+'="'+t+'"'};function Eo(e,t,r,n){const s=this.j2x(e,r+1,n.concat(t));return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,s.attrStr,r):this.buildObjectNode(s.val,t,s.attrStr,r)}we.prototype.buildObjectNode=function(e,t,r,n){if(e==="")return t[0]==="?"?this.indentate(n)+"<"+t+r+"?"+this.tagEndChar:this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar;{let s="</"+t+this.tagEndChar,i="";return t[0]==="?"&&(i="?",s=""),(r||r==="")&&e.indexOf("<")===-1?this.indentate(n)+"<"+t+r+i+">"+e+s:this.options.commentPropName!==!1&&t===this.options.commentPropName&&i.length===0?this.indentate(n)+`<!--${e}-->`+this.newLine:this.indentate(n)+"<"+t+r+i+this.tagEndChar+e+this.indentate(n)+s}};we.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`></${e}`,t};we.prototype.buildTextValNode=function(e,t,r,n){if(this.options.cdataPropName!==!1&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(n)+`<!--${e}-->`+this.newLine;if(t[0]==="?")return this.indentate(n)+"<"+t+r+"?"+this.tagEndChar;{let s=this.options.tagValueProcessor(t,e);return s=this.replaceEntitiesValue(s),s===""?this.indentate(n)+"<"+t+r+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+r+">"+s+"</"+t+this.tagEndChar}};we.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const r=this.options.entities[t];e=e.replace(r.regex,r.val)}return e};function Co(e){return this.options.indentBy.repeat(e)}function So(e){return e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName?e.substr(this.attrPrefixLen):!1}var ko=we;const No=It,Ao=go,Oo=ko;var Nn={XMLParser:Ao,XMLValidator:No,XMLBuilder:Oo};const To=new Nn.XMLParser({preserveOrder:!0,ignoreAttributes:!1,attributeNamePrefix:"",allowBooleanAttributes:!0,commentPropName:At,cdataPropName:Ot,parseTagValue:!1});function Io(e){return C.useMemo(()=>{try{if(!Nn.XMLValidator.validate(e))throw new Error("Invalid XML!");const t=To.parse(e);if(typeof e=="string"&&e.trim().length>0&&t.length===0)throw new Error("Invalid XML!");return{json:t,valid:!0}}catch(t){return{json:null,valid:!1,errorMessage:`Fail to parse: ${t.message}`}}},[e])}function Fo(){this.__data__=[],this.size=0}var Po=Fo;function Ro(e,t){return e===t||e!==e&&t!==t}var Rt=Ro,Do=Rt;function Lo(e,t){for(var r=e.length;r--;)if(Do(e[r][0],t))return r;return-1}var lt=Lo,$o=lt,Mo=Array.prototype,zo=Mo.splice;function Uo(e){var t=this.__data__,r=$o(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zo.call(t,r,1),--this.size,!0}var Bo=Uo,Vo=lt;function Wo(e){var t=this.__data__,r=Vo(t,e);return r<0?void 0:t[r][1]}var Ho=Wo,qo=lt;function Ko(e){return qo(this.__data__,e)>-1}var Go=Ko,Xo=lt;function Qo(e,t){var r=this.__data__,n=Xo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Yo=Qo,Zo=Po,Jo=Bo,ea=Ho,ta=Go,ra=Yo;function Fe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fe.prototype.clear=Zo;Fe.prototype.delete=Jo;Fe.prototype.get=ea;Fe.prototype.has=ta;Fe.prototype.set=ra;var ct=Fe,na=ct;function sa(){this.__data__=new na,this.size=0}var ia=sa;function oa(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var aa=oa;function la(e){return this.__data__.get(e)}var ca=la;function ua(e){return this.__data__.has(e)}var da=ua,fa=typeof Xe=="object"&&Xe&&Xe.Object===Object&&Xe,An=fa,ha=An,pa=typeof self=="object"&&self&&self.Object===Object&&self,ga=ha||pa||Function("return this")(),ve=ga,ma=ve,va=ma.Symbol,Pe=va,ur=Pe,On=Object.prototype,xa=On.hasOwnProperty,ya=On.toString,We=ur?ur.toStringTag:void 0;function ba(e){var t=xa.call(e,We),r=e[We];try{e[We]=void 0;var n=!0}catch{}var s=ya.call(e);return n&&(t?e[We]=r:delete e[We]),s}var ja=ba,_a=Object.prototype,wa=_a.toString;function Ea(e){return wa.call(e)}var Ca=Ea,dr=Pe,Sa=ja,ka=Ca,Na="[object Null]",Aa="[object Undef
7ined]",fr=dr?dr.toStringTag:void 0;function Oa(e){return e==null?e===void 0?Aa:Na:fr&&fr in Object(e)?Sa(e):ka(e)}var Re=Oa;function Ta(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ke=Ta,Ia=Re,Fa=Ke,Pa="[object AsyncFunction]",Ra="[object Function]",Da="[object GeneratorFunction]",La="[object Proxy]";function $a(e){if(!Fa(e))return!1;var t=Ia(e);return t==Ra||t==Da||t==Pa||t==La}var Tn=$a,Ma=ve,za=Ma["__core-js_shared__"],Ua=za,mt=Ua,hr=function(){var e=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Ba(e){return!!hr&&hr in e}var Va=Ba,Wa=Function.prototype,Ha=Wa.toString;function qa(e){if(e!=null){try{return Ha.call(e)}catch{}try{return e+""}catch{}}return""}var In=qa,Ka=Tn,Ga=Va,Xa=Ke,Qa=In,Ya=/[\\^$.*+?()[\]{}|]/g,Za=/^\[object .+?Constructor\]$/,Ja=Function.prototype,el=Object.prototype,tl=Ja.toString,rl=el.hasOwnProperty,nl=RegExp("^"+tl.call(rl).replace(Ya,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sl(e){if(!Xa(e)||Ga(e))return!1;
vendor: 9,935 bytes, line 7
7var t=Ka(e)?nl:Za;return t.test(Qa(e))}var il=sl;function ol(e,t){return e==null?void 0:e[t]}var al=ol,ll=il,cl=al;function ul(e,t){var r=cl(e,t);return ll(r)?r:void 0}var Ae=ul,dl=Ae,fl=ve,hl=dl(fl,"Map"),Dt=hl,pl=Ae,gl=pl(Object,"create"),ut=gl,pr=ut;function ml(){this.__data__=pr?pr(null):{},this.size=0}var vl=ml;function xl(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yl=xl,bl=ut,jl="__lodash_hash_undefined__",_l=Object.prototype,wl=_l.hasOwnProperty;function El(e){var t=this.__data__;if(bl){var r=t[e];return r===jl?void 0:r}return wl.call(t,e)?t[e]:void 0}var Cl=El,Sl=ut,kl=Object.prototype,Nl=kl.hasOwnProperty;function Al(e){var t=this.__data__;return Sl?t[e]!==void 0:Nl.call(t,e)}var Ol=Al,Tl=ut,Il="__lodash_hash_undefined__";function Fl(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tl&&t===void 0?Il:t,this}var Pl=Fl,Rl=vl,Dl=yl,Ll=Cl,$l=Ol,Ml=Pl;function De(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}De.prototype.clear=Rl;De.prototype.delete=Dl;De.prototype.get=Ll;De.prototype.has=$l;De.prototype.set=Ml;var zl=De,gr=zl,Ul=ct,Bl=Dt;function Vl(){this.size=0,this.__data__={hash:new gr,map:new(Bl||Ul),string:new gr}}var Wl=Vl;function Hl(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ql=Hl,Kl=ql;function Gl(e,t){var r=e.__data__;return Kl(t)?r[typeof t=="string"?"string":"hash"]:r.map}var dt=Gl,Xl=dt;function Ql(e){var t=Xl(this,e).delete(e);return this.size-=t?1:0,t}var Yl=Ql,Zl=dt;function Jl(e){return Zl(this,e).get(e)}var ec=Jl,tc=dt;function rc(e){return tc(this,e).has(e)}var nc=rc,sc=dt;function ic(e,t){var r=sc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var oc=ic,ac=Wl,lc=Yl,cc=ec,uc=nc,dc=oc;function Le(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Le.prototype.clear=ac;Le.prototype.delete=lc;Le.prototype.get=cc;Le.prototype.has=uc;Le.prototype.set=dc;var Lt=Le,fc=ct,hc=Dt,pc=Lt,gc=200;function mc(e,t){var r=this.__data__;if(r instanceof fc){var n=r.__data__;if(!hc||n.length<gc-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new pc(n)}return r.set(e,t),this.size=r.size,this}var vc=mc,xc=ct,yc=ia,bc=aa,jc=ca,_c=da,wc=vc;function $e(e){var t=this.__data__=new xc(e);this.size=t.size}$e.prototype.clear=yc;$e.prototype.delete=bc;$e.prototype.get=jc;$e.prototype.has=_c;$e.prototype.set=wc;var Fn=$e,Ec="__lodash_hash_undefined__";function Cc(e){return this.__data__.set(e,Ec),this}var Sc=Cc;function kc(e){return this.__data__.has(e)}var Nc=kc,Ac=Lt,Oc=Sc,Tc=Nc;function et(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ac;++t<r;)this.add(e[t])}et.prototype.add=et.prototype.push=Oc;et.prototype.has=Tc;var Ic=et;function Fc(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Pc=Fc;function Rc(e,t){return e.has(t)}var Dc=Rc,Lc=Ic,$c=Pc,Mc=Dc,zc=1,Uc=2;function Bc(e,t,r,n,s,i){var l=r&zc,a=e.length,c=t.length;if(a!=c&&!(l&&c>a))return!1;var u=i.get(e),p=i.get(t);if(u&&p)return u==t&&p==e;var h=-1,m=!0,v=r&Uc?new Lc:void 0;for(i.set(e,t),i.set(t,e);++h<a;){var _=e[h],j=t[h];if(n)var w=l?n(j,_,h,t,e,i):n(_,j,h,e,t,i);if(w!==void 0){if(w)continue;m=!1;break}if(v){if(!$c(t,function(I,Y){if(!Mc(v,Y)&&(_===I||s(_,I,r,n,i)))return v.push(Y)})){m=!1;break}}else if(!(_===j||s(_,j,r,n,i))){m=!1;break}}return i.delete(e),i.delete(t),m}var Pn=Bc,Vc=ve,Wc=Vc.Uint8Array,Rn=Wc;function Hc(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}var qc=Hc;function Kc(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Gc=Kc,mr=Pe,vr=Rn,Xc=Rt,Qc=Pn,Yc=qc,Zc=Gc,Jc=1,eu=2,tu="[object Boolean]",ru="[object Date]",nu="[object Error]",su="[object Map]",iu="[object Number]",ou="[object RegExp]",au="[object Set]",lu="[object String]",cu="[object Symbol]",uu="[object ArrayBuffer]",du="[object DataView]",xr=mr?mr.prototype:void 0,vt=xr?xr.valueOf:void 0;function fu(e,t,r,n,s,i,l){switch(r){case du:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case uu:return!(e.byteLength!=t.byteLength||!i(new vr(e),new vr(t)));case tu:case ru:case iu:return Xc(+e,+t);case nu:return e.name==t.name&&e.message==t.message;case ou:case lu:return e==t+"";case su:var a=Yc;case au:var c=n&Jc;if(a||(a=Zc),e.size!=t.size&&!c)return!1;var u=l.get(e);if(u)return u==t;n|=eu,l.set(e,t);var p=Qc(a(e),a(t),n,s,i,l);return l.delete(e),p;case cu:if(vt)return vt.call(e)==vt.call(t)}return!1}var hu=fu;function pu(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var $t=pu,gu=Array.isArray,Ee=gu,mu=$t,vu=Ee;function xu(e,t,r){var n=t(e);return vu(e)?n:mu(n,r(e))}var Dn=xu;function yu(e,t){for(var r=-1,n=e==null?0:e.length,s=0,i=[];++r<n;){var l=e[r];t(l,r,e)&&(i[s++]=l)}return i}var bu=yu;function ju(){return[]}var Ln=ju,_u=bu,wu=Ln,Eu=Object.prototype,Cu=Eu.propertyIsEnumerable,yr=Object.getOwnPropertySymbols,Su=yr?function(e){return e==null?[]:(e=Object(e),_u(yr(e),function(t){return Cu.call(e,t)}))}:wu,Mt=Su;function ku(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Nu=ku;function Au(e){return e!=null&&typeof e=="object"}var Ce=Au,Ou=Re,Tu=Ce,Iu="[object Arguments]";function Fu(e){return Tu(e)&&Ou(e)==Iu}var Pu=Fu,br=Pu,Ru=Ce,$n=Object.prototype,Du=$n.hasOwnProperty,Lu=$n.propertyIsEnumerable,$u=br(function(){return arguments}())?br:function(e){return Ru(e)&&Du.call(e,"callee")&&!Lu.call(e,"callee")},Mn=$u,tt={exports:{}};function Mu(){return!1}var zu=Mu;tt.exports;(function(e,t){var r=ve,n=zu,s=t&&!t.nodeType&&t,i=s&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===s,a=l?r.Buffer:void 0,c=a?a.isBuffer:void 0,u=c||n;e.exports=u})(tt,tt.exports);var zt=tt.exports,Uu=9007199254740991,Bu=/^(?:0|[1-9]\d*)$/;function Vu(e,t){var r=typeof e;return t=t??Uu,!!t&&(r=="number"||r!="symbol"&&Bu.test(e))&&e>-1&&e%1==0&&e<t}var Wu=Vu,Hu=9007199254740991;function qu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hu}var zn=qu,Ku=Re,Gu=zn,Xu=Ce,Qu="[object Arguments]",Yu="[object Array]",Zu="[object Boolean]",Ju="[object Date]",ed="[object Error]",td="[object Function]",rd="[object Map]",nd="[object Number]",sd="[object Object]",id="[object RegExp]",od="[object Set]",ad="[object String]",ld="[object WeakMap]",cd="[object ArrayBuffer]",ud="[object DataView]",dd="[object Float32Array]",fd="[object Float64Array]",hd="[object Int8Array]",pd="[object Int16Array]",gd="[object Int32Array]",md="[object Uint8Array]",vd="[object Uint8ClampedArray]",xd="[object Uint16Array]",yd="[object Uint32Array]",B={};B[dd]=B[fd]=B[hd]=B[pd]=B[gd]=B[md]=B[vd]=B[xd]=B[yd]=!0;B[Qu]=B[Yu]=B[cd]=B[Zu]=B[ud]=B[Ju]=B[ed]=B[td]=B[rd]=B[nd]=B[sd]=B[id]=B[od]=B[ad]=B[ld]=!1;function bd(e){return Xu(e)&&Gu(e.length)&&!!B[Ku(e)]}var jd=bd;function _d(e){return function(t){return e(t)}}var Ut=_d,rt={exports:{}};rt.exports;(function(e,t){var r=An,n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===n,l=i&&r.process,a=function(){try{var c=s&&s.require&&s.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=a})(rt,rt.exports);var Bt=rt.exports,wd=jd,Ed=Ut,jr=Bt,_r=jr&&jr.isTypedArray,Cd=_r?Ed(_r):wd,Un=Cd,Sd=Nu,kd=Mn,Nd=Ee,Ad=zt,Od=Wu,Td=Un,Id=Object.prototype,Fd=Id.hasOwnProperty;function Pd(e,t){var r=Nd(e),n=!r&&kd(e),s=!r&&!n&&Ad(e),i=!r&&!n&&!s&&Td(e),l=r||n||s||i,a=l?Sd(e.length,String):[],c=a.length;for(var u in e)(t||Fd.call(e,u))&&!(l&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Od(u,c)))&&a.push(u);return a}var Bn=Pd,Rd=Object.prototype;function Dd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Rd;return e===r}var Vt=Dd;function Ld(e,t){return function(r){return e(t(r))}}var Vn=Ld,$d=Vn,Md=$d(Object.keys,Object),zd=Md,Ud=Vt,Bd=zd,Vd=Object.prototype,Wd=Vd.hasOwnProperty;function Hd(e){if(!Ud(e))return Bd(e);var t=[];for(var r in Object(e))Wd.call(e,r)&&r!="constructor"&&t.push(r);return t}var qd=Hd,Kd=Tn,Gd=zn;function Xd(e){return e!=null&&Gd(e.length)&&!Kd(e)}var Wn=Xd,Qd=Bn,Yd=qd,Zd=Wn;function Jd(e){return Zd(e)?Qd(e):Yd(e)}var Wt=Jd,ef=Dn,tf=Mt,rf=Wt;function nf(e){return ef(e,rf,tf)}var Hn=nf,wr=Hn,sf=1,of=Object.prototype,af=of.hasOwnProperty;function lf(e,t,r,n,s,i){var l=r&sf,a=wr(e),c=a.length,u=wr(t),p=u.length;if(c!=p&&!l)return!1;for(var h=c;h--;){var m=a[h];if(!(l?m in t:af.call(t,m)))return!1}var v=i.get(e),_=i.get(t);if(v&&_)return v==t&&_==e;var j=!0;i.set(e,t),i.set(t,e);for(var w=l;++h<c;){m=a[h];var I=e[m],Y=t[m];if(n)var Z=l?n(Y,I,m,t,e,i):n(I,Y,m,e,t,i);if(!(Z===void 0?I===Y||s(I,Y,r,n,i):Z)){j=!1;break}w||(w=m=="constructor")}if(j&&!w){var X=e.constructor,te=t.constructor;X!=te&&"constructor"in e&&"constructor"in t&&!(typeof X=="function"&&X instanceof X&&typeof te=="function"&&te instanceof te)&&(j=!1)}return i.delete(e),i.delete(t),j}var cf=lf,uf=Ae,df=ve,ff=uf(df,"DataView"),hf=ff,pf=Ae,gf=ve,mf=pf(gf,"Promise"),vf=mf,xf=Ae,yf=ve,bf=xf(yf,"Set"),jf=bf,_f=Ae,wf=ve,Ef=_f(wf,"WeakMap"),Cf=Ef,_t=hf,wt=Dt,Et=vf,Ct=jf,St=Cf,qn=Re,Me=In,Er="[object Map]",Sf="[object Object]",Cr="[object Promise]",Sr="[object Set]",kr="[object WeakMap]",Nr="[object DataView]",kf=Me(_t),Nf=Me(wt),Af=Me(Et),Of=Me(Ct),Tf=Me(St),Se=qn;(_t&&Se(new _t(new ArrayBuffer(1)))!=Nr||wt&&Se(new wt)!=Er||Et&&Se(Et.resolve())!=Cr||Ct&&Se(new Ct)!=Sr||St&&Se(new St)!=kr)&&(Se=function(e){var t=qn(e),r=t==Sf?e.constructor:void 0,n=r?Me(r):"";if(n)switch(n){case kf:return Nr;case Nf:return Er;case Af:return Cr;case Of:return Sr;case Tf:return kr}return t});var ft=Se,xt=Fn,If=Pn,Ff=hu,Pf=cf,Ar=ft,Or=Ee,Tr=zt,Rf=Un,Df=1,Ir="[object Arguments]",Fr="[object Array]",Qe="[object Object]",Lf=Object.prototype,Pr=Lf.hasOwnProperty;function $f(e,t,r,n,s,i){var l=Or(e),a=Or(t),c=l?Fr:Ar(e),u=a?Fr:Ar(t);c=c==Ir?Qe:c,u=u==Ir?Qe:u;var p=c==Qe,h=u==Qe,m=c==u;if(m&&Tr(e)){if(!Tr(t))return!1;l=!0,p=!1}
7if(m&&!p)return i||(i=new xt),l||Rf(e)?If(e,t,r,n,s,i):Ff(e,t,c,r,n,s,i);if(!(r&Df)){var v=p&&Pr.call(e,"__wrapped__"),_=h&&Pr.call(t,"__wrapped__");if(v||_){var j=v?e.value():e,w=_?t.value():t;return i||(i=new xt),s(j,w,r,n,i)}}return m?(i||(i=new xt),Pf(e,t,r,n,s,i)):!1}var Mf=$f,zf=Mf,Rr=Ce;function Kn(e,t,r,n,s){return e===t?!0:e==null||t==null||!Rr(e)&&!Rr(t)?e!==e&&t!==t:zf(e,t,r,n,Kn,s)}var Uf=Kn,Bf=Uf;function Vf(e,t){return Bf(e,t)}var Wf=Vf;const Hf=Tt(Wf);function qf(e){const{indentation:t,children:r,isInline:n}=e,{theme:s}=je();return o.jsxs("div",{style:{color:s.cdataColor},children:[o.jsx("span",{children:`${t}<![CDATA[`}),r,o.jsx("span",{children:`${n?"":t}]]>`})]})}const Kf=e=>C.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e},C.createElement("path",{d:"M9 17.898C9 18.972 10.2649 19.546 11.0731 18.8388L17.3838 13.3169C18.1806 12.6197 18.1806 11.3801 17.3838 10.6829L11.0731 5.16108C10.2649 4.45388 9 5.02785 9 6.1018V17.898Z"}));function Gn(e){const{collapsible:t,theme:r}=je(),{collapsed:n}=e;return t?o.jsx("span",{style:{position:"relative"},children:o.jsx("span",{style:{position:"absolute",right:"0",border:0,padding:0,background:"none"},children:o.jsx(Kf,{fill:r.separatorColor,style:{transform:`rotate(${n?0:90}deg)`,transition:"transform 0.2s"}})})}):null}function Gf(e){return e==null}var Xf=Gf;const Dr=Tt(Xf);function Xn(e){const{collapsible:t,initialCollapsedDepth:r}=je(),[n,s]=C.useState(()=>Dr(r)||!t?!1:e>=r),i=()=>s(l=>!l);return C.useEffect(()=>{s(Dr(r)||!t?!1:e>=r)},[r,e,t]),{collapsed:n,buttonProps:t?{onClick:i,role:"button",style:{cursor:"pointer"}}:{}}}function Qf(e){const{indentation:t,children:r,isInline:n,level:s}=e,{theme:i}=je(),{collapsed:l,buttonProps:a}=Xn(s);return o.jsxs("div",{style:{color:i.commentColor},children:[o.jsxs("span",{...a,children:[o.jsx("span",{children:t}),o.jsx(Gn,{collapsed:l}),o.jsx("span",{children:"<!-- "})]}),!l&&r,l&&"...",o.jsx("span",{children:`${n||l?" ":t}-->`})]})}function Qn(e){const{attributes:t}=e,{theme:r}=je();return t?o.jsx("span",{children:Object.entries(t).map(([n,s])=>o.jsxs("span",{children:[o.jsx("span",{style:{color:r.attributeKeyColor},children:` ${n}`}),o.jsx("span",{style:{color:r.separatorColor},children:"="}),o.jsx("span",{style:{color:r.attributeValueColor},children:`"${s}"`})]},`attribute-${n}`))}):null}function Yf(e){const{indentation:t,tagKey:r,attributes:n}=e,{theme:s}=je();return o.jsxs("div",{children:[o.jsx("span",{style:{color:s.separatorColor},children:`${t}<?`}),o.jsx("span",{style:{color:s.tagColor},children:`${r.slice(1)}`}),o.jsx(Qn,{attributes:n}),o.jsx("span",{style:{color:s.separatorColor},children:"?>"})]})}function Zf(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var Yn=Zf;function Jf(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var eh=Jf,th=Ae,rh=function(){try{var e=th(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Zn=rh,Lr=Zn;function nh(e,t,r){t=="__proto__"&&Lr?Lr(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Jn=nh,sh=Jn,ih=Rt,oh=Object.prototype,ah=oh.hasOwnProperty;function lh(e,t,r){var n=e[t];(!(ah.call(e,t)&&ih(n,r))||r===void 0&&!(t in e))&&sh(e,t,r)}var es=lh,ch=es,uh=Jn;function dh(e,t,r,n){var s=!r;r||(r={});for(var i=-1,l=t.length;++i<l;){var a=t[i],c=n?n(r[a],e[a],a,r,e):void 0;c===void 0&&(c=e[a]),s?uh(r,a,c):ch(r,a,c)}return r}var Ge=dh,fh=Ge,hh=Wt;function ph(e,t){return e&&fh(t,hh(t),e)}var gh=ph;function mh(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var vh=mh,xh=Ke,yh=Vt,bh=vh,jh=Object.prototype,_h=jh.hasOwnProperty;function wh(e){if(!xh(e))return bh(e);var t=yh(e),r=[];for(var n in e)n=="constructor"&&(t||!_h.call(e,n))||r.push(n);return r}var Eh=wh,Ch=Bn,Sh=Eh,kh=Wn;function Nh(e){return kh(e)?Ch(e,!0):Sh(e)}var Ht=Nh,Ah=Ge,Oh=Ht;function Th(e,t){return e&&Ah(t,Oh(t),e)}var Ih=Th,nt={exports:{}};nt.exports;(function(e,t){var r=ve,n=t&&!t.nodeType&&t,s=n&&!0&&e&&!e.nodeType&&e,i=s&&s.exports===n,l=i?r.Buffer:void 0,a=l?l.allocUnsafe:void 0;function c(u,p){if(p)return u.slice();var h=u.length,m=a?a(h):new u.constructor(h);return u.copy(m),m}e.exports=c})(nt,nt.exports);var Fh=nt.exports;function Ph(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Rh=Ph,Dh=Ge,Lh=Mt;function $h(e,t){return Dh(e,Lh(e),t)}var Mh=$h,zh=Vn,Uh=zh(Object.getPrototypeOf,Object),qt=Uh,Bh=$t,Vh=qt,Wh=Mt,Hh=Ln,qh=Object.getOwnPropertySymbols,Kh=qh?function(e){for(var t=[];e;)Bh(t,Wh(e)),e=Vh(e);return t}:Hh,ts=Kh,Gh=Ge,Xh=ts;function Qh(e,t){return Gh(e,Xh(e),t)}var Yh=Qh,Zh=Dn,Jh=ts,ep=Ht;function tp(e){return Zh(e,ep,Jh)}var rs=tp,rp=Object.prototype,np=rp.hasOwnProperty;function sp(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&np.call(e,"index")&&(r.index=e.index,r.input
vendor: 4,265 bytes, line 7
7=e.input),r}var ip=sp,$r=Rn;function op(e){var t=new e.constructor(e.byteLength);return new $r(t).set(new $r(e)),t}var Kt=op,ap=Kt;function lp(e,t){var r=t?ap(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var cp=lp,up=/\w*$/;function dp(e){var t=new e.constructor(e.source,up.exec(e));return t.lastIndex=e.lastIndex,t}var fp=dp,Mr=Pe,zr=Mr?Mr.prototype:void 0,Ur=zr?zr.valueOf:void 0;function hp(e){return Ur?Object(Ur.call(e)):{}}var pp=hp,gp=Kt;function mp(e,t){var r=t?gp(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var vp=mp,xp=Kt,yp=cp,bp=fp,jp=pp,_p=vp,wp="[object Boolean]",Ep="[object Date]",Cp="[object Map]",Sp="[object Number]",kp="[object RegExp]",Np="[object Set]",Ap="[object String]",Op="[object Symbol]",Tp="[object ArrayBuffer]",Ip="[object DataView]",Fp="[object Float32Array]",Pp="[object Float64Array]",Rp="[object Int8Array]",Dp="[object Int16Array]",Lp="[object Int32Array]",$p="[object Uint8Array]",Mp="[object Uint8ClampedArray]",zp="[object Uint16Array]",Up="[object Uint32Array]";function Bp(e,t,r){var n=e.constructor;switch(t){case Tp:return xp(e);case wp:case Ep:return new n(+e);case Ip:return yp(e,r);case Fp:case Pp:case Rp:case Dp:case Lp:case $p:case Mp:case zp:case Up:return _p(e,r);case Cp:return new n;case Sp:case Ap:return new n(e);case kp:return bp(e);case Np:return new n;case Op:return jp(e)}}var Vp=Bp,Wp=Ke,Br=Object.create,Hp=function(){function e(){}return function(t){if(!Wp(t))return{};if(Br)return Br(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),qp=Hp,Kp=qp,Gp=qt,Xp=Vt;function Qp(e){return typeof e.constructor=="function"&&!Xp(e)?Kp(Gp(e)):{}}var Yp=Qp,Zp=ft,Jp=Ce,eg="[object Map]";function tg(e){return Jp(e)&&Zp(e)==eg}var rg=tg,ng=rg,sg=Ut,Vr=Bt,Wr=Vr&&Vr.isMap,ig=Wr?sg(Wr):ng,og=ig,ag=ft,lg=Ce,cg="[object Set]";function ug(e){return lg(e)&&ag(e)==cg}var dg=ug,fg=dg,hg=Ut,Hr=Bt,qr=Hr&&Hr.isSet,pg=qr?hg(qr):fg,gg=pg,mg=Fn,vg=eh,xg=es,yg=gh,bg=Ih,jg=Fh,_g=Rh,wg=Mh,Eg=Yh,Cg=Hn,Sg=rs,kg=ft,Ng=ip,Ag=Vp,Og=Yp,Tg=Ee,Ig=zt,Fg=og,Pg=Ke,Rg=gg,Dg=Wt,Lg=Ht,$g=1,Mg=2,zg=4,ns="[object Arguments]",Ug="[object Array]",Bg="[object Boolean]",Vg="[object Date]",Wg="[object Error]",ss="[object Function]",Hg="[object GeneratorFunction]",qg="[object Map]",Kg="[object Number]",is="[object Object]",Gg="[object RegExp]",Xg="[object Set]",Qg="[object String]",Yg="[object Symbol]",Zg="[object WeakMap]",Jg="[object ArrayBuffer]",em="[object DataView]",tm="[object Float32Array]",rm="[object Float64Array]",nm="[object Int8Array]",sm="[object Int16Array]",im="[object Int32Array]",om="[object Uint8Array]",am="[object Uint8ClampedArray]",lm="[object Uint16Array]",cm="[object Uint32Array]",U={};U[ns]=U[Ug]=U[Jg]=U[em]=U[Bg]=U[Vg]=U[tm]=U[rm]=U[nm]=U[sm]=U[im]=U[qg]=U[Kg]=U[is]=U[Gg]=U[Xg]=U[Qg]=U[Yg]=U[om]=U[am]=U[lm]=U[cm]=!0;U[Wg]=U[ss]=U[Zg]=!1;function Ye(e,t,r,n,s,i){var l,a=t&$g,c=t&Mg,u=t&zg;if(r&&(l=s?r(e,n,s,i):r(e)),l!==void 0)return l;if(!Pg(e))return e;var p=Tg(e);if(p){if(l=Ng(e),!a)return _g(e,l)}else{var h=kg(e),m=h==ss||h==Hg;if(Ig(e))return jg(e,a);if(h==is||h==ns||m&&!s){if(l=c||m?{}:Og(e),!a)return c?Eg(e,bg(l,e)):wg(e,yg(l,e))}else{if(!U[h])return s?e:{};l=Ag(e,h,a)}}i||(i=new mg);var v=i.get(e);if(v)return v;i.set(e,l),Rg(e)?e.forEach(function(w){l.add(Ye(w,t,r,w,e,i))}):Fg(e)&&e.forEach(function(w,I){l.set(I,Ye(w,t,r,I,e,i))});var _=u?c?Sg:Cg:c?Lg:Dg,j=p?void 0:_(e);return vg(j||e,function(w,I){j&&(I=w,w=e[I]),xg(l,I,Ye(w,t,r,I,e,i))}),l}var um=Ye,dm=Re,fm=Ce,hm="[object Symbol]";function pm(e){return typeof e=="symbol"||fm(e)&&dm(e)==hm}var Gt=pm,gm=Ee,mm=Gt,vm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xm=/^\w*$/;function ym(e,t){if(gm(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mm(e)?!0:xm.test(e)||!vm.test(e)||t!=null&&e in Object(t)}var bm=ym,os=Lt,jm="Expected a function";function Xt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jm);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var l=e.apply(this,n);return r.cache=i.set(s,l)||i,l};return r.cache=new(Xt.Cache||os),r}Xt.Cache=os;var _m=Xt,wm=_m,Em=500;function Cm(e){var t=wm(e,function(n){return r.size===Em&&r.clear(),n}
7),r=t.cache;return t}var Sm=Cm,km=Sm,Nm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Am=/\\(\\)?/g,Om=km(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nm,function(r,n,s,i){t.push(s?i.replace(Am,"$1"):n||r)}),t}),Tm=Om,Kr=Pe,Im=Yn,Fm=Ee,Pm=Gt,Gr=Kr?Kr.prototype:void 0,Xr=Gr?Gr.toString:void 0;function as(e){if(typeof e=="string")return e;if(Fm(e))return Im(e,as)+"";if(Pm(e))return Xr?Xr.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Rm=as,Dm=Rm;function Lm(e){return e==null?"":Dm(e)}var $m=Lm,Mm=Ee,zm=bm,Um=Tm,Bm=$m;function Vm(e,t){return Mm(e)?e:zm(e,t)?[e]:Um(Bm(e))}var Qt=Vm;function Wm(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Hm=Wm,qm=Gt;function Km(e){if(typeof e=="string"||qm(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ls=Km,Gm=Qt,Xm=ls;function Qm(e,t){t=Gm(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Xm(t[r++])];return r&&r==n?e:void 0}var Ym=Qm;function Zm(e,t,r){var n=-1,s=e.length;t<0&&(t=-t>s?0:s+t),r=r>s?s:r,r<0&&(r+=s),s=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(s);++n<s;)i[n]=e[n+t];return i}var Jm=Zm,ev=Ym,tv=Jm;function rv(e,t){return t.length<2?e:ev(e,tv(t,0,-1))}var nv=rv,sv=Qt,iv=Hm,ov=nv,av=ls;function lv(e,t){return t=sv(t,e),e=ov(e,t),e==null||delete e[av(iv(t))]}var cv=lv,uv=Re,dv=qt,fv=Ce,hv="[object Object]",pv=Function.prototype,gv=Object.prototype,cs=pv.toString,mv=gv.hasOwnProperty,vv=cs.call(Object);function xv(e){if(!fv(e)||uv(e)!=hv)return!1;var t=dv(e);if(t===null)return!0;var r=mv.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&cs.call(r)==vv}var yv=xv,bv=yv;function jv(e){return bv(e)?void 0:e}var _v=jv,Qr=Pe,wv=Mn,Ev=Ee,Yr=Qr?Qr.isConcatSpreadable:void 0;function Cv(e){return Ev(e)||wv(e)||!!(Yr&&e&&e[Yr])}var Sv=Cv,kv=$t,Nv=Sv;function us(e,t,r,n,s){var i=-1,l=e.length;for(r||(r=Nv),s||(s=[]);++i<l;){var a=e[i];t>0&&r(a)?t>1?us(a,t-1,r,n,s):kv(s,a):n||(s[s.length]=a)}return s}var Av=us,Ov=Av;function Tv(e){var t=e==null?0:e.length;return t?Ov(e,1):[]}var Iv=Tv;function Fv(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Pv=Fv,Rv=Pv,Zr=Math.max;function Dv(e,t,r){return t=Zr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,s=-1,i=Zr(n.length-t,0),l=Array(i);++s<i;)l[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=r(l),Rv(e,this,a)}}var Lv=Dv;function $v(e){return function(){return e}}var Mv=$v;function zv(e){return e}var Uv=zv,Bv=Mv,Jr=Zn,Vv=Uv,Wv=Jr?function(e,t){return Jr(e,"toString",{configurable:!0,enumerable:!1,value:Bv(t),writable:!0})}:Vv,Hv=Wv,qv=800,Kv=16,Gv=Date.now;function Xv(e){var t=0,r=0;return function(){var n=Gv(),s=Kv-(n-r);if(r=n,s>0){if(++t>=qv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qv=Xv,Yv=Hv,Zv=Qv,Jv=Zv(Yv),ex=Jv,tx=Iv,rx=Lv,nx=ex;function sx(e){return nx(rx(e,void 0,tx),e+"")}var ix=sx,ox=Yn,ax=um,lx=cv,cx=Qt,ux=Ge,dx=_v,fx=ix,hx=rs,px=1,gx=2,mx=4,vx=fx(function(e,t){var r={};if(e==null)return r;var n=!1;t=ox(t,function(i){return i=cx(i,e),n||(n=i.length>1),i}),ux(e,hx(e),r),n&&(r=ax(r,px|gx|mx,dx));for(var s=t.length;s--;)lx(r,t[s]);return r}),xx=vx;const yx=Tt(xx);function bx(e,t){return new Array(t*e+1).join(" ")}function ds(e){return typeof e=="string"&&e.includes(`
8`)}function jx(e){return typeof e=="string"?!1:e.length===1&&Je in e[0]&&!ds(e[0][Je])}function _x(e){switch(e){case Je:case Ot:case At:return e;default:return e.startsWith("?")?yn:di}}function wx(e){const t=e[sr],r=yx(e,sr),[[n,s]]=Object.entries(r),i=_x(n);return{attributes:t,tagKey:n,subElements:s,type:i}}function Ex(e){return e?Object.keys(e).length>0:!1}function Cx(e){const{indentation:t,tagKey:r,attributes:n,children:s,isInline:i,hasChildren:l,level:a}=e,{collapsed:c,buttonProps:u}=Xn(a),{theme:p}=je();return o.jsxs("div",{children:[o.jsxs("span",{...u,children:[o.jsx("span",{children:t}),o.jsx(Gn,{collapsed:c}),o.jsx("span",{style:{color:p.separatorColor},children:"<"}),o.jsx("span",{style:{color:p.tagColor},children:`${r}`}),!c&&o.jsx(Qn,{attributes:n}
8),c&&Ex(n)&&" ...",o.jsx("span",{style:{color:p.separatorColor},children:l?">":" />"})]}),l&&o.jsxs(o.Fragment,{children:[!c&&s,c&&"...",o.jsx("span",{style:{color:p.separatorColor},children:`${i||c?"":t}</`}),o.jsx("span",{style:{color:p.tagColor},children:`${r}`}),o.jsx("span",{style:{color:p.separatorColor},children:">"})]})]})}function Sx(e){const{hasSiblings:t,text:r,indentation:n,isText:s}=e,{theme:i}=je(),l=s?{color:i.textColor}:void 0;return ds(r)||t?o.jsx("div",{style:l,children:r.split(`
9`).filter(a=>!!a.trim()).map((a,c)=>o.jsx("div",{children:`${n}${a.trim()}`},`${c}`))}):o.jsx("span",{style:l,children:r})}function Ze(e){const{elements:t,level:r=0,isText:n=!0}=e,{indentSize:s}=je();return!Array.isArray(t)||t.length===0?null:o.jsx(o.Fragment,{children:t.map((i,l)=>{const{tagKey:a,attributes:c,subElements:u,type:p}=wx(i),h=t.length>1,m=bx(s,r),v=`${r}-${l}`,_=jx(u);switch(p){case Je:return o.jsx(Sx,{text:u,indentation:m,hasSiblings:h,isText:n},v);case At:return o.jsx(Qf,{isInline:_,indentation:m,level:r,children:o.jsx(Ze,{elements:u,level:r+1,isText:!1})},v);case Ot:return o.jsx(qf,{indentation:m,isInline:_,children:o.jsx(Ze,{elements:u,level:r+1,isText:!1})},v);case yn:return o.jsx(Yf,{indentation:m,tagKey:a,attributes:c},v);default:return o.jsx(Cx,{indentation:m,tagKey:a,attributes:c,isInline:_,hasChildren:u.length>0,level:r,children:o.jsx(Ze,{elements:u,level:r+1})},v)}})})}function kx(){return o.jsx("div",{children:"Invalid XML!"})}function Nx(e){const{theme:t,xml:r,collapsible:n=!1,indentSize:s=2,invalidXml:i,initalCollapsedDepth:l,initialCollapsedDepth:a}=e,[c,u]=C.useState(()=>({...yt,...t})),{json:p,valid:h}=Io(r),m=C.useMemo(()=>({theme:c,collapsible:n,indentSize:s,initialCollapsedDepth:a??l}),[c,n,s,l,a]);return C.useEffect(()=>{u(v=>{const _={...yt,...t};return Hf(_,v)?v:_})},[t]),h?o.jsx(bn.Provider,{value:m,children:o.jsx("div",{className:"rxv-container",style:{whiteSpace:"pre-wrap",fontFamily:c.fontFamily,overflowWrap:"break-word"},children:o.jsx(Ze,{elements:p})})}):i||o.jsx(kx,{})}function Ax({fileContent:e}){const t=on();return e?o.jsx("pre",{style:{whiteSpace:"pre-wrap",backgroundColor:t.name==="ONE_DARK"?"#939393":"#f5f5f5",padding:"0 16px",borderRadius:"4px",height:"100%",width:"100%",margin:0,marginBottom:40,overflow:"auto"},children:o.jsx(Nx,{xml:e})}):null}var fs={exports:{}};/* @license
10Papa Parse
11v5.5.3
12https://github.com/mholt/PapaParse
13License: MIT
14*/(function(e,t){((r,n)=>{e.exports=n()})(ms,function r(){var n=typeof self<"u"?self:typeof window<"u"?window:n!==void 0?n:{},s,i=!n.document&&!!n.postMessage,l=n.IS_PAPA_WORKER||!1,a={},c=0,u={};function p(d){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(f){var g=te(f);g.chunkSize=parseInt(g.chunkSize),f.step||f.chunk||(g.chunkSize=null),this._handle=new j(g),(this._handle.streamer=this)._config=g}).call(this,d),this.parseChunk=function(f,g){var y=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<y){let N=this._config.newline;N||(x=this._config.quoteChar||'"',N=this._handle.guessLineEndings(f,x)),f=[...f.split(N).slice(y)].join(N)}this.isFirstChunk&&E(this._config.beforeFirstChunk)&&(x=this._config.beforeFirstChunk(f))!==void 0&&(f=x),this.isFirstChunk=!1,this._halted=!1;var y=this._partialLine+f,x=(this._partialLine="",this._handle.parse(y,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(f=x.meta.cursor,y=(this._finished||(this._partialLine=y.substring(f-this._baseIndex),this._baseIndex=f),x&&x.data&&(this._rowCount+=x.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),l)n.postMessage({results:x,workerId:u.WORKER_ID,finished:y});else if(E(this._config.chunk)&&!g){if(this._config.chunk(x,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=x=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(x.data),this._completeResults.errors=this._completeResults.errors.concat(x.errors),this._completeResults.meta=x.meta),this._completed||!y||!E(this._config.complete)||x&&x.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),y||x&&x.meta.paused||this._nextChunk(),x}this._halted=!0},this._sendError=function(f){E(this._config.error)?this._config.error(f):l&&this._config.error&&n.postMessage({workerId:u.WORKER_ID,error:f,finished:!1})}}function h(d){var f;(d=d||{}).chunkSize||(d.chunkSize=u.RemoteChunkSize),p.call(this,d),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(g){this._input=g,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(f=new XMLHttpRequest,this._config.withCredentials&&(f.withCredentials=this._config.withCredentials),i||(f.onload=ie(this._chunkLoaded,this),f.onerror=ie(this._chunkError,this)),f.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var g,y=this._config.downloadRequestHeaders;for(g in y)f.setRequestHeader(g,y[g])}var x;this._config.chunkSize&&(x=this._start+this._config.chunkSize-1,f.setRequestHeader("Range","bytes="+this._start+"-"+x));try{f.send(this._config.downloadRequestBody)}catch(N){this._chunkError(N.message)}i&&f.status===0&&this._chunkError()}},this._chunkLoaded=function(){f.readyState===4&&(f.status<200||400<=f.status?this._chunkError():(this._start+=this._config.chunkSize||f.responseText.length,this._finished=!this._config.chunkSize||this._start>=(g=>(g=g.getResponseHeader("Content-Range"))!==null?parseInt(g.substring(g.lastIndexOf("/")+1)):-1)(f),this.parseChunk(f.responseText)))},this._chunkError=function(g){g=f.statusText||g,this._sendError(new Error(g))}}function m(d){(d=d||{}).chunkSize||(d.chunkSize=u.LocalChunkSize),p.call(this,d);var f,g,y=typeof FileReader<"u";this.stream=function(x){this._input=x,g=x.slice||x.webkitSlice||x.mozSlice,y?((f=new FileReader).onload=ie(this._chunkLoaded,this),f.onerror=ie(this._chunkError,this)):f=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var x=this._input,N=(this._config.chunkSize&&(N=Math.min(this._start+this._config.chunkSize,this._input.size),x=g.call(x,this._start,N)),f.readAsText(x,this._config.encoding));y||this._chunkLoaded({target:{result:N}})},this._chunkLoaded=function(x){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(x.target.result)},this._chunkError=function(){this._sendError(f.error)}}function v(d){var f;p.call(this,d=d||{}),this.stream=function(g){return f=g,this._nextChunk()},this._nextChunk=function(){var g,y;if(!this._finished)return g=this._config.chunkSize,f=g?(y=f.substring(0,g),f.substring(g)):(y=f,""),this._finished=!f,this.parseChunk(y)}}function _(d){p.call(this,d=d||{});var f=[],g=!0,y=!1;this.pause=function(){p.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){p.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(x){this._input=x,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){y&&f.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),f.length?this.parseChunk(f.shift()):g=!0}
vendor: 11,867 bytes, lines 14-22
14,this._streamData=ie(function(x){try{f.push(typeof x=="string"?x:x.toString(this._config.encoding)),g&&(g=!1,this._checkIsFinished(),this.parseChunk(f.shift()))}catch(N){this._streamError(N)}},this),this._streamError=ie(function(x){this._streamCleanUp(),this._sendError(x)},this),this._streamEnd=ie(function(){this._streamCleanUp(),y=!0,this._streamData("")},this),this._streamCleanUp=ie(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function j(d){var f,g,y,x,N=Math.pow(2,53),W=-N,$=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,le=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,T=this,H=0,S=0,oe=!1,A=!1,F=[],b={data:[],errors:[],meta:{}};function J(P){return d.skipEmptyLines==="greedy"?P.join("").trim()==="":P.length===1&&P[0].length===0}function Q(){if(b&&y&&(fe("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),y=!1),d.skipEmptyLines&&(b.data=b.data.filter(function(k){return!J(k)})),ne()){let k=function(K,ee){E(d.transformHeader)&&(K=d.transformHeader(K,ee)),F.push(K)};if(b)if(Array.isArray(b.data[0])){for(var P=0;ne()&&P<b.data.length;P++)b.data[P].forEach(k);b.data.splice(0,1)}else b.data.forEach(k)}function D(k,K){for(var ee=d.header?{}:[],M=0;M<k.length;M++){var z=M,R=k[M],R=((he,O)=>(V=>(d.dynamicTypingFunction&&d.dynamicTyping[V]===void 0&&(d.dynamicTyping[V]=d.dynamicTypingFunction(V)),(d.dynamicTyping[V]||d.dynamicTyping)===!0))(he)?O==="true"||O==="TRUE"||O!=="false"&&O!=="FALSE"&&((V=>{if($.test(V)&&(V=parseFloat(V),W<V&&V<N))return 1})(O)?parseFloat(O):le.test(O)?new Date(O):O===""?null:O):O)(z=d.header?M>=F.length?"__parsed_extra":F[M]:z,R=d.transform?d.transform(R,z):R);z==="__parsed_extra"?(ee[z]=ee[z]||[],ee[z].push(R)):ee[z]=R}return d.header&&(M>F.length?fe("FieldMismatch","TooManyFields","Too many fields: expected "+F.length+" fields but parsed "+M,S+K):M<F.length&&fe("FieldMismatch","TooFewFields","Too few fields: expected "+F.length+" fields but parsed "+M,S+K)),ee}var q;b&&(d.header||d.dynamicTyping||d.transform)&&(q=1,!b.data.length||Array.isArray(b.data[0])?(b.data=b.data.map(D),q=b.data.length):b.data=D(b.data,0),d.header&&b.meta&&(b.meta.fields=F),S+=q)}function ne(){return d.header&&F.length===0}function fe(P,D,q,k){P={type:P,code:D,message:q},k!==void 0&&(P.row=k),b.errors.push(P)}E(d.step)&&(x=d.step,d.step=function(P){b=P,ne()?Q():(Q(),b.data.length!==0&&(H+=P.data.length,d.preview&&H>d.preview?g.abort():(b.data=b.data[0],x(b,T))))}),this.parse=function(P,D,q){var k=d.quoteChar||'"',k=(d.newline||(d.newline=this.guessLineEndings(P,k)),y=!1,d.delimiter?E(d.delimiter)&&(d.delimiter=d.delimiter(P),b.meta.delimiter=d.delimiter):((k=((K,ee,M,z,R)=>{var he,O,V,_e;R=R||[",","	","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Oe=0;Oe<R.length;Oe++){for(var pe,ze=R[Oe],ae=0,ge=0,re=0,ue=(V=void 0,new I({comments:z,delimiter:ze,newline:ee,preview:10}).parse(K)),xe=0;xe<ue.data.length;xe++)M&&J(ue.data[xe])?re++:(pe=ue.data[xe].length,ge+=pe,V===void 0?V=pe:0<pe&&(ae+=Math.abs(pe-V),V=pe));0<ue.data.length&&(ge/=ue.data.length-re),(O===void 0||ae<=O)&&(_e===void 0||_e<ge)&&1.99<ge&&(O=ae,he=ze,_e=ge)}return{successful:!!(d.delimiter=he),bestDelimiter:he}})(P,d.newline,d.skipEmptyLines,d.comments,d.delimitersToGuess)).successful?d.delimiter=k.bestDelimiter:(y=!0,d.delimiter=u.DefaultDelimiter),b.meta.delimiter=d.delimiter),te(d));return d.preview&&d.header&&k.preview++,f=P,g=new I(k),b=g.parse(f,D,q),Q(),oe?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return oe},this.pause=function(){oe=!0,g.abort(),f=E(d.chunk)?"":f.substring(g.getCharIndex())},this.resume=function(){T.streamer._halted?(oe=!1,T.streamer.parseChunk(f,!0)):setTimeout(T.resume,3)},this.aborted=function(){return A},this.abort=function(){A=!0,g.abort(),b.meta.aborted=!0,E(d.complete)&&d.complete(b),f=""},this.guessLineEndings=function(K,k){K=K.substring(0,1048576);var k=new RegExp(w(k)+"([^]*?)"+w(k),"gm"),q=(K=K.replace(k,"")).split("\r"),k=K.split(`
15`),K=1<k.length&&k[0].length<q[0].length;if(q.length===1||K)return`
16`;for(var ee=0,M=0;M<q.length;M++)q[M][0]===`
17`&&ee++;return ee>=q.length/2?`\r
18`:"\r"}}function w(d){return d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(d){var f=(d=d||{}).delimiter,g=d.newline,y=d.comments,x=d.step,N=d.preview,W=d.fastMode,$=null,le=!1,T=d.quoteChar==null?'"':d.quoteChar,H=T;if(d.escapeChar!==void 0&&(H=d.escapeChar),(typeof f!="string"||-1<u.BAD_DELIMITERS.indexOf(f))&&(f=","),y===f)throw new Error("Comment character same as delimiter");y===!0?y="#":(typeof y!="string"||-1<u.BAD_DELIMITERS.indexOf(y))&&(y=!1),g!==`
19`&&g!=="\r"&&g!==`\r
20`&&(g=`
21`);var S=0,oe=!1;this.parse=function(A,F,b){if(typeof A!="string")throw new Error("Input must be a string");var J=A.length,Q=f.length,ne=g.length,fe=y.length,P=E(x),D=[],q=[],k=[],K=S=0;if(!A)return ae();if(W||W!==!1&&A.indexOf(T)===-1){for(var ee=A.split(g),M=0;M<ee.length;M++){if(k=ee[M],S+=k.length,M!==ee.length-1)S+=g.length;else if(b)return ae();if(!y||k.substring(0,fe)!==y){if(P){if(D=[],_e(k.split(f)),ge(),oe)return ae()}else _e(k.split(f));if(N&&N<=M)return D=D.slice(0,N),ae(!0)}}return ae()}for(var z=A.indexOf(f,S),R=A.indexOf(g,S),he=new RegExp(w(H)+w(T),"g"),O=A.indexOf(T,S);;)if(A[S]===T)for(O=S,S++;;){if((O=A.indexOf(T,O+1))===-1)return b||q.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:D.length,index:S}),pe();if(O===J-1)return pe(A.substring(S,O).replace(he,T));if(T===H&&A[O+1]===H)O++;else if(T===H||O===0||A[O-1]!==H){z!==-1&&z<O+1&&(z=A.indexOf(f,O+1));var V=Oe((R=R!==-1&&R<O+1?A.indexOf(g,O+1):R)===-1?z:Math.min(z,R));if(A.substr(O+1+V,Q)===f){k.push(A.substring(S,O).replace(he,T)),A[S=O+1+V+Q]!==T&&(O=A.indexOf(T,S)),z=A.indexOf(f,S),R=A.indexOf(g,S);break}if(V=Oe(R),A.substring(O+1+V,O+1+V+ne)===g){if(k.push(A.substring(S,O).replace(he,T)),ze(O+1+V+ne),z=A.indexOf(f,S),O=A.indexOf(T,S),P&&(ge(),oe))return ae();if(N&&D.length>=N)return ae(!0);break}q.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:D.length,index:S}),O++}}else if(y&&k.length===0&&A.substring(S,S+fe)===y){if(R===-1)return ae();S=R+ne,R=A.indexOf(g,S),z=A.indexOf(f,S)}else if(z!==-1&&(z<R||R===-1))k.push(A.substring(S,z)),S=z+Q,z=A.indexOf(f,S);else{if(R===-1)break;if(k.push(A.substring(S,R)),ze(R+ne),P&&(ge(),oe))return ae();if(N&&D.length>=N)return ae(!0)}return pe();function _e(re){D.push(re),K=S}function Oe(re){var ue=0;return ue=re!==-1&&(re=A.substring(O+1,re))&&re.trim()===""?re.length:ue}function pe(re){return b||(re===void 0&&(re=A.substring(S)),k.push(re),S=J,_e(k),P&&ge()),ae()}function ze(re){S=re,_e(k),k=[],R=A.indexOf(g,S)}function ae(re){if(d.header&&!F&&D.length&&!le){var ue=D[0],xe=Object.create(null),ht=new Set(ue);let Jt=!1;for(let Te=0;Te<ue.length;Te++){let me=ue[Te];if(xe[me=E(d.transformHeader)?d.transformHeader(me,Te):me]){let Ue,er=xe[me];for(;Ue=me+"_"+er,er++,ht.has(Ue););ht.add(Ue),ue[Te]=Ue,xe[me]++,Jt=!0,($=$===null?{}:$)[Ue]=me}else xe[me]=1,ue[Te]=me;ht.add(me)}Jt&&console.warn("Duplicate headers found and renamed."),le=!0}return{data:D,errors:q,meta:{delimiter:f,linebreak:g,aborted:oe,truncated:!!re,cursor:K+(F||0),renamedHeaders:$}}}function ge(){x(ae()),D=[],q=[]}},this.abort=function(){oe=!0},this.getCharIndex=function(){return S}}function Y(d){var f=d.data,g=a[f.workerId],y=!1;if(f.error)g.userError(f.error,f.file);else if(f.results&&f.results.data){var x={abort:function(){y=!0,Z(f.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:X,resume:X};if(E(g.userStep)){for(var N=0;N<f.results.data.length&&(g.userStep({data:f.results.data[N],errors:f.results.errors,meta:f.results.meta},x),!y);N++);delete f.results}else E(g.userChunk)&&(g.userChunk(f.results,x,f.file),delete f.results)}f.finished&&!y&&Z(f.workerId,f.results)}function Z(d,f){var g=a[d];E(g.userComplete)&&g.userComplete(f),g.terminate(),delete a[d]}function X(){throw new Error("Not implemented.")}function te(d){if(typeof d!="object"||d===null)return d;var f,g=Array.isArray(d)?[]:{};for(f in d)g[f]=te(d[f]);return g}function ie(d,f){return function(){d.apply(f,arguments)}}function E(d){return typeof d=="function"}return u.parse=function(d,f){var g=(f=f||{}).dynamicTyping||!1;if(E(g)&&(f.dynamicTypingFunction=g,g={}),f.dynamicTyping=g,f.transform=!!E(f.transform)&&f.transform,!f.worker||!u.WORKERS_SUPPORTED)return g=null,u.NODE_STREAM_INPUT,typeof d=="string"?(d=(y=>y.charCodeAt(0)!==65279?y:y.slice(1))(d),g=new(f.download?h:v)(f)):d.readable===!0&&E(d.read)&&E(d.on)?g=new _(f):(n.File&&d instanceof File||d instanceof Object)&&(g=new m(f)),g.stream(d);(g=(()=>{var y;return!!u.WORKERS_SUPPORTED&&(y=(()=>{var x=n.URL||n.webkitURL||null,N=r.toString();return u.BLOB_URL||(u.BLOB_URL=x.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",N,")();"],{type:"text/javascript"})))})(),(y=new n.Worker(y)).onmessage=Y,y.id=c++,a[y.id]=y)})()).userStep=f.step,g.userChunk=f.chunk,g.userComplete=f.complete,g.userError=f.error,f.step=E(f.step),f.chunk=E(f.chunk),f.complete=E(f.complete),f.error=E(f.error),delete f.worker,g.postMessage({input:d,config:f,workerId:g.id})},u.unparse=function(d,f){var g=!1,y=!0,x=",",N=`\r
22`,W='"',$=W+W,le=!1,T=null,H=!1,S=((()=>{if(typeof f=="object"){if(typeof f.delimiter!="string"||u.BAD_DELIMITERS.filter(function(F){return f.delimiter.indexOf(F)!==-1}).length||(x=f.delimiter),typeof f.quotes!="boolean"&&typeof f.quotes!="function"&&!Array.isArray(f.quotes)||(g=f.quotes),typeof f.skipEmptyLines!="boolean"&&typeof f.skipEmptyLines!="string"||(le=f.skipEmptyLines),typeof f.newline=="string"&&(N=f.newline),typeof f.quoteChar=="string"&&(W=f.quoteChar),typeof f.header=="boolean"&&(y=f.header),Array.isArray(f.columns)){if(f.columns.length===0)throw new Error("Option columns is empty");T=f.columns}f.escapeChar!==void 0&&($=f.escapeChar+W),f.escapeFormulae instanceof RegExp?H=f.escapeFormulae:typeof f.escapeFormulae=="boolean"&&f.escapeFormulae&&(H=/^[=+\-@\t\r].*$/)}})(),new RegExp(w(W),"g"));if(typeof d=="string"&&(d=JSON.parse(d)),Array.isArray(d)){if(!d.length||Array.isArray(d[0]))return oe(null,d,le);if(typeof d[0]=="object")return oe(T||Object.keys(d[0]),d,le)}else if(typeof d=="object")return typeof d.data=="string"&&(d.data=JSON.parse(d.data)),Array.isArray(d.data)&&(d.fields||(d.fields=d.meta&&d.meta.fields||T),d.fields||(d.fields=Array.isArray(d.data[0])?d.fields:typeof d.data[0]=="object"?Object.keys(d.data[0]):[]),Array.isArray(d.data[0])||typeof d.data[0]=="object"||(d.data=[d.data])),oe(d.fields||[],d.data||[],le);throw new Error("Unable to serialize unrecognized input");function oe(F,b,J){var Q="",ne=(typeof F=="string"&&(F=JSON.parse(F)),typeof b=="string"&&(b=JSON.parse(b)),Array.isArray(F)&&0<F.length),fe=!Array.isArray(b[0]);if(ne&&y){for(var P=0;P<F.length;P++)0<P&&(Q+=x),Q+=A(F[P],P);0<b.length&&(Q+=N)}for(var D=0;D<b.length;D++){var q=(ne?F:b[D]).length,k=!1,K=ne?Object.keys(b[D]).length===0:b[D].length===0;if(J&&!ne&&(k=J==="greedy"?b[D].join("").trim()==="":b[D].length===1&&b[D][0].length===0),J==="greedy"&&ne){for(var ee=[],M=0;M<q;M++){var z=fe?F[M]:M;ee.push(b[D][z])}k=ee.join("").trim()===""}if(!k){for(var R=0;R<q;R++){0<R&&!K&&(Q+=x);var he=ne&&fe?F[R]:R;Q+=A(b[D][he],R)}D<b.length-1&&(!J||0<q&&!K)&&(Q+=N)}}return Q}function A(F,b){var J,Q;return F==null?"":F.constructor===Date?JSON.stringify(F).slice(1,25):(
22Q=!1,H&&typeof F=="string"&&H.test(F)&&(F="'"+F,Q=!0),J=F.toString().replace(S,$),(Q=Q||g===!0||typeof g=="function"&&g(F,b)||Array.isArray(g)&&g[b]||((ne,fe)=>{for(var P=0;P<fe.length;P++)if(-1<ne.indexOf(fe[P]))return!0;return!1})(J,u.BAD_DELIMITERS)||-1<J.indexOf(x)||J.charAt(0)===" "||J.charAt(J.length-1)===" ")?W+J+W:J)}},u.RECORD_SEP="�",u.UNIT_SEP="�",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
23`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!n.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=I,u.ParserHandle=j,u.NetworkStreamer=h,u.FileStreamer=m,u.StringStreamer=v,u.ReadableStreamStreamer=_,n.jQuery&&((s=n.jQuery).fn.parse=function(d){var f=d.config||{},g=[];return this.each(function(N){if(!(s(this).prop("tagName").toUpperCase()==="INPUT"&&s(this).attr("type").toLowerCase()==="file"&&n.FileReader)||!this.files||this.files.length===0)return!0;for(var W=0;W<this.files.length;W++)g.push({file:this.files[W],inputElem:this,instanceConfig:s.extend({},f)})}),y(),this;function y(){if(g.length===0)E(d.complete)&&d.complete();else{var N,W,$,le,T=g[0];if(E(d.before)){var H=d.before(T.file,T.inputElem);if(typeof H=="object"){if(H.action==="abort")return N="AbortError",W=T.file,$=T.inputElem,le=H.reason,void(E(d.error)&&d.error({name:N},W,$,le));if(H.action==="skip")return void x();typeof H.config=="object"&&(T.instanceConfig=s.extend(T.instanceConfig,H.config))}else if(H==="skip")return void x()}var S=T.instanceConfig.complete;T.instanceConfig.complete=function(oe){E(S)&&S(oe,T.file,T.inputElem),x()},u.parse(T.file,T.instanceConfig)}}function x(){g.splice(0,1),y()}}),l&&(n.onmessage=function(d){d=d.data,u.WORKER_ID===void 0&&d&&(u.WORKER_ID=d.workerId),typeof d.input=="string"?n.postMessage({workerId:u.WORKER_ID,results:u.parse(d.input,d.config),finished:!0}):(n.File&&d.input instanceof File||d.input instanceof Object)&&(d=u.parse(d.input,d.config))&&n.postMessage({workerId:u.WORKER_ID,results:d,finished:!0})}),(h.prototype=Object.create(p.prototype)).constructor=h,(m.prototype=Object.create(p.prototype)).constructor=m,(v.prototype=Object.create(v.prototype)).constructor=v,(_.prototype=Object.create(p.prototype)).constructor=_,u})})(fs);var Ox=fs.exports;const Tx=gs(Ox);function en({fileContent:e,delimiter:t}){const[r,n]=C.useState([]);C.useEffect(()=>{e&&Tx.parse(e,{header:!0,delimiter:t,dynamicTyping:!1,complete:i=>{n(i.data)},error:i=>{console.error("Error parsing CSV:",i)}})},[e,t]);const s=r.length>0?Object.keys(r[0]):[];return e?o.jsx(ti,{component:st,style:{maxHeight:"100%",overflow:"auto"},children:o.jsxs(vs,{stickyHeader:!0,children:[o.jsx(xs,{children:o.jsx(pt,{children:s==null?void 0:s.map((i,l)=>o.jsx(gt,{children:i},l))})}),o.jsx(ys,{children:(r==null?void 0:r.length)>0?r.map((i,l)=>o.jsx(pt,{children:s.map((a,c)=>o.jsx(gt,{children:i[a]},c))},l)):o.jsx(pt,{children:o.jsx(gt,{colSpan:s==null?void 0:s.length,align:"center",children:"No data available to display."})})})]})}):null}function tn({fileContent:e}){const t=on();return e?o.jsx("pre",{style:{whiteSpace:"pre-wrap",backgroundColor:t.name==="ONE_DARK"?"#939393":"#f5f5f5",padding:"0 16px",borderRadius:"4px",height:"100%",width:"100%",margin:0,overflow:"auto"},children:e}):null}function Ix({data:e}){const t=e==null?void 0:e.content_type,r=e==null?void 0:e.file_content,n=e==null?void 0:e.delimiter,[s,i]=C.useState(!1);C.useEffect(()=>{if(r){i(!1);return}let a=0;const c=setInterval(()=>{a+=1,a>=5&&(i(!0),clearInterval(c))},1e3);return()=>clearInterval(c)},[r]);const l=C.useMemo(()=>{const a={xml:o.jsx(Ax,{fileContent:r}),csv:o.jsx(en,{fileContent:r,delimiter:n}),json:o.jsx(tn,{fileContent:r}),ndjson:o.jsx(tn,{fileContent:r}),txt:o.jsx(en,{fileContent:r,delimiter:n})};return!r&&!s?o.jsx(L,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",minHeight:200,children:o.jsx(it,{size:50})}):a[t]||null},[t,r,n,s]);return o.jsxs(L,{display:"flex",height:"100%",flexDirection:"column",children:[r&&o.jsx(Ne,{icon:!1,severity:"info",style:{padding:"0 4px 0px 16px",margin:8},children:"This preview only displays up to 100 products, not the full feed."}),l]})}const Fx=C.memo(Ix);function Px(){const e=ot(),t={padding:"0 4px 0px 16px"};return o.jsxs(Ne,{severity:"warning",style:t,children:["You’ve reached your Feed Management subscription limit. The export file may not include all items from your Main Store. Please"," ",o.jsx(Ie,{onClick:()=>e.push(`/${an.FEED}/subscription`),style:{cursor:"pointer",fontWeight:500},children:"upgrade your plan"})," ","to import more items into LitCommerce."]})}const Rx=de(e=>({alertRoot:{borderRadius:8,display:"flex",alignItems:"center"},message:{fontWeight:500,flex:1},infoIcon:{color:"#FFA726",marginLeft:8,fontSize:20}}));function Dx({feedProcessState:e=""}){var _;const t=Rx(),r=ot(),n=He(j=>{var w;return(w=j==null?void 0:j.account)==null?void 0:w.user})||{},{settings:s}=bs(),{feed_active:i,feed_subscription:l}=n,{detail:a,changeStatus:c}=C.useContext(be),u=((_=l==null?void 0:l.user_plan)==null?void 0:_.feed_quantity_limit)||js,p=i<u,h=a==null?void 0:a.activate,m=async()=>{!p&&!h||await c()},v={root:t.alertRoot,message:t.message};return e==="exporting"?o.jsx(Ne,{severity:"info",icon:o.jsx(it,{size:20,color:"primary"}),classes:v,children:"Your feed is being exported. Please wait a moment."}):o.jsx(Ne,{severity:"info",classes:v,action:o.jsxs(L,{display:"flex",alignItems:"center",children:[o.jsx(ye,{variant:"contained",color:h?"":"primary",style:{opacity:!h&&!p?.5:1,cursor:!h&&!p?"not-allowed":"pointer",minWidth:85,pointerEvents:"all",backgroundColor:h?s.theme!=="ONE_DARK"?"white":"#282c34":null,color:h?s.theme!=="ONE_DARK"?"#546E7A":"#E6E5E8":null},onClick:m,children:h?"Deactivate Feed":"Activate Feed"}
23),!p&&!h&&o.jsx(kt,{title:o.jsxs(o.Fragment,{children:["Please"," ",o.jsx(Ie,{style:{fontWeight:500,cursor:"pointer",color:"aqua"},onClick:()=>r.push(`/${an.FEED}/subscription`),children:"upgrade your plan"})," ","to activate this feed."]}),placement:"bottom",interactive:!0,children:o.jsx(_s,{style:{padding:4},children:o.jsx(si,{fontSize:"small",style:{color:"#ffa726"}})})})]}),children:h?"Your feed URL is ready":"Please activate this feed to receive your feed URL."})}function rn({url:e,additionCopyHandle:t}){const{detail:r}=C.useContext(be),n=r==null?void 0:r.activate,s=()=>{window.getSelection().toString()===e&&t()};return o.jsx(ln,{value:n?e:"",disabled:!0,placeholder:"Your feed URL will be displayed here once activated",variant:"outlined",size:"small",fullWidth:!0,InputProps:{startAdornment:o.jsx(ws,{position:"start",children:o.jsx(ii,{color:"action"})})},onCopy:s})}var Yt={},Lx=un,$x=cn;Object.defineProperty(Yt,"__esModule",{value:!0});var hs=Yt.default=void 0,Mx=$x(C),zx=Lx(dn()),Ux=(0,zx.default)(Mx.createElement("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71zM5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1z"}),"GetAppRounded");hs=Yt.default=Ux;const Bx=de(e=>({typography:{paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),fontSize:13,fontWeight:500}})),nn=[{hasUrl:!0,icon:o.jsx(oi,{}),key:"copy",function:e=>{var t;return(t=navigator==null?void 0:navigator.clipboard)==null?void 0:t.writeText(e)},tooltip:"Copy feed URL"},{hasUrl:!0,icon:o.jsx(hs,{}),key:"open-window",function:e=>window.open(e),tooltip:"Download feed file"}];function Vx({url:e,additionCopyHandle:t=()=>{}}){const r=Bx(),{detail:n}=C.useContext(be),s=n==null?void 0:n.activate,i=e&&s?nn:nn.filter(h=>!h.hasUrl),[l,a]=C.useState(null),c=h=>{a(h.currentTarget),setTimeout(()=>a(null),1500)},u=!!l,p=Date.now();return i.map(h=>o.jsx(kt,{title:h.tooltip,children:o.jsxs(L,{children:[o.jsxs(ye,{size:"small",variant:"contained",style:{marginLeft:8},onClick:m=>{h.function(h.key==="open-window"?`${e}?time=${p}`:e),h.key==="copy"&&(c(m),t())},color:h.color,disabled:!e||h.disabled,children:[h.icon,h.title]}),o.jsx(fn,{open:u,anchorEl:l,transition:!0,placement:"top",children:({TransitionProps:m})=>o.jsx(hn,{...m,timeout:350,children:o.jsx(st,{className:r.paper,children:o.jsx(se,{className:r.typography,children:"Copied to clipboard"})})})})]})},h.key))}const Wx={shopify:"https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/meta-pixel",wix:"https://support.wix.com/en/article/using-facebook-pixel-with-your-wix-stores",bigcommerce:"https://support.bigcommerce.com/s/article/Meta-Pixel?language=en_US",woocommerce:"https://woocommerce.com/document/meta-pixel-and-ads/"};function Hx(){const{mainstore_type:e}=He(r=>{var n;return(n=r==null?void 0:r.account)==null?void 0:n.user}),t=Wx[e]||"";return o.jsxs(L,{mt:1,children:[o.jsxs(se,{variant:"body2",style:{fontStyle:"italic"},children:["* To distribute your products to Meta successfully, you need to install a Meta Pixel on your Main Store."," ",t&&o.jsx(Ie,{target:"_blank",href:t,children:"Learn More"})]}),o.jsxs(se,{variant:"body2",style:{fontStyle:"italic"},children:["* You can check if your Meta Pixel is working properly using the"," ",o.jsx(Ie,{target:"_blank",href:"https://developers.facebook.com/docs/meta-pixel/support/pixel-helper/",children:"Pixel Helper"})," ","tool."]})]})}const qx=de(()=>({alertRoot:{alignItems:"center",width:"50%"},alertMessage:{width:"100%"}}));function Kx(){const e=qx(),t=ot(),{detail:r}=C.useContext(be);return o.jsx(Ne,{severity:"error",classes:{root:e.alertRoot,message:e.alertMessage},children:o.jsxs(L,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:[o.jsxs(L,{children:[o.jsxs(Es,{style:{marginBottom:0,fontSize:14},children:["No items meet ",r==null?void 0:r.name," requirements."]}),"Please fix all ",o.jsx("strong",{children:"Required"})," issues in the ",o.jsx("strong",{children:"Quality"})," step before submitting this file."]}),o.jsx(ye,{variant:"contained",color:"primary",size:"small",onClick:()=>t.push(`/feeds/${r==null?void 0:r.id}/quality`),children:"Check Quality"})]})})}const Gx=de(e=>({alertRoot:{borderRadius:8,display:"flex",alignItems:"center",width:"50%","& .MuiAlert-action":{marginLeft:"inherit"}},message:{fontWeight:500}}));function Xx({data:e,skuPercentage:t,totalSKURequired:r,feedProcessState:n}){const s=Gx(),i=Cs(),l=ot(),a=He($=>{var le;return(le=$==null?void 0:$.account)==null?void 0:le.user})||{},{feed_first_copied:c,feed_subscription:u,email:p,acctm:h,feed_skus:m,mainstore_type:v,feed_free_user:_}=a||{},{schedule:j,fetchSchedule:w}=He($=>$.feed),I=!ni(a),Y=I?j==null?void 0:j.update_feed_hourly:(j==null?void 0:j.auto_import)||(j==null?void 0:j.auto_update)||(j==null?void 0:j.import_inactive),Z=I||(j==null?void 0:j.schedule_time)&&(j==null?void 0:j.timezone),X=(!["file","filev2"].includes(v)&&!Y||!Z)&&w,te=Ss(_,(u==null?void 0:u.feed_skus_limit)||ks),ie=(p==null?void 0:p.includes("shopify.com"))||!1,E=e.url,{detail:d}=C.useContext(be),f=d==null?void 0:d.feed_type,g=["meta_auto","meta_online_products","meta_real_estate","meta_travel"].includes(f)||["facebook","instagram"].some($=>f==null?void 0:f.includes($)),y=["facebook","instagram"].some($=>f==null?void 0:f.includes($))||g,x=async()=>{const $=await Fs();$&&i({type:Ps,payload:{user:$}})},N=async()=>{c||(i(Ts(!0)),await Is(),x())},W=!!E&&!!d.activate;return C.useEffect(()=>{const $=setTimeout(()=>{window.$crisp&&W&&Ns(a==null?void 0:a.id)&&As({sendCase:Os.feedExport})},2e3);return()=>clearTimeout($)},[W]),o.jsxs(qe.Fragment,{children:[te<=m&&o.jsx(Px,{}),o.jsxs(L,{style:{padding:8,minHeight:46},children:[o.jsx(Dx,{feedProcessState:n}),!(ie||h)&&o.jsxs(L,{style:{display:"flex",flexDirection:"column",gap:"8px",marginTop:8},children:[o.jsx(se,{variant:"subtitle2",children:"Copy your feed link to paste in your export feed channel"}),t===0&&r!==0&&o.jsx(Kx,{}),o.jsxs(L,{display:"flex",alignItems:"center",justifyContent:E?null:"space-between",width:"50%",children:[o.jsx(rn,{url:E,additionCopyHandle:N}),o.jsx(Vx,{url:E,additionCopyHandle:N})]}),X&&o.jsxs(Ne,{severity:"warning",classes:{root:s.alertRoot,message:s.message},action:o.jsx(ye,{variant:"contained",size:"small",onClick:()=>{l.push("/feeds/settings",{tab:"schedule"})},children:I?"Schedule Hourly Sync":"Schedule Daily Sync"}),children:["Automatic Update is ",o.jsx("strong",{children:"Disabled"})]}),y&&o.jsx(Hx,{})]}),(ie||h)&&o.jsx(qe.Fragment,{children:o.jsxs(L,{children:[o.jsx(rn,{url:E,additionCopyHandle:N}),o.jsx(ye,{size:"small",variant:"contained",onClick:()=>window.open(E),disabled:!E,startIcon:o.jsx(ri,{style:{marginRight:0}}),children:"Download Feed"})]})})]})]})}const Qx=Nt(e=>({root:{border:`1px solid ${e.palette.divider}`,boxShadow:"none","&:not(:last-child)":{borderBottom:0},"&:before":{display:"none"},"&$expanded":{margin:"auto"}},expanded:{}}))(gn),Yx=Nt(e=>({root:{borderBottom:`1px solid ${e.palette.divider}`,marginBottom:-1,minHeight:48,"&$expanded":{minHeight:48}},content:{"&$expanded":{margin:"12px 0"}},expanded:{}}))(mn),Zx=Nt(e=>({root:{padding:e.spacing(2)}}))(vn),Jx=de(e=>({root:{"& .MuiButtonBase-root.Mui-disabled":{pointerEvents:"auto"}},copied:{paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5),fontSize:13,fontWeight:500}})),sn={google:[{label:"Activate your product feed and copy the generated feed link.",button:"Copy Feed URL"},{label:o.jsxs(o.Fragment,{children:["Log into"," ",o.jsx(Ie,{href:"https://merchants.google.com",target:"_blank",rel:"noopener noreferrer",children:"Google Merchant Center"}),"."]})},{label:o.jsxs(o.Fragment,{children:["Navigate to ",o.jsx("strong",{children:"Products"}),", then under the ",o.jsx("strong",{children:"All Products"})," ","tab, click ",o.jsx("strong",{children:"Add Products"}),"."]})},{label:o.jsxs(o.Fragment,{children:["Choose the option ",o.jsx("strong",{children:"Add products from a file"}),"."]})},{label:o.jsxs(o.Fragment,{children:["Select ",o.jsx("strong",{children:"Enter a link to your file"}),", then paste the feed URL you copied in step 1."]})},{label:o.jsxs(o.Fragment,{children:["In the ",o.jsx("strong",{children:"Edit Schedule"})," section, set how often Google should fetch updates from your feed."]}),subtext:"You can leave the Username and Password fields empty."},{label:o.jsxs(o.Fragment,{children:["Under ",o.jsx("strong",{children:"Select countries"}),", choose your target countries, preferred language, and marketing methods. Add a feed label, then click"," ",o.jsx("strong",{children:"Continue"}),"."]})},{label:o.jsxs(o.Fragment,{children:["After the file is uploaded, go to the ",o.jsx("strong",{children:"Data source setup"})," tab. Click",o.jsx("strong",{children:"Show advanced options"}),", then under ",o.jsx("strong",{children:"Currency"}),", set your default currency."]}),subtext:"This ensures Google processes your feed using the correct currency."}],meta:[{label:"Activate your product feed and copy the generated feed link.",button:"Copy Feed URL"},{label:o.jsxs(o.Fragment,{children:["Log into"," ",o.jsx(Ie,{href:"https://business.facebook.com/commerce",target:"_blank",rel:"noopener noreferrer",children:"Meta Commerce Manager"}),"."]})},{label:o.jsxs(o.Fragment,{children:["In the navigation menu, go to ",o.jsx("strong",{children:"Catalog Data > Sources"}),"."]})},{label:o.jsxs(o.Fragment,{children:["Select ",o.jsx("strong",{children:"Data Feed"})," , then click ",o.jsx("strong",{children:"Next"}),"."]})},{label:o.jsxs(o.Fragment,{children:["In the ",o.jsx("strong",{children:"Use a URL or Google Sheets"})," field, paste the feed URL you copied in step 1. Click ",o.jsx("strong",{children:"Next"})," to proceed."]})},{label:"Enter a name for your feed."}
23,{label:"Choose your default currency.",subtext:"If you're using LitCommerce Shopping Feeds, currency is already included in your feed, so this setting won’t affect your data."},{label:o.jsxs(o.Fragment,{children:["In the ",o.jsx("strong",{children:"Data Feed Schedule"})," section, set how often Meta should refresh your feed."]}),subtext:"Make sure this schedule aligns with your LitCommerce daily sync time."},{label:o.jsxs(o.Fragment,{children:["Click ",o.jsx("strong",{children:"Upload"})," to finish."]})}]};function ey({url:e=""}){var Y;const t=Jx(),[r,n]=C.useState(!1),[s,i]=C.useState(null),l=!!s,{detail:a}=C.useContext(be),c=a==null?void 0:a.feed_type,u=(Y=a==null?void 0:a.api)==null?void 0:Y.market_type,p=a.activate,h=["meta_auto","meta_online_products","meta_real_estate","meta_travel"].includes(c)||["facebook","instagram"].some(Z=>c==null?void 0:c.includes(Z)),m=c==="google_shopping"&&!["local","merchant_promotions","local_fashion","local_product_inventory"].includes(u),v=h||m,_=`/static/feed_connect_logos/${li(c)}.png`,j=()=>{const Z={google:{title:"How to Connect Your Feed to Google",subtitle:"Follow these steps to submit your feed to Google Merchant Center:"},meta:{title:"How to Connect Your Feed to Meta",subtitle:"Follow these steps to submit your feed to Meta Commerce Manager:"}},X=m?"google":h?"meta":null,{title:te,subtitle:ie}=Z[X]||{};return o.jsxs(L,{display:"flex",children:[o.jsx("img",{width:100,height:40,style:{objectFit:"contain",marginRight:16},src:_||"",alt:""}),o.jsxs(L,{children:[o.jsx(se,{variant:"subtitle2",children:te}),o.jsx(se,{variant:"body2",color:"textSecondary",children:ie})]})]})},w=Z=>{navigator.clipboard&&navigator.clipboard.writeText?(navigator.clipboard.writeText(e),i(Z.currentTarget),setTimeout(()=>i(null),1500)):console.warn("Clipboard API not supported")},I=()=>{const Z=m?sn.google:h?sn.meta:[];return o.jsx(L,{children:Z.map((X,te)=>o.jsxs(L,{display:"flex",alignItems:"flex-start",mb:1,children:[o.jsxs(se,{variant:"body2",style:{marginRight:8},children:[te+1,"."]}),o.jsxs(L,{children:[o.jsxs(se,{variant:"body2",children:[X.label,X.button&&o.jsx(L,{mt:.5,children:o.jsx(kt,{title:"Please activate this feed to receive your feed URL.",disableHoverListener:p,children:o.jsx(ye,{variant:"outlined",size:"small",startIcon:o.jsx(ai,{}),disabled:!p,onClick:w,children:X.button})})})]}),X.subtext&&o.jsx(se,{variant:"body2",style:{color:"#7a7a7a",marginTop:4},children:X.subtext})]})]},te))})};return v?o.jsxs(L,{className:t.root,children:[o.jsxs(Qx,{expanded:r,onChange:()=>n(!r),children:[o.jsx(Yx,{"aria-controls":"panel1d-content",id:"panel1d-header",expandIcon:o.jsx(pn,{}),children:o.jsx(L,{children:j()})}),o.jsx(Zx,{children:I()})]}),o.jsx(fn,{open:l,anchorEl:s,transition:!0,placement:"top",children:({TransitionProps:Z})=>o.jsx(hn,{...Z,timeout:350,children:o.jsx(st,{className:t.paper,children:o.jsx(se,{className:t.copied,children:"Copied to clipboard"})})})})]}):null}const ty=de(e=>({completed:{color:e.palette.success.main,fontSize:22}})),ry=({status:e})=>{const t=ty();return e==="completed"?o.jsx(xn,{className:t.completed}):o.jsx(it,{size:20,color:"primary"})};var Zt={},ny=un,sy=cn;Object.defineProperty(Zt,"__esModule",{value:!0});var ps=Zt.default=void 0,iy=sy(C),oy=ny(dn()),ay=(0,oy.default)(iy.createElement("path",{d:"M1 21h22L12 2 
231 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"ReportProblem");ps=Zt.default=ay;const ly=de(e=>({statusText:{color:e.palette.text.secondary,fontSize:13,marginLeft:e.spacing(1)},container:{display:"flex",alignItems:"center",gap:e.spacing(1),marginLeft:e.spacing(1)},successChip:{backgroundColor:e.palette.success.main+"20",border:"none",color:e.palette.success.main,fontWeight:500,"& .MuiChip-icon":{color:e.palette.success.main,fontSize:16}},warningChip:{backgroundColor:e.palette.warning.main+"20",border:"none",color:e.palette.warning.main,fontWeight:500,"& .MuiChip-icon":{color:e.palette.warning.main,fontSize:16}}})),cy=({stepConfig:e,metrics:t})=>{const r=ly();return t&&e.metrics.some(s=>t[s.key]>0)?o.jsx(L,{className:r.container,children:e.metrics.map(s=>{const i=t[s.key];if(!i)return null;const l=s.type==="success";return o.jsx(Rs,{size:"small",variant:"outlined",icon:l?o.jsx(xn,{}):o.jsx(ps,{}),label:`${i} ${s.label}`,className:l?r.successChip:r.warningChip},s.key)})}):o.jsx(se,{className:r.statusText,children:e.defaultText})},uy=de(e=>({container:{display:"flex",flexDirection:"column",gap:e.spacing(1)},accordion:{border:`1px solid ${e.palette.divider}`,borderRadius:"8px !important",boxShadow:"none","&:before":{display:"none"},"&, &.Mui-expanded":{margin:0},"& .MuiAccordionSummary-root":{minHeight:48},"& .MuiAccordionSummary-root.Mui-expanded":{minHeight:48},"& .MuiAccordionSummary-content":{margin:"12px 0"},"& .MuiAccordionSummary-content.Mui-expanded":{margin:"12px 0"}},summaryContent:{display:"flex",alignItems:"center",gap:e.spacing(1.5)},description:{fontSize:13,color:e.palette.text.secondary}})),dy=({firstSetupStatus:e})=>{const t=uy(),[r,n]=C.useState(new Set);C.useEffect(()=>{var l;if(!e)return;const i=(l=rr.find(a=>{var c;return((c=e[a.key])==null?void 0:c.status)==="processing"}))==null?void 0:l.key;i&&n(a=>new Set([...a,i]))},[e]);const s=i=>n(l=>{const a=new Set(l);return a.has(i)?a.delete(i):a.add(i),a});return o.jsx(L,{className:t.container,children:rr.map(i=>{const l=(e==null?void 0:e[i.key])||{},a=l.status||"preparing",c=i.titles[a]||i.titles.preparing;return o.jsxs(gn,{className:t.accordion,expanded:r.has(i.key),onChange:()=>s(i.key),children:[o.jsx(mn,{expandIcon:o.jsx(pn,{}),children:o.jsxs(L,{className:t.summaryContent,children:[o.jsx(ry,{status:a}),o.jsx(se,{variant:"subtitle2",children:c}),o.jsx(cy,{stepConfig:i,metrics:l.metrics})]})}),o.jsx(vn,{children:o.jsx(se,{className:t.description,children:i.description})})]},i.key)})})},fy=de(e=>({description:{marginBottom:e.spacing(1)}})),hy=({open:e,onClose:t})=>{const r=fy(),[n,s]=C.useState(""),i=()=>{s(""),t()};return o.jsxs(Ds,{open:e,onClose:i,fullWidth:!0,maxWidth:"sm",children:[o.jsx(Ls,{onClose:i,children:"Send feedback"}),o.jsxs($s,{dividers:!0,children:[o.jsx(se,{variant:"body2",className:r.description,children:"Tell us what you liked about the AI Smart Setup and what could be improved. We appreciate all feedback."}),o.jsx(ln,{multiline:!0,rows:5,fullWidth:!0,variant:"outlined",size:"small",placeholder:"Your feedback...",value:n,onChange:l=>s(l.target.value)})]}),o.jsxs(Ms,{children:[o.jsx(ye,{variant:"contained",size:"small",onClick:i,children:"Cancel"}),o.jsx(ye,{variant:"contained",color:"primary",size:"small",children:"Send"})]})]})},py=de(e=>({container:{marginTop:e.spacing(1),padding:e.spacing(2),backgroundColor:e.palette.type==="dark"?"#1b3a1f":"#e8f5e9",borderRadius:8},title:{display:"flex",alignItems:"center",gap:e.spacing(1),marginBottom:e.spacing(1),fontWeight:600}})),gy=()=>{const e=py();return o.jsxs(L,{className:e.container,children:[o.jsxs(se,{className:e.title,variant:"subtitle2",children:[o.jsx(ui,{fontSize:"small",style:{transform:"rotate(180deg)"}}),"What to do next?"]}),o.jsxs(se,{variant:"body2",component:"ul",style:{margin:0,paddingLeft:20},children:[o.jsx("li",{children:"Preview your export to ensure your product data and feed look correct."}),o.jsxs("li",{children:["Fix any required issues in the ",o.jsx("strong",{children:"Quality"})," step."]}),o.jsx("li",{children:"If anything looks incorrect, review the AI-applied mappings and rules."})]})]})},my=de(e=>({root:{width:"100%",margin:"0 auto 16px"},cardHeader:{display:"flex",alignItems:"center",gap:e.spacing(1),padding:e.spacing(1,2),justifyContent:"space-between"},headerTitle:{display:"flex",alignItems:"center",gap:e.spacing(1)},rechecking:{display:"flex",alignItems:"center",gap:e.spacing(1),fontSize:13}})),vy=({feedProcessState:e="",firstSetupStatus:t})=>{const r=my(),{detail:n}=C.useContext(be),[s,i]=C.useState(!1),l=e==="exported";return n!=null&&n.preset_rules?o.jsxs(qe.Fragment,{children:[o.jsxs(L,{className:r.root,children:[o.jsxs(L,{className:r.cardHeader,children:[o.jsxs(L,{display:"flex",style:{gap:8},alignItems:"center",children:[o.jsx("img",{src:"/static/images/AI_badge.svg",alt:"AI",width:25,height:25}),o.jsxs(L,{className:r.headerTitle,children:[o.jsx(se,{variant:"h6",children:"Smart Setup"}),!l&&o.jsxs(L,{className:r.rechecking,children:[o.jsx(it,{size:20,color:"primary"}),"Rechecking your feed..."]})]})]}),l&&o.jsx(ye,{variant:"outlined",color:"primary",size:"small",startIcon:o.jsx(ci,{}),onClick:()=>i(!0),children:"Send FeedBack"})]}),o.jsx(L,{mx:2,children:o.jsx(dy,{firstSetupStatus:t})}),l&&o.jsx(L,{mx:2,children:o.jsx(gy,{})})]}),o.jsx(hy,{open:s,onClose:()=>i(!1)})]}):null},xy=de(e=>({paperWrap:{minHeight:500,display:"flex",justifyContent:"center",alignItems:"center"},alertBox:{maxWidth:600,width:"50%",textAlign:"center",fontWeight:500}})),yy=[{value:"overview",label:"Overview"},{value:"preview",label:"{{file}} Preview"}];function by({data:e,tab:t,setTab:r,feedProcessState:n="",setFeedProcessState:s=()=>{},qualityData:i={}}){const l=xy(),a=(i==null?void 0:i.number_required_error)||0,c=(i==null?void 0:i.number_pass)||0,u=a+c,p=Math.floor(c/u*100)||0,{cooldown:h,setCooldown:m,detail:v}=C.useContext(be),_=!!(v!=null&&v.preset_rules)&&t==="overview";C.useEffect(()=>{let w;return h&&(s("category"),w=setTimeout(()=>{m(!1),s("exported")},5e3)),()=>clearTimeout(w)}
23,[h]);const j=()=>{const w=()=>n&&n!=="exported"?o.jsx(st,{className:l.paperWrap,elevation:0,children:o.jsx(Ne,{severity:"info",className:l.alertBox,children:"Preview will be available once the feed process is completed."})}):o.jsx(Fx,{data:e});return o.jsxs(qe.Fragment,{children:[t==="overview"&&o.jsx(Xx,{data:e,skuPercentage:p,totalSKURequired:a,feedProcessState:n}),t==="preview"&&w()]})};return o.jsxs(qe.Fragment,{children:[o.jsxs(nr,{style:{display:"flex",flexDirection:"column",flex:t!=="overview"?"1 1 0":null,marginBottom:8},variant:"outlined",children:[o.jsx(zs,{value:t,onChange:(w,I)=>r(I),"aria-label":"simple tabs example",indicatorColor:"primary",textColor:"primary",children:yy.map(w=>{var I;return o.jsx(Us,{disabled:h,label:w.value==="preview"?(I=w.label.replace("{{file}}",e.content_type||"file"))==null?void 0:I.toUpperCase():w.label,value:w.value},w.value)})}),t==="overview"&&n&&o.jsx(vy,{feedProcessState:n,firstSetupStatus:e==null?void 0:e.first_setup_status}),!_&&j()]}),_&&o.jsx(nr,{variant:"outlined",style:{margin:"8px 0"},children:j()}),t==="overview"&&o.jsx(ey,{url:e.url})]})}const jy=C.memo(by),_y=[{threshold:6e4,interval:5e3},{threshold:36e4,interval:3e4}],wy=6e4,Ey=20;function Cy(e){for(const t of _y)if(e<t.threshold)return t.interval;return wy}const Sy=(e,{enabled:t},r=[])=>{const n=C.useRef(null);C.useEffect(()=>{if(!t)return;const s=new AbortController;let i=0,l=0;const a=async()=>{if(s.signal.aborted||await e(s.signal)||s.signal.aborted||(i+=1,i>=Ey))return;const u=Cy(l);l+=u,n.current=setTimeout(a,u)};return a(),()=>{s.abort(),n.current&&(clearTimeout(n.current),n.current=null)}},[t,...r])},ky=new Js({defaultOptions:{queries:{refetchOnWindowFocus:!1}}});function Ny({classes:e}){const{id:t}=Bs(),{enqueueSnackbar:r}=Vs(),{isFeedImporting:n}=He(I=>I.feed),{detail:s}=C.useContext(be),i=s==null?void 0:s.preview_status,[l,a]=C.useState({}),[c,u]=C.useState("overview"),[p,h]=C.useState({}),[m,v]=C.useState(null),_=c==="overview",j=!n&&(i==="finished"||!i)&&!!t;return C.useEffect(()=>{n&&v("importing")},[n]),Sy(async I=>{var X,te,ie;const Z={id:t,params:_?{exclude_content:2}:{}};try{const E=await qs.get.getUrl(Z);if(I.aborted)return!0;a(E.data);const d=(X=E.data)==null?void 0:X.state;return d&&v(d),d==="exported"}catch(E){console.error("Failed to fetch feed preview:",E);const d=((ie=(te=E==null?void 0:E.response)==null?void 0:te.data)==null?void 0:ie.message)||(E==null?void 0:E.message)||"Unable to load feed preview. Please try again later.";return r(d,{variant:"error"}),!0}},{enabled:j},[t,c,i,r]),C.useEffect(()=>{(async()=>{const Y=await Hs.get.getQuality(t);Y&&Y.status<400&&h(Y.data)})()},[]),o.jsxs(Ws,{maxWidth:!1,className:e.container,children:[o.jsx(Xs,{header:"Feed Preview"}),o.jsx(Zs,{client:ky,children:o.jsxs(Qs,{children:[o.jsx(ei,{tab:c,feedProcessState:m}),o.jsx(jy,{tab:c,setTab:u,data:l,feedProcessState:m,setFeedProcessState:v,qualityData:p})]})})]})}const Ay=de(e=>({root:{backgroundColor:e.palette.background.dark,marginTop:e.spacing(3)},container:{padding:"0 12px",display:"flex",flexDirection:"column",flex:1},extend:{paddingTop:12,display:"flex",flexDirection:"column",flex:1}}));function db(){const e=Ay();return o.jsx(Gs,{classes:e.root,title:"Feed Preview",noPadding:!0,extendClass:e.extend,children:o.jsx(Ks,{children:o.jsx(Ys,{children:o.jsx(Ny,{classes:e})})})})}export{db as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.