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