!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(t="undefined"!=typeof globalThis?globalThis:t||self).CherryCodeBlockMermaidPlugin=r()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r){return t(r={exports:{}},r.exports),r.exports}var n,o,i=function(t){return t&&t.Math===Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=c,s=Function.prototype,l=s.apply,p=s.call,v="object"==typeof Reflect&&Reflect.apply||(f?p.bind(l):function(){return p.apply(l,arguments)}),y=Function.prototype,d=y.call,h=f&&y.bind.bind(d,d),b=f?h:function(t){return function(){return d.apply(t,arguments)}},g=b,m=g({}.toString),_=g("".slice),w=function(t){return _(m(t),8,-1)},O="object"==typeof document&&document.all,j={all:O,IS_HTMLDDA:void 0===O&&void 0!==O},S=j.all,x=j.IS_HTMLDDA?function(t){return"function"==typeof t||t===S}:function(t){return"function"==typeof t},P=!u((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),A=Function.prototype.call,T=f?A.bind(A):function(){return A.apply(A,arguments)},E={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,F={f:M&&!E.call({1:2},1)?function(t){var r=M(this,t);return!!r&&r.enumerable}:E},I=Object,L=g("".split),C=u((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"===w(t)?L(t,""):I(t)}:I,k=function(t){return null==t},D=TypeError,R=C,z=function(t){if(k(t))throw D("Can't call method on "+t);return t},N=x,B=j.all,G=j.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:N(t)||t===B}:function(t){return"object"==typeof t?null!==t:N(t)},U={},W=a,V=function(t){return N(t)?t:void 0},$=g({}.isPrototypeOf),H="undefined"!=typeof navigator&&String(navigator.userAgent)||"",K=W.process,q=W.Deno,J=K&&K.versions||q&&q.version,Y=J&&J.v8;Y&&(o=(n=Y.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&H&&(!(n=H.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=H.match(/Chrome\/(\d+)/))&&(o=+n[1]);var X=o,Q=W.String,Z=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol("symbol detection");return!Q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),tt=Z,rt=tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=function(t,r){return arguments.length<2?V(U[t])||V(W[t]):U[t]&&U[t][r]||W[t]&&W[t][r]},nt=$,ot=rt,it=Object,at=ot?function(t){return"symbol"==typeof t}:function(t){var r=et("Symbol");return N(r)&&nt(r.prototype,it(t))},ut=String,ct=function(t){try{return ut(t)}catch(t){return"Object"}},ft=TypeError,st=function(t){if(N(t))return t;throw ft(ct(t)+" is not a function")},lt=T,pt=G,vt=TypeError,yt=Object.defineProperty,dt=function(t,r){try{yt(W,t,{value:r,configurable:!0,writable:!0})}catch(e){W[t]=r}return r},ht="__core-js_shared__",bt=W[ht]||dt(ht,{}),gt=bt,mt=e((function(t){(t.exports=function(t,r){return gt[t]||(gt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.32.1",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),_t=Object,wt=function(t){return _t(z(t))},Ot=g({}.hasOwnProperty),jt=Object.hasOwn||function(t,r){return Ot(wt(t),r)},St=0,xt=Math.random(),Pt=g(1..toString),At=mt,Tt=jt,Et=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Pt(++St+xt,36)},Mt=W.Symbol,Ft=At("wks"),It=ot?Mt.for||Mt:Mt&&Mt.withoutSetter||Et,Lt=at,Ct=function(t,r){var e=t[r];return k(e)?void 0:st(e)},kt=function(t,r){var e,n;if("string"===r&&N(e=t.toString)&&!pt(n=lt(e,t)))return n;if(N(e=t.valueOf)&&!pt(n=lt(e,t)))return n;if("string"!==r&&N(e=t.toString)&&!pt(n=lt(e,t)))return n;throw vt("Can't convert object to primitive value")},Dt=function(t){return Tt(Ft,t)||(Ft[t]=tt&&Tt(Mt,t)?Mt[t]:It("Symbol."+t)),Ft[t]},Rt=TypeError,zt=Dt("toPrimitive"),Nt=function(t,r){if(!pt(t)||Lt(t))return t;var e,n=Ct(t,zt);if(n){if(void 0===r&&(r="default"),e=lt(n,t,r),!pt(e)||Lt(e))return e;throw Rt("Can't convert object to primitive value")}return void 0===r&&(r="number"),kt(t,r)},Bt=W.document,Gt=pt(Bt)&&pt(Bt.createElement),Ut=P,Wt=function(t){return Gt?Bt.createElement(t):{}},Vt=!Ut&&!u((function(){return 7!==Object.defineProperty(Wt("div"),"a",{get:function(){return 7}}).a})),$t=F,Ht=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Kt=function(t){return R(z(t))},qt=function(t){var r=Nt(t,"string");return Lt(r)?r:r+""},Jt=Vt,Yt=Object.getOwnPropertyDescriptor,Xt={f:Ut?Yt:function(t,r){if(t=Kt(t),r=qt(r),Jt)try{return Yt(t,r)}catch(t){}if(Tt(t,r))return Ht(!lt($t.f,t,r),t[r])}},Qt=/#|\.prototype\./,Zt=function(t,r){var e=rr[tr(t)];return e===nr||e!==er&&(N(r)?u(r):!!r)},tr=Zt.normalize=function(t){return String(t).replace(Qt,".").toLowerCase()},rr=Zt.data={},er=Zt.NATIVE="N",nr=Zt.POLYFILL="P",or=Zt,ir=function(t){if("Function"===w(t))return g(t)},ar=ir(ir.bind),ur=Ut&&u((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),cr=String,fr=TypeError,sr=ur,lr=function(t){if(pt(t))return t;throw fr(cr(t)+" is not an object")},pr=TypeError,vr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,dr="enumerable",hr="configurable",br="writable",gr={f:Ut?sr?function(t,r,e){if(lr(t),r=qt(r),lr(e),"function"==typeof t&&"prototype"===r&&"value"in e&&br in e&&!e[br]){var n=yr(t,r);n&&n[br]&&(t[r]=e.value,e={configurable:hr in e?e[hr]:n[hr],enumerable:dr in e?e[dr]:n[dr],writable:!1})}return vr(t,r,e)}:vr:function(t,r,e){if(lr(t),r=qt(r),lr(e),Jt)try{return vr(t,r,e)}catch(t){}if("get"in e||"set"in e)throw pr("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},mr=v,_r=Xt,wr=or,Or=function(t,r){return st(t),void 0===r?t:f?ar(t,r):function(){return t.apply(r,arguments)}},jr=Ut?function(t,r,e){return gr.f(t,r,Ht(1,e))}:function(t,r,e){return t[r]=e,t},Sr=_r.f,xr=function(t){var r=function(e,n,o){if(this instanceof r){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return mr(t,this,arguments)};return r.prototype=t.prototype,r},Pr=Math.ceil,Ar=Math.floor,Tr=Math.trunc||function(t){var r=+t;return(r>0?Ar:Pr)(r)},Er=Tr,Mr=function(t){var r=+t;return r!=r||0===r?0:Er(r)},Fr=Math.max,Ir=Math.min,Lr=Math.min,Cr=function(t){return t>0?Lr(Mr(t),9007199254740991):0},kr=function(t,r){var e=Mr(t);return e<0?Fr(e+r,0):Ir(e,r)},Dr=function(t){return Cr(t.length)},Rr=function(t){return function(r,e,n){var o,i=Kt(r),a=Dr(i),u=kr(n,a);if(t&&e!=e){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},zr={includes:Rr(!0),indexOf:Rr(!1)},Nr={},Br=zr.indexOf,Gr=g([].push),Ur=function(t,r){var e,n=Kt(t),o=0,i=[];for(e in n)!Tt(Nr,e)&&Tt(n,e)&&Gr(i,e);for(;r.length>o;)Tt(n,e=r[o++])&&(~Br(i,e)||Gr(i,e));return i},Wr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vr=Object.keys||function(t){return Ur(t,Wr)},$r=function(t,r){var e,n,o,i,a,u,c,f,s,l=t.target,p=t.global,v=t.stat,y=t.proto,d=p?W:v?W[l]:(W[l]||{}).prototype,h=p?U:U[l]||jr(U,l,{})[l],b=h.prototype;for(i in r)n=!(e=wr(p?i:l+(v?".":"#")+i,t.forced))&&d&&Tt(d,i),u=h[i],n&&(c=t.dontCallGetSet?(s=Sr(d,i))&&s.value:d[i]),a=n&&c?c:r[i],n&&typeof u==typeof a||(f=t.bind&&n?Or(a,W):t.wrap&&n?xr(a):y&&N(a)?ir(a):a,(t.sham||a&&a.sham||u&&u.sham)&&jr(f,"sham",!0),jr(h,i,f),y&&(Tt(U,o=l+"Prototype")||jr(U,o,{}),jr(U[o],i,a),t.real&&b&&(e||!b[i])&&jr(b,i,a)))},Hr=Vr,Kr=u((function(){Hr(1)}));$r({target:"Object",stat:!0,forced:Kr},{keys:function(t){return Hr(wt(t))}});var qr=U.Object.keys,Jr={};Jr[Dt("toStringTag")]="z";var Yr,Xr="[object z]"===String(Jr),Qr=Dt("toStringTag"),Zr=Object,te="Arguments"===w(function(){return arguments}()),re=Xr?w:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=Zr(t),Qr))?e:te?w(r):"Object"===(n=w(r))&&N(r.callee)?"Arguments":n},ee=String,ne=Ut&&!sr?Object.defineProperties:function(t,r){lr(t);for(var e,n=Kt(r),o=Hr(r),i=o.length,a=0;i>a;)gr.f(t,e=o[a++],n[e]);return t},oe={f:ne},ie=et("document","documentElement"),ae=At("keys"),ue=oe,ce=ie,fe=function(t){return ae[t]||(ae[t]=Et(t))},se="prototype",le="script",pe=fe("IE_PROTO"),ve=function(){},ye=function(t){return"<"+le+">"+t+"</"+le+">"},de=function(t){t.write(ye("")),t.close();var r=t.parentWindow.Object;return t=null,r},he=function(){try{Yr=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;he="undefined"!=typeof document?document.domain&&Yr?de(Yr):(r=Wt("iframe"),e="java"+le+":",r.style.display="none",ce.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(ye("document.F=Object")),t.close(),t.F):de(Yr);for(var n=Wr.length;n--;)delete he[se][Wr[n]];return he()};Nr[pe]=!0;var be,ge,me,_e=Object.create||function(t,r){var e;return null!==t?(ve[se]=lr(t),e=new ve,ve[se]=null,e[pe]=t):e=he(),void 0===r?e:ue.f(e,r)},we=Wr.concat("length","prototype"),Oe={f:Object.getOwnPropertyNames||function(t){return Ur(t,we)}},je=function(t,r,e){var n=qt(r);n in t?gr.f(t,n,Ht(0,e)):t[n]=e},Se=Array,xe=Math.max,Pe=Oe,Ae=function(t,r,e){for(var n=Dr(t),o=kr(r,n),i=kr(void 0===e?n:e,n),a=Se(xe(i-o,0)),u=0;o<i;o++,u++)je(a,u,t[o]);return a.length=u,a},Te=Pe.f,Ee="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Me={f:function(t){return Ee&&"Window"===w(t)?function(t){try{return Te(t)}catch(t){return Ae(Ee)}}(t):Te(Kt(t))}},Fe={f:Object.getOwnPropertySymbols},Ie={f:Dt},Le=gr.f,Ce=function(t,r,e,n){return n&&n.enumerable?t[r]=e:jr(t,r,e),t},ke=Xr?{}.toString:function(){return"[object "+re(this)+"]"},De=gr.f,Re=Dt("toStringTag"),ze=W.WeakMap,Ne=N(ze)&&/native code/.test(String(ze)),Be="Object already initialized",Ge=W.TypeError,Ue=W.WeakMap;if(Ne||gt.state){var We=gt.state||(gt.state=new Ue);We.get=We.get,We.has=We.has,We.set=We.set,be=function(t,r){if(We.has(t))throw Ge(Be);return r.facade=t,We.set(t,r),r},ge=function(t){return We.get(t)||{}},me=function(t){return We.has(t)}}else{var Ve=fe("state");Nr[Ve]=!0,be=function(t,r){if(Tt(t,Ve))throw Ge(Be);return r.facade=t,jr(t,Ve,r),r},ge=function(t){return Tt(t,Ve)?t[Ve]:{}},me=function(t){return Tt(t,Ve)}}var $e={set:be,get:ge,has:me,enforce:function(t){return me(t)?ge(t):be(t,{})},getterFor:function(t){return function(r){var e;if(!pt(r)||(e=ge(r)).type!==t)throw Ge("Incompatible receiver, "+t+" required");return e}}},He=Array.isArray||function(t){return"Array"===w(t)},Ke=g(Function.toString);N(gt.inspectSource)||(gt.inspectSource=function(t){return Ke(t)});var qe=gt.inspectSource,Je=function(){},Ye=[],Xe=et("Reflect","construct"),Qe=/^\s*(?:class|function)\b/,Ze=g(Qe.exec),tn=!Qe.exec(Je),rn=function(t){if(!N(t))return!1;try{return Xe(Je,Ye,t),!0}catch(t){return!1}},en=function(t){if(!N(t))return!1;switch(re(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tn||!!Ze(Qe,qe(t))}catch(t){return!0}};en.sham=!0;var nn=!Xe||u((function(){var t;return rn(rn.call)||!rn(Object)||!rn((function(){t=!0}))||t}))?en:rn,on=He,an=nn,un=Dt("species"),cn=Array,fn=function(t){var r;return on(t)&&(r=t.constructor,(an(r)&&(r===cn||on(r.prototype))||pt(r)&&null===(r=r[un]))&&(r=void 0)),void 0===r?cn:r},sn=function(t,r){return new(fn(t))(0===r?0:r)},ln=g([].push),pn=function(t){var r=1===t,e=2===t,n=3===t,o=4===t,i=6===t,a=7===t,u=5===t||i;return function(c,f,s,l){for(var p,v,y=wt(c),d=R(y),h=Or(f,s),b=Dr(d),g=0,m=l||sn,_=r?m(c,b):e||a?m(c,0):void 0;b>g;g++)if((u||g in d)&&(v=h(p=d[g],g,y),t))if(r)_[g]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:ln(_,p)}else switch(t){case 4:return!1;case 7:ln(_,p)}return i?-1:n||o?o:_}},vn={forEach:pn(0),map:pn(1),filter:pn(2),some:pn(3),every:pn(4),find:pn(5),findIndex:pn(6),filterReject:pn(7)},yn=function(t){if("Symbol"===re(t))throw TypeError("Cannot convert a Symbol value to a string");return ee(t)},dn=_e,hn=Me,bn=Fe,gn=function(t,r,e){return gr.f(t,r,e)},mn=function(t){var r=U.Symbol||(U.Symbol={});Tt(r,t)||Le(r,t,{value:Ie.f(t)})},_n=function(){var t=et("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,n=Dt("toPrimitive");r&&!r[n]&&Ce(r,n,(function(t){return lt(e,this)}),{arity:1})},wn=function(t,r,e,n){if(t){var o=e?t:t.prototype;Tt(o,Re)||De(o,Re,{configurable:!0,value:r}),n&&!Xr&&jr(o,"toString",ke)}},On=$e,jn=vn,Sn=jn.forEach,xn=fe("hidden"),Pn="Symbol",An="prototype",Tn=On.set,En=On.getterFor(Pn),Mn=Object[An],Fn=W.Symbol,In=Fn&&Fn[An],Ln=W.TypeError,Cn=W.QObject,kn=_r.f,Dn=gr.f,Rn=hn.f,zn=$t.f,Nn=g([].push),Bn=At("symbols"),Gn=At("op-symbols"),Un=At("wks"),Wn=!Cn||!Cn[An]||!Cn[An].findChild,Vn=Ut&&u((function(){return 7!==dn(Dn({},"a",{get:function(){return Dn(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=kn(Mn,r);n&&delete Mn[r],Dn(t,r,e),n&&t!==Mn&&Dn(Mn,r,n)}:Dn,$n=function(t,r){var e=Bn[t]=dn(In);return Tn(e,{type:Pn,tag:t,description:r}),Ut||(e.description=r),e},Hn=function(t,r,e){t===Mn&&Hn(Gn,r,e),lr(t);var n=qt(r);return lr(e),Tt(Bn,n)?(e.enumerable?(Tt(t,xn)&&t[xn][n]&&(t[xn][n]=!1),e=dn(e,{enumerable:Ht(0,!1)})):(Tt(t,xn)||Dn(t,xn,Ht(1,{})),t[xn][n]=!0),Vn(t,n,e)):Dn(t,n,e)},Kn=function(t,r){lr(t);var e=Kt(r),n=Hr(e).concat(Xn(e));return Sn(n,(function(r){Ut&&!lt(qn,e,r)||Hn(t,r,e[r])})),t},qn=function(t){var r=qt(t),e=lt(zn,this,r);return!(this===Mn&&Tt(Bn,r)&&!Tt(Gn,r))&&(!(e||!Tt(this,r)||!Tt(Bn,r)||Tt(this,xn)&&this[xn][r])||e)},Jn=function(t,r){var e=Kt(t),n=qt(r);if(e!==Mn||!Tt(Bn,n)||Tt(Gn,n)){var o=kn(e,n);return!o||!Tt(Bn,n)||Tt(e,xn)&&e[xn][n]||(o.enumerable=!0),o}},Yn=function(t){var r=Rn(Kt(t)),e=[];return Sn(r,(function(t){Tt(Bn,t)||Tt(Nr,t)||Nn(e,t)})),e},Xn=function(t){var r=t===Mn,e=Rn(r?Gn:Kt(t)),n=[];return Sn(e,(function(t){!Tt(Bn,t)||r&&!Tt(Mn,t)||Nn(n,Bn[t])})),n};tt||(Fn=function(){if(nt(In,this))throw Ln("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?yn(arguments[0]):void 0,r=Et(t),e=function(t){this===Mn&<(e,Gn,t),Tt(this,xn)&&Tt(this[xn],r)&&(this[xn][r]=!1),Vn(this,r,Ht(1,t))};return Ut&&Wn&&Vn(Mn,r,{configurable:!0,set:e}),$n(r,t)},In=Fn[An],Ce(In,"toString",(function(){return En(this).tag})),Ce(Fn,"withoutSetter",(function(t){return $n(Et(t),t)})),$t.f=qn,gr.f=Hn,ue.f=Kn,_r.f=Jn,Pe.f=hn.f=Yn,bn.f=Xn,Ie.f=function(t){return $n(Dt(t),t)},Ut&&gn(In,"description",{configurable:!0,get:function(){return En(this).description}})),$r({global:!0,constructor:!0,wrap:!0,forced:!tt,sham:!tt},{Symbol:Fn}),Sn(Hr(Un),(function(t){mn(t)})),$r({target:Pn,stat:!0,forced:!tt},{useSetter:function(){Wn=!0},useSimple:function(){Wn=!1}}),$r({target:"Object",stat:!0,forced:!tt,sham:!Ut},{create:function(t,r){return void 0===r?dn(t):Kn(dn(t),r)},defineProperty:Hn,defineProperties:Kn,getOwnPropertyDescriptor:Jn}),$r({target:"Object",stat:!0,forced:!tt},{getOwnPropertyNames:Yn}),_n(),wn(Fn,Pn),Nr[xn]=!0;var Qn=tt&&!!Symbol.for&&!!Symbol.keyFor,Zn=At("string-to-symbol-registry"),to=At("symbol-to-string-registry");$r({target:"Symbol",stat:!0,forced:!Qn},{for:function(t){var r=yn(t);if(Tt(Zn,r))return Zn[r];var e=et("Symbol")(r);return Zn[r]=e,to[e]=r,e}});var ro=At("symbol-to-string-registry");$r({target:"Symbol",stat:!0,forced:!Qn},{keyFor:function(t){if(!Lt(t))throw TypeError(ct(t)+" is not a symbol");if(Tt(ro,t))return ro[t]}});var eo=g([].slice),no=g([].push),oo=eo,io=function(t){if(N(t))return t;if(on(t)){for(var r=t.length,e=[],n=0;n<r;n++){var o=t[n];"string"==typeof o?no(e,o):"number"!=typeof o&&"Number"!==w(o)&&"String"!==w(o)||no(e,yn(o))}var i=e.length,a=!0;return function(t,r){if(a)return a=!1,r;if(on(this))return r;for(var n=0;n<i;n++)if(e[n]===t)return r}}},ao=String,uo=et("JSON","stringify"),co=g(/./.exec),fo=g("".charAt),so=g("".charCodeAt),lo=g("".replace),po=g(1..toString),vo=/[\uD800-\uDFFF]/g,yo=/^[\uD800-\uDBFF]$/,ho=/^[\uDC00-\uDFFF]$/,bo=!tt||u((function(){var t=et("Symbol")("stringify detection");return"[null]"!==uo([t])||"{}"!==uo({a:t})||"{}"!==uo(Object(t))})),go=u((function(){return'"\\udf06\\ud834"'!==uo("\udf06\ud834")||'"\\udead"'!==uo("\udead")})),mo=function(t,r){var e=oo(arguments),n=io(r);if(N(n)||void 0!==t&&!Lt(t))return e[1]=function(t,r){if(N(n)&&(r=lt(n,this,ao(t),r)),!Lt(r))return r},mr(uo,null,e)},_o=function(t,r,e){var n=fo(e,r-1),o=fo(e,r+1);return co(yo,t)&&!co(ho,o)||co(ho,t)&&!co(yo,n)?"\\u"+po(so(t,0),16):t};uo&&$r({target:"JSON",stat:!0,arity:3,forced:bo||go},{stringify:function(t,r,e){var n=oo(arguments),o=mr(bo?mo:uo,null,n);return go&&"string"==typeof o?lo(o,vo,_o):o}});var wo=!tt||u((function(){bn.f(1)}));$r({target:"Object",stat:!0,forced:wo},{getOwnPropertySymbols:function(t){var r=bn.f;return r?r(wt(t)):[]}});var Oo=U.Object.getOwnPropertySymbols,jo=Dt("species"),So=function(t){return X>=51||!u((function(){var r=[];return(r.constructor={})[jo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},xo=jn.filter,Po=So("filter");$r({target:"Array",proto:!0,forced:!Po},{filter:function(t){return xo(this,t,arguments.length>1?arguments[1]:void 0)}});var Ao=function(t){return U[t+"Prototype"]},To=Ao("Array").filter,Eo=Array.prototype,Mo=function(t){var r=t.filter;return t===Eo||nt(Eo,t)&&r===Eo.filter?To:r},Fo=_r.f,Io=!Ut||u((function(){Fo(1)}));$r({target:"Object",stat:!0,forced:Io,sham:!Ut},{getOwnPropertyDescriptor:function(t,r){return Fo(Kt(t),r)}});var Lo,Co,ko,Do=e((function(t){var r=U.Object,e=t.exports=function(t,e){return r.getOwnPropertyDescriptor(t,e)};r.getOwnPropertyDescriptor.sham&&(e.sham=!0)})),Ro=Do,zo=Function.prototype,No=Ut&&Object.getOwnPropertyDescriptor,Bo=Tt(zo,"name"),Go={EXISTS:Bo,PROPER:Bo&&"something"===function(){}.name,CONFIGURABLE:Bo&&(!Ut||Ut&&No(zo,"name").configurable)},Uo=!u((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wo=fe("IE_PROTO"),Vo=Object,$o=Vo.prototype,Ho=Uo?Vo.getPrototypeOf:function(t){var r=wt(t);if(Tt(r,Wo))return r[Wo];var e=r.constructor;return N(e)&&r instanceof e?e.prototype:r instanceof Vo?$o:null},Ko=Dt("iterator"),qo=!1;[].keys&&("next"in(ko=[].keys())?(Co=Ho(Ho(ko)))!==Object.prototype&&(Lo=Co):qo=!0);var Jo=!pt(Lo)||u((function(){var t={};return Lo[Ko].call(t)!==t}));Lo=Jo?{}:dn(Lo),N(Lo[Ko])||Ce(Lo,Ko,(function(){return this}));var Yo={IteratorPrototype:Lo,BUGGY_SAFARI_ITERATORS:qo},Xo={},Qo=Yo.IteratorPrototype,Zo=function(){return this},ti=String,ri=TypeError,ei=function(t,r,e){try{return g(st(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}},ni=function(t){if("object"==typeof t||N(t))return t;throw ri("Can't set "+ti(t)+" as a prototype")},oi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=ei(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return lr(e),ni(n),r?t(e,n):e.__proto__=n,e}}():void 0),ii=function(t,r,e,n){var o=r+" Iterator";return t.prototype=dn(Qo,{next:Ht(+!n,e)}),wn(t,o,!1,!0),Xo[o]=Zo,t},ai=oi,ui=Go.PROPER,ci=Yo.BUGGY_SAFARI_ITERATORS,fi=Dt("iterator"),si="keys",li="values",pi="entries",vi=function(){return this},yi=function(){},di=function(t,r,e,n,o,i,a){ii(e,r,n);var u,c,f,s=function(t){if(t===o&&d)return d;if(!ci&&t in v)return v[t];switch(t){case si:case li:case pi:return function(){return new e(this,t)}}return function(){return new e(this)}},l=r+" Iterator",p=!1,v=t.prototype,y=v[fi]||v["@@iterator"]||o&&v[o],d=!ci&&y||s(o),h="Array"===r&&v.entries||y;if(h&&(u=Ho(h.call(new t)))!==Object.prototype&&u.next&&(wn(u,l,!0,!0),Xo[l]=vi),ui&&o===li&&y&&y.name!==li&&(p=!0,d=function(){return lt(y,this)}),o)if(c={values:s(li),keys:i?d:s(si),entries:s(pi)},a)for(f in c)(ci||p||!(f in v))&&Ce(v,f,c[f]);else $r({target:r,proto:!0,forced:ci||p},c);return a&&v[fi]!==d&&Ce(v,fi,d,{name:o}),Xo[r]=d,c},hi=function(t,r){return{value:t,done:r}},bi=(gr.f,"Array Iterator"),gi=On.set,mi=On.getterFor(bi);di(Array,"Array",(function(t,r){gi(this,{type:bi,target:Kt(t),index:0,kind:r})}),(function(){var t=mi(this),r=t.target,e=t.kind,n=t.index++;if(!r||n>=r.length)return t.target=void 0,hi(void 0,!0);switch(e){case"keys":return hi(n,!1);case"values":return hi(r[n],!1)}return hi([n,r[n]],!1)}),"values");Xo.Arguments=Xo.Array;yi(),yi(),yi();var _i={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},wi=Dt("toStringTag");for(var Oi in _i){var ji=W[Oi],Si=ji&&ji.prototype;Si&&re(Si)!==wi&&jr(Si,wi,Oi),Xo[Oi]=Xo.Array}var xi=function(t,r){var e=[][t];return!!e&&u((function(){e.call(null,r||function(){return 1},1)}))},Pi=jn.forEach,Ai=xi("forEach")?[].forEach:function(t){return Pi(this,t,arguments.length>1?arguments[1]:void 0)};$r({target:"Array",proto:!0,forced:[].forEach!==Ai},{forEach:Ai});var Ti=Ao("Array").forEach,Ei=Array.prototype,Mi={DOMTokenList:!0,NodeList:!0},Fi=function(t){var r=t.forEach;return t===Ei||nt(Ei,t)&&r===Ei.forEach||Tt(Mi,re(t))?Ti:r},Ii=g([].concat),Li=et("Reflect","ownKeys")||function(t){var r=Pe.f(lr(t)),e=bn.f;return e?Ii(r,e(t)):r},Ci=Li;$r({target:"Object",stat:!0,sham:!Ut},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Kt(t),o=_r.f,i=Ci(n),a={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&je(a,r,e);return a}});var ki=U.Object.getOwnPropertyDescriptors,Di=ue.f;$r({target:"Object",stat:!0,forced:Object.defineProperties!==Di,sham:!Ut},{defineProperties:Di});var Ri=e((function(t){var r=U.Object,e=t.exports=function(t,e){return r.defineProperties(t,e)};r.defineProperties.sham&&(e.sham=!0)})),zi=Ri,Ni=gr.f;$r({target:"Object",stat:!0,forced:Object.defineProperty!==Ni,sham:!Ut},{defineProperty:Ni});var Bi=e((function(t){var r=U.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)})),Gi=Bi,Ui=Gi,Wi=Function,Vi=g([].concat),$i=g([].join),Hi={},Ki=f?Wi.bind:function(t){var r=st(this),e=r.prototype,n=oo(arguments,1),o=function(){var e=Vi(n,oo(arguments));return this instanceof o?function(t,r,e){if(!Tt(Hi,r)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";Hi[r]=Wi("C,a","return new C("+$i(n,",")+")")}return Hi[r](t,e)}(r,e.length,e):r.apply(t,e)};return pt(e)&&(o.prototype=e),o},qi=Ki;$r({target:"Function",proto:!0,forced:Function.bind!==qi},{bind:qi});var Ji=Ao("Function").bind,Yi=Function.prototype,Xi=function(t){var r=t.bind;return t===Yi||nt(Yi,t)&&r===Yi.bind?Ji:r},Qi=TypeError,Zi=function(t){if(an(t))return t;throw Qi(ct(t)+" is not a constructor")},ta=et("Reflect","construct"),ra=Object.prototype,ea=[].push,na=u((function(){function t(){}return!(ta((function(){}),[],t)instanceof t)})),oa=!u((function(){ta((function(){}))})),ia=na||oa;$r({target:"Reflect",stat:!0,forced:ia,sham:ia},{construct:function(t,r){Zi(t),lr(r);var e=arguments.length<3?t:Zi(arguments[2]);if(oa&&!na)return ta(t,r,e);if(t===e){switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3])}var n=[null];return mr(ea,n,r),new(mr(qi,t,n))}var o=e.prototype,i=dn(pt(o)?o:ra),a=mr(t,i,r);return pt(a)?a:i}});var aa=U.Reflect.construct,ua=TypeError,ca=Object.getOwnPropertyDescriptor,fa=Ut&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),sa=TypeError,la=fa?function(t,r){if(on(t)&&!ca(t,"length").writable)throw ua("Cannot set read only .length");return t.length=r}:function(t,r){return t.length=r},pa=function(t){if(t>9007199254740991)throw sa("Maximum allowed index exceeded");return t},va=u((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();$r({target:"Array",proto:!0,arity:1,forced:va},{push:function(t){var r=wt(this),e=Dr(r),n=arguments.length;pa(e+n);for(var o=0;o<n;o++)r[e]=arguments[o],e++;return la(r,e),e}});var ya=Ao("Array").push,da=Array.prototype,ha=function(t){var r=t.push;return t===da||nt(da,t)&&r===da.push?ya:r};$r({target:"Object",stat:!0},{setPrototypeOf:ai});var ba=U.Object.setPrototypeOf,ga=Xi,ma=e((function(t){function r(e,n){var o;return t.exports=r=ba?ga(o=ba).call(o):function(t,r){return t.__proto__=r,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(ma);var _a=aa,wa=e((function(t){t.exports=function(){if("undefined"==typeof Reflect||!_a)return!1;if(_a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(_a(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports}));r(wa);var Oa,ja=ha,Sa=e((function(t){function r(e,n,o){var i;wa()?(t.exports=r=ga(i=_a).call(i),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=r=function(t,r,e){var n=[null];ja(n).apply(n,r);var o=new(ga(Function).apply(t,n));return e&&ma(o,e.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports);return r.apply(null,arguments)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})),xa=r(Sa),Pa=r(e((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),Aa=Gi,Ta=Dt("isConcatSpreadable"),Ea=X>=51||!u((function(){var t=[];return t[Ta]=!1,t.concat()[0]!==t})),Ma=function(t){if(!pt(t))return!1;var r=t[Ta];return void 0!==r?!!r:on(t)},Fa=!Ea||!So("concat");$r({target:"Array",proto:!0,arity:1,forced:Fa},{concat:function(t){var r,e,n,o,i,a=wt(this),u=sn(a,0),c=0;for(r=-1,n=arguments.length;r<n;r++)if(Ma(i=-1===r?a:arguments[r]))for(o=Dr(i),pa(c+o),e=0;e<o;e++,c++)e in i&&je(u,c,i[e]);else pa(c+1),je(u,c++,i);return u.length=c,u}}),mn("asyncIterator"),mn("hasInstance"),mn("isConcatSpreadable"),mn("iterator"),mn("match"),mn("matchAll"),mn("replace"),mn("search"),mn("species"),mn("split"),mn("toPrimitive"),_n(),mn("toStringTag"),wn(et("Symbol"),"Symbol"),mn("unscopables"),wn(W.JSON,"JSON",!0),(Oa=Object.freeze({__proto__:null}))&&Oa.default;var Ia=U.Symbol,La=gr.f,Ca=Dt("metadata"),ka=Function.prototype;void 0===ka[Ca]&&La(ka,Ca,{value:null}),mn("asyncDispose"),mn("dispose"),mn("metadata");var Da=Ia,Ra=et("Symbol"),za=Ra.keyFor,Na=g(Ra.prototype.valueOf),Ba=Ra.isRegisteredSymbol||function(t){try{return void 0!==za(Na(t))}catch(t){return!1}};$r({target:"Symbol",stat:!0},{isRegisteredSymbol:Ba});for(var Ga=et("Symbol"),Ua=Ga.isWellKnownSymbol,Wa=et("Object","getOwnPropertyNames"),Va=g(Ga.prototype.valueOf),$a=At("wks"),Ha=0,Ka=Wa(Ga),qa=Ka.length;Ha<qa;Ha++)try{var Ja=Ka[Ha];Lt(Ga[Ja])&&Dt(Ja)}catch(t){}var Ya=function(t){if(Ua&&Ua(t))return!0;try{for(var r=Va(t),e=0,n=Wa($a),o=n.length;e<o;e++)if($a[n[e]]==r)return!0}catch(t){}return!1};$r({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:Ya}),mn("matcher"),mn("observable"),$r({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:Ba}),$r({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:Ya}),mn("metadataKey"),mn("patternMatch"),mn("replaceAll");var Xa=Da,Qa=g("".charAt),Za=g("".charCodeAt),tu=g("".slice),ru=function(t){return function(r,e){var n,o,i=yn(z(r)),a=Mr(e),u=i.length;return a<0||a>=u?t?"":void 0:(n=Za(i,a))<55296||n>56319||a+1===u||(o=Za(i,a+1))<56320||o>57343?t?Qa(i,a):n:t?tu(i,a,a+2):o-56320+(n-55296<<10)+65536}},eu={codeAt:ru(!1),charAt:ru(!0)}.charAt,nu="String Iterator",ou=On.set,iu=On.getterFor(nu);di(String,"String",(function(t){ou(this,{type:nu,string:yn(t),index:0})}),(function(){var t,r=iu(this),e=r.string,n=r.index;return n>=e.length?hi(void 0,!0):(t=eu(e,n),r.index+=t.length,hi(t,!1))}));var au=Ie.f("iterator"),uu=Xa,cu=au,fu=e((function(t){function r(e){return t.exports=r="function"==typeof uu&&"symbol"==typeof cu?function(t){return typeof t}:function(t){return t&&"function"==typeof uu&&t.constructor===uu&&t!==uu.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}));r(fu);var su=Ie.f("toPrimitive"),lu=e((function(t){var r=fu.default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[su];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(lu);var pu=e((function(t){var r=fu.default;t.exports=function(t){var e=lu(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports}));r(pu);var vu=Aa,yu=e((function(t){function r(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),vu(t,pu(n.key),n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),vu(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports})),du=r(yu),hu=r(e((function(t){t.exports=function(t,r,e){return(r=pu(r))in t?vu(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),bu=Ao("Array").concat,gu=Array.prototype,mu=function(t){var r=t.concat;return t===gu||nt(gu,t)&&r===gu.concat?bu:r};var _u=function(){this.__data__=[],this.size=0};var wu=function(t,r){return t===r||t!=t&&r!=r};var Ou=function(t,r){for(var e=t.length;e--;)if(wu(t[e][0],r))return e;return-1},ju=Array.prototype.splice;var Su=function(t){var r=this.__data__,e=Ou(r,t);return!(e<0)&&(e==r.length-1?r.pop():ju.call(r,e,1),--this.size,!0)};var xu=function(t){var r=this.__data__,e=Ou(r,t);return e<0?void 0:r[e][1]};var Pu=function(t){return Ou(this.__data__,t)>-1};var Au=function(t,r){var e=this.__data__,n=Ou(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function Tu(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Tu.prototype.clear=_u,Tu.prototype.delete=Su,Tu.prototype.get=xu,Tu.prototype.has=Pu,Tu.prototype.set=Au;var Eu=Tu;var Mu=function(){this.__data__=new Eu,this.size=0};var Fu=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};var Iu=function(t){return this.__data__.get(t)};var Lu=function(t){return this.__data__.has(t)},Cu="object"==typeof t&&t&&t.Object===Object&&t,ku="object"==typeof self&&self&&self.Object===Object&&self,Du=Cu||ku||Function("return this")(),Ru=Du.Symbol,zu=Object.prototype,Nu=zu.hasOwnProperty,Bu=zu.toString,Gu=Ru?Ru.toStringTag:void 0;var Uu=function(t){var r=Nu.call(t,Gu),e=t[Gu];try{t[Gu]=void 0;var n=!0}catch(t){}var o=Bu.call(t);return n&&(r?t[Gu]=e:delete t[Gu]),o},Wu=Object.prototype.toString;var Vu=function(t){return Wu.call(t)},$u=Ru?Ru.toStringTag:void 0;var Hu=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":$u&&$u in Object(t)?Uu(t):Vu(t)};var Ku=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var qu=function(t){if(!Ku(t))return!1;var r=Hu(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},Ju=Du["__core-js_shared__"],Yu=function(){var t=/[^.]+$/.exec(Ju&&Ju.keys&&Ju.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Xu=function(t){return!!Yu&&Yu in t},Qu=Function.prototype.toString;var Zu=function(t){if(null!=t){try{return Qu.call(t)}catch(t){}try{return t+""}catch(t){}}return""},tc=/^\[object .+?Constructor\]$/,rc=Function.prototype,ec=Object.prototype,nc=rc.toString,oc=ec.hasOwnProperty,ic=RegExp("^"+nc.call(oc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ac=function(t){return!(!Ku(t)||Xu(t))&&(qu(t)?ic:tc).test(Zu(t))};var uc=function(t,r){return null==t?void 0:t[r]};var cc=function(t,r){var e=uc(t,r);return ac(e)?e:void 0},fc=cc(Du,"Map"),sc=cc(Object,"create");var lc=function(){this.__data__=sc?sc(null):{},this.size=0};var pc=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},vc=Object.prototype.hasOwnProperty;var yc=function(t){var r=this.__data__;if(sc){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return vc.call(r,t)?r[t]:void 0},dc=Object.prototype.hasOwnProperty;var hc=function(t){var r=this.__data__;return sc?void 0!==r[t]:dc.call(r,t)};var bc=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=sc&&void 0===r?"__lodash_hash_undefined__":r,this};function gc(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}gc.prototype.clear=lc,gc.prototype.delete=pc,gc.prototype.get=yc,gc.prototype.has=hc,gc.prototype.set=bc;var mc=gc;var _c=function(){this.size=0,this.__data__={hash:new mc,map:new(fc||Eu),string:new mc}};var wc=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var Oc=function(t,r){var e=t.__data__;return wc(r)?e["string"==typeof r?"string":"hash"]:e.map};var jc=function(t){var r=Oc(this,t).delete(t);return this.size-=r?1:0,r};var Sc=function(t){return Oc(this,t).get(t)};var xc=function(t){return Oc(this,t).has(t)};var Pc=function(t,r){var e=Oc(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function Ac(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Ac.prototype.clear=_c,Ac.prototype.delete=jc,Ac.prototype.get=Sc,Ac.prototype.has=xc,Ac.prototype.set=Pc;var Tc=Ac;var Ec=function(t,r){var e=this.__data__;if(e instanceof Eu){var n=e.__data__;if(!fc||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Tc(n)}return e.set(t,r),this.size=e.size,this};function Mc(t){var r=this.__data__=new Eu(t);this.size=r.size}Mc.prototype.clear=Mu,Mc.prototype.delete=Fu,Mc.prototype.get=Iu,Mc.prototype.has=Lu,Mc.prototype.set=Ec;var Fc=Mc,Ic=function(){try{var t=cc(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Lc=function(t,r,e){"__proto__"==r&&Ic?Ic(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var Cc=function(t,r,e){(void 0!==e&&!wu(t[r],e)||void 0===e&&!(r in t))&&Lc(t,r,e)};var kc=function(t){return function(r,e,n){for(var o=-1,i=Object(r),a=n(r),u=a.length;u--;){var c=a[t?u:++o];if(!1===e(i[c],c,i))break}return r}}(),Dc=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?Du.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=i?i(e):new t.constructor(e);return t.copy(n),n}})),Rc=Du.Uint8Array;var zc=function(t){var r=new t.constructor(t.byteLength);return new Rc(r).set(new Rc(t)),r};var Nc=function(t,r){var e=r?zc(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var Bc=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r},Gc=Object.create,Uc=function(){function t(){}return function(r){if(!Ku(r))return{};if(Gc)return Gc(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();var Wc=function(t,r){return function(e){return t(r(e))}}(Object.getPrototypeOf,Object),Vc=Object.prototype;var $c=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||Vc)};var Hc=function(t){return"function"!=typeof t.constructor||$c(t)?{}:Uc(Wc(t))};var Kc=function(t){return null!=t&&"object"==typeof t};var qc=function(t){return Kc(t)&&"[object Arguments]"==Hu(t)},Jc=Object.prototype,Yc=Jc.hasOwnProperty,Xc=Jc.propertyIsEnumerable,Qc=qc(function(){return arguments}())?qc:function(t){return Kc(t)&&Yc.call(t,"callee")&&!Xc.call(t,"callee")},Zc=Qc,tf=Array.isArray;var rf=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ef=function(t){return null!=t&&rf(t.length)&&!qu(t)};var nf=function(t){return Kc(t)&&ef(t)};var of=function(){return!1},af=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?Du.Buffer:void 0,i=(o?o.isBuffer:void 0)||of;t.exports=i})),uf=Function.prototype,cf=Object.prototype,ff=uf.toString,sf=cf.hasOwnProperty,lf=ff.call(Object);var pf=function(t){if(!Kc(t)||"[object Object]"!=Hu(t))return!1;var r=Wc(t);if(null===r)return!0;var e=sf.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&ff.call(e)==lf},vf={};vf["[object Float32Array]"]=vf["[object Float64Array]"]=vf["[object Int8Array]"]=vf["[object Int16Array]"]=vf["[object Int32Array]"]=vf["[object Uint8Array]"]=vf["[object Uint8ClampedArray]"]=vf["[object Uint16Array]"]=vf["[object Uint32Array]"]=!0,vf["[object Arguments]"]=vf["[object Array]"]=vf["[object ArrayBuffer]"]=vf["[object Boolean]"]=vf["[object DataView]"]=vf["[object Date]"]=vf["[object Error]"]=vf["[object Function]"]=vf["[object Map]"]=vf["[object Number]"]=vf["[object Object]"]=vf["[object RegExp]"]=vf["[object Set]"]=vf["[object String]"]=vf["[object WeakMap]"]=!1;var yf=function(t){return Kc(t)&&rf(t.length)&&!!vf[Hu(t)]};var df=function(t){return function(r){return t(r)}},hf=e((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&Cu.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),bf=hf&&hf.isTypedArray,gf=bf?df(bf):yf;var mf=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},_f=Object.prototype.hasOwnProperty;var wf=function(t,r,e){var n=t[r];_f.call(t,r)&&wu(n,e)&&(void 0!==e||r in t)||Lc(t,r,e)};var Of=function(t,r,e,n){var o=!e;e||(e={});for(var i=-1,a=r.length;++i<a;){var u=r[i],c=n?n(e[u],t[u],u,e,t):void 0;void 0===c&&(c=t[u]),o?Lc(e,u,c):wf(e,u,c)}return e};var jf=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n},Sf=/^(?:0|[1-9]\d*)$/;var xf=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&Sf.test(t))&&t>-1&&t%1==0&&t<r},Pf=Object.prototype.hasOwnProperty;var Af=function(t,r){var e=tf(t),n=!e&&Zc(t),o=!e&&!n&&af(t),i=!e&&!n&&!o&&gf(t),a=e||n||o||i,u=a?jf(t.length,String):[],c=u.length;for(var f in t)!r&&!Pf.call(t,f)||a&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||xf(f,c))||u.push(f);return u};var Tf=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r},Ef=Object.prototype.hasOwnProperty;var Mf=function(t){if(!Ku(t))return Tf(t);var r=$c(t),e=[];for(var n in t)("constructor"!=n||!r&&Ef.call(t,n))&&e.push(n);return e};var Ff=function(t){return ef(t)?Af(t,!0):Mf(t)};var If=function(t){return Of(t,Ff(t))};var Lf=function(t,r,e,n,o,i,a){var u=mf(t,e),c=mf(r,e),f=a.get(c);if(f)Cc(t,e,f);else{var s=i?i(u,c,e+"",t,r,a):void 0,l=void 0===s;if(l){var p=tf(c),v=!p&&af(c),y=!p&&!v&&gf(c);s=c,p||v||y?tf(u)?s=u:nf(u)?s=Bc(u):v?(l=!1,s=Dc(c,!0)):y?(l=!1,s=Nc(c,!0)):s=[]:pf(c)||Zc(c)?(s=u,Zc(u)?s=If(u):Ku(u)&&!qu(u)||(s=Hc(c))):l=!1}l&&(a.set(c,s),o(s,c,n,i,a),a.delete(c)),Cc(t,e,s)}};var Cf=function t(r,e,n,o,i){r!==e&&kc(e,(function(a,u){if(i||(i=new Fc),Ku(a))Lf(r,e,u,n,t,o,i);else{var c=o?o(mf(r,u),a,u+"",r,e,i):void 0;void 0===c&&(c=a),Cc(r,u,c)}}),Ff)};var kf=function(t){return t};var Df=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},Rf=Math.max;var zf=function(t,r,e){return r=Rf(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,i=Rf(n.length-r,0),a=Array(i);++o<i;)a[o]=n[r+o];o=-1;for(var u=Array(r+1);++o<r;)u[o]=n[o];return u[r]=e(a),Df(t,this,u)}};var Nf=function(t){return function(){return t}},Bf=Ic?function(t,r){return Ic(t,"toString",{configurable:!0,enumerable:!1,value:Nf(r),writable:!0})}:kf,Gf=Date.now;var Uf=function(t){var r=0,e=0;return function(){var n=Gf(),o=16-(n-e);if(e=n,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},Wf=Uf(Bf);var Vf=function(t,r){return Wf(zf(t,r,kf),t+"")};var $f=function(t,r,e){if(!Ku(e))return!1;var n=typeof r;return!!("number"==n?ef(e)&&xf(r,e.length):"string"==n&&r in e)&&wu(e[r],t)};var Hf=function(t){return Vf((function(r,e){var n=-1,o=e.length,i=o>1?e[o-1]:void 0,a=o>2?e[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&$f(e[0],e[1],a)&&(i=o<3?void 0:i,o=1),r=Object(r);++n<o;){var u=e[n];u&&t(r,u,n,i)}return r}))}((function(t,r,e,n){Cf(t,r,e,n)}));function Kf(t,r){var e=qr(t);if(Oo){var n=Oo(t);r&&(n=Mo(n).call(n,(function(r){return Ro(t,r).enumerable}))),e.push.apply(e,n)}return e}function qf(t){for(var r=1;r<arguments.length;r++){var e,n,o=null!=arguments[r]?arguments[r]:{};r%2?Fi(e=Kf(Object(o),!0)).call(e,(function(r){hu(t,r,o[r])})):ki?zi(t,ki(o)):Fi(n=Kf(Object(o))).call(n,(function(r){Ui(t,r,Ro(o,r))}))}return t}var Jf={theme:"default",altFontFamily:"sans-serif",fontFamily:"sans-serif",themeCSS:".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }",flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},startOnLoad:!1,logLevel:5},Yf=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Pa(this,t),hu(this,"mermaidAPIRefs",null),hu(this,"options",Jf),hu(this,"dom",null),hu(this,"mermaidCanvas",null);var e=r.mermaid,n=r.mermaidAPI;if(!(n||window.mermaidAPI||e&&e.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=qf(qf({},Jf),r||{}),this.mermaidAPIRefs=n||window.mermaidAPI||e.mermaidAPI||window.mermaid.mermaidAPI,delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return du(t,[{key:"mountMermaidCanvas",value:function(t){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(t.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(t,r){var e,n=new DOMParser,o=function(t){return t.replace("<svg ",'<svg style="max-width:100%;height:auto;font-family:sans-serif;" ')};try{var i=n.parseFromString(t,"image/svg+xml"),a=i.documentElement;if("svg"===a.tagName.toLowerCase()){a.style.maxWidth="100%",a.style.height="auto",a.style.fontFamily="sans-serif";var u,c=document.getElementById(r).getBBox();if(a.hasAttribute("viewBox"))c=a.viewBox.baseVal;else a.setAttribute("viewBox",mu(u="0 0 ".concat(c.width," ")).call(u,c.height));if("100%"===a.getAttribute("width")&&a.setAttribute("width","".concat(c.width)),"100%"===a.getAttribute("height")&&a.setAttribute("height","".concat(c.height)),e=i.documentElement.outerHTML,this.svg2img){var f,s="data:image/svg+xml,".concat(encodeURIComponent(i.documentElement.outerHTML));e=mu(f='<img class="svg-img" src="'.concat(s,'" alt="')).call(f,r,'" />')}}else e=o(t)}catch(r){e=o(t)}return e}},{key:"render",value:function(t,r,e){var n,o,i,a=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=r;c||(c=Math.round(1e8*Math.random())),this.mountMermaidCanvas(e);var f=mu(n="mermaid-".concat(c,"-")).call(n,(new Date).getTime());this.svg2img=null!==(o=null==u?void 0:u.svg2img)&&void 0!==o&&o;try{this.mermaidAPIRefs.render(f,t,(function(t){var r=t.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/<br>/g,"<br/>");i=a.convertMermaidSvgToImg(r,f)}),this.mermaidCanvas)}catch(t){return null==t?void 0:t.str}return i}}],[{key:"install",value:function(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];Hf(r,{engine:{syntax:{codeBlock:{customRenderer:{mermaid:xa(t,n)}}}}})}}]),t}();return hu(Yf,"TYPE","figure"),Yf}));