DocSpace-buildtools/.yarn/plugins/@yarnpkg/plugin-licenses-audit.cjs

47 lines
145 KiB
JavaScript

/* 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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},cl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},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<ht;){var yt=y[Y];C(W,yt,O(yt),y)}return W}function Yt(y,C){for(var O=-1,W=y==null?0:y.length;++O<W&&C(y[O],O,y)!==!1;);return y}function wl(y,C){for(var O=y==null?0:y.length;O--&&C(y[O],O,y)!==!1;);return y}function du(y,C){for(var O=-1,W=y==null?0:y.length;++O<W;)if(!C(y[O],O,y))return!1;return!0}function Me(y,C){for(var O=-1,W=y==null?0:y.length,Y=0,ht=[];++O<W;){var yt=y[O];C(yt,O,y)&&(ht[Y++]=yt)}return ht}function Qr(y,C){var O=y==null?0:y.length;return!!O&&nr(y,C,0)>-1}function Di(y,C,O){for(var W=-1,Y=y==null?0:y.length;++W<Y;)if(O(C,y[W]))return!0;return!1}function mt(y,C){for(var O=-1,W=y==null?0:y.length,Y=Array(W);++O<W;)Y[O]=C(y[O],O,y);return Y}function Oe(y,C){for(var O=-1,W=C.length,Y=y.length;++O<W;)y[Y+O]=C[O];return y}function Ti(y,C,O,W){var Y=-1,ht=y==null?0:y.length;for(W&&ht&&(O=y[++Y]);++Y<ht;)O=C(O,y[Y],Y,y);return O}function _l(y,C,O,W){var Y=y==null?0:y.length;for(W&&Y&&(O=y[--Y]);Y--;)O=C(O,y[Y],Y,y);return O}function Li(y,C){for(var O=-1,W=y==null?0:y.length;++O<W;)if(C(y[O],O,y))return!0;return!1}var vl=bi("length");function Dl(y){return y.split("")}function Tl(y){return y.match(Cf)||[]}function pu(y,C,O){var W;return O(y,function(Y,ht,yt){if(C(Y,ht,yt))return W=ht,!1}),W}function tn(y,C,O,W){for(var Y=y.length,ht=O+(W?1:-1);W?ht--:++ht<Y;)if(C(y[ht],ht,y))return ht;return-1}function nr(y,C,O){return C===C?Pl(y,C,O):tn(y,gu,O)}function Ll(y,C,O,W){for(var Y=O-1,ht=y.length;++Y<ht;)if(W(y[Y],C))return Y;return-1}function gu(y){return y!==y}function mu(y,C){var O=y==null?0:y.length;return O?Ii(y,C)/O:vt}function bi(y){return function(C){return C==null?i:C[y]}}function Ei(y){return function(C){return y==null?i:y[C]}}function yu(y,C,O,W,Y){return Y(y,function(ht,yt,ft){O=W?(W=!1,ht):C(O,ht,yt,ft)}),O}function bl(y,C){var O=y.length;for(y.sort(C);O--;)y[O]=y[O].value;return y}function Ii(y,C){for(var O,W=-1,Y=y.length;++W<Y;){var ht=C(y[W]);ht!==i&&(O=O===i?ht:O+ht)}return O}function Mi(y,C){for(var O=-1,W=Array(y);++O<y;)W[O]=C(O);return W}function El(y,C){return mt(C,function(O){return[O,y[O]]})}function wu(y){return y&&y.slice(0,Tu(y)+1).replace(di,"")}function Kt(y){return function(C){return y(C)}}function Oi(y,C){return mt(C,function(O){return y[O]})}function Er(y,C){return y.has(C)}function _u(y,C){for(var O=-1,W=y.length;++O<W&&nr(C,y[O],0)>-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<W;){var yt=y[O];(yt===C||yt===b)&&(y[O]=b,ht[Y++]=O)}return ht}function en(y){var C=-1,O=Array(y.size);return y.forEach(function(W){O[++C]=W}),O}function Sl(y){var C=-1,O=Array(y.size);return y.forEach(function(W){O[++C]=[W,W]}),O}function Pl(y,C,O){for(var W=O-1,Y=y.length;++W<Y;)if(y[W]===C)return W;return-1}function Rl(y,C,O){for(var W=O+1;W--;)if(y[W]===C)return W;return W}function sr(y){return ir(y)?Xl(y):vl(y)}function se(y){return ir(y)?ql(y):Dl(y)}function Tu(y){for(var C=y.length;C--&&If.test(y.charAt(C)););return C}var Fl=Ei(cl);function Xl(y){for(var C=wi.lastIndex=0;wi.test(y);)++C;return C}function ql(y){return y.match(wi)||[]}function Bl(y){return y.match(sl)||[]}var Ul=function y(C){C=C==null?It:Ce.defaults(It.Object(),C,Ce.pick(It,al));var O=C.Array,W=C.Date,Y=C.Error,ht=C.Function,yt=C.Math,ft=C.Object,Ci=C.RegExp,Wl=C.String,Zt=C.TypeError,rn=O.prototype,Kl=ht.prototype,ur=ft.prototype,nn=C["__core-js_shared__"],sn=Kl.toString,ct=ur.hasOwnProperty,kl=0,Lu=function(){var t=/[^.]+$/.exec(nn&&nn.keys&&nn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),un=ur.toString,Hl=sn.call(ft),Vl=It._,$l=Ci("^"+sn.call(ct).replace(ci,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=uu?C.Buffer:i,Ne=C.Symbol,an=C.Uint8Array,bu=on?on.allocUnsafe:i,hn=Du(ft.getPrototypeOf,ft),Eu=ft.create,Iu=ur.propertyIsEnumerable,fn=rn.splice,Mu=Ne?Ne.isConcatSpreadable:i,Ir=Ne?Ne.iterator:i,Ke=Ne?Ne.toStringTag:i,ln=function(){try{var t=Ge(ft,"defineProperty");return t({},"",{}),t}catch(e){}}(),Gl=C.clearTimeout!==It.clearTimeout&&C.clearTimeout,zl=W&&W.now!==It.Date.now&&W.now,Yl=C.setTimeout!==It.setTimeout&&C.setTimeout,cn=yt.ceil,dn=yt.floor,Ni=ft.getOwnPropertySymbols,Zl=on?on.isBuffer:i,Ou=C.isFinite,jl=rn.join,Jl=Du(ft.keys,ft),bt=yt.max,xt=yt.min,Ql=W.now,tc=C.parseInt,xu=yt.random,ec=rn.reverse,Ai=Ge(C,"DataView"),Mr=Ge(C,"Map"),Si=Ge(C,"Promise"),or=Ge(C,"Set"),Or=Ge(C,"WeakMap"),xr=Ge(ft,"create"),pn=Or&&new Or,ar={},rc=ze(Ai),nc=ze(Mr),ic=ze(Si),sc=ze(or),uc=ze(Or),gn=Ne?Ne.prototype:i,Cr=gn?gn.valueOf:i,Cu=gn?gn.toString:i;function u(t){if(_t(t)&&!J(t)&&!(t instanceof ut)){if(t instanceof jt)return t;if(ct.call(t,"__wrapped__"))return Ao(t)}return new jt(t)}var hr=function(){function t(){}return function(e){if(!wt(e))return{};if(Eu)return Eu(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function mn(){}function jt(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}u.templateSettings={escape:vf,evaluate:Df,interpolate:Bs,variable:"",imports:{_:u}},u.prototype=mn.prototype,u.prototype.constructor=u,jt.prototype=hr(mn.prototype),jt.prototype.constructor=jt;function ut(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=At,this.__views__=[]}function oc(){var t=new ut(this.__wrapped__);return t.__actions__=Xt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Xt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Xt(this.__views__),t}function ac(){if(this.__filtered__){var t=new ut(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function hc(){var t=this.__wrapped__.value(),e=this.__dir__,r=J(t),n=e<0,s=r?t.length:0,o=Dd(0,s,this.__views__),c=o.start,g=o.end,w=g-c,P=n?g:c-1,R=this.__iteratees__,F=R.length,U=0,k=xt(w,this.__takeCount__);if(!r||!n&&s==w&&k==w)return to(t,this.__actions__);var V=[];t:for(;w--&&U<k;){P+=e;for(var et=-1,$=t[P];++et<F;){var st=R[et],ot=st.iteratee,Vt=st.type,Rt=ot($);if(Vt==z)$=Rt;else if(!Rt){if(Vt==K)continue t;break t}}V[U++]=$}return V}ut.prototype=hr(mn.prototype),ut.prototype.constructor=ut;function ke(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function fc(){this.__data__=xr?xr(null):{},this.size=0}function lc(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}function cc(t){var e=this.__data__;if(xr){var r=e[t];return r===m?i:r}return ct.call(e,t)?e[t]:i}function dc(t){var e=this.__data__;return xr?e[t]!==i:ct.call(e,t)}function pc(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=xr&&e===i?m:e,this}ke.prototype.clear=fc,ke.prototype.delete=lc,ke.prototype.get=cc,ke.prototype.has=dc,ke.prototype.set=pc;function ye(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function gc(){this.__data__=[],this.size=0}function mc(t){var e=this.__data__,r=yn(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():fn.call(e,r,1),--this.size,!0}function yc(t){var e=this.__data__,r=yn(e,t);return r<0?i:e[r][1]}function wc(t){return yn(this.__data__,t)>-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<r;){var n=t[e];this.set(n[0],n[1])}}function vc(){this.size=0,this.__data__={hash:new ke,map:new(Mr||ye),string:new ke}}function Dc(t){var e=xn(this,t).delete(t);return this.size-=e?1:0,e}function Tc(t){return xn(this,t).get(t)}function Lc(t){return xn(this,t).has(t)}function bc(t,e){var r=xn(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}we.prototype.clear=vc,we.prototype.delete=Dc,we.prototype.get=Tc,we.prototype.has=Lc,we.prototype.set=bc;function He(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new we;++e<r;)this.add(t[e])}function Ec(t){return this.__data__.set(t,m),this}function Ic(t){return this.__data__.has(t)}He.prototype.add=He.prototype.push=Ec,He.prototype.has=Ic;function ue(t){var e=this.__data__=new ye(t);this.size=e.size}function Mc(){this.__data__=new ye,this.size=0}function Oc(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function xc(t){return this.__data__.get(t)}function Cc(t){return this.__data__.has(t)}function Nc(t,e){var r=this.__data__;if(r instanceof ye){var n=r.__data__;if(!Mr||n.length<_-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new we(n)}return r.set(t,e),this.size=r.size,this}ue.prototype.clear=Mc,ue.prototype.delete=Oc,ue.prototype.get=xc,ue.prototype.has=Cc,ue.prototype.set=Nc;function Nu(t,e){var r=J(t),n=!r&&Ye(t),s=!r&&!n&&Fe(t),o=!r&&!n&&!s&&dr(t),c=r||n||s||o,g=c?Mi(t.length,Wl):[],w=g.length;for(var P in t)(e||ct.call(t,P))&&!(c&&(P=="length"||s&&(P=="offset"||P=="parent")||o&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||Te(P,w)))&&g.push(P);return g}function Au(t){var e=t.length;return e?t[Hi(0,e-1)]:i}function Ac(t,e){return Cn(Xt(t),Ve(e,0,t.length))}function Sc(t){return Cn(Xt(t))}function Pi(t,e,r){(r!==i&&!oe(t[e],r)||r===i&&!(e in t))&&_e(t,e,r)}function Nr(t,e,r){var n=t[e];(!(ct.call(t,e)&&oe(n,r))||r===i&&!(e in t))&&_e(t,e,r)}function yn(t,e){for(var r=t.length;r--;)if(oe(t[r][0],e))return r;return-1}function Pc(t,e,r,n){return Ae(t,function(s,o,c){e(n,s,r(s),c)}),n}function Su(t,e){return t&&de(e,Mt(e),t)}function Rc(t,e){return t&&de(e,Bt(e),t)}function _e(t,e,r){e=="__proto__"&&ln?ln(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Ri(t,e){for(var r=-1,n=e.length,s=O(n),o=t==null;++r<n;)s[r]=o?i:gs(t,e[r]);return s}function Ve(t,e,r){return t===t&&(r!==i&&(t=t<=r?t:r),e!==i&&(t=t>=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(;++s<g;){var R=t[s],F=r==null?R:r(R);if(R=n||R!==0?R:0,c&&F===F){for(var U=P;U--;)if(e[U]===F)continue t;w.push(R)}else o(e,F,n)||w.push(R)}return w}var Ae=ao(ce),Fu=ao(Xi,!0);function Xc(t,e){var r=!0;return Ae(t,function(n,s,o){return r=!!e(n,s,o),r}),r}function wn(t,e,r){for(var n=-1,s=t.length;++n<s;){var o=t[n],c=e(o);if(c!=null&&(g===i?c===c&&!Ht(c):r(c,g)))var g=c,w=o}return w}function qc(t,e,r,n){var s=t.length;for(r=tt(r),r<0&&(r=-r>s?0:s+r),n=n===i||n>s?s:tt(n),n<0&&(n+=s),n=r>n?0:ta(n);r<n;)t[r++]=e;return t}function Xu(t,e){var r=[];return Ae(t,function(n,s,o){e(n,s,o)&&r.push(n)}),r}function Ot(t,e,r,n,s){var o=-1,c=t.length;for(r||(r=Id),s||(s=[]);++o<c;){var g=t[o];e>0&&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&&r<n;)t=t[pe(e[r++])];return r&&r==n?t:i}function Bu(t,e,r){var n=e(t);return J(t)?n:Oe(n,r(t))}function St(t){return t==null?t===i?df:lf:Ke&&Ke in ft(t)?vd(t):Sd(t)}function qi(t,e){return t>e}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<bt(e,r)}function Bi(t,e,r){for(var n=r?Di:Qr,s=t[0].length,o=t.length,c=o,g=O(o),w=Infinity,P=[];c--;){var R=t[c];c&&e&&(R=mt(R,Kt(e))),w=xt(R.length,w),g[c]=!r&&(e||s>=120&&R.length>=120)?new He(c&&R):i}R=t[0];var F=-1,U=g[0];t:for(;++F<s&&P.length<w;){var k=R[F],V=e?e(k):k;if(k=r||k!==0?k:0,!(U?Er(U,V):n(P,V,r))){for(c=o;--c;){var et=g[c];if(!(et?Er(et,V):n(t[c],V,r)))continue t}U&&U.push(V),P.push(k)}}return P}function Kc(t,e,r,n){return ce(t,function(s,o,c){e(n,r(s),o,c)}),n}function Sr(t,e,r){e=Pe(e,t),t=Mo(t,e);var n=t==null?t:t[pe(te(e))];return n==null?i:Wt(n,t,r)}function Uu(t){return _t(t)&&St(t)==le}function kc(t){return _t(t)&&St(t)==br}function Hc(t){return _t(t)&&St(t)==_r}function Pr(t,e,r,n,s){return t===e?!0:t==null||e==null||!_t(t)&&!_t(e)?t!==t&&e!==e:Vc(t,e,r,n,Pr,s)}function Vc(t,e,r,n,s,o){var c=J(t),g=J(e),w=c?re:Ct(t),P=g?re:Ct(e);w=w==le?me:w,P=P==le?me:P;var R=w==me,F=P==me,U=w==P;if(U&&Fe(t)){if(!Fe(e))return!1;c=!0,R=!1}if(U&&!R)return o||(o=new ue),c||dr(t)?vo(t,e,r,n,s,o):wd(t,e,w,r,n,s,o);if(!(r&N)){var k=R&&ct.call(t,"__wrapped__"),V=F&&ct.call(e,"__wrapped__");if(k||V){var et=k?t.value():t,$=V?e.value():e;return o||(o=new ue),s(et,$,r,n,o)}}return U?(o||(o=new ue),_d(t,e,r,n,s,o)):!1}function $c(t){return _t(t)&&Ct(t)==ne}function Ui(t,e,r,n){var s=r.length,o=s,c=!n;if(t==null)return!o;for(t=ft(t);s--;){var g=r[s];if(c&&g[2]?g[1]!==t[g[0]]:!(g[0]in t))return!1}for(;++s<o;){g=r[s];var w=g[0],P=t[w],R=g[1];if(c&&g[2]){if(P===i&&!(w in t))return!1}else{var F=new ue;if(n)var U=n(P,R,w,t,e,F);if(!(U===i?Pr(R,P,N|q,n,F):U))return!1}}return!0}function Wu(t){if(!wt(t)||Od(t))return!1;var e=Le(t)?$l:Ff;return e.test(ze(t))}function Gc(t){return _t(t)&&St(t)==Dr}function zc(t){return _t(t)&&Ct(t)==ie}function Yc(t){return _t(t)&&Fn(t.length)&&!!gt[St(t)]}function Ku(t){return typeof t=="function"?t:t==null?Ut:typeof t=="object"?J(t)?Vu(t[0],t[1]):Hu(t):la(t)}function Wi(t){if(!Xr(t))return Jl(t);var e=[];for(var r in ft(t))ct.call(t,r)&&r!="constructor"&&e.push(r);return e}function Zc(t){if(!wt(t))return Ad(t);var e=Xr(t),r=[];for(var n in t)n=="constructor"&&(e||!ct.call(t,n))||r.push(n);return r}function Ki(t,e){return t<e}function ku(t,e){var r=-1,n=qt(t)?O(t.length):[];return Ae(t,function(s,o,c){n[++r]=e(s,o,c)}),n}function Hu(t){var e=ns(t);return e.length==1&&e[0][2]?Eo(e[0][0],e[0][1]):function(r){return r===t||Ui(r,t,e)}}function Vu(t,e){return ss(t)&&bo(e)?Eo(pe(t),e):function(r){var n=gs(r,t);return n===i&&n===e?ms(r,t):Pr(e,n,N|q)}}function vn(t,e,r,n,s){t!==e&&Fi(e,function(o,c){if(s||(s=new ue),wt(o))jc(t,e,c,r,vn,n,s);else{var g=n?n(os(t,c),o,c+"",t,e,s):i;g===i&&(g=o),Pi(t,c,g)}},Bt)}function jc(t,e,r,n,s,o,c){var g=os(t,r),w=os(e,r),P=c.get(w);if(P){Pi(t,r,P);return}var R=o?o(g,w,r+"",t,e,c):i,F=R===i;if(F){var U=J(w),k=!U&&Fe(w),V=!U&&!k&&dr(w);R=w,U||k||V?J(g)?R=g:Dt(g)?R=Xt(g):k?(F=!1,R=no(w,!0)):V?(F=!1,R=io(w,!0)):R=[]:Br(w)||Ye(w)?(R=g,Ye(g)?R=ea(g):(!wt(g)||Le(g))&&(R=Lo(w))):F=!1}F&&(c.set(w,R),s(R,w,n,o,c),c.delete(w)),Pi(t,r,R)}function $u(t,e){var r=t.length;if(!!r)return e+=e<0?r:0,Te(e,r)?t[e]:i}function Gu(t,e,r){e.length?e=mt(e,function(o){return J(o)?function(c){return $e(c,o.length===1?o[0]:o)}:o}):e=[Ut];var n=-1;e=mt(e,Kt(H()));var s=ku(t,function(o,c,g){var w=mt(e,function(P){return P(o)});return{criteria:w,index:++n,value:o}});return bl(s,function(o,c){return fd(o,c,r)})}function Jc(t,e){return zu(t,e,function(r,n){return ms(t,n)})}function zu(t,e,r){for(var n=-1,s=e.length,o={};++n<s;){var c=e[n],g=$e(t,c);r(g,c)&&Rr(o,Pe(c,t),g)}return o}function Qc(t){return function(e){return $e(e,t)}}function ki(t,e,r,n){var s=n?Ll:nr,o=-1,c=e.length,g=t;for(t===e&&(e=Xt(e)),r&&(g=mt(t,Kt(r)));++o<c;)for(var w=0,P=e[o],R=r?r(P):P;(w=s(g,R,w,n))>-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&&++s<o;){var w=pe(e[s]),P=r;if(w==="__proto__"||w==="constructor"||w==="prototype")return t;if(s!=c){var R=g[w];P=n?n(R,w,g):i,P===i&&(P=wt(R)?R:Te(e[s+1])?[]:{})}Nr(g,w,P),g=g[w]}return t}var Zu=pn?function(t,e){return pn.set(t,e),t}:Ut,nd=ln?function(t,e){return ln(t,"toString",{configurable:!0,enumerable:!1,value:ws(e),writable:!0})}:Ut;function id(t){return Cn(pr(t))}function Qt(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?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<s;)o[n]=t[n+e];return o}function sd(t,e){var r;return Ae(t,function(n,s,o){return r=e(n,s,o),!r}),!!r}function Dn(t,e,r){var n=0,s=t==null?n:t.length;if(typeof e=="number"&&e===e&&s<=Qe){for(;n<s;){var o=n+s>>>1,c=t[o];c!==null&&!Ht(c)&&(r?c<=e:c<e)?n=o+1:s=o}return s}return $i(t,e,Ut,r)}function $i(t,e,r,n){var s=0,o=t==null?0:t.length;if(o===0)return 0;e=r(e);for(var c=e!==e,g=e===null,w=Ht(e),P=e===i;s<o;){var R=dn((s+o)/2),F=r(t[R]),U=F!==i,k=F===null,V=F===F,et=Ht(F);if(c)var $=n||V;else P?$=V&&(n||U):g?$=V&&U&&(n||!k):w?$=V&&U&&!k&&(n||!et):k||et?$=!1:$=n?F<=e:F<e;$?s=R+1:o=R}return xt(o,Je)}function ju(t,e){for(var r=-1,n=t.length,s=0,o=[];++r<n;){var c=t[r],g=e?e(c):c;if(!r||!oe(g,w)){var w=g;o[s++]=c===0?0:c}}return o}function Ju(t){return typeof t=="number"?t:Ht(t)?vt:+t}function kt(t){if(typeof t=="string")return t;if(J(t))return mt(t,kt)+"";if(Ht(t))return Cu?Cu.call(t):"";var e=t+"";return e=="0"&&1/t==-pt?"-0":e}function Se(t,e,r){var n=-1,s=Qr,o=t.length,c=!0,g=[],w=g;if(r)c=!1,s=Di;else if(o>=_){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<o;){var R=t[n],F=e?e(R):R;if(R=r||R!==0?R:0,c&&F===F){for(var U=w.length;U--;)if(w[U]===F)continue t;e&&w.push(F),g.push(R)}else s(w,F,r)||(w!==g&&w.push(F),g.push(R))}return g}function Gi(t,e){return e=Pe(e,t),t=Mo(t,e),t==null||delete t[pe(te(e))]}function Qu(t,e,r,n){return Rr(t,e,r($e(t,e)),n)}function Tn(t,e,r,n){for(var s=t.length,o=n?s:-1;(n?o--:++o<s)&&e(t[o],o,t););return r?Qt(t,n?0:o,n?o+1:s):Qt(t,n?o+1:0,n?s:o)}function to(t,e){var r=t;return r instanceof ut&&(r=r.value()),Ti(e,function(n,s){return s.func.apply(s.thisArg,Oe([n],s.args))},r)}function zi(t,e,r){var n=t.length;if(n<2)return n?Se(t[0]):[];for(var s=-1,o=O(n);++s<n;)for(var c=t[s],g=-1;++g<n;)g!=s&&(o[s]=Ar(o[s]||c,t[g],e,r));return Se(Ot(o,1),e,r)}function eo(t,e,r){for(var n=-1,s=t.length,o=e.length,c={};++n<s;){var g=n<o?e[n]:i;r(c,t[n],g)}return c}function Yi(t){return Dt(t)?t:[]}function Zi(t){return typeof t=="function"?t:Ut}function Pe(t,e){return J(t)?t:ss(t,e)?[t]:No(lt(t))}var ud=rt;function Re(t,e,r){var n=t.length;return r=r===i?n:r,!e&&r>=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<e||P&&r&&s&&!n&&!o||g&&r&&s||!c&&s||!w)return-1}return 0}function fd(t,e,r){for(var n=-1,s=t.criteria,o=e.criteria,c=s.length,g=r.length;++n<c;){var w=so(s[n],o[n]);if(w){if(n>=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;++g<w;)R[g]=e[g];for(;++s<c;)(F||s<o)&&(R[r[s]]=t[s]);for(;P--;)R[g++]=t[s++];return R}function oo(t,e,r,n){for(var s=-1,o=t.length,c=-1,g=r.length,w=-1,P=e.length,R=bt(o-g,0),F=O(R+P),U=!n;++s<R;)F[s]=t[s];for(var k=s;++w<P;)F[k+w]=e[w];for(;++c<g;)(U||s<o)&&(F[k+r[c]]=t[s++]);return F}function Xt(t,e){var r=-1,n=t.length;for(e||(e=O(n));++r<n;)e[r]=t[r];return e}function de(t,e,r,n){var s=!r;r||(r={});for(var o=-1,c=e.length;++o<c;){var g=e[o],w=n?n(r[g],t[g],g,r,t):i;w===i&&(w=t[g]),s?_e(r,g,w):Nr(r,g,w)}return r}function ld(t,e){return de(t,is(t),e)}function cd(t,e){return de(t,Do(t),e)}function Ln(t,e){return function(r,n){var s=J(r)?yl:Pc,o=e?e():{};return s(r,t,H(n,2),o)}}function fr(t){return rt(function(e,r){var n=-1,s=r.length,o=s>1?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<s;){var g=r[n];g&&t(e,g,n,o)}return e})}function ao(t,e){return function(r,n){if(r==null)return r;if(!qt(r))return t(r,n);for(var s=r.length,o=e?s:-1,c=ft(r);(e?o--:++o<s)&&n(c[o],o,c)!==!1;);return r}}function ho(t){return function(e,r,n){for(var s=-1,o=ft(e),c=n(e),g=c.length;g--;){var w=c[t?g:++s];if(r(o[w],w,o)===!1)break}return e}}function dd(t,e,r){var n=e&B,s=Fr(t);function o(){var c=this&&this!==It&&this instanceof o?s:t;return c.apply(n?r:this,arguments)}return o}function fo(t){return function(e){e=lt(e);var r=ir(e)?se(e):i,n=r?r[0]:e.charAt(0),s=r?Re(r,1).join(""):e.slice(1);return n[t]()+s}}function lr(t){return function(e){return Ti(ha(aa(e).replace(nl,"")),t,"")}}function Fr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=hr(t.prototype),n=t.apply(r,e);return wt(n)?n:r}}function pd(t,e,r){var n=Fr(t);function s(){for(var o=arguments.length,c=O(o),g=o,w=cr(s);g--;)c[g]=arguments[g];var P=o<3&&c[0]!==w&&c[o-1]!==w?[]:xe(c,w);if(o-=P.length,o<r)return mo(t,e,bn,s.placeholder,i,c,P,i,i,r-o);var R=this&&this!==It&&this instanceof s?n:t;return Wt(R,this,c)}return s}function lo(t){return function(e,r,n){var s=ft(e);if(!qt(e)){var o=H(r,3);e=Mt(e),r=function(g){return o(s[g],g,s)}}var c=t(e,r,n);return c>-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;++n<r;){o=e[n];var g=On(o),w=g=="wrapper"?rs(o):i;w&&us(w[0])&&w[1]==(M|Z|p|a)&&!w[4].length&&w[9]==1?c=c[On(w[0])].apply(c,w[3]):c=o.length==1&&us(o)?c[g]():c.thru(o)}return function(){var P=arguments,R=P[0];if(c&&P.length==1&&J(R))return c.plant(R).value();for(var F=0,U=r?e[F].apply(this,P):R;++F<r;)U=e[F].call(this,U);return U}})}function bn(t,e,r,n,s,o,c,g,w,P){var R=e&M,F=e&B,U=e&G,k=e&(Z|Et),V=e&E,et=U?i:Fr(t);function $(){for(var st=arguments.length,ot=O(st),Vt=st;Vt--;)ot[Vt]=arguments[Vt];if(k)var Rt=cr($),$t=Il(ot,Rt);if(n&&(ot=uo(ot,n,s,k)),o&&(ot=oo(ot,o,c,k)),st-=$t,k&&st<P){var Tt=xe(ot,Rt);return mo(t,e,bn,$.placeholder,r,ot,Tt,g,w,P-st)}var ae=F?r:this,Ee=U?ae[t]:t;return st=ot.length,g?ot=Pd(ot,g):V&&st>1&&ot.reverse(),R&&w<st&&(ot.length=w),this&&this!==It&&this instanceof $&&(Ee=et||Fr(Ee)),Ee.apply(ae,ot)}return $}function po(t,e){return function(r,n){return Kc(r,t,e(n),{})}}function En(t,e){return function(r,n){var s;if(r===i&&n===i)return e;if(r!==i&&(s=r),n!==i){if(s===i)return n;typeof r=="string"||typeof n=="string"?(r=kt(r),n=kt(n)):(r=Ju(r),n=Ju(n)),s=t(r,n)}return s}}function Ji(t){return De(function(e){return e=mt(e,Kt(H())),rt(function(r){var n=this;return t(e,function(s){return Wt(s,n,r)})})})}function In(t,e){e=e===i?" ":kt(e);var r=e.length;if(r<2)return r?Vi(e,t):e;var n=Vi(e,cn(t/sr(e)));return ir(e)?Re(se(n),0,t).join(""):n.slice(0,t)}function gd(t,e,r,n){var s=e&B,o=Fr(t);function c(){for(var g=-1,w=arguments.length,P=-1,R=n.length,F=O(R+w),U=this&&this!==It&&this instanceof c?o:t;++P<R;)F[P]=n[P];for(;w--;)F[P++]=arguments[++g];return Wt(U,s?r:this,F)}return c}function go(t){return function(e,r,n){return n&&typeof n!="number"&&Pt(e,r,n)&&(r=n=i),e=be(e),r===i?(r=e,e=0):r=be(r),n=n===i?e<r?1:-1:be(n),td(e,r,n,t)}}function Mn(t){return function(e,r){return typeof e=="string"&&typeof r=="string"||(e=ee(e),r=ee(r)),t(e,r)}}function mo(t,e,r,n,s,o,c,g,w,P){var R=e&Z,F=R?c:i,U=R?i:c,k=R?o:i,V=R?i:o;e|=R?p:d,e&=~(R?d:p),e&nt||(e&=~(B|G));var et=[t,e,s,k,F,V,U,g,w,P],$=r.apply(i,et);return us(t)&&Oo($,et),$.placeholder=n,xo($,t,e)}function Qi(t){var e=yt[t];return function(r,n){if(r=ee(r),n=n==null?0:xt(tt(n),292),n&&Ou(r)){var s=(lt(r)+"e").split("e"),o=e(s[0]+"e"+(+s[1]+n));return s=(lt(o)+"e").split("e"),+(s[0]+"e"+(+s[1]-n))}return e(r)}}var md=or&&1/en(new or([,-0]))[1]==pt?function(t){return new or(t)}:Ds;function yo(t){return function(e){var r=Ct(e);return r==ne?xi(e):r==ie?Sl(e):El(e,t(e))}}function ve(t,e,r,n,s,o,c,g){var w=e&G;if(!w&&typeof t!="function")throw new Zt(f);var P=n?n.length:0;if(P||(e&=~(p|d),n=s=i),c=c===i?c:bt(tt(c),0),g=g===i?g:tt(g),P-=s?s.length:0,e&d){var R=n,F=s;n=s=i}var U=w?i:rs(t),k=[t,e,r,n,s,R,F,o,c,g];if(U&&Nd(k,U),t=k[0],e=k[1],r=k[2],n=k[3],s=k[4],g=k[9]=k[9]===i?w?0:t.length:bt(k[9]-P,0),!g&&e&(Z|Et)&&(e&=~(Z|Et)),!e||e==B)var V=dd(t,e,r);else e==Z||e==Et?V=pd(t,e,g):(e==p||e==(B|p))&&!s.length?V=gd(t,e,r,n):V=bn.apply(i,k);var et=U?Zu:Oo;return xo(et(V,k),t,e)}function wo(t,e,r,n){return t===i||oe(t,ur[r])&&!ct.call(n,r)?e:t}function _o(t,e,r,n,s,o){return wt(t)&&wt(e)&&(o.set(e,t),vn(t,e,i,_o,o),o.delete(e)),t}function yd(t){return Br(t)?i:t}function vo(t,e,r,n,s,o){var c=r&N,g=t.length,w=e.length;if(g!=w&&!(c&&w>g))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);++F<g;){var V=t[F],et=e[F];if(n)var $=c?n(et,V,F,e,t,o):n(V,et,F,t,e,o);if($!==i){if($)continue;U=!1;break}if(k){if(!Li(e,function(st,ot){if(!Er(k,ot)&&(V===st||s(V,st,r,n,o)))return k.push(ot)})){U=!1;break}}else if(!(V===et||s(V,et,r,n,o))){U=!1;break}}return o.delete(t),o.delete(e),U}function wd(t,e,r,n,s,o,c){switch(r){case er:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case br:return!(t.byteLength!=e.byteLength||!o(new an(t),new an(e)));case wr:case _r:case vr:return oe(+t,+e);case Gr:return t.name==e.name&&t.message==e.message;case Dr:case Tr:return t==e+"";case ne:var g=xi;case ie:var w=n&N;if(g||(g=en),t.size!=e.size&&!w)return!1;var P=c.get(t);if(P)return P==e;n|=q,c.set(t,e);var R=vo(g(t),g(e),n,s,o,c);return c.delete(t),R;case Yr:if(Cr)return Cr.call(t)==Cr.call(e)}return!1}function _d(t,e,r,n,s,o){var c=r&N,g=ts(t),w=g.length,P=ts(e),R=P.length;if(w!=R&&!c)return!1;for(var F=w;F--;){var U=g[F];if(!(c?U in e:ct.call(e,U)))return!1}var k=o.get(t),V=o.get(e);if(k&&V)return k==e&&V==t;var et=!0;o.set(t,e),o.set(e,t);for(var $=c;++F<w;){U=g[F];var st=t[U],ot=e[U];if(n)var Vt=c?n(ot,st,U,e,t,o):n(st,ot,U,t,e,o);if(!(Vt===i?st===ot||s(st,ot,r,n,o):Vt)){et=!1;break}$||($=U=="constructor")}if(et&&!$){var Rt=t.constructor,$t=e.constructor;Rt!=$t&&"constructor"in t&&"constructor"in e&&!(typeof Rt=="function"&&Rt instanceof Rt&&typeof $t=="function"&&$t instanceof $t)&&(et=!1)}return o.delete(t),o.delete(e),et}function De(t){return as(Io(t,i,Ro),t+"")}function ts(t){return Bu(t,Mt,is)}function es(t){return Bu(t,Bt,Do)}var rs=pn?function(t){return pn.get(t)}:Ds;function On(t){for(var e=t.name+"",r=ar[e],n=ct.call(ar,e)?r.length:0;n--;){var s=r[n],o=s.func;if(o==null||o==t)return s.name}return e}function cr(t){var e=ct.call(u,"placeholder")?u:t;return e.placeholder}function H(){var t=u.iteratee||_s;return t=t===_s?Ku:t,arguments.length?t(arguments[0],arguments[1]):t}function xn(t,e){var r=t.__data__;return Md(e)?r[typeof e=="string"?"string":"hash"]:r.map}function ns(t){for(var e=Mt(t),r=e.length;r--;){var n=e[r],s=t[n];e[r]=[n,s,bo(s)]}return e}function Ge(t,e){var r=Cl(t,e);return Wu(r)?r:i}function vd(t){var e=ct.call(t,Ke),r=t[Ke];try{t[Ke]=i;var n=!0}catch(o){}var s=un.call(t);return n&&(e?t[Ke]=r:delete t[Ke]),s}var is=Ni?function(t){return t==null?[]:(t=ft(t),Me(Ni(t),function(e){return Iu.call(t,e)}))}:Ts,Do=Ni?function(t){for(var e=[];t;)Oe(e,is(t)),t=hn(t);return e}:Ts,Ct=St;(Ai&&Ct(new Ai(new ArrayBuffer(1)))!=er||Mr&&Ct(new Mr)!=ne||Si&&Ct(Si.resolve())!=Fs||or&&Ct(new or)!=ie||Or&&Ct(new Or)!=Lr)&&(Ct=function(t){var e=St(t),r=e==me?t.constructor:i,n=r?ze(r):"";if(n)switch(n){case rc:return er;case nc:return ne;case ic:return Fs;case sc:return ie;case uc:return Lr}return e});function Dd(t,e,r){for(var n=-1,s=r.length;++n<s;){var o=r[n],c=o.size;switch(o.type){case"drop":t+=c;break;case"dropRight":e-=c;break;case"take":e=xt(e,t+c);break;case"takeRight":t=bt(t,e-c);break}}return{start:t,end:e}}function Td(t){var e=t.match(Of);return e?e[1].split(xf):[]}function To(t,e,r){e=Pe(e,t);for(var n=-1,s=e.length,o=!1;++n<s;){var c=pe(e[n]);if(!(o=t!=null&&r(t,c)))break;t=t[c]}return o||++n!=s?o:(s=t==null?0:t.length,!!s&&Fn(s)&&Te(c,s)&&(J(t)||Ye(t)))}function Ld(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(r.index=t.index,r.input=t.input),r}function Lo(t){return typeof t.constructor=="function"&&!Xr(t)?hr(hn(t)):{}}function bd(t,e,r){var n=t.constructor;switch(e){case br:return ji(t);case wr:case _r:return new n(+t);case er:return od(t,r);case ni:case ii:case si:case ui:case oi:case ai:case hi:case fi:case li:return io(t,r);case ne:return new n;case vr:case Tr:return new n(t);case Dr:return ad(t);case ie:return new n;case Yr:return hd(t)}}function Ed(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+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&&t<e}function Pt(t,e,r){if(!wt(r))return!1;var n=typeof e;return(n=="number"?qt(r)&&Te(e,r.length):n=="string"&&e in r)?oe(r[e],t):!1}function ss(t,e){if(J(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||Ht(t)?!0:Lf.test(t)||!Tf.test(t)||e!=null&&t in ft(e)}function Md(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function us(t){var e=On(t),r=u[e];if(typeof r!="function"||!(e in ut.prototype))return!1;if(t===r)return!0;var n=rs(r);return!!n&&t===n[0]}function Od(t){return!!Lu&&Lu in t}var xd=nn?Le:Ls;function Xr(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||ur;return t===r}function bo(t){return t===t&&!wt(t)}function Eo(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==i||t in ft(r))}}function Cd(t){var e=Pn(t,function(n){return r.size===L&&r.clear(),n}),r=e.cache;return e}function Nd(t,e){var r=t[1],n=e[1],s=r|n,o=s<(B|G|M),c=n==M&&r==Z||n==M&&r==a&&t[7].length<=e[8]||n==(M|a)&&e[7].length<=e[8]&&r==Z;if(!(o||c))return t;n&B&&(t[2]=e[2],s|=r&B?0:nt);var g=e[3];if(g){var w=t[3];t[3]=w?uo(w,g,e[4]):g,t[4]=w?xe(t[3],b):e[4]}return g=e[5],g&&(w=t[5],t[5]=w?oo(w,g,e[6]):g,t[6]=w?xe(t[5],b):e[6]),g=e[7],g&&(t[7]=g),n&M&&(t[8]=t[8]==null?e[8]:xt(t[8],e[8])),t[9]==null&&(t[9]=e[9]),t[0]=e[0],t[1]=s,t}function Ad(t){var e=[];if(t!=null)for(var r in ft(t))e.push(r);return e}function Sd(t){return un.call(t)}function Io(t,e,r){return e=bt(e===i?t.length-1:e,0),function(){for(var n=arguments,s=-1,o=bt(n.length-e,0),c=O(o);++s<o;)c[s]=n[e+s];s=-1;for(var g=O(e+1);++s<e;)g[s]=n[s];return g[e]=r(c),Wt(t,this,g)}}function Mo(t,e){return e.length<2?t:$e(t,Qt(e,0,-1))}function Pd(t,e){for(var r=t.length,n=xt(e.length,r),s=Xt(t);n--;){var o=e[n];t[n]=Te(o,r)?s[o]:i}return t}function os(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var Oo=Co(Zu),qr=Yl||function(t,e){return It.setTimeout(t,e)},as=Co(nd);function xo(t,e,r){var n=e+"";return as(t,Ed(n,Rd(Td(n),r)))}function Co(t){var e=0,r=0;return function(){var n=Ql(),s=S-(n-r);if(r=n,s>0){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;++r<e;){var o=Hi(r,s),c=t[o];t[o]=t[r],t[r]=c}return t.length=e,t}var No=Cd(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(bf,function(r,n,s,o){e.push(s?o.replace(Af,"$1"):n||r)}),e});function pe(t){if(typeof t=="string"||Ht(t))return t;var e=t+"";return e=="0"&&1/t==-pt?"-0":e}function ze(t){if(t!=null){try{return sn.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Rd(t,e){return Yt(yr,function(r){var n="_."+r[0];e&r[1]&&!Qr(t,n)&&t.push(n)}),t.sort()}function Ao(t){if(t instanceof ut)return t.clone();var e=new jt(t.__wrapped__,t.__chain__);return e.__actions__=Xt(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Fd(t,e,r){(r?Pt(t,e,r):e===i)?e=1:e=bt(tt(e),0);var n=t==null?0:t.length;if(!n||e<1)return[];for(var s=0,o=0,c=O(cn(n/e));s<n;)c[o++]=Qt(t,s,s+=e);return c}function Xd(t){for(var e=-1,r=t==null?0:t.length,n=0,s=[];++e<r;){var o=t[e];o&&(s[n++]=o)}return s}function qd(){var t=arguments.length;if(!t)return[];for(var e=O(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Oe(J(r)?Xt(r):[r],Ot(e,1))}var Bd=rt(function(t,e){return Dt(t)?Ar(t,Ot(e,1,Dt,!0)):[]}),Ud=rt(function(t,e){var r=te(e);return Dt(r)&&(r=i),Dt(t)?Ar(t,Ot(e,1,Dt,!0),H(r,2)):[]}),Wd=rt(function(t,e){var r=te(e);return Dt(r)&&(r=i),Dt(t)?Ar(t,Ot(e,1,Dt,!0),i,r):[]});function Kd(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===i?1:tt(e),Qt(t,e<0?0:e,n)):[]}function kd(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===i?1:tt(e),e=n-e,Qt(t,0,e<0?0:e)):[]}function Hd(t,e){return t&&t.length?Tn(t,H(e,3),!0,!0):[]}function Vd(t,e){return t&&t.length?Tn(t,H(e,3),!0):[]}function $d(t,e,r,n){var s=t==null?0:t.length;return s?(r&&typeof r!="number"&&Pt(t,e,r)&&(r=0,n=s),qc(t,e,r,n)):[]}function So(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var s=r==null?0:tt(r);return s<0&&(s=bt(n+s,0)),tn(t,H(e,3),s)}function Po(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var s=n-1;return r!==i&&(s=tt(r),s=r<0?bt(n+s,0):xt(s,n-1)),tn(t,H(e,3),s,!0)}function Ro(t){var e=t==null?0:t.length;return e?Ot(t,1):[]}function Gd(t){var e=t==null?0:t.length;return e?Ot(t,pt):[]}function zd(t,e){var r=t==null?0:t.length;return r?(e=e===i?1:tt(e),Ot(t,e)):[]}function Yd(t){for(var e=-1,r=t==null?0:t.length,n={};++e<r;){var s=t[e];n[s[0]]=s[1]}return n}function Fo(t){return t&&t.length?t[0]:i}function Zd(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var s=r==null?0:tt(r);return s<0&&(s=bt(n+s,0)),nr(t,e,s)}function jd(t){var e=t==null?0:t.length;return e?Qt(t,0,-1):[]}var Jd=rt(function(t){var e=mt(t,Yi);return e.length&&e[0]===t[0]?Bi(e):[]}),Qd=rt(function(t){var e=te(t),r=mt(t,Yi);return e===te(r)?e=i:r.pop(),r.length&&r[0]===t[0]?Bi(r,H(e,2)):[]}),tp=rt(function(t){var e=te(t),r=mt(t,Yi);return e=typeof e=="function"?e:i,e&&r.pop(),r.length&&r[0]===t[0]?Bi(r,i,e):[]});function ep(t,e){return t==null?"":jl.call(t,e)}function te(t){var e=t==null?0:t.length;return e?t[e-1]:i}function rp(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var s=n;return r!==i&&(s=tt(r),s=s<0?bt(n+s,0):xt(s,n-1)),e===e?Rl(t,e,s):tn(t,gu,s,!0)}function np(t,e){return t&&t.length?$u(t,tt(e)):i}var ip=rt(Xo);function Xo(t,e){return t&&t.length&&e&&e.length?ki(t,e):t}function sp(t,e,r){return t&&t.length&&e&&e.length?ki(t,e,H(r,2)):t}function up(t,e,r){return t&&t.length&&e&&e.length?ki(t,e,i,r):t}var op=De(function(t,e){var r=t==null?0:t.length,n=Ri(t,e);return Yu(t,mt(e,function(s){return Te(s,r)?+s:s}).sort(so)),n});function ap(t,e){var r=[];if(!(t&&t.length))return r;var n=-1,s=[],o=t.length;for(e=H(e,3);++n<o;){var c=t[n];e(c,n,t)&&(r.push(c),s.push(n))}return Yu(t,s),r}function hs(t){return t==null?t:ec.call(t)}function hp(t,e,r){var n=t==null?0:t.length;return n?(r&&typeof r!="number"&&Pt(t,e,r)?(e=0,r=n):(e=e==null?0:tt(e),r=r===i?n:tt(r)),Qt(t,e,r)):[]}function fp(t,e){return Dn(t,e)}function lp(t,e,r){return $i(t,e,H(r,2))}function cp(t,e){var r=t==null?0:t.length;if(r){var n=Dn(t,e);if(n<r&&oe(t[n],e))return n}return-1}function dp(t,e){return Dn(t,e,!0)}function pp(t,e,r){return $i(t,e,H(r,2),!0)}function gp(t,e){var r=t==null?0:t.length;if(r){var n=Dn(t,e,!0)-1;if(oe(t[n],e))return n}return-1}function mp(t){return t&&t.length?ju(t):[]}function yp(t,e){return t&&t.length?ju(t,H(e,2)):[]}function wp(t){var e=t==null?0:t.length;return e?Qt(t,1,e):[]}function _p(t,e,r){return t&&t.length?(e=r||e===i?1:tt(e),Qt(t,0,e<0?0:e)):[]}function vp(t,e,r){var n=t==null?0:t.length;return n?(e=r||e===i?1:tt(e),e=n-e,Qt(t,e<0?0:e,n)):[]}function Dp(t,e){return t&&t.length?Tn(t,H(e,3),!1,!0):[]}function Tp(t,e){return t&&t.length?Tn(t,H(e,3)):[]}var Lp=rt(function(t){return Se(Ot(t,1,Dt,!0))}),bp=rt(function(t){var e=te(t);return Dt(e)&&(e=i),Se(Ot(t,1,Dt,!0),H(e,2))}),Ep=rt(function(t){var e=te(t);return e=typeof e=="function"?e:i,Se(Ot(t,1,Dt,!0),i,e)});function Ip(t){return t&&t.length?Se(t):[]}function Mp(t,e){return t&&t.length?Se(t,H(e,2)):[]}function Op(t,e){return e=typeof e=="function"?e:i,t&&t.length?Se(t,i,e):[]}function fs(t){if(!(t&&t.length))return[];var e=0;return t=Me(t,function(r){if(Dt(r))return e=bt(r.length,e),!0}),Mi(e,function(r){return mt(t,bi(r))})}function qo(t,e){if(!(t&&t.length))return[];var r=fs(t);return e==null?r:mt(r,function(n){return Wt(e,i,n)})}var xp=rt(function(t,e){return Dt(t)?Ar(t,e):[]}),Cp=rt(function(t){return zi(Me(t,Dt))}),Np=rt(function(t){var e=te(t);return Dt(e)&&(e=i),zi(Me(t,Dt),H(e,2))}),Ap=rt(function(t){var e=te(t);return e=typeof e=="function"?e:i,zi(Me(t,Dt),i,e)}),Sp=rt(fs);function Pp(t,e){return eo(t||[],e||[],Nr)}function Rp(t,e){return eo(t||[],e||[],Rr)}var Fp=rt(function(t){var e=t.length,r=e>1?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<o;)n[s]=e[s].call(this,n[s]);return Wt(t,this,n)})}),cs=rt(function(t,e){var r=xe(e,cr(cs));return ve(t,p,i,e,r)}),zo=rt(function(t,e){var r=xe(e,cr(zo));return ve(t,d,i,e,r)}),Dg=De(function(t,e){return ve(t,a,i,i,i,e)});function Tg(t,e){if(typeof t!="function")throw new Zt(f);return e=e===i?e:tt(e),rt(t,e)}function Lg(t,e){if(typeof t!="function")throw new Zt(f);return e=e==null?0:bt(tt(e),0),rt(function(r){var n=r[e],s=Re(r,0,e);return n&&Oe(s,n),Wt(t,this,s)})}function bg(t,e,r){var n=!0,s=!0;if(typeof t!="function")throw new Zt(f);return wt(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),Go(t,e,{leading:n,maxWait:e,trailing:s})}function Eg(t){return Ko(t,1)}function Ig(t,e){return cs(Zi(e),t)}function Mg(){if(!arguments.length)return[];var t=arguments[0];return J(t)?t:[t]}function Og(t){return Jt(t,T)}function xg(t,e){return e=typeof e=="function"?e:i,Jt(t,T,e)}function Cg(t){return Jt(t,A|T)}function Ng(t,e){return e=typeof e=="function"?e:i,Jt(t,A|T,e)}function Ag(t,e){return e==null||Pu(t,e,Mt(e))}function oe(t,e){return t===e||t!==t&&e!==e}var Sg=Mn(qi),Pg=Mn(function(t,e){return t>=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);++r<n;)for(var o=e[r],c=Bt(o),g=-1,w=c.length;++g<w;){var P=c[g],R=t[P];(R===i||oe(R,ur[P])&&!ct.call(t,P))&&(t[P]=o[P])}return t}),om=rt(function(t){return t.push(i,_o),Wt(na,i,t)});function am(t,e){return pu(t,H(e,3),ce)}function hm(t,e){return pu(t,H(e,3),Xi)}function fm(t,e){return t==null?t:Fi(t,H(e,3),Bt)}function lm(t,e){return t==null?t:qu(t,H(e,3),Bt)}function cm(t,e){return t&&ce(t,H(e,3))}function dm(t,e){return t&&Xi(t,H(e,3))}function pm(t){return t==null?[]:_n(t,Mt(t))}function gm(t){return t==null?[]:_n(t,Bt(t))}function gs(t,e,r){var n=t==null?i:$e(t,e);return n===i?r:n}function mm(t,e){return t!=null&&To(t,e,Bc)}function ms(t,e){return t!=null&&To(t,e,Uc)}var ym=po(function(t,e,r){e!=null&&typeof e.toString!="function"&&(e=un.call(e)),t[e]=r},ws(Ut)),wm=po(function(t,e,r){e!=null&&typeof e.toString!="function"&&(e=un.call(e)),ct.call(t,e)?t[e].push(r):t[e]=[r]},H),_m=rt(Sr);function Mt(t){return qt(t)?Nu(t):Wi(t)}function Bt(t){return qt(t)?Nu(t,!0):Zc(t)}function vm(t,e){var r={};return e=H(e,3),ce(t,function(n,s,o){_e(r,e(n,s,o),n)}),r}function Dm(t,e){var r={};return e=H(e,3),ce(t,function(n,s,o){_e(r,s,e(n,s,o))}),r}var Tm=fr(function(t,e,r){vn(t,e,r)}),na=fr(function(t,e,r,n){vn(t,e,r,n)}),Lm=De(function(t,e){var r={};if(t==null)return r;var n=!1;e=mt(e,function(o){return o=Pe(o,t),n||(n=o.length>1),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);++n<s;){var o=t==null?i:t[pe(e[n])];o===i&&(n=s,o=r),t=Le(o)?o.call(t):o}return t}function Mm(t,e,r){return t==null?t:Rr(t,e,r)}function Om(t,e,r,n){return n=typeof n=="function"?n:i,t==null?t:Rr(t,e,r,n)}var sa=yo(Mt),ua=yo(Bt);function xm(t,e,r){var n=J(t),s=n||Fe(t)||dr(t);if(e=H(e,4),r==null){var o=t&&t.constructor;s?r=n?new o:[]:wt(t)?r=Le(o)?hr(hn(t)):{}:r={}}return(s?Yt:ce)(t,function(c,g,w){return e(r,c,g,w)}),r}function Cm(t,e){return t==null?!0:Gi(t,e)}function Nm(t,e,r){return t==null?t:Qu(t,e,Zi(r))}function Am(t,e,r,n){return n=typeof n=="function"?n:i,t==null?t:Qu(t,e,Zi(r),n)}function pr(t){return t==null?[]:Oi(t,Mt(t))}function Sm(t){return t==null?[]:Oi(t,Bt(t))}function Pm(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=ee(r),r=r===r?r:0),e!==i&&(e=ee(e),e=e===e?e:0),Ve(ee(t),e,r)}function Rm(t,e,r){return e=be(e),r===i?(r=e,e=0):r=be(r),t=ee(t),Wc(t,e,r)}function Fm(t,e,r){if(r&&typeof r!="boolean"&&Pt(t,e,r)&&(e=r=i),r===i&&(typeof e=="boolean"?(r=e,e=i):typeof t=="boolean"&&(r=t,t=i)),t===i&&e===i?(t=0,e=1):(t=be(t),e===i?(e=t,t=0):e=be(e)),t>e){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<e?t+In(e-n,r):t}function $m(t,e,r){t=lt(t),e=tt(e);var n=e?sr(t):0;return e&&n<e?In(e-n,r)+t:t}function Gm(t,e,r){return r||e==null?e=0:e&&(e=+e),tc(lt(t).replace(di,""),e||0)}function zm(t,e,r){return(r?Pt(t,e,r):e===i)?e=1:e=tt(e),Vi(lt(t),e)}function Ym(){var t=arguments,e=lt(t[0]);return t.length<3?e:e.replace(t[1],t[2])}var Zm=lr(function(t,e,r){return t+(r?"_":"")+e.toLowerCase()});function jm(t,e,r){return r&&typeof r!="number"&&Pt(t,e,r)&&(e=r=i),r=r===i?At:r>>>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;++s<e;){var o=t[s];if(Wt(o[0],this,n))return Wt(o[1],this,n)}})}function ly(t){return Fc(Jt(t,A))}function ws(t){return function(){return t}}function cy(t,e){return t==null||t!==t?e:t}var dy=co(),py=co(!0);function Ut(t){return t}function _s(t){return Ku(typeof t=="function"?t:Jt(t,A))}function gy(t){return Hu(Jt(t,A))}function my(t,e){return Vu(t,Jt(e,A))}var yy=rt(function(t,e){return function(r){return Sr(r,t,e)}}),wy=rt(function(t,e){return function(r){return Sr(t,r,e)}});function vs(t,e,r){var n=Mt(e),s=_n(e,n);r==null&&!(wt(e)&&(s.length||!n.length))&&(r=e,e=t,t=this,s=_n(e,Mt(e)));var o=!(wt(r)&&"chain"in r)||!!r.chain,c=Le(t);return Yt(s,function(g){var w=e[g];t[g]=w,c&&(t.prototype[g]=function(){var P=this.__chain__;if(o||P){var R=t(this.__wrapped__),F=R.__actions__=Xt(this.__actions__);return F.push({func:w,args:arguments,thisArg:t}),R.__chain__=P,R}return w.apply(t,Oe([this.value()],arguments))})}),t}function _y(){return It._===this&&(It._=Vl),this}function Ds(){}function vy(t){return t=tt(t),rt(function(e){return $u(e,t)})}var Dy=Ji(mt),Ty=Ji(du),Ly=Ji(Li);function la(t){return ss(t)?bi(pe(t)):Qc(t)}function by(t){return function(e){return t==null?i:$e(t,e)}}var Ey=go(),Iy=go(!0);function Ts(){return[]}function Ls(){return!1}function My(){return{}}function Oy(){return""}function xy(){return!0}function Cy(t,e){if(t=tt(t),t<1||t>at)return[];var r=At,n=xt(t,At);e=H(e),t-=At;for(var s=Mi(n,e);++r<t;)e(r);return s}function Ny(t){return J(t)?mt(t,pe):Ht(t)?[t]:Xt(No(lt(t)))}function Ay(t){var e=++kl;return lt(t)+e}var Sy=En(function(t,e){return t+e},0),Py=Qi("ceil"),Ry=En(function(t,e){return t/e},1),Fy=Qi("floor");function Xy(t){return t&&t.length?wn(t,Ut,qi):i}function qy(t,e){return t&&t.length?wn(t,H(e,2),qi):i}function By(t){return mu(t,Ut)}function Uy(t,e){return mu(t,H(e,2))}function Wy(t){return t&&t.length?wn(t,Ut,Ki):i}function Ky(t,e){return t&&t.length?wn(t,H(e,2),Ki):i}var ky=En(function(t,e){return t*e},1),Hy=Qi("round"),Vy=En(function(t,e){return t-e},0);function $y(t){return t&&t.length?Ii(t,Ut):0}function Gy(t,e){return t&&t.length?Ii(t,H(e,2)):0}return u.after=gg,u.ary=Ko,u.assign=rm,u.assignIn=ra,u.assignInWith=qn,u.assignWith=nm,u.at=im,u.before=ko,u.bind=ls,u.bindAll=hy,u.bindKey=Ho,u.castArray=Mg,u.chain=Bo,u.chunk=Fd,u.compact=Xd,u.concat=qd,u.cond=fy,u.conforms=ly,u.constant=ws,u.countBy=$p,u.create=sm,u.curry=Vo,u.curryRight=$o,u.debounce=Go,u.defaults=um,u.defaultsDeep=om,u.defer=mg,u.delay=yg,u.difference=Bd,u.differenceBy=Ud,u.differenceWith=Wd,u.drop=Kd,u.dropRight=kd,u.dropRightWhile=Hd,u.dropWhile=Vd,u.fill=$d,u.filter=zp,u.flatMap=jp,u.flatMapDeep=Jp,u.flatMapDepth=Qp,u.flatten=Ro,u.flattenDeep=Gd,u.flattenDepth=zd,u.flip=wg,u.flow=dy,u.flowRight=py,u.fromPairs=Yd,u.functions=pm,u.functionsIn=gm,u.groupBy=tg,u.initial=jd,u.intersection=Jd,u.intersectionBy=Qd,u.intersectionWith=tp,u.invert=ym,u.invertBy=wm,u.invokeMap=rg,u.iteratee=_s,u.keyBy=ng,u.keys=Mt,u.keysIn=Bt,u.map=An,u.mapKeys=vm,u.mapValues=Dm,u.matches=gy,u.matchesProperty=my,u.memoize=Pn,u.merge=Tm,u.mergeWith=na,u.method=yy,u.methodOf=wy,u.mixin=vs,u.negate=Rn,u.nthArg=vy,u.omit=Lm,u.omitBy=bm,u.once=_g,u.orderBy=ig,u.over=Dy,u.overArgs=vg,u.overEvery=Ty,u.overSome=Ly,u.partial=cs,u.partialRight=zo,u.partition=sg,u.pick=Em,u.pickBy=ia,u.property=la,u.propertyOf=by,u.pull=ip,u.pullAll=Xo,u.pullAllBy=sp,u.pullAllWith=up,u.pullAt=op,u.range=Ey,u.rangeRight=Iy,u.rearg=Dg,u.reject=ag,u.remove=ap,u.rest=Tg,u.reverse=hs,u.sampleSize=fg,u.set=Mm,u.setWith=Om,u.shuffle=lg,u.slice=hp,u.sortBy=pg,u.sortedUniq=mp,u.sortedUniqBy=yp,u.split=jm,u.spread=Lg,u.tail=wp,u.take=_p,u.takeRight=vp,u.takeRightWhile=Dp,u.takeWhile=Tp,u.tap=Xp,u.throttle=bg,u.thru=Nn,u.toArray=Qo,u.toPairs=sa,u.toPairsIn=ua,u.toPath=Ny,u.toPlainObject=ea,u.transform=xm,u.unary=Eg,u.union=Lp,u.unionBy=bp,u.unionWith=Ep,u.uniq=Ip,u.uniqBy=Mp,u.uniqWith=Op,u.unset=Cm,u.unzip=fs,u.unzipWith=qo,u.update=Nm,u.updateWith=Am,u.values=pr,u.valuesIn=Sm,u.without=xp,u.words=ha,u.wrap=Ig,u.xor=Cp,u.xorBy=Np,u.xorWith=Ap,u.zip=Sp,u.zipObject=Pp,u.zipObjectDeep=Rp,u.zipWith=Fp,u.entries=sa,u.entriesIn=ua,u.extend=ra,u.extendWith=qn,vs(u,u),u.add=Sy,u.attempt=fa,u.camelCase=Xm,u.capitalize=oa,u.ceil=Py,u.clamp=Pm,u.clone=Og,u.cloneDeep=Cg,u.cloneDeepWith=Ng,u.cloneWith=xg,u.conformsTo=Ag,u.deburr=aa,u.defaultTo=cy,u.divide=Ry,u.endsWith=qm,u.eq=oe,u.escape=Bm,u.escapeRegExp=Um,u.every=Gp,u.find=Yp,u.findIndex=So,u.findKey=am,u.findLast=Zp,u.findLastIndex=Po,u.findLastKey=hm,u.floor=Fy,u.forEach=Uo,u.forEachRight=Wo,u.forIn=fm,u.forInRight=lm,u.forOwn=cm,u.forOwnRight=dm,u.get=gs,u.gt=Sg,u.gte=Pg,u.has=mm,u.hasIn=ms,u.head=Fo,u.identity=Ut,u.includes=eg,u.indexOf=Zd,u.inRange=Rm,u.invoke=_m,u.isArguments=Ye,u.isArray=J,u.isArrayBuffer=Rg,u.isArrayLike=qt,u.isArrayLikeObject=Dt,u.isBoolean=Fg,u.isBuffer=Fe,u.isDate=Xg,u.isElement=qg,u.isEmpty=Bg,u.isEqual=Ug,u.isEqualWith=Wg,u.isError=ds,u.isFinite=Kg,u.isFunction=Le,u.isInteger=Yo,u.isLength=Fn,u.isMap=Zo,u.isMatch=kg,u.isMatchWith=Hg,u.isNaN=Vg,u.isNative=$g,u.isNil=zg,u.isNull=Gg,u.isNumber=jo,u.isObject=wt,u.isObjectLike=_t,u.isPlainObject=Br,u.isRegExp=ps,u.isSafeInteger=Yg,u.isSet=Jo,u.isString=Xn,u.isSymbol=Ht,u.isTypedArray=dr,u.isUndefined=Zg,u.isWeakMap=jg,u.isWeakSet=Jg,u.join=ep,u.kebabCase=Wm,u.last=te,u.lastIndexOf=rp,u.lowerCase=Km,u.lowerFirst=km,u.lt=Qg,u.lte=tm,u.max=Xy,u.maxBy=qy,u.mean=By,u.meanBy=Uy,u.min=Wy,u.minBy=Ky,u.stubArray=Ts,u.stubFalse=Ls,u.stubObject=My,u.stubString=Oy,u.stubTrue=xy,u.multiply=ky,u.nth=np,u.noConflict=_y,u.noop=Ds,u.now=Sn,u.pad=Hm,u.padEnd=Vm,u.padStart=$m,u.parseInt=Gm,u.random=Fm,u.reduce=ug,u.reduceRight=og,u.repeat=zm,u.replace=Ym,u.result=Im,u.round=Hy,u.runInContext=y,u.sample=hg,u.size=cg,u.snakeCase=Zm,u.some=dg,u.sortedIndex=fp,u.sortedIndexBy=lp,u.sortedIndexOf=cp,u.sortedLastIndex=dp,u.sortedLastIndexBy=pp,u.sortedLastIndexOf=gp,u.startCase=Jm,u.startsWith=Qm,u.subtract=Vy,u.sum=$y,u.sumBy=Gy,u.template=ty,u.times=Cy,u.toFinite=be,u.toInteger=tt,u.toLength=ta,u.toLower=ey,u.toNumber=ee,u.toSafeInteger=em,u.toString=lt,u.toUpper=ry,u.trim=ny,u.trimEnd=iy,u.trimStart=sy,u.truncate=uy,u.unescape=oy,u.uniqueId=Ay,u.upperCase=ay,u.upperFirst=ys,u.each=Uo,u.eachRight=Wo,u.first=Fo,vs(u,function(){var t={};return ce(u,function(e,r){ct.call(u.prototype,r)||(t[r]=e)}),t}(),{chain:!1}),u.VERSION=h,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){u[t].placeholder=u}),Yt(["drop","take"],function(t,e){ut.prototype[t]=function(r){r=r===i?1:bt(tt(r),0);var n=this.__filtered__&&!e?new ut(this):this.clone();return n.__filtered__?n.__takeCount__=xt(r,n.__takeCount__):n.__views__.push({size:xt(r,At),type:t+(n.__dir__<0?"Right":"")}),n},ut.prototype[t+"Right"]=function(r){return this.reverse()[t](r).reverse()}}),Yt(["filter","map","takeWhile"],function(t,e){var r=e+1,n=r==K||r==j;ut.prototype[t]=function(s){var o=this.clone();return o.__iteratees__.push({iteratee:H(s,3),type:r}),o.__filtered__=o.__filtered__||n,o}}),Yt(["head","last"],function(t,e){var r="take"+(e?"Right":"");ut.prototype[t]=function(){return this[r](1).value()[0]}}),Yt(["initial","tail"],function(t,e){var r="drop"+(e?"":"Right");ut.prototype[t]=function(){return this.__filtered__?new ut(this):this[r](1)}}),ut.prototype.compact=function(){return this.filter(Ut)},ut.prototype.find=function(t){return this.filter(t).head()},ut.prototype.findLast=function(t){return this.reverse().find(t)},ut.prototype.invokeMap=rt(function(t,e){return typeof t=="function"?new ut(this):this.map(function(r){return Sr(r,t,e)})}),ut.prototype.reject=function(t){return this.filter(Rn(H(t)))},ut.prototype.slice=function(t,e){t=tt(t);var r=this;return r.__filtered__&&(t>0||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<N;X++)if(q=A[X],q!=null)for(T in q)!L.call(q,T)||(b[T]=q[T]);return b},f=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"},D=function(b){var A;return!!b&&((A=typeof b)==="function"||A==="object")},_=function(b){return f(Array.isArray)?Array.isArray(b):Object.prototype.toString.call(b)==="[object Array]"},v=function(b){var A;if(_(b))return!b.length;for(A in b)if(!!L.call(b,A))return!1;return!0},m=function(b){var A,X;return D(b)&&(X=Object.getPrototypeOf(b))&&(A=X.constructor)&&typeof A=="function"&&A instanceof A&&Function.prototype.toString.call(A)===Function.prototype.toString.call(Object)},h=function(b){return f(b.valueOf)?b.valueOf():b},qe.exports.assign=i,qe.exports.isFunction=f,qe.exports.isObject=D,qe.exports.isArray=_,qe.exports.isEmpty=v,qe.exports.isPlainObject=m,qe.exports.getValue=h}).call(_a)});var Is=Q((va,Da)=>{(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<nt;G++)if(B=Z[G],B.type===i.DocType){B.name=this.name;break}}}clone(){var T,N,q,B;q=Object.create(this),q.isRoot&&(q.documentObject=null),q.attribs={},B=this.attribs;for(N in B)!b.call(B,N)||(T=B[N],q.attribs[N]=T.clone());return q.children=[],this.children.forEach(function(G){var nt;return nt=G.clone(),nt.parent=q,q.children.push(nt)}),q}attribute(T,N){var q,B;if(T!=null&&(T=D(T)),L(T))for(q in T)!b.call(T,q)||(B=T[q],this.attribute(q,B));else m(N)&&(N=N.apply()),this.options.keepNullAttributes&&N==null?this.attribs[T]=new h(this,T,""):N!=null&&(this.attribs[T]=new h(this,T,N));return this}removeAttribute(T){var N,q,B;if(T==null)throw new Error("Missing attribute name. "+this.debugInfo());if(T=D(T),Array.isArray(T))for(q=0,B=T.length;q<B;q++)N=T[q],delete this.attribs[N];else delete this.attribs[T];return this}toString(T){return this.options.writer.element(this,this.options.writer.filterOptions(T))}att(T,N){return this.attribute(T,N)}a(T,N){return this.attribute(T,N)}getAttribute(T){return this.attribs.hasOwnProperty(T)?this.attribs[T].value:null}setAttribute(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(T){return this.attribs.hasOwnProperty(T)?this.attribs[T]:null}setAttributeNode(T){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(T){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(T){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(T,N,q){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(T){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(T){return this.attribs.hasOwnProperty(T)}hasAttributeNS(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(T,N){return this.attribs.hasOwnProperty(T)?this.attribs[T].isId:N}setIdAttributeNS(T,N,q){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(T){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(T,N){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(T){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(T){var N,q,B;if(!super.isEqualNode(T)||T.namespaceURI!==this.namespaceURI||T.prefix!==this.prefix||T.localName!==this.localName||T.attribs.length!==this.attribs.length)return!1;for(N=q=0,B=this.attribs.length-1;0<=B?q<=B:q>=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<nt;G++)if(B=Z[G],B.type===i.Element){this.name=B.name;break}}this.documentObject=T,b(N)&&({pubID:N,sysID:q}=N),q==null&&([q,N]=[N,q]),N!=null&&(this.pubID=this.stringify.dtdPubID(N)),q!=null&&(this.sysID=this.stringify.dtdSysID(q))}element(T,N){var q;return q=new _(this,T,N),this.children.push(q),this}attList(T,N,q,B,G){var nt;return nt=new h(this,T,N,q,B,G),this.children.push(nt),this}entity(T,N){var q;return q=new v(this,!1,T,N),this.children.push(q),this}pEntity(T,N){var q;return q=new v(this,!0,T,N),this.children.push(q),this}notation(T,N){var q;return q=new f(this,T,N),this.children.push(q),this}toString(T){return this.options.writer.docType(this,this.options.writer.filterOptions(T))}ele(T,N){return this.element(T,N)}att(T,N,q,B,G){return this.attList(T,N,q,B,G)}ent(T,N){return this.entity(T,N)}pent(T,N){return this.pEntity(T,N)}not(T,N){return this.notation(T,N)}up(){return this.root()||this.documentObject}isEqualNode(T){return!(!super.isEqualNode(T)||T.name!==this.name||T.publicId!==this.publicId||T.systemId!==this.systemId)}}return Object.defineProperty(A.prototype,"entities",{get:function(){var X,T,N,q,B;for(q={},B=this.children,T=0,N=B.length;T<N;T++)X=B[T],X.type===i.EntityDeclaration&&!X.pe&&(q[X.name]=X);return new m(q)}}),Object.defineProperty(A.prototype,"notations",{get:function(){var X,T,N,q,B;for(q={},B=this.children,T=0,N=B.length;T<N;T++)X=B[T],X.type===i.NotationDeclaration&&(q[X.name]=X);return new m(q)}}),Object.defineProperty(A.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(A.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(A.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),A}.call(this)}).call(eh)});var Zn=Q((nh,ih)=>{(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<l;x++)E=I[x],S.push(E.setParent(this));return S}element(a,E,x){var l,I,S,K,z,j,pt,at,it;if(j=null,E===null&&x==null&&([E,x]=[{},null]),E==null&&(E={}),E=B(E),Z(E)||([x,E]=[E,x]),a!=null&&(a=B(a)),Array.isArray(a))for(S=0,pt=a.length;S<pt;S++)I=a[S],j=this.element(I);else if(nt(a))j=this.element(a.apply());else if(Z(a)){for(z in a)if(!!Et.call(a,z))if(it=a[z],nt(it)&&(it=it.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&z.indexOf(this.stringify.convertAttKey)===0)j=this.attribute(z.substr(this.stringify.convertAttKey.length),it);else if(!this.options.separateArrayItems&&Array.isArray(it)&&G(it))j=this.dummy();else if(Z(it)&&G(it))j=this.element(z);else if(!this.options.keepNullNodes&&it==null)j=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(it))for(K=0,at=it.length;K<at;K++)I=it[K],l={},l[z]=I,j=this.element(l);else Z(it)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&z.indexOf(this.stringify.convertTextKey)===0?j=this.element(it):(j=this.element(z),j.element(it)):j=this.element(z,it)}else!this.options.keepNullNodes&&x===null?j=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&a.indexOf(this.stringify.convertTextKey)===0?j=this.text(x):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&a.indexOf(this.stringify.convertCDataKey)===0?j=this.cdata(x):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&a.indexOf(this.stringify.convertCommentKey)===0?j=this.comment(x):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&a.indexOf(this.stringify.convertRawKey)===0?j=this.raw(x):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&a.indexOf(this.stringify.convertPIKey)===0?j=this.instruction(a.substr(this.stringify.convertPIKey.length),x):j=this.node(a,E,x);if(j==null)throw new Error("Could not create any elements with: "+a+". "+this.debugInfo());return j}insertBefore(a,E,x){var l,I,S,K,z;if(a!=null?a.type:void 0)return S=a,K=E,S.setParent(this),K?(I=children.indexOf(K),z=children.splice(I),children.push(S),Array.prototype.push.apply(children,z)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(a));return I=this.parent.children.indexOf(this),z=this.parent.children.splice(I),l=this.parent.element(a,E,x),Array.prototype.push.apply(this.parent.children,z),l}insertAfter(a,E,x){var l,I,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(a));return I=this.parent.children.indexOf(this),S=this.parent.children.splice(I+1),l=this.parent.element(a,E,x),Array.prototype.push.apply(this.parent.children,S),l}remove(){var a,E;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return a=this.parent.children.indexOf(this),p.apply(this.parent.children,[a,a-a+1].concat(E=[])),this.parent}node(a,E,x){var l;return a!=null&&(a=B(a)),E||(E={}),E=B(E),Z(E)||([x,E]=[E,x]),l=new L(this,a,E),x!=null&&l.text(x),this.children.push(l),l}text(a){var E;return Z(a)&&this.element(a),E=new q(this,a),this.children.push(E),this}cdata(a){var E;return E=new _(this,a),this.children.push(E),this}comment(a){var E;return E=new v(this,a),this.children.push(E),this}commentBefore(a){var E,x,l;return x=this.parent.children.indexOf(this),l=this.parent.children.splice(x),E=this.parent.comment(a),Array.prototype.push.apply(this.parent.children,l),this}commentAfter(a){var E,x,l;return x=this.parent.children.indexOf(this),l=this.parent.children.splice(x+1),E=this.parent.comment(a),Array.prototype.push.apply(this.parent.children,l),this}raw(a){var E;return E=new N(this,a),this.children.push(E),this}dummy(){var a;return a=new m(this),a}instruction(a,E){var x,l,I,S,K;if(a!=null&&(a=B(a)),E!=null&&(E=B(E)),Array.isArray(a))for(S=0,K=a.length;S<K;S++)x=a[S],this.instruction(x);else if(Z(a))for(x in a)!Et.call(a,x)||(l=a[x],this.instruction(x,l));else nt(E)&&(E=E.apply()),I=new T(this,a,E),this.children.push(I);return this}instructionBefore(a,E){var x,l,I;return l=this.parent.children.indexOf(this),I=this.parent.children.splice(l),x=this.parent.instruction(a,E),Array.prototype.push.apply(this.parent.children,I),this}instructionAfter(a,E){var x,l,I;return l=this.parent.children.indexOf(this),I=this.parent.children.splice(l+1),x=this.parent.instruction(a,E),Array.prototype.push.apply(this.parent.children,I),this}declaration(a,E,x){var l,I;return l=this.document(),I=new f(l,a,E,x),l.children.length===0?l.children.unshift(I):l.children[0].type===h.Declaration?l.children[0]=I:l.children.unshift(I),l.root()||l}dtd(a,E){var x,l,I,S,K,z,j,pt,at,it;for(l=this.document(),I=new D(l,a,E),at=l.children,S=K=0,j=at.length;K<j;S=++K)if(x=at[S],x.type===h.DocType)return l.children[S]=I,I;for(it=l.children,S=z=0,pt=it.length;z<pt;S=++z)if(x=it[S],x.isRoot)return l.children.splice(S,0,I),I;return l.children.push(I),I}up(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var a;for(a=this;a;){if(a.type===h.Document)return a.rootObject;if(a.isRoot)return a;a=a.parent}}document(){var a;for(a=this;a;){if(a.type===h.Document)return a;a=a.parent}}end(a){return this.document().end(a)}prev(){var a;if(a=this.parent.children.indexOf(this),a<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[a-1]}next(){var a;if(a=this.parent.children.indexOf(this),a===-1||a===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[a+1]}importDocument(a){var E,x,l,I,S;if(x=a.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this.type===h.Document&&(x.isRoot=!0,x.documentObject=this,this.rootObject=x,this.children)){for(S=this.children,l=0,I=S.length;l<I;l++)if(E=S[l],E.type===h.DocType){E.name=x.name;break}}return this}debugInfo(a){var E,x;return a=a||this.name,a==null&&!((E=this.parent)!=null?E.name:void 0)?"":a==null?"parent: <"+this.parent.name+">":((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;l<I;l++)if(E=S[l],a===E||(x=E.isDescendant(a),x))return!0;return!1}isAncestor(a){return a.isDescendant(this)}isPreceding(a){var E,x;return E=this.treePosition(a),x=this.treePosition(this),E===-1||x===-1?!1:E<x}isFollowing(a){var E,x;return E=this.treePosition(a),x=this.treePosition(this),E===-1||x===-1?!1:E>x}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<I;l++){if(x=S[l],K=E(x))return K;if(K=this.foreachTreeNode(x,E),K)return K}}}return Object.defineProperty(d.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(d.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(d.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(d.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(d.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new X(this.children)),this.childNodeList}}),Object.defineProperty(d.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(d.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(d.prototype,"previousSibling",{get:function(){var M;return M=this.parent.children.indexOf(this),this.parent.children[M-1]||null}}),Object.defineProperty(d.prototype,"nextSibling",{get:function(){var M;return M=this.parent.children.indexOf(this),this.parent.children[M+1]||null}}),Object.defineProperty(d.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(d.prototype,"textContent",{get:function(){var M,a,E,x,l;if(this.nodeType===h.Element||this.nodeType===h.DocumentFragment){for(l="",x=this.children,a=0,E=x.length;a<E;a++)M=x[a],M.textContent&&(l+=M.textContent);return l}else return null},set:function(M){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),d}.call(this)}).call(yh)});var xs=Q((_h,vh)=>{(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("]]>","]]]]><![CDATA[>"),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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(f){var D;return this.options.noValidation?f:(D=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,f.replace(D,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return _.prototype.convertAttKey="@",_.prototype.convertPIKey="?",_.prototype.convertTextKey="#text",_.prototype.convertCDataKey="#cdata",_.prototype.convertCommentKey="#comment",_.prototype.convertRawKey="#raw",_}.call(this)}).call(_h)});var kr=Q((Dh,Th)=>{(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)+"<![CDATA[",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}comment(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}declaration(p,d,M){var a;return this.openNode(p,d,M),d.state=h.OpenTag,a=this.indent(p,d,M)+"<?xml",d.state=h.InsideTag,a+=' version="'+p.version+'"',p.encoding!=null&&(a+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(a+=' standalone="'+p.standalone+'"'),d.state=h.CloseTag,a+=d.spaceBeforeSlash+"?>",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+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?l+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(l+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(l+=" [",l+=this.endline(p,d,M),d.state=h.InsideTag,I=p.children,E=0,x=I.length;E<x;E++)a=I[E],l+=this.writeChildNode(a,d,M+1);d.state=h.CloseTag,l+="]"}return d.state=h.CloseTag,l+=d.spaceBeforeSlash+">",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+="</"+p.name+">"+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+="</"+p.name+">"+this.endline(p,d,M);else{if(d.dontPrettyTextNodes){for(yr=p.children,S=0,j=yr.length;S<j;S++)if(x=yr[S],(x.type===i.Text||x.type===i.Raw||x.type===i.CData)&&x.value!=null){d.suppressPrettyCount++,it=!0;break}}for(vt+=">"+this.endline(p,d,M),d.state=h.InsideTag,le=p.children,K=0,pt=le.length;K<pt;K++)x=le[K],vt+=this.writeChildNode(x,d,M+1);d.state=h.CloseTag,vt+=this.indent(p,d,M)+"</"+p.name+">",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)+"<?",d.state=h.InsideTag,a+=p.target,p.value&&(a+=" "+p.value),d.state=h.CloseTag,a+=d.spaceBeforeSlash+"?>",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)+"<!ATTLIST",d.state=h.InsideTag,a+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(a+=" "+p.defaultValueType),p.defaultValue&&(a+=' "'+p.defaultValue+'"'),d.state=h.CloseTag,a+=d.spaceBeforeSlash+">"+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)+"<!ELEMENT",d.state=h.InsideTag,a+=" "+p.name+" "+p.value,d.state=h.CloseTag,a+=d.spaceBeforeSlash+">"+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)+"<!ENTITY",d.state=h.InsideTag,p.pe&&(a+=" %"),a+=" "+p.name,p.value?a+=' "'+p.value+'"':(p.pubID&&p.sysID?a+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(a+=' SYSTEM "'+p.sysID+'"'),p.nData&&(a+=" NDATA "+p.nData)),d.state=h.CloseTag,a+=d.spaceBeforeSlash+">"+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)+"<!NOTATION",d.state=h.InsideTag,a+=" "+p.name,p.pubID&&p.sysID?a+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?a+=' PUBLIC "'+p.pubID+'"':p.sysID&&(a+=' SYSTEM "'+p.sysID+'"'),d.state=h.CloseTag,a+=d.spaceBeforeSlash+">"+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<L;m++)D=A[m],b+=this.writeChildNode(D,f,0);return f.pretty&&b.slice(-f.newline.length)===f.newline&&(b=b.slice(0,-f.newline.length)),b}}}).call(Eh)});var Ns=Q((Mh,Oh)=>{(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<T;X++)if(A=N[X],A.type===i.DocType)return A;return null}}),Object.defineProperty(b.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(b.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(b.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(b.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].encoding:null}}),Object.defineProperty(b.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(b.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===i.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(b.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(b.prototype,"origin",{get:function(){return null}}),Object.defineProperty(b.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(b.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(b.prototype,"contentType",{get:function(){return null}}),b}.call(this)}).call(Mh)});var Nh=Q((xh,Ch)=>{(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<pt;j++)z=it[j],this.createChildNode(z),z.type===i.Element&&this.up();return this}dummy(){return this}node(l,I,S){if(l==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(l));return this.openCurrent(),l=p(l),I==null&&(I={}),I=p(I),M(I)||([S,I]=[I,S]),this.currentNode=new q(this,l,I),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,S!=null&&this.text(S),this}element(l,I,S){var K,z,j,pt,at,it;if(this.currentNode&&this.currentNode.type===i.DocType)this.dtdElement(...arguments);else if(Array.isArray(l)||M(l)||d(l))for(pt=this.options.noValidation,this.options.noValidation=!0,it=new T(this.options).element("TEMP_ROOT"),it.element(l),this.options.noValidation=pt,at=it.children,z=0,j=at.length;z<j;z++)K=at[z],this.createChildNode(K),K.type===i.Element&&this.up();else this.node(l,I,S);return this}attribute(l,I){var S,K;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(l));if(l!=null&&(l=p(l)),M(l))for(S in l)!E.call(l,S)||(K=l[S],this.attribute(S,K));else d(I)&&(I=I.apply()),this.options.keepNullAttributes&&I==null?this.currentNode.attribs[l]=new _(this,l,""):I!=null&&(this.currentNode.attribs[l]=new _(this,l,I));return this}text(l){var I;return this.openCurrent(),I=new Et(this,l),this.onData(this.writer.text(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(l){var I;return this.openCurrent(),I=new v(this,l),this.onData(this.writer.cdata(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(l){var I;return this.openCurrent(),I=new f(this,l),this.onData(this.writer.comment(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(l){var I;return this.openCurrent(),I=new G(this,l),this.onData(this.writer.raw(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(l,I){var S,K,z,j,pt;if(this.openCurrent(),l!=null&&(l=p(l)),I!=null&&(I=p(I)),Array.isArray(l))for(S=0,j=l.length;S<j;S++)K=l[S],this.instruction(K);else if(M(l))for(K in l)!E.call(l,K)||(z=l[K],this.instruction(K,z));else d(I)&&(I=I.apply()),pt=new B(this,l,I),this.onData(this.writer.processingInstruction(pt,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(l,I,S){var K;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return K=new A(this,l,I,S),this.onData(this.writer.declaration(K,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(l,I,S){if(this.openCurrent(),l==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new X(this,I,S),this.currentNode.rootNodeName=l,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(l,I){var S;return this.openCurrent(),S=new m(this,l,I),this.onData(this.writer.dtdElement(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(l,I,S,K,z){var j;return this.openCurrent(),j=new D(this,l,I,S,K,z),this.onData(this.writer.dtdAttList(j,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(l,I){var S;return this.openCurrent(),S=new L(this,!1,l,I),this.onData(this.writer.dtdEntity(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(l,I){var S;return this.openCurrent(),S=new L(this,!0,l,I),this.onData(this.writer.dtdEntity(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(l,I){var S;return this.openCurrent(),S=new b(this,l,I),this.onData(this.writer.dtdNotation(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=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)+"<!DOCTYPE "+l.rootNodeName,l.pubID&&l.sysID?S+=' PUBLIC "'+l.pubID+'" "'+l.sysID+'"':l.sysID&&(S+=' SYSTEM "'+l.sysID+'"'),l.children?(S+=" [",this.writerOptions.state=h.InsideTag):(this.writerOptions.state=h.CloseTag,S+=">"),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)+"</"+l.name+">"+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;X<N;A=++X)b=B[A],b.isLastRootNode=A===m.children.length-1;for(L=this.filterOptions(L),G=m.children,nt=[],T=0,q=G.length;T<q;T++)b=G[T],nt.push(this.writeChildNode(b,L,0));return nt}cdata(m,L,b){return this.stream.write(super.cdata(m,L,b))}comment(m,L,b){return this.stream.write(super.comment(m,L,b))}declaration(m,L,b){return this.stream.write(super.declaration(m,L,b))}docType(m,L,b){var A,X,T,N;if(b||(b=0),this.openNode(m,L,b),L.state=h.OpenTag,this.stream.write(this.indent(m,L,b)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID?this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"'):m.sysID&&this.stream.write(' SYSTEM "'+m.sysID+'"'),m.children.length>0){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<T;X++)A=N[X],this.writeChildNode(A,L,b+1);L.state=h.CloseTag,this.stream.write("]")}return L.state=h.CloseTag,this.stream.write(L.spaceBeforeSlash+">"),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("</"+m.name+">")):(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("</"+m.name+">");else{for(this.stream.write(">"+this.endline(m,L,b)),L.state=h.InsideTag,E=m.children,B=0,nt=E.length;B<nt;B++)T=E[B],this.writeChildNode(T,L,b+1);L.state=h.CloseTag,this.stream.write(this.indent(m,L,b)+"</"+m.name+">")}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<arguments.length;f++)v[f]=arguments[f];return new _((f,D)=>{h.errorFirst?v.push(function(m,L){if(h.multiArgs){let b=new Array(arguments.length-1);for(let A=1;A<arguments.length;A++)b[A-1]=arguments[A];m?(b.unshift(m),D(b)):f(b)}else m?D(m):f(L)}):v.push(function(m){if(h.multiArgs){let L=new Array(arguments.length-1);for(let b=0;b<arguments.length;b++)L[b]=arguments[b];f(L)}else f(m)}),i.apply(this,v)})};qh.exports=(i,h)=>{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<h;)_="0"+_;return _}function je(i){return Hh(i,2)}function uw(i){var h=Math.abs(i.getTimezoneOffset()),_=String(Math.floor(h/60)),v=String(h%60);return _.length==1&&(_="0"+_),v.length==1&&(v="0"+v),i.getTimezoneOffset()<0?"+"+_+v:"-"+_+v}function Ue(i){var h=Ue.ISO8601_FORMAT;typeof i=="string"&&(h=arguments[0],i=arguments[1]),i||(i=new Date);var _=je(i.getDate()),v=je(i.getMonth()+1),f=je(i.getFullYear()),D=je(i.getFullYear().toString().substring(2,4)),m=h.indexOf("yyyy")>-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 <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
return plugin;
}
};