/* eslint-disable */ //prettier-ignore module.exports = { name: "@yarnpkg/plugin-licenses-audit", factory: function (require) { var plugin=(()=>{var zy=Object.create,Ur=Object.defineProperty;var Yy=Object.getOwnPropertyDescriptor;var Zy=Object.getOwnPropertyNames,da=Object.getOwnPropertySymbols,jy=Object.getPrototypeOf,pa=Object.prototype.hasOwnProperty,Jy=Object.prototype.propertyIsEnumerable;var ga=(i,h,_)=>h in i?Ur(i,h,{enumerable:!0,configurable:!0,writable:!0,value:_}):i[h]=_,bs=(i,h)=>{for(var _ in h||(h={}))pa.call(h,_)&&ga(i,_,h[_]);if(da)for(var _ of da(h))Jy.call(h,_)&&ga(i,_,h[_]);return i};var Qy=i=>Ur(i,"__esModule",{value:!0});var he=i=>{if(typeof require!="undefined")return require(i);throw new Error('Dynamic require of "'+i+'" is not supported')};var Q=(i,h)=>()=>(h||i((h={exports:{}}).exports,h),h.exports),tw=(i,h)=>{for(var _ in h)Ur(i,_,{get:h[_],enumerable:!0})},ew=(i,h,_)=>{if(h&&typeof h=="object"||typeof h=="function")for(let v of Zy(h))!pa.call(i,v)&&v!=="default"&&Ur(i,v,{get:()=>h[v],enumerable:!(_=Yy(h,v))||_.enumerable});return i},Xe=i=>ew(Qy(Ur(i!=null?zy(jy(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var Es=Q((gr,Wr)=>{(function(){var i,h="4.17.21",_=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",f="Expected a function",D="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",L=500,b="__lodash_placeholder__",A=1,X=2,T=4,N=1,q=2,B=1,G=2,nt=4,Z=8,Et=16,p=32,d=64,M=128,a=256,E=512,x=30,l="...",I=800,S=16,K=1,z=2,j=3,pt=1/0,at=9007199254740991,it=17976931348623157e292,vt=0/0,At=4294967295,Je=At-1,Qe=At>>>1,yr=[["ary",M],["bind",B],["bindKey",G],["curry",Z],["curryRight",Et],["flip",E],["partial",p],["partialRight",d],["rearg",a]],le="[object Arguments]",re="[object Array]",tr="[object AsyncFunction]",wr="[object Boolean]",_r="[object Date]",ff="[object DOMException]",Gr="[object Error]",zr="[object Function]",Rs="[object GeneratorFunction]",ne="[object Map]",vr="[object Number]",lf="[object Null]",me="[object Object]",Fs="[object Promise]",cf="[object Proxy]",Dr="[object RegExp]",ie="[object Set]",Tr="[object String]",Yr="[object Symbol]",df="[object Undefined]",Lr="[object WeakMap]",pf="[object WeakSet]",br="[object ArrayBuffer]",er="[object DataView]",ni="[object Float32Array]",ii="[object Float64Array]",si="[object Int8Array]",ui="[object Int16Array]",oi="[object Int32Array]",ai="[object Uint8Array]",hi="[object Uint8ClampedArray]",fi="[object Uint16Array]",li="[object Uint32Array]",gf=/\b__p \+= '';/g,mf=/\b(__p \+=) '' \+/g,yf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xs=/&(?:amp|lt|gt|quot|#39);/g,qs=/[&<>"']/g,wf=RegExp(Xs.source),_f=RegExp(qs.source),vf=/<%-([\s\S]+?)%>/g,Df=/<%([\s\S]+?)%>/g,Bs=/<%=([\s\S]+?)%>/g,Tf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lf=/^\w*$/,bf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ci=/[\\^$.*+?()[\]{}|]/g,Ef=RegExp(ci.source),di=/^\s+/,If=/\s/,Mf=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Of=/\{\n\/\* \[wrapped with (.+)\] \*/,xf=/,? & /,Cf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nf=/[()=,{}\[\]\/\s]/,Af=/\\(\\)?/g,Sf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Us=/\w*$/,Pf=/^[-+]0x[0-9a-f]+$/i,Rf=/^0b[01]+$/i,Ff=/^\[object .+?Constructor\]$/,Xf=/^0o[0-7]+$/i,qf=/^(?:0|[1-9]\d*)$/,Bf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zr=/($^)/,Uf=/['\n\r\u2028\u2029\\]/g,jr="\\ud800-\\udfff",Wf="\\u0300-\\u036f",Kf="\\ufe20-\\ufe2f",kf="\\u20d0-\\u20ff",Ws=Wf+Kf+kf,Ks="\\u2700-\\u27bf",ks="a-z\\xdf-\\xf6\\xf8-\\xff",Hf="\\xac\\xb1\\xd7\\xf7",Vf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$f="\\u2000-\\u206f",Gf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hs="A-Z\\xc0-\\xd6\\xd8-\\xde",Vs="\\ufe0e\\ufe0f",$s=Hf+Vf+$f+Gf,pi="['\u2019]",zf="["+jr+"]",Gs="["+$s+"]",Jr="["+Ws+"]",zs="\\d+",Yf="["+Ks+"]",Ys="["+ks+"]",Zs="[^"+jr+$s+zs+Ks+ks+Hs+"]",gi="\\ud83c[\\udffb-\\udfff]",Zf="(?:"+Jr+"|"+gi+")",js="[^"+jr+"]",mi="(?:\\ud83c[\\udde6-\\uddff]){2}",yi="[\\ud800-\\udbff][\\udc00-\\udfff]",rr="["+Hs+"]",Js="\\u200d",Qs="(?:"+Ys+"|"+Zs+")",jf="(?:"+rr+"|"+Zs+")",tu="(?:"+pi+"(?:d|ll|m|re|s|t|ve))?",eu="(?:"+pi+"(?:D|LL|M|RE|S|T|VE))?",ru=Zf+"?",nu="["+Vs+"]?",Jf="(?:"+Js+"(?:"+[js,mi,yi].join("|")+")"+nu+ru+")*",Qf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iu=nu+ru+Jf,el="(?:"+[Yf,mi,yi].join("|")+")"+iu,rl="(?:"+[js+Jr+"?",Jr,mi,yi,zf].join("|")+")",nl=RegExp(pi,"g"),il=RegExp(Jr,"g"),wi=RegExp(gi+"(?="+gi+")|"+rl+iu,"g"),sl=RegExp([rr+"?"+Ys+"+"+tu+"(?="+[Gs,rr,"$"].join("|")+")",jf+"+"+eu+"(?="+[Gs,rr+Qs,"$"].join("|")+")",rr+"?"+Qs+"+"+tu,rr+"+"+eu,tl,Qf,zs,el].join("|"),"g"),ul=RegExp("["+Js+jr+Ws+Vs+"]"),ol=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,al=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hl=-1,gt={};gt[ni]=gt[ii]=gt[si]=gt[ui]=gt[oi]=gt[ai]=gt[hi]=gt[fi]=gt[li]=!0,gt[le]=gt[re]=gt[br]=gt[wr]=gt[er]=gt[_r]=gt[Gr]=gt[zr]=gt[ne]=gt[vr]=gt[me]=gt[Dr]=gt[ie]=gt[Tr]=gt[Lr]=!1;var dt={};dt[le]=dt[re]=dt[br]=dt[er]=dt[wr]=dt[_r]=dt[ni]=dt[ii]=dt[si]=dt[ui]=dt[oi]=dt[ne]=dt[vr]=dt[me]=dt[Dr]=dt[ie]=dt[Tr]=dt[Yr]=dt[ai]=dt[hi]=dt[fi]=dt[li]=!0,dt[Gr]=dt[zr]=dt[Lr]=!1;var fl={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},ll={"&":"&","<":"<",">":">",'"':""","'":"'"},cl={"&":"&","<":"<",">":">",""":'"',"'":"'"},dl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pl=parseFloat,gl=parseInt,su=typeof global=="object"&&global&&global.Object===Object&&global,ml=typeof self=="object"&&self&&self.Object===Object&&self,It=su||ml||Function("return this")(),_i=typeof gr=="object"&&gr&&!gr.nodeType&&gr,We=_i&&typeof Wr=="object"&&Wr&&!Wr.nodeType&&Wr,uu=We&&We.exports===_i,vi=uu&&su.process,zt=function(){try{var y=We&&We.require&&We.require("util").types;return y||vi&&vi.binding&&vi.binding("util")}catch(C){}}(),ou=zt&&zt.isArrayBuffer,au=zt&&zt.isDate,hu=zt&&zt.isMap,fu=zt&&zt.isRegExp,lu=zt&&zt.isSet,cu=zt&&zt.isTypedArray;function Wt(y,C,O){switch(O.length){case 0:return y.call(C);case 1:return y.call(C,O[0]);case 2:return y.call(C,O[0],O[1]);case 3:return y.call(C,O[0],O[1],O[2])}return y.apply(C,O)}function yl(y,C,O,W){for(var Y=-1,ht=y==null?0:y.length;++Y-1}function Di(y,C,O){for(var W=-1,Y=y==null?0:y.length;++W-1;);return O}function vu(y,C){for(var O=y.length;O--&&nr(C,y[O],0)>-1;);return O}function Il(y,C){for(var O=y.length,W=0;O--;)y[O]===C&&++W;return W}var Ml=Ei(fl),Ol=Ei(ll);function xl(y){return"\\"+dl[y]}function Cl(y,C){return y==null?i:y[C]}function ir(y){return ul.test(y)}function Nl(y){return ol.test(y)}function Al(y){for(var C,O=[];!(C=y.next()).done;)O.push(C.value);return O}function xi(y){var C=-1,O=Array(y.size);return y.forEach(function(W,Y){O[++C]=[Y,W]}),O}function Du(y,C){return function(O){return y(C(O))}}function xe(y,C){for(var O=-1,W=y.length,Y=0,ht=[];++O-1}function _c(t,e){var r=this.__data__,n=yn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}ye.prototype.clear=gc,ye.prototype.delete=mc,ye.prototype.get=yc,ye.prototype.has=wc,ye.prototype.set=_c;function we(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e=e?t:e)),t}function Jt(t,e,r,n,s,o){var c,g=e&A,w=e&X,P=e&T;if(r&&(c=s?r(t,n,s,o):r(t)),c!==i)return c;if(!wt(t))return t;var R=J(t);if(R){if(c=Ld(t),!g)return Xt(t,c)}else{var F=Ct(t),U=F==zr||F==Rs;if(Fe(t))return no(t,g);if(F==me||F==le||U&&!s){if(c=w||U?{}:Lo(t),!g)return w?cd(t,Rc(c,t)):ld(t,Su(c,t))}else{if(!dt[F])return s?t:{};c=bd(t,F,g)}}o||(o=new ue);var k=o.get(t);if(k)return k;o.set(t,c),Jo(t)?t.forEach(function($){c.add(Jt($,e,r,$,t,o))}):Zo(t)&&t.forEach(function($,st){c.set(st,Jt($,e,r,st,t,o))});var V=P?w?es:ts:w?Bt:Mt,et=R?i:V(t);return Yt(et||t,function($,st){et&&(st=$,$=t[st]),Nr(c,st,Jt($,e,r,st,t,o))}),c}function Fc(t){var e=Mt(t);return function(r){return Pu(r,t,e)}}function Pu(t,e,r){var n=r.length;if(t==null)return!n;for(t=ft(t);n--;){var s=r[n],o=e[s],c=t[s];if(c===i&&!(s in t)||!o(c))return!1}return!0}function Ru(t,e,r){if(typeof t!="function")throw new Zt(f);return qr(function(){t.apply(i,r)},e)}function Ar(t,e,r,n){var s=-1,o=Qr,c=!0,g=t.length,w=[],P=e.length;if(!g)return w;r&&(e=mt(e,Kt(r))),n?(o=Di,c=!1):e.length>=_&&(o=Er,c=!1,e=new He(e));t:for(;++ss?0:s+r),n=n===i||n>s?s:tt(n),n<0&&(n+=s),n=r>n?0:ta(n);r0&&r(g)?e>1?Ot(g,e-1,r,n,s):Oe(s,g):n||(s[s.length]=g)}return s}var Fi=ho(),qu=ho(!0);function ce(t,e){return t&&Fi(t,e,Mt)}function Xi(t,e){return t&&qu(t,e,Mt)}function _n(t,e){return Me(e,function(r){return Le(t[r])})}function $e(t,e){e=Pe(e,t);for(var r=0,n=e.length;t!=null&&re}function Bc(t,e){return t!=null&&ct.call(t,e)}function Uc(t,e){return t!=null&&e in ft(t)}function Wc(t,e,r){return t>=xt(e,r)&&t=120&&R.length>=120)?new He(c&&R):i}R=t[0];var F=-1,U=g[0];t:for(;++F-1;)g!==t&&fn.call(g,w,1),fn.call(t,w,1);return t}function Yu(t,e){for(var r=t?e.length:0,n=r-1;r--;){var s=e[r];if(r==n||s!==o){var o=s;Te(s)?fn.call(t,s,1):Gi(t,s)}}return t}function Hi(t,e){return t+dn(xu()*(e-t+1))}function td(t,e,r,n){for(var s=-1,o=bt(cn((e-t)/(r||1)),0),c=O(o);o--;)c[n?o:++s]=t,t+=r;return c}function Vi(t,e){var r="";if(!t||e<1||e>at)return r;do e%2&&(r+=t),e=dn(e/2),e&&(t+=t);while(e);return r}function rt(t,e){return as(Io(t,e,Ut),t+"")}function ed(t){return Au(pr(t))}function rd(t,e){var r=pr(t);return Cn(r,Ve(e,0,r.length))}function Rr(t,e,r,n){if(!wt(t))return t;e=Pe(e,t);for(var s=-1,o=e.length,c=o-1,g=t;g!=null&&++ss?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var o=O(s);++n>>1,c=t[o];c!==null&&!Ht(c)&&(r?c<=e:c=_){var P=e?null:md(t);if(P)return en(P);c=!1,s=Er,w=new He}else w=e?[]:g;t:for(;++n=n?t:Qt(t,e,r)}var ro=Gl||function(t){return It.clearTimeout(t)};function no(t,e){if(e)return t.slice();var r=t.length,n=bu?bu(r):new t.constructor(r);return t.copy(n),n}function ji(t){var e=new t.constructor(t.byteLength);return new an(e).set(new an(t)),e}function od(t,e){var r=e?ji(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}function ad(t){var e=new t.constructor(t.source,Us.exec(t));return e.lastIndex=t.lastIndex,e}function hd(t){return Cr?ft(Cr.call(t)):{}}function io(t,e){var r=e?ji(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function so(t,e){if(t!==e){var r=t!==i,n=t===null,s=t===t,o=Ht(t),c=e!==i,g=e===null,w=e===e,P=Ht(e);if(!g&&!P&&!o&&t>e||o&&c&&w&&!g&&!P||n&&c&&w||!r&&w||!s)return 1;if(!n&&!o&&!P&&t=g)return w;var P=r[n];return w*(P=="desc"?-1:1)}}return t.index-e.index}function uo(t,e,r,n){for(var s=-1,o=t.length,c=r.length,g=-1,w=e.length,P=bt(o-c,0),R=O(w+P),F=!n;++g1?r[s-1]:i,c=s>2?r[2]:i;for(o=t.length>3&&typeof o=="function"?(s--,o):i,c&&Pt(r[0],r[1],c)&&(o=s<3?i:o,s=1),e=ft(e);++n-1?s[o?e[c]:c]:i}}function co(t){return De(function(e){var r=e.length,n=r,s=jt.prototype.thru;for(t&&e.reverse();n--;){var o=e[n];if(typeof o!="function")throw new Zt(f);if(s&&!c&&On(o)=="wrapper")var c=new jt([],!0)}for(n=c?n:r;++n1&&ot.reverse(),R&&wg))return!1;var P=o.get(t),R=o.get(e);if(P&&R)return P==e&&R==t;var F=-1,U=!0,k=r&q?new He:i;for(o.set(t,e),o.set(e,t);++F1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(Mf,`{ /* [wrapped with `+e+`] */ `)}function Id(t){return J(t)||Ye(t)||!!(Mu&&t&&t[Mu])}function Te(t,e){var r=typeof t;return e=e==null?at:e,!!e&&(r=="number"||r!="symbol"&&qf.test(t))&&t>-1&&t%1==0&&t0){if(++e>=I)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Cn(t,e){var r=-1,n=t.length,s=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r=typeof r=="function"?(t.pop(),r):i,qo(t,r)});function Bo(t){var e=u(t);return e.__chain__=!0,e}function Xp(t,e){return e(t),t}function Nn(t,e){return e(t)}var qp=De(function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,s=function(o){return Ri(o,t)};return e>1||this.__actions__.length||!(n instanceof ut)||!Te(r)?this.thru(s):(n=n.slice(r,+r+(e?1:0)),n.__actions__.push({func:Nn,args:[s],thisArg:i}),new jt(n,this.__chain__).thru(function(o){return e&&!o.length&&o.push(i),o}))});function Bp(){return Bo(this)}function Up(){return new jt(this.value(),this.__chain__)}function Wp(){this.__values__===i&&(this.__values__=Qo(this.value()));var t=this.__index__>=this.__values__.length,e=t?i:this.__values__[this.__index__++];return{done:t,value:e}}function Kp(){return this}function kp(t){for(var e,r=this;r instanceof mn;){var n=Ao(r);n.__index__=0,n.__values__=i,e?s.__wrapped__=n:e=n;var s=n;r=r.__wrapped__}return s.__wrapped__=t,e}function Hp(){var t=this.__wrapped__;if(t instanceof ut){var e=t;return this.__actions__.length&&(e=new ut(this)),e=e.reverse(),e.__actions__.push({func:Nn,args:[hs],thisArg:i}),new jt(e,this.__chain__)}return this.thru(hs)}function Vp(){return to(this.__wrapped__,this.__actions__)}var $p=Ln(function(t,e,r){ct.call(t,r)?++t[r]:_e(t,r,1)});function Gp(t,e,r){var n=J(t)?du:Xc;return r&&Pt(t,e,r)&&(e=i),n(t,H(e,3))}function zp(t,e){var r=J(t)?Me:Xu;return r(t,H(e,3))}var Yp=lo(So),Zp=lo(Po);function jp(t,e){return Ot(An(t,e),1)}function Jp(t,e){return Ot(An(t,e),pt)}function Qp(t,e,r){return r=r===i?1:tt(r),Ot(An(t,e),r)}function Uo(t,e){var r=J(t)?Yt:Ae;return r(t,H(e,3))}function Wo(t,e){var r=J(t)?wl:Fu;return r(t,H(e,3))}var tg=Ln(function(t,e,r){ct.call(t,r)?t[r].push(e):_e(t,r,[e])});function eg(t,e,r,n){t=qt(t)?t:pr(t),r=r&&!n?tt(r):0;var s=t.length;return r<0&&(r=bt(s+r,0)),Xn(t)?r<=s&&t.indexOf(e,r)>-1:!!s&&nr(t,e,r)>-1}var rg=rt(function(t,e,r){var n=-1,s=typeof e=="function",o=qt(t)?O(t.length):[];return Ae(t,function(c){o[++n]=s?Wt(e,c,r):Sr(c,e,r)}),o}),ng=Ln(function(t,e,r){_e(t,r,e)});function An(t,e){var r=J(t)?mt:ku;return r(t,H(e,3))}function ig(t,e,r,n){return t==null?[]:(J(e)||(e=e==null?[]:[e]),r=n?i:r,J(r)||(r=r==null?[]:[r]),Gu(t,e,r))}var sg=Ln(function(t,e,r){t[r?0:1].push(e)},function(){return[[],[]]});function ug(t,e,r){var n=J(t)?Ti:yu,s=arguments.length<3;return n(t,H(e,4),r,s,Ae)}function og(t,e,r){var n=J(t)?_l:yu,s=arguments.length<3;return n(t,H(e,4),r,s,Fu)}function ag(t,e){var r=J(t)?Me:Xu;return r(t,Rn(H(e,3)))}function hg(t){var e=J(t)?Au:ed;return e(t)}function fg(t,e,r){(r?Pt(t,e,r):e===i)?e=1:e=tt(e);var n=J(t)?Ac:rd;return n(t,e)}function lg(t){var e=J(t)?Sc:id;return e(t)}function cg(t){if(t==null)return 0;if(qt(t))return Xn(t)?sr(t):t.length;var e=Ct(t);return e==ne||e==ie?t.size:Wi(t).length}function dg(t,e,r){var n=J(t)?Li:sd;return r&&Pt(t,e,r)&&(e=i),n(t,H(e,3))}var pg=rt(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Pt(t,e[0],e[1])?e=[]:r>2&&Pt(e[0],e[1],e[2])&&(e=[e[0]]),Gu(t,Ot(e,1),[])}),Sn=zl||function(){return It.Date.now()};function gg(t,e){if(typeof e!="function")throw new Zt(f);return t=tt(t),function(){if(--t<1)return e.apply(this,arguments)}}function Ko(t,e,r){return e=r?i:e,e=t&&e==null?t.length:e,ve(t,M,i,i,i,i,e)}function ko(t,e){var r;if(typeof e!="function")throw new Zt(f);return t=tt(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var ls=rt(function(t,e,r){var n=B;if(r.length){var s=xe(r,cr(ls));n|=p}return ve(t,n,e,r,s)}),Ho=rt(function(t,e,r){var n=B|G;if(r.length){var s=xe(r,cr(Ho));n|=p}return ve(e,n,t,r,s)});function Vo(t,e,r){e=r?i:e;var n=ve(t,Z,i,i,i,i,i,e);return n.placeholder=Vo.placeholder,n}function $o(t,e,r){e=r?i:e;var n=ve(t,Et,i,i,i,i,i,e);return n.placeholder=$o.placeholder,n}function Go(t,e,r){var n,s,o,c,g,w,P=0,R=!1,F=!1,U=!0;if(typeof t!="function")throw new Zt(f);e=ee(e)||0,wt(r)&&(R=!!r.leading,F="maxWait"in r,o=F?bt(ee(r.maxWait)||0,e):o,U="trailing"in r?!!r.trailing:U);function k(Tt){var ae=n,Ee=s;return n=s=i,P=Tt,c=t.apply(Ee,ae),c}function V(Tt){return P=Tt,g=qr(st,e),R?k(Tt):c}function et(Tt){var ae=Tt-w,Ee=Tt-P,ca=e-ae;return F?xt(ca,o-Ee):ca}function $(Tt){var ae=Tt-w,Ee=Tt-P;return w===i||ae>=e||ae<0||F&&Ee>=o}function st(){var Tt=Sn();if($(Tt))return ot(Tt);g=qr(st,et(Tt))}function ot(Tt){return g=i,U&&n?k(Tt):(n=s=i,c)}function Vt(){g!==i&&ro(g),P=0,n=w=s=g=i}function Rt(){return g===i?c:ot(Sn())}function $t(){var Tt=Sn(),ae=$(Tt);if(n=arguments,s=this,w=Tt,ae){if(g===i)return V(w);if(F)return ro(g),g=qr(st,e),k(w)}return g===i&&(g=qr(st,e)),c}return $t.cancel=Vt,$t.flush=Rt,$t}var mg=rt(function(t,e){return Ru(t,1,e)}),yg=rt(function(t,e,r){return Ru(t,ee(e)||0,r)});function wg(t){return ve(t,E)}function Pn(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new Zt(f);var r=function(){var n=arguments,s=e?e.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);var c=t.apply(this,n);return r.cache=o.set(s,c)||o,c};return r.cache=new(Pn.Cache||we),r}Pn.Cache=we;function Rn(t){if(typeof t!="function")throw new Zt(f);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function _g(t){return ko(2,t)}var vg=ud(function(t,e){e=e.length==1&&J(e[0])?mt(e[0],Kt(H())):mt(Ot(e,1),Kt(H()));var r=e.length;return rt(function(n){for(var s=-1,o=xt(n.length,r);++s=e}),Ye=Uu(function(){return arguments}())?Uu:function(t){return _t(t)&&ct.call(t,"callee")&&!Iu.call(t,"callee")},J=O.isArray,Rg=ou?Kt(ou):kc;function qt(t){return t!=null&&Fn(t.length)&&!Le(t)}function Dt(t){return _t(t)&&qt(t)}function Fg(t){return t===!0||t===!1||_t(t)&&St(t)==wr}var Fe=Zl||Ls,Xg=au?Kt(au):Hc;function qg(t){return _t(t)&&t.nodeType===1&&!Br(t)}function Bg(t){if(t==null)return!0;if(qt(t)&&(J(t)||typeof t=="string"||typeof t.splice=="function"||Fe(t)||dr(t)||Ye(t)))return!t.length;var e=Ct(t);if(e==ne||e==ie)return!t.size;if(Xr(t))return!Wi(t).length;for(var r in t)if(ct.call(t,r))return!1;return!0}function Ug(t,e){return Pr(t,e)}function Wg(t,e,r){r=typeof r=="function"?r:i;var n=r?r(t,e):i;return n===i?Pr(t,e,i,r):!!n}function ds(t){if(!_t(t))return!1;var e=St(t);return e==Gr||e==ff||typeof t.message=="string"&&typeof t.name=="string"&&!Br(t)}function Kg(t){return typeof t=="number"&&Ou(t)}function Le(t){if(!wt(t))return!1;var e=St(t);return e==zr||e==Rs||e==tr||e==cf}function Yo(t){return typeof t=="number"&&t==tt(t)}function Fn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=at}function wt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function _t(t){return t!=null&&typeof t=="object"}var Zo=hu?Kt(hu):$c;function kg(t,e){return t===e||Ui(t,e,ns(e))}function Hg(t,e,r){return r=typeof r=="function"?r:i,Ui(t,e,ns(e),r)}function Vg(t){return jo(t)&&t!=+t}function $g(t){if(xd(t))throw new Y(v);return Wu(t)}function Gg(t){return t===null}function zg(t){return t==null}function jo(t){return typeof t=="number"||_t(t)&&St(t)==vr}function Br(t){if(!_t(t)||St(t)!=me)return!1;var e=hn(t);if(e===null)return!0;var r=ct.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&sn.call(r)==Hl}var ps=fu?Kt(fu):Gc;function Yg(t){return Yo(t)&&t>=-at&&t<=at}var Jo=lu?Kt(lu):zc;function Xn(t){return typeof t=="string"||!J(t)&&_t(t)&&St(t)==Tr}function Ht(t){return typeof t=="symbol"||_t(t)&&St(t)==Yr}var dr=cu?Kt(cu):Yc;function Zg(t){return t===i}function jg(t){return _t(t)&&Ct(t)==Lr}function Jg(t){return _t(t)&&St(t)==pf}var Qg=Mn(Ki),tm=Mn(function(t,e){return t<=e});function Qo(t){if(!t)return[];if(qt(t))return Xn(t)?se(t):Xt(t);if(Ir&&t[Ir])return Al(t[Ir]());var e=Ct(t),r=e==ne?xi:e==ie?en:pr;return r(t)}function be(t){if(!t)return t===0?t:0;if(t=ee(t),t===pt||t===-pt){var e=t<0?-1:1;return e*it}return t===t?t:0}function tt(t){var e=be(t),r=e%1;return e===e?r?e-r:e:0}function ta(t){return t?Ve(tt(t),0,At):0}function ee(t){if(typeof t=="number")return t;if(Ht(t))return vt;if(wt(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wt(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=wu(t);var r=Rf.test(t);return r||Xf.test(t)?gl(t.slice(2),r?2:8):Pf.test(t)?vt:+t}function ea(t){return de(t,Bt(t))}function em(t){return t?Ve(tt(t),-at,at):t===0?t:0}function lt(t){return t==null?"":kt(t)}var rm=fr(function(t,e){if(Xr(e)||qt(e)){de(e,Mt(e),t);return}for(var r in e)ct.call(e,r)&&Nr(t,r,e[r])}),ra=fr(function(t,e){de(e,Bt(e),t)}),qn=fr(function(t,e,r,n){de(e,Bt(e),t,n)}),nm=fr(function(t,e,r,n){de(e,Mt(e),t,n)}),im=De(Ri);function sm(t,e){var r=hr(t);return e==null?r:Su(r,e)}var um=rt(function(t,e){t=ft(t);var r=-1,n=e.length,s=n>2?e[2]:i;for(s&&Pt(e[0],e[1],s)&&(n=1);++r1),o}),de(t,es(t),r),n&&(r=Jt(r,A|X|T,yd));for(var s=e.length;s--;)Gi(r,e[s]);return r});function bm(t,e){return ia(t,Rn(H(e)))}var Em=De(function(t,e){return t==null?{}:Jc(t,e)});function ia(t,e){if(t==null)return{};var r=mt(es(t),function(n){return[n]});return e=H(e),zu(t,r,function(n,s){return e(n,s[0])})}function Im(t,e,r){e=Pe(e,t);var n=-1,s=e.length;for(s||(s=1,t=i);++ne){var n=t;t=e,e=n}if(r||t%1||e%1){var s=xu();return xt(t+s*(e-t+pl("1e-"+((s+"").length-1))),e)}return Hi(t,e)}var Xm=lr(function(t,e,r){return e=e.toLowerCase(),t+(r?oa(e):e)});function oa(t){return ys(lt(t).toLowerCase())}function aa(t){return t=lt(t),t&&t.replace(Bf,Ml).replace(il,"")}function qm(t,e,r){t=lt(t),e=kt(e);var n=t.length;r=r===i?n:Ve(tt(r),0,n);var s=r;return r-=e.length,r>=0&&t.slice(r,s)==e}function Bm(t){return t=lt(t),t&&_f.test(t)?t.replace(qs,Ol):t}function Um(t){return t=lt(t),t&&Ef.test(t)?t.replace(ci,"\\$&"):t}var Wm=lr(function(t,e,r){return t+(r?"-":"")+e.toLowerCase()}),Km=lr(function(t,e,r){return t+(r?" ":"")+e.toLowerCase()}),km=fo("toLowerCase");function Hm(t,e,r){t=lt(t),e=tt(e);var n=e?sr(t):0;if(!e||n>=e)return t;var s=(e-n)/2;return In(dn(s),r)+t+In(cn(s),r)}function Vm(t,e,r){t=lt(t),e=tt(e);var n=e?sr(t):0;return e&&n>>0,r?(t=lt(t),t&&(typeof e=="string"||e!=null&&!ps(e))&&(e=kt(e),!e&&ir(t))?Re(se(t),0,r):t.split(e,r)):[]}var Jm=lr(function(t,e,r){return t+(r?" ":"")+ys(e)});function Qm(t,e,r){return t=lt(t),r=r==null?0:Ve(tt(r),0,t.length),e=kt(e),t.slice(r,r+e.length)==e}function ty(t,e,r){var n=u.templateSettings;r&&Pt(t,e,r)&&(e=i),t=lt(t),e=qn({},e,n,wo);var s=qn({},e.imports,n.imports,wo),o=Mt(s),c=Oi(s,o),g,w,P=0,R=e.interpolate||Zr,F="__p += '",U=Ci((e.escape||Zr).source+"|"+R.source+"|"+(R===Bs?Sf:Zr).source+"|"+(e.evaluate||Zr).source+"|$","g"),k="//# sourceURL="+(ct.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hl+"]")+` `;t.replace(U,function($,st,ot,Vt,Rt,$t){return ot||(ot=Vt),F+=t.slice(P,$t).replace(Uf,xl),st&&(g=!0,F+=`' + __e(`+st+`) + '`),Rt&&(w=!0,F+=`'; `+Rt+`; __p += '`),ot&&(F+=`' + ((__t = (`+ot+`)) == null ? '' : __t) + '`),P=$t+$.length,$}),F+=`'; `;var V=ct.call(e,"variable")&&e.variable;if(!V)F=`with (obj) { `+F+` } `;else if(Nf.test(V))throw new Y(D);F=(w?F.replace(gf,""):F).replace(mf,"$1").replace(yf,"$1;"),F="function("+(V||"obj")+`) { `+(V?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(g?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+F+`return __p }`;var et=fa(function(){return ht(o,k+"return "+F).apply(i,c)});if(et.source=F,ds(et))throw et;return et}function ey(t){return lt(t).toLowerCase()}function ry(t){return lt(t).toUpperCase()}function ny(t,e,r){if(t=lt(t),t&&(r||e===i))return wu(t);if(!t||!(e=kt(e)))return t;var n=se(t),s=se(e),o=_u(n,s),c=vu(n,s)+1;return Re(n,o,c).join("")}function iy(t,e,r){if(t=lt(t),t&&(r||e===i))return t.slice(0,Tu(t)+1);if(!t||!(e=kt(e)))return t;var n=se(t),s=vu(n,se(e))+1;return Re(n,0,s).join("")}function sy(t,e,r){if(t=lt(t),t&&(r||e===i))return t.replace(di,"");if(!t||!(e=kt(e)))return t;var n=se(t),s=_u(n,se(e));return Re(n,s).join("")}function uy(t,e){var r=x,n=l;if(wt(e)){var s="separator"in e?e.separator:s;r="length"in e?tt(e.length):r,n="omission"in e?kt(e.omission):n}t=lt(t);var o=t.length;if(ir(t)){var c=se(t);o=c.length}if(r>=o)return t;var g=r-sr(n);if(g<1)return n;var w=c?Re(c,0,g).join(""):t.slice(0,g);if(s===i)return w+n;if(c&&(g+=w.length-g),ps(s)){if(t.slice(g).search(s)){var P,R=w;for(s.global||(s=Ci(s.source,lt(Us.exec(s))+"g")),s.lastIndex=0;P=s.exec(R);)var F=P.index;w=w.slice(0,F===i?g:F)}}else if(t.indexOf(kt(s),g)!=g){var U=w.lastIndexOf(s);U>-1&&(w=w.slice(0,U))}return w+n}function oy(t){return t=lt(t),t&&wf.test(t)?t.replace(Xs,Fl):t}var ay=lr(function(t,e,r){return t+(r?" ":"")+e.toUpperCase()}),ys=fo("toUpperCase");function ha(t,e,r){return t=lt(t),e=r?i:e,e===i?Nl(t)?Bl(t):Tl(t):t.match(e)||[]}var fa=rt(function(t,e){try{return Wt(t,i,e)}catch(r){return ds(r)?r:new Y(r)}}),hy=De(function(t,e){return Yt(e,function(r){r=pe(r),_e(t,r,ls(t[r],t))}),t});function fy(t){var e=t==null?0:t.length,r=H();return t=e?mt(t,function(n){if(typeof n[1]!="function")throw new Zt(f);return[r(n[0]),n[1]]}):[],rt(function(n){for(var s=-1;++sat)return[];var r=At,n=xt(t,At);e=H(e),t-=At;for(var s=Mi(n,e);++r0||e<0)?new ut(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(e=tt(e),r=e<0?r.dropRight(-e):r.take(e-t)),r)},ut.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},ut.prototype.toArray=function(){return this.take(At)},ce(ut.prototype,function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),s=u[n?"take"+(e=="last"?"Right":""):e],o=n||/^find/.test(e);!s||(u.prototype[e]=function(){var c=this.__wrapped__,g=n?[1]:arguments,w=c instanceof ut,P=g[0],R=w||J(c),F=function(st){var ot=s.apply(u,Oe([st],g));return n&&U?ot[0]:ot};R&&r&&typeof P=="function"&&P.length!=1&&(w=R=!1);var U=this.__chain__,k=!!this.__actions__.length,V=o&&!U,et=w&&!k;if(!o&&R){c=et?c:new ut(this);var $=t.apply(c,g);return $.__actions__.push({func:Nn,args:[F],thisArg:i}),new jt($,U)}return V&&et?t.apply(this,g):($=this.thru(F),V?n?$.value()[0]:$.value():$)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(t){var e=rn[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);u.prototype[t]=function(){var s=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(J(o)?o:[],s)}return this[r](function(c){return e.apply(J(c)?c:[],s)})}}),ce(ut.prototype,function(t,e){var r=u[e];if(r){var n=r.name+"";ct.call(ar,n)||(ar[n]=[]),ar[n].push({name:e,func:r})}}),ar[bn(i,G).name]=[{name:"wrapper",func:i}],ut.prototype.clone=oc,ut.prototype.reverse=ac,ut.prototype.value=hc,u.prototype.at=qp,u.prototype.chain=Bp,u.prototype.commit=Up,u.prototype.next=Wp,u.prototype.plant=kp,u.prototype.reverse=Hp,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=Vp,u.prototype.first=u.prototype.head,Ir&&(u.prototype[Ir]=Kp),u},Ce=Ul();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(It._=Ce,define(function(){return Ce})):We?((We.exports=Ce)._=Ce,_i._=Ce):It._=Ce}).call(gr)});var ge=Q((_a,qe)=>{(function(){var i,h,_,v,f,D,m,L={}.hasOwnProperty;i=function(b,...A){var X,T,N,q;if(f(Object.assign))Object.assign.apply(null,arguments);else for(X=0,N=A.length;X{(function(){var i;Da.exports=i=class{hasFeature(_,v){return!0}createDocumentType(_,v,f){throw new Error("This DOM method is not implemented.")}createDocument(_,v,f){throw new Error("This DOM method is not implemented.")}createHTMLDocument(_){throw new Error("This DOM method is not implemented.")}getFeature(_,v){throw new Error("This DOM method is not implemented.")}}}).call(va)});var ba=Q((Ta,La)=>{(function(){var i;La.exports=i=class{constructor(){}handleError(_){throw new Error(_)}}}).call(Ta)});var Ma=Q((Ea,Ia)=>{(function(){var i;Ia.exports=i=function(){class h{constructor(v){this.arr=v||[]}item(v){return this.arr[v]||null}contains(v){return this.arr.indexOf(v)!==-1}}return Object.defineProperty(h.prototype,"length",{get:function(){return this.arr.length}}),h}.call(this)}).call(Ea)});var Ca=Q((Oa,xa)=>{(function(){var i,h,_;h=ba(),_=Ma(),xa.exports=i=function(){class v{constructor(){var D;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new h,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=D=Object.create(this.defaultParams)}getParameter(D){return this.params.hasOwnProperty(D)?this.params[D]:null}canSetParameter(D,m){return!0}setParameter(D,m){return m!=null?this.params[D]=m:delete this.params[D]}}return Object.defineProperty(v.prototype,"parameterNames",{get:function(){return new _(Object.keys(this.defaultParams))}}),v}.call(this)}).call(Oa)});var Lt=Q((Na,Aa)=>{(function(){Aa.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Na)});var Ms=Q((Sa,Pa)=>{(function(){var i,h,_;i=Lt(),_=Gt(),Pa.exports=h=function(){class v{constructor(D,m,L){if(this.parent=D,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),m==null)throw new Error("Missing attribute name. "+this.debugInfo(m));this.name=this.stringify.name(m),this.value=this.stringify.attValue(L),this.type=i.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(D){return this.options.writer.attribute(this,this.options.writer.filterOptions(D))}debugInfo(D){return D=D||this.name,D==null?"parent: <"+this.parent.name+">":"attribute: {"+D+"}, parent: <"+this.parent.name+">"}isEqualNode(D){return!(D.namespaceURI!==this.namespaceURI||D.prefix!==this.prefix||D.localName!==this.localName||D.value!==this.value)}}return Object.defineProperty(v.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(v.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return this.value},set:function(f){return this.value=f||""}}),Object.defineProperty(v.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(v.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(v.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(v.prototype,"specified",{get:function(){return!0}}),v}.call(this)}).call(Sa)});var Un=Q((Ra,Fa)=>{(function(){var i;Fa.exports=i=function(){class h{constructor(v){this.nodes=v}clone(){return this.nodes=null}getNamedItem(v){return this.nodes[v]}setNamedItem(v){var f;return f=this.nodes[v.nodeName],this.nodes[v.nodeName]=v,f||null}removeNamedItem(v){var f;return f=this.nodes[v],delete this.nodes[v],f||null}item(v){return this.nodes[Object.keys(this.nodes)[v]]||null}getNamedItemNS(v,f){throw new Error("This DOM method is not implemented.")}setNamedItemNS(v){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(v,f){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(h.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),h}.call(this)}).call(Ra)});var Wn=Q((Xa,qa)=>{(function(){var i,h,_,v,f,D,m,L,b={}.hasOwnProperty;({isObject:L,isFunction:m,getValue:D}=ge()),f=Gt(),i=Lt(),h=Ms(),v=Un(),qa.exports=_=function(){class A extends f{constructor(T,N,q){var B,G,nt,Z;super(T);if(N==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(N),this.type=i.Element,this.attribs={},this.schemaTypeInfo=null,q!=null&&this.attribute(q),T.type===i.Document&&(this.isRoot=!0,this.documentObject=T,T.rootObject=this,T.children)){for(Z=T.children,G=0,nt=Z.length;G=B;N=0<=B?++q:--q)if(!this.attribs[N].isEqualNode(T.attribs[N]))return!1;return!0}}return Object.defineProperty(A.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(A.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(A.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(A.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(A.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(A.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(A.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(A.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new v(this.attribs)),this.attributeMap}}),A}.call(this)}).call(Xa)});var Kr=Q((Ba,Ua)=>{(function(){var i,h;h=Gt(),Ua.exports=i=function(){class _ extends h{constructor(f){super(f);this.value=""}clone(){return Object.create(this)}substringData(f,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(f){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(f,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(f,D){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(f,D,m){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(f){return!(!super.isEqualNode(f)||f.data!==this.data)}}return Object.defineProperty(_.prototype,"data",{get:function(){return this.value},set:function(v){return this.value=v||""}}),Object.defineProperty(_.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(_.prototype,"textContent",{get:function(){return this.value},set:function(v){return this.value=v||""}}),_}.call(this)}).call(Ba)});var Kn=Q((Wa,Ka)=>{(function(){var i,h,_;i=Lt(),_=Kr(),Ka.exports=h=class extends _{constructor(f,D){super(f);if(D==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=i.CData,this.value=this.stringify.cdata(D)}clone(){return Object.create(this)}toString(f){return this.options.writer.cdata(this,this.options.writer.filterOptions(f))}}}).call(Wa)});var kn=Q((ka,Ha)=>{(function(){var i,h,_;i=Lt(),h=Kr(),Ha.exports=_=class extends h{constructor(f,D){super(f);if(D==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=i.Comment,this.value=this.stringify.comment(D)}clone(){return Object.create(this)}toString(f){return this.options.writer.comment(this,this.options.writer.filterOptions(f))}}}).call(ka)});var Hn=Q((Va,$a)=>{(function(){var i,h,_,v;({isObject:v}=ge()),_=Gt(),i=Lt(),$a.exports=h=class extends _{constructor(D,m,L,b){super(D);v(m)&&({version:m,encoding:L,standalone:b}=m),m||(m="1.0"),this.type=i.Declaration,this.version=this.stringify.xmlVersion(m),L!=null&&(this.encoding=this.stringify.xmlEncoding(L)),b!=null&&(this.standalone=this.stringify.xmlStandalone(b))}toString(D){return this.options.writer.declaration(this,this.options.writer.filterOptions(D))}}}).call(Va)});var Vn=Q((Ga,za)=>{(function(){var i,h,_;_=Gt(),i=Lt(),za.exports=h=class extends _{constructor(f,D,m,L,b,A){super(f);if(D==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(m==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(D));if(!L)throw new Error("Missing DTD attribute type. "+this.debugInfo(D));if(!b)throw new Error("Missing DTD attribute default. "+this.debugInfo(D));if(b.indexOf("#")!==0&&(b="#"+b),!b.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(D));if(A&&!b.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(D));this.elementName=this.stringify.name(D),this.type=i.AttributeDeclaration,this.attributeName=this.stringify.name(m),this.attributeType=this.stringify.dtdAttType(L),A&&(this.defaultValue=this.stringify.dtdAttDefault(A)),this.defaultValueType=b}toString(f){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(f))}}}).call(Ga)});var $n=Q((Ya,Za)=>{(function(){var i,h,_,v;({isObject:v}=ge()),_=Gt(),i=Lt(),Za.exports=h=function(){class f extends _{constructor(m,L,b,A){super(m);if(b==null)throw new Error("Missing DTD entity name. "+this.debugInfo(b));if(A==null)throw new Error("Missing DTD entity value. "+this.debugInfo(b));if(this.pe=!!L,this.name=this.stringify.name(b),this.type=i.EntityDeclaration,!v(A))this.value=this.stringify.dtdEntityValue(A),this.internal=!0;else{if(!A.pubID&&!A.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(b));if(A.pubID&&!A.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(b));if(this.internal=!1,A.pubID!=null&&(this.pubID=this.stringify.dtdPubID(A.pubID)),A.sysID!=null&&(this.sysID=this.stringify.dtdSysID(A.sysID)),A.nData!=null&&(this.nData=this.stringify.dtdNData(A.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(b))}}toString(m){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(m))}}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(f.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(f.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(f.prototype,"xmlVersion",{get:function(){return null}}),f}.call(this)}).call(Ya)});var Gn=Q((ja,Ja)=>{(function(){var i,h,_;_=Gt(),i=Lt(),Ja.exports=h=class extends _{constructor(f,D,m){super(f);if(D==null)throw new Error("Missing DTD element name. "+this.debugInfo());m||(m="(#PCDATA)"),Array.isArray(m)&&(m="("+m.join(",")+")"),this.name=this.stringify.name(D),this.type=i.ElementDeclaration,this.value=this.stringify.dtdElementValue(m)}toString(f){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(f))}}}).call(ja)});var zn=Q((Qa,th)=>{(function(){var i,h,_;_=Gt(),i=Lt(),th.exports=h=function(){class v extends _{constructor(D,m,L){super(D);if(m==null)throw new Error("Missing DTD notation name. "+this.debugInfo(m));if(!L.pubID&&!L.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(m));this.name=this.stringify.name(m),this.type=i.NotationDeclaration,L.pubID!=null&&(this.pubID=this.stringify.dtdPubID(L.pubID)),L.sysID!=null&&(this.sysID=this.stringify.dtdSysID(L.sysID))}toString(D){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(D))}}return Object.defineProperty(v.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(v.prototype,"systemId",{get:function(){return this.sysID}}),v}.call(this)}).call(Qa)});var Yn=Q((eh,rh)=>{(function(){var i,h,_,v,f,D,m,L,b;({isObject:b}=ge()),L=Gt(),i=Lt(),h=Vn(),v=$n(),_=Gn(),f=zn(),m=Un(),rh.exports=D=function(){class A extends L{constructor(T,N,q){var B,G,nt,Z;super(T);if(this.type=i.DocType,T.children){for(Z=T.children,G=0,nt=Z.length;G{(function(){var i,h,_;i=Lt(),h=Gt(),ih.exports=_=class extends h{constructor(f,D){super(f);if(D==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=i.Raw,this.value=this.stringify.raw(D)}clone(){return Object.create(this)}toString(f){return this.options.writer.raw(this,this.options.writer.filterOptions(f))}}}).call(nh)});var jn=Q((sh,uh)=>{(function(){var i,h,_;i=Lt(),h=Kr(),uh.exports=_=function(){class v extends h{constructor(D,m){super(D);if(m==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=i.Text,this.value=this.stringify.text(m)}clone(){return Object.create(this)}toString(D){return this.options.writer.text(this,this.options.writer.filterOptions(D))}splitText(D){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(D){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(v.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(v.prototype,"wholeText",{get:function(){var f,D,m;for(m="",D=this.previousSibling;D;)m=D.data+m,D=D.previousSibling;for(m+=this.data,f=this.nextSibling;f;)m=m+f.data,f=f.nextSibling;return m}}),v}.call(this)}).call(sh)});var Jn=Q((oh,ah)=>{(function(){var i,h,_;i=Lt(),h=Kr(),ah.exports=_=class extends h{constructor(f,D,m){super(f);if(D==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=i.ProcessingInstruction,this.target=this.stringify.insTarget(D),this.name=this.target,m&&(this.value=this.stringify.insValue(m))}clone(){return Object.create(this)}toString(f){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(f))}isEqualNode(f){return!(!super.isEqualNode(f)||f.target!==this.target)}}}).call(oh)});var Os=Q((hh,fh)=>{(function(){var i,h,_;_=Gt(),i=Lt(),fh.exports=h=class extends _{constructor(f){super(f);this.type=i.Dummy}clone(){return Object.create(this)}toString(f){return""}}}).call(hh)});var dh=Q((lh,ch)=>{(function(){var i;ch.exports=i=function(){class h{constructor(v){this.nodes=v}clone(){return this.nodes=null}item(v){return this.nodes[v]||null}}return Object.defineProperty(h.prototype,"length",{get:function(){return this.nodes.length||0}}),h}.call(this)}).call(lh)});var mh=Q((ph,gh)=>{(function(){gh.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(ph)});var Gt=Q((yh,wh)=>{(function(){var i,h,_,v,f,D,m,L,b,A,X,T,N,q,B,G,nt,Z,Et={}.hasOwnProperty,p=[].splice;({isObject:Z,isFunction:nt,isEmpty:G,getValue:B}=ge()),L=null,_=null,v=null,f=null,D=null,N=null,q=null,T=null,m=null,h=null,X=null,b=null,i=null,wh.exports=A=function(){class d{constructor(a){this.parent=a,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,L||(L=Wn(),_=Kn(),v=kn(),f=Hn(),D=Yn(),N=Zn(),q=jn(),T=Jn(),m=Os(),h=Lt(),X=dh(),b=Un(),i=mh())}setParent(a){var E,x,l,I,S;for(this.parent=a,a&&(this.options=a.options,this.stringify=a.stringify),I=this.children,S=[],x=0,l=I.length;x":((x=this.parent)!=null?x.name:void 0)?"node: <"+a+">, parent: <"+this.parent.name+">":"node: <"+a+">"}ele(a,E,x){return this.element(a,E,x)}nod(a,E,x){return this.node(a,E,x)}txt(a){return this.text(a)}dat(a){return this.cdata(a)}com(a){return this.comment(a)}ins(a,E){return this.instruction(a,E)}doc(){return this.document()}dec(a,E,x){return this.declaration(a,E,x)}e(a,E,x){return this.element(a,E,x)}n(a,E,x){return this.node(a,E,x)}t(a){return this.text(a)}d(a){return this.cdata(a)}c(a){return this.comment(a)}r(a){return this.raw(a)}i(a,E){return this.instruction(a,E)}u(){return this.up()}importXMLBuilder(a){return this.importDocument(a)}attribute(a,E){throw new Error("attribute() applies to element nodes only.")}att(a,E){return this.attribute(a,E)}a(a,E){return this.attribute(a,E)}removeAttribute(a){throw new Error("attribute() applies to element nodes only.")}replaceChild(a,E){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(a,E){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(a){var E,x;return E=this,E===a?0:this.document()!==a.document()?(x=i.Disconnected|i.ImplementationSpecific,Math.random()<.5?x|=i.Preceding:x|=i.Following,x):E.isAncestor(a)?i.Contains|i.Preceding:E.isDescendant(a)?i.Contains|i.Following:E.isPreceding(a)?i.Preceding:i.Following}isSameNode(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(a){var E,x,l;if(a.nodeType!==this.nodeType||a.children.length!==this.children.length)return!1;for(E=x=0,l=this.children.length-1;0<=l?x<=l:x>=l;E=0<=l?++x:--x)if(!this.children[E].isEqualNode(a.children[E]))return!1;return!0}getFeature(a,E){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(a,E,x){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(a){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(a){return a?a===this||this.isDescendant(a):!1}isDescendant(a){var E,x,l,I,S;for(S=this.children,l=0,I=S.length;lx}treePosition(a){var E,x;return x=0,E=!1,this.foreachTreeNode(this.document(),function(l){if(x++,!E&&l===a)return E=!0}),E?x:-1}foreachTreeNode(a,E){var x,l,I,S,K;for(a||(a=this.document()),S=a.children,l=0,I=S.length;l{(function(){var i,h={}.hasOwnProperty;vh.exports=i=function(){class _{constructor(f){var D,m,L;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),f||(f={}),this.options=f,this.options.version||(this.options.version="1.0"),m=f.stringify||{};for(D in m)!h.call(m,D)||(L=m[D],this[D]=L)}name(f){return this.options.noValidation?f:this.assertLegalName(""+f||"")}text(f){return this.options.noValidation?f:this.assertLegalChar(this.textEscape(""+f||""))}cdata(f){return this.options.noValidation?f:(f=""+f||"",f=f.replace("]]>","]]]]>"),this.assertLegalChar(f))}comment(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+f);return this.assertLegalChar(f)}raw(f){return this.options.noValidation?f:""+f||""}attValue(f){return this.options.noValidation?f:this.assertLegalChar(this.attEscape(f=""+f||""))}insTarget(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}insValue(f){if(this.options.noValidation)return f;if(f=""+f||"",f.match(/\?>/))throw new Error("Invalid processing instruction value: "+f);return this.assertLegalChar(f)}xmlVersion(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+f);return f}xmlEncoding(f){if(this.options.noValidation)return f;if(f=""+f||"",!f.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+f);return this.assertLegalChar(f)}xmlStandalone(f){return this.options.noValidation?f:f?"yes":"no"}dtdPubID(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}dtdSysID(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}dtdElementValue(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}dtdAttType(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}dtdAttDefault(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}dtdEntityValue(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}dtdNData(f){return this.options.noValidation?f:this.assertLegalChar(""+f||"")}assertLegalChar(f){var D,m;if(this.options.noValidation)return f;if(this.options.version==="1.0"){if(D=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)f=f.replace(D,this.options.invalidCharReplacement);else if(m=f.match(D))throw new Error(`Invalid character in string: ${f} at index ${m.index}`)}else if(this.options.version==="1.1"){if(D=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)f=f.replace(D,this.options.invalidCharReplacement);else if(m=f.match(D))throw new Error(`Invalid character in string: ${f} at index ${m.index}`)}return f}assertLegalName(f){var D;if(this.options.noValidation)return f;if(f=this.assertLegalChar(f),D=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!f.match(D))throw new Error(`Invalid character in name: ${f}`);return f}textEscape(f){var D;return this.options.noValidation?f:(D=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,f.replace(D,"&").replace(//g,">").replace(/\r/g," "))}attEscape(f){var D;return this.options.noValidation?f:(D=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,f.replace(D,"&").replace(/{(function(){Th.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(Dh)});var Cs=Q((Lh,bh)=>{(function(){var i,h,_,v,f,D,m,L,b,A,X,T,N,q,B,G,nt,Z={}.hasOwnProperty;({assign:nt}=ge()),i=Lt(),b=Hn(),A=Yn(),_=Kn(),v=kn(),T=Wn(),q=Zn(),B=jn(),N=Jn(),X=Os(),f=Vn(),D=Gn(),m=$n(),L=zn(),h=kr(),bh.exports=G=class{constructor(p){var d,M,a;p||(p={}),this.options=p,M=p.writer||{};for(d in M)!Z.call(M,d)||(a=M[d],this["_"+d]=this[d],this[d]=a)}filterOptions(p){var d,M,a,E,x,l,I,S,K;return p||(p={}),p=nt({},this.options,p),d={writer:this},d.pretty=p.pretty||!1,d.allowEmpty=p.allowEmpty||!1,d.indent=(M=p.indent)!=null?M:" ",d.newline=(a=p.newline)!=null?a:` `,d.offset=(E=p.offset)!=null?E:0,d.width=(x=p.width)!=null?x:0,d.dontPrettyTextNodes=(l=(I=p.dontPrettyTextNodes)!=null?I:p.dontprettytextnodes)!=null?l:0,d.spaceBeforeSlash=(S=(K=p.spaceBeforeSlash)!=null?K:p.spacebeforeslash)!=null?S:"",d.spaceBeforeSlash===!0&&(d.spaceBeforeSlash=" "),d.suppressPrettyCount=0,d.user={},d.state=h.None,d}indent(p,d,M){var a;return!d.pretty||d.suppressPrettyCount?"":d.pretty&&(a=(M||0)+d.offset+1,a>0)?new Array(a).join(d.indent):""}endline(p,d,M){return!d.pretty||d.suppressPrettyCount?"":d.newline}attribute(p,d,M){var a;return this.openAttribute(p,d,M),d.pretty&&d.width>0?a=p.name+'="'+p.value+'"':a=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,d,M),a}cdata(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+""+this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}comment(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+""+this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}declaration(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+"",a+=this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}docType(p,d,M){var a,E,x,l,I;if(M||(M=0),this.openNode(p,d,M),d.state=h.OpenTag,l=this.indent(p,d,M),l+="0){for(l+=" [",l+=this.endline(p,d,M),d.state=h.InsideTag,I=p.children,E=0,x=I.length;E",l+=this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),l}element(p,d,M){var a,E,x,l,I,S,K,z,j,pt,at,it,vt,At,Je,Qe,yr,le,re;if(M||(M=0),it=!1,this.openNode(p,d,M),d.state=h.OpenTag,vt=this.indent(p,d,M)+"<"+p.name,d.pretty&&d.width>0){z=vt.length,Je=p.attribs;for(at in Je)!Z.call(Je,at)||(a=Je[at],At=this.attribute(a,d,M),E=At.length,z+E>d.width?(re=this.indent(p,d,M+1)+At,vt+=this.endline(p,d,M)+re,z=re.length):(re=" "+At,vt+=re,z+=re.length))}else{Qe=p.attribs;for(at in Qe)!Z.call(Qe,at)||(a=Qe[at],vt+=this.attribute(a,d,M))}if(l=p.children.length,I=l===0?null:p.children[0],l===0||p.children.every(function(tr){return(tr.type===i.Text||tr.type===i.Raw||tr.type===i.CData)&&tr.value===""}))d.allowEmpty?(vt+=">",d.state=h.CloseTag,vt+=""+this.endline(p,d,M)):(d.state=h.CloseTag,vt+=d.spaceBeforeSlash+"/>"+this.endline(p,d,M));else if(d.pretty&&l===1&&(I.type===i.Text||I.type===i.Raw||I.type===i.CData)&&I.value!=null)vt+=">",d.state=h.InsideTag,d.suppressPrettyCount++,it=!0,vt+=this.writeChildNode(I,d,M+1),d.suppressPrettyCount--,it=!1,d.state=h.CloseTag,vt+=""+this.endline(p,d,M);else{if(d.dontPrettyTextNodes){for(yr=p.children,S=0,j=yr.length;S"+this.endline(p,d,M),d.state=h.InsideTag,le=p.children,K=0,pt=le.length;K",it&&d.suppressPrettyCount--,vt+=this.endline(p,d,M),d.state=h.None}return this.closeNode(p,d,M),vt}writeChildNode(p,d,M){switch(p.type){case i.CData:return this.cdata(p,d,M);case i.Comment:return this.comment(p,d,M);case i.Element:return this.element(p,d,M);case i.Raw:return this.raw(p,d,M);case i.Text:return this.text(p,d,M);case i.ProcessingInstruction:return this.processingInstruction(p,d,M);case i.Dummy:return"";case i.Declaration:return this.declaration(p,d,M);case i.DocType:return this.docType(p,d,M);case i.AttributeDeclaration:return this.dtdAttList(p,d,M);case i.ElementDeclaration:return this.dtdElement(p,d,M);case i.EntityDeclaration:return this.dtdEntity(p,d,M);case i.NotationDeclaration:return this.dtdNotation(p,d,M);default:throw new Error("Unknown XML node type: "+p.constructor.name)}}processingInstruction(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+"",a+=this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}raw(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M),d.state=h.InsideTag,a+=p.value,d.state=h.CloseTag,a+=this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}text(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M),d.state=h.InsideTag,a+=p.value,d.state=h.CloseTag,a+=this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}dtdAttList(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+""+this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}dtdElement(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+""+this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}dtdEntity(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+""+this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}dtdNotation(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+""+this.endline(p,d,M),d.state=h.None,this.closeNode(p,d,M),a}openNode(p,d,M){}closeNode(p,d,M){}openAttribute(p,d,M){}closeAttribute(p,d,M){}}}).call(Lh)});var Qn=Q((Eh,Ih)=>{(function(){var i,h;h=Cs(),Ih.exports=i=class extends h{constructor(v){super(v)}document(v,f){var D,m,L,b,A;for(f=this.filterOptions(f),b="",A=v.children,m=0,L=A.length;m{(function(){var i,h,_,v,f,D,m,L;({isPlainObject:L}=ge()),_=Is(),h=Ca(),f=Gt(),i=Lt(),m=xs(),D=Qn(),Oh.exports=v=function(){class b extends f{constructor(X){super(null);this.name="#document",this.type=i.Document,this.documentURI=null,this.domConfig=new h,X||(X={}),X.writer||(X.writer=new D),this.options=X,this.stringify=new m(X)}end(X){var T;return T={},X?L(X)&&(T=X,X=this.options.writer):X=this.options.writer,X.document(this,X.filterOptions(T))}toString(X){return this.options.writer.document(this,this.options.writer.filterOptions(X))}createElement(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(X,T){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(X,T){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(X,T){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(X,T){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(X,T){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(X,T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(X){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(X,T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(X,T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(b.prototype,"implementation",{value:new _}),Object.defineProperty(b.prototype,"doctype",{get:function(){var A,X,T,N;for(N=this.children,X=0,T=N.length;X{(function(){var i,h,_,v,f,D,m,L,b,A,X,T,N,q,B,G,nt,Z,Et,p,d,M,a,E={}.hasOwnProperty;({isObject:M,isFunction:d,isPlainObject:a,getValue:p}=ge()),i=Lt(),T=Ns(),q=Wn(),v=Kn(),f=kn(),G=Zn(),Et=jn(),B=Jn(),A=Hn(),X=Yn(),D=Vn(),L=$n(),m=Gn(),b=zn(),_=Ms(),Z=xs(),nt=Qn(),h=kr(),Ch.exports=N=class{constructor(l,I,S){var K;this.name="?xml",this.type=i.Document,l||(l={}),K={},l.writer?a(l.writer)&&(K=l.writer,l.writer=new nt):l.writer=new nt,this.options=l,this.writer=l.writer,this.writerOptions=this.writer.filterOptions(K),this.stringify=new Z(l),this.onDataCallback=I||function(){},this.onEndCallback=S||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(l){var I,S,K,z,j,pt,at,it;switch(l.type){case i.CData:this.cdata(l.value);break;case i.Comment:this.comment(l.value);break;case i.Element:K={},at=l.attribs;for(S in at)!E.call(at,S)||(I=at[S],K[S]=I.value);this.node(l.name,K);break;case i.Dummy:this.dummy();break;case i.Raw:this.raw(l.value);break;case i.Text:this.text(l.value);break;case i.ProcessingInstruction:this.instruction(l.target,l.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+l.constructor.name)}for(it=l.children,j=0,pt=it.length;j=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(l){var I,S,K,z;if(!l.isOpen){if(!this.root&&this.currentLevel===0&&l.type===i.Element&&(this.root=l),S="",l.type===i.Element){this.writerOptions.state=h.OpenTag,S=this.writer.indent(l,this.writerOptions,this.currentLevel)+"<"+l.name,z=l.attribs;for(K in z)!E.call(z,K)||(I=z[K],S+=this.writer.attribute(I,this.writerOptions,this.currentLevel));S+=(l.children?">":"/>")+this.writer.endline(l,this.writerOptions,this.currentLevel),this.writerOptions.state=h.InsideTag}else this.writerOptions.state=h.OpenTag,S=this.writer.indent(l,this.writerOptions,this.currentLevel)+""),S+=this.writer.endline(l,this.writerOptions,this.currentLevel);return this.onData(S,this.currentLevel),l.isOpen=!0}}closeNode(l){var I;if(!l.isClosed)return I="",this.writerOptions.state=h.CloseTag,l.type===i.Element?I=this.writer.indent(l,this.writerOptions,this.currentLevel)+""+this.writer.endline(l,this.writerOptions,this.currentLevel):I=this.writer.indent(l,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(l,this.writerOptions,this.currentLevel),this.writerOptions.state=h.None,this.onData(I,this.currentLevel),l.isClosed=!0}onData(l,I){return this.documentStarted=!0,this.onDataCallback(l,I+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(l){return l==null?"":"node: <"+l+">"}ele(){return this.element(...arguments)}nod(l,I,S){return this.node(l,I,S)}txt(l){return this.text(l)}dat(l){return this.cdata(l)}com(l){return this.comment(l)}ins(l,I){return this.instruction(l,I)}dec(l,I,S){return this.declaration(l,I,S)}dtd(l,I,S){return this.doctype(l,I,S)}e(l,I,S){return this.element(l,I,S)}n(l,I,S){return this.node(l,I,S)}t(l){return this.text(l)}d(l){return this.cdata(l)}c(l){return this.comment(l)}r(l){return this.raw(l)}i(l,I){return this.instruction(l,I)}att(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===i.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(l,I){return this.entity(l,I)}pent(l,I){return this.pEntity(l,I)}not(l,I){return this.notation(l,I)}}}).call(xh)});var Ph=Q((Ah,Sh)=>{(function(){var i,h,_,v,f={}.hasOwnProperty;i=Lt(),v=Cs(),h=kr(),Sh.exports=_=class extends v{constructor(m,L){super(L);this.stream=m}endline(m,L,b){return m.isLastRootNode&&L.state===h.CloseTag?"":super.endline(m,L,b)}document(m,L){var b,A,X,T,N,q,B,G,nt;for(B=m.children,A=X=0,N=B.length;X0){for(this.stream.write(" ["),this.stream.write(this.endline(m,L,b)),L.state=h.InsideTag,N=m.children,X=0,T=N.length;X"),this.stream.write(this.endline(m,L,b)),L.state=h.None,this.closeNode(m,L,b)}element(m,L,b){var A,X,T,N,q,B,G,nt,Z,Et,p,d,M,a,E,x;if(b||(b=0),this.openNode(m,L,b),L.state=h.OpenTag,p=this.indent(m,L,b)+"<"+m.name,L.pretty&&L.width>0){G=p.length,M=m.attribs;for(Z in M)!f.call(M,Z)||(A=M[Z],d=this.attribute(A,L,b),X=d.length,G+X>L.width?(x=this.indent(m,L,b+1)+d,p+=this.endline(m,L,b)+x,G=x.length):(x=" "+d,p+=x,G+=x.length))}else{a=m.attribs;for(Z in a)!f.call(a,Z)||(A=a[Z],p+=this.attribute(A,L,b))}if(this.stream.write(p),N=m.children.length,q=N===0?null:m.children[0],N===0||m.children.every(function(l){return(l.type===i.Text||l.type===i.Raw||l.type===i.CData)&&l.value===""}))L.allowEmpty?(this.stream.write(">"),L.state=h.CloseTag,this.stream.write("")):(L.state=h.CloseTag,this.stream.write(L.spaceBeforeSlash+"/>"));else if(L.pretty&&N===1&&(q.type===i.Text||q.type===i.Raw||q.type===i.CData)&&q.value!=null)this.stream.write(">"),L.state=h.InsideTag,L.suppressPrettyCount++,Et=!0,this.writeChildNode(q,L,b+1),L.suppressPrettyCount--,Et=!1,L.state=h.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(m,L,b)),L.state=h.InsideTag,E=m.children,B=0,nt=E.length;B")}return this.stream.write(this.endline(m,L,b)),L.state=h.None,this.closeNode(m,L,b)}processingInstruction(m,L,b){return this.stream.write(super.processingInstruction(m,L,b))}raw(m,L,b){return this.stream.write(super.raw(m,L,b))}text(m,L,b){return this.stream.write(super.text(m,L,b))}dtdAttList(m,L,b){return this.stream.write(super.dtdAttList(m,L,b))}dtdElement(m,L,b){return this.stream.write(super.dtdElement(m,L,b))}dtdEntity(m,L,b){return this.stream.write(super.dtdEntity(m,L,b))}dtdNotation(m,L,b){return this.stream.write(super.dtdNotation(m,L,b))}}}).call(Ah)});var Fh=Q((Rh,Be)=>{(function(){var i,h,_,v,f,D,m,L,b;({assign:L,isFunction:b}=ge()),_=Is(),v=Ns(),f=Nh(),m=Qn(),D=Ph(),i=Lt(),h=kr(),Be.exports.create=function(A,X,T,N){var q,B;if(A==null)throw new Error("Root element needs a name.");return N=L({},X,T,N),q=new v(N),B=q.element(A),N.headless||(q.declaration(N),(N.pubID!=null||N.sysID!=null)&&q.dtd(N)),B},Be.exports.begin=function(A,X,T){return b(A)&&([X,T]=[A,X],A={}),X?new f(A,X,T):new v(A)},Be.exports.stringWriter=function(A){return new m(A)},Be.exports.streamWriter=function(A,X){return new D(A,X)},Be.exports.implementation=new _,Be.exports.nodeType=i,Be.exports.writerState=h}).call(Rh)});var Bh=Q((Bw,qh)=>{"use strict";var Xh=(i,h)=>function(){let _=h.promiseModule,v=new Array(arguments.length);for(let f=0;f{h.errorFirst?v.push(function(m,L){if(h.multiArgs){let b=new Array(arguments.length-1);for(let A=1;A{h=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},h);let _=f=>{let D=m=>typeof m=="string"?f===m:m.test(f);return h.include?h.include.some(D):!h.exclude.some(D)},v;typeof i=="function"?v=function(){return h.excludeMain?i.apply(this,arguments):Xh(i,h).apply(this,arguments)}:v=Object.create(Object.getPrototypeOf(i));for(let f in i){let D=i[f];v[f]=typeof D=="function"&&_(f)?Xh(D,h):D}return v}});var kh=Q((Uw,As)=>{"use strict";var sw=he("fs"),Ze=he("path"),Uh=Bh(),Wh={mode:511&~process.umask(),fs:sw},Kh=i=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(i.replace(Ze.parse(i).root,""))){let _=new Error(`Path contains invalid characters: ${i}`);throw _.code="EINVAL",_}};As.exports=(i,h)=>Promise.resolve().then(()=>{Kh(i),h=Object.assign({},Wh,h);let _=Uh(h.fs.mkdir),v=Uh(h.fs.stat),f=D=>_(D,h.mode).then(()=>D).catch(m=>{if(m.code==="ENOENT"){if(m.message.includes("null bytes")||Ze.dirname(D)===D)throw m;return f(Ze.dirname(D)).then(()=>f(D))}return v(D).then(L=>L.isDirectory()?D:Promise.reject()).catch(()=>{throw m})});return f(Ze.resolve(i))});As.exports.sync=(i,h)=>{Kh(i),h=Object.assign({},Wh,h);let _=v=>{try{h.fs.mkdirSync(v,h.mode)}catch(f){if(f.code==="ENOENT"){if(f.message.includes("null bytes")||Ze.dirname(v)===v)throw f;return _(Ze.dirname(v)),_(v)}try{if(!h.fs.statSync(v).isDirectory())throw new Error("The path is not a directory")}catch(D){throw f}}return v};return _(Ze.resolve(i))}});var $h=Q((Ww,Vh)=>{"use strict";Vh.exports=Ue;Ue.asString=Ue;Ue.ISO8601_FORMAT="yyyy-MM-dd hh:mm:ss.SSS";Ue.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ssO";Ue.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS";Ue.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS";function Hh(i,h){for(var _=i+"";_.length-1?f:D,L=je(i.getHours()),b=je(i.getMinutes()),A=je(i.getSeconds()),X=Hh(i.getMilliseconds(),3),T=uw(i),N=h.replace(/dd/g,_).replace(/MM/g,v).replace(/y{1,4}/g,m).replace(/hh/g,L).replace(/mm/g,b).replace(/ss/g,A).replace(/SSS/g,X).replace(/O/g,T);return N}});var Ss=Q((Kw,Gh)=>{var Hr=Es(),ow=$h().asString;function fe(i){this._factory=i,this._attributes={},this._testCases=[],this._properties=[]}fe.prototype.name=function(i){return this._attributes.name=i,this};fe.prototype.time=function(i){return this._attributes.time=i,this};fe.prototype.timestamp=function(i){return Hr.isDate(i)?this._attributes.timestamp=ow("yyyy-MM-ddThh:mm:ss",i):this._attributes.timestamp=i,this};fe.prototype.property=function(i,h){return this._properties.push({name:i,value:h}),this};fe.prototype.testCase=function(){var i=this._factory.newTestCase();return this._testCases.push(i),i};fe.prototype.getFailureCount=function(){return this._sumTestCaseCounts(function(i){return i.getFailureCount()})};fe.prototype.getErrorCount=function(){return this._sumTestCaseCounts(function(i){return i.getErrorCount()})};fe.prototype.getSkippedCount=function(){return this._sumTestCaseCounts(function(i){return i.getSkippedCount()})};fe.prototype._sumTestCaseCounts=function(i){var h=Hr.map(this._testCases,i);return Hr.sum(h)};fe.prototype.build=function(i){this._attributes.tests=this._testCases.length,this._attributes.failures=this.getFailureCount(),this._attributes.errors=this.getErrorCount(),this._attributes.skipped=this.getSkippedCount();var h=i.ele("testsuite",this._attributes);if(this._properties.length){var _=h.ele("properties");Hr.forEach(this._properties,function(v){_.ele("property",{name:v.name,value:v.value})})}Hr.forEach(this._testCases,function(v){v.build(h)})};Gh.exports=fe});var Ps=Q((kw,zh)=>{function Nt(){this._error=!1,this._failure=!1,this._skipped=!1,this._standardOutput=void 0,this._standardError=void 0,this._stacktrace=void 0,this._attributes={},this._errorAttributes={},this._failureAttributes={},this._errorAttachment=void 0,this._errorContent=void 0}Nt.prototype.className=function(i){return this._attributes.classname=i,this};Nt.prototype.name=function(i){return this._attributes.name=i,this};Nt.prototype.time=function(i){return this._attributes.time=i,this};Nt.prototype.file=function(i){return this._attributes.file=i,this};Nt.prototype.failure=function(i,h){return this._failure=!0,i&&(this._failureAttributes.message=i),h&&(this._failureAttributes.type=h),this};Nt.prototype.error=function(i,h,_){return this._error=!0,i&&(this._errorAttributes.message=i),h&&(this._errorAttributes.type=h),_&&(this._errorContent=_),this};Nt.prototype.stacktrace=function(i){return this._failure=!0,this._stacktrace=i,this};Nt.prototype.skipped=function(){return this._skipped=!0,this};Nt.prototype.standardOutput=function(i){return this._standardOutput=i,this};Nt.prototype.standardError=function(i){return this._standardError=i,this};Nt.prototype.getFailureCount=function(){return Number(this._failure)};Nt.prototype.getErrorCount=function(){return Number(this._error)};Nt.prototype.getSkippedCount=function(){return Number(this._skipped)};Nt.prototype.errorAttachment=function(i){return this._errorAttachment=i,this};Nt.prototype.build=function(i){var h=i.ele("testcase",this._attributes);if(this._failure){var _=h.ele("failure",this._failureAttributes);this._stacktrace&&_.cdata(this._stacktrace)}if(this._error){var v=h.ele("error",this._errorAttributes);this._errorContent&&v.cdata(this._errorContent)}this._skipped&&h.ele("skipped"),this._standardOutput&&h.ele("system-out").cdata(this._standardOutput);var f;this._standardError&&(f=h.ele("system-err").cdata(this._standardError),this._errorAttachment&&f.txt("[[ATTACHMENT|"+this._errorAttachment+"]]"))};zh.exports=Nt});var Zh=Q(($w,Yh)=>{var aw=Es(),hw=Fh(),fw=he("path"),lw=kh(),cw=he("fs"),Hw=Ss(),Vw=Ps();function mr(i){this._factory=i,this._testSuitesAndCases=[]}mr.prototype.writeTo=function(i){lw.sync(fw.dirname(i)),cw.writeFileSync(i,this.build(),"utf8")};mr.prototype.build=function(){var i=hw.create("testsuites",{encoding:"UTF-8",invalidCharReplacement:""});return aw.forEach(this._testSuitesAndCases,function(h){h.build(i)}),i.end({pretty:!0})};mr.prototype.testSuite=function(){var i=this._factory.newTestSuite();return this._testSuitesAndCases.push(i),i};mr.prototype.testCase=function(){var i=this._factory.newTestCase();return this._testSuitesAndCases.push(i),i};mr.prototype.newBuilder=function(){return this._factory.newBuilder()};Yh.exports=mr});var Jh=Q((Gw,jh)=>{var dw=Zh(),pw=Ss(),gw=Ps();function ti(){}ti.prototype.newBuilder=function(){return new dw(this)};ti.prototype.newTestSuite=function(){return new pw(this)};ti.prototype.newTestCase=function(){return new gw(this)};jh.exports=ti});var tf=Q((zw,Qh)=>{var mw=Jh();Qh.exports=new mw().newBuilder()});var vw={};tw(vw,{default:()=>_w});var hf=Xe(he("stream")),Ft=Xe(he("@yarnpkg/core")),$r=Xe(he("@yarnpkg/fslib")),Ie=Xe(he("clipanion"));var Bn=Xe(he("@yarnpkg/fslib")),rw=["./LICENSE","./LICENCE"];function ma(i){let h=String(i);return typeof i=="string"||i===h?h:null}function nw(i){var h,_;if(Array.isArray(i)){let f=i.reduce((D,m)=>{let L=ma(m.type);return L&&D.push(L),D},[]);return f.length>1?`(${f.join(" OR ")})`:(h=f[0])!=null?h:null}return(_=i==null?void 0:i.type)!=null?_:ma(i)}async function ya({manifest:i,packageFs:h,prefixPath:_,looseMode:v}){var D,m,L;let f=(L=nw((m=(D=i.license)!=null?D:i.raw.licenses)!=null?m:i.raw.license))!=null?L:"";if((!f||new RegExp("see license","i").test(f))&&v)for(let b of rw)try{let A=Bn.ppath.join(_,Bn.npath.toPortablePath(b));return{licenseFile:await h.readFilePromise(A,"utf8")}}catch{}return{license:f}}async function iw({license:i}){return new RegExp("\\b(unknown|see license)\\b","i").test(i)}async function wa({license:i,isFile:h,isValidLicensePredicate:_}){return i&&!await iw({license:i})?_(i,h)?{pass:!0}:{pass:!1,reason:"incompatible"}:{reason:"missing",pass:!1}}var sf=Xe(he("fs")),ei=Xe(tf());var ef=Xe(he("@yarnpkg/core")),rf=i=>{let h=ef.structUtils.stringifyLocator(i);return h.indexOf("::")>=0?h.substring(0,h.indexOf("::")):h},Vr=class{constructor(h){this._map=new Map,this._defaultValue=h}get(h){return this._map.has(h)||this._map.set(h,this._defaultValue),this._map.get(h)}set(h,_){this._map.set(h,_)}has(h){return this._map.has(h)}merge(h,_){let v=this.get(h);this.set(h,bs(bs({},v),_))}entries(){return this._map.entries()}get size(){return this._map.size}},nf=(i,h)=>{let _=i.shift();if(!_)return;i=i.sort((L,b)=>L[0].localeCompare(b[0])),i.unshift(_);let v=2,f=" ".repeat(v),D=_.map(L=>L.length);for(let L of i)L.forEach((b,A)=>{D[A]=Math.max(D[A],b.length)});let m=(L,b)=>L.padEnd(Math.max(0,D[b]));i.forEach(L=>h.write(`${L.map(m).join(f)} `))};var yw={missing:"License could not be found.",incompatible:"License is incompatible."};async function uf({results:i,outputFile:h,stdout:_}){if(!h)return;let v=ei.default.testSuite().name("Dependency Licenses Audit");for(let[f,D]of[...i.pass.entries(),...i.fail.entries(),...i.ignored.entries()].sort()){let m=v.testCase().name(f);m.standardOutput(Object.entries(D).map(L=>L.join(": ")).join(` `)),i.ignored.has(f)?m.skipped():D.reason&&m.failure(`License: ${D.license}. Reason: ${yw[D.reason]}`,D.reason)}h==="-"?_.write(`${ei.default.build()} `):ei.default.writeTo(h)}async function of({results:i,stdout:h,configFilename:_}){if(i.fail.size!==0){let f=[["Package","License","Reason","Repository","Home Page"]],D=[...i.fail.entries()].map(([m,L])=>[m,String(L.license||"?"),String(L.reason||"?"),String(L.repository||"?"),String(L.homepage||"?")]);f.push(...D),nf(f,h),_&&h.write(` NOTE: For false positives, exceptions may be added to: ${_} `)}else h.write(`All packages have compatible licenses. `)}async function af({results:i,outputFile:h,stdout:_}){let v=[],f=["name","license","homepage","repository"];v.push(f);for(let[m,L]of[...i.pass.entries(),...i.fail.entries(),...i.ignored.entries()].sort())v.push(f.map(b=>{var A;return b==="name"?m:(A=L[b])!=null?A:"?"}));let D=v.map(m=>m.map(L=>/[",\n\r\t]/.test(L)?`"${L.replace('"','""')}"`:L).join(",")).map(m=>`${m} `).join("");h==="-"?_.write(D):(0,sf.writeFileSync)(h,D,{encoding:"utf8"})}var ri=class extends Ie.Command{constructor(){super(...arguments);this.outputCsv=Ie.Option.String("--output-csv",{required:!1});this.outputFile=Ie.Option.String("--output-file",{required:!1});this.configFile=Ie.Option.String("--config",{required:!1});this.summary=Ie.Option.Boolean("--summary",!1);this.looseMode=Ie.Option.Boolean("--loose",!1);this.ignorePackagesPredicate=()=>!1;this.isValidLicensePredicate=()=>!1}async execute(){try{let h=await Ft.Configuration.find(this.context.cwd,this.context.plugins),{project:_}=await Ft.Project.find(h,this.context.cwd);await _.restoreInstallState(),await this.parseConfigFile();let v=await this.collectResults({configuration:h,project:_,looseMode:this.looseMode});return await uf({results:v,outputFile:this.outputFile,stdout:this.context.stdout}),this.summary&&await of({results:v,stdout:this.context.stdout,configFilename:this.configFile}),this.outputCsv&&await af({results:v,stdout:this.context.stdout,outputFile:this.outputCsv}),v.fail.size===0?0:1}catch(h){return this.context.stderr.write(`${String(h)} `),1}}async parseConfigFile(){if(!this.configFile)return;let h=$r.ppath.resolve($r.ppath.cwd(),$r.npath.toPortablePath(this.configFile)),_=Ft.miscUtils.dynamicRequire(h),v=_==null?void 0:_.ignorePackages;if(v){if(typeof v=="function")this.ignorePackagesPredicate=v;else if(v instanceof RegExp)this.ignorePackagesPredicate=(D,m)=>v.test(m);else if(v instanceof Set||v instanceof Array){let D=new Set(v);this.ignorePackagesPredicate=(m,L)=>D.has(m)}}let f=_==null?void 0:_.isValidLicense;if(f)if(typeof f=="function")this.isValidLicensePredicate=f;else if(f instanceof RegExp)this.isValidLicensePredicate=D=>f.test(D);else throw new Error("Invalid config option value: isValidLicense")}async collectResults({configuration:h,project:_,looseMode:v}){var b,A,X;let f=await Ft.Cache.find(h),D=await h.makeFetcher(),m=new Ft.StreamReport({stdout:new hf.PassThrough,configuration:h}),L={pass:new Vr({}),fail:new Vr({}),ignored:new Vr({})};for(let T of _.storedPackages.values()){if(Ft.structUtils.isVirtualLocator(T)||T.reference.startsWith("workspace:"))continue;let{packageFs:N,prefixPath:q}=await D.fetch(T,{project:_,fetcher:D,cache:f,report:m,checksums:_.storedChecksums}),B=null;try{B=await Ft.Manifest.find(q,{baseFs:N})}catch{continue}try{let{license:G,licenseFile:nt}=await ya({manifest:B,packageFs:N,prefixPath:q,looseMode:v}),{reason:Z,pass:Et}=await wa({license:G||nt||null,isFile:Boolean(nt),isValidLicensePredicate:this.isValidLicensePredicate}),p={homepage:(b=B.raw)==null?void 0:b.homepage,license:G||void 0,reason:Z,repository:((X=(A=B.raw)==null?void 0:A.repository)==null?void 0:X.url)||void 0},d=Ft.structUtils.stringifyIdent(T),M=rf(T);this.ignorePackagesPredicate(d,G||"unknown")?L.ignored.merge(M,p):Et?L.pass.merge(M,p):L.fail.merge(M,p)}catch{continue}}return L}};ri.paths=[["licenses","audit"]],ri.usage=Ie.Command.Usage({description:"",details:"",examples:[]});var ww={hooks:{},commands:[ri]},_w=ww;return vw;})(); /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ return plugin; } };