UNPKG

react-simple-clamp

Version:

React clamping component, supporting both text and html inline content.

1 lines 60.4 kB
import e,{useRef as t,useState as n,useLayoutEffect as r,useEffect as o,Fragment as i}from"react";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}function u(e){return e&&e.default||e}var l,s,f=function(e){return e&&e.Math==Math&&e},p=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof a&&a)||function(){return this}()||Function("return this")(),d=function(e){try{return!!e()}catch(e){return!0}},h=!d((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),m=Function.prototype,y=m.apply,g=m.call,v="object"==typeof Reflect&&Reflect.apply||(h?g.bind(y):function(){return g.apply(y,arguments)}),b=Function.prototype,x=b.bind,w=b.call,S=h&&x.bind(w,w),O=h?function(e){return e&&S(e)}:function(e){return e&&function(){return w.apply(e,arguments)}},E=function(e){return"function"==typeof e},T=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=Function.prototype.call,C=h?k.bind(k):function(){return k.apply(k,arguments)},A={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,j={f:P&&!A.call({1:2},1)?function(e){var t=P(this,e);return!!t&&t.enumerable}:A},_=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=O({}.toString),M=O("".slice),I=function(e){return M(N(e),8,-1)},D=Object,L=O("".split),F=d((function(){return!D("z").propertyIsEnumerable(0)}))?function(e){return"String"==I(e)?L(e,""):D(e)}:D,R=TypeError,z=function(e){if(null==e)throw R("Can't call method on "+e);return e},B=function(e){return F(z(e))},H=function(e){return"object"==typeof e?null!==e:E(e)},V={},U=function(e){return E(e)?e:void 0},G=function(e,t){return arguments.length<2?U(V[e])||U(p[e]):V[e]&&V[e][t]||p[e]&&p[e][t]},W=O({}.isPrototypeOf),q=G("navigator","userAgent")||"",X=p.process,Y=p.Deno,$=X&&X.versions||Y&&Y.version,Z=$&&$.v8;Z&&(s=(l=Z.split("."))[0]>0&&l[0]<4?1:+(l[0]+l[1])),!s&&q&&(!(l=q.match(/Edge\/(\d+)/))||l[1]>=74)&&(l=q.match(/Chrome\/(\d+)/))&&(s=+l[1]);var J=s,K=!!Object.getOwnPropertySymbols&&!d((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J&&J<41})),Q=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=Object,te=Q?function(e){return"symbol"==typeof e}:function(e){var t=G("Symbol");return E(t)&&W(t.prototype,ee(e))},ne=String,re=function(e){try{return ne(e)}catch(e){return"Object"}},oe=TypeError,ie=function(e){if(E(e))return e;throw oe(re(e)+" is not a function")},ae=function(e,t){var n=e[t];return null==n?void 0:ie(n)},ce=TypeError,ue=Object.defineProperty,le=p["__core-js_shared__"]||function(e,t){try{ue(p,e,{value:t,configurable:!0,writable:!0})}catch(n){p[e]=t}return t}("__core-js_shared__",{}),se=c((function(e){(e.exports=function(e,t){return le[e]||(le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),fe=Object,pe=function(e){return fe(z(e))},de=O({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return de(pe(e),t)},me=0,ye=Math.random(),ge=O(1..toString),ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ge(++me+ye,36)},be=se("wks"),xe=p.Symbol,we=xe&&xe.for,Se=Q?xe:xe&&xe.withoutSetter||ve,Oe=function(e){if(!he(be,e)||!K&&"string"!=typeof be[e]){var t="Symbol."+e;K&&he(xe,e)?be[e]=xe[e]:be[e]=Q&&we?we(t):Se(t)}return be[e]},Ee=TypeError,Te=Oe("toPrimitive"),ke=function(e,t){if(!H(e)||te(e))return e;var n,r=ae(e,Te);if(r){if(void 0===t&&(t="default"),n=C(r,e,t),!H(n)||te(n))return n;throw Ee("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&E(n=e.toString)&&!H(r=C(n,e)))return r;if(E(n=e.valueOf)&&!H(r=C(n,e)))return r;if("string"!==t&&E(n=e.toString)&&!H(r=C(n,e)))return r;throw ce("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=ke(e,"string");return te(t)?t:t+""},Ae=p.document,Pe=H(Ae)&&H(Ae.createElement),je=function(e){return Pe?Ae.createElement(e):{}},_e=!T&&!d((function(){return 7!=Object.defineProperty(je("div"),"a",{get:function(){return 7}}).a})),Ne=Object.getOwnPropertyDescriptor,Me={f:T?Ne:function(e,t){if(e=B(e),t=Ce(t),_e)try{return Ne(e,t)}catch(e){}if(he(e,t))return _(!C(j.f,e,t),e[t])}},Ie=/#|\.prototype\./,De=function(e,t){var n=Fe[Le(e)];return n==ze||n!=Re&&(E(t)?d(t):!!t)},Le=De.normalize=function(e){return String(e).replace(Ie,".").toLowerCase()},Fe=De.data={},Re=De.NATIVE="N",ze=De.POLYFILL="P",Be=De,He=O(O.bind),Ve=function(e,t){return ie(e),void 0===t?e:h?He(e,t):function(){return e.apply(t,arguments)}},Ue=T&&d((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ge=String,We=TypeError,qe=function(e){if(H(e))return e;throw We(Ge(e)+" is not an object")},Xe=TypeError,Ye=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ze={f:T?Ue?function(e,t,n){if(qe(e),t=Ce(t),qe(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=$e(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Ye(e,t,n)}:Ye:function(e,t,n){if(qe(e),t=Ce(t),qe(n),_e)try{return Ye(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Xe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Je=T?function(e,t,n){return Ze.f(e,t,_(1,n))}:function(e,t,n){return e[t]=n,e},Ke=Me.f,Qe=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return v(e,this,arguments)};return t.prototype=e.prototype,t},et=function(e,t){var n,r,o,i,a,c,u,l,s=e.target,f=e.global,d=e.stat,h=e.proto,m=f?p:d?p[s]:(p[s]||{}).prototype,y=f?V:V[s]||Je(V,s,{})[s],g=y.prototype;for(o in t)n=!Be(f?o:s+(d?".":"#")+o,e.forced)&&m&&he(m,o),a=y[o],n&&(c=e.dontCallGetSet?(l=Ke(m,o))&&l.value:m[o]),i=n&&c?c:t[o],n&&typeof a==typeof i||(u=e.bind&&n?Ve(i,p):e.wrap&&n?Qe(i):h&&E(i)?O(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Je(u,"sham",!0),Je(y,o,u),h&&(he(V,r=s+"Prototype")||Je(V,r,{}),Je(V[r],o,i),e.real&&g&&!g[o]&&Je(g,o,i)))},tt=Math.ceil,nt=Math.floor,rt=Math.trunc||function(e){var t=+e;return(t>0?nt:tt)(t)},ot=function(e){var t=+e;return t!=t||0===t?0:rt(t)},it=Math.max,at=Math.min,ct=function(e,t){var n=ot(e);return n<0?it(n+t,0):at(n,t)},ut=Math.min,lt=function(e){return(t=e.length)>0?ut(ot(t),9007199254740991):0;var t},st=function(e){return function(t,n,r){var o,i=B(t),a=lt(i),c=ct(r,a);if(e&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},ft={includes:st(!0),indexOf:st(!1)},pt={},dt=ft.indexOf,ht=O([].push),mt=function(e,t){var n,r=B(e),o=0,i=[];for(n in r)!he(pt,n)&&he(r,n)&&ht(i,n);for(;t.length>o;)he(r,n=t[o++])&&(~dt(i,n)||ht(i,n));return i},yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gt=Object.keys||function(e){return mt(e,yt)},vt={f:Object.getOwnPropertySymbols},bt=Object.assign,xt=Object.defineProperty,wt=O([].concat),St=!bt||d((function(){if(T&&1!==bt({b:1},bt(xt({},"a",{enumerable:!0,get:function(){xt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=bt({},e)[n]||"abcdefghijklmnopqrst"!=gt(bt({},t)).join("")}))?function(e,t){for(var n=pe(e),r=arguments.length,o=1,i=vt.f,a=j.f;r>o;)for(var c,u=F(arguments[o++]),l=i?wt(gt(u),i(u)):gt(u),s=l.length,f=0;s>f;)c=l[f++],T&&!C(a,u,c)||(n[c]=u[c]);return n}:bt;et({target:"Object",stat:!0,arity:2,forced:Object.assign!==St},{assign:St});var Ot=V.Object.assign,Et=O([].slice),Tt=Function,kt=O([].concat),Ct=O([].join),At={},Pt=function(e,t,n){if(!he(At,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";At[t]=Tt("C,a","return new C("+Ct(r,",")+")")}return At[t](e,n)},jt=h?Tt.bind:function(e){var t=ie(this),n=t.prototype,r=Et(arguments,1),o=function(){var n=kt(r,Et(arguments));return this instanceof o?Pt(t,n.length,n):t.apply(e,n)};return H(n)&&(o.prototype=n),o};et({target:"Function",proto:!0,forced:Function.bind!==jt},{bind:jt});var _t=function(e){return V[e+"Prototype"]},Nt=_t("Function").bind,Mt=Function.prototype,It=function(e){var t=e.bind;return e===Mt||W(Mt,e)&&t===Mt.bind?Nt:t},Dt=c((function(e){function t(){var n;return e.exports=t=Ot?It(n=Ot).call(n):function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),Lt={};Lt[Oe("toStringTag")]="z";var Ft,Rt="[object z]"===String(Lt),zt=Oe("toStringTag"),Bt=Object,Ht="Arguments"==I(function(){return arguments}()),Vt=Rt?I:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Bt(e),zt))?n:Ht?I(t):"Object"==(r=I(t))&&E(t.callee)?"Arguments":r},Ut=String,Gt=function(e){if("Symbol"===Vt(e))throw TypeError("Cannot convert a Symbol value to a string");return Ut(e)},Wt={f:T&&!Ue?Object.defineProperties:function(e,t){qe(e);for(var n,r=B(t),o=gt(t),i=o.length,a=0;i>a;)Ze.f(e,n=o[a++],r[n]);return e}},qt=G("document","documentElement"),Xt=se("keys"),Yt=function(e){return Xt[e]||(Xt[e]=ve(e))},$t=Yt("IE_PROTO"),Zt=function(){},Jt=function(e){return"<script>"+e+"<\/script>"},Kt=function(e){e.write(Jt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Qt=function(){try{Ft=new ActiveXObject("htmlfile")}catch(e){}var e,t;Qt="undefined"!=typeof document?document.domain&&Ft?Kt(Ft):((t=je("iframe")).style.display="none",qt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Jt("document.F=Object")),e.close(),e.F):Kt(Ft);for(var n=yt.length;n--;)delete Qt.prototype[yt[n]];return Qt()};pt[$t]=!0;var en=Object.create||function(e,t){var n;return null!==e?(Zt.prototype=qe(e),n=new Zt,Zt.prototype=null,n[$t]=e):n=Qt(),void 0===t?n:Wt.f(n,t)},tn=yt.concat("length","prototype"),nn={f:Object.getOwnPropertyNames||function(e){return mt(e,tn)}},rn=function(e,t,n){var r=Ce(t);r in e?Ze.f(e,r,_(0,n)):e[r]=n},on=Array,an=Math.max,cn=nn.f,un="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ln=function(e){try{return cn(e)}catch(e){return function(e,t,n){for(var r=lt(e),o=ct(t,r),i=ct(void 0===n?r:n,r),a=on(an(i-o,0)),c=0;o<i;o++,c++)rn(a,c,e[o]);return a.length=c,a}(un)}},sn={f:function(e){return un&&"Window"==I(e)?ln(e):cn(B(e))}},fn=function(e,t,n,r){return r&&r.enumerable?e[t]=n:Je(e,t,n),e},pn={f:Oe},dn=Ze.f,hn=function(e){var t=V.Symbol||(V.Symbol={});he(t,e)||dn(t,e,{value:pn.f(e)})},mn=function(){var e=G("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Oe("toPrimitive");t&&!t[r]&&fn(t,r,(function(e){return C(n,this)}),{arity:1})},yn=Rt?{}.toString:function(){return"[object "+Vt(this)+"]"},gn=Ze.f,vn=Oe("toStringTag"),bn=function(e,t,n,r){if(e){var o=n?e:e.prototype;he(o,vn)||gn(o,vn,{configurable:!0,value:t}),r&&!Rt&&Je(o,"toString",yn)}},xn=O(Function.toString);E(le.inspectSource)||(le.inspectSource=function(e){return xn(e)});var wn,Sn,On,En=le.inspectSource,Tn=p.WeakMap,kn=E(Tn)&&/native code/.test(En(Tn)),Cn=p.TypeError,An=p.WeakMap;if(kn||le.state){var Pn=le.state||(le.state=new An),jn=O(Pn.get),_n=O(Pn.has),Nn=O(Pn.set);wn=function(e,t){if(_n(Pn,e))throw new Cn("Object already initialized");return t.facade=e,Nn(Pn,e,t),t},Sn=function(e){return jn(Pn,e)||{}},On=function(e){return _n(Pn,e)}}else{var Mn=Yt("state");pt[Mn]=!0,wn=function(e,t){if(he(e,Mn))throw new Cn("Object already initialized");return t.facade=e,Je(e,Mn,t),t},Sn=function(e){return he(e,Mn)?e[Mn]:{}},On=function(e){return he(e,Mn)}}var In={set:wn,get:Sn,has:On,enforce:function(e){return On(e)?Sn(e):wn(e,{})},getterFor:function(e){return function(t){var n;if(!H(t)||(n=Sn(t)).type!==e)throw Cn("Incompatible receiver, "+e+" required");return n}}},Dn=Array.isArray||function(e){return"Array"==I(e)},Ln=function(){},Fn=[],Rn=G("Reflect","construct"),zn=/^\s*(?:class|function)\b/,Bn=O(zn.exec),Hn=!zn.exec(Ln),Vn=function(e){if(!E(e))return!1;try{return Rn(Ln,Fn,e),!0}catch(e){return!1}},Un=function(e){if(!E(e))return!1;switch(Vt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Hn||!!Bn(zn,En(e))}catch(e){return!0}};Un.sham=!0;var Gn=!Rn||d((function(){var e;return Vn(Vn.call)||!Vn(Object)||!Vn((function(){e=!0}))||e}))?Un:Vn,Wn=Oe("species"),qn=Array,Xn=function(e,t){return new(function(e){var t;return Dn(e)&&(t=e.constructor,(Gn(t)&&(t===qn||Dn(t.prototype))||H(t)&&null===(t=t[Wn]))&&(t=void 0)),void 0===t?qn:t}(e))(0===t?0:t)},Yn=O([].push),$n=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,c=5==e||i;return function(u,l,s,f){for(var p,d,h=pe(u),m=F(h),y=Ve(l,s),g=lt(m),v=0,b=f||Xn,x=t?b(u,g):n||a?b(u,0):void 0;g>v;v++)if((c||v in m)&&(d=y(p=m[v],v,h),e))if(t)x[v]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return v;case 2:Yn(x,p)}else switch(e){case 4:return!1;case 7:Yn(x,p)}return i?-1:r||o?o:x}},Zn={forEach:$n(0),map:$n(1),filter:$n(2),some:$n(3),every:$n(4),find:$n(5),findIndex:$n(6),filterReject:$n(7)}.forEach,Jn=Yt("hidden"),Kn=In.set,Qn=In.getterFor("Symbol"),er=Object.prototype,tr=p.Symbol,nr=tr&&tr.prototype,rr=p.TypeError,or=p.QObject,ir=Me.f,ar=Ze.f,cr=sn.f,ur=j.f,lr=O([].push),sr=se("symbols"),fr=se("op-symbols"),pr=se("wks"),dr=!or||!or.prototype||!or.prototype.findChild,hr=T&&d((function(){return 7!=en(ar({},"a",{get:function(){return ar(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ir(er,t);r&&delete er[t],ar(e,t,n),r&&e!==er&&ar(er,t,r)}:ar,mr=function(e,t){var n=sr[e]=en(nr);return Kn(n,{type:"Symbol",tag:e,description:t}),T||(n.description=t),n},yr=function(e,t,n){e===er&&yr(fr,t,n),qe(e);var r=Ce(t);return qe(n),he(sr,r)?(n.enumerable?(he(e,Jn)&&e[Jn][r]&&(e[Jn][r]=!1),n=en(n,{enumerable:_(0,!1)})):(he(e,Jn)||ar(e,Jn,_(1,{})),e[Jn][r]=!0),hr(e,r,n)):ar(e,r,n)},gr=function(e,t){qe(e);var n=B(t),r=gt(n).concat(wr(n));return Zn(r,(function(t){T&&!C(vr,n,t)||yr(e,t,n[t])})),e},vr=function(e){var t=Ce(e),n=C(ur,this,t);return!(this===er&&he(sr,t)&&!he(fr,t))&&(!(n||!he(this,t)||!he(sr,t)||he(this,Jn)&&this[Jn][t])||n)},br=function(e,t){var n=B(e),r=Ce(t);if(n!==er||!he(sr,r)||he(fr,r)){var o=ir(n,r);return!o||!he(sr,r)||he(n,Jn)&&n[Jn][r]||(o.enumerable=!0),o}},xr=function(e){var t=cr(B(e)),n=[];return Zn(t,(function(e){he(sr,e)||he(pt,e)||lr(n,e)})),n},wr=function(e){var t=e===er,n=cr(t?fr:B(e)),r=[];return Zn(n,(function(e){!he(sr,e)||t&&!he(er,e)||lr(r,sr[e])})),r};K||(nr=(tr=function(){if(W(nr,this))throw rr("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Gt(arguments[0]):void 0,t=ve(e),n=function(e){this===er&&C(n,fr,e),he(this,Jn)&&he(this[Jn],t)&&(this[Jn][t]=!1),hr(this,t,_(1,e))};return T&&dr&&hr(er,t,{configurable:!0,set:n}),mr(t,e)}).prototype,fn(nr,"toString",(function(){return Qn(this).tag})),fn(tr,"withoutSetter",(function(e){return mr(ve(e),e)})),j.f=vr,Ze.f=yr,Wt.f=gr,Me.f=br,nn.f=sn.f=xr,vt.f=wr,pn.f=function(e){return mr(Oe(e),e)},T&&ar(nr,"description",{configurable:!0,get:function(){return Qn(this).description}})),et({global:!0,constructor:!0,wrap:!0,forced:!K,sham:!K},{Symbol:tr}),Zn(gt(pr),(function(e){hn(e)})),et({target:"Symbol",stat:!0,forced:!K},{useSetter:function(){dr=!0},useSimple:function(){dr=!1}}),et({target:"Object",stat:!0,forced:!K,sham:!T},{create:function(e,t){return void 0===t?en(e):gr(en(e),t)},defineProperty:yr,defineProperties:gr,getOwnPropertyDescriptor:br}),et({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:xr}),mn(),bn(tr,"Symbol"),pt[Jn]=!0;var Sr=K&&!!Symbol.for&&!!Symbol.keyFor,Or=se("string-to-symbol-registry"),Er=se("symbol-to-string-registry");et({target:"Symbol",stat:!0,forced:!Sr},{for:function(e){var t=Gt(e);if(he(Or,t))return Or[t];var n=G("Symbol")(t);return Or[t]=n,Er[n]=t,n}});var Tr=se("symbol-to-string-registry");et({target:"Symbol",stat:!0,forced:!Sr},{keyFor:function(e){if(!te(e))throw TypeError(re(e)+" is not a symbol");if(he(Tr,e))return Tr[e]}});var kr=G("JSON","stringify"),Cr=O(/./.exec),Ar=O("".charAt),Pr=O("".charCodeAt),jr=O("".replace),_r=O(1..toString),Nr=/[\uD800-\uDFFF]/g,Mr=/^[\uD800-\uDBFF]$/,Ir=/^[\uDC00-\uDFFF]$/,Dr=!K||d((function(){var e=G("Symbol")();return"[null]"!=kr([e])||"{}"!=kr({a:e})||"{}"!=kr(Object(e))})),Lr=d((function(){return'"\\udf06\\ud834"'!==kr("\udf06\ud834")||'"\\udead"'!==kr("\udead")})),Fr=function(e,t){var n=Et(arguments),r=t;if((H(t)||void 0!==e)&&!te(e))return Dn(t)||(t=function(e,t){if(E(r)&&(t=C(r,this,e,t)),!te(t))return t}),n[1]=t,v(kr,null,n)},Rr=function(e,t,n){var r=Ar(n,t-1),o=Ar(n,t+1);return Cr(Mr,e)&&!Cr(Ir,o)||Cr(Ir,e)&&!Cr(Mr,r)?"\\u"+_r(Pr(e,0),16):e};kr&&et({target:"JSON",stat:!0,arity:3,forced:Dr||Lr},{stringify:function(e,t,n){var r=Et(arguments),o=v(Dr?Fr:kr,null,r);return Lr&&"string"==typeof o?jr(o,Nr,Rr):o}});var zr=!K||d((function(){vt.f(1)}));et({target:"Object",stat:!0,forced:zr},{getOwnPropertySymbols:function(e){var t=vt.f;return t?t(pe(e)):[]}});var Br,Hr,Vr=V.Object.getOwnPropertySymbols,Ur=ft.indexOf,Gr=O([].indexOf),Wr=!!Gr&&1/Gr([1],1,-0)<0,qr=!!(Hr=[]["indexOf"])&&d((function(){Hr.call(null,Br||function(){return 1},1)}));et({target:"Array",proto:!0,forced:Wr||!qr},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Wr?Gr(this,e,t)||0:Ur(this,e,t)}});var Xr=_t("Array").indexOf,Yr=Array.prototype,$r=function(e){var t=e.indexOf;return e===Yr||W(Yr,e)&&t===Yr.indexOf?Xr:t},Zr=d((function(){gt(1)}));et({target:"Object",stat:!0,forced:Zr},{keys:function(e){return gt(pe(e))}});var Jr=V.Object.keys,Kr=c((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Jr(e);for(r=0;r<i.length;r++)n=i[r],$r(t).call(t,n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports})),Qr=c((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o=Kr(e,t);if(Vr){var i=Vr(e);for(r=0;r<i.length;r++)n=i[r],$r(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports})),eo=TypeError,to=function(e){if(e>9007199254740991)throw eo("Maximum allowed index exceeded");return e},no=Oe("species"),ro=function(e){return J>=51||!d((function(){var t=[];return(t.constructor={})[no]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},oo=Oe("isConcatSpreadable"),io=J>=51||!d((function(){var e=[];return e[oo]=!1,e.concat()[0]!==e})),ao=ro("concat"),co=function(e){if(!H(e))return!1;var t=e[oo];return void 0!==t?!!t:Dn(e)};et({target:"Array",proto:!0,arity:1,forced:!io||!ao},{concat:function(e){var t,n,r,o,i,a=pe(this),c=Xn(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(co(i=-1===t?a:arguments[t]))for(o=lt(i),to(u+o),n=0;n<o;n++,u++)n in i&&rn(c,u,i[n]);else to(u+1),rn(c,u++,i);return c.length=u,c}});var uo=_t("Array").concat,lo=Array.prototype,so=function(e){var t=e.concat;return e===lo||W(lo,e)&&t===lo.concat?uo:t},fo=ro("slice"),po=Oe("species"),ho=Array,mo=Math.max;et({target:"Array",proto:!0,forced:!fo},{slice:function(e,t){var n,r,o,i=B(this),a=lt(i),c=ct(e,a),u=ct(void 0===t?a:t,a);if(Dn(i)&&(n=i.constructor,(Gn(n)&&(n===ho||Dn(n.prototype))||H(n)&&null===(n=n[po]))&&(n=void 0),n===ho||void 0===n))return Et(i,c,u);for(r=new(void 0===n?ho:n)(mo(u-c,0)),o=0;c<u;c++,o++)c in i&&rn(r,o,i[c]);return r.length=o,r}});var yo=_t("Array").slice,go=Array.prototype,vo=function(e){var t=e.slice;return e===go||W(go,e)&&t===go.slice?yo:t};et({target:"Array",stat:!0},{isArray:Dn});var bo=V.Array.isArray,xo=c((function(e){e.exports=function(e){if(bo(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports})),wo=Object.freeze({__proto__:null});hn("asyncIterator");var So=Object.freeze({__proto__:null});hn("hasInstance"),hn("isConcatSpreadable"),hn("iterator"),hn("match"),hn("matchAll"),hn("replace"),hn("search"),hn("species"),hn("split"),hn("toPrimitive"),mn(),hn("toStringTag"),bn(G("Symbol"),"Symbol"),hn("unscopables"),bn(p.JSON,"JSON",!0);var Oo=Object.freeze({__proto__:null}),Eo=Object.freeze({__proto__:null});u(wo),u(So),u(Oo),u(Eo);var To,ko,Co,Ao=V.Symbol,Po={},jo=Function.prototype,_o=T&&Object.getOwnPropertyDescriptor,No=he(jo,"name"),Mo={EXISTS:No,PROPER:No&&"something"===function(){}.name,CONFIGURABLE:No&&(!T||T&&_o(jo,"name").configurable)},Io=!d((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Do=Yt("IE_PROTO"),Lo=Object,Fo=Lo.prototype,Ro=Io?Lo.getPrototypeOf:function(e){var t=pe(e);if(he(t,Do))return t[Do];var n=t.constructor;return E(n)&&t instanceof n?n.prototype:t instanceof Lo?Fo:null},zo=Oe("iterator"),Bo=!1;[].keys&&("next"in(Co=[].keys())?(ko=Ro(Ro(Co)))!==Object.prototype&&(To=ko):Bo=!0);var Ho=null==To||d((function(){var e={};return To[zo].call(e)!==e}));To=Ho?{}:en(To),E(To[zo])||fn(To,zo,(function(){return this}));var Vo={IteratorPrototype:To,BUGGY_SAFARI_ITERATORS:Bo},Uo=Vo.IteratorPrototype,Go=function(){return this};TypeError;Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=O(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}}();var Wo=Mo.PROPER,qo=Vo.BUGGY_SAFARI_ITERATORS,Xo=Oe("iterator"),Yo=function(){return this},$o=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=en(Uo,{next:_(+!r,n)}),bn(e,o,!1,!0),Po[o]=Go}(n,t,r);var c,u,l,s=function(e){if(e===o&&m)return m;if(!qo&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",p=!1,d=e.prototype,h=d[Xo]||d["@@iterator"]||o&&d[o],m=!qo&&h||s(o),y="Array"==t&&d.entries||h;if(y&&(c=Ro(y.call(new e)))!==Object.prototype&&c.next&&(bn(c,f,!0,!0),Po[f]=Yo),Wo&&"values"==o&&h&&"values"!==h.name&&(p=!0,m=function(){return C(h,this)}),o)if(u={values:s("values"),keys:i?m:s("keys"),entries:s("entries")},a)for(l in u)(qo||p||!(l in d))&&fn(d,l,u[l]);else et({target:t,proto:!0,forced:qo||p},u);return a&&d[Xo]!==m&&fn(d,Xo,m,{name:o}),Po[t]=m,u};Ze.f;var Zo=In.set,Jo=In.getterFor("Array Iterator");$o(Array,"Array",(function(e,t){Zo(this,{type:"Array Iterator",target:B(e),index:0,kind:t})}),(function(){var e=Jo(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Po.Arguments=Po.Array;var Ko=Oe("toStringTag");for(var Qo in{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}){var ei=p[Qo],ti=ei&&ei.prototype;ti&&Vt(ti)!==Ko&&Je(ti,Ko,Qo),Po[Qo]=Po.Array}var ni=Ao;hn("asyncDispose"),hn("dispose"),hn("matcher"),hn("metadataKey"),hn("observable"),hn("metadata"),hn("patternMatch"),hn("replaceAll");var ri=ni,oi=O("".charAt),ii=O("".charCodeAt),ai=O("".slice),ci=function(e){return function(t,n){var r,o,i=Gt(z(t)),a=ot(n),c=i.length;return a<0||a>=c?e?"":void 0:(r=ii(i,a))<55296||r>56319||a+1===c||(o=ii(i,a+1))<56320||o>57343?e?oi(i,a):r:e?ai(i,a,a+2):o-56320+(r-55296<<10)+65536}},ui={codeAt:ci(!1),charAt:ci(!0)}.charAt,li=In.set,si=In.getterFor("String Iterator");$o(String,"String",(function(e){li(this,{type:"String Iterator",string:Gt(e),index:0})}),(function(){var e,t=si(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ui(n,r),t.index+=e.length,{value:e,done:!1})}));var fi=Oe("iterator"),pi=function(e){if(null!=e)return ae(e,fi)||ae(e,"@@iterator")||Po[Vt(e)]},di=pi,hi=c((function(e){e.exports=function(e,t){var n=null==e?null:void 0!==ri&&di(e)||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports})),mi=function(e,t,n,r){try{return r?t(qe(n)[0],n[1]):t(n)}catch(t){!function(e,t,n){var r,o;qe(e);try{if(!(r=ae(e,"return"))){if("throw"===t)throw n;return n}r=C(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;qe(r)}(e,"throw",t)}},yi=Oe("iterator"),gi=Array.prototype,vi=function(e){return void 0!==e&&(Po.Array===e||gi[yi]===e)},bi=TypeError,xi=function(e,t){var n=arguments.length<2?pi(e):t;if(ie(n))return qe(C(n,e));throw bi(re(e)+" is not iterable")},wi=Array,Si=Oe("iterator"),Oi=!1;try{var Ei=0,Ti={next:function(){return{done:!!Ei++}},return:function(){Oi=!0}};Ti[Si]=function(){return this},Array.from(Ti,(function(){throw 2}))}catch(e){}var ki=!function(e,t){if(!t&&!Oi)return!1;var n=!1;try{var r={};r[Si]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Array.from(e)}));et({target:"Array",stat:!0,forced:ki},{from:function(e){var t=pe(e),n=Gn(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Ve(o,r>2?arguments[2]:void 0));var a,c,u,l,s,f,p=pi(t),d=0;if(!p||this===wi&&vi(p))for(a=lt(t),c=n?new this(a):wi(a);a>d;d++)f=i?o(t[d],d):t[d],rn(c,d,f);else for(s=(l=xi(t,p)).next,c=n?new this:[];!(u=C(s,l)).done;d++)f=i?mi(l,o,[u.value,d],!0):u.value,rn(c,d,f);return c.length=d,c}});var Ci=V.Array.from,Ai=c((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports})),Pi=c((function(e){e.exports=function(e,t){var n;if(e){if("string"==typeof e)return Ai(e,t);var r=vo(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Ci(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ai(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports})),ji=c((function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports})),_i=c((function(e){e.exports=function(e,t){return xo(e)||hi(e,t)||Pi(e,t)||ji()},e.exports.__esModule=!0,e.exports.default=e.exports})),Ni="START",Mi="DONE",Ii="START",Di="DONE",Li="ADD",Fi="ASCEND ",Ri="DESCEND ",zi="DONE";function Bi(e){return Number(e.replace("px",""))}function Hi(e,t,n,r){var o=r.current?r.current.getClientRects().length:0;return!(!e&&"none"===t)&&(!!(e&&o>e)||!!("none"!==t&&n.current&&n.current.scrollHeight>Bi(t)))}var Vi=function(i){var a=i.ellipsis,c=void 0===a?"...":a,u=i.content,l=i.maxHeight,s=i.maxLines,f=i.expanded,p=void 0!==f&&f,d=i.renderContent,h=i.renderClampedContent,m=i.className,y=void 0===m?"":m,g=u.length||0,v=t(),b=t(),x=t(g),w=n(g),S=_i(w,2),O=S[0],E=S[1],T=n(Mi),k=_i(T,2),C=k[0],A=k[1],P=n(Di),j=_i(P,2),_=j[0],N=j[1],M=n(zi),I=_i(M,2),D=I[0],L=I[1],F=n(!0),R=_i(F,2),z=R[0],B=R[1],H=function(e){var t=n(e),r=_i(t,2),i=r[0],a=r[1];return o((function(){a(e)}),[e]),i}(p),V=function(e,t,o,i,a,c,u){var l=n((function(){return t()})),s=_i(l,2),f=s[0],p=s[1];return r((function(){!a||u?p(t()):i!==a&&p(o(i,c))}),[e,t,o,i,a,c,u]),f}(u,d,h,O,g,c,H),U=function(e,t){var o=n("none"),i=_i(o,2),a=i[0],c=i[1];return r((function(){c(e?"none":t?"number"==typeof t?"".concat(t,"px"):t:"none")}),[e,t]),a}(H,l);r((function(){!H&&Hi(s,U,v,b)&&C===Mi&&A(Ni)}),[s,l,c,H,C,U]),r((function(){C===Ni&&N(Ii)}),[C,g]),r((function(){var e=b.current?b.current.getClientRects().length:0,t=v.current&&v.current.scrollHeight<=Bi(U);_!==Ii&&_!==Li||(Hi(s,U,v,b)?_===Li?(B(!1),E((function(e){return~~(e-x.current)}))):(E((function(e){return~~(e/2)})),x.current/=2):z&&("none"!==U&&t||s&&e<s)?(N(Li),E((function(e){return~~(e+x.current/2)})),x.current/=2):(N(Di),L(Fi)))}),[_,s,b,U,V,z]),r((function(){var e=b.current?b.current.getClientRects().length:0;D===Fi?(!Hi(s,U,v,b)||e<2)&&O<g?E(O+1):L(Ri):D===Ri&&(Hi(s,U,v,b)&&e>1&&O>0?E(O-1):(L(zi),A(Mi),x.current=g))}),[D,g,O,b,s,U]);var G=e.createElement("span",null,V),W=e.createElement("span",{ref:b,style:{boxShadow:"transparent 0 0",wordBreak:"break-all"}},G);return e.createElement("div",{className:"react-simple-clamp ".concat(y),ref:v,style:{overflow:"hidden",maxHeight:U}},W)};Vi.defaultProps={autoresize:!1,ellipsis:"",expanded:!1,className:""};var Ui=["content","renderAfter"],Gi=function(t){var n=t.content,r=void 0===n?"":n,o=t.renderAfter,a=void 0===o?function(){return e.createElement(i,null)}:o,c=Qr(t,Ui);return e.createElement(Vi,Dt({content:r,renderContent:function(){return e.createElement("span",null,r,a(!1))},renderClampedContent:function(t,n){var o;return e.createElement("span",null,so(o="".concat(vo(r).call(r,0,t))).call(o,n),a(!0))}},c))};Gi.defaultProps={autoresize:!1,ellipsis:"",expanded:!1,className:""};var Wi={SAME:0,CAMELCASE:1,possibleStandardNames:{accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},qi=c((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0});function o(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){i[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=n(e,2),r=t[0],a=t[1];i[r]=new o(r,1,!1,a,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){i[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){i[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){i[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){i[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){i[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var a=/[\-\:]([a-z])/g,c=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(a,c);i[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(a,c);i[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(a,c);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)}));i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var u=Wi.CAMELCASE,l=Wi.SAME,s=Wi.possibleStandardNames,f=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(s).reduce((function(e,t){var n=s[t];return n===l?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=f,t.possibleStandardNames=p})),Xi=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Yi=/\n/g,$i=/^\s*/,Zi=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ji=/^:\s*/,Ki=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Qi=/^[;\s]*/,ea=/^\s+|\s+$/g;function ta(e){return e?e.replace(ea,""):""}var na=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(Yi);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function c(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function u(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function l(){u($i)}function s(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return c("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=u(Zi);if(t){if(f(),!u(Ji))return c("property missing ':'");var n=u(Ki),r=e({type:"declaration",property:ta(t[0].replace(Xi,"")),value:n?ta(n[0].replace(Xi,"")):""});return u(Qi),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(s(t);e=p();)!1!==e&&(t.push(e),s(t));return t}()}(e),c="function"==typeof t,u=0,l=a.length;u<l;u++)o=(n=a[u]).property,i=n.value,c?t(o,i,n):i&&(r||(r={}),r[o]=i);return r},ra=c((function(e,t){t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,c=function(e,t){return t.toUpperCase()},u=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,u):e.replace(i,u)).replace(r,c))}})),oa=c((function(e,t){var n=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(na);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,r.default)(e,(function(e,r){e&&r&&(n[(0,ra.camelCase)(e,t)]=r)})),n):n}})).default;var ia={reactCompat:!0};var aa=e.version.split(".")[0]>=16,ca=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var ua={PRESERVE_CUSTOM_ATTRIBUTES:aa,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,o="function"==typeof t,i={},a={};for(n in e)r=e[n],o&&(i=t(n,r))&&2===i.length?a[i[0]]=i[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=oa(e,ia)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!ca.has(e.name)},elementsWithNoTextChildren:ca},la=function(e){var t,n,r,o,i,a={},c=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(t in e)if(r=e[t],qi.isCustomAttribute(t))a[t]=r;else if(o=sa(n=t.toLowerCase()))switch(i=qi.getPropertyInfo(o),"checked"!==o&&"value"!==o||c||(o=sa("default"+n)),a[o]=r,i&&i.type){case qi.BOOLEAN:a[o]=!0;break;case qi.OVERLOADED_BOOLEAN:""===r&&(a[o]=!0)}else ua.PRESERVE_CUSTOM_ATTRIBUTES&&(a[t]=r);return ua.setStyleProp(e.style,a),a};function sa(e){return qi.possibleStandardNames[e]}var fa=ua.setStyleProp,pa=ua.canTextBeChildOfNode;function da(e){return ua.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&ua.isCustomComponent(e.name,e.attribs)}var ha,ma=function t(n,r){for(var o,i,a,c,u,l=(r=r||{}).library||e,s=l.cloneElement,f=l.createElement,p=l.isValidElement,d=[],h="function"==typeof r.replace,m=r.trim,y=0,g=n.length;y<g;y++)if(o=n[y],h&&p(a=r.replace(o)))g>1&&(a=s(a,{key:a.key||y})),d.push(a);else if("text"!==o.type){switch(c=o.attribs,da(o)?fa(c.style,c):c&&(c=la(c)),u=null,o.type){case"script":case"style":o.children[0]&&(c.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?c.defaultValue=o.children[0].data:o.children&&o.children.length&&(u=t(o.children,r));break;default:continue}g>1&&(c.key=y),d.push(f(o.name,c,u))}else{if((i=!o.data.trim().length)&&o.parent&&!pa(o.parent))continue;if(m&&i)continue;d.push(o.data)}return 1===d.length?d[0]:d},ya=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(ha||(ha={}));const ga=ha.Root,va=ha.Text,ba=ha.Directive,xa=ha.Comment,wa=ha.Script,Sa=ha.Style,Oa=ha.Tag,Ea=ha.CDATA,Ta=ha.Doctype;for(var ka,Ca=u(Object.freeze({__proto__:null,get ElementType(){return ha},isTag:function(e){return e.type===ha.Tag||e.type===ha.Script||e.type===ha.Style},Root:ga,Text:va,Directive:ba,Comment:xa,Script:wa,Style:Sa,Tag:Oa,CDATA:Ea,Doctype:Ta})),Aa=c((function(e,t){var n,r=a&&a.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=a&&a.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var i=new Map([[Ca.ElementType.Tag,1],[Ca.ElementType.Script,1],[Ca.ElementType.Style,1],[Ca.ElementType.Directive,1],[Ca.ElementType.Text,3],[Ca.ElementType.CDATA,4],[Ca.ElementType.Comment,8],[Ca.ElementType.Root,9]]),c=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=i.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get