UNPKG

@offshorly/chatbot-frontend-package

Version:
1 lines 144 kB
import{a as t,c as e,_ as r}from"./index-656e4c92.js";import"react";import"react-dom";var i,n,a=function(t){return t&&t.Math===Math&&t},s=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")(),o=function(t){try{return!!t()}catch(t){return!0}},h=!o(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),u=!o(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),l=Function.prototype.call,c=u?l.bind(l):function(){return l.apply(l,arguments)},f={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,p=g&&!f.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:f,d={f:p},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},v=Function.prototype,m=v.call,x=u&&v.bind.bind(m,m),b=u?x:function(t){return function(){return m.apply(t,arguments)}},w=b({}.toString),S=b("".slice),T=function(t){return S(w(t),8,-1)},O=Object,A=b("".split),C=o(function(){return!O("z").propertyIsEnumerable(0)})?function(t){return"String"===T(t)?A(t,""):O(t)}:O,P=function(t){return null==t},E=TypeError,M=function(t){if(P(t))throw new E("Can't call method on "+t);return t},N=function(t){return C(M(t))},_="object"==typeof document&&document.all,R=void 0===_&&void 0!==_?function(t){return"function"==typeof t||t===_}:function(t){return"function"==typeof t},V=function(t){return"object"==typeof t?null!==t:R(t)},I=function(t,e){return arguments.length<2?R(r=s[t])?r:void 0:s[t]&&s[t][e];var r},k=b({}.isPrototypeOf),L="undefined"!=typeof navigator&&String(navigator.userAgent)||"",D=s.process,j=s.Deno,z=D&&D.versions||j&&j.version,B=z&&z.v8;B&&(n=(i=B.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!n&&L&&(!(i=L.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=L.match(/Chrome\/(\d+)/))&&(n=+i[1]);var F=n,U=s.String,H=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!U(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41}),X=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=Object,q=X?function(t){return"symbol"==typeof t}:function(t){var e=I("Symbol");return R(e)&&k(e.prototype,Y(t))},W=String,$=function(t){try{return W(t)}catch(t){return"Object"}},G=TypeError,Q=function(t){if(R(t))return t;throw new G($(t)+" is not a function")},Z=function(t,e){var r=t[e];return P(r)?void 0:Q(r)},K=TypeError,J=Object.defineProperty,tt=function(t,e){try{J(s,t,{value:e,configurable:!0,writable:!0})}catch(r){s[t]=e}return e},et=e(function(t){var e="__core-js_shared__",r=t.exports=s[e]||tt(e,{});(r.versions||(r.versions=[])).push({version:"3.36.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),rt=function(t,e){return et[t]||(et[t]=e||{})},it=Object,nt=function(t){return it(M(t))},at=b({}.hasOwnProperty),st=Object.hasOwn||function(t,e){return at(nt(t),e)},ot=0,ht=Math.random(),ut=b(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ut(++ot+ht,36)},ct=s.Symbol,ft=rt("wks"),gt=X?ct.for||ct:ct&&ct.withoutSetter||lt,pt=function(t){return st(ft,t)||(ft[t]=H&&st(ct,t)?ct[t]:gt("Symbol."+t)),ft[t]},dt=TypeError,yt=pt("toPrimitive"),vt=function(t){var e=function(t,e){if(!V(t)||q(t))return t;var r,i=Z(t,yt);if(i){if(void 0===e&&(e="default"),r=c(i,t,e),!V(r)||q(r))return r;throw new dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,i;if("string"===e&&R(r=t.toString)&&!V(i=c(r,t)))return i;if(R(r=t.valueOf)&&!V(i=c(r,t)))return i;if("string"!==e&&R(r=t.toString)&&!V(i=c(r,t)))return i;throw new K("Can't convert object to primitive value")}(t,e)}(t,"string");return q(e)?e:e+""},mt=s.document,xt=V(mt)&&V(mt.createElement),bt=function(t){return xt?mt.createElement(t):{}},wt=!h&&!o(function(){return 7!==Object.defineProperty(bt("div"),"a",{get:function(){return 7}}).a}),St=Object.getOwnPropertyDescriptor,Tt=h?St:function(t,e){if(t=N(t),e=vt(e),wt)try{return St(t,e)}catch(t){}if(st(t,e))return y(!c(d.f,t,e),t[e])},Ot={f:Tt},At=h&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Ct=String,Pt=TypeError,Et=function(t){if(V(t))return t;throw new Pt(Ct(t)+" is not an object")},Mt=TypeError,Nt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Rt="enumerable",Vt="configurable",It="writable",kt=h?At?function(t,e,r){if(Et(t),e=vt(e),Et(r),"function"==typeof t&&"prototype"===e&&"value"in r&&It in r&&!r[It]){var i=_t(t,e);i&&i[It]&&(t[e]=r.value,r={configurable:Vt in r?r[Vt]:i[Vt],enumerable:Rt in r?r[Rt]:i[Rt],writable:!1})}return Nt(t,e,r)}:Nt:function(t,e,r){if(Et(t),e=vt(e),Et(r),wt)try{return Nt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Mt("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Lt={f:kt},Dt=h?function(t,e,r){return Lt.f(t,e,y(1,r))}:function(t,e,r){return t[e]=r,t},jt=Function.prototype,zt=h&&Object.getOwnPropertyDescriptor,Bt=st(jt,"name"),Ft={EXISTS:Bt,PROPER:Bt&&"something"===function(){}.name,CONFIGURABLE:Bt&&(!h||h&&zt(jt,"name").configurable)},Ut=b(Function.toString);R(et.inspectSource)||(et.inspectSource=function(t){return Ut(t)});var Ht,Xt,Yt,qt=et.inspectSource,Wt=s.WeakMap,$t=R(Wt)&&/native code/.test(String(Wt)),Gt=rt("keys"),Qt=function(t){return Gt[t]||(Gt[t]=lt(t))},Zt={},Kt="Object already initialized",Jt=s.TypeError;if($t||et.state){var te=et.state||(et.state=new(0,s.WeakMap));te.get=te.get,te.has=te.has,te.set=te.set,Ht=function(t,e){if(te.has(t))throw new Jt(Kt);return e.facade=t,te.set(t,e),e},Xt=function(t){return te.get(t)||{}},Yt=function(t){return te.has(t)}}else{var ee=Qt("state");Zt[ee]=!0,Ht=function(t,e){if(st(t,ee))throw new Jt(Kt);return e.facade=t,Dt(t,ee,e),e},Xt=function(t){return st(t,ee)?t[ee]:{}},Yt=function(t){return st(t,ee)}}var re={set:Ht,get:Xt,has:Yt,enforce:function(t){return Yt(t)?Xt(t):Ht(t,{})},getterFor:function(t){return function(e){var r;if(!V(e)||(r=Xt(e)).type!==t)throw new Jt("Incompatible receiver, "+t+" required");return r}}},ie=e(function(t){var e=Ft.CONFIGURABLE,r=re.enforce,i=re.get,n=String,a=Object.defineProperty,s=b("".slice),u=b("".replace),l=b([].join),c=h&&!o(function(){return 8!==a(function(){},"length",{value:8}).length}),f=String(String).split("String"),g=t.exports=function(t,i,o){"Symbol("===s(n(i),0,7)&&(i="["+u(n(i),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),o&&o.getter&&(i="get "+i),o&&o.setter&&(i="set "+i),(!st(t,"name")||e&&t.name!==i)&&(h?a(t,"name",{value:i,configurable:!0}):t.name=i),c&&o&&st(o,"arity")&&t.length!==o.arity&&a(t,"length",{value:o.arity});try{o&&st(o,"constructor")&&o.constructor?h&&a(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var g=r(t);return st(g,"source")||(g.source=l(f,"string"==typeof i?i:"")),t};Function.prototype.toString=g(function(){return R(this)&&i(this).source||qt(this)},"toString")}),ne=function(t,e,r,i){i||(i={});var n=i.enumerable,a=void 0!==i.name?i.name:e;if(R(r)&&ie(r,a,i),i.global)n?t[e]=r:tt(e,r);else{try{i.unsafe?t[e]&&(n=!0):delete t[e]}catch(t){}n?t[e]=r:Lt.f(t,e,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t},ae=Math.ceil,se=Math.floor,oe=Math.trunc||function(t){var e=+t;return(e>0?se:ae)(e)},he=function(t){var e=+t;return e!=e||0===e?0:oe(e)},ue=Math.max,le=Math.min,ce=Math.min,fe=function(t){var e=he(t);return e>0?ce(e,9007199254740991):0},ge=function(t){return fe(t.length)},pe=function(t){return function(e,r,i){var n=N(e),a=ge(n);if(0===a)return!t&&-1;var s,o=function(t,e){var r=he(t);return r<0?ue(r+e,0):le(r,e)}(i,a);if(t&&r!=r){for(;a>o;)if((s=n[o++])!=s)return!0}else for(;a>o;o++)if((t||o in n)&&n[o]===r)return t||o||0;return!t&&-1}},de={includes:pe(!0),indexOf:pe(!1)},ye=de.indexOf,ve=b([].push),me=function(t,e){var r,i=N(t),n=0,a=[];for(r in i)!st(Zt,r)&&st(i,r)&&ve(a,r);for(;e.length>n;)st(i,r=e[n++])&&(~ye(a,r)||ve(a,r));return a},xe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],be=xe.concat("length","prototype"),we=Object.getOwnPropertyNames||function(t){return me(t,be)},Se={f:we},Te={f:Object.getOwnPropertySymbols},Oe=b([].concat),Ae=I("Reflect","ownKeys")||function(t){var e=Se.f(Et(t)),r=Te.f;return r?Oe(e,r(t)):e},Ce=function(t,e,r){for(var i=Ae(e),n=Lt.f,a=Ot.f,s=0;s<i.length;s++){var o=i[s];st(t,o)||r&&st(r,o)||n(t,o,a(e,o))}},Pe=/#|\.prototype\./,Ee=function(t,e){var r=Ne[Me(t)];return r===Re||r!==_e&&(R(e)?o(e):!!e)},Me=Ee.normalize=function(t){return String(t).replace(Pe,".").toLowerCase()},Ne=Ee.data={},_e=Ee.NATIVE="N",Re=Ee.POLYFILL="P",Ve=Ee,Ie=Ot.f,ke=function(t,e){var r,i,n,a,o,h=t.target,u=t.global,l=t.stat;if(r=u?s:l?s[h]||tt(h,{}):s[h]&&s[h].prototype)for(i in e){if(a=e[i],n=t.dontCallGetSet?(o=Ie(r,i))&&o.value:r[i],!Ve(u?i:h+(l?".":"#")+i,t.forced)&&void 0!==n){if(typeof a==typeof n)continue;Ce(a,n)}(t.sham||n&&n.sham)&&Dt(a,"sham",!0),ne(r,i,a,t)}},Le="process"===T(s.process),De=String,je=TypeError,ze=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return b(Q(Object.getOwnPropertyDescriptor(t,"__proto__").set))}catch(t){}}(Object.prototype))(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return Et(r),function(t){if(function(t){return V(t)||null===t}(t))return t;throw new je("Can't set "+De(t)+" as a prototype")}(i),e?t(r,i):r.__proto__=i,r}}():void 0),Be=Lt.f,Fe=pt("toStringTag"),Ue=function(t,e,r){t&&!r&&(t=t.prototype),t&&!st(t,Fe)&&Be(t,Fe,{configurable:!0,value:e})},He=pt("species"),Xe=TypeError,Ye={};Ye[pt("toStringTag")]="z";var qe="[object z]"===String(Ye),We=pt("toStringTag"),$e=Object,Ge="Arguments"===T(function(){return arguments}()),Qe=qe?T:function(t){var e,r,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=$e(t),We))?r:Ge?T(e):"Object"===(i=T(e))&&R(e.callee)?"Arguments":i},Ze=function(){},Ke=I("Reflect","construct"),Je=/^\s*(?:class|function)\b/,tr=b(Je.exec),er=!Je.test(Ze),rr=function(t){if(!R(t))return!1;try{return Ke(Ze,[],t),!0}catch(t){return!1}},ir=function(t){if(!R(t))return!1;switch(Qe(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return er||!!tr(Je,qt(t))}catch(t){return!0}};ir.sham=!0;var nr,ar,sr,or,hr=!Ke||o(function(){var t;return rr(rr.call)||!rr(Object)||!rr(function(){t=!0})||t})?ir:rr,ur=TypeError,lr=pt("species"),cr=function(t,e){var r,i=Et(t).constructor;return void 0===i||P(r=Et(i)[lr])?e:function(t){if(hr(t))return t;throw new ur($(t)+" is not a constructor")}(r)},fr=Function.prototype,gr=fr.apply,pr=fr.call,dr="object"==typeof Reflect&&Reflect.apply||(u?pr.bind(gr):function(){return pr.apply(gr,arguments)}),yr=function(t){if("Function"===T(t))return b(t)},vr=yr(yr.bind),mr=function(t,e){return Q(t),void 0===e?t:u?vr(t,e):function(){return t.apply(e,arguments)}},xr=I("document","documentElement"),br=b([].slice),wr=TypeError,Sr=/(?:ipad|iphone|ipod).*applewebkit/i.test(L),Tr=s.setImmediate,Or=s.clearImmediate,Ar=s.process,Cr=s.Dispatch,Pr=s.Function,Er=s.MessageChannel,Mr=s.String,Nr=0,_r={},Rr="onreadystatechange";o(function(){nr=s.location});var Vr=function(t){if(st(_r,t)){var e=_r[t];delete _r[t],e()}},Ir=function(t){return function(){Vr(t)}},kr=function(t){Vr(t.data)},Lr=function(t){s.postMessage(Mr(t),nr.protocol+"//"+nr.host)};Tr&&Or||(Tr=function(t){!function(t,e){if(t<1)throw new wr("Not enough arguments")}(arguments.length);var e=R(t)?t:Pr(t),r=br(arguments,1);return _r[++Nr]=function(){dr(e,void 0,r)},ar(Nr),Nr},Or=function(t){delete _r[t]},Le?ar=function(t){Ar.nextTick(Ir(t))}:Cr&&Cr.now?ar=function(t){Cr.now(Ir(t))}:Er&&!Sr?(or=(sr=new Er).port2,sr.port1.onmessage=kr,ar=mr(or.postMessage,or)):s.addEventListener&&R(s.postMessage)&&!s.importScripts&&nr&&"file:"!==nr.protocol&&!o(Lr)?(ar=Lr,s.addEventListener("message",kr,!1)):ar=Rr in bt("script")?function(t){xr.appendChild(bt("script"))[Rr]=function(){xr.removeChild(this),Vr(t)}}:function(t){setTimeout(Ir(t),0)});var Dr={set:Tr,clear:Or},jr=Object.getOwnPropertyDescriptor,zr=function(){this.head=null,this.tail=null};zr.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var Br,Fr,Ur,Hr,Xr,Yr=zr,qr=/ipad|iphone|ipod/i.test(L)&&"undefined"!=typeof Pebble,Wr=/web0s(?!.*chrome)/i.test(L),$r=Dr.set,Gr=s.MutationObserver||s.WebKitMutationObserver,Qr=s.document,Zr=s.process,Kr=s.Promise,Jr=function(t){if(!h)return s[t];var e=jr(s,t);return e&&e.value}("queueMicrotask");if(!Jr){var ti=new Yr,ei=function(){var t,e;for(Le&&(t=Zr.domain)&&t.exit();e=ti.get();)try{e()}catch(t){throw ti.head&&Br(),t}t&&t.enter()};Sr||Le||Wr||!Gr||!Qr?!qr&&Kr&&Kr.resolve?((Hr=Kr.resolve(void 0)).constructor=Kr,Xr=mr(Hr.then,Hr),Br=function(){Xr(ei)}):Le?Br=function(){Zr.nextTick(ei)}:($r=mr($r,s),Br=function(){$r(ei)}):(Fr=!0,Ur=Qr.createTextNode(""),new Gr(ei).observe(Ur,{characterData:!0}),Br=function(){Ur.data=Fr=!Fr}),Jr=function(t){ti.head||Br(),ti.add(t)}}var ri,ii,ni,ai,si,oi,hi,ui=Jr,li=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ci=s.Promise,fi="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,gi=!fi&&!Le&&"object"==typeof window&&"object"==typeof document,pi=pt("species"),di=!1,yi=R(s.PromiseRejectionEvent),vi=Ve("Promise",function(){var t=qt(ci),e=t!==String(ci);if(!e&&66===F)return!0;if(!F||F<51||!/native code/.test(t)){var r=new ci(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((r.constructor={})[pi]=i,!(di=r.then(function(){})instanceof i))return!0}return!e&&(gi||fi)&&!yi}),mi={CONSTRUCTOR:vi,REJECTION_EVENT:yi,SUBCLASSING:di},xi=TypeError,bi=function(t){var e,r;this.promise=new t(function(t,i){if(void 0!==e||void 0!==r)throw new xi("Bad Promise constructor");e=t,r=i}),this.resolve=Q(e),this.reject=Q(r)},wi={f:function(t){return new bi(t)}},Si=Dr.set,Ti="Promise",Oi=mi.CONSTRUCTOR,Ai=mi.REJECTION_EVENT,Ci=mi.SUBCLASSING,Pi=re.getterFor(Ti),Ei=re.set,Mi=ci&&ci.prototype,Ni=ci,_i=Mi,Ri=s.TypeError,Vi=s.document,Ii=s.process,ki=wi.f,Li=ki,Di=!!(Vi&&Vi.createEvent&&s.dispatchEvent),ji="unhandledrejection",zi=function(t){var e;return!(!V(t)||!R(e=t.then))&&e},Bi=function(t,e){var r,i,n,a=e.value,s=1===e.state,o=s?t.ok:t.fail,h=t.resolve,u=t.reject,l=t.domain;try{o?(s||(2===e.rejection&&Yi(e),e.rejection=1),!0===o?r=a:(l&&l.enter(),r=o(a),l&&(l.exit(),n=!0)),r===t.promise?u(new Ri("Promise-chain cycle")):(i=zi(r))?c(i,r,h,u):h(r)):u(a)}catch(t){l&&!n&&l.exit(),u(t)}},Fi=function(t,e){t.notified||(t.notified=!0,ui(function(){for(var r,i=t.reactions;r=i.get();)Bi(r,t);t.notified=!1,e&&!t.rejection&&Hi(t)}))},Ui=function(t,e,r){var i,n;Di?((i=Vi.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),s.dispatchEvent(i)):i={promise:e,reason:r},!Ai&&(n=s["on"+t])?n(i):t===ji&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},Hi=function(t){c(Si,s,function(){var e,r=t.facade,i=t.value;if(Xi(t)&&(e=li(function(){Le?Ii.emit("unhandledRejection",i,r):Ui(ji,r,i)}),t.rejection=Le||Xi(t)?2:1,e.error))throw e.value})},Xi=function(t){return 1!==t.rejection&&!t.parent},Yi=function(t){c(Si,s,function(){var e=t.facade;Le?Ii.emit("rejectionHandled",e):Ui("rejectionhandled",e,t.value)})},qi=function(t,e,r){return function(i){t(e,i,r)}},Wi=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Fi(t,!0))},$i=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new Ri("Promise can't be resolved itself");var i=zi(e);i?ui(function(){var r={done:!1};try{c(i,e,qi($i,r,t),qi(Wi,r,t))}catch(e){Wi(r,e,t)}}):(t.value=e,t.state=1,Fi(t,!1))}catch(e){Wi({done:!1},e,t)}}};if(Oi&&(Ni=function(t){!function(t,e){if(k(_i,t))return t;throw new Xe("Incorrect invocation")}(this),Q(t),c(ri,this);var e=Pi(this);try{t(qi($i,e),qi(Wi,e))}catch(t){Wi(e,t)}},(ri=function(t){Ei(this,{type:Ti,done:!1,notified:!1,parent:!1,reactions:new Yr,rejection:!1,state:0,value:void 0})}).prototype=ne(_i=Ni.prototype,"then",function(t,e){var r=Pi(this),i=ki(cr(this,Ni));return r.parent=!0,i.ok=!R(t)||t,i.fail=R(e)&&e,i.domain=Le?Ii.domain:void 0,0===r.state?r.reactions.add(i):ui(function(){Bi(i,r)}),i.promise}),ii=function(){var t=new ri,e=Pi(t);this.promise=t,this.resolve=qi($i,e),this.reject=qi(Wi,e)},wi.f=ki=function(t){return t===Ni||void 0===t?new ii(t):Li(t)},R(ci)&&Mi!==Object.prototype)){ni=Mi.then,Ci||ne(Mi,"then",function(t,e){var r=this;return new Ni(function(t,e){c(ni,r,t,e)}).then(t,e)},{unsafe:!0});try{delete Mi.constructor}catch(t){}ze&&ze(Mi,_i)}ke({global:!0,constructor:!0,wrap:!0,forced:Oi},{Promise:Ni}),Ue(Ni,Ti,!1),hi=I(Ti),h&&hi&&!hi[He]&&(ai=hi,si=He,(oi={configurable:!0,get:function(){return this}}).get&&ie(oi.get,si,{getter:!0}),oi.set&&ie(oi.set,si,{setter:!0}),Lt.f(ai,si,oi));var Gi={},Qi=pt("iterator"),Zi=Array.prototype,Ki=pt("iterator"),Ji=function(t){if(!P(t))return Z(t,Ki)||Z(t,"@@iterator")||Gi[Qe(t)]},tn=TypeError,en=function(t,e,r){var i,n;Et(t);try{if(!(i=Z(t,"return"))){if("throw"===e)throw r;return r}i=c(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw r;if(n)throw i;return Et(i),r},rn=TypeError,nn=function(t,e){this.stopped=t,this.result=e},an=nn.prototype,sn=function(t,e,r){var i,n,a,s,o,h,u,l,f=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),y=mr(e,r&&r.that),v=function(t){return i&&en(i,"normal",t),new nn(!0,t)},m=function(t){return f?(Et(t),d?y(t[0],t[1],v):y(t[0],t[1])):d?y(t,v):y(t)};if(g)i=t.iterator;else if(p)i=t;else{if(!(n=Ji(t)))throw new rn($(t)+" is not iterable");if(void 0!==(l=n)&&(Gi.Array===l||Zi[Qi]===l)){for(a=0,s=ge(t);s>a;a++)if((o=m(t[a]))&&k(an,o))return o;return new nn(!1)}i=function(t,e){var r=arguments.length<2?Ji(t):e;if(Q(r))return Et(c(r,t));throw new tn($(t)+" is not iterable")}(t,n)}for(h=g?t.next:i.next;!(u=c(h,i)).done;){try{o=m(u.value)}catch(t){en(i,"throw",t)}if("object"==typeof o&&o&&k(an,o))return o}return new nn(!1)},on=pt("iterator"),hn=!1;try{var un=0,ln={next:function(){return{done:!!un++}},return:function(){hn=!0}};ln[on]=function(){return this},Array.from(ln,function(){throw 2})}catch(t){}var cn=mi.CONSTRUCTOR||!function(t,e){try{if(!hn)return!1}catch(t){return!1}var r=!1;try{var i={};i[on]=function(){return{next:function(){return{done:r=!0}}}},ci.all(i).then(void 0,function(){})}catch(t){}return r}();ke({target:"Promise",stat:!0,forced:cn},{all:function(t){var e=this,r=wi.f(e),i=r.resolve,n=r.reject,a=li(function(){var r=Q(e.resolve),a=[],s=0,o=1;sn(t,function(t){var h=s++,u=!1;o++,c(r,e,t).then(function(t){u||(u=!0,a[h]=t,--o||i(a))},n)}),--o||i(a)});return a.error&&n(a.value),r.promise}});var fn=ci&&ci.prototype;if(ke({target:"Promise",proto:!0,forced:mi.CONSTRUCTOR,real:!0},{catch:function(t){return this.then(void 0,t)}}),R(ci)){var gn=I("Promise").prototype.catch;fn.catch!==gn&&ne(fn,"catch",gn,{unsafe:!0})}function pn(t,e,r,i,n,a,s){try{var o=t[a](s),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function dn(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var a=t.apply(e,r);function s(t){pn(a,i,n,s,o,"next",t)}function o(t){pn(a,i,n,s,o,"throw",t)}s(void 0)})}}ke({target:"Promise",stat:!0,forced:cn},{race:function(t){var e=this,r=wi.f(e),i=r.reject,n=li(function(){var n=Q(e.resolve);sn(t,function(t){c(n,e,t).then(r.resolve,i)})});return n.error&&i(n.value),r.promise}}),ke({target:"Promise",stat:!0,forced:mi.CONSTRUCTOR},{reject:function(t){var e=wi.f(this);return(0,e.reject)(t),e.promise}}),ke({target:"Promise",stat:!0,forced:mi.CONSTRUCTOR},{resolve:function(t){return function(t,e){if(Et(t),V(e)&&e.constructor===t)return e;var r=wi.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var yn,vn=String,mn=function(t){if("Symbol"===Qe(t))throw new TypeError("Cannot convert a Symbol value to a string");return vn(t)},xn=function(){var t=Et(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},bn=s.RegExp,wn=o(function(){var t=bn("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),Sn=wn||o(function(){return!bn("a","y").sticky}),Tn={BROKEN_CARET:wn||o(function(){var t=bn("^r","gy");return t.lastIndex=2,null!==t.exec("str")}),MISSED_STICKY:Sn,UNSUPPORTED_Y:wn},On=Object.keys||function(t){return me(t,xe)},An=h&&!At?Object.defineProperties:function(t,e){Et(t);for(var r,i=N(e),n=On(e),a=n.length,s=0;a>s;)Lt.f(t,r=n[s++],i[r]);return t},Cn={f:An},Pn="prototype",En="script",Mn=Qt("IE_PROTO"),Nn=function(){},_n=function(t){return"<"+En+">"+t+"</"+En+">"},Rn=function(t){t.write(_n("")),t.close();var e=t.parentWindow.Object;return t=null,e},Vn=function(){try{yn=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Vn="undefined"!=typeof document?document.domain&&yn?Rn(yn):(e=bt("iframe"),r="java"+En+":",e.style.display="none",xr.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(_n("document.F=Object")),t.close(),t.F):Rn(yn);for(var i=xe.length;i--;)delete Vn[Pn][xe[i]];return Vn()};Zt[Mn]=!0;var In,kn,Ln=Object.create||function(t,e){var r;return null!==t?(Nn[Pn]=Et(t),r=new Nn,Nn[Pn]=null,r[Mn]=t):r=Vn(),void 0===e?r:Cn.f(r,e)},Dn=s.RegExp,jn=o(function(){var t=Dn(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}),zn=s.RegExp,Bn=o(function(){var t=zn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),Fn=re.get,Un=rt("native-string-replace",String.prototype.replace),Hn=RegExp.prototype.exec,Xn=Hn,Yn=b("".charAt),qn=b("".indexOf),Wn=b("".replace),$n=b("".slice),Gn=(kn=/b*/g,c(Hn,In=/a/,"a"),c(Hn,kn,"a"),0!==In.lastIndex||0!==kn.lastIndex),Qn=Tn.BROKEN_CARET,Zn=void 0!==/()??/.exec("")[1];(Gn||Zn||Qn||jn||Bn)&&(Xn=function(t){var e,r,i,n,a,s,o,h=this,u=Fn(h),l=mn(t),f=u.raw;if(f)return f.lastIndex=h.lastIndex,e=c(Xn,f,l),h.lastIndex=f.lastIndex,e;var g=u.groups,p=Qn&&h.sticky,d=c(xn,h),y=h.source,v=0,m=l;if(p&&(d=Wn(d,"y",""),-1===qn(d,"g")&&(d+="g"),m=$n(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Yn(l,h.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,v++),r=new RegExp("^(?:"+y+")",d)),Zn&&(r=new RegExp("^"+y+"$(?!\\s)",d)),Gn&&(i=h.lastIndex),n=c(Hn,p?r:h,m),p?n?(n.input=$n(n.input,v),n[0]=$n(n[0],v),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Gn&&n&&(h.lastIndex=h.global?n.index+n[0].length:i),Zn&&n&&n.length>1&&c(Un,n[0],r,function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(n[a]=void 0)}),n&&g)for(n.groups=s=Ln(null),a=0;a<g.length;a++)s[(o=g[a])[0]]=n[o[1]];return n});var Kn=Xn;ke({target:"RegExp",proto:!0,forced:/./.exec!==Kn},{exec:Kn});var Jn=pt("species"),ta=RegExp.prototype,ea=function(t,e,r,i){var n=pt(t),a=!o(function(){var e={};return e[n]=function(){return 7},7!==""[t](e)}),s=a&&!o(function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Jn]=function(){return r},r.flags="",r[n]=/./[n]),r.exec=function(){return e=!0,null},r[n](""),!e});if(!a||!s||r){var h=/./[n],u=e(n,""[t],function(t,e,r,i,n){var s=e.exec;return s===Kn||s===ta.exec?a&&!n?{done:!0,value:c(h,e,r,i)}:{done:!0,value:c(t,r,e,i)}:{done:!1}});ne(String.prototype,t,u[0]),ne(ta,n,u[1])}i&&Dt(ta[n],"sham",!0)},ra=b("".charAt),ia=b("".charCodeAt),na=b("".slice),aa=function(t){return function(e,r){var i,n,a=mn(M(e)),s=he(r),o=a.length;return s<0||s>=o?t?"":void 0:(i=ia(a,s))<55296||i>56319||s+1===o||(n=ia(a,s+1))<56320||n>57343?t?ra(a,s):i:t?na(a,s,s+2):n-56320+(i-55296<<10)+65536}},sa=(aa(!1),aa(!0)),oa=function(t,e,r){return e+(r?sa(t,e).length:1)},ha=TypeError,ua=function(t,e){var r=t.exec;if(R(r)){var i=c(r,t,e);return null!==i&&Et(i),i}if("RegExp"===T(t))return c(Kn,t,e);throw new ha("RegExp#exec called on incompatible receiver")};ea("match",function(t,e,r){return[function(e){var r=M(this),i=P(e)?void 0:Z(e,t);return i?c(i,e,r):new RegExp(e)[t](mn(r))},function(t){var i=Et(this),n=mn(t),a=r(e,i,n);if(a.done)return a.value;if(!i.global)return ua(i,n);var s=i.unicode;i.lastIndex=0;for(var o,h=[],u=0;null!==(o=ua(i,n));){var l=mn(o[0]);h[u]=l,""===l&&(i.lastIndex=oa(n,fe(i.lastIndex),s)),u++}return 0===u?null:h}]});var la=Math.floor,ca=b("".charAt),fa=b("".replace),ga=b("".slice),pa=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,da=/\$([$&'`]|\d{1,2})/g,ya=function(t,e,r,i,n,a){var s=r+t.length,o=i.length,h=da;return void 0!==n&&(n=nt(n),h=pa),fa(a,h,function(a,h){var u;switch(ca(h,0)){case"$":return"$";case"&":return t;case"`":return ga(e,0,r);case"'":return ga(e,s);case"<":u=n[ga(h,1,-1)];break;default:var l=+h;if(0===l)return a;if(l>o){var c=la(l/10);return 0===c?a:c<=o?void 0===i[c-1]?ca(h,1):i[c-1]+ca(h,1):a}u=i[l-1]}return void 0===u?"":u})},va=pt("replace"),ma=Math.max,xa=Math.min,ba=b([].concat),wa=b([].push),Sa=b("".indexOf),Ta=b("".slice),Oa="$0"==="a".replace(/./,"$0"),Aa=!!/./[va]&&""===/./[va]("a","$0");ea("replace",function(t,e,r){var i=Aa?"$":"$0";return[function(t,r){var i=M(this),n=P(t)?void 0:Z(t,va);return n?c(n,t,i,r):c(e,mn(i),t,r)},function(t,n){var a=Et(this),s=mn(t);if("string"==typeof n&&-1===Sa(n,i)&&-1===Sa(n,"$<")){var o=r(e,a,s,n);if(o.done)return o.value}var h=R(n);h||(n=mn(n));var u,l=a.global;l&&(u=a.unicode,a.lastIndex=0);for(var c,f=[];null!==(c=ua(a,s))&&(wa(f,c),l);)""===mn(c[0])&&(a.lastIndex=oa(s,fe(a.lastIndex),u));for(var g,p="",d=0,y=0;y<f.length;y++){for(var v,m=mn((c=f[y])[0]),x=ma(xa(he(c.index),s.length),0),b=[],w=1;w<c.length;w++)wa(b,void 0===(g=c[w])?g:String(g));var S=c.groups;if(h){var T=ba([m],b,x,s);void 0!==S&&wa(T,S),v=mn(dr(n,void 0,T))}else v=ya(m,s,x,b,S,n);x>=d&&(p+=Ta(s,d,x)+v,d=x+m.length)}return p+Ta(s,d)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!Oa||Aa);var Ca=pt("match"),Pa=TypeError,Ea=function(t){if(function(t){var e;return V(t)&&(void 0!==(e=t[Ca])?!!e:"RegExp"===T(t))}(t))throw new Pa("The method doesn't accept regular expressions");return t},Ma=pt("match"),Na=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Ma]=!1,"/./"[t](e)}catch(t){}}return!1},_a=Ot.f,Ra=yr("".slice),Va=Math.min,Ia=Na("startsWith"),ka=!Ia&&!!function(){var t=_a(String.prototype,"startsWith");return t&&!t.writable}();ke({target:"String",proto:!0,forced:!ka&&!Ia},{startsWith:function(t){var e=mn(M(this));Ea(t);var r=fe(Va(arguments.length>1?arguments[1]:void 0,e.length)),i=mn(t);return Ra(e,r,r+i.length)===i}});var La=Lt.f,Da=pt("unscopables"),ja=Array.prototype;void 0===ja[Da]&&La(ja,Da,{configurable:!0,value:Ln(null)});var za,Ba,Fa,Ua=function(t){ja[Da][t]=!0},Ha=!o(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Xa=Qt("IE_PROTO"),Ya=Object,qa=Ya.prototype,Wa=Ha?Ya.getPrototypeOf:function(t){var e=nt(t);if(st(e,Xa))return e[Xa];var r=e.constructor;return R(r)&&e instanceof r?r.prototype:e instanceof Ya?qa:null},$a=pt("iterator"),Ga=!1;[].keys&&("next"in(Fa=[].keys())?(Ba=Wa(Wa(Fa)))!==Object.prototype&&(za=Ba):Ga=!0);var Qa=!V(za)||o(function(){var t={};return za[$a].call(t)!==t});Qa&&(za={}),R(za[$a])||ne(za,$a,function(){return this});var Za={IteratorPrototype:za,BUGGY_SAFARI_ITERATORS:Ga},Ka=Za.IteratorPrototype,Ja=function(){return this},ts=Ft.PROPER,es=Ft.CONFIGURABLE,rs=Za.IteratorPrototype,is=Za.BUGGY_SAFARI_ITERATORS,ns=pt("iterator"),as="keys",ss="values",os="entries",hs=function(){return this},us=function(t,e){return{value:t,done:e}},ls=Lt.f,cs="Array Iterator",fs=re.set,gs=re.getterFor(cs),ps=function(t,e,r,i,n,a,s){!function(t,e,r,i){var n=e+" Iterator";t.prototype=Ln(Ka,{next:y(1,function(){var t=gs(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,us(void 0,!0);switch(t.kind){case"keys":return us(r,!1);case"values":return us(e[r],!1)}return us([r,e[r]],!1)})}),Ue(t,n,!1),Gi[n]=Ja}(r,e);var o,h,u,l=function(t){if(t===n&&v)return v;if(!is&&t&&t in p)return p[t];switch(t){case as:case ss:case os:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",g=!1,p=t.prototype,d=p[ns]||p["@@iterator"]||n&&p[n],v=!is&&d||l(n),m=p.entries||d;if(m&&(o=Wa(m.call(new t)))!==Object.prototype&&o.next&&(Wa(o)!==rs&&(ze?ze(o,rs):R(o[ns])||ne(o,ns,hs)),Ue(o,f,!0)),ts&&d&&d.name!==ss&&(es?Dt(p,"name",ss):(g=!0,v=function(){return c(d,this)})),n)if(void(h={values:l(ss),keys:l(as),entries:l(os)}))for(u in h)(is||g||!(u in p))&&ne(p,u,h[u]);else ke({target:e,proto:!0,forced:is||g},h);return p[ns]!==v&&ne(p,ns,v,{name:n}),Gi[e]=v,h}(Array,"Array",function(t,e){fs(this,{type:cs,target:N(t),index:0,kind:e})},0,"values"),ds=Gi.Arguments=Gi.Array;if(Ua("keys"),Ua("values"),Ua("entries"),h&&"values"!==ds.name)try{ls(ds,"name",{value:"values"})}catch(t){}var ys={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},vs=bt("span").classList,ms=vs&&vs.constructor&&vs.constructor.prototype,xs=ms===Object.prototype?void 0:ms,bs=pt("iterator"),ws=ps.values,Ss=function(t,e){if(t){if(t[bs]!==ws)try{Dt(t,bs,ws)}catch(e){t[bs]=ws}if(Ue(t,e,!0),ys[e])for(var r in ps)if(t[r]!==ps[r])try{Dt(t,r,ps[r])}catch(e){t[r]=ps[r]}}};for(var Ts in ys)Ss(s[Ts]&&s[Ts].prototype,Ts);function Os(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Ss(xs,"DOMTokenList");var As=TypeError,Cs="Reduce of empty array with no initial value",Ps=function(t){return function(e,r,i,n){var a=nt(e),s=C(a),o=ge(a);if(Q(r),0===o&&i<2)throw new As(Cs);var h=t?o-1:0,u=t?-1:1;if(i<2)for(;;){if(h in s){n=s[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw new As(Cs)}for(;t?h>=0:o>h;h+=u)h in s&&(n=r(n,s[h],h,a));return n}},Es=function(t,e){var r=[][t];return!!r&&o(function(){r.call(null,e||function(){return 1},1)})},Ms=[Ps(!1),Ps(!0)][0],Ns=!Le&&F>79&&F<83||!Es("reduce");ke({target:"Array",proto:!0,forced:Ns},{reduce:function(t){var e=arguments.length;return Ms(this,t,e,e>1?arguments[1]:void 0)}});var _s=Ot.f,Rs=yr("".slice),Vs=Math.min,Is=Na("endsWith"),ks=!Is&&!!function(){var t=_s(String.prototype,"endsWith");return t&&!t.writable}();ke({target:"String",proto:!0,forced:!ks&&!Is},{endsWith:function(t){var e=mn(M(this));Ea(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:Vs(fe(r),i),a=mn(t);return Rs(e,n-a.length,n)===a}});var Ls=Tn.UNSUPPORTED_Y,Ds=Math.min,js=b([].push),zs=b("".slice),Bs=!o(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),Fs="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;ea("split",function(t,e,r){var i="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:c(e,this,t,r)}:e;return[function(e,r){var n=M(this),a=P(e)?void 0:Z(e,t);return a?c(a,e,n,r):c(i,mn(n),e,r)},function(t,n){var a=Et(this),s=mn(t);if(!Fs){var o=r(i,a,s,n,i!==e);if(o.done)return o.value}var h=cr(a,RegExp),u=a.unicode,l=new h(Ls?"^(?:"+a.source+")":a,(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ls?"g":"y")),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(0===s.length)return null===ua(l,s)?[s]:[];for(var f=0,g=0,p=[];g<s.length;){l.lastIndex=Ls?0:g;var d,y=ua(l,Ls?zs(s,g):s);if(null===y||(d=Ds(fe(l.lastIndex+(Ls?g:0)),s.length))===f)g=oa(s,g,u);else{if(js(p,zs(s,f,g)),p.length===c)return p;for(var v=1;v<=y.length-1;v++)if(js(p,y[v]),p.length===c)return p;g=f=d}}return js(p,zs(s,f)),p}]},Fs||!Bs,Ls);for(var Us=e(function(e){(function(){var t,r,i,n,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-a)/1e6},r=process.hrtime,n=(t=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*process.uptime(),a=n-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(t)}),Hs="undefined"==typeof window?t:window,Xs=["moz","webkit"],Ys="AnimationFrame",qs=Hs["request"+Ys],Ws=Hs["cancel"+Ys]||Hs["cancelRequest"+Ys],$s=0;!qs&&$s<Xs.length;$s++)qs=Hs[Xs[$s]+"Request"+Ys],Ws=Hs[Xs[$s]+"Cancel"+Ys]||Hs[Xs[$s]+"CancelRequest"+Ys];if(!qs||!Ws){var Gs=0,Qs=0,Zs=[];qs=function(t){if(0===Zs.length){var e=Us(),r=Math.max(0,16.666666666666668-(e-Gs));Gs=r+e,setTimeout(function(){var t=Zs.slice(0);Zs.length=0;for(var e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(Gs)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))}return Zs.push({handle:++Qs,callback:t,cancelled:!1}),Qs},Ws=function(t){for(var e=0;e<Zs.length;e++)Zs[e].handle===t&&(Zs[e].cancelled=!0)}}var Ks=function(t){return qs.call(Hs,t)};Ks.cancel=function(){Ws.apply(Hs,arguments)},Ks.polyfill=function(t){t||(t=Hs),t.requestAnimationFrame=qs,t.cancelAnimationFrame=Ws};var Js,to="\t\n\v\f\r                 \u2028\u2029\ufeff",eo=b("".replace),ro=RegExp("^["+to+"]+"),io=RegExp("(^|[^"+to+"])["+to+"]+$"),no=function(t){return function(e){var r=mn(M(e));return 1&t&&(r=eo(r,ro,"")),2&t&&(r=eo(r,io,"$1")),r}},ao={start:no(1),end:no(2),trim:no(3)},so=Ft.PROPER,oo=ao.trim;ke({target:"String",proto:!0,forced:(Js="trim",o(function(){return!!to[Js]()||"​…᠎"!=="​…᠎"[Js]()||so&&to[Js].name!==Js}))},{trim:function(){return oo(this)}});var ho=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<r.length;i++){var n=r[i].process,a=r[i].re.exec(t);if(a){var s=n(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i<r.length;i++)for(var n=r[i].example,a=0;a<n.length;a++)t[t.length]=n[a];for(var s in e)t[t.length]=s;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),i=0;i<t.length;i++)try{var h=document.createElement("li"),u=new RGBColor(t[i]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),l.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+t[i]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(l),h.appendChild(c),o.appendChild(h)}catch(t){}return o}},uo=de.indexOf,lo=yr([].indexOf),co=!!lo&&1/lo([1],1,-0)<0,fo=co||!Es("indexOf");ke({target:"Array",proto:!0,forced:fo},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return co?lo(this,t,e)||0:uo(this,t,e)}});var go=b("".indexOf);ke({target:"String",proto:!0,forced:!Na("includes")},{includes:function(t){return!!~go(mn(M(this)),mn(Ea(t)),arguments.length>1?arguments[1]:void 0)}});var po=Array.isArray||function(t){return"Array"===T(t)},yo=b([].reverse),vo=[1,2];ke({target:"Array",proto:!0,forced:String(vo)===String(vo.reverse())},{reverse:function(){return po(this)&&(this.length=this.length),yo(this)}});var mo=function(t,e){return(mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function xo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}mo(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function bo(t,e){var r=t[0],i=t[1];return[r*Math.cos(e)-i*Math.sin(e),r*Math.sin(e)+i*Math.cos(e)]}function wo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var So=Math.PI;function To(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,a=t.x,s=t.y;i=Math.abs(t.rX),n=Math.abs(t.rY);var o=bo([(e-a)/2,(r-s)/2],-t.xRot/180*So),h=o[0],u=o[1],l=Math.pow(h,2)/Math.pow(i,2)+Math.pow(u,2)/Math.pow(n,2);1<l&&(i*=Math.sqrt(l),n*=Math.sqrt(l)),t.rX=i,t.rY=n;var c=Math.pow(i,2)*Math.pow(u,2)+Math.pow(n,2)*Math.pow(h,2),f=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-c)/c)),g=i*u/n*f,p=-n*h/i*f,d=bo([g,p],t.xRot/180*So);t.cX=d[0]+(e+a)/2,t.cY=d[1]+(r+s)/2,t.phi1=Math.atan2((u-p)/n,(h-g)/i),t.phi2=Math.atan2((-u-p)/n,(-h-g)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*So),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*So),t.phi1*=180/So,t.phi2*=180/So}function Oo(t,e,r){wo(t,e,r);var i=t*t+e*e-r*r;if(0>i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var Ao,Co=Math.PI/180;function Po(t,e,r){return(1-r)*t+r*e}function Eo(t,e,r,i){return t+Math.cos(i/180*So)*e+Math.sin(i/180*So)*r}function Mo(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,h=6*(s-a),u=3*a;return Math.abs(o)<n?[-u/h]:function(t,e,r){void 0===r&&(r=1e-6);var i=t*t/4-e;if(i<-r)return[];if(i<=r)return[-t/2];var n=Math.sqrt(i);return[-t/2-n,-t/2+n]}(h/o,u/o,n)}function No(t,e,r,i,n){var a=1-n;return t*(a*a*a)+e*(3*a*a*n)+r*(3*a*n*n)+i*(n*n*n)}!function(t){function e(){return n(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function r(){var t=NaN,e=NaN,r=NaN,i=NaN;return n(function(n,a,s){return n.type&Lo.SMOOTH_CURVE_TO&&(n.type=Lo.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?s:e,n.x1=n.relative?a-t:2*a-t,n.y1=n.relative?s-e:2*s-e),n.type&Lo.CURVE_TO?(t=n.relative?a+n.x2:n.x2,e=n.relative?s+n.y2:n.y2):(t=NaN,e=NaN),n.type&Lo.SMOOTH_QUAD_TO&&(n.type=Lo.QUAD_TO,r=isNaN(r)?a:r,i=isNaN(i)?s:i,n.x1=n.relative?a-r:2*a-r,n.y1=n.relative?s-i:2*s-i),n.type&Lo.QUAD_TO?(r=n.relative?a+n.x1:n.x1,i=n.relative?s+n.y1:n.y1):(r=NaN,i=NaN),n})}function i(){var t=NaN,e=NaN;return n(function(r,i,n){if(r.type&Lo.SMOOTH_QUAD_TO&&(r.type=Lo.QUAD_TO,t=isNaN(t)?i:t,e=isNaN(e)?n:e,r.x1=r.relative?i-t:2*i-t,r.y1=r.relative?n-e:2*n-e),r.type&Lo.QUAD_TO){t=r.relative?i+r.x1:r.x1,e=r.relative?n+r.y1:r.y1;var a=r.x1,s=r.y1;r.type=Lo.CURVE_TO,r.x1=((r.relative?0:i)+2*a)/3,r.y1=((r.relative?0:n)+2*s)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*s)/3}else t=NaN,e=NaN;return r})}function n(t){var e=0,r=0,i=NaN,n=NaN;return function(a){if(isNaN(i)&&!(a.type&Lo.MOVE_TO))throw new Error("path must start with moveto");var s=t(a,e,r,i,n);return a.type&Lo.CLOSE_PATH&&(e=i,r=n),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&Lo.MOVE_TO&&(i=e,n=r),s}}function a(t,e,r,i,a,s){return wo(t,e,r,i,a,s),n(function(n,o,h,u){var l=n.x1,c=n.x2,f=n.relative&&!isNaN(u),g=void 0!==n.x?n.x:f?0:o,p=void 0!==n.y?n.y:f?0:h;function d(t){return t*t}n.type&Lo.HORIZ_LINE_TO&&0!==e&&(n.type=Lo.LINE_TO,n.y=n.relative?0:h),n.type&Lo.VERT_LINE_TO&&0!==r&&(n.type=Lo.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+p*r+(f?0:a)),void 0!==n.y&&(n.y=g*e+n.y*i+(f?0:s)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*r+(f?0:a)),void 0!==n.y1&&(n.y1=l*e+n.y1*i+(f?0:s)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*r+(f?0:a)),void 0!==n.y2&&(n.y2=c*e+n.y2*i+(f?0:s));var y=t*i-e*r;if(void 0!==n.xRot&&(1!==t||0!==e||0!==r||1!==i))if(0===y)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=Lo.LINE_TO;else{var v=n.xRot*Math.PI/180,m=Math.sin(v),x=Math.cos(v),b=1/d(n.rX),w=1/d(n.rY),S=d(x)*b+d(m)*w,T=2*m*x*(b-w),O=d(m)*b+d(x)*w,A=S*i*i-T*e*i+O*e*e,C=T*(t*i+e*r)-2*(S*r*i+O*t*e),P=S*r*r-T*t*r+O*t*t,E=(Math.atan2(C,A-P)+Math.PI)%Math.PI/2,M=Math.sin(E),N=Math.cos(E);n.rX=Math.abs(y)/Math.sqrt(A*d(N)+C*M*N+P*d(M)),n.rY=Math.abs(y)/Math.sqrt(A*d(M)-C*M*N+P*d(N)),n.xRot=180*E/Math.PI}return void 0!==n.sweepFlag&&0>y&&(n.sweepFlag=+!n.sweepFlag),n})}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),wo(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n(function(i,n,a,s,o){if(isNaN(s)&&!(i.type&Lo.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&Lo.HORIZ_LINE_TO&&(i.type=Lo.LINE_TO,i.y=i.relative?0:a),r&&i.type&Lo.VERT_LINE_TO&&(i.type=Lo.LINE_TO,i.x=i.relative?0:n),t&&i.type&Lo.CLOSE_PATH&&(i.type=Lo.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&Lo.ARC&&(0===i.rX||0===i.rY)&&(i.type=Lo.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i})},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),wo(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n(function(n,s,o,h,u){var l=Math.abs,c=!1,f=0,g=0;if(n.type&Lo.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,g=isNaN(r)?0:o-r),n.type&(Lo.CURVE_TO|Lo.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&Lo.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&Lo.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&Lo.LINE_COMMANDS||n.type&Lo.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&Lo.CURVE_TO||n.type&Lo.SMOOTH_CURVE_TO||n.type&Lo.QUAD_TO||n.type&Lo.SMOOTH_QUAD_TO){var p=void 0===n.x?0:n.relative?n.x:n.x-s,d=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,g=isNaN(a)?void 0===n.y1?g:n.relative?n.y:n.y1-o:a-o;var y=void 0===n.x2?0:n.relative?n.x:n.x2-s,v=void 0===n.y2?0:n.relative?n.y:n.y2-o;l(p)<=t&&l(d)<=t&&l(f)<=t&&l(g)<=t&&l(y)<=t&&l(v)<=t&&(c=!0)}return n.type&Lo.CLOSE_PATH&&l(s-h)<=t&&l(o-u)<=t&&(c=!0),c?[]:n})},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),wo(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),wo(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),wo(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return wo(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return wo(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),wo(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),wo(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n(function(t,e,r){return Lo.ARC===t.type?function(t,e,r){var i,n,a,s;t.cX||To(t,e,r);for(var o=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-o,u=Math.ceil(h/90),l=new Array(u),c=e,f=r,g=0;g<u;g++){var p=Po(t.phi1,t.phi2,g/u),d=Po(t.phi1,t.phi2,(g+1)/u),y=4/3*Math.tan((d-p)*Co/4),v=[Math.cos(p*Co)-y*Math.sin(p*Co),Math.sin(p*Co)+y*Math.cos(p*Co)],m=v[0],x=v[1],b=[Math.cos(d*Co),Math.sin(d*Co)],w=b[0],S=b[1],T=[w+y*Math.sin(d*Co),S-y*Math.cos(d*Co)],O=T[0],A=T[1];l[g]={relative:t.relative,type:Lo.CURVE_TO};var C=function(e,r){var i=bo([e*t.rX,r*t.rY],t.xRot);return[t.cX+i[0],t.cY+i[1]]};i=C(m,x),l[g].x1=i[0],l[g].y1=i[1],n=C(O,A),l[g].x2=n[0],l[g].y2=n[1],a=C(w,S),l[g].x=a[0],l[g].y=a[1],t.relative&&(l[g].x1-=c,l[g].y1-=f,l[g].x2-=c,l[g].y2-=f,l[g].x-=c,l[g].y-=f),c=(s=[l[g].x,l[g].y])[0],f=s[1]}return l}(t,t.relative?0:e,t.relative?0:r):t})},t.ANNOTATE_ARCS=function(){return n(function(t,e,r){return t.relative&&(e=0,r=0),Lo.ARC===t.type&&To(t,e,r),t})},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),a=i(),s=r(),o=n(function(e,r,i){var n=s(a(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function h(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function u(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&Lo.DRAWING_COMMANDS&&(h(r),u(i)),n.type&Lo.HORIZ_LINE_TO&&h(n.x),n.type&Lo.VERT_LINE_TO&&u(n.y),n.type&Lo.LINE_TO&&(h(n.x),u(n.y)),n.type&Lo.CURVE_TO){h(n.x),u(n.y);for(var l=0,c=Mo(r,n.x1,n.x2,n.x);l<c.length;l++)0<(P=c[l])&&1>P&&h(No(r,n.x1,n.x2,n.x,P));for(var f=0,g=Mo(i,n.y1,n.y2,n.y);f<g.length;f++)0<(P=g[f])&&1>P&&u(No(i,n.y1,n.y2,n.y,P))}if(n.type&Lo.ARC){h(n.x),u(n.y),To(n,r,i);for(var p=n.xRot/180*Math.PI,d=Math.cos(p)*n.rX,y=Math.sin(p)*n.rX,v=-Math.sin(p)*n.rY,m=Math.cos(p)*n.rY,x=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],b=x[0],w=x[1],S=function(t){var e=180*Math.atan2(t[1],t[0])/Math.PI;return e<b?e+360:e},T=0,O=Oo(v,-d,0).map(S);T<O.length;T++)(P=O[T])>b&&P<w&&h(Eo(n.cX,d,v,P));for(var A=0,C=Oo(m,-y,0).map(S);A<C.length;A++){var P;(P=C[A])>b&&P<w&&u(Eo(n.cY,y,m,P))}}return e});return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(Ao||(Ao={}));var _o,Ro=function(){function t(){}return t.prototype.round=function(t){return this.transform(Ao.ROUND(t))},t.prototype.toAbs=fun