hardpy 0.17.0__py3-none-any.whl → 0.17.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hardpy/hardpy_panel/frontend/dist/assets/{allPaths-COgYwK8M.js → allPaths-LQifhvrX.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/assets/{allPathsLoader-B8vBKA-e.js → allPathsLoader-C-JecT3u.js} +2 -2
- hardpy/hardpy_panel/frontend/dist/assets/{browser-ponyfill-CVrkrold.js → browser-ponyfill-B-CPdmQc.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/assets/{index-B3wEgxl0.js → index-B2oxSaK6.js} +4 -4
- hardpy/hardpy_panel/frontend/dist/assets/{splitPathsBySizeLoader-CLCw9W9y.js → splitPathsBySizeLoader-CBTnepth.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/index.html +1 -1
- {hardpy-0.17.0.dist-info → hardpy-0.17.1.dist-info}/METADATA +1 -1
- {hardpy-0.17.0.dist-info → hardpy-0.17.1.dist-info}/RECORD +11 -11
- {hardpy-0.17.0.dist-info → hardpy-0.17.1.dist-info}/WHEEL +0 -0
- {hardpy-0.17.0.dist-info → hardpy-0.17.1.dist-info}/entry_points.txt +0 -0
- {hardpy-0.17.0.dist-info → hardpy-0.17.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -43,11 +43,11 @@ return `+t+";",{})}function qae(t){var e=["return function(doc) {",' "use stric
|
|
|
43
43
|
`);return f4(e,{})}function Hae(t,e){if(t.selector&&t.filter&&t.filter!=="_selector"){var o=typeof t.filter=="string"?t.filter:"function";return e(new Error('selector invalid for filter "'+o+'"'))}e()}function Gae(t){t.view&&!t.filter&&(t.filter="_view"),t.selector&&!t.filter&&(t.filter="_selector"),t.filter&&typeof t.filter=="string"&&(t.filter==="_view"?t.view=RU(t.view):t.filter=RU(t.filter))}function Wae(t,e){return e.filter&&typeof e.filter=="string"&&!e.doc_ids&&!Nb(t.db)}function $ae(t,e){var o=e.complete;if(e.filter==="_view"){if(!e.view||typeof e.view!="string"){var _=Bc(dD,"`view` filter parameter not found or invalid.");return o(_)}var U=TN(e.view);t.db.get("_design/"+U[0],function(me,Le){if(t.isCancelled)return o(null,{status:"cancelled"});if(me)return o(yM(me));var Re=Le&&Le.views&&Le.views[U[1]]&&Le.views[U[1]].map;if(!Re)return o(Bc(m_,Le.views?"missing json key: "+U[1]:"missing json key: views"));e.filter=qae(Re),t.doChanges(e)})}else if(e.selector)e.filter=function(me){return jae(me,e.selector)},t.doChanges(e);else{var te=TN(e.filter);t.db.get("_design/"+te[0],function(me,Le){if(t.isCancelled)return o(null,{status:"cancelled"});if(me)return o(yM(me));var Re=Le&&Le.filters&&Le.filters[te[1]];if(!Re)return o(Bc(m_,Le&&Le.filters?"missing json key: "+te[1]:"missing json key: filters"));e.filter=Vae(Re),t.doChanges(e)})}}function Xae(t){t._changesFilterPlugin={validate:Hae,normalize:Gae,shouldFilter:Wae,filter:$ae}}jc.plugin(Xae);jc.version=dae;function aG(t){return t.reduce(function(e,o){return e[o]=!0,e},{})}var Yae=aG(["_id","_rev","_access","_attachments","_deleted","_revisions","_revs_info","_conflicts","_deleted_conflicts","_local_seq","_rev_tree","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats","_removed"]),Zae=aG(["_access","_attachments","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats"]);function qU(t){if(!/^\d+-/.test(t))return Bc(UH);var e=t.indexOf("-"),o=t.substring(0,e),_=t.substring(e+1);return{prefix:parseInt(o,10),id:_}}function Kae(t,e){for(var o=t.start-t.ids.length+1,_=t.ids,U=[_[0],e,[]],te=1,me=_.length;te<me;te++)U=[_[te],{status:"missing"},[U]];return[{pos:o,ids:U}]}function oG(t,e,o){o||(o={deterministic_revs:!0});var _,U,te,me={status:"available"};if(t._deleted&&(me.deleted=!0),e)if(t._id||(t._id=pD()),U=WH(t,o.deterministic_revs),t._rev){if(te=qU(t._rev),te.error)return te;t._rev_tree=[{pos:te.prefix,ids:[te.id,{status:"missing"},[[U,me,[]]]]}],_=te.prefix+1}else t._rev_tree=[{pos:1,ids:[U,me,[]]}],_=1;else if(t._revisions&&(t._rev_tree=Kae(t._revisions,me),_=t._revisions.start,U=t._revisions.ids[0]),!t._rev_tree){if(te=qU(t._rev),te.error)return te;_=te.prefix,U=te.id,t._rev_tree=[{pos:_,ids:[U,me,[]]}]}jH(t._id),t._rev=_+"-"+U;var Le={metadata:{},data:{}};for(var Re in t)if(Object.prototype.hasOwnProperty.call(t,Re)){var je=Re[0]==="_";if(je&&!Yae[Re]){var Qe=Bc(PU,Re);throw Qe.message=PU.message+": "+Re,Qe}else je&&!Zae[Re]?Le.metadata[Re.slice(1)]=t[Re]:Le.data[Re]=t[Re]}return Le}function Jae(t){try{return h4(t)}catch{var e=Bc(BH,"Attachment is not a valid base64 string");return{error:e}}}function Qae(t,e,o){var _=Jae(t.data);if(_.error)return o(_.error);t.length=_.length,e==="blob"?t.data=p4(_,t.content_type):e==="base64"?t.data=ZL(_):t.data=_,g4(_,function(U){t.digest="md5-"+U,o()})}function eoe(t,e,o){g4(t.data,function(_){t.digest="md5-"+_,t.length=t.data.size||t.data.length||0,e==="binary"?HH(t.data,function(U){t.data=U,o()}):e==="base64"?m4(t.data,function(U){t.data=U,o()}):o()})}function toe(t,e,o){if(t.stub)return o();typeof t.data=="string"?Qae(t,e,o):eoe(t,e,o)}function roe(t,e,o){if(!t.length)return o();var _=0,U;t.forEach(function(me){var Le=me.data&&me.data._attachments?Object.keys(me.data._attachments):[],Re=0;if(!Le.length)return te();function je(nt){U=nt,Re++,Re===Le.length&&te()}for(var Qe in me.data._attachments)Object.prototype.hasOwnProperty.call(me.data._attachments,Qe)&&toe(me.data._attachments[Qe],e,je)});function te(){_++,t.length===_&&(U?o(U):o())}}function noe(t,e,o,_,U,te,me,Le){if(Xie(e.rev_tree,o.metadata.rev)&&!Le)return _[U]=o,te();var Re=e.winningRev||P3(e),je="deleted"in e?e.deleted:_2(e,Re),Qe="deleted"in o.metadata?o.metadata.deleted:_2(o.metadata),nt=/^1-/.test(o.metadata.rev);if(je&&!Qe&&Le&&nt){var yt=o.data;yt._rev=Re,yt._id=o.metadata.id,o=oG(yt,Le)}var Wt=YH(e.rev_tree,o.metadata.rev_tree[0],t),Bt=Le&&(je&&Qe&&Wt.conflicts!=="new_leaf"||!je&&Wt.conflicts!=="new_leaf"||je&&!Qe&&Wt.conflicts==="new_branch");if(Bt){var rr=Bc(gM);return _[U]=rr,te()}var Nt=o.metadata.rev;o.metadata.rev_tree=Wt.tree,o.stemmedRevs=Wt.stemmedRevs||[],e.rev_map&&(o.metadata.rev_map=e.rev_map);var Se=P3(o.metadata),lr=_2(o.metadata,Se),Zt=je===lr?0:je<lr?-1:1,$t;Nt===Se?$t=lr:$t=_2(o.metadata,Nt),me(o,Se,lr,$t,!0,Zt,U,te)}function ioe(t){return t.metadata.rev_tree[0].ids[1].status==="missing"}function aoe(t,e,o,_,U,te,me,Le,Re){t=t||1e3;function je(rr,Nt,Se){var lr=P3(rr.metadata),Zt=_2(rr.metadata,lr);if("was_delete"in Le&&Zt)return te[Nt]=Bc(m_,"deleted"),Se();var $t=Qe&&ioe(rr);if($t){var kt=Bc(gM);return te[Nt]=kt,Se()}var Jt=Zt?0:1;me(rr,lr,Zt,Zt,!1,Jt,Nt,Se)}var Qe=Le.new_edits,nt=new Ry,yt=0,Wt=e.length;function Bt(){++yt===Wt&&Re&&Re()}e.forEach(function(rr,Nt){if(rr._id&&w3(rr._id)){var Se=rr._deleted?"_removeLocal":"_putLocal";o[Se](rr,{ctx:U},function(Zt,$t){te[Nt]=Zt||$t,Bt()});return}var lr=rr.metadata.id;nt.has(lr)?(Wt--,nt.get(lr).push([rr,Nt])):nt.set(lr,[[rr,Nt]])}),nt.forEach(function(rr,Nt){var Se=0;function lr(){++Se<rr.length?Zt():Bt()}function Zt(){var $t=rr[Se],kt=$t[0],Jt=$t[1];if(_.has(Nt))noe(t,_.get(Nt),kt,te,Jt,lr,me,Qe);else{var Ur=YH([],kt.metadata.rev_tree[0],t);kt.metadata.rev_tree=Ur.tree,kt.stemmedRevs=Ur.stemmedRevs||[],je(kt,Jt,lr)}}Zt()})}var ooe=5,om="document-store",Ng="by-sequence",g_="attach-store",m3="attach-seq-store",Y0="meta-store",Rb="local-store",MN="detect-blob-support";function soe(t){try{return JSON.parse(t)}catch{return RH.parse(t)}}function loe(t){try{return JSON.stringify(t)}catch{return RH.stringify(t)}}function zb(t){return function(e){var o="unknown_error";e.target&&e.target.error&&(o=e.target.error.name||e.target.error.message),t(Bc(u4,o,e.type))}}function kN(t,e,o){return{data:loe(t),winningRev:e,deletedOrLocal:o?"1":"0",seq:t.seq,id:t.id}}function g3(t){if(!t)return null;var e=soe(t.data);return e.winningRev=t.winningRev,e.deleted=t.deletedOrLocal==="1",e.seq=t.seq,e}function bI(t){if(!t)return t;var e=t._doc_id_rev.lastIndexOf(":");return t._id=t._doc_id_rev.substring(0,e-1),t._rev=t._doc_id_rev.substring(e+1),delete t._doc_id_rev,t}function sG(t,e,o,_){o?_(t?typeof t!="string"?t:v4(t,e):d4([""],{type:e})):t?typeof t!="string"?qH(t,function(U){_(ZL(U))}):_(t):_("")}function lG(t,e,o,_){var U=Object.keys(t._attachments||{});if(!U.length)return _&&_();var te=0;function me(){++te===U.length&&_&&_()}function Le(Re,je){var Qe=Re._attachments[je],nt=Qe.digest,yt=o.objectStore(g_).get(nt);yt.onsuccess=function(Wt){Qe.body=Wt.target.result.body,me()}}U.forEach(function(Re){e.attachments&&e.include_docs?Le(t,Re):(t._attachments[Re].stub=!0,me())})}function LN(t,e){return Promise.all(t.map(function(o){if(o.doc&&o.doc._attachments){var _=Object.keys(o.doc._attachments);return Promise.all(_.map(function(U){var te=o.doc._attachments[U];if("body"in te){var me=te.body,Le=te.content_type;return new Promise(function(Re){sG(me,Le,e,function(je){o.doc._attachments[U]=L3(YL(te,["digest","content_type"]),{data:je}),Re()})})}}))}}))}function uG(t,e,o){var _=[],U=o.objectStore(Ng),te=o.objectStore(g_),me=o.objectStore(m3),Le=t.length;function Re(){Le--,Le||je()}function je(){_.length&&_.forEach(function(Qe){var nt=me.index("digestSeq").count(IDBKeyRange.bound(Qe+"::",Qe+"::",!1,!1));nt.onsuccess=function(yt){var Wt=yt.target.result;Wt||te.delete(Qe)}})}t.forEach(function(Qe){var nt=U.index("_doc_id_rev"),yt=e+"::"+Qe;nt.getKey(yt).onsuccess=function(Wt){var Bt=Wt.target.result;if(typeof Bt!="number")return Re();U.delete(Bt);var rr=me.index("seq").openCursor(IDBKeyRange.only(Bt));rr.onsuccess=function(Nt){var Se=Nt.target.result;if(Se){var lr=Se.value.digestSeq.split("::")[0];_.push(lr),me.delete(Se.primaryKey),Se.continue()}else Re()}}})}function mx(t,e,o){try{return{txn:t.transaction(e,o)}}catch(_){return{error:_}}}var Y5=new yie;function uoe(t,e,o,_,U,te){for(var me=e.docs,Le,Re,je,Qe,nt,yt,Wt,Bt,rr=0,Nt=me.length;rr<Nt;rr++){var Se=me[rr];Se._id&&w3(Se._id)||(Se=me[rr]=oG(Se,o.new_edits,t),Se.error&&!Wt&&(Wt=Se))}if(Wt)return te(Wt);var lr=!1,Zt=0,$t=new Array(me.length),kt=new Ry,Jt=!1,Ur=_._meta.blobSupport?"blob":"base64";roe(me,Ur,function(Mn){if(Mn)return te(Mn);Lr()});function Lr(){var Mn=[om,Ng,g_,Rb,m3,Y0],Yn=mx(U,Mn,"readwrite");if(Yn.error)return te(Yn.error);Le=Yn.txn,Le.onabort=zb(te),Le.ontimeout=zb(te),Le.oncomplete=Zn,Re=Le.objectStore(om),je=Le.objectStore(Ng),Qe=Le.objectStore(g_),nt=Le.objectStore(m3),yt=Le.objectStore(Y0),yt.get(Y0).onsuccess=function(Zi){Bt=Zi.target.result,Ln()},ua(function(Zi){if(Zi)return Jt=!0,te(Zi);ci()})}function xn(){lr=!0,Ln()}function In(){aoe(t.revs_limit,me,_,kt,Le,$t,Qi,o,xn)}function Ln(){!Bt||!lr||(Bt.docCount+=Zt,yt.put(Bt))}function ci(){if(!me.length)return;var Mn=0;function Yn(){++Mn===me.length&&In()}function Zi(Ci){var Oa=g3(Ci.target.result);Oa&&kt.set(Oa.id,Oa),Yn()}for(var Oi=0,Wn=me.length;Oi<Wn;Oi++){var En=me[Oi];if(En._id&&w3(En._id)){Yn();continue}var aa=Re.get(En.metadata.id);aa.onsuccess=Zi}}function Zn(){Jt||(Y5.notify(_._meta.name),te(null,$t))}function ai(Mn,Yn){var Zi=Qe.get(Mn);Zi.onsuccess=function(Oi){if(Oi.target.result)Yn();else{var Wn=Bc(Aie,"unknown stub attachment with digest "+Mn);Wn.status=412,Yn(Wn)}}}function ua(Mn){var Yn=[];if(me.forEach(function(En){En.data&&En.data._attachments&&Object.keys(En.data._attachments).forEach(function(aa){var Ci=En.data._attachments[aa];Ci.stub&&Yn.push(Ci.digest)})}),!Yn.length)return Mn();var Zi=0,Oi;function Wn(){++Zi===Yn.length&&Mn(Oi)}Yn.forEach(function(En){ai(En,function(aa){aa&&!Oi&&(Oi=aa),Wn()})})}function Qi(Mn,Yn,Zi,Oi,Wn,En,aa,Ci){Mn.metadata.winningRev=Yn,Mn.metadata.deleted=Zi;var Oa=Mn.data;Oa._id=Mn.metadata.id,Oa._rev=Mn.metadata.rev,Oi&&(Oa._deleted=!0);var Ca=Oa._attachments&&Object.keys(Oa._attachments).length;if(Ca)return Nn(Mn,Yn,Zi,Wn,aa,Ci);Zt+=En,Ln(),ta(Mn,Yn,Zi,Wn,aa,Ci)}function ta(Mn,Yn,Zi,Oi,Wn,En){var aa=Mn.data,Ci=Mn.metadata;aa._doc_id_rev=Ci.id+"::"+Ci.rev,delete aa._id,delete aa._rev;function Oa(Za){var dl=Mn.stemmedRevs||[];Oi&&_.auto_compaction&&(dl=dl.concat(jie(Mn.metadata))),dl&&dl.length&&uG(dl,Mn.metadata.id,Le),Ci.seq=Za.target.result;var mo=kN(Ci,Yn,Zi),Co=Re.put(mo);Co.onsuccess=Po}function Ca(Za){Za.preventDefault(),Za.stopPropagation();var dl=je.index("_doc_id_rev"),mo=dl.getKey(aa._doc_id_rev);mo.onsuccess=function(Co){var Jo=je.put(aa,Co.target.result);Jo.onsuccess=Oa}}function Po(){$t[Wn]={ok:!0,id:Ci.id,rev:Ci.rev},kt.set(Mn.metadata.id,Mn.metadata),Qn(Mn,Ci.seq,En)}var Eo=je.put(aa);Eo.onsuccess=Oa,Eo.onerror=Ca}function Nn(Mn,Yn,Zi,Oi,Wn,En){var aa=Mn.data,Ci=0,Oa=Object.keys(aa._attachments);function Ca(){Ci===Oa.length&&ta(Mn,Yn,Zi,Oi,Wn,En)}function Po(){Ci++,Ca()}Oa.forEach(function(Eo){var Za=Mn.data._attachments[Eo];if(Za.stub)Ci++,Ca();else{var dl=Za.data;delete Za.data,Za.revpos=parseInt(Yn,10);var mo=Za.digest;Ai(mo,dl,Po)}})}function Qn(Mn,Yn,Zi){var Oi=0,Wn=Object.keys(Mn.data._attachments||{});if(!Wn.length)return Zi();function En(){++Oi===Wn.length&&Zi()}function aa(Oa){var Ca=Mn.data._attachments[Oa].digest,Po=nt.put({seq:Yn,digestSeq:Ca+"::"+Yn});Po.onsuccess=En,Po.onerror=function(Eo){Eo.preventDefault(),Eo.stopPropagation(),En()}}for(var Ci=0;Ci<Wn.length;Ci++)aa(Wn[Ci])}function Ai(Mn,Yn,Zi){var Oi=Qe.count(Mn);Oi.onsuccess=function(Wn){var En=Wn.target.result;if(En)return Zi();var aa={digest:Mn,body:Yn},Ci=Qe.put(aa);Ci.onsuccess=Zi}}}function cG(t,e,o,_,U){_===-1&&(_=1e3);var te=typeof t.getAll=="function"&&typeof t.getAllKeys=="function"&&_>1&&!o,me,Le,Re;function je(Wt){Le=Wt.target.result,me&&U(me,Le,Re)}function Qe(Wt){me=Wt.target.result,Le&&U(me,Le,Re)}function nt(){if(!me.length)return U();var Wt=me[me.length-1],Bt;if(e&&e.upper)try{Bt=IDBKeyRange.bound(Wt,e.upper,!0,e.upperOpen)}catch(rr){if(rr.name==="DataError"&&rr.code===0)return U()}else Bt=IDBKeyRange.lowerBound(Wt,!0);e=Bt,me=null,Le=null,t.getAll(e,_).onsuccess=je,t.getAllKeys(e,_).onsuccess=Qe}function yt(Wt){var Bt=Wt.target.result;if(!Bt)return U();U([Bt.key],[Bt.value],Bt)}te?(Re={continue:nt},t.getAll(e,_).onsuccess=je,t.getAllKeys(e,_).onsuccess=Qe):o?t.openCursor(e,"prev").onsuccess=yt:t.openCursor(e).onsuccess=yt}function coe(t,e,o){if(typeof t.getAll=="function"){t.getAll(e).onsuccess=o;return}var _=[];function U(te){var me=te.target.result;me?(_.push(me.value),me.continue()):o({target:{result:_}})}t.openCursor(e).onsuccess=U}function foe(t,e,o){var _=new Array(t.length),U=0;t.forEach(function(te,me){e.get(te).onsuccess=function(Le){Le.target.result?_[me]=Le.target.result:_[me]={key:te,error:"not_found"},U++,U===t.length&&o(t,_,{})}})}function hoe(t,e,o,_,U){try{if(t&&e)return U?IDBKeyRange.bound(e,t,!o,!1):IDBKeyRange.bound(t,e,!1,!o);if(t)return U?IDBKeyRange.upperBound(t):IDBKeyRange.lowerBound(t);if(e)return U?IDBKeyRange.lowerBound(e,!o):IDBKeyRange.upperBound(e,!o);if(_)return IDBKeyRange.only(_)}catch(te){return{error:te}}return null}function doe(t,e,o){var _="startkey"in t?t.startkey:!1,U="endkey"in t?t.endkey:!1,te="key"in t?t.key:!1,me="keys"in t?t.keys:!1,Le=t.skip||0,Re=typeof t.limit=="number"?t.limit:-1,je=t.inclusive_end!==!1,Qe,nt;if(!me&&(Qe=hoe(_,U,je,te,t.descending),nt=Qe&&Qe.error,nt&&!(nt.name==="DataError"&&nt.code===0)))return o(Bc(u4,nt.name,nt.message));var yt=[om,Ng,Y0];t.attachments&&yt.push(g_);var Wt=mx(e,yt,"readonly");if(Wt.error)return o(Wt.error);var Bt=Wt.txn;Bt.oncomplete=Zn,Bt.onabort=zb(o);var rr=Bt.objectStore(om),Nt=Bt.objectStore(Ng),Se=Bt.objectStore(Y0),lr=Nt.index("_doc_id_rev"),Zt=[],$t,kt;Se.get(Y0).onsuccess=function(ai){$t=ai.target.result.docCount},t.update_seq&&Jt(Nt,function(ai){ai.target.result&&ai.target.result.length>0&&(kt=ai.target.result[0])});function Jt(ai,ua){function Qi(ta){var Nn=ta.target.result,Qn=void 0;return Nn&&Nn.key&&(Qn=Nn.key),ua({target:{result:[Qn]}})}ai.openCursor(null,"prev").onsuccess=Qi}function Ur(ai,ua,Qi){var ta=ai.id+"::"+Qi;lr.get(ta).onsuccess=function(Qn){if(ua.doc=bI(Qn.target.result)||{},t.conflicts){var Ai=_4(ai);Ai.length&&(ua.doc._conflicts=Ai)}lG(ua.doc,t,Bt)}}function Lr(ai,ua){var Qi={id:ua.id,key:ua.id,value:{rev:ai}},ta=ua.deleted;ta?me&&(Zt.push(Qi),Qi.value.deleted=!0,Qi.doc=null):Le--<=0&&(Zt.push(Qi),t.include_docs&&Ur(ua,Qi,ai))}function xn(ai){for(var ua=0,Qi=ai.length;ua<Qi&&Zt.length!==Re;ua++){var ta=ai[ua];if(ta.error&&me){Zt.push(ta);continue}var Nn=g3(ta),Qn=Nn.winningRev;Lr(Qn,Nn)}}function In(ai,ua,Qi){Qi&&(xn(ua),Zt.length<Re&&Qi.continue())}function Ln(ai){var ua=ai.target.result;t.descending&&(ua=ua.reverse()),xn(ua)}function ci(){var ai={total_rows:$t,offset:t.skip,rows:Zt};t.update_seq&&kt!==void 0&&(ai.update_seq=kt),o(null,ai)}function Zn(){t.attachments?LN(Zt,t.binary).then(ci):ci()}if(!(nt||Re===0)){if(me)return foe(t.keys,rr,In);if(Re===-1)return coe(rr,Qe,Ln);cG(rr,Qe,t.descending,Re+Le,In)}}function poe(t){return new Promise(function(e){var o=d4([""]),_=t.objectStore(MN).put(o,"key");_.onsuccess=function(){var U=navigator.userAgent.match(/Chrome\/(\d+)/),te=navigator.userAgent.match(/Edge\//);e(te||!U||parseInt(U[1],10)>=43)},_.onerror=t.onabort=function(U){U.preventDefault(),U.stopPropagation(),e(!1)}}).catch(function(){return!1})}function voe(t,e){var o=t.objectStore(om).index("deletedOrLocal");o.count(IDBKeyRange.only("0")).onsuccess=function(_){e(_.target.result)}}var PN=!1,RN=[];function moe(t,e,o,_){try{t(e,o)}catch(U){_.emit("error",U)}}function HU(){PN||!RN.length||(PN=!0,RN.shift()())}function goe(t,e,o){RN.push(function(){t(function(te,me){moe(e,te,me,o),PN=!1,Vb(function(){HU()})})}),HU()}function yoe(t,e,o,_){if(t=Om(t),t.continuous){var U=o+":"+pD();return Y5.addListener(o,U,e,t),Y5.notify(o),{cancel:function(){Y5.removeListener(o,U)}}}var te=t.doc_ids&&new mM(t.doc_ids);t.since=t.since||0;var me=t.since,Le="limit"in t?t.limit:-1;Le===0&&(Le=1);var Re=[],je=0,Qe=c4(t),nt=new Ry,yt,Wt,Bt,rr;function Nt(Lr,xn,In){if(!In||!Lr.length)return;var Ln=new Array(Lr.length),ci=new Array(Lr.length);function Zn(Qi,ta){var Nn=t.processChange(ta,Qi,t);me=Nn.seq=Qi.seq;var Qn=Qe(Nn);return typeof Qn=="object"?Promise.reject(Qn):Qn?(je++,t.return_docs&&Re.push(Nn),t.attachments&&t.include_docs?new Promise(function(Ai){lG(ta,t,yt,function(){LN([Nn],t.binary).then(function(){Ai(Nn)})})}):Promise.resolve(Nn)):Promise.resolve()}function ai(){for(var Qi=[],ta=0,Nn=Ln.length;ta<Nn&&je!==Le;ta++){var Qn=Ln[ta];if(Qn){var Ai=ci[ta];Qi.push(Zn(Ai,Qn))}}Promise.all(Qi).then(function(Mn){for(var Yn=0,Zi=Mn.length;Yn<Zi;Yn++)Mn[Yn]&&t.onChange(Mn[Yn])}).catch(t.complete),je!==Le&&In.continue()}var ua=0;xn.forEach(function(Qi,ta){var Nn=bI(Qi),Qn=Lr[ta];lr(Nn,Qn,function(Ai,Mn){ci[ta]=Ai,Ln[ta]=Mn,++ua===Lr.length&&ai()})})}function Se(Lr,xn,In,Ln){if(In.seq!==xn)return Ln();if(In.winningRev===Lr._rev)return Ln(In,Lr);var ci=Lr._id+"::"+In.winningRev,Zn=rr.get(ci);Zn.onsuccess=function(ai){Ln(In,bI(ai.target.result))}}function lr(Lr,xn,In){if(te&&!te.has(Lr._id))return In();var Ln=nt.get(Lr._id);if(Ln)return Se(Lr,xn,Ln,In);Bt.get(Lr._id).onsuccess=function(ci){Ln=g3(ci.target.result),nt.set(Lr._id,Ln),Se(Lr,xn,Ln,In)}}function Zt(){t.complete(null,{results:Re,last_seq:me})}function $t(){!t.continuous&&t.attachments?LN(Re).then(Zt):Zt()}var kt=[om,Ng];t.attachments&&kt.push(g_);var Jt=mx(_,kt,"readonly");if(Jt.error)return t.complete(Jt.error);yt=Jt.txn,yt.onabort=zb(t.complete),yt.oncomplete=$t,Wt=yt.objectStore(Ng),Bt=yt.objectStore(om),rr=Wt.index("_doc_id_rev");var Ur=t.since&&!t.descending?IDBKeyRange.lowerBound(t.since,!0):null;cG(Wt,Ur,t.descending,Le,Nt)}var XC=new Ry,_z,xz=new Ry;function fG(t,e){var o=this;goe(function(_){_oe(o,t,_)},e,o.constructor)}function _oe(t,e,o){var _=e.name,U=null,te=null;t._meta=null;function me(Nt){return function(Se,lr){Se&&Se instanceof Error&&!Se.reason&&te&&(Se.reason=te),Nt(Se,lr)}}function Le(Nt){var Se=Nt.createObjectStore(om,{keyPath:"id"});Nt.createObjectStore(Ng,{autoIncrement:!0}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0}),Nt.createObjectStore(g_,{keyPath:"digest"}),Nt.createObjectStore(Y0,{keyPath:"id",autoIncrement:!1}),Nt.createObjectStore(MN),Se.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),Nt.createObjectStore(Rb,{keyPath:"_id"});var lr=Nt.createObjectStore(m3,{autoIncrement:!0});lr.createIndex("seq","seq"),lr.createIndex("digestSeq","digestSeq",{unique:!0})}function Re(Nt,Se){var lr=Nt.objectStore(om);lr.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),lr.openCursor().onsuccess=function(Zt){var $t=Zt.target.result;if($t){var kt=$t.value,Jt=_2(kt);kt.deletedOrLocal=Jt?"1":"0",lr.put(kt),$t.continue()}else Se()}}function je(Nt){Nt.createObjectStore(Rb,{keyPath:"_id"}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0})}function Qe(Nt,Se){var lr=Nt.objectStore(Rb),Zt=Nt.objectStore(om),$t=Nt.objectStore(Ng),kt=Zt.openCursor();kt.onsuccess=function(Jt){var Ur=Jt.target.result;if(Ur){var Lr=Ur.value,xn=Lr.id,In=w3(xn),Ln=P3(Lr);if(In){var ci=xn+"::"+Ln,Zn=xn+"::",ai=xn+"::~",ua=$t.index("_doc_id_rev"),Qi=IDBKeyRange.bound(Zn,ai,!1,!1),ta=ua.openCursor(Qi);ta.onsuccess=function(Nn){if(ta=Nn.target.result,!ta)Zt.delete(Ur.primaryKey),Ur.continue();else{var Qn=ta.value;Qn._doc_id_rev===ci&&lr.put(Qn),$t.delete(ta.primaryKey),ta.continue()}}}else Ur.continue()}else Se&&Se()}}function nt(Nt){var Se=Nt.createObjectStore(m3,{autoIncrement:!0});Se.createIndex("seq","seq"),Se.createIndex("digestSeq","digestSeq",{unique:!0})}function yt(Nt,Se){var lr=Nt.objectStore(Ng),Zt=Nt.objectStore(g_),$t=Nt.objectStore(m3),kt=Zt.count();kt.onsuccess=function(Jt){var Ur=Jt.target.result;if(!Ur)return Se();lr.openCursor().onsuccess=function(Lr){var xn=Lr.target.result;if(!xn)return Se();for(var In=xn.value,Ln=xn.primaryKey,ci=Object.keys(In._attachments||{}),Zn={},ai=0;ai<ci.length;ai++){var ua=In._attachments[ci[ai]];Zn[ua.digest]=!0}var Qi=Object.keys(Zn);for(ai=0;ai<Qi.length;ai++){var ta=Qi[ai];$t.put({seq:Ln,digestSeq:ta+"::"+Ln})}xn.continue()}}}function Wt(Nt){function Se(kt){return kt.data?g3(kt):(kt.deleted=kt.deletedOrLocal==="1",kt)}var lr=Nt.objectStore(Ng),Zt=Nt.objectStore(om),$t=Zt.openCursor();$t.onsuccess=function(kt){var Jt=kt.target.result;if(!Jt)return;var Ur=Se(Jt.value);Ur.winningRev=Ur.winningRev||P3(Ur);function Lr(){var In=Ur.id+"::",Ln=Ur.id+"::",ci=lr.index("_doc_id_rev").openCursor(IDBKeyRange.bound(In,Ln)),Zn=0;ci.onsuccess=function(ai){var ua=ai.target.result;if(!ua)return Ur.seq=Zn,xn();var Qi=ua.primaryKey;Qi>Zn&&(Zn=Qi),ua.continue()}}function xn(){var In=kN(Ur,Ur.winningRev,Ur.deleted),Ln=Zt.put(In);Ln.onsuccess=function(){Jt.continue()}}if(Ur.seq)return xn();Lr()}}t._remote=!1,t.type=function(){return"idb"},t._id=zH(function(Nt){Nt(null,t._meta.instanceId)}),t._bulkDocs=function(Se,lr,Zt){uoe(e,Se,lr,t,U,me(Zt))},t._get=function(Se,lr,Zt){var $t,kt,Jt,Ur=lr.ctx;if(!Ur){var Lr=mx(U,[om,Ng,g_],"readonly");if(Lr.error)return Zt(Lr.error);Ur=Lr.txn}function xn(){Zt(Jt,{doc:$t,metadata:kt,ctx:Ur})}Ur.objectStore(om).get(Se).onsuccess=function(In){if(kt=g3(In.target.result),!kt)return Jt=Bc(m_,"missing"),xn();var Ln;if(lr.rev)Ln=lr.latest?Zie(lr.rev,kt):lr.rev;else{Ln=kt.winningRev;var ci=_2(kt);if(ci)return Jt=Bc(m_,"deleted"),xn()}var Zn=Ur.objectStore(Ng),ai=kt.id+"::"+Ln;Zn.index("_doc_id_rev").get(ai).onsuccess=function(ua){if($t=ua.target.result,$t&&($t=bI($t)),!$t)return Jt=Bc(m_,"missing"),xn();xn()}}},t._getAttachment=function(Nt,Se,lr,Zt,$t){var kt;if(Zt.ctx)kt=Zt.ctx;else{var Jt=mx(U,[om,Ng,g_],"readonly");if(Jt.error)return $t(Jt.error);kt=Jt.txn}var Ur=lr.digest,Lr=lr.content_type;kt.objectStore(g_).get(Ur).onsuccess=function(xn){var In=xn.target.result.body;sG(In,Lr,Zt.binary,function(Ln){$t(null,Ln)})}},t._info=function(Se){var lr,Zt,$t=mx(U,[Y0,Ng],"readonly");if($t.error)return Se($t.error);var kt=$t.txn;kt.objectStore(Y0).get(Y0).onsuccess=function(Jt){Zt=Jt.target.result.docCount},kt.objectStore(Ng).openCursor(null,"prev").onsuccess=function(Jt){var Ur=Jt.target.result;lr=Ur?Ur.key:0},kt.oncomplete=function(){Se(null,{doc_count:Zt,update_seq:lr,idb_attachment_format:t._meta.blobSupport?"binary":"base64"})}},t._allDocs=function(Se,lr){doe(Se,U,me(lr))},t._changes=function(Se){return yoe(Se,t,_,U)},t._close=function(Nt){U.close(),XC.delete(_),Nt()},t._getRevisionTree=function(Nt,Se){var lr=mx(U,[om],"readonly");if(lr.error)return Se(lr.error);var Zt=lr.txn,$t=Zt.objectStore(om).get(Nt);$t.onsuccess=function(kt){var Jt=g3(kt.target.result);Jt?Se(null,Jt.rev_tree):Se(Bc(m_))}},t._doCompaction=function(Nt,Se,lr){var Zt=[om,Ng,g_,m3],$t=mx(U,Zt,"readwrite");if($t.error)return lr($t.error);var kt=$t.txn,Jt=kt.objectStore(om);Jt.get(Nt).onsuccess=function(Ur){var Lr=g3(Ur.target.result);R3(Lr.rev_tree,function(Ln,ci,Zn,ai,ua){var Qi=ci+"-"+Zn;Se.indexOf(Qi)!==-1&&(ua.status="missing")}),uG(Se,Nt,kt);var xn=Lr.winningRev,In=Lr.deleted;kt.objectStore(om).put(kN(Lr,xn,In))},kt.onabort=zb(lr),kt.oncomplete=function(){lr()}},t._getLocal=function(Nt,Se){var lr=mx(U,[Rb],"readonly");if(lr.error)return Se(lr.error);var Zt=lr.txn,$t=Zt.objectStore(Rb).get(Nt);$t.onerror=zb(Se),$t.onsuccess=function(kt){var Jt=kt.target.result;Jt?(delete Jt._doc_id_rev,Se(null,Jt)):Se(Bc(m_))}},t._putLocal=function(Nt,Se,lr){typeof Se=="function"&&(lr=Se,Se={}),delete Nt._revisions;var Zt=Nt._rev,$t=Nt._id;Zt?Nt._rev="0-"+(parseInt(Zt.split("-")[1],10)+1):Nt._rev="0-1";var kt=Se.ctx,Jt;if(!kt){var Ur=mx(U,[Rb],"readwrite");if(Ur.error)return lr(Ur.error);kt=Ur.txn,kt.onerror=zb(lr),kt.oncomplete=function(){Jt&&lr(null,Jt)}}var Lr=kt.objectStore(Rb),xn;Zt?(xn=Lr.get($t),xn.onsuccess=function(In){var Ln=In.target.result;if(!Ln||Ln._rev!==Zt)lr(Bc(gM));else{var ci=Lr.put(Nt);ci.onsuccess=function(){Jt={ok:!0,id:Nt._id,rev:Nt._rev},Se.ctx&&lr(null,Jt)}}}):(xn=Lr.add(Nt),xn.onerror=function(In){lr(Bc(gM)),In.preventDefault(),In.stopPropagation()},xn.onsuccess=function(){Jt={ok:!0,id:Nt._id,rev:Nt._rev},Se.ctx&&lr(null,Jt)})},t._removeLocal=function(Nt,Se,lr){typeof Se=="function"&&(lr=Se,Se={});var Zt=Se.ctx;if(!Zt){var $t=mx(U,[Rb],"readwrite");if($t.error)return lr($t.error);Zt=$t.txn,Zt.oncomplete=function(){kt&&lr(null,kt)}}var kt,Jt=Nt._id,Ur=Zt.objectStore(Rb),Lr=Ur.get(Jt);Lr.onerror=zb(lr),Lr.onsuccess=function(xn){var In=xn.target.result;!In||In._rev!==Nt._rev?lr(Bc(m_)):(Ur.delete(Jt),kt={ok:!0,id:Jt,rev:"0-0"},Se.ctx&&lr(null,kt))}},t._destroy=function(Nt,Se){Y5.removeAllListeners(_);var lr=xz.get(_);lr&&lr.result&&(lr.result.close(),XC.delete(_));var Zt=indexedDB.deleteDatabase(_);Zt.onsuccess=function(){xz.delete(_),gI()&&_ in localStorage&&delete localStorage[_],Se(null,{ok:!0})},Zt.onerror=zb(Se)};var Bt=XC.get(_);if(Bt)return U=Bt.idb,t._meta=Bt.global,Vb(function(){o(null,t)});var rr=indexedDB.open(_,ooe);xz.set(_,rr),rr.onupgradeneeded=function(Nt){var Se=Nt.target.result;if(Nt.oldVersion<1)return Le(Se);var lr=Nt.currentTarget.transaction;Nt.oldVersion<3&&je(Se),Nt.oldVersion<4&&nt(Se);var Zt=[Re,Qe,yt,Wt],$t=Nt.oldVersion;function kt(){var Jt=Zt[$t-1];$t++,Jt&&Jt(lr,kt)}kt()},rr.onsuccess=function(Nt){U=Nt.target.result,U.onversionchange=function(){U.close(),XC.delete(_)},U.onabort=function(xn){T_("error","Database has a global failure",xn.target.error),te=xn.target.error,U.close(),XC.delete(_)};var Se=U.transaction([Y0,MN,om],"readwrite"),lr=!1,Zt,$t,kt,Jt;function Ur(){typeof kt>"u"||!lr||(t._meta={name:_,instanceId:Jt,blobSupport:kt},XC.set(_,{idb:U,global:t._meta}),o(null,t))}function Lr(){if(!(typeof $t>"u"||typeof Zt>"u")){var xn=_+"_id";xn in Zt?Jt=Zt[xn]:Zt[xn]=Jt=pD(),Zt.docCount=$t,Se.objectStore(Y0).put(Zt)}}Se.objectStore(Y0).get(Y0).onsuccess=function(xn){Zt=xn.target.result||{id:Y0},Lr()},voe(Se,function(xn){$t=xn,Lr()}),_z||(_z=poe(Se)),_z.then(function(xn){kt=xn,Ur()}),Se.oncomplete=function(){lr=!0,Ur()},Se.onabort=zb(o)},rr.onerror=function(Nt){var Se=Nt.target.error&&Nt.target.error.message;Se?Se.indexOf("stored database is a higher version")!==-1&&(Se=new Error('This DB was created with the newer "indexeddb" adapter, but you are trying to open it with the older "idb" adapter')):Se="Failed to open indexedDB, are you in private browsing mode?",T_("error",Se),o(Bc(u4,Se))}}fG.valid=function(){try{return typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}};function xoe(t){t.adapter("idb",fG,!0)}function boe(t,e){return new Promise(function(o,_){var U=0,te=0,me=0,Le=t.length,Re;function je(){U++,t[te++]().then(nt,yt)}function Qe(){++me===Le?Re?_(Re):o():Wt()}function nt(){U--,Qe()}function yt(Bt){U--,Re=Re||Bt,Qe()}function Wt(){for(;U<e&&te<Le;)je()}Wt()})}const woe=25,Toe=50,E6=5e3,Soe=1e4;let bz={};function wz(t){let e=t.doc||t.ok,o=e&&e._attachments;o&&Object.keys(o).forEach(function(_){let U=o[_];U.data=v4(U.data,U.content_type)})}function u3(t){return/^_design/.test(t)?"_design/"+encodeURIComponent(t.slice(8)):/^_local/.test(t)?"_local/"+encodeURIComponent(t.slice(7)):encodeURIComponent(t)}function GU(t){return!t._attachments||!Object.keys(t._attachments)?Promise.resolve():Promise.all(Object.keys(t._attachments).map(function(e){let o=t._attachments[e];if(o.data&&typeof o.data!="string")return new Promise(function(_){m4(o.data,_)}).then(function(_){o.data=_})}))}function Aoe(t){if(!t.prefix)return!1;let e=VH(t.prefix).protocol;return e==="http"||e==="https"}function Eoe(t,e){if(Aoe(e)){let U=e.name.substr(e.prefix.length);t=e.prefix.replace(/\/?$/,"/")+encodeURIComponent(U)}let o=VH(t);(o.user||o.password)&&(o.auth={username:o.user,password:o.password});let _=o.path.replace(/(^\/|\/$)/g,"").split("/");return o.db=_.pop(),o.db.indexOf("%")===-1&&(o.db=encodeURIComponent(o.db)),o.path=_.join("/"),o}function Im(t,e){return J6(t,t.db+"/"+e)}function J6(t,e){let o=t.path?"/":"";return t.protocol+"://"+t.host+(t.port?":"+t.port:"")+"/"+t.path+o+e}function C6(t){return"?"+Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&")}function Coe(t){let e=typeof navigator<"u"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",o=e.indexOf("msie")!==-1,_=e.indexOf("trident")!==-1,U=e.indexOf("edge")!==-1,te=!("method"in t)||t.method==="GET";return(o||_||U)&&te}function IN(t,e){let o=this,_=Eoe(t.name,t),U=Im(_,"");t=Om(t);const te=async function(nt,yt){if(yt=yt||{},yt.headers=yt.headers||new cM,yt.credentials="include",t.auth||_.auth){let rr=t.auth||_.auth,Nt=rr.username+":"+rr.password,Se=ZL(unescape(encodeURIComponent(Nt)));yt.headers.set("Authorization","Basic "+Se)}let Wt=t.headers||{};return Object.keys(Wt).forEach(function(rr){yt.headers.append(rr,Wt[rr])}),Coe(yt)&&(nt+=(nt.indexOf("?")===-1?"?":"&")+"_nonce="+Date.now()),await(t.fetch||QH)(nt,yt)};function me(nt,yt){return Bv(nt,function(...Wt){je().then(function(){return yt.apply(this,Wt)}).catch(function(Bt){Wt.pop()(Bt)})}).bind(o)}async function Le(nt,yt){let Wt={};yt=yt||{},yt.headers=yt.headers||new cM,yt.headers.get("Content-Type")||yt.headers.set("Content-Type","application/json"),yt.headers.get("Accept")||yt.headers.set("Accept","application/json");const Bt=await te(nt,yt);Wt.ok=Bt.ok,Wt.status=Bt.status;const rr=await Bt.json();if(Wt.data=rr,!Wt.ok)throw Wt.data.status=Wt.status,yM(Wt.data);return Array.isArray(Wt.data)&&(Wt.data=Wt.data.map(function(Nt){return Nt.error||Nt.missing?yM(Nt):Nt})),Wt}let Re;async function je(){return t.skip_setup?Promise.resolve():Re||(Re=Le(U).catch(function(nt){return nt&&nt.status&&nt.status===404?(bN(404,"PouchDB is just detecting if the remote exists."),Le(U,{method:"PUT"})):Promise.reject(nt)}).catch(function(nt){return nt&&nt.status&&nt.status===412?!0:Promise.reject(nt)}),Re.catch(function(){Re=null}),Re)}Vb(function(){e(null,o)}),o._remote=!0,o.type=function(){return"http"},o.id=me("id",async function(nt){let yt;try{yt=await(await te(J6(_,""))).json()}catch{yt={}}let Wt=yt&&yt.uuid?yt.uuid+_.db:Im(_,"");nt(null,Wt)}),o.compact=me("compact",async function(nt,yt){typeof nt=="function"&&(yt=nt,nt={}),nt=Om(nt),await Le(Im(_,"_compact"),{method:"POST"});function Wt(){o.info(function(Bt,rr){rr&&!rr.compact_running?yt(null,{ok:!0}):setTimeout(Wt,nt.interval||200)})}Wt()}),o.bulkGet=Bv("bulkGet",function(nt,yt){let Wt=this;async function Bt(lr){let Zt={};nt.revs&&(Zt.revs=!0),nt.attachments&&(Zt.attachments=!0),nt.latest&&(Zt.latest=!0);try{const $t=await Le(Im(_,"_bulk_get"+C6(Zt)),{method:"POST",body:JSON.stringify({docs:nt.docs})});nt.attachments&&nt.binary&&$t.data.results.forEach(function(kt){kt.docs.forEach(wz)}),lr(null,$t.data)}catch($t){lr($t)}}function rr(){let lr=Toe,Zt=Math.ceil(nt.docs.length/lr),$t=0,kt=new Array(Zt);function Jt(Ur){return function(Lr,xn){kt[Ur]=xn.results,++$t===Zt&&yt(null,{results:yI(kt)})}}for(let Ur=0;Ur<Zt;Ur++){let Lr=YL(nt,["revs","attachments","binary","latest"]);Lr.docs=nt.docs.slice(Ur*lr,Math.min(nt.docs.length,(Ur+1)*lr)),NH(Wt,Lr,Jt(Ur))}}let Nt=J6(_,""),Se=bz[Nt];typeof Se!="boolean"?Bt(function(lr,Zt){lr?(bz[Nt]=!1,bN(lr.status,"PouchDB is just detecting if the remote supports the _bulk_get API."),rr()):(bz[Nt]=!0,yt(null,Zt))}):Se?Bt(yt):rr()}),o._info=async function(nt){try{await je();const Wt=await(await te(Im(_,""))).json();Wt.host=Im(_,""),nt(null,Wt)}catch(yt){nt(yt)}},o.fetch=async function(nt,yt){await je();const Wt=nt.substring(0,1)==="/"?J6(_,nt.substring(1)):Im(_,nt);return te(Wt,yt)},o.get=me("get",async function(nt,yt,Wt){typeof yt=="function"&&(Wt=yt,yt={}),yt=Om(yt);let Bt={};yt.revs&&(Bt.revs=!0),yt.revs_info&&(Bt.revs_info=!0),yt.latest&&(Bt.latest=!0),yt.open_revs&&(yt.open_revs!=="all"&&(yt.open_revs=JSON.stringify(yt.open_revs)),Bt.open_revs=yt.open_revs),yt.rev&&(Bt.rev=yt.rev),yt.conflicts&&(Bt.conflicts=yt.conflicts),yt.update_seq&&(Bt.update_seq=yt.update_seq),nt=u3(nt);function rr(lr){let Zt=lr._attachments,$t=Zt&&Object.keys(Zt);if(!Zt||!$t.length)return;async function kt(Ur){const Lr=Zt[Ur],xn=u3(lr._id)+"/"+Qe(Ur)+"?rev="+lr._rev,In=await te(Im(_,xn));let Ln;"buffer"in In?Ln=await In.buffer():Ln=await In.blob();let ci;if(yt.binary){let Zn=Object.getOwnPropertyDescriptor(Ln.__proto__,"type");(!Zn||Zn.set)&&(Ln.type=Lr.content_type),ci=Ln}else ci=await new Promise(function(Zn){m4(Ln,Zn)});delete Lr.stub,delete Lr.length,Lr.data=ci}let Jt=$t.map(function(Ur){return function(){return kt(Ur)}});return boe(Jt,5)}function Nt(lr){return Array.isArray(lr)?Promise.all(lr.map(function(Zt){if(Zt.ok)return rr(Zt.ok)})):rr(lr)}const Se=Im(_,nt+C6(Bt));try{const lr=await Le(Se);yt.attachments&&await Nt(lr.data),Wt(null,lr.data)}catch(lr){lr.docId=nt,Wt(lr)}}),o.remove=me("remove",async function(nt,yt,Wt,Bt){let rr;typeof yt=="string"?(rr={_id:nt,_rev:yt},typeof Wt=="function"&&(Bt=Wt,Wt={})):(rr=nt,typeof yt=="function"?(Bt=yt,Wt={}):(Bt=Wt,Wt=yt));const Nt=rr._rev||Wt.rev,Se=Im(_,u3(rr._id))+"?rev="+Nt;try{const lr=await Le(Se,{method:"DELETE"});Bt(null,lr.data)}catch(lr){Bt(lr)}});function Qe(nt){return nt.split("/").map(encodeURIComponent).join("/")}o.getAttachment=me("getAttachment",async function(nt,yt,Wt,Bt){typeof Wt=="function"&&(Bt=Wt,Wt={});const rr=Wt.rev?"?rev="+Wt.rev:"",Nt=Im(_,u3(nt))+"/"+Qe(yt)+rr;let Se;try{const Zt=await te(Nt,{method:"GET"});if(!Zt.ok)throw Zt;Se=Zt.headers.get("content-type");let $t;if(typeof process<"u"&&!process.browser&&typeof Zt.buffer=="function"?$t=await Zt.buffer():$t=await Zt.blob(),typeof process<"u"&&!process.browser){var lr=Object.getOwnPropertyDescriptor($t.__proto__,"type");(!lr||lr.set)&&($t.type=Se)}Bt(null,$t)}catch(Zt){Bt(Zt)}}),o.removeAttachment=me("removeAttachment",async function(nt,yt,Wt,Bt){const rr=Im(_,u3(nt)+"/"+Qe(yt))+"?rev="+Wt;try{const Nt=await Le(rr,{method:"DELETE"});Bt(null,Nt.data)}catch(Nt){Bt(Nt)}}),o.putAttachment=me("putAttachment",async function(nt,yt,Wt,Bt,rr,Nt){typeof rr=="function"&&(Nt=rr,rr=Bt,Bt=Wt,Wt=null);const Se=u3(nt)+"/"+Qe(yt);let lr=Im(_,Se);if(Wt&&(lr+="?rev="+Wt),typeof Bt=="string"){let Zt;try{Zt=h4(Bt)}catch{return Nt(Bc(BH,"Attachment is not a valid base64 string"))}Bt=Zt?p4(Zt,rr):""}try{const Zt=await Le(lr,{headers:new cM({"Content-Type":rr}),method:"PUT",body:Bt});Nt(null,Zt.data)}catch(Zt){Nt(Zt)}}),o._bulkDocs=async function(nt,yt,Wt){nt.new_edits=yt.new_edits;try{await je(),await Promise.all(nt.docs.map(GU));const Bt=await Le(Im(_,"_bulk_docs"),{method:"POST",body:JSON.stringify(nt)});Wt(null,Bt.data)}catch(Bt){Wt(Bt)}},o._put=async function(nt,yt,Wt){try{await je(),await GU(nt);const Bt=await Le(Im(_,u3(nt._id)),{method:"PUT",body:JSON.stringify(nt)});Wt(null,Bt.data)}catch(Bt){Bt.docId=nt&&nt._id,Wt(Bt)}},o.allDocs=me("allDocs",async function(nt,yt){typeof nt=="function"&&(yt=nt,nt={}),nt=Om(nt);let Wt={},Bt,rr="GET";nt.conflicts&&(Wt.conflicts=!0),nt.update_seq&&(Wt.update_seq=!0),nt.descending&&(Wt.descending=!0),nt.include_docs&&(Wt.include_docs=!0),nt.attachments&&(Wt.attachments=!0),nt.key&&(Wt.key=JSON.stringify(nt.key)),nt.start_key&&(nt.startkey=nt.start_key),nt.startkey&&(Wt.startkey=JSON.stringify(nt.startkey)),nt.end_key&&(nt.endkey=nt.end_key),nt.endkey&&(Wt.endkey=JSON.stringify(nt.endkey)),typeof nt.inclusive_end<"u"&&(Wt.inclusive_end=!!nt.inclusive_end),typeof nt.limit<"u"&&(Wt.limit=nt.limit),typeof nt.skip<"u"&&(Wt.skip=nt.skip);let Nt=C6(Wt);typeof nt.keys<"u"&&(rr="POST",Bt={keys:nt.keys});try{const Se=await Le(Im(_,"_all_docs"+Nt),{method:rr,body:JSON.stringify(Bt)});nt.include_docs&&nt.attachments&&nt.binary&&Se.data.rows.forEach(wz),yt(null,Se.data)}catch(Se){yt(Se)}}),o._changes=function(nt){let yt="batch_size"in nt?nt.batch_size:woe;nt=Om(nt),nt.continuous&&!("heartbeat"in nt)&&(nt.heartbeat=Soe);let Wt="timeout"in nt?nt.timeout:30*1e3;"timeout"in nt&&nt.timeout&&Wt-nt.timeout<E6&&(Wt=nt.timeout+E6),"heartbeat"in nt&&nt.heartbeat&&Wt-nt.heartbeat<E6&&(Wt=nt.heartbeat+E6);let Bt={};"timeout"in nt&&nt.timeout&&(Bt.timeout=nt.timeout);let rr=typeof nt.limit<"u"?nt.limit:!1,Nt=rr;if(nt.style&&(Bt.style=nt.style),(nt.include_docs||nt.filter&&typeof nt.filter=="function")&&(Bt.include_docs=!0),nt.attachments&&(Bt.attachments=!0),nt.continuous&&(Bt.feed="longpoll"),nt.seq_interval&&(Bt.seq_interval=nt.seq_interval),nt.conflicts&&(Bt.conflicts=!0),nt.descending&&(Bt.descending=!0),nt.update_seq&&(Bt.update_seq=!0),"heartbeat"in nt&&nt.heartbeat&&(Bt.heartbeat=nt.heartbeat),nt.filter&&typeof nt.filter=="string"&&(Bt.filter=nt.filter),nt.view&&typeof nt.view=="string"&&(Bt.filter="_view",Bt.view=nt.view),nt.query_params&&typeof nt.query_params=="object")for(let Lr in nt.query_params)Object.prototype.hasOwnProperty.call(nt.query_params,Lr)&&(Bt[Lr]=nt.query_params[Lr]);let Se="GET",lr;nt.doc_ids?(Bt.filter="_doc_ids",Se="POST",lr={doc_ids:nt.doc_ids}):nt.selector&&(Bt.filter="_selector",Se="POST",lr={selector:nt.selector});let Zt=new cae,$t;const kt=async function(Lr,xn){if(nt.aborted)return;Bt.since=Lr,typeof Bt.since=="object"&&(Bt.since=JSON.stringify(Bt.since)),nt.descending?rr&&(Bt.limit=Nt):Bt.limit=!rr||Nt>yt?yt:Nt;let In=Im(_,"_changes"+C6(Bt)),Ln={signal:Zt.signal,method:Se,body:JSON.stringify(lr)};if($t=Lr,!nt.aborted)try{await je();const ci=await Le(In,Ln);xn(null,ci.data)}catch(ci){xn(ci)}};let Jt={results:[]};const Ur=function(Lr,xn){if(nt.aborted)return;let In=0;if(xn&&xn.results){In=xn.results.length,Jt.last_seq=xn.last_seq;let ci=null,Zn=null;typeof xn.pending=="number"&&(ci=xn.pending),(typeof Jt.last_seq=="string"||typeof Jt.last_seq=="number")&&(Zn=Jt.last_seq),nt.query_params,xn.results=xn.results.filter(function(ai){Nt--;let ua=c4(nt)(ai);return ua&&(nt.include_docs&&nt.attachments&&nt.binary&&wz(ai),nt.return_docs&&Jt.results.push(ai),nt.onChange(ai,ci,Zn)),ua})}else if(Lr){nt.aborted=!0,nt.complete(Lr);return}xn&&xn.last_seq&&($t=xn.last_seq);let Ln=rr&&Nt<=0||xn&&In<yt||nt.descending;nt.continuous&&!(rr&&Nt<=0)||!Ln?Vb(function(){kt($t,Ur)}):nt.complete(null,Jt)};return kt(nt.since||0,Ur),{cancel:function(){nt.aborted=!0,Zt.abort()}}},o.revsDiff=me("revsDiff",async function(nt,yt,Wt){typeof yt=="function"&&(Wt=yt,yt={});try{const Bt=await Le(Im(_,"_revs_diff"),{method:"POST",body:JSON.stringify(nt)});Wt(null,Bt.data)}catch(Bt){Wt(Bt)}}),o._close=function(nt){nt()},o._destroy=async function(nt,yt){try{const Wt=await Le(Im(_,""),{method:"DELETE"});yt(null,Wt)}catch(Wt){Wt.status===404?yt(null,{ok:!0}):yt(Wt)}}}IN.valid=function(){return!0};function Moe(t){t.adapter("http",IN,!1),t.adapter("https",IN,!1)}class d3 extends Error{constructor(e){super(),this.status=400,this.name="query_parse_error",this.message=e,this.error=!0;try{Error.captureStackTrace(this,d3)}catch{}}}class vD extends Error{constructor(e){super(),this.status=404,this.name="not_found",this.message=e,this.error=!0;try{Error.captureStackTrace(this,vD)}catch{}}}class mD extends Error{constructor(e){super(),this.status=500,this.name="invalid_value",this.message=e,this.error=!0;try{Error.captureStackTrace(this,mD)}catch{}}}function hG(t,e){return e&&t.then(function(o){Vb(function(){e(null,o)})},function(o){Vb(function(){e(o)})}),t}function koe(t){return function(...e){var o=e.pop(),_=t.apply(this,e);return typeof o=="function"&&hG(_,o),_}}function Loe(t,e){return t.then(function(o){return e().then(function(){return o})},function(o){return e().then(function(){throw o})})}function Tz(t,e){return function(){var o=arguments,_=this;return t.add(function(){return e.apply(_,o)})}}function WU(t){var e=new mM(t),o=new Array(e.size),_=-1;return e.forEach(function(U){o[++_]=U}),o}function Sz(t){var e=new Array(t.size),o=-1;return t.forEach(function(_,U){e[++o]=U}),e}function $U(t){var e="builtin "+t+" function requires map values to be numbers or number arrays";return new mD(e)}function DN(t){for(var e=0,o=0,_=t.length;o<_;o++){var U=t[o];if(typeof U!="number")if(Array.isArray(U)){e=typeof e=="number"?[e]:e;for(var te=0,me=U.length;te<me;te++){var Le=U[te];if(typeof Le!="number")throw $U("_sum");typeof e[te]>"u"?e.push(Le):e[te]+=Le}}else throw $U("_sum");else typeof e=="number"?e+=U:e[0]+=U}return e}var Poe=T_.bind(null,"log"),Roe=Array.isArray,Ioe=JSON.parse;function dG(t,e){return f4("return ("+t.replace(/;\s*$/,"")+");",{emit:e,sum:DN,log:Poe,isArray:Roe,toJSON:Ioe})}class ON{constructor(){this.promise=new Promise(function(e){e()})}add(e){return this.promise=this.promise.catch(function(){}).then(function(){return e()}),this.promise}finish(){return this.promise}}function XU(t){if(!t)return"undefined";switch(typeof t){case"function":return t.toString();case"string":return t.toString();default:return JSON.stringify(t)}}function Doe(t,e){return XU(t)+XU(e)+"undefined"}async function YU(t,e,o,_,U,te){const me=Doe(o,_);let Le;if(!U&&(Le=t._cachedViews=t._cachedViews||{},Le[me]))return Le[me];const Re=t.info().then(async function(je){const Qe=je.db_name+"-mrview-"+(U?"temp":GH(me));function nt(Nt){Nt.views=Nt.views||{};let Se=e;Se.indexOf("/")===-1&&(Se=e+"/"+e);const lr=Nt.views[Se]=Nt.views[Se]||{};if(!lr[Qe])return lr[Qe]=!0,Nt}await _I(t,"_local/"+te,nt);const Wt=(await t.registerDependentDatabase(Qe)).db;Wt.auto_compaction=!0;const Bt={name:Qe,db:Wt,sourceDB:t,adapter:t.adapter,mapFun:o,reduceFun:_};let rr;try{rr=await Bt.db.get("_local/lastSeq")}catch(Nt){if(Nt.status!==404)throw Nt}return Bt.seq=rr?rr.seq:0,Le&&Bt.db.once("destroyed",function(){delete Le[me]}),Bt});return Le&&(Le[me]=Re),Re}var ZU={},KU=new ON,Ooe=50;function Az(t){return t.indexOf("/")===-1?[t,t]:t.split("/")}function zoe(t){return t.length===1&&/^1-/.test(t[0].rev)}function JU(t,e,o){try{t.emit("error",e)}catch{T_("error",`The user's map/reduce function threw an uncaught error.
|
|
44
44
|
You can debug this error by doing:
|
|
45
45
|
myDatabase.on('error', function (err) { debugger; });
|
|
46
|
-
Please double-check your map/reduce function.`),T_("error",e,o)}}function Noe(t,e,o,_){function U(Nn,Qn,Ai){try{Qn(Ai)}catch(Mn){JU(Nn,Mn,{fun:Qn,doc:Ai})}}function te(Nn,Qn,Ai,Mn,Yn){try{return{output:Qn(Ai,Mn,Yn)}}catch(Zi){return JU(Nn,Zi,{fun:Qn,keys:Ai,values:Mn,rereduce:Yn}),{error:Zi}}}function me(Nn,Qn){const Ai=Vv(Nn.key,Qn.key);return Ai!==0?Ai:Vv(Nn.value,Qn.value)}function Le(Nn,Qn,Ai){return Ai=Ai||0,typeof Qn=="number"?Nn.slice(Ai,Qn+Ai):Ai>0?Nn.slice(Ai):Nn}function Re(Nn){const Qn=Nn.value;return Qn&&typeof Qn=="object"&&Qn._id||Nn.id}function je(Nn){Nn.rows.forEach(function(Qn){const Ai=Qn.doc&&Qn.doc._attachments;Ai&&Object.keys(Ai).forEach(function(Mn){const Yn=Ai[Mn];Ai[Mn].data=v4(Yn.data,Yn.content_type)})})}function Qe(Nn){return function(Qn){return Nn.include_docs&&Nn.attachments&&Nn.binary&&je(Qn),Qn}}function nt(Nn,Qn,Ai,Mn){let Yn=Qn[Nn];typeof Yn<"u"&&(Mn&&(Yn=encodeURIComponent(JSON.stringify(Yn))),Ai.push(Nn+"="+Yn))}function yt(Nn){if(typeof Nn<"u"){const Qn=Number(Nn);return!isNaN(Qn)&&Qn===parseInt(Nn,10)?Qn:Nn}}function Wt(Nn){return Nn.group_level=yt(Nn.group_level),Nn.limit=yt(Nn.limit),Nn.skip=yt(Nn.skip),Nn}function Bt(Nn){if(Nn){if(typeof Nn!="number")return new d3(`Invalid value for integer: "${Nn}"`);if(Nn<0)return new d3(`Invalid value for positive integer: "${Nn}"`)}}function rr(Nn,Qn){const Ai=Nn.descending?"endkey":"startkey",Mn=Nn.descending?"startkey":"endkey";if(typeof Nn[Ai]<"u"&&typeof Nn[Mn]<"u"&&Vv(Nn[Ai],Nn[Mn])>0)throw new d3("No rows can match your key range, reverse your start_key and end_key or set {descending : true}");if(Qn.reduce&&Nn.reduce!==!1){if(Nn.include_docs)throw new d3("{include_docs:true} is invalid for reduce");if(Nn.keys&&Nn.keys.length>1&&!Nn.group&&!Nn.group_level)throw new d3("Multi-key fetches for reduce views must use {group: true}")}["group_level","limit","skip"].forEach(function(Yn){const Zi=Bt(Nn[Yn]);if(Zi)throw Zi})}async function Nt(Nn,Qn,Ai){let Mn=[],Yn,Zi="GET",Oi;if(nt("reduce",Ai,Mn),nt("include_docs",Ai,Mn),nt("attachments",Ai,Mn),nt("limit",Ai,Mn),nt("descending",Ai,Mn),nt("group",Ai,Mn),nt("group_level",Ai,Mn),nt("skip",Ai,Mn),nt("stale",Ai,Mn),nt("conflicts",Ai,Mn),nt("startkey",Ai,Mn,!0),nt("start_key",Ai,Mn,!0),nt("endkey",Ai,Mn,!0),nt("end_key",Ai,Mn,!0),nt("inclusive_end",Ai,Mn),nt("key",Ai,Mn,!0),nt("update_seq",Ai,Mn),Mn=Mn.join("&"),Mn=Mn===""?"":"?"+Mn,typeof Ai.keys<"u"){const Ci=`keys=${encodeURIComponent(JSON.stringify(Ai.keys))}`;Ci.length+Mn.length+1<=2e3?Mn+=(Mn[0]==="?"?"&":"?")+Ci:(Zi="POST",typeof Qn=="string"?Yn={keys:Ai.keys}:Qn.keys=Ai.keys)}if(typeof Qn=="string"){const aa=Az(Qn),Ci=await Nn.fetch("_design/"+aa[0]+"/_view/"+aa[1]+Mn,{headers:new cM({"Content-Type":"application/json"}),method:Zi,body:JSON.stringify(Yn)});Oi=Ci.ok;const Oa=await Ci.json();if(!Oi)throw Oa.status=Ci.status,yM(Oa);return Oa.rows.forEach(function(Ca){if(Ca.value&&Ca.value.error&&Ca.value.error==="builtin_reduce_error")throw new Error(Ca.reason)}),new Promise(function(Ca){Ca(Oa)}).then(Qe(Ai))}Yn=Yn||{},Object.keys(Qn).forEach(function(aa){Array.isArray(Qn[aa])?Yn[aa]=Qn[aa]:Yn[aa]=Qn[aa].toString()});const Wn=await Nn.fetch("_temp_view"+Mn,{headers:new cM({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify(Yn)});Oi=Wn.ok;const En=await Wn.json();if(!Oi)throw En.status=Wn.status,yM(En);return new Promise(function(aa){aa(En)}).then(Qe(Ai))}function Se(Nn,Qn,Ai){return new Promise(function(Mn,Yn){Nn._query(Qn,Ai,function(Zi,Oi){if(Zi)return Yn(Zi);Mn(Oi)})})}function lr(Nn){return new Promise(function(Qn,Ai){Nn._viewCleanup(function(Mn,Yn){if(Mn)return Ai(Mn);Qn(Yn)})})}function Zt(Nn){return function(Qn){if(Qn.status===404)return Nn;throw Qn}}async function $t(Nn,Qn,Ai){const Mn="_local/doc_"+Nn,Yn={_id:Mn,keys:[]},Zi=Ai.get(Nn),Oi=Zi[0],Wn=Zi[1];function En(){return zoe(Wn)?Promise.resolve(Yn):Qn.db.get(Mn).catch(Zt(Yn))}function aa(Po){return Po.keys.length?Qn.db.allDocs({keys:Po.keys,include_docs:!0}):Promise.resolve({rows:[]})}function Ci(Po,Eo){const Za=[],dl=new mM;for(let Co=0,Jo=Eo.rows.length;Co<Jo;Co++){const Ps=Eo.rows[Co].doc;if(Ps&&(Za.push(Ps),dl.add(Ps._id),Ps._deleted=!Oi.has(Ps._id),!Ps._deleted)){const gs=Oi.get(Ps._id);"value"in gs&&(Ps.value=gs.value)}}const mo=Sz(Oi);return mo.forEach(function(Co){if(!dl.has(Co)){const Jo={_id:Co},Go=Oi.get(Co);"value"in Go&&(Jo.value=Go.value),Za.push(Jo)}}),Po.keys=WU(mo.concat(Po.keys)),Za.push(Po),Za}const Oa=await En(),Ca=await aa(Oa);return Ci(Oa,Ca)}function kt(Nn){return Nn.sourceDB.get("_local/purges").then(function(Qn){const Ai=Qn.purgeSeq;return Nn.db.get("_local/purgeSeq").then(function(Mn){return Mn._rev}).catch(function(Mn){if(Mn.status!==404)throw Mn}).then(function(Mn){return Nn.db.put({_id:"_local/purgeSeq",_rev:Mn,purgeSeq:Ai})})}).catch(function(Qn){if(Qn.status!==404)throw Qn})}function Jt(Nn,Qn,Ai){var Mn="_local/lastSeq";return Nn.db.get(Mn).catch(Zt({_id:Mn,seq:0})).then(function(Yn){var Zi=Sz(Qn);return Promise.all(Zi.map(function(Oi){return $t(Oi,Nn,Qn)})).then(function(Oi){var Wn=yI(Oi);return Yn.seq=Ai,Wn.push(Yn),Nn.db.bulkDocs({docs:Wn})}).then(()=>kt(Nn))})}function Ur(Nn){const Qn=typeof Nn=="string"?Nn:Nn.name;let Ai=ZU[Qn];return Ai||(Ai=ZU[Qn]=new ON),Ai}async function Lr(Nn,Qn){return Tz(Ur(Nn),function(){return xn(Nn,Qn)})()}async function xn(Nn,Qn){let Ai,Mn,Yn;function Zi(Co,Jo){const Go={id:Mn._id,key:I3(Co)};typeof Jo<"u"&&Jo!==null&&(Go.value=I3(Jo)),Ai.push(Go)}const Oi=e(Nn.mapFun,Zi);let Wn=Nn.seq||0;function En(){return Nn.sourceDB.info().then(function(Co){Yn=Nn.sourceDB.activeTasks.add({name:"view_indexing",total_items:Co.update_seq-Wn})})}function aa(Co,Jo){return function(){return Jt(Nn,Co,Jo)}}let Ci=0;const Oa={view:Nn.name,indexed_docs:Ci};Nn.sourceDB.emit("indexing",Oa);const Ca=new ON;async function Po(){const Co=await Nn.sourceDB.changes({return_docs:!0,conflicts:!0,include_docs:!0,style:"all_docs",since:Wn,limit:Qn.changes_batch_size}),Jo=await Eo();return Za(Co,Jo)}function Eo(){return Nn.db.get("_local/purgeSeq").then(function(Co){return Co.purgeSeq}).catch(function(Co){if(Co&&Co.status!==404)throw Co;return-1}).then(function(Co){return Nn.sourceDB.get("_local/purges").then(function(Jo){const Go=Jo.purges.filter(function(gs,zs){return zs>Co}).map(gs=>gs.docId),Ps=Go.filter(function(gs,zs){return Go.indexOf(gs)===zs});return Promise.all(Ps.map(function(gs){return Nn.sourceDB.get(gs).then(function(zs){return{docId:gs,doc:zs}}).catch(function(zs){if(zs.status!==404)throw zs;return{docId:gs}})}))}).catch(function(Jo){if(Jo&&Jo.status!==404)throw Jo;return[]})})}function Za(Co,Jo){var Go=Co.results;if(!Go.length&&!Jo.length)return;for(let zs of Jo)if(Go.findIndex(function(yu){return yu.id===zs.docId})<0){const yu={_id:zs.docId,doc:{_id:zs.docId,_deleted:1},changes:[]};zs.doc&&(yu.doc=zs.doc,yu.changes.push({rev:zs.doc._rev})),Go.push(yu)}var Ps=dl(Go);Ca.add(aa(Ps,Wn)),Ci=Ci+Go.length;const gs={view:Nn.name,last_seq:Co.last_seq,results_count:Go.length,indexed_docs:Ci};if(Nn.sourceDB.emit("indexing",gs),Nn.sourceDB.activeTasks.update(Yn,{completed_items:Ci}),!(Go.length<Qn.changes_batch_size))return Po()}function dl(Co){const Jo=new Ry;for(let Go=0,Ps=Co.length;Go<Ps;Go++){const gs=Co[Go];if(gs.doc._id[0]!=="_"){Ai=[],Mn=gs.doc,Mn._deleted||U(Nn.sourceDB,Oi,Mn),Ai.sort(me);const zs=mo(Ai);Jo.set(gs.doc._id,[zs,gs.changes])}Wn=gs.seq}return Jo}function mo(Co){const Jo=new Ry;let Go;for(let Ps=0,gs=Co.length;Ps<gs;Ps++){const zs=Co[Ps],Pl=[zs.key,zs.id];Ps>0&&Vv(zs.key,Go)===0&&Pl.push(Ps),Jo.set(vx(Pl),zs),Go=zs.key}return Jo}try{await En(),await Po(),await Ca.finish(),Nn.seq=Wn,Nn.sourceDB.activeTasks.remove(Yn)}catch(Co){Nn.sourceDB.activeTasks.remove(Yn,Co)}}function In(Nn,Qn,Ai){Ai.group_level===0&&delete Ai.group_level;const Mn=Ai.group||Ai.group_level,Yn=o(Nn.reduceFun),Zi=[],Oi=isNaN(Ai.group_level)?Number.POSITIVE_INFINITY:Ai.group_level;Qn.forEach(function(Wn){const En=Zi[Zi.length-1];let aa=Mn?Wn.key:null;if(Mn&&Array.isArray(aa)&&(aa=aa.slice(0,Oi)),En&&Vv(En.groupKey,aa)===0){En.keys.push([Wn.key,Wn.id]),En.values.push(Wn.value);return}Zi.push({keys:[[Wn.key,Wn.id]],values:[Wn.value],groupKey:aa})}),Qn=[];for(let Wn=0,En=Zi.length;Wn<En;Wn++){const aa=Zi[Wn],Ci=te(Nn.sourceDB,Yn,aa.keys,aa.values,!1);if(Ci.error&&Ci.error instanceof mD)throw Ci.error;Qn.push({value:Ci.error?null:Ci.output,key:aa.groupKey})}return{rows:Le(Qn,Ai.limit,Ai.skip)}}function Ln(Nn,Qn){return Tz(Ur(Nn),function(){return ci(Nn,Qn)})()}async function ci(Nn,Qn){let Ai;const Mn=Nn.reduceFun&&Qn.reduce!==!1,Yn=Qn.skip||0;typeof Qn.keys<"u"&&!Qn.keys.length&&(Qn.limit=0,delete Qn.keys);async function Zi(Wn){Wn.include_docs=!0;const En=await Nn.db.allDocs(Wn);return Ai=En.total_rows,En.rows.map(function(aa){if("value"in aa.doc&&typeof aa.doc.value=="object"&&aa.doc.value!==null){const Oa=Object.keys(aa.doc.value).sort(),Ca=["id","key","value"];if(!(Oa<Ca||Oa>Ca))return aa.doc.value}const Ci=Mae(aa.doc._id);return{key:Ci[0],id:Ci[1],value:"value"in aa.doc?aa.doc.value:null}})}async function Oi(Wn){let En;if(Mn?En=In(Nn,Wn,Qn):typeof Qn.keys>"u"?En={total_rows:Ai,offset:Yn,rows:Wn}:En={total_rows:Ai,offset:Yn,rows:Le(Wn,Qn.limit,Qn.skip)},Qn.update_seq&&(En.update_seq=Nn.seq),Qn.include_docs){const Ci=WU(Wn.map(Re)),Oa=await Nn.sourceDB.allDocs({keys:Ci,include_docs:!0,conflicts:Qn.conflicts,attachments:Qn.attachments,binary:Qn.binary});var aa=new Ry;return Oa.rows.forEach(function(Ca){aa.set(Ca.id,Ca.doc)}),Wn.forEach(function(Ca){var Po=Re(Ca),Eo=aa.get(Po);Eo&&(Ca.doc=Eo)}),En}else return En}if(typeof Qn.keys<"u"){const En=Qn.keys.map(function(Oa){const Ca={startkey:vx([Oa]),endkey:vx([Oa,{}])};return Qn.update_seq&&(Ca.update_seq=!0),Zi(Ca)}),aa=await Promise.all(En),Ci=yI(aa);return Oi(Ci)}else{const Wn={descending:Qn.descending};Qn.update_seq&&(Wn.update_seq=!0);let En,aa;if("start_key"in Qn&&(En=Qn.start_key),"startkey"in Qn&&(En=Qn.startkey),"end_key"in Qn&&(aa=Qn.end_key),"endkey"in Qn&&(aa=Qn.endkey),typeof En<"u"&&(Wn.startkey=Qn.descending?vx([En,{}]):vx([En])),typeof aa<"u"){let Oa=Qn.inclusive_end!==!1;Qn.descending&&(Oa=!Oa),Wn.endkey=vx(Oa?[aa,{}]:[aa])}if(typeof Qn.key<"u"){const Oa=vx([Qn.key]),Ca=vx([Qn.key,{}]);Wn.descending?(Wn.endkey=Oa,Wn.startkey=Ca):(Wn.startkey=Oa,Wn.endkey=Ca)}Mn||(typeof Qn.limit=="number"&&(Wn.limit=Qn.limit),Wn.skip=Yn);const Ci=await Zi(Wn);return Oi(Ci)}}async function Zn(Nn){return(await Nn.fetch("_view_cleanup",{headers:new cM({"Content-Type":"application/json"}),method:"POST"})).json()}async function ai(Nn){try{const Qn=await Nn.get("_local/"+t),Ai=new Ry;Object.keys(Qn.views).forEach(function(En){const aa=Az(En),Ci="_design/"+aa[0],Oa=aa[1];let Ca=Ai.get(Ci);Ca||(Ca=new mM,Ai.set(Ci,Ca)),Ca.add(Oa)});const Mn={keys:Sz(Ai),include_docs:!0},Yn=await Nn.allDocs(Mn),Zi={};Yn.rows.forEach(function(En){const aa=En.key.substring(8);Ai.get(En.key).forEach(function(Ci){let Oa=aa+"/"+Ci;Qn.views[Oa]||(Oa=Ci);const Ca=Object.keys(Qn.views[Oa]),Po=En.doc&&En.doc.views&&En.doc.views[Ci];Ca.forEach(function(Eo){Zi[Eo]=Zi[Eo]||Po})})});const Wn=Object.keys(Zi).filter(function(En){return!Zi[En]}).map(function(En){return Tz(Ur(En),function(){return new Nn.constructor(En,Nn.__opts).destroy()})()});return Promise.all(Wn).then(function(){return{ok:!0}})}catch(Qn){if(Qn.status===404)return{ok:!0};throw Qn}}async function ua(Nn,Qn,Ai){if(typeof Nn._query=="function")return Se(Nn,Qn,Ai);if(Nb(Nn))return Nt(Nn,Qn,Ai);const Mn={changes_batch_size:Nn.__opts.view_update_changes_batch_size||Ooe};if(typeof Qn!="string")return rr(Ai,Qn),KU.add(async function(){const Yn=await YU(Nn,"temp_view/temp_view",Qn.map,Qn.reduce,!0,t);return Loe(Lr(Yn,Mn).then(function(){return Ln(Yn,Ai)}),function(){return Yn.db.destroy()})}),KU.finish();{const Yn=Qn,Zi=Az(Yn),Oi=Zi[0],Wn=Zi[1],En=await Nn.get("_design/"+Oi);if(Qn=En.views&&En.views[Wn],!Qn)throw new vD(`ddoc ${En._id} has no view named ${Wn}`);_(En,Wn),rr(Ai,Qn);const aa=await YU(Nn,Yn,Qn.map,Qn.reduce,!1,t);return Ai.stale==="ok"||Ai.stale==="update_after"?(Ai.stale==="update_after"&&Vb(function(){Lr(aa,Mn)}),Ln(aa,Ai)):(await Lr(aa,Mn),Ln(aa,Ai))}}function Qi(Nn,Qn,Ai){const Mn=this;typeof Qn=="function"&&(Ai=Qn,Qn={}),Qn=Qn?Wt(Qn):{},typeof Nn=="function"&&(Nn={map:Nn});const Yn=Promise.resolve().then(function(){return ua(Mn,Nn,Qn)});return hG(Yn,Ai),Yn}const ta=koe(function(){const Nn=this;return typeof Nn._viewCleanup=="function"?lr(Nn):Nb(Nn)?Zn(Nn):ai(Nn)});return{query:Qi,viewCleanup:ta}}var Ez={_sum:function(t,e){return DN(e)},_count:function(t,e){return e.length},_stats:function(t,e){function o(_){for(var U=0,te=0,me=_.length;te<me;te++){var Le=_[te];U+=Le*Le}return U}return{sum:DN(e),min:Math.min.apply(null,e),max:Math.max.apply(null,e),count:e.length,sumsqr:o(e)}}};function Foe(t){if(/^_sum/.test(t))return Ez._sum;if(/^_count/.test(t))return Ez._count;if(/^_stats/.test(t))return Ez._stats;if(/^_/.test(t))throw new Error(t+" is not a supported reduce function.")}function Boe(t,e){if(typeof t=="function"&&t.length===2){var o=t;return function(_){return o(_,e)}}else return dG(t.toString(),e)}function Uoe(t){var e=t.toString(),o=Foe(e);return o||dG(e)}function joe(t,e){var o=t.views&&t.views[e];if(typeof o.map!="string")throw new vD("ddoc "+t._id+" has no string view named "+e+", instead found object of type: "+typeof o.map)}var Voe="mrviews",pG=Noe(Voe,Boe,Uoe,joe);function qoe(t,e,o){return pG.query.call(this,t,e,o)}function Hoe(t){return pG.viewCleanup.call(this,t)}var Goe={query:qoe,viewCleanup:Hoe};function Woe(t,e,o){return!t._attachments||!t._attachments[o]||t._attachments[o].digest!==e._attachments[o].digest}function QU(t,e){var o=Object.keys(e._attachments);return Promise.all(o.map(function(_){return t.getAttachment(e._id,_,{rev:e._rev})}))}function $oe(t,e,o){var _=Nb(e)&&!Nb(t),U=Object.keys(o._attachments);return _?t.get(o._id).then(function(te){return Promise.all(U.map(function(me){return Woe(te,o,me)?e.getAttachment(o._id,me):t.getAttachment(te._id,me)}))}).catch(function(te){if(te.status!==404)throw te;return QU(e,o)}):QU(e,o)}function Xoe(t){var e=[];return Object.keys(t).forEach(function(o){var _=t[o].missing;_.forEach(function(U){e.push({id:o,rev:U})})}),{docs:e,revs:!0,latest:!0}}function Yoe(t,e,o,_){o=Om(o);var U=[],te=!0;function me(){var Re=Xoe(o);if(Re.docs.length)return t.bulkGet(Re).then(function(je){if(_.cancelled)throw new Error("cancelled");return Promise.all(je.results.map(function(Qe){return Promise.all(Qe.docs.map(function(nt){var yt=nt.ok;return nt.error&&(te=!1),!yt||!yt._attachments?yt:$oe(e,t,yt).then(function(Wt){var Bt=Object.keys(yt._attachments);return Wt.forEach(function(rr,Nt){var Se=yt._attachments[Bt[Nt]];delete Se.stub,delete Se.length,Se.data=rr}),yt})}))})).then(function(Qe){U=U.concat(yI(Qe).filter(Boolean))})})}function Le(){return{ok:te,docs:U}}return Promise.resolve().then(me).then(Le)}var ej=1,tj="pouchdb",Zoe=5,Ib=0;function zN(t,e,o,_,U){return t.get(e).catch(function(te){if(te.status===404)return(t.adapter==="http"||t.adapter==="https")&&bN(404,"PouchDB is just checking if a remote checkpoint exists."),{session_id:_,_id:e,history:[],replicator:tj,version:ej};throw te}).then(function(te){if(!U.cancelled&&te.last_seq!==o)return te.history=(te.history||[]).filter(function(me){return me.session_id!==_}),te.history.unshift({last_seq:o,session_id:_}),te.history=te.history.slice(0,Zoe),te.version=ej,te.replicator=tj,te.session_id=_,te.last_seq=o,t.put(te).catch(function(me){if(me.status===409)return zN(t,e,o,_,U);throw me})})}class rj{constructor(e,o,_,U,te){this.src=e,this.target=o,this.id=_,this.returnValue=U,this.opts=te||{}}writeCheckpoint(e,o){var _=this;return this.updateTarget(e,o).then(function(){return _.updateSource(e,o)})}updateTarget(e,o){return this.opts.writeTargetCheckpoint?zN(this.target,this.id,e,o,this.returnValue):Promise.resolve(!0)}updateSource(e,o){if(this.opts.writeSourceCheckpoint){var _=this;return zN(this.src,this.id,e,o,this.returnValue).catch(function(U){if(ij(U))return _.opts.writeSourceCheckpoint=!1,!0;throw U})}else return Promise.resolve(!0)}getCheckpoint(){var e=this;return e.opts&&e.opts.writeSourceCheckpoint&&!e.opts.writeTargetCheckpoint?e.src.get(e.id).then(function(o){return o.last_seq||Ib}).catch(function(o){if(o.status!==404)throw o;return Ib}):e.target.get(e.id).then(function(o){return e.opts&&e.opts.writeTargetCheckpoint&&!e.opts.writeSourceCheckpoint?o.last_seq||Ib:e.src.get(e.id).then(function(_){if(o.version!==_.version)return Ib;var U;return o.version?U=o.version.toString():U="undefined",U in nj?nj[U](o,_):Ib},function(_){if(_.status===404&&o.last_seq)return e.src.put({_id:e.id,last_seq:Ib}).then(function(){return Ib},function(U){return ij(U)?(e.opts.writeSourceCheckpoint=!1,o.last_seq):Ib});throw _})}).catch(function(o){if(o.status!==404)throw o;return Ib})}}var nj={undefined:function(t,e){return Vv(t.last_seq,e.last_seq)===0?e.last_seq:0},1:function(t,e){return Koe(e,t).last_seq}};function Koe(t,e){return t.session_id===e.session_id?{last_seq:t.last_seq,history:t.history}:vG(t.history,e.history)}function vG(t,e){var o=t[0],_=t.slice(1),U=e[0],te=e.slice(1);if(!o||e.length===0)return{last_seq:Ib,history:[]};var me=o.session_id;if(NN(me,e))return{last_seq:o.last_seq,history:t};var Le=U.session_id;return NN(Le,_)?{last_seq:U.last_seq,history:te}:vG(_,te)}function NN(t,e){var o=e[0],_=e.slice(1);return!t||e.length===0?!1:t===o.session_id?!0:NN(t,_)}function ij(t){return typeof t.status=="number"&&Math.floor(t.status/100)===4}function mG(t,e,o,_,U){return this instanceof rj?mG:new rj(t,e,o,_,U)}var aj=0;function Joe(t,e,o,_){if(t.retry===!1){e.emit("error",o),e.removeAllListeners();return}if(typeof t.back_off_function!="function"&&(t.back_off_function=xie),e.emit("requestError",o),e.state==="active"||e.state==="pending"){e.emit("paused",o),e.state="stopped";var U=function(){t.current_back_off=aj},te=function(){e.removeListener("active",U)};e.once("paused",te),e.once("active",U)}t.current_back_off=t.current_back_off||aj,t.current_back_off=t.back_off_function(t.current_back_off),setTimeout(_,t.current_back_off)}function Qoe(t){return Object.keys(t).sort(Vv).reduce(function(e,o){return e[o]=t[o],e},{})}function ese(t,e,o){var _=o.doc_ids?o.doc_ids.sort(Vv):"",U=o.filter?o.filter.toString():"",te="",me="",Le="";return o.selector&&(Le=JSON.stringify(o.selector)),o.filter&&o.query_params&&(te=JSON.stringify(Qoe(o.query_params))),o.filter&&o.filter==="_view"&&(me=o.view.toString()),Promise.all([t.id(),e.id()]).then(function(Re){var je=Re[0]+Re[1]+U+me+te+_+Le;return new Promise(function(Qe){g4(je,Qe)})}).then(function(Re){return Re=Re.replace(/\//g,".").replace(/\+/g,"_"),"_local/"+Re})}function gG(t,e,o,_,U){var te=[],me,Le={seq:0,changes:[],docs:[]},Re=!1,je=!1,Qe=!1,nt=0,yt=0,Wt=o.continuous||o.live||!1,Bt=o.batch_size||100,rr=o.batches_limit||10,Nt=o.style||"all_docs",Se=!1,lr=o.doc_ids,Zt=o.selector,$t,kt,Jt=[],Ur=pD(),Lr;U=U||{ok:!0,start_time:new Date().toISOString(),docs_read:0,docs_written:0,doc_write_failures:0,errors:[]};var xn={};_.ready(t,e);function In(){return kt?Promise.resolve():ese(t,e,o).then(function(En){$t=En;var aa={};o.checkpoint===!1?aa={writeSourceCheckpoint:!1,writeTargetCheckpoint:!1}:o.checkpoint==="source"?aa={writeSourceCheckpoint:!0,writeTargetCheckpoint:!1}:o.checkpoint==="target"?aa={writeSourceCheckpoint:!1,writeTargetCheckpoint:!0}:aa={writeSourceCheckpoint:!0,writeTargetCheckpoint:!0},kt=new mG(t,e,$t,_,aa)})}function Ln(){if(Jt=[],me.docs.length!==0){var En=me.docs,aa={timeout:o.timeout};return e.bulkDocs({docs:En,new_edits:!1},aa).then(function(Ci){if(_.cancelled)throw Nn(),new Error("cancelled");var Oa=Object.create(null);Ci.forEach(function(Po){Po.error&&(Oa[Po.id]=Po)});var Ca=Object.keys(Oa).length;U.doc_write_failures+=Ca,U.docs_written+=En.length-Ca,En.forEach(function(Po){var Eo=Oa[Po._id];if(Eo){U.errors.push(Eo);var Za=(Eo.name||"").toLowerCase();if(Za==="unauthorized"||Za==="forbidden")_.emit("denied",Om(Eo));else throw Eo}else Jt.push(Po)})},function(Ci){throw U.doc_write_failures+=En.length,Ci})}}function ci(){if(me.error)throw new Error("There was a problem getting docs.");U.last_seq=yt=me.seq;var En=Om(U);return Jt.length&&(En.docs=Jt,typeof me.pending=="number"&&(En.pending=me.pending,delete me.pending),_.emit("change",En)),Re=!0,t.info().then(function(aa){var Ci=t.activeTasks.get(Lr);if(!(!me||!Ci)){var Oa=Ci.completed_items||0,Ca=parseInt(aa.update_seq,10)-parseInt(nt,10);t.activeTasks.update(Lr,{completed_items:Oa+me.changes.length,total_items:Ca})}}),kt.writeCheckpoint(me.seq,Ur).then(function(){if(_.emit("checkpoint",{checkpoint:me.seq}),Re=!1,_.cancelled)throw Nn(),new Error("cancelled");me=void 0,Yn()}).catch(function(aa){throw Wn(aa),aa})}function Zn(){var En={};return me.changes.forEach(function(aa){_.emit("checkpoint",{revs_diff:aa}),aa.id!=="_user/"&&(En[aa.id]=aa.changes.map(function(Ci){return Ci.rev}))}),e.revsDiff(En).then(function(aa){if(_.cancelled)throw Nn(),new Error("cancelled");me.diffs=aa})}function ai(){return Yoe(t,e,me.diffs,_).then(function(En){me.error=!En.ok,En.docs.forEach(function(aa){delete me.diffs[aa._id],U.docs_read++,me.docs.push(aa)})})}function ua(){if(!(_.cancelled||me)){if(te.length===0){Qi(!0);return}me=te.shift(),_.emit("checkpoint",{start_next_batch:me.seq}),Zn().then(ai).then(Ln).then(ci).then(ua).catch(function(En){ta("batch processing terminated with error",En)})}}function Qi(En){if(Le.changes.length===0){te.length===0&&!me&&((Wt&&xn.live||je)&&(_.state="pending",_.emit("paused")),je&&Nn());return}(En||je||Le.changes.length>=Bt)&&(te.push(Le),Le={seq:0,changes:[],docs:[]},(_.state==="pending"||_.state==="stopped")&&(_.state="active",_.emit("active")),ua())}function ta(En,aa){Qe||(aa.message||(aa.message=En),U.ok=!1,U.status="aborting",te=[],Le={seq:0,changes:[],docs:[]},Nn(aa))}function Nn(En){if(!Qe&&!(_.cancelled&&(U.status="cancelled",Re)))if(U.status=U.status||"complete",U.end_time=new Date().toISOString(),U.last_seq=yt,Qe=!0,t.activeTasks.remove(Lr,En),En){En=Bc(En),En.result=U;var aa=(En.name||"").toLowerCase();aa==="unauthorized"||aa==="forbidden"?(_.emit("error",En),_.removeAllListeners()):Joe(o,_,En,function(){gG(t,e,o,_)})}else _.emit("complete",U),_.removeAllListeners()}function Qn(En,aa,Ci){if(_.cancelled)return Nn();typeof aa=="number"&&(Le.pending=aa);var Oa=c4(o)(En);if(!Oa){var Ca=t.activeTasks.get(Lr);if(Ca){var Po=Ca.completed_items||0;t.activeTasks.update(Lr,{completed_items:++Po})}return}Le.seq=En.seq||Ci,Le.changes.push(En),_.emit("checkpoint",{pending_batch:Le.seq}),Vb(function(){Qi(te.length===0&&xn.live)})}function Ai(En){if(Se=!1,_.cancelled)return Nn();if(En.results.length>0)xn.since=En.results[En.results.length-1].seq,Yn(),Qi(!0);else{var aa=function(){Wt?(xn.live=!0,Yn()):je=!0,Qi(!0)};!me&&En.results.length===0?(Re=!0,kt.writeCheckpoint(En.last_seq,Ur).then(function(){if(Re=!1,U.last_seq=yt=En.last_seq,_.cancelled)throw Nn(),new Error("cancelled");aa()}).catch(Wn)):aa()}}function Mn(En){if(Se=!1,_.cancelled)return Nn();ta("changes rejected",En)}function Yn(){if(!(!Se&&!je&&te.length<rr))return;Se=!0;function En(){Ci.cancel()}function aa(){_.removeListener("cancel",En)}_._changes&&(_.removeListener("cancel",_._abortChanges),_._changes.cancel()),_.once("cancel",En);var Ci=t.changes(xn).on("change",Qn);Ci.then(aa,aa),Ci.then(Ai).catch(Mn),o.retry&&(_._changes=Ci,_._abortChanges=En)}function Zi(En){return t.info().then(function(aa){var Ci=typeof o.since>"u"?parseInt(aa.update_seq,10)-parseInt(En,10):parseInt(aa.update_seq,10);return Lr=t.activeTasks.add({name:`${Wt?"continuous ":""}replication from ${aa.db_name}`,total_items:Ci}),En})}function Oi(){In().then(function(){if(_.cancelled){Nn();return}return kt.getCheckpoint().then(Zi).then(function(En){yt=En,nt=En,xn={since:yt,limit:Bt,batch_size:Bt,style:Nt,doc_ids:lr,selector:Zt,return_docs:!0},o.filter&&(typeof o.filter!="string"?xn.include_docs=!0:xn.filter=o.filter),"heartbeat"in o&&(xn.heartbeat=o.heartbeat),"timeout"in o&&(xn.timeout=o.timeout),o.query_params&&(xn.query_params=o.query_params),o.view&&(xn.view=o.view),Yn()})}).catch(function(En){ta("getCheckpoint rejected with ",En)})}function Wn(En){Re=!1,ta("writeCheckpoint completed with error",En)}if(_.cancelled){Nn();return}_._addedListeners||(_.once("cancel",Nn),typeof o.complete=="function"&&(_.once("error",o.complete),_.once("complete",function(En){o.complete(null,En)})),_._addedListeners=!0),typeof o.since>"u"?Oi():In().then(function(){return Re=!0,kt.writeCheckpoint(o.since,Ur)}).then(function(){if(Re=!1,_.cancelled){Nn();return}yt=o.since,Oi()}).catch(Wn)}class tse extends b2{constructor(){super(),this.cancelled=!1,this.state="pending";const e=new Promise((o,_)=>{this.once("complete",o),this.once("error",_)});this.then=function(o,_){return e.then(o,_)},this.catch=function(o){return e.catch(o)},this.catch(function(){})}cancel(){this.cancelled=!0,this.state="cancelled",this.emit("cancel")}ready(e,o){if(this._readyCalled)return;this._readyCalled=!0;const _=()=>{this.cancel()};e.once("destroyed",_),o.once("destroyed",_);function U(){e.removeListener("destroyed",_),o.removeListener("destroyed",_)}this.once("complete",U),this.once("error",U)}}function wI(t,e){var o=e.PouchConstructor;return typeof t=="string"?new o(t,e):t}function FN(t,e,o,_){if(typeof o=="function"&&(_=o,o={}),typeof o>"u"&&(o={}),o.doc_ids&&!Array.isArray(o.doc_ids))throw Bc(dD,"`doc_ids` filter parameter is not a list.");o.complete=_,o=Om(o),o.continuous=o.continuous||o.live,o.retry="retry"in o?o.retry:!1,o.PouchConstructor=o.PouchConstructor||this;var U=new tse(o),te=wI(t,o),me=wI(e,o);return gG(te,me,o,U),U}function rse(t,e,o,_){return typeof o=="function"&&(_=o,o={}),typeof o>"u"&&(o={}),o=Om(o),o.PouchConstructor=o.PouchConstructor||this,t=wI(t,o),e=wI(e,o),new nse(t,e,o,_)}class nse extends b2{constructor(e,o,_,U){super(),this.canceled=!1;const te=_.push?L3({},_,_.push):_,me=_.pull?L3({},_,_.pull):_;this.push=FN(e,o,te),this.pull=FN(o,e,me),this.pushPaused=!0,this.pullPaused=!0;const Le=Zt=>{this.emit("change",{direction:"pull",change:Zt})},Re=Zt=>{this.emit("change",{direction:"push",change:Zt})},je=Zt=>{this.emit("denied",{direction:"push",doc:Zt})},Qe=Zt=>{this.emit("denied",{direction:"pull",doc:Zt})},nt=()=>{this.pushPaused=!0,this.pullPaused&&this.emit("paused")},yt=()=>{this.pullPaused=!0,this.pushPaused&&this.emit("paused")},Wt=()=>{this.pushPaused=!1,this.pullPaused&&this.emit("active",{direction:"push"})},Bt=()=>{this.pullPaused=!1,this.pushPaused&&this.emit("active",{direction:"pull"})};let rr={};const Nt=Zt=>($t,kt)=>{($t==="change"&&(kt===Le||kt===Re)||$t==="denied"&&(kt===Qe||kt===je)||$t==="paused"&&(kt===yt||kt===nt)||$t==="active"&&(kt===Bt||kt===Wt))&&($t in rr||(rr[$t]={}),rr[$t][Zt]=!0,Object.keys(rr[$t]).length===2&&this.removeAllListeners($t))};_.live&&(this.push.on("complete",this.pull.cancel.bind(this.pull)),this.pull.on("complete",this.push.cancel.bind(this.push)));function Se(Zt,$t,kt){Zt.listeners($t).indexOf(kt)==-1&&Zt.on($t,kt)}this.on("newListener",function(Zt){Zt==="change"?(Se(this.pull,"change",Le),Se(this.push,"change",Re)):Zt==="denied"?(Se(this.pull,"denied",Qe),Se(this.push,"denied",je)):Zt==="active"?(Se(this.pull,"active",Bt),Se(this.push,"active",Wt)):Zt==="paused"&&(Se(this.pull,"paused",yt),Se(this.push,"paused",nt))}),this.on("removeListener",function(Zt){Zt==="change"?(this.pull.removeListener("change",Le),this.push.removeListener("change",Re)):Zt==="denied"?(this.pull.removeListener("denied",Qe),this.push.removeListener("denied",je)):Zt==="active"?(this.pull.removeListener("active",Bt),this.push.removeListener("active",Wt)):Zt==="paused"&&(this.pull.removeListener("paused",yt),this.push.removeListener("paused",nt))}),this.pull.on("removeListener",Nt("pull")),this.push.on("removeListener",Nt("push"));const lr=Promise.all([this.push,this.pull]).then(Zt=>{const $t={push:Zt[0],pull:Zt[1]};return this.emit("complete",$t),U&&U(null,$t),this.removeAllListeners(),$t},Zt=>{if(this.cancel(),U?U(Zt):this.emit("error",Zt),this.removeAllListeners(),U)throw Zt});this.then=function(Zt,$t){return lr.then(Zt,$t)},this.catch=function(Zt){return lr.catch(Zt)}}cancel(){this.canceled||(this.canceled=!0,this.push.cancel(),this.pull.cancel())}}function ise(t){t.replicate=FN,t.sync=rse,Object.defineProperty(t.prototype,"replicate",{get:function(){var e=this;return typeof this.replicateMethods>"u"&&(this.replicateMethods={from:function(o,_,U){return e.constructor.replicate(o,e,_,U)},to:function(o,_,U){return e.constructor.replicate(e,o,_,U)}}),this.replicateMethods}}),t.prototype.sync=function(e,o,_){return this.constructor.sync(this,e,o,_)}}jc.plugin(xoe).plugin(Moe).plugin(Goe).plugin(ise);let xp=class extends Error{constructor(e,o,_){super(),this.status=e,this.name=o,this.message=_,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}};new xp(401,"unauthorized","Name or password is incorrect.");new xp(400,"bad_request","Missing JSON list of 'docs'");new xp(404,"not_found","missing");new xp(409,"conflict","Document update conflict");new xp(400,"bad_request","_id field must contain a string");new xp(412,"missing_id","_id is required for puts");new xp(400,"bad_request","Only reserved document ids may start with underscore.");new xp(412,"precondition_failed","Database not open");new xp(500,"unknown_error","Database encountered an unknown error");new xp(500,"badarg","Some query argument is invalid");new xp(400,"invalid_request","Request was invalid");new xp(400,"query_parse_error","Some query parameter is invalid");new xp(500,"doc_validation","Bad special document member");new xp(400,"bad_request","Something wrong with the request");new xp(400,"bad_request","Document must be a JSON object");new xp(404,"not_found","Database not found");new xp(500,"indexed_db_went_bad","unknown");new xp(500,"web_sql_went_bad","unknown");new xp(500,"levelDB_went_went_bad","unknown");new xp(403,"forbidden","Forbidden by design doc validate_doc_update function");new xp(400,"bad_request","Invalid rev format");new xp(412,"file_exists","The database could not be created, the file already exists.");new xp(412,"missing_stub","A pre-existing attachment stub wasn't found");new xp(413,"invalid_url","Provided URL is invalid");function ase(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer||typeof Blob<"u"&&t instanceof Blob}function ose(t){return t instanceof ArrayBuffer?t.slice(0):t.slice(0,t.size,t.type)}var yG=Function.prototype.toString,sse=yG.call(Object);function lse(t){var e=Object.getPrototypeOf(t);if(e===null)return!0;var o=e.constructor;return typeof o=="function"&&o instanceof o&&yG.call(o)==sse}function BN(t){var e,o,_;if(!t||typeof t!="object")return t;if(Array.isArray(t)){for(e=[],o=0,_=t.length;o<_;o++)e[o]=BN(t[o]);return e}if(t instanceof Date&&isFinite(t))return t.toISOString();if(ase(t))return ose(t);if(!lse(t))return t;e={};for(o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var U=BN(t[o]);typeof U<"u"&&(e[o]=U)}return e}var oj;try{localStorage.setItem("_pouch_check_localstorage",1),oj=!!localStorage.getItem("_pouch_check_localstorage")}catch{oj=!1}var O5=function(t,e,o,_,U){if(_==="m")throw new TypeError("Private method is not writable");if(_==="a"&&!U)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!U:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return _==="a"?U.call(t,o):U?U.value=o:e.set(t,o),o},Sh=function(t,e,o,_){if(o==="a"&&!_)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!_:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?_:o==="a"?_.call(t):_?_.value:e.get(t)},QC,G5,am,bS,wS;class use{constructor(e){QC.set(this,void 0),G5.set(this,void 0),am.set(this,null),bS.set(this,new Map),wS.set(this,!1),O5(this,QC,e,"f"),O5(this,G5,()=>{this.unsubscribeAll()},"f"),e.once("destroyed",Sh(this,G5,"f"))}subscribeToDocs(e,o){var _;if(Sh(this,wS,"f"))return()=>{};Sh(this,am,"f")==null&&O5(this,am,cse(Sh(this,QC,"f")),"f");const U=Array.isArray(e)&&e.length>0;if(U)for(const me of e??[])if(Sh(this,am,"f").ids.has(me))(_=Sh(this,am,"f").ids.get(me))===null||_===void 0||_.add(o);else{const Le=new Set;Le.add(o),Sh(this,am,"f").ids.set(me,Le)}else Sh(this,am,"f").all.add(o);let te=!1;return()=>{var me,Le,Re,je;if(!(te||Sh(this,wS,"f"))){if(te=!0,U)for(const Qe of e??[]){const nt=(me=Sh(this,am,"f"))===null||me===void 0?void 0:me.ids.get(Qe);nt?.delete(o),nt?.size===0&&((Le=Sh(this,am,"f"))===null||Le===void 0||Le.ids.delete(Qe))}else(Re=Sh(this,am,"f"))===null||Re===void 0||Re.all.delete(o);((je=Sh(this,am,"f"))===null||je===void 0?void 0:je.all.size)===0&&Sh(this,am,"f").ids.size===0&&(Sh(this,am,"f").changesFeed.cancel(),O5(this,am,null,"f"))}}}subscribeToView(e,o){if(Sh(this,wS,"f"))return()=>{};let _;Sh(this,bS,"f").has(e)?_=Sh(this,bS,"f").get(e):(_=fse(Sh(this,QC,"f"),e),Sh(this,bS,"f").set(e,_)),_.callbacks.add(o);let U=!1;return()=>{U||Sh(this,wS,"f")||(U=!0,_.callbacks.delete(o),_.callbacks.size===0&&(_.feed.cancel(),Sh(this,bS,"f").delete(e)))}}unsubscribeAll(){if(!Sh(this,wS,"f")){O5(this,wS,!0,"f"),Sh(this,QC,"f").removeListener("destroyed",Sh(this,G5,"f")),Sh(this,am,"f")&&(Sh(this,am,"f").changesFeed.cancel(),Sh(this,am,"f").all.clear(),Sh(this,am,"f").ids.forEach(e=>{e.clear()}),Sh(this,am,"f").ids.clear());for(const e of Sh(this,bS,"f").values())e.feed.cancel(),e.callbacks.clear();Sh(this,bS,"f").clear()}}}QC=new WeakMap,G5=new WeakMap,am=new WeakMap,bS=new WeakMap,wS=new WeakMap;function cse(t){let e=null;return e={changesFeed:t.changes({since:"now",live:!0}).on("change",_=>{var U;const te=((U=e?.all.size)!==null&&U!==void 0?U:0)>0,me=e?.ids.get(_.id);_.deleted?(te&&e&&M6(e.all,!0,_.id),me&&M6(me,!0,_.id)):t.get(_.id).then(Le=>{te&&e&&M6(e.all,!1,_.id,Le),me&&M6(me,!1,_.id,Le)}).catch(console.error)}),all:new Set,ids:new Map},e}function M6(t,e,o,_){for(const U of t)try{const te=_?BN(_):void 0;U(e,o,te)}catch(te){console.error(te)}}function fse(t,e){let o=null;return o={feed:t.changes({since:"now",live:!0,filter:"_view",view:e}).on("change",U=>{var te;for(const me of(te=o?.callbacks)!==null&&te!==void 0?te:[])try{me(U.id)}catch(Le){console.error(Le)}}),callbacks:new Set},o}const UN=vr.createContext({defaultKey:"",databases:{}});function hse(t){const{pouchdb:e,name:o}=t,{databases:_,default:U}=t;let te,me;if(_!=null&&U!=null)te=_,me=U.toString();else if(e!=null)me=o?.toString()||e.name,te={[me]:e};else throw new TypeError("databases argument must be pared with the default argument");const Le=dse(te),Re=vr.useContext(UN).databases,je=vr.useMemo(()=>({defaultKey:me,databases:Object.assign(Object.assign({},Re),Le)}),[Le,me,Re]);return Ts.createElement(UN.Provider,{value:je},t.children)}function dse(t){const[e,o]=vr.useState(t),[_,U]=vr.useState(null);if(_&&t===e)return _;const te={},me=new Set(Object.keys(_??{}));let Le=!1;for(const[Re,je]of Object.entries(t))_&&e[Re]===je?(te[Re]=_[Re],me.delete(Re)):(Le=!0,te[Re]={pouchdb:je,subscriptionManager:new use(je)});if(Le||me.size>0)o(t),U(te);else if(_)return _;if(_)for(const Re of me)_[Re].subscriptionManager.unsubscribeAll();return te}function pse(t){const{defaultKey:e,databases:o}=vr.useContext(UN);if(e===""&&o[e]==null&&Object.keys(o).length===0)throw new Error("could not find PouchDB context value; please ensure the component is wrapped in a <Provider>");const _=t==="_default"?e:t??e;if(!(_ in o))throw new Error(`could not find a PouchDB database with name of "${t}"`);return o[_]}function vse(t){const[e,o]=vr.useReducer(mse,t,me=>(typeof me=="function"&&(me=me()),me||(me={}),Object.assign(Object.assign({},me),{error:null,state:"loading"}))),_=vr.useMemo(()=>Object.assign(Object.assign({},e),{loading:e.state==="loading"}),[e]),U=vr.useRef(e);U.current=e;const te=vr.useCallback(me=>{const Le=me(U.current);o({type:"loading_finished",payload:Le})},[]);return[_,o,te]}function mse(t,e){switch(e.type){case"loading_started":return Object.assign(Object.assign({},t),{state:"loading"});case"loading_finished":return Object.assign(Object.assign({},e.payload),{error:null,state:"done"});case"loading_error":return Object.assign(Object.assign(Object.assign({},t),e.payload.setResult?e.payload.result||{}:{}),{state:"error",error:e.payload.error});default:return t}}var Cz,sj;function gse(){return sj||(sj=1,Cz=function t(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var _,U,te;if(Array.isArray(e)){if(_=e.length,_!=o.length)return!1;for(U=_;U--!==0;)if(!t(e[U],o[U]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if(te=Object.keys(e),_=te.length,_!==Object.keys(o).length)return!1;for(U=_;U--!==0;)if(!Object.prototype.hasOwnProperty.call(o,te[U]))return!1;for(U=_;U--!==0;){var me=te[U];if(!t(e[me],o[me]))return!1}return!0}return e!==e&&o!==o}),Cz}var yse=gse();const _se=Uy(yse);function xse(t){const e=vr.useRef(t);return vr.useMemo(()=>_se(e.current,t)?e.current:(e.current=t,t),[t])}function bse(t){const{pouchdb:e,subscriptionManager:o}=pse(t?.db),{include_docs:_,conflicts:U,attachments:te,binary:me,limit:Le,skip:Re,descending:je,update_seq:Qe}=t||{},{startkey:nt,endkey:yt,inclusive_end:Wt}=t||{},{key:Bt}=t||{},rr=xse(t?.keys),[Nt,Se,lr]=vse(()=>({rows:[],total_rows:0,offset:0}));return vr.useEffect(()=>{let Zt=!0,$t=!1,kt=!1;const Jt={include_docs:_,conflicts:U,attachments:te,binary:me,limit:Le,skip:Re,descending:je,update_seq:Qe,startkey:nt,endkey:yt,inclusive_end:Wt,key:Bt,keys:rr},Ur=async()=>{if($t){kt=!0;return}$t=!0,kt=!1,Se({type:"loading_started"});try{const In=await e.allDocs(Jt);Zt&&Se({type:"loading_finished",payload:In})}catch(In){Zt&&Se({type:"loading_error",payload:{error:In,setResult:!1}})}finally{$t=!1,kt&&Zt&&Ur()}};Ur();let Lr=null;Bt!=null?Lr=[Bt]:rr!=null&&(Lr=rr);const xn=o.subscribeToDocs(Lr,(In,Ln)=>{!Zt||!wse(Ln,nt,yt,Wt,je)||(In?lr(ci=>{const Zn=ci.rows.filter(ai=>ai.id!==Ln);return Object.assign(Object.assign({},ci),{rows:Zn,total_rows:ci.total_rows-(ci.rows.length-Zn.length)})}):Ur())});return()=>{Zt=!1,xn()}},[Se,lr,e,o,_,U,te,me,nt,yt,Wt,Le,Re,je,Bt,rr,Qe]),Nt}function wse(t,e,o,_,U){return e&&(U&&t>e||!U&&t<e)?!1:o==null?!0:_?U?t>=o:t<=o:U?t>o:t<o}function gD(t){return"$"+t}function _G(t){return t.substring(1)}function US(){this._store={}}US.prototype.get=function(t){var e=gD(t);return this._store[e]};US.prototype.set=function(t,e){var o=gD(t);return this._store[o]=e,!0};US.prototype.has=function(t){var e=gD(t);return e in this._store};US.prototype.keys=function(){return Object.keys(this._store).map(t=>_G(t))};US.prototype.delete=function(t){var e=gD(t),o=e in this._store;return delete this._store[e],o};US.prototype.forEach=function(t){for(var e=Object.keys(this._store),o=0,_=e.length;o<_;o++){var U=e[o],te=this._store[U];U=_G(U),t(te,U)}};Object.defineProperty(US.prototype,"size",{get:function(){return Object.keys(this._store).length}});function yD(t){if(this._store=new US,t&&Array.isArray(t))for(var e=0,o=t.length;e<o;e++)this.add(t[e])}yD.prototype.add=function(t){return this._store.set(t,!0)};yD.prototype.has=function(t){return this._store.has(t)};yD.prototype.forEach=function(t){this._store.forEach(function(e,o){t(o)})};Object.defineProperty(yD.prototype,"size",{get:function(){return this._store.size}});class bp extends Error{constructor(e,o,_){super(),this.status=e,this.name=o,this.message=_,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}}new bp(401,"unauthorized","Name or password is incorrect.");new bp(400,"bad_request","Missing JSON list of 'docs'");new bp(404,"not_found","missing");new bp(409,"conflict","Document update conflict");new bp(400,"bad_request","_id field must contain a string");new bp(412,"missing_id","_id is required for puts");new bp(400,"bad_request","Only reserved document ids may start with underscore.");new bp(412,"precondition_failed","Database not open");new bp(500,"unknown_error","Database encountered an unknown error");new bp(500,"badarg","Some query argument is invalid");new bp(400,"invalid_request","Request was invalid");new bp(400,"query_parse_error","Some query parameter is invalid");new bp(500,"doc_validation","Bad special document member");new bp(400,"bad_request","Something wrong with the request");new bp(400,"bad_request","Document must be a JSON object");new bp(404,"not_found","Database not found");new bp(500,"indexed_db_went_bad","unknown");new bp(500,"web_sql_went_bad","unknown");new bp(500,"levelDB_went_went_bad","unknown");new bp(403,"forbidden","Forbidden by design doc validate_doc_update function");new bp(400,"bad_request","Invalid rev format");new bp(412,"file_exists","The database could not be created, the file already exists.");new bp(412,"missing_stub","A pre-existing attachment stub wasn't found");new bp(413,"invalid_url","Provided URL is invalid");var Tse=Function.prototype.toString;Tse.call(Object);var lj;try{localStorage.setItem("_pouch_check_localstorage",1),lj=!!localStorage.getItem("_pouch_check_localstorage")}catch{lj=!1}const yc=t=>typeof t=="string",z5=()=>{let t,e;const o=new Promise((_,U)=>{t=_,e=U});return o.resolve=t,o.reject=e,o},uj=t=>t==null?"":""+t,Sse=(t,e,o)=>{t.forEach(_=>{e[_]&&(o[_]=e[_])})},Ase=/###/g,cj=t=>t&&t.indexOf("###")>-1?t.replace(Ase,"."):t,fj=t=>!t||yc(t),Z5=(t,e,o)=>{const _=yc(e)?e.split("."):e;let U=0;for(;U<_.length-1;){if(fj(t))return{};const te=cj(_[U]);!t[te]&&o&&(t[te]=new o),Object.prototype.hasOwnProperty.call(t,te)?t=t[te]:t={},++U}return fj(t)?{}:{obj:t,k:cj(_[U])}},hj=(t,e,o)=>{const{obj:_,k:U}=Z5(t,e,Object);if(_!==void 0||e.length===1){_[U]=o;return}let te=e[e.length-1],me=e.slice(0,e.length-1),Le=Z5(t,me,Object);for(;Le.obj===void 0&&me.length;)te=`${me[me.length-1]}.${te}`,me=me.slice(0,me.length-1),Le=Z5(t,me,Object),Le?.obj&&typeof Le.obj[`${Le.k}.${te}`]<"u"&&(Le.obj=void 0);Le.obj[`${Le.k}.${te}`]=o},Ese=(t,e,o,_)=>{const{obj:U,k:te}=Z5(t,e,Object);U[te]=U[te]||[],U[te].push(o)},TI=(t,e)=>{const{obj:o,k:_}=Z5(t,e);if(o&&Object.prototype.hasOwnProperty.call(o,_))return o[_]},Cse=(t,e,o)=>{const _=TI(t,o);return _!==void 0?_:TI(e,o)},xG=(t,e,o)=>{for(const _ in e)_!=="__proto__"&&_!=="constructor"&&(_ in t?yc(t[_])||t[_]instanceof String||yc(e[_])||e[_]instanceof String?o&&(t[_]=e[_]):xG(t[_],e[_],o):t[_]=e[_]);return t},YC=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Mse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const kse=t=>yc(t)?t.replace(/[&<>"'\/]/g,e=>Mse[e]):t;class Lse{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const o=this.regExpMap.get(e);if(o!==void 0)return o;const _=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,_),this.regExpQueue.push(e),_}}const Pse=[" ",",","?","!",";"],Rse=new Lse(20),Ise=(t,e,o)=>{e=e||"",o=o||"";const _=Pse.filter(me=>e.indexOf(me)<0&&o.indexOf(me)<0);if(_.length===0)return!0;const U=Rse.getRegExp(`(${_.map(me=>me==="?"?"\\?":me).join("|")})`);let te=!U.test(t);if(!te){const me=t.indexOf(o);me>0&&!U.test(t.substring(0,me))&&(te=!0)}return te},jN=function(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const _=e.split(o);let U=t;for(let te=0;te<_.length;){if(!U||typeof U!="object")return;let me,Le="";for(let Re=te;Re<_.length;++Re)if(Re!==te&&(Le+=o),Le+=_[Re],me=U[Le],me!==void 0){if(["string","number","boolean"].indexOf(typeof me)>-1&&Re<_.length-1)continue;te+=Re-te+1;break}U=me}return U},SI=t=>t?.replace("_","-"),Dse={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class AI{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,o)}init(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=e||Dse,this.options=o,this.debug=o.debug}log(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"log","",!0)}warn(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"warn","",!0)}error(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"error","")}deprecate(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(e,o,_,U){return U&&!this.debug?null:(yc(e[0])&&(e[0]=`${_}${this.prefix} ${e[0]}`),this.logger[o](e))}create(e){return new AI(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new AI(this.logger,e)}}var Bb=new AI;class _D{constructor(){this.observers={}}on(e,o){return e.split(" ").forEach(_=>{this.observers[_]||(this.observers[_]=new Map);const U=this.observers[_].get(o)||0;this.observers[_].set(o,U+1)}),this}off(e,o){if(this.observers[e]){if(!o){delete this.observers[e];return}this.observers[e].delete(o)}}emit(e){for(var o=arguments.length,_=new Array(o>1?o-1:0),U=1;U<o;U++)_[U-1]=arguments[U];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(me=>{let[Le,Re]=me;for(let je=0;je<Re;je++)Le(..._)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(me=>{let[Le,Re]=me;for(let je=0;je<Re;je++)Le.apply(Le,[e,..._])})}}class dj extends _D{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const o=this.options.ns.indexOf(e);o>-1&&this.options.ns.splice(o,1)}getResource(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const te=U.keySeparator!==void 0?U.keySeparator:this.options.keySeparator,me=U.ignoreJSONStructure!==void 0?U.ignoreJSONStructure:this.options.ignoreJSONStructure;let Le;e.indexOf(".")>-1?Le=e.split("."):(Le=[e,o],_&&(Array.isArray(_)?Le.push(..._):yc(_)&&te?Le.push(..._.split(te)):Le.push(_)));const Re=TI(this.data,Le);return!Re&&!o&&!_&&e.indexOf(".")>-1&&(e=Le[0],o=Le[1],_=Le.slice(2).join(".")),Re||!me||!yc(_)?Re:jN(this.data?.[e]?.[o],_,te)}addResource(e,o,_,U){let te=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const me=te.keySeparator!==void 0?te.keySeparator:this.options.keySeparator;let Le=[e,o];_&&(Le=Le.concat(me?_.split(me):_)),e.indexOf(".")>-1&&(Le=e.split("."),U=o,o=Le[1]),this.addNamespaces(o),hj(this.data,Le,U),te.silent||this.emit("added",e,o,_,U)}addResources(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const te in _)(yc(_[te])||Array.isArray(_[te]))&&this.addResource(e,o,te,_[te],{silent:!0});U.silent||this.emit("added",e,o,_)}addResourceBundle(e,o,_,U,te){let me=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},Le=[e,o];e.indexOf(".")>-1&&(Le=e.split("."),U=_,_=o,o=Le[1]),this.addNamespaces(o);let Re=TI(this.data,Le)||{};me.skipCopy||(_=JSON.parse(JSON.stringify(_))),U?xG(Re,_,te):Re={...Re,..._},hj(this.data,Le,Re),me.silent||this.emit("added",e,o,_)}removeResourceBundle(e,o){this.hasResourceBundle(e,o)&&delete this.data[e][o],this.removeNamespaces(o),this.emit("removed",e,o)}hasResourceBundle(e,o){return this.getResource(e,o)!==void 0}getResourceBundle(e,o){return o||(o=this.options.defaultNS),this.getResource(e,o)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const o=this.getDataByLanguage(e);return!!(o&&Object.keys(o)||[]).find(U=>o[U]&&Object.keys(o[U]).length>0)}toJSON(){return this.data}}var bG={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,o,_,U){return t.forEach(te=>{e=this.processors[te]?.process(e,o,_,U)??e}),e}};const pj={},vj=t=>!yc(t)&&typeof t!="boolean"&&typeof t!="number";class EI extends _D{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Sse(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Bb.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,o)?.res!==void 0}extractFromKey(e,o){let _=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;_===void 0&&(_=":");const U=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let te=o.ns||this.options.defaultNS||[];const me=_&&e.indexOf(_)>-1,Le=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Ise(e,_,U);if(me&&!Le){const Re=e.match(this.interpolator.nestingRegexp);if(Re&&Re.length>0)return{key:e,namespaces:yc(te)?[te]:te};const je=e.split(_);(_!==U||_===U&&this.options.ns.indexOf(je[0])>-1)&&(te=je.shift()),e=je.join(U)}return{key:e,namespaces:yc(te)?[te]:te}}translate(e,o,_){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const U=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,te=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:me,namespaces:Le}=this.extractFromKey(e[e.length-1],o),Re=Le[Le.length-1],je=o.lng||this.language,Qe=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(je?.toLowerCase()==="cimode"){if(Qe){const Ln=o.nsSeparator||this.options.nsSeparator;return U?{res:`${Re}${Ln}${me}`,usedKey:me,exactUsedKey:me,usedLng:je,usedNS:Re,usedParams:this.getUsedParamsDetails(o)}:`${Re}${Ln}${me}`}return U?{res:me,usedKey:me,exactUsedKey:me,usedLng:je,usedNS:Re,usedParams:this.getUsedParamsDetails(o)}:me}const nt=this.resolve(e,o);let yt=nt?.res;const Wt=nt?.usedKey||me,Bt=nt?.exactUsedKey||me,rr=["[object Number]","[object Function]","[object RegExp]"],Nt=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,Se=!this.i18nFormat||this.i18nFormat.handleAsObject,lr=o.count!==void 0&&!yc(o.count),Zt=EI.hasDefaultValue(o),$t=lr?this.pluralResolver.getSuffix(je,o.count,o):"",kt=o.ordinal&&lr?this.pluralResolver.getSuffix(je,o.count,{ordinal:!1}):"",Jt=lr&&!o.ordinal&&o.count===0,Ur=Jt&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${$t}`]||o[`defaultValue${kt}`]||o.defaultValue;let Lr=yt;Se&&!yt&&Zt&&(Lr=Ur);const xn=vj(Lr),In=Object.prototype.toString.apply(Lr);if(Se&&Lr&&xn&&rr.indexOf(In)<0&&!(yc(Nt)&&Array.isArray(Lr))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ln=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Wt,Lr,{...o,ns:Le}):`key '${me} (${this.language})' returned an object instead of string.`;return U?(nt.res=Ln,nt.usedParams=this.getUsedParamsDetails(o),nt):Ln}if(te){const Ln=Array.isArray(Lr),ci=Ln?[]:{},Zn=Ln?Bt:Wt;for(const ai in Lr)if(Object.prototype.hasOwnProperty.call(Lr,ai)){const ua=`${Zn}${te}${ai}`;Zt&&!yt?ci[ai]=this.translate(ua,{...o,defaultValue:vj(Ur)?Ur[ai]:void 0,joinArrays:!1,ns:Le}):ci[ai]=this.translate(ua,{...o,joinArrays:!1,ns:Le}),ci[ai]===ua&&(ci[ai]=Lr[ai])}yt=ci}}else if(Se&&yc(Nt)&&Array.isArray(yt))yt=yt.join(Nt),yt&&(yt=this.extendTranslation(yt,e,o,_));else{let Ln=!1,ci=!1;!this.isValidLookup(yt)&&Zt&&(Ln=!0,yt=Ur),this.isValidLookup(yt)||(ci=!0,yt=me);const ai=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ci?void 0:yt,ua=Zt&&Ur!==yt&&this.options.updateMissing;if(ci||Ln||ua){if(this.logger.log(ua?"updateKey":"missingKey",je,Re,me,ua?Ur:yt),te){const Qn=this.resolve(me,{...o,keySeparator:!1});Qn&&Qn.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Qi=[];const ta=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ta&&ta[0])for(let Qn=0;Qn<ta.length;Qn++)Qi.push(ta[Qn]);else this.options.saveMissingTo==="all"?Qi=this.languageUtils.toResolveHierarchy(o.lng||this.language):Qi.push(o.lng||this.language);const Nn=(Qn,Ai,Mn)=>{const Yn=Zt&&Mn!==yt?Mn:ai;this.options.missingKeyHandler?this.options.missingKeyHandler(Qn,Re,Ai,Yn,ua,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Qn,Re,Ai,Yn,ua,o),this.emit("missingKey",Qn,Re,Ai,yt)};this.options.saveMissing&&(this.options.saveMissingPlurals&&lr?Qi.forEach(Qn=>{const Ai=this.pluralResolver.getSuffixes(Qn,o);Jt&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Ai.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ai.push(`${this.options.pluralSeparator}zero`),Ai.forEach(Mn=>{Nn([Qn],me+Mn,o[`defaultValue${Mn}`]||Ur)})}):Nn(Qi,me,Ur))}yt=this.extendTranslation(yt,e,o,nt,_),ci&&yt===me&&this.options.appendNamespaceToMissingKey&&(yt=`${Re}:${me}`),(ci||Ln)&&this.options.parseMissingKeyHandler&&(yt=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${Re}:${me}`:me,Ln?yt:void 0))}return U?(nt.res=yt,nt.usedParams=this.getUsedParamsDetails(o),nt):yt}extendTranslation(e,o,_,U,te){var me=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,..._},_.lng||this.language||U.usedLng,U.usedNS,U.usedKey,{resolved:U});else if(!_.skipInterpolation){_.interpolation&&this.interpolator.init({..._,interpolation:{...this.options.interpolation,..._.interpolation}});const je=yc(e)&&(_?.interpolation?.skipOnVariables!==void 0?_.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Qe;if(je){const yt=e.match(this.interpolator.nestingRegexp);Qe=yt&&yt.length}let nt=_.replace&&!yc(_.replace)?_.replace:_;if(this.options.interpolation.defaultVariables&&(nt={...this.options.interpolation.defaultVariables,...nt}),e=this.interpolator.interpolate(e,nt,_.lng||this.language||U.usedLng,_),je){const yt=e.match(this.interpolator.nestingRegexp),Wt=yt&&yt.length;Qe<Wt&&(_.nest=!1)}!_.lng&&U&&U.res&&(_.lng=this.language||U.usedLng),_.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var yt=arguments.length,Wt=new Array(yt),Bt=0;Bt<yt;Bt++)Wt[Bt]=arguments[Bt];return te?.[0]===Wt[0]&&!_.context?(me.logger.warn(`It seems you are nesting recursively key: ${Wt[0]} in key: ${o[0]}`),null):me.translate(...Wt,o)},_)),_.interpolation&&this.interpolator.reset()}const Le=_.postProcess||this.options.postProcess,Re=yc(Le)?[Le]:Le;return e!=null&&Re?.length&&_.applyPostProcessor!==!1&&(e=bG.handle(Re,e,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...U,usedParams:this.getUsedParamsDetails(_)},..._}:_,this)),e}resolve(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_,U,te,me,Le;return yc(e)&&(e=[e]),e.forEach(Re=>{if(this.isValidLookup(_))return;const je=this.extractFromKey(Re,o),Qe=je.key;U=Qe;let nt=je.namespaces;this.options.fallbackNS&&(nt=nt.concat(this.options.fallbackNS));const yt=o.count!==void 0&&!yc(o.count),Wt=yt&&!o.ordinal&&o.count===0,Bt=o.context!==void 0&&(yc(o.context)||typeof o.context=="number")&&o.context!=="",rr=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);nt.forEach(Nt=>{this.isValidLookup(_)||(Le=Nt,!pj[`${rr[0]}-${Nt}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(Le)&&(pj[`${rr[0]}-${Nt}`]=!0,this.logger.warn(`key "${U}" for languages "${rr.join(", ")}" won't get resolved as namespace "${Le}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),rr.forEach(Se=>{if(this.isValidLookup(_))return;me=Se;const lr=[Qe];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(lr,Qe,Se,Nt,o);else{let $t;yt&&($t=this.pluralResolver.getSuffix(Se,o.count,o));const kt=`${this.options.pluralSeparator}zero`,Jt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(yt&&(lr.push(Qe+$t),o.ordinal&&$t.indexOf(Jt)===0&&lr.push(Qe+$t.replace(Jt,this.options.pluralSeparator)),Wt&&lr.push(Qe+kt)),Bt){const Ur=`${Qe}${this.options.contextSeparator}${o.context}`;lr.push(Ur),yt&&(lr.push(Ur+$t),o.ordinal&&$t.indexOf(Jt)===0&&lr.push(Ur+$t.replace(Jt,this.options.pluralSeparator)),Wt&&lr.push(Ur+kt))}}let Zt;for(;Zt=lr.pop();)this.isValidLookup(_)||(te=Zt,_=this.getResource(Se,Nt,Zt,o))}))})}),{res:_,usedKey:U,exactUsedKey:te,usedLng:me,usedNS:Le}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,o,_,U):this.resourceStore.getResource(e,o,_,U)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],_=e.replace&&!yc(e.replace);let U=_?e.replace:e;if(_&&typeof e.count<"u"&&(U.count=e.count),this.options.interpolation.defaultVariables&&(U={...this.options.interpolation.defaultVariables,...U}),!_){U={...U};for(const te of o)delete U[te]}return U}static hasDefaultValue(e){const o="defaultValue";for(const _ in e)if(Object.prototype.hasOwnProperty.call(e,_)&&o===_.substring(0,o.length)&&e[_]!==void 0)return!0;return!1}}class mj{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Bb.create("languageUtils")}getScriptPartFromCode(e){if(e=SI(e),!e||e.indexOf("-")<0)return null;const o=e.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(e){if(e=SI(e),!e||e.indexOf("-")<0)return e;const o=e.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(e){if(yc(e)&&e.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(e)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let o;return e.forEach(_=>{if(o)return;const U=this.formatLanguageCode(_);(!this.options.supportedLngs||this.isSupportedCode(U))&&(o=U)}),!o&&this.options.supportedLngs&&e.forEach(_=>{if(o)return;const U=this.getLanguagePartFromCode(_);if(this.isSupportedCode(U))return o=U;o=this.options.supportedLngs.find(te=>{if(te===U)return te;if(!(te.indexOf("-")<0&&U.indexOf("-")<0)&&(te.indexOf("-")>0&&U.indexOf("-")<0&&te.substring(0,te.indexOf("-"))===U||te.indexOf(U)===0&&U.length>1))return te})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(e,o){if(!e)return[];if(typeof e=="function"&&(e=e(o)),yc(e)&&(e=[e]),Array.isArray(e))return e;if(!o)return e.default||[];let _=e[o];return _||(_=e[this.getScriptPartFromCode(o)]),_||(_=e[this.formatLanguageCode(o)]),_||(_=e[this.getLanguagePartFromCode(o)]),_||(_=e.default),_||[]}toResolveHierarchy(e,o){const _=this.getFallbackCodes(o||this.options.fallbackLng||[],e),U=[],te=me=>{me&&(this.isSupportedCode(me)?U.push(me):this.logger.warn(`rejecting language code not found in supportedLngs: ${me}`))};return yc(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&te(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&te(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&te(this.getLanguagePartFromCode(e))):yc(e)&&te(this.formatLanguageCode(e)),_.forEach(me=>{U.indexOf(me)<0&&te(this.formatLanguageCode(me))}),U}}const gj={zero:0,one:1,two:2,few:3,many:4,other:5},yj={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ose{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=o,this.logger=Bb.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,o){this.rules[e]=o}clearCache(){this.pluralRulesCache={}}getRule(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=SI(e==="dev"?"en":e),U=o.ordinal?"ordinal":"cardinal",te=JSON.stringify({cleanedCode:_,type:U});if(te in this.pluralRulesCache)return this.pluralRulesCache[te];let me;try{me=new Intl.PluralRules(_,{type:U})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),yj;if(!e.match(/-|_/))return yj;const Re=this.languageUtils.getLanguagePartFromCode(e);me=this.getRule(Re,o)}return this.pluralRulesCache[te]=me,me}needsPlural(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=this.getRule(e,o);return _||(_=this.getRule("dev",o)),_?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,_).map(U=>`${o}${U}`)}getSuffixes(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=this.getRule(e,o);return _||(_=this.getRule("dev",o)),_?_.resolvedOptions().pluralCategories.sort((U,te)=>gj[U]-gj[te]).map(U=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${U}`):[]}getSuffix(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const U=this.getRule(e,_);return U?`${this.options.prepend}${_.ordinal?`ordinal${this.options.prepend}`:""}${U.select(o)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",o,_))}}const _j=function(t,e,o){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",U=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,te=Cse(t,e,o);return!te&&U&&yc(o)&&(te=jN(t,o,_),te===void 0&&(te=jN(e,o,_))),te},Mz=t=>t.replace(/\$/g,"$$$$");class zse{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bb.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(o=>o),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:o,escapeValue:_,useRawValueToEscape:U,prefix:te,prefixEscaped:me,suffix:Le,suffixEscaped:Re,formatSeparator:je,unescapeSuffix:Qe,unescapePrefix:nt,nestingPrefix:yt,nestingPrefixEscaped:Wt,nestingSuffix:Bt,nestingSuffixEscaped:rr,nestingOptionsSeparator:Nt,maxReplaces:Se,alwaysFormat:lr}=e.interpolation;this.escape=o!==void 0?o:kse,this.escapeValue=_!==void 0?_:!0,this.useRawValueToEscape=U!==void 0?U:!1,this.prefix=te?YC(te):me||"{{",this.suffix=Le?YC(Le):Re||"}}",this.formatSeparator=je||",",this.unescapePrefix=Qe?"":nt||"-",this.unescapeSuffix=this.unescapePrefix?"":Qe||"",this.nestingPrefix=yt?YC(yt):Wt||YC("$t("),this.nestingSuffix=Bt?YC(Bt):rr||YC(")"),this.nestingOptionsSeparator=Nt||",",this.maxReplaces=Se||1e3,this.alwaysFormat=lr!==void 0?lr:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(o,_)=>o?.source===_?(o.lastIndex=0,o):new RegExp(_,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,o,_,U){let te,me,Le;const Re=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},je=Wt=>{if(Wt.indexOf(this.formatSeparator)<0){const Se=_j(o,Re,Wt,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Se,void 0,_,{...U,...o,interpolationkey:Wt}):Se}const Bt=Wt.split(this.formatSeparator),rr=Bt.shift().trim(),Nt=Bt.join(this.formatSeparator).trim();return this.format(_j(o,Re,rr,this.options.keySeparator,this.options.ignoreJSONStructure),Nt,_,{...U,...o,interpolationkey:rr})};this.resetRegExp();const Qe=U?.missingInterpolationHandler||this.options.missingInterpolationHandler,nt=U?.interpolation?.skipOnVariables!==void 0?U.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Wt=>Mz(Wt)},{regex:this.regexp,safeValue:Wt=>this.escapeValue?Mz(this.escape(Wt)):Mz(Wt)}].forEach(Wt=>{for(Le=0;te=Wt.regex.exec(e);){const Bt=te[1].trim();if(me=je(Bt),me===void 0)if(typeof Qe=="function"){const Nt=Qe(e,te,U);me=yc(Nt)?Nt:""}else if(U&&Object.prototype.hasOwnProperty.call(U,Bt))me="";else if(nt){me=te[0];continue}else this.logger.warn(`missed to pass in variable ${Bt} for interpolating ${e}`),me="";else!yc(me)&&!this.useRawValueToEscape&&(me=uj(me));const rr=Wt.safeValue(me);if(e=e.replace(te[0],rr),nt?(Wt.regex.lastIndex+=me.length,Wt.regex.lastIndex-=te[0].length):Wt.regex.lastIndex=0,Le++,Le>=this.maxReplaces)break}}),e}nest(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U,te,me;const Le=(Re,je)=>{const Qe=this.nestingOptionsSeparator;if(Re.indexOf(Qe)<0)return Re;const nt=Re.split(new RegExp(`${Qe}[ ]*{`));let yt=`{${nt[1]}`;Re=nt[0],yt=this.interpolate(yt,me);const Wt=yt.match(/'/g),Bt=yt.match(/"/g);((Wt?.length??0)%2===0&&!Bt||Bt.length%2!==0)&&(yt=yt.replace(/'/g,'"'));try{me=JSON.parse(yt),je&&(me={...je,...me})}catch(rr){return this.logger.warn(`failed parsing options string in nesting for key ${Re}`,rr),`${Re}${Qe}${yt}`}return me.defaultValue&&me.defaultValue.indexOf(this.prefix)>-1&&delete me.defaultValue,Re};for(;U=this.nestingRegexp.exec(e);){let Re=[];me={..._},me=me.replace&&!yc(me.replace)?me.replace:me,me.applyPostProcessor=!1,delete me.defaultValue;let je=!1;if(U[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(U[1])){const Qe=U[1].split(this.formatSeparator).map(nt=>nt.trim());U[1]=Qe.shift(),Re=Qe,je=!0}if(te=o(Le.call(this,U[1].trim(),me),me),te&&U[0]===e&&!yc(te))return te;yc(te)||(te=uj(te)),te||(this.logger.warn(`missed to resolve ${U[1]} for nesting ${e}`),te=""),je&&(te=Re.reduce((Qe,nt)=>this.format(Qe,nt,_.lng,{..._,interpolationkey:U[1].trim()}),te.trim())),e=e.replace(U[0],te),this.regexp.lastIndex=0}return e}}const Nse=t=>{let e=t.toLowerCase().trim();const o={};if(t.indexOf("(")>-1){const _=t.split("(");e=_[0].toLowerCase().trim();const U=_[1].substring(0,_[1].length-1);e==="currency"&&U.indexOf(":")<0?o.currency||(o.currency=U.trim()):e==="relativetime"&&U.indexOf(":")<0?o.range||(o.range=U.trim()):U.split(";").forEach(me=>{if(me){const[Le,...Re]=me.split(":"),je=Re.join(":").trim().replace(/^'+|'+$/g,""),Qe=Le.trim();o[Qe]||(o[Qe]=je),je==="false"&&(o[Qe]=!1),je==="true"&&(o[Qe]=!0),isNaN(je)||(o[Qe]=parseInt(je,10))}})}return{formatName:e,formatOptions:o}},ZC=t=>{const e={};return(o,_,U)=>{let te=U;U&&U.interpolationkey&&U.formatParams&&U.formatParams[U.interpolationkey]&&U[U.interpolationkey]&&(te={...te,[U.interpolationkey]:void 0});const me=_+JSON.stringify(te);let Le=e[me];return Le||(Le=t(SI(_),U),e[me]=Le),Le(o)}};class Fse{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bb.create("formatter"),this.options=e,this.formats={number:ZC((o,_)=>{const U=new Intl.NumberFormat(o,{..._});return te=>U.format(te)}),currency:ZC((o,_)=>{const U=new Intl.NumberFormat(o,{..._,style:"currency"});return te=>U.format(te)}),datetime:ZC((o,_)=>{const U=new Intl.DateTimeFormat(o,{..._});return te=>U.format(te)}),relativetime:ZC((o,_)=>{const U=new Intl.RelativeTimeFormat(o,{..._});return te=>U.format(te,_.range||"day")}),list:ZC((o,_)=>{const U=new Intl.ListFormat(o,{..._});return te=>U.format(te)})},this.init(e)}init(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=o.interpolation.formatSeparator||","}add(e,o){this.formats[e.toLowerCase().trim()]=o}addCached(e,o){this.formats[e.toLowerCase().trim()]=ZC(o)}format(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const te=o.split(this.formatSeparator);if(te.length>1&&te[0].indexOf("(")>1&&te[0].indexOf(")")<0&&te.find(Le=>Le.indexOf(")")>-1)){const Le=te.findIndex(Re=>Re.indexOf(")")>-1);te[0]=[te[0],...te.splice(1,Le)].join(this.formatSeparator)}return te.reduce((Le,Re)=>{const{formatName:je,formatOptions:Qe}=Nse(Re);if(this.formats[je]){let nt=Le;try{const yt=U?.formatParams?.[U.interpolationkey]||{},Wt=yt.locale||yt.lng||U.locale||U.lng||_;nt=this.formats[je](Le,Wt,{...Qe,...U,...yt})}catch(yt){this.logger.warn(yt)}return nt}else this.logger.warn(`there was no format function for ${je}`);return Le},e)}}const Bse=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Use extends _D{constructor(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=o,this.services=_,this.languageUtils=_.languageUtils,this.options=U,this.logger=Bb.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=U.maxParallelReads||10,this.readingCalls=0,this.maxRetries=U.maxRetries>=0?U.maxRetries:5,this.retryTimeout=U.retryTimeout>=1?U.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(_,U.backend,U)}queueLoad(e,o,_,U){const te={},me={},Le={},Re={};return e.forEach(je=>{let Qe=!0;o.forEach(nt=>{const yt=`${je}|${nt}`;!_.reload&&this.store.hasResourceBundle(je,nt)?this.state[yt]=2:this.state[yt]<0||(this.state[yt]===1?me[yt]===void 0&&(me[yt]=!0):(this.state[yt]=1,Qe=!1,me[yt]===void 0&&(me[yt]=!0),te[yt]===void 0&&(te[yt]=!0),Re[nt]===void 0&&(Re[nt]=!0)))}),Qe||(Le[je]=!0)}),(Object.keys(te).length||Object.keys(me).length)&&this.queue.push({pending:me,pendingCount:Object.keys(me).length,loaded:{},errors:[],callback:U}),{toLoad:Object.keys(te),pending:Object.keys(me),toLoadLanguages:Object.keys(Le),toLoadNamespaces:Object.keys(Re)}}loaded(e,o,_){const U=e.split("|"),te=U[0],me=U[1];o&&this.emit("failedLoading",te,me,o),!o&&_&&this.store.addResourceBundle(te,me,_,void 0,void 0,{skipCopy:!0}),this.state[e]=o?-1:2,o&&_&&(this.state[e]=0);const Le={};this.queue.forEach(Re=>{Ese(Re.loaded,[te],me),Bse(Re,e),o&&Re.errors.push(o),Re.pendingCount===0&&!Re.done&&(Object.keys(Re.loaded).forEach(je=>{Le[je]||(Le[je]={});const Qe=Re.loaded[je];Qe.length&&Qe.forEach(nt=>{Le[je][nt]===void 0&&(Le[je][nt]=!0)})}),Re.done=!0,Re.errors.length?Re.callback(Re.errors):Re.callback())}),this.emit("loaded",Le),this.queue=this.queue.filter(Re=>!Re.done)}read(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,te=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,me=arguments.length>5?arguments[5]:void 0;if(!e.length)return me(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:o,fcName:_,tried:U,wait:te,callback:me});return}this.readingCalls++;const Le=(je,Qe)=>{if(this.readingCalls--,this.waitingReads.length>0){const nt=this.waitingReads.shift();this.read(nt.lng,nt.ns,nt.fcName,nt.tried,nt.wait,nt.callback)}if(je&&Qe&&U<this.maxRetries){setTimeout(()=>{this.read.call(this,e,o,_,U+1,te*2,me)},te);return}me(je,Qe)},Re=this.backend[_].bind(this.backend);if(Re.length===2){try{const je=Re(e,o);je&&typeof je.then=="function"?je.then(Qe=>Le(null,Qe)).catch(Le):Le(null,je)}catch(je){Le(je)}return}return Re(e,o,Le)}prepareLoading(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),U&&U();yc(e)&&(e=this.languageUtils.toResolveHierarchy(e)),yc(o)&&(o=[o]);const te=this.queueLoad(e,o,_,U);if(!te.toLoad.length)return te.pending.length||U(),null;te.toLoad.forEach(me=>{this.loadOne(me)})}load(e,o,_){this.prepareLoading(e,o,{},_)}reload(e,o,_){this.prepareLoading(e,o,{reload:!0},_)}loadOne(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const _=e.split("|"),U=_[0],te=_[1];this.read(U,te,"read",void 0,void 0,(me,Le)=>{me&&this.logger.warn(`${o}loading namespace ${te} for language ${U} failed`,me),!me&&Le&&this.logger.log(`${o}loaded namespace ${te} for language ${U}`,Le),this.loaded(e,me,Le)})}saveMissing(e,o,_,U,te){let me=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},Le=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${_}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(_==null||_==="")){if(this.backend?.create){const Re={...me,isUpdate:te},je=this.backend.create.bind(this.backend);if(je.length<6)try{let Qe;je.length===5?Qe=je(e,o,_,U,Re):Qe=je(e,o,_,U),Qe&&typeof Qe.then=="function"?Qe.then(nt=>Le(null,nt)).catch(Le):Le(null,Qe)}catch(Qe){Le(Qe)}else je(e,o,_,U,Le,Re)}!e||!e[0]||this.store.addResource(e[0],o,_,U)}}}const xj=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),yc(t[1])&&(e.defaultValue=t[1]),yc(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const o=t[3]||t[2];Object.keys(o).forEach(_=>{e[_]=o[_]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),bj=t=>(yc(t.ns)&&(t.ns=[t.ns]),yc(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),yc(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),k6=()=>{},jse=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(o=>{typeof t[o]=="function"&&(t[o]=t[o].bind(t))})};class dL extends _D{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bj(e),this.services={},this.logger=Bb,this.modules={external:[]},jse(this),o&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,o),this;setTimeout(()=>{this.init(e,o)},0)}}init(){var e=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof o=="function"&&(_=o,o={}),o.defaultNS==null&&o.ns&&(yc(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const U=xj();this.options={...U,...this.options,...bj(o)},this.options.interpolation={...U.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);const te=Qe=>Qe?typeof Qe=="function"?new Qe:Qe:null;if(!this.options.isClone){this.modules.logger?Bb.init(te(this.modules.logger),this.options):Bb.init(null,this.options);let Qe;this.modules.formatter?Qe=this.modules.formatter:Qe=Fse;const nt=new mj(this.options);this.store=new dj(this.options.resources,this.options);const yt=this.services;yt.logger=Bb,yt.resourceStore=this.store,yt.languageUtils=nt,yt.pluralResolver=new Ose(nt,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Qe&&(!this.options.interpolation.format||this.options.interpolation.format===U.interpolation.format)&&(yt.formatter=te(Qe),yt.formatter.init(yt,this.options),this.options.interpolation.format=yt.formatter.format.bind(yt.formatter)),yt.interpolator=new zse(this.options),yt.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},yt.backendConnector=new Use(te(this.modules.backend),yt.resourceStore,yt,this.options),yt.backendConnector.on("*",function(Wt){for(var Bt=arguments.length,rr=new Array(Bt>1?Bt-1:0),Nt=1;Nt<Bt;Nt++)rr[Nt-1]=arguments[Nt];e.emit(Wt,...rr)}),this.modules.languageDetector&&(yt.languageDetector=te(this.modules.languageDetector),yt.languageDetector.init&&yt.languageDetector.init(yt,this.options.detection,this.options)),this.modules.i18nFormat&&(yt.i18nFormat=te(this.modules.i18nFormat),yt.i18nFormat.init&&yt.i18nFormat.init(this)),this.translator=new EI(this.services,this.options),this.translator.on("*",function(Wt){for(var Bt=arguments.length,rr=new Array(Bt>1?Bt-1:0),Nt=1;Nt<Bt;Nt++)rr[Nt-1]=arguments[Nt];e.emit(Wt,...rr)}),this.modules.external.forEach(Wt=>{Wt.init&&Wt.init(this)})}if(this.format=this.options.interpolation.format,_||(_=k6),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Qe=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Qe.length>0&&Qe[0]!=="dev"&&(this.options.lng=Qe[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(Qe=>{this[Qe]=function(){return e.store[Qe](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Qe=>{this[Qe]=function(){return e.store[Qe](...arguments),e}});const Re=z5(),je=()=>{const Qe=(nt,yt)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),Re.resolve(yt),_(nt,yt)};if(this.languages&&!this.isInitialized)return Qe(null,this.t.bind(this));this.changeLanguage(this.options.lng,Qe)};return this.options.resources||!this.options.initAsync?je():setTimeout(je,0),Re}loadResources(e){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k6;const U=yc(e)?e:this.language;if(typeof e=="function"&&(_=e),!this.options.resources||this.options.partialBundledLanguages){if(U?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return _();const te=[],me=Le=>{if(!Le||Le==="cimode")return;this.services.languageUtils.toResolveHierarchy(Le).forEach(je=>{je!=="cimode"&&te.indexOf(je)<0&&te.push(je)})};U?me(U):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(Re=>me(Re)),this.options.preload?.forEach?.(Le=>me(Le)),this.services.backendConnector.load(te,this.options.ns,Le=>{!Le&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),_(Le)})}else _(null)}reloadResources(e,o,_){const U=z5();return typeof e=="function"&&(_=e,e=void 0),typeof o=="function"&&(_=o,o=void 0),e||(e=this.languages),o||(o=this.options.ns),_||(_=k6),this.services.backendConnector.reload(e,o,te=>{U.resolve(),_(te)}),U}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&bG.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let o=0;o<this.languages.length;o++){const _=this.languages[o];if(!(["cimode","dev"].indexOf(_)>-1)&&this.store.hasLanguageSomeTranslations(_)){this.resolvedLanguage=_;break}}}changeLanguage(e,o){var _=this;this.isLanguageChangingTo=e;const U=z5();this.emit("languageChanging",e);const te=Re=>{this.language=Re,this.languages=this.services.languageUtils.toResolveHierarchy(Re),this.resolvedLanguage=void 0,this.setResolvedLanguage(Re)},me=(Re,je)=>{je?(te(je),this.translator.changeLanguage(je),this.isLanguageChangingTo=void 0,this.emit("languageChanged",je),this.logger.log("languageChanged",je)):this.isLanguageChangingTo=void 0,U.resolve(function(){return _.t(...arguments)}),o&&o(Re,function(){return _.t(...arguments)})},Le=Re=>{!e&&!Re&&this.services.languageDetector&&(Re=[]);const je=yc(Re)?Re:this.services.languageUtils.getBestMatchFromCodes(Re);je&&(this.language||te(je),this.translator.language||this.translator.changeLanguage(je),this.services.languageDetector?.cacheUserLanguage?.(je)),this.loadResources(je,Qe=>{me(Qe,je)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?Le(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(Le):this.services.languageDetector.detect(Le):Le(e),U}getFixedT(e,o,_){var U=this;const te=function(me,Le){let Re;if(typeof Le!="object"){for(var je=arguments.length,Qe=new Array(je>2?je-2:0),nt=2;nt<je;nt++)Qe[nt-2]=arguments[nt];Re=U.options.overloadTranslationOptionHandler([me,Le].concat(Qe))}else Re={...Le};Re.lng=Re.lng||te.lng,Re.lngs=Re.lngs||te.lngs,Re.ns=Re.ns||te.ns,Re.keyPrefix!==""&&(Re.keyPrefix=Re.keyPrefix||_||te.keyPrefix);const yt=U.options.keySeparator||".";let Wt;return Re.keyPrefix&&Array.isArray(me)?Wt=me.map(Bt=>`${Re.keyPrefix}${yt}${Bt}`):Wt=Re.keyPrefix?`${Re.keyPrefix}${yt}${me}`:me,U.t(Wt,Re)};return yc(e)?te.lng=e:te.lngs=e,te.ns=o,te.keyPrefix=_,te}t(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.translator?.translate(...o)}exists(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.translator?.exists(...o)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const _=o.lng||this.resolvedLanguage||this.languages[0],U=this.options?this.options.fallbackLng:!1,te=this.languages[this.languages.length-1];if(_.toLowerCase()==="cimode")return!0;const me=(Le,Re)=>{const je=this.services.backendConnector.state[`${Le}|${Re}`];return je===-1||je===0||je===2};if(o.precheck){const Le=o.precheck(this,me);if(Le!==void 0)return Le}return!!(this.hasResourceBundle(_,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||me(_,e)&&(!U||me(te,e)))}loadNamespaces(e,o){const _=z5();return this.options.ns?(yc(e)&&(e=[e]),e.forEach(U=>{this.options.ns.indexOf(U)<0&&this.options.ns.push(U)}),this.loadResources(U=>{_.resolve(),o&&o(U)}),_):(o&&o(),Promise.resolve())}loadLanguages(e,o){const _=z5();yc(e)&&(e=[e]);const U=this.options.preload||[],te=e.filter(me=>U.indexOf(me)<0&&this.services.languageUtils.isSupportedCode(me));return te.length?(this.options.preload=U.concat(te),this.loadResources(me=>{_.resolve(),o&&o(me)}),_):(o&&o(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],_=this.services?.languageUtils||new mj(xj());return o.indexOf(_.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new dL(e,o)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k6;const _=e.forkResourceStore;_&&delete e.forkResourceStore;const U={...this.options,...e,isClone:!0},te=new dL(U);if((e.debug!==void 0||e.prefix!==void 0)&&(te.logger=te.logger.clone(e)),["store","services","language"].forEach(Le=>{te[Le]=this[Le]}),te.services={...this.services},te.services.utils={hasLoadedNamespace:te.hasLoadedNamespace.bind(te)},_){const Le=Object.keys(this.store.data).reduce((Re,je)=>(Re[je]={...this.store.data[je]},Object.keys(Re[je]).reduce((Qe,nt)=>(Qe[nt]={...Re[je][nt]},Qe),{})),{});te.store=new dj(Le,U),te.services.resourceStore=te.store}return te.translator=new EI(te.services,U),te.translator.on("*",function(Le){for(var Re=arguments.length,je=new Array(Re>1?Re-1:0),Qe=1;Qe<Re;Qe++)je[Qe-1]=arguments[Qe];te.emit(Le,...je)}),te.init(U,o),te.translator.options=U,te.translator.backendConnector.services.utils={hasLoadedNamespace:te.hasLoadedNamespace.bind(te)},te}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const zm=dL.createInstance();zm.createInstance=dL.createInstance;zm.createInstance;zm.dir;zm.init;zm.loadResources;zm.reloadResources;zm.use;zm.changeLanguage;zm.getFixedT;zm.t;zm.exists;zm.setDefaultNamespace;zm.hasLoadedNamespace;zm.loadNamespaces;zm.loadLanguages;function VN(t){"@babel/helpers - typeof";return VN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VN(t)}function wG(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":VN(XMLHttpRequest))==="object"}function Vse(t){return!!t&&typeof t.then=="function"}function qse(t){return Vse(t)?t:Promise.resolve(t)}const Hse="modulepreload",Gse=function(t){return"/"+t},wj={},qN=function(e,o,_){let U=Promise.resolve();if(o&&o.length>0){let Re=function(je){return Promise.all(je.map(Qe=>Promise.resolve(Qe).then(nt=>({status:"fulfilled",value:nt}),nt=>({status:"rejected",reason:nt}))))};document.getElementsByTagName("link");const me=document.querySelector("meta[property=csp-nonce]"),Le=me?.nonce||me?.getAttribute("nonce");U=Re(o.map(je=>{if(je=Gse(je),je in wj)return;wj[je]=!0;const Qe=je.endsWith(".css"),nt=Qe?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${je}"]${nt}`))return;const yt=document.createElement("link");if(yt.rel=Qe?"stylesheet":Hse,Qe||(yt.as="script"),yt.crossOrigin="",yt.href=je,Le&&yt.setAttribute("nonce",Le),document.head.appendChild(yt),Qe)return new Promise((Wt,Bt)=>{yt.addEventListener("load",Wt),yt.addEventListener("error",()=>Bt(new Error(`Unable to preload CSS for ${je}`)))})}))}function te(me){const Le=new Event("vite:preloadError",{cancelable:!0});if(Le.payload=me,window.dispatchEvent(Le),!Le.defaultPrevented)throw me}return U.then(me=>{for(const Le of me||[])Le.status==="rejected"&&te(Le.reason);return e().catch(te)})};var y0={};function Tj(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);e&&(_=_.filter(function(U){return Object.getOwnPropertyDescriptor(t,U).enumerable})),o.push.apply(o,_)}return o}function Sj(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Tj(Object(o),!0).forEach(function(_){Wse(t,_,o[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Tj(Object(o)).forEach(function(_){Object.defineProperty(t,_,Object.getOwnPropertyDescriptor(o,_))})}return t}function Wse(t,e,o){return(e=$se(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function $se(t){var e=Xse(t,"string");return D3(e)=="symbol"?e:e+""}function Xse(t,e){if(D3(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var _=o.call(t,e);if(D3(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function D3(t){"@babel/helpers - typeof";return D3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D3(t)}var OS=typeof fetch=="function"?fetch:void 0;typeof y0<"u"&&y0.fetch?OS=y0.fetch:typeof window<"u"&&window.fetch&&(OS=window.fetch);var pL;wG()&&(typeof y0<"u"&&y0.XMLHttpRequest?pL=y0.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(pL=window.XMLHttpRequest));var CI;typeof ActiveXObject=="function"&&(typeof y0<"u"&&y0.ActiveXObject?CI=y0.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(CI=window.ActiveXObject));typeof OS!="function"&&(OS=void 0);if(!OS&&!pL&&!CI)try{qN(()=>import("./browser-ponyfill-CVrkrold.js").then(t=>t.b),[]).then(function(t){OS=t.default}).catch(function(){})}catch{}var HN=function(e,o){if(o&&D3(o)==="object"){var _="";for(var U in o)_+="&"+encodeURIComponent(U)+"="+encodeURIComponent(o[U]);if(!_)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+_.slice(1)}return e},Aj=function(e,o,_,U){var te=function(Re){if(!Re.ok)return _(Re.statusText||"Error",{status:Re.status});Re.text().then(function(je){_(null,{status:Re.status,data:je})}).catch(_)};if(U){var me=U(e,o);if(me instanceof Promise){me.then(te).catch(_);return}}typeof fetch=="function"?fetch(e,o).then(te).catch(_):OS(e,o).then(te).catch(_)},Ej=!1,Yse=function(e,o,_,U){e.queryStringParams&&(o=HN(o,e.queryStringParams));var te=Sj({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof y0<"u"&&typeof y0.process<"u"&&y0.process.versions&&y0.process.versions.node&&(te["User-Agent"]="i18next-http-backend (node/".concat(y0.process.version,"; ").concat(y0.process.platform," ").concat(y0.process.arch,")")),_&&(te["Content-Type"]="application/json");var me=typeof e.requestOptions=="function"?e.requestOptions(_):e.requestOptions,Le=Sj({method:_?"POST":"GET",body:_?e.stringify(_):void 0,headers:te},Ej?{}:me),Re=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Aj(o,Le,U,Re)}catch(je){if(!me||Object.keys(me).length===0||!je.message||je.message.indexOf("not implemented")<0)return U(je);try{Object.keys(me).forEach(function(Qe){delete Le[Qe]}),Aj(o,Le,U,Re),Ej=!0}catch(Qe){U(Qe)}}},Zse=function(e,o,_,U){_&&D3(_)==="object"&&(_=HN("",_).slice(1)),e.queryStringParams&&(o=HN(o,e.queryStringParams));try{var te=pL?new pL:new CI("MSXML2.XMLHTTP.3.0");te.open(_?"POST":"GET",o,1),e.crossDomain||te.setRequestHeader("X-Requested-With","XMLHttpRequest"),te.withCredentials=!!e.withCredentials,_&&te.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),te.overrideMimeType&&te.overrideMimeType("application/json");var me=e.customHeaders;if(me=typeof me=="function"?me():me,me)for(var Le in me)te.setRequestHeader(Le,me[Le]);te.onreadystatechange=function(){te.readyState>3&&U(te.status>=400?te.statusText:null,{status:te.status,data:te.responseText})},te.send(_)}catch(Re){console&&console.log(Re)}},Kse=function(e,o,_,U){if(typeof _=="function"&&(U=_,_=void 0),U=U||function(){},OS&&o.indexOf("file:")!==0)return Yse(e,o,_,U);if(wG()||typeof ActiveXObject=="function")return Zse(e,o,_,U);U(new Error("No fetch and no xhr implementation found!"))};function _M(t){"@babel/helpers - typeof";return _M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_M(t)}function Cj(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);e&&(_=_.filter(function(U){return Object.getOwnPropertyDescriptor(t,U).enumerable})),o.push.apply(o,_)}return o}function kz(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Cj(Object(o),!0).forEach(function(_){TG(t,_,o[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Cj(Object(o)).forEach(function(_){Object.defineProperty(t,_,Object.getOwnPropertyDescriptor(o,_))})}return t}function Jse(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qse(t,e){for(var o=0;o<e.length;o++){var _=e[o];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,SG(_.key),_)}}function ele(t,e,o){return e&&Qse(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function TG(t,e,o){return(e=SG(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function SG(t){var e=tle(t,"string");return _M(e)=="symbol"?e:e+""}function tle(t,e){if(_M(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var _=o.call(t,e);if(_M(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var rle=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(o){return JSON.parse(o)},stringify:JSON.stringify,parsePayload:function(o,_,U){return TG({},_,U||"")},parseLoadPayload:function(o,_){},request:Kse,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},GN=(function(){function t(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Jse(this,t),this.services=e,this.options=o,this.allOptions=_,this.type="backend",this.init(e,o,_)}return ele(t,[{key:"init",value:function(o){var _=this,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=o,this.options=kz(kz(kz({},rle()),this.options||{}),U),this.allOptions=te,this.services&&this.options.reloadInterval){var me=setInterval(function(){return _.reload()},this.options.reloadInterval);_M(me)==="object"&&typeof me.unref=="function"&&me.unref()}}},{key:"readMulti",value:function(o,_,U){this._readAny(o,o,_,_,U)}},{key:"read",value:function(o,_,U){this._readAny([o],o,[_],_,U)}},{key:"_readAny",value:function(o,_,U,te,me){var Le=this,Re=this.options.loadPath;typeof this.options.loadPath=="function"&&(Re=this.options.loadPath(o,U)),Re=qse(Re),Re.then(function(je){if(!je)return me(null,{});var Qe=Le.services.interpolator.interpolate(je,{lng:o.join("+"),ns:U.join("+")});Le.loadUrl(Qe,me,_,te)})}},{key:"loadUrl",value:function(o,_,U,te){var me=this,Le=typeof U=="string"?[U]:U,Re=typeof te=="string"?[te]:te,je=this.options.parseLoadPayload(Le,Re);this.options.request(this.options,o,je,function(Qe,nt){if(nt&&(nt.status>=500&&nt.status<600||!nt.status))return _("failed loading "+o+"; status code: "+nt.status,!0);if(nt&&nt.status>=400&&nt.status<500)return _("failed loading "+o+"; status code: "+nt.status,!1);if(!nt&&Qe&&Qe.message){var yt=Qe.message.toLowerCase(),Wt=["failed","fetch","network","load"].find(function(Nt){return yt.indexOf(Nt)>-1});if(Wt)return _("failed loading "+o+": "+Qe.message,!0)}if(Qe)return _(Qe,!1);var Bt,rr;try{typeof nt.data=="string"?Bt=me.options.parse(nt.data,U,te):Bt=nt.data}catch{rr="failed parsing "+o+" to json"}if(rr)return _(rr,!1);_(null,Bt)})}},{key:"create",value:function(o,_,U,te,me){var Le=this;if(this.options.addPath){typeof o=="string"&&(o=[o]);var Re=this.options.parsePayload(_,U,te),je=0,Qe=[],nt=[];o.forEach(function(yt){var Wt=Le.options.addPath;typeof Le.options.addPath=="function"&&(Wt=Le.options.addPath(yt,_));var Bt=Le.services.interpolator.interpolate(Wt,{lng:yt,ns:_});Le.options.request(Le.options,Bt,Re,function(rr,Nt){je+=1,Qe.push(rr),nt.push(Nt),je===o.length&&typeof me=="function"&&me(Qe,nt)})})}}},{key:"reload",value:function(){var o=this,_=this.services,U=_.backendConnector,te=_.languageUtils,me=_.logger,Le=U.language;if(!(Le&&Le.toLowerCase()==="cimode")){var Re=[],je=function(nt){var yt=te.toResolveHierarchy(nt);yt.forEach(function(Wt){Re.indexOf(Wt)<0&&Re.push(Wt)})};je(Le),this.allOptions.preload&&this.allOptions.preload.forEach(function(Qe){return je(Qe)}),Re.forEach(function(Qe){o.allOptions.ns.forEach(function(nt){U.read(Qe,nt,"read",null,null,function(yt,Wt){yt&&me.warn("loading namespace ".concat(nt," for language ").concat(Qe," failed"),yt),!yt&&Wt&&me.log("loaded namespace ".concat(nt," for language ").concat(Qe),Wt),U.loaded("".concat(Qe,"|").concat(nt),yt,Wt)})})})}}}])})();GN.type="backend";const nle=async()=>{try{const o=(await(await fetch("/api/hardpy_config")).json()).frontend?.language??"en";await zm.use(GN).use(xU).init({lng:o,fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}}),console.log("i18n initialized with:",zm.language)}catch(t){console.error("Error initializing i18n:",t),await zm.use(GN).use(xU).init({lng:"en",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}}),console.log("i18n initialized with:",zm.language)}};nle();var CS={CENTER:"center",END:"end",LEFT:"left",RIGHT:"right",START:"start"},ile={ZERO:0},K0={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},KL={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Zl="bp5";typeof BLUEPRINT_NAMESPACE<"u"?Zl=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(Zl=REACT_APP_BLUEPRINT_NAMESPACE);var vL="".concat(Zl,"-active"),ale="".concat(Zl,"-align-left"),AG="".concat(Zl,"-align-right"),w4="".concat(Zl,"-compact"),WN="".concat(Zl,"-dark"),JL="".concat(Zl,"-disabled"),O3="".concat(Zl,"-fill"),ole="".concat(Zl,"-fixed-top"),sle="".concat(Zl,"-inline"),EG="".concat(Zl,"-interactive"),mL="".concat(Zl,"-large"),lle="".concat(Zl,"-loading"),gL="".concat(Zl,"-minimal"),Mj="".concat(Zl,"-outlined"),ule="".concat(Zl,"-read-only"),CG="".concat(Zl,"-round"),MG="".concat(Zl,"-selected"),MI="".concat(Zl,"-small"),cle="".concat(Zl,"-vertical");ED(KL.TOP);ED(KL.BOTTOM);ED(KL.LEFT);ED(KL.RIGHT);Fy(K0.PRIMARY);Fy(K0.SUCCESS);Fy(K0.WARNING);Fy(K0.DANGER);var fle="".concat(Zl,"-text-disabled"),hle="".concat(Zl,"-text-overflow-ellipsis"),dle="".concat(Zl,"-blockquote"),ple="".concat(Zl,"-code"),vle="".concat(Zl,"-code-block"),UM="".concat(Zl,"-heading"),kG="".concat(Zl,"-list"),xD="".concat(Zl,"-alert"),mle="".concat(xD,"-body"),gle="".concat(xD,"-contents"),yle="".concat(xD,"-footer"),bD="".concat(Zl,"-button"),_le="".concat(bD,"-spinner"),xle="".concat(bD,"-text"),T4="".concat(Zl,"-callout"),ble="".concat(T4,"-has-body-content"),wle="".concat(T4,"-icon"),Tle="".concat(Zl,"-card"),LG="".concat(Zl,"-collapse"),Sle="".concat(LG,"-body"),jM="".concat(Zl,"-dialog"),Ale="".concat(jM,"-container"),Ele="".concat(jM,"-header"),wD="".concat(jM,"-body"),Cle="".concat(jM,"-close-button"),Mle="".concat(jM,"-footer"),kle="".concat(Zl,"-divider"),PG="".concat(Zl,"-drawer"),Lle="".concat(PG,"-body"),Ple="".concat(PG,"-footer"),Rle="".concat(Zl,"-flex-expander"),TD="".concat(Zl,"-input"),Ile="".concat(TD,"-group"),Dle="".concat(TD,"-left-container"),Ole="".concat(TD,"-action"),RG="".concat(Zl,"-control"),IG="".concat(RG,"-indicator"),kj="".concat(IG,"-child"),zle="".concat(Zl,"-checkbox"),Nle="".concat(Zl,"-radio"),DG="".concat(Zl,"-switch"),Lj="".concat(DG,"-inner-text"),Fle="".concat(Zl,"-label"),OG="".concat(Zl,"-menu"),QL="".concat(OG,"-item"),Ble="".concat(QL,"-is-selectable"),Ule="".concat(QL,"-selected-icon"),jle="".concat(QL,"-icon"),Vle="".concat(QL,"-label"),$N="".concat(Zl,"-submenu"),qle="".concat($N,"-icon"),SD="".concat(Zl,"-navbar"),Hle="".concat(SD,"-group"),Gle="".concat(SD,"-heading"),Wle="".concat(SD,"-divider"),A2="".concat(Zl,"-overlay"),$le="".concat(A2,"-backdrop"),Xle="".concat(A2,"-content"),Yle="".concat(A2,"-inline"),yL="".concat(A2,"-open"),Zle="".concat(A2,"-scroll-container"),zG="".concat(A2,"-start-focus-trap"),NG="".concat(A2,"-end-focus-trap"),Fg="".concat(Zl,"-popover"),Lz="".concat(Fg,"-arrow"),Kle="".concat(Fg,"-backdrop"),Pz="".concat(Fg,"-capturing-dismiss"),Jle="".concat(Fg,"-content"),Qle="".concat(Fg,"-placement"),kI="".concat(Fg,"-dismiss"),eue="".concat(kI,"-override"),tue="".concat(Fg,"-match-target-width"),rue="".concat(Fg,"-open"),nue="".concat(Fg,"-popper-escaped"),iue="".concat(Fg,"-reference-hidden"),aue="".concat(Fg,"-target"),oue="".concat(Fg,"-transition-container"),sue="".concat(Zl,"-progress-bar"),lue="".concat(Zl,"-progress-meter"),uue="".concat(Zl,"-no-stripes"),cue="".concat(Zl,"-no-animation"),fue="".concat(Zl,"-portal"),Pj="".concat(Zl,"-skeleton"),AD="".concat(Zl,"-spinner"),hue="".concat(AD,"-animation"),due="".concat(AD,"-head"),pue="".concat(Zl,"-no-spin"),vue="".concat(AD,"-track"),E2="".concat(Zl,"-tab"),mue="".concat(E2,"-icon"),gue="".concat(E2,"-tag"),FG="".concat(E2,"-indicator"),yue="".concat(FG,"-wrapper"),_ue="".concat(E2,"-list"),S4="".concat(E2,"-panel"),xue="".concat(E2,"s"),BG="".concat(Zl,"-tag"),bue="".concat(BG,"-remove"),wue="".concat(Zl,"-tooltip"),A4="".concat(Zl,"-icon"),Tue="".concat(A4,"-standard"),Sue="".concat(A4,"-large");function E4(t){switch(t){case CS.LEFT:case CS.START:return ale;case CS.RIGHT:case CS.END:return AG;default:return}}function Aue(t){if(t!==void 0)return"".concat(Zl,"-elevation-").concat(t)}function Eue(t){if(t!=null)return t.indexOf("".concat(Zl,"-icon-"))===0?t:"".concat(Zl,"-icon-").concat(t)}function Fy(t){if(!(t==null||t===K0.NONE))return"".concat(Zl,"-intent-").concat(t.toLowerCase())}function ED(t){if(t!==void 0)return"".concat(Zl,"-position-").concat(t)}function VM(t,e){var o;if(t==="small")return MI;if(t==="large")return mL;var _=e.large,U=_===void 0?!1:_,te=e.small,me=te===void 0?!1:te;return o={},o[mL]=U,o[MI]=me,o}function Cue(t,e){var o;if(t==="outlined")return Mj;if(t==="minimal")return gL;var _=e.minimal,U=_===void 0?!1:_,te=e.outlined,me=te===void 0?!1:te;return o={},o[gL]=U,o[Mj]=me,o}const Mue={BLACK:"#111418",DARK_GRAY1:"#1C2127",DARK_GRAY2:"#252A31",DARK_GRAY3:"#2F343C",DARK_GRAY4:"#383E47",DARK_GRAY5:"#404854",GRAY1:"#5F6B7C",GRAY2:"#738091",GRAY3:"#8F99A8",GRAY4:"#ABB3BF",GRAY5:"#C5CBD3",LIGHT_GRAY1:"#D3D8DE",LIGHT_GRAY2:"#DCE0E5",LIGHT_GRAY3:"#E5E8EB",LIGHT_GRAY4:"#EDEFF2",LIGHT_GRAY5:"#F6F7F9",WHITE:"#FFFFFF"},kue={BLUE1:"#184A90",BLUE2:"#215DB0",BLUE3:"#2D72D2",BLUE4:"#4C90F0",BLUE5:"#8ABBFF",GREEN1:"#165A36",GREEN2:"#1C6E42",GREEN3:"#238551",GREEN4:"#32A467",GREEN5:"#72CA9B",ORANGE1:"#77450D",ORANGE2:"#935610",ORANGE3:"#C87619",ORANGE4:"#EC9A3C",ORANGE5:"#FBB360",RED1:"#8E292C",RED2:"#AC2F33",RED3:"#CD4246",RED4:"#E76A6E",RED5:"#FA999C"},Lue={CERULEAN1:"#0C5174",CERULEAN2:"#0F6894",CERULEAN3:"#147EB3",CERULEAN4:"#3FA6DA",CERULEAN5:"#68C1EE",FOREST1:"#1D7324",FOREST2:"#238C2C",FOREST3:"#29A634",FOREST4:"#43BF4D",FOREST5:"#62D96B",GOLD1:"#5C4405",GOLD2:"#866103",GOLD3:"#D1980B",GOLD4:"#F0B726",GOLD5:"#FBD065",INDIGO1:"#5642A6",INDIGO2:"#634DBF",INDIGO3:"#7961DB",INDIGO4:"#9881F3",INDIGO5:"#BDADFF",LIME1:"#43501B",LIME2:"#5A701A",LIME3:"#8EB125",LIME4:"#B6D94C",LIME5:"#D4F17E",ROSE1:"#A82255",ROSE2:"#C22762",ROSE3:"#DB2C6F",ROSE4:"#F5498B",ROSE5:"#FF66A1",SEPIA1:"#5E4123",SEPIA2:"#7A542E",SEPIA3:"#946638",SEPIA4:"#AF855A",SEPIA5:"#D0B090",TURQUOISE1:"#004D46",TURQUOISE2:"#007067",TURQUOISE3:"#00A396",TURQUOISE4:"#13C9BA",TURQUOISE5:"#7AE1D8",VERMILION1:"#96290D",VERMILION2:"#B83211",VERMILION3:"#D33D17",VERMILION4:"#EB6847",VERMILION5:"#FF9980",VIOLET1:"#5C255C",VIOLET2:"#7C327C",VIOLET3:"#9D3F9D",VIOLET4:"#BD6BBD",VIOLET5:"#D69FD6"},Rj={...Mue,...kue,...Lue};var XN=function(t,e){return XN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,_){o.__proto__=_}||function(o,_){for(var U in _)Object.prototype.hasOwnProperty.call(_,U)&&(o[U]=_[U])},XN(t,e)};function C_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");XN(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}var Ys=function(){return Ys=Object.assign||function(e){for(var o,_=1,U=arguments.length;_<U;_++){o=arguments[_];for(var te in o)Object.prototype.hasOwnProperty.call(o,te)&&(e[te]=o[te])}return e},Ys.apply(this,arguments)};function Wp(t,e){var o={};for(var _ in t)Object.prototype.hasOwnProperty.call(t,_)&&e.indexOf(_)<0&&(o[_]=t[_]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,_=Object.getOwnPropertySymbols(t);U<_.length;U++)e.indexOf(_[U])<0&&Object.prototype.propertyIsEnumerable.call(t,_[U])&&(o[_[U]]=t[_[U]]);return o}function Pue(t,e,o){return o===void 0&&(o=function(_,U){return _===U}),t==null&&e==null?!0:t==null||e==null||t.length!==e.length?!1:t.every(function(_,U){return o(_,e[U])})}function Rue(t,e,o){if(t==null&&e==null)return!0;if(t==null||e==null)return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(o!=null)return Rz(t,e,o);var _=Object.keys(t),U=Object.keys(e);return Rz(t,e,{include:_})&&Rz(t,e,{include:U})}function Rz(t,e,o){return Iue(t,e,o).every(function(_){return t.hasOwnProperty(_)===e.hasOwnProperty(_)&&t[_]===e[_]})}function Iue(t,e,o){if(Due(o))return o.include;if(Oue(o)){var _=Object.keys(t),U=Object.keys(e),te=zue(_.concat(U));return o.exclude.forEach(function(me){return delete te[me]}),Object.keys(te)}return[]}function Due(t){return t!=null&&t.include!=null}function Oue(t){return t!=null&&t.exclude!=null}function zue(t){return t.reduce(function(e,o){return e[o]=!0,e},{})}function UG(){return typeof window<"u"&&window.document!=null}function Nue(t,e){return t===e||t.contains(e)}function Fue(t){if(t==null||t.closest==null)return!1;var e=t.closest("input, textarea, [contenteditable=true]");if(e==null)return!1;if(e.tagName.toLowerCase()==="input"){var o=e.type;if(o==="checkbox"||o==="radio")return!1}return!e.readOnly}function YN(t,e){var o,_=(o=t?.getRootNode(e))!==null&&o!==void 0?o:document,U=_.activeElement;return U instanceof HTMLElement?U:null}function Bue(t){return function(e){t.some(function(o){return e.key===o})&&(Fue(e.target)||e.preventDefault(),e.target.dispatchEvent(new MouseEvent("click",Ys(Ys({},e),{view:void 0}))))}}var Uue=['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(",");function jue(t){return Array.from(t.querySelectorAll(Uue))}function C4(t){return typeof t=="function"}var $p="[Blueprint]",Vue=$p+" <Alert> cancelButtonText and onCancel should be set together.",que=$p+" <Alert> canEscapeKeyCancel enabled without onCancel or onClose handler.",Hue=$p+" <Alert> canOutsideClickCancel enabled without onCancel or onClose handler.",Gue=$p+" <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.",Wue=$p+' <NavbarGroup> does not support align="center". Only "left" or "right" alignment is allowed, and align="center" will be ignored.',$ue="".concat($p," <Popover> requires renderTarget prop or a child element."),Xue="".concat($p,' <Popover hasBackdrop={true}> requires interactionKind="click".'),Yue="".concat($p," <Popover> supports only one child which is rendered as its target; additional children are ignored."),Zue=$p+" <Popover> with children ignores renderTarget prop; use either prop or children.",Kue=$p+" Disabling <Popover> with empty/whitespace content...",Jue=$p+" <Popover usePortal={false}> ignores hasBackdrop",Que=$p+" <Popover> supports either placement or position prop, not both.",ece=$p+" <Popover> onInteraction is ignored when uncontrolled.",tce=$p+" <Popover> targetProps value is ignored when renderTarget API is used.",rce=$p+" <Portal> context blueprintPortalClassName must be string",nce=$p+" setting blueprintPortalClassName via legacy React context API is deprecated, use <PortalProvider> instead.",ice=$p+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.",ace=$p+" <Dialog> iconName is ignored if title is omitted.",oce=$p+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.",sce=$p+" <Overlay2> was used outside of a <OverlaysProvider> context. This will no longer be supported in Blueprint v6. See https://github.com/palantir/blueprint/wiki/Overlay2-migration",lce=$p+" <Overlay2> cannot use childRef and childRefs props simultaneously",uce=$p+" <Overlay2> requires childRefs prop when rendering multiple child elements",cce=$p+" <Overlay2> requires each child element to have a unique key prop when childRefs is used";function z3(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function jG(t,e,o){return t==null?t:Math.min(Math.max(t,e),o)}var Ij=new Map;function fce(t){var e,o=(e=Ij.get(t))!==null&&e!==void 0?e:0;return Ij.set(t,o+1),"".concat(t,"-").concat(o)}function M4(t){return typeof t=="string"&&t.trim().length===0}function _L(t,e){return e===void 0&&(e=!1),t==null||t===""||t===!1||!e&&Array.isArray(t)&&(t.length===0||t.every(function(o){return _L(o,!0)}))}function VG(t,e,o){if(e===void 0&&(e="span"),o===void 0&&(o={}),!(t==null||typeof t=="boolean"||M4(t)))return typeof t=="string"||typeof t=="number"||hce(t)||dce(t)?vr.createElement(e,o,t):qG(t)?Object.keys(o).length>0?vr.cloneElement(t,o):t:void 0}function qG(t){return typeof t=="object"&&typeof t.type<"u"&&typeof t.props<"u"}function hce(t){return typeof t.type=="symbol"}function dce(t){return Array.isArray(t)}function HG(t,e){return t!=null&&t.type!=null&&t.type.displayName!=null&&t.type.displayName===e.displayName}function pce(){var t=parseInt(vr.version.split(".")[0],10);return t>=18}function xL(t){return t.key==="Enter"||t.key===" "}function vce(t,e,o){if(e.includes(t.key))return-1;if(o.includes(t.key))return 1}function mce(t){return t!=null&&typeof t!="function"}function gce(t){return typeof t=="function"}function k4(t,e){mce(t)?t.current=e:gce(t)&&t(e)}function N3(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(o){t.forEach(function(_){k4(_,o)})}}function v_(t){return t===null?null:typeof t.current>"u"?t:t.current}function yce(t,e,o){return function(_){t[e]=_,k4(o,_)}}var Ax=(function(t){C_(e,t);function e(o){var _=t.call(this,o)||this;return _.timeoutIds=[],_.requestIds=[],_.clearTimeouts=function(){if(_.timeoutIds.length>0){for(var U=0,te=_.timeoutIds;U<te.length;U++){var me=te[U];window.clearTimeout(me)}_.timeoutIds=[]}},_.cancelAnimationFrames=function(){if(_.requestIds.length>0){for(var U=0,te=_.requestIds;U<te.length;U++){var me=te[U];window.cancelAnimationFrame(me)}_.requestIds=[]}},z3("production")||_.validateProps(_.props),_}return e.prototype.componentDidUpdate=function(o,_,U){z3("production")||this.validateProps(this.props)},e.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},e.prototype.requestAnimationFrame=function(o){var _=window.requestAnimationFrame(o);return this.requestIds.push(_),function(){return window.cancelAnimationFrame(_)}},e.prototype.setTimeout=function(o,_){var U=window.setTimeout(o,_);return this.timeoutIds.push(U),function(){return window.clearTimeout(U)}},e.prototype.validateProps=function(o){},e})(vr.PureComponent),Gf="Blueprint5",Dj=["active","alignText","asyncControl","containerRef","current","elementRef","ellipsizeText","endIcon","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","selectedValue","size","small","tagName","text","textClassName","variant"];function zS(t,e,o){return e===void 0&&(e=Dj),o===void 0&&(o=!1),o&&(e=e.concat(Dj)),e.reduce(function(_,U){return U.indexOf("-")!==-1||_.hasOwnProperty(U)&&delete _[U],_},Ys({},t))}var Iz={exports:{}};/*!
|
|
46
|
+
Please double-check your map/reduce function.`),T_("error",e,o)}}function Noe(t,e,o,_){function U(Nn,Qn,Ai){try{Qn(Ai)}catch(Mn){JU(Nn,Mn,{fun:Qn,doc:Ai})}}function te(Nn,Qn,Ai,Mn,Yn){try{return{output:Qn(Ai,Mn,Yn)}}catch(Zi){return JU(Nn,Zi,{fun:Qn,keys:Ai,values:Mn,rereduce:Yn}),{error:Zi}}}function me(Nn,Qn){const Ai=Vv(Nn.key,Qn.key);return Ai!==0?Ai:Vv(Nn.value,Qn.value)}function Le(Nn,Qn,Ai){return Ai=Ai||0,typeof Qn=="number"?Nn.slice(Ai,Qn+Ai):Ai>0?Nn.slice(Ai):Nn}function Re(Nn){const Qn=Nn.value;return Qn&&typeof Qn=="object"&&Qn._id||Nn.id}function je(Nn){Nn.rows.forEach(function(Qn){const Ai=Qn.doc&&Qn.doc._attachments;Ai&&Object.keys(Ai).forEach(function(Mn){const Yn=Ai[Mn];Ai[Mn].data=v4(Yn.data,Yn.content_type)})})}function Qe(Nn){return function(Qn){return Nn.include_docs&&Nn.attachments&&Nn.binary&&je(Qn),Qn}}function nt(Nn,Qn,Ai,Mn){let Yn=Qn[Nn];typeof Yn<"u"&&(Mn&&(Yn=encodeURIComponent(JSON.stringify(Yn))),Ai.push(Nn+"="+Yn))}function yt(Nn){if(typeof Nn<"u"){const Qn=Number(Nn);return!isNaN(Qn)&&Qn===parseInt(Nn,10)?Qn:Nn}}function Wt(Nn){return Nn.group_level=yt(Nn.group_level),Nn.limit=yt(Nn.limit),Nn.skip=yt(Nn.skip),Nn}function Bt(Nn){if(Nn){if(typeof Nn!="number")return new d3(`Invalid value for integer: "${Nn}"`);if(Nn<0)return new d3(`Invalid value for positive integer: "${Nn}"`)}}function rr(Nn,Qn){const Ai=Nn.descending?"endkey":"startkey",Mn=Nn.descending?"startkey":"endkey";if(typeof Nn[Ai]<"u"&&typeof Nn[Mn]<"u"&&Vv(Nn[Ai],Nn[Mn])>0)throw new d3("No rows can match your key range, reverse your start_key and end_key or set {descending : true}");if(Qn.reduce&&Nn.reduce!==!1){if(Nn.include_docs)throw new d3("{include_docs:true} is invalid for reduce");if(Nn.keys&&Nn.keys.length>1&&!Nn.group&&!Nn.group_level)throw new d3("Multi-key fetches for reduce views must use {group: true}")}["group_level","limit","skip"].forEach(function(Yn){const Zi=Bt(Nn[Yn]);if(Zi)throw Zi})}async function Nt(Nn,Qn,Ai){let Mn=[],Yn,Zi="GET",Oi;if(nt("reduce",Ai,Mn),nt("include_docs",Ai,Mn),nt("attachments",Ai,Mn),nt("limit",Ai,Mn),nt("descending",Ai,Mn),nt("group",Ai,Mn),nt("group_level",Ai,Mn),nt("skip",Ai,Mn),nt("stale",Ai,Mn),nt("conflicts",Ai,Mn),nt("startkey",Ai,Mn,!0),nt("start_key",Ai,Mn,!0),nt("endkey",Ai,Mn,!0),nt("end_key",Ai,Mn,!0),nt("inclusive_end",Ai,Mn),nt("key",Ai,Mn,!0),nt("update_seq",Ai,Mn),Mn=Mn.join("&"),Mn=Mn===""?"":"?"+Mn,typeof Ai.keys<"u"){const Ci=`keys=${encodeURIComponent(JSON.stringify(Ai.keys))}`;Ci.length+Mn.length+1<=2e3?Mn+=(Mn[0]==="?"?"&":"?")+Ci:(Zi="POST",typeof Qn=="string"?Yn={keys:Ai.keys}:Qn.keys=Ai.keys)}if(typeof Qn=="string"){const aa=Az(Qn),Ci=await Nn.fetch("_design/"+aa[0]+"/_view/"+aa[1]+Mn,{headers:new cM({"Content-Type":"application/json"}),method:Zi,body:JSON.stringify(Yn)});Oi=Ci.ok;const Oa=await Ci.json();if(!Oi)throw Oa.status=Ci.status,yM(Oa);return Oa.rows.forEach(function(Ca){if(Ca.value&&Ca.value.error&&Ca.value.error==="builtin_reduce_error")throw new Error(Ca.reason)}),new Promise(function(Ca){Ca(Oa)}).then(Qe(Ai))}Yn=Yn||{},Object.keys(Qn).forEach(function(aa){Array.isArray(Qn[aa])?Yn[aa]=Qn[aa]:Yn[aa]=Qn[aa].toString()});const Wn=await Nn.fetch("_temp_view"+Mn,{headers:new cM({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify(Yn)});Oi=Wn.ok;const En=await Wn.json();if(!Oi)throw En.status=Wn.status,yM(En);return new Promise(function(aa){aa(En)}).then(Qe(Ai))}function Se(Nn,Qn,Ai){return new Promise(function(Mn,Yn){Nn._query(Qn,Ai,function(Zi,Oi){if(Zi)return Yn(Zi);Mn(Oi)})})}function lr(Nn){return new Promise(function(Qn,Ai){Nn._viewCleanup(function(Mn,Yn){if(Mn)return Ai(Mn);Qn(Yn)})})}function Zt(Nn){return function(Qn){if(Qn.status===404)return Nn;throw Qn}}async function $t(Nn,Qn,Ai){const Mn="_local/doc_"+Nn,Yn={_id:Mn,keys:[]},Zi=Ai.get(Nn),Oi=Zi[0],Wn=Zi[1];function En(){return zoe(Wn)?Promise.resolve(Yn):Qn.db.get(Mn).catch(Zt(Yn))}function aa(Po){return Po.keys.length?Qn.db.allDocs({keys:Po.keys,include_docs:!0}):Promise.resolve({rows:[]})}function Ci(Po,Eo){const Za=[],dl=new mM;for(let Co=0,Jo=Eo.rows.length;Co<Jo;Co++){const Ps=Eo.rows[Co].doc;if(Ps&&(Za.push(Ps),dl.add(Ps._id),Ps._deleted=!Oi.has(Ps._id),!Ps._deleted)){const gs=Oi.get(Ps._id);"value"in gs&&(Ps.value=gs.value)}}const mo=Sz(Oi);return mo.forEach(function(Co){if(!dl.has(Co)){const Jo={_id:Co},Go=Oi.get(Co);"value"in Go&&(Jo.value=Go.value),Za.push(Jo)}}),Po.keys=WU(mo.concat(Po.keys)),Za.push(Po),Za}const Oa=await En(),Ca=await aa(Oa);return Ci(Oa,Ca)}function kt(Nn){return Nn.sourceDB.get("_local/purges").then(function(Qn){const Ai=Qn.purgeSeq;return Nn.db.get("_local/purgeSeq").then(function(Mn){return Mn._rev}).catch(function(Mn){if(Mn.status!==404)throw Mn}).then(function(Mn){return Nn.db.put({_id:"_local/purgeSeq",_rev:Mn,purgeSeq:Ai})})}).catch(function(Qn){if(Qn.status!==404)throw Qn})}function Jt(Nn,Qn,Ai){var Mn="_local/lastSeq";return Nn.db.get(Mn).catch(Zt({_id:Mn,seq:0})).then(function(Yn){var Zi=Sz(Qn);return Promise.all(Zi.map(function(Oi){return $t(Oi,Nn,Qn)})).then(function(Oi){var Wn=yI(Oi);return Yn.seq=Ai,Wn.push(Yn),Nn.db.bulkDocs({docs:Wn})}).then(()=>kt(Nn))})}function Ur(Nn){const Qn=typeof Nn=="string"?Nn:Nn.name;let Ai=ZU[Qn];return Ai||(Ai=ZU[Qn]=new ON),Ai}async function Lr(Nn,Qn){return Tz(Ur(Nn),function(){return xn(Nn,Qn)})()}async function xn(Nn,Qn){let Ai,Mn,Yn;function Zi(Co,Jo){const Go={id:Mn._id,key:I3(Co)};typeof Jo<"u"&&Jo!==null&&(Go.value=I3(Jo)),Ai.push(Go)}const Oi=e(Nn.mapFun,Zi);let Wn=Nn.seq||0;function En(){return Nn.sourceDB.info().then(function(Co){Yn=Nn.sourceDB.activeTasks.add({name:"view_indexing",total_items:Co.update_seq-Wn})})}function aa(Co,Jo){return function(){return Jt(Nn,Co,Jo)}}let Ci=0;const Oa={view:Nn.name,indexed_docs:Ci};Nn.sourceDB.emit("indexing",Oa);const Ca=new ON;async function Po(){const Co=await Nn.sourceDB.changes({return_docs:!0,conflicts:!0,include_docs:!0,style:"all_docs",since:Wn,limit:Qn.changes_batch_size}),Jo=await Eo();return Za(Co,Jo)}function Eo(){return Nn.db.get("_local/purgeSeq").then(function(Co){return Co.purgeSeq}).catch(function(Co){if(Co&&Co.status!==404)throw Co;return-1}).then(function(Co){return Nn.sourceDB.get("_local/purges").then(function(Jo){const Go=Jo.purges.filter(function(gs,zs){return zs>Co}).map(gs=>gs.docId),Ps=Go.filter(function(gs,zs){return Go.indexOf(gs)===zs});return Promise.all(Ps.map(function(gs){return Nn.sourceDB.get(gs).then(function(zs){return{docId:gs,doc:zs}}).catch(function(zs){if(zs.status!==404)throw zs;return{docId:gs}})}))}).catch(function(Jo){if(Jo&&Jo.status!==404)throw Jo;return[]})})}function Za(Co,Jo){var Go=Co.results;if(!Go.length&&!Jo.length)return;for(let zs of Jo)if(Go.findIndex(function(yu){return yu.id===zs.docId})<0){const yu={_id:zs.docId,doc:{_id:zs.docId,_deleted:1},changes:[]};zs.doc&&(yu.doc=zs.doc,yu.changes.push({rev:zs.doc._rev})),Go.push(yu)}var Ps=dl(Go);Ca.add(aa(Ps,Wn)),Ci=Ci+Go.length;const gs={view:Nn.name,last_seq:Co.last_seq,results_count:Go.length,indexed_docs:Ci};if(Nn.sourceDB.emit("indexing",gs),Nn.sourceDB.activeTasks.update(Yn,{completed_items:Ci}),!(Go.length<Qn.changes_batch_size))return Po()}function dl(Co){const Jo=new Ry;for(let Go=0,Ps=Co.length;Go<Ps;Go++){const gs=Co[Go];if(gs.doc._id[0]!=="_"){Ai=[],Mn=gs.doc,Mn._deleted||U(Nn.sourceDB,Oi,Mn),Ai.sort(me);const zs=mo(Ai);Jo.set(gs.doc._id,[zs,gs.changes])}Wn=gs.seq}return Jo}function mo(Co){const Jo=new Ry;let Go;for(let Ps=0,gs=Co.length;Ps<gs;Ps++){const zs=Co[Ps],Pl=[zs.key,zs.id];Ps>0&&Vv(zs.key,Go)===0&&Pl.push(Ps),Jo.set(vx(Pl),zs),Go=zs.key}return Jo}try{await En(),await Po(),await Ca.finish(),Nn.seq=Wn,Nn.sourceDB.activeTasks.remove(Yn)}catch(Co){Nn.sourceDB.activeTasks.remove(Yn,Co)}}function In(Nn,Qn,Ai){Ai.group_level===0&&delete Ai.group_level;const Mn=Ai.group||Ai.group_level,Yn=o(Nn.reduceFun),Zi=[],Oi=isNaN(Ai.group_level)?Number.POSITIVE_INFINITY:Ai.group_level;Qn.forEach(function(Wn){const En=Zi[Zi.length-1];let aa=Mn?Wn.key:null;if(Mn&&Array.isArray(aa)&&(aa=aa.slice(0,Oi)),En&&Vv(En.groupKey,aa)===0){En.keys.push([Wn.key,Wn.id]),En.values.push(Wn.value);return}Zi.push({keys:[[Wn.key,Wn.id]],values:[Wn.value],groupKey:aa})}),Qn=[];for(let Wn=0,En=Zi.length;Wn<En;Wn++){const aa=Zi[Wn],Ci=te(Nn.sourceDB,Yn,aa.keys,aa.values,!1);if(Ci.error&&Ci.error instanceof mD)throw Ci.error;Qn.push({value:Ci.error?null:Ci.output,key:aa.groupKey})}return{rows:Le(Qn,Ai.limit,Ai.skip)}}function Ln(Nn,Qn){return Tz(Ur(Nn),function(){return ci(Nn,Qn)})()}async function ci(Nn,Qn){let Ai;const Mn=Nn.reduceFun&&Qn.reduce!==!1,Yn=Qn.skip||0;typeof Qn.keys<"u"&&!Qn.keys.length&&(Qn.limit=0,delete Qn.keys);async function Zi(Wn){Wn.include_docs=!0;const En=await Nn.db.allDocs(Wn);return Ai=En.total_rows,En.rows.map(function(aa){if("value"in aa.doc&&typeof aa.doc.value=="object"&&aa.doc.value!==null){const Oa=Object.keys(aa.doc.value).sort(),Ca=["id","key","value"];if(!(Oa<Ca||Oa>Ca))return aa.doc.value}const Ci=Mae(aa.doc._id);return{key:Ci[0],id:Ci[1],value:"value"in aa.doc?aa.doc.value:null}})}async function Oi(Wn){let En;if(Mn?En=In(Nn,Wn,Qn):typeof Qn.keys>"u"?En={total_rows:Ai,offset:Yn,rows:Wn}:En={total_rows:Ai,offset:Yn,rows:Le(Wn,Qn.limit,Qn.skip)},Qn.update_seq&&(En.update_seq=Nn.seq),Qn.include_docs){const Ci=WU(Wn.map(Re)),Oa=await Nn.sourceDB.allDocs({keys:Ci,include_docs:!0,conflicts:Qn.conflicts,attachments:Qn.attachments,binary:Qn.binary});var aa=new Ry;return Oa.rows.forEach(function(Ca){aa.set(Ca.id,Ca.doc)}),Wn.forEach(function(Ca){var Po=Re(Ca),Eo=aa.get(Po);Eo&&(Ca.doc=Eo)}),En}else return En}if(typeof Qn.keys<"u"){const En=Qn.keys.map(function(Oa){const Ca={startkey:vx([Oa]),endkey:vx([Oa,{}])};return Qn.update_seq&&(Ca.update_seq=!0),Zi(Ca)}),aa=await Promise.all(En),Ci=yI(aa);return Oi(Ci)}else{const Wn={descending:Qn.descending};Qn.update_seq&&(Wn.update_seq=!0);let En,aa;if("start_key"in Qn&&(En=Qn.start_key),"startkey"in Qn&&(En=Qn.startkey),"end_key"in Qn&&(aa=Qn.end_key),"endkey"in Qn&&(aa=Qn.endkey),typeof En<"u"&&(Wn.startkey=Qn.descending?vx([En,{}]):vx([En])),typeof aa<"u"){let Oa=Qn.inclusive_end!==!1;Qn.descending&&(Oa=!Oa),Wn.endkey=vx(Oa?[aa,{}]:[aa])}if(typeof Qn.key<"u"){const Oa=vx([Qn.key]),Ca=vx([Qn.key,{}]);Wn.descending?(Wn.endkey=Oa,Wn.startkey=Ca):(Wn.startkey=Oa,Wn.endkey=Ca)}Mn||(typeof Qn.limit=="number"&&(Wn.limit=Qn.limit),Wn.skip=Yn);const Ci=await Zi(Wn);return Oi(Ci)}}async function Zn(Nn){return(await Nn.fetch("_view_cleanup",{headers:new cM({"Content-Type":"application/json"}),method:"POST"})).json()}async function ai(Nn){try{const Qn=await Nn.get("_local/"+t),Ai=new Ry;Object.keys(Qn.views).forEach(function(En){const aa=Az(En),Ci="_design/"+aa[0],Oa=aa[1];let Ca=Ai.get(Ci);Ca||(Ca=new mM,Ai.set(Ci,Ca)),Ca.add(Oa)});const Mn={keys:Sz(Ai),include_docs:!0},Yn=await Nn.allDocs(Mn),Zi={};Yn.rows.forEach(function(En){const aa=En.key.substring(8);Ai.get(En.key).forEach(function(Ci){let Oa=aa+"/"+Ci;Qn.views[Oa]||(Oa=Ci);const Ca=Object.keys(Qn.views[Oa]),Po=En.doc&&En.doc.views&&En.doc.views[Ci];Ca.forEach(function(Eo){Zi[Eo]=Zi[Eo]||Po})})});const Wn=Object.keys(Zi).filter(function(En){return!Zi[En]}).map(function(En){return Tz(Ur(En),function(){return new Nn.constructor(En,Nn.__opts).destroy()})()});return Promise.all(Wn).then(function(){return{ok:!0}})}catch(Qn){if(Qn.status===404)return{ok:!0};throw Qn}}async function ua(Nn,Qn,Ai){if(typeof Nn._query=="function")return Se(Nn,Qn,Ai);if(Nb(Nn))return Nt(Nn,Qn,Ai);const Mn={changes_batch_size:Nn.__opts.view_update_changes_batch_size||Ooe};if(typeof Qn!="string")return rr(Ai,Qn),KU.add(async function(){const Yn=await YU(Nn,"temp_view/temp_view",Qn.map,Qn.reduce,!0,t);return Loe(Lr(Yn,Mn).then(function(){return Ln(Yn,Ai)}),function(){return Yn.db.destroy()})}),KU.finish();{const Yn=Qn,Zi=Az(Yn),Oi=Zi[0],Wn=Zi[1],En=await Nn.get("_design/"+Oi);if(Qn=En.views&&En.views[Wn],!Qn)throw new vD(`ddoc ${En._id} has no view named ${Wn}`);_(En,Wn),rr(Ai,Qn);const aa=await YU(Nn,Yn,Qn.map,Qn.reduce,!1,t);return Ai.stale==="ok"||Ai.stale==="update_after"?(Ai.stale==="update_after"&&Vb(function(){Lr(aa,Mn)}),Ln(aa,Ai)):(await Lr(aa,Mn),Ln(aa,Ai))}}function Qi(Nn,Qn,Ai){const Mn=this;typeof Qn=="function"&&(Ai=Qn,Qn={}),Qn=Qn?Wt(Qn):{},typeof Nn=="function"&&(Nn={map:Nn});const Yn=Promise.resolve().then(function(){return ua(Mn,Nn,Qn)});return hG(Yn,Ai),Yn}const ta=koe(function(){const Nn=this;return typeof Nn._viewCleanup=="function"?lr(Nn):Nb(Nn)?Zn(Nn):ai(Nn)});return{query:Qi,viewCleanup:ta}}var Ez={_sum:function(t,e){return DN(e)},_count:function(t,e){return e.length},_stats:function(t,e){function o(_){for(var U=0,te=0,me=_.length;te<me;te++){var Le=_[te];U+=Le*Le}return U}return{sum:DN(e),min:Math.min.apply(null,e),max:Math.max.apply(null,e),count:e.length,sumsqr:o(e)}}};function Foe(t){if(/^_sum/.test(t))return Ez._sum;if(/^_count/.test(t))return Ez._count;if(/^_stats/.test(t))return Ez._stats;if(/^_/.test(t))throw new Error(t+" is not a supported reduce function.")}function Boe(t,e){if(typeof t=="function"&&t.length===2){var o=t;return function(_){return o(_,e)}}else return dG(t.toString(),e)}function Uoe(t){var e=t.toString(),o=Foe(e);return o||dG(e)}function joe(t,e){var o=t.views&&t.views[e];if(typeof o.map!="string")throw new vD("ddoc "+t._id+" has no string view named "+e+", instead found object of type: "+typeof o.map)}var Voe="mrviews",pG=Noe(Voe,Boe,Uoe,joe);function qoe(t,e,o){return pG.query.call(this,t,e,o)}function Hoe(t){return pG.viewCleanup.call(this,t)}var Goe={query:qoe,viewCleanup:Hoe};function Woe(t,e,o){return!t._attachments||!t._attachments[o]||t._attachments[o].digest!==e._attachments[o].digest}function QU(t,e){var o=Object.keys(e._attachments);return Promise.all(o.map(function(_){return t.getAttachment(e._id,_,{rev:e._rev})}))}function $oe(t,e,o){var _=Nb(e)&&!Nb(t),U=Object.keys(o._attachments);return _?t.get(o._id).then(function(te){return Promise.all(U.map(function(me){return Woe(te,o,me)?e.getAttachment(o._id,me):t.getAttachment(te._id,me)}))}).catch(function(te){if(te.status!==404)throw te;return QU(e,o)}):QU(e,o)}function Xoe(t){var e=[];return Object.keys(t).forEach(function(o){var _=t[o].missing;_.forEach(function(U){e.push({id:o,rev:U})})}),{docs:e,revs:!0,latest:!0}}function Yoe(t,e,o,_){o=Om(o);var U=[],te=!0;function me(){var Re=Xoe(o);if(Re.docs.length)return t.bulkGet(Re).then(function(je){if(_.cancelled)throw new Error("cancelled");return Promise.all(je.results.map(function(Qe){return Promise.all(Qe.docs.map(function(nt){var yt=nt.ok;return nt.error&&(te=!1),!yt||!yt._attachments?yt:$oe(e,t,yt).then(function(Wt){var Bt=Object.keys(yt._attachments);return Wt.forEach(function(rr,Nt){var Se=yt._attachments[Bt[Nt]];delete Se.stub,delete Se.length,Se.data=rr}),yt})}))})).then(function(Qe){U=U.concat(yI(Qe).filter(Boolean))})})}function Le(){return{ok:te,docs:U}}return Promise.resolve().then(me).then(Le)}var ej=1,tj="pouchdb",Zoe=5,Ib=0;function zN(t,e,o,_,U){return t.get(e).catch(function(te){if(te.status===404)return(t.adapter==="http"||t.adapter==="https")&&bN(404,"PouchDB is just checking if a remote checkpoint exists."),{session_id:_,_id:e,history:[],replicator:tj,version:ej};throw te}).then(function(te){if(!U.cancelled&&te.last_seq!==o)return te.history=(te.history||[]).filter(function(me){return me.session_id!==_}),te.history.unshift({last_seq:o,session_id:_}),te.history=te.history.slice(0,Zoe),te.version=ej,te.replicator=tj,te.session_id=_,te.last_seq=o,t.put(te).catch(function(me){if(me.status===409)return zN(t,e,o,_,U);throw me})})}class rj{constructor(e,o,_,U,te){this.src=e,this.target=o,this.id=_,this.returnValue=U,this.opts=te||{}}writeCheckpoint(e,o){var _=this;return this.updateTarget(e,o).then(function(){return _.updateSource(e,o)})}updateTarget(e,o){return this.opts.writeTargetCheckpoint?zN(this.target,this.id,e,o,this.returnValue):Promise.resolve(!0)}updateSource(e,o){if(this.opts.writeSourceCheckpoint){var _=this;return zN(this.src,this.id,e,o,this.returnValue).catch(function(U){if(ij(U))return _.opts.writeSourceCheckpoint=!1,!0;throw U})}else return Promise.resolve(!0)}getCheckpoint(){var e=this;return e.opts&&e.opts.writeSourceCheckpoint&&!e.opts.writeTargetCheckpoint?e.src.get(e.id).then(function(o){return o.last_seq||Ib}).catch(function(o){if(o.status!==404)throw o;return Ib}):e.target.get(e.id).then(function(o){return e.opts&&e.opts.writeTargetCheckpoint&&!e.opts.writeSourceCheckpoint?o.last_seq||Ib:e.src.get(e.id).then(function(_){if(o.version!==_.version)return Ib;var U;return o.version?U=o.version.toString():U="undefined",U in nj?nj[U](o,_):Ib},function(_){if(_.status===404&&o.last_seq)return e.src.put({_id:e.id,last_seq:Ib}).then(function(){return Ib},function(U){return ij(U)?(e.opts.writeSourceCheckpoint=!1,o.last_seq):Ib});throw _})}).catch(function(o){if(o.status!==404)throw o;return Ib})}}var nj={undefined:function(t,e){return Vv(t.last_seq,e.last_seq)===0?e.last_seq:0},1:function(t,e){return Koe(e,t).last_seq}};function Koe(t,e){return t.session_id===e.session_id?{last_seq:t.last_seq,history:t.history}:vG(t.history,e.history)}function vG(t,e){var o=t[0],_=t.slice(1),U=e[0],te=e.slice(1);if(!o||e.length===0)return{last_seq:Ib,history:[]};var me=o.session_id;if(NN(me,e))return{last_seq:o.last_seq,history:t};var Le=U.session_id;return NN(Le,_)?{last_seq:U.last_seq,history:te}:vG(_,te)}function NN(t,e){var o=e[0],_=e.slice(1);return!t||e.length===0?!1:t===o.session_id?!0:NN(t,_)}function ij(t){return typeof t.status=="number"&&Math.floor(t.status/100)===4}function mG(t,e,o,_,U){return this instanceof rj?mG:new rj(t,e,o,_,U)}var aj=0;function Joe(t,e,o,_){if(t.retry===!1){e.emit("error",o),e.removeAllListeners();return}if(typeof t.back_off_function!="function"&&(t.back_off_function=xie),e.emit("requestError",o),e.state==="active"||e.state==="pending"){e.emit("paused",o),e.state="stopped";var U=function(){t.current_back_off=aj},te=function(){e.removeListener("active",U)};e.once("paused",te),e.once("active",U)}t.current_back_off=t.current_back_off||aj,t.current_back_off=t.back_off_function(t.current_back_off),setTimeout(_,t.current_back_off)}function Qoe(t){return Object.keys(t).sort(Vv).reduce(function(e,o){return e[o]=t[o],e},{})}function ese(t,e,o){var _=o.doc_ids?o.doc_ids.sort(Vv):"",U=o.filter?o.filter.toString():"",te="",me="",Le="";return o.selector&&(Le=JSON.stringify(o.selector)),o.filter&&o.query_params&&(te=JSON.stringify(Qoe(o.query_params))),o.filter&&o.filter==="_view"&&(me=o.view.toString()),Promise.all([t.id(),e.id()]).then(function(Re){var je=Re[0]+Re[1]+U+me+te+_+Le;return new Promise(function(Qe){g4(je,Qe)})}).then(function(Re){return Re=Re.replace(/\//g,".").replace(/\+/g,"_"),"_local/"+Re})}function gG(t,e,o,_,U){var te=[],me,Le={seq:0,changes:[],docs:[]},Re=!1,je=!1,Qe=!1,nt=0,yt=0,Wt=o.continuous||o.live||!1,Bt=o.batch_size||100,rr=o.batches_limit||10,Nt=o.style||"all_docs",Se=!1,lr=o.doc_ids,Zt=o.selector,$t,kt,Jt=[],Ur=pD(),Lr;U=U||{ok:!0,start_time:new Date().toISOString(),docs_read:0,docs_written:0,doc_write_failures:0,errors:[]};var xn={};_.ready(t,e);function In(){return kt?Promise.resolve():ese(t,e,o).then(function(En){$t=En;var aa={};o.checkpoint===!1?aa={writeSourceCheckpoint:!1,writeTargetCheckpoint:!1}:o.checkpoint==="source"?aa={writeSourceCheckpoint:!0,writeTargetCheckpoint:!1}:o.checkpoint==="target"?aa={writeSourceCheckpoint:!1,writeTargetCheckpoint:!0}:aa={writeSourceCheckpoint:!0,writeTargetCheckpoint:!0},kt=new mG(t,e,$t,_,aa)})}function Ln(){if(Jt=[],me.docs.length!==0){var En=me.docs,aa={timeout:o.timeout};return e.bulkDocs({docs:En,new_edits:!1},aa).then(function(Ci){if(_.cancelled)throw Nn(),new Error("cancelled");var Oa=Object.create(null);Ci.forEach(function(Po){Po.error&&(Oa[Po.id]=Po)});var Ca=Object.keys(Oa).length;U.doc_write_failures+=Ca,U.docs_written+=En.length-Ca,En.forEach(function(Po){var Eo=Oa[Po._id];if(Eo){U.errors.push(Eo);var Za=(Eo.name||"").toLowerCase();if(Za==="unauthorized"||Za==="forbidden")_.emit("denied",Om(Eo));else throw Eo}else Jt.push(Po)})},function(Ci){throw U.doc_write_failures+=En.length,Ci})}}function ci(){if(me.error)throw new Error("There was a problem getting docs.");U.last_seq=yt=me.seq;var En=Om(U);return Jt.length&&(En.docs=Jt,typeof me.pending=="number"&&(En.pending=me.pending,delete me.pending),_.emit("change",En)),Re=!0,t.info().then(function(aa){var Ci=t.activeTasks.get(Lr);if(!(!me||!Ci)){var Oa=Ci.completed_items||0,Ca=parseInt(aa.update_seq,10)-parseInt(nt,10);t.activeTasks.update(Lr,{completed_items:Oa+me.changes.length,total_items:Ca})}}),kt.writeCheckpoint(me.seq,Ur).then(function(){if(_.emit("checkpoint",{checkpoint:me.seq}),Re=!1,_.cancelled)throw Nn(),new Error("cancelled");me=void 0,Yn()}).catch(function(aa){throw Wn(aa),aa})}function Zn(){var En={};return me.changes.forEach(function(aa){_.emit("checkpoint",{revs_diff:aa}),aa.id!=="_user/"&&(En[aa.id]=aa.changes.map(function(Ci){return Ci.rev}))}),e.revsDiff(En).then(function(aa){if(_.cancelled)throw Nn(),new Error("cancelled");me.diffs=aa})}function ai(){return Yoe(t,e,me.diffs,_).then(function(En){me.error=!En.ok,En.docs.forEach(function(aa){delete me.diffs[aa._id],U.docs_read++,me.docs.push(aa)})})}function ua(){if(!(_.cancelled||me)){if(te.length===0){Qi(!0);return}me=te.shift(),_.emit("checkpoint",{start_next_batch:me.seq}),Zn().then(ai).then(Ln).then(ci).then(ua).catch(function(En){ta("batch processing terminated with error",En)})}}function Qi(En){if(Le.changes.length===0){te.length===0&&!me&&((Wt&&xn.live||je)&&(_.state="pending",_.emit("paused")),je&&Nn());return}(En||je||Le.changes.length>=Bt)&&(te.push(Le),Le={seq:0,changes:[],docs:[]},(_.state==="pending"||_.state==="stopped")&&(_.state="active",_.emit("active")),ua())}function ta(En,aa){Qe||(aa.message||(aa.message=En),U.ok=!1,U.status="aborting",te=[],Le={seq:0,changes:[],docs:[]},Nn(aa))}function Nn(En){if(!Qe&&!(_.cancelled&&(U.status="cancelled",Re)))if(U.status=U.status||"complete",U.end_time=new Date().toISOString(),U.last_seq=yt,Qe=!0,t.activeTasks.remove(Lr,En),En){En=Bc(En),En.result=U;var aa=(En.name||"").toLowerCase();aa==="unauthorized"||aa==="forbidden"?(_.emit("error",En),_.removeAllListeners()):Joe(o,_,En,function(){gG(t,e,o,_)})}else _.emit("complete",U),_.removeAllListeners()}function Qn(En,aa,Ci){if(_.cancelled)return Nn();typeof aa=="number"&&(Le.pending=aa);var Oa=c4(o)(En);if(!Oa){var Ca=t.activeTasks.get(Lr);if(Ca){var Po=Ca.completed_items||0;t.activeTasks.update(Lr,{completed_items:++Po})}return}Le.seq=En.seq||Ci,Le.changes.push(En),_.emit("checkpoint",{pending_batch:Le.seq}),Vb(function(){Qi(te.length===0&&xn.live)})}function Ai(En){if(Se=!1,_.cancelled)return Nn();if(En.results.length>0)xn.since=En.results[En.results.length-1].seq,Yn(),Qi(!0);else{var aa=function(){Wt?(xn.live=!0,Yn()):je=!0,Qi(!0)};!me&&En.results.length===0?(Re=!0,kt.writeCheckpoint(En.last_seq,Ur).then(function(){if(Re=!1,U.last_seq=yt=En.last_seq,_.cancelled)throw Nn(),new Error("cancelled");aa()}).catch(Wn)):aa()}}function Mn(En){if(Se=!1,_.cancelled)return Nn();ta("changes rejected",En)}function Yn(){if(!(!Se&&!je&&te.length<rr))return;Se=!0;function En(){Ci.cancel()}function aa(){_.removeListener("cancel",En)}_._changes&&(_.removeListener("cancel",_._abortChanges),_._changes.cancel()),_.once("cancel",En);var Ci=t.changes(xn).on("change",Qn);Ci.then(aa,aa),Ci.then(Ai).catch(Mn),o.retry&&(_._changes=Ci,_._abortChanges=En)}function Zi(En){return t.info().then(function(aa){var Ci=typeof o.since>"u"?parseInt(aa.update_seq,10)-parseInt(En,10):parseInt(aa.update_seq,10);return Lr=t.activeTasks.add({name:`${Wt?"continuous ":""}replication from ${aa.db_name}`,total_items:Ci}),En})}function Oi(){In().then(function(){if(_.cancelled){Nn();return}return kt.getCheckpoint().then(Zi).then(function(En){yt=En,nt=En,xn={since:yt,limit:Bt,batch_size:Bt,style:Nt,doc_ids:lr,selector:Zt,return_docs:!0},o.filter&&(typeof o.filter!="string"?xn.include_docs=!0:xn.filter=o.filter),"heartbeat"in o&&(xn.heartbeat=o.heartbeat),"timeout"in o&&(xn.timeout=o.timeout),o.query_params&&(xn.query_params=o.query_params),o.view&&(xn.view=o.view),Yn()})}).catch(function(En){ta("getCheckpoint rejected with ",En)})}function Wn(En){Re=!1,ta("writeCheckpoint completed with error",En)}if(_.cancelled){Nn();return}_._addedListeners||(_.once("cancel",Nn),typeof o.complete=="function"&&(_.once("error",o.complete),_.once("complete",function(En){o.complete(null,En)})),_._addedListeners=!0),typeof o.since>"u"?Oi():In().then(function(){return Re=!0,kt.writeCheckpoint(o.since,Ur)}).then(function(){if(Re=!1,_.cancelled){Nn();return}yt=o.since,Oi()}).catch(Wn)}class tse extends b2{constructor(){super(),this.cancelled=!1,this.state="pending";const e=new Promise((o,_)=>{this.once("complete",o),this.once("error",_)});this.then=function(o,_){return e.then(o,_)},this.catch=function(o){return e.catch(o)},this.catch(function(){})}cancel(){this.cancelled=!0,this.state="cancelled",this.emit("cancel")}ready(e,o){if(this._readyCalled)return;this._readyCalled=!0;const _=()=>{this.cancel()};e.once("destroyed",_),o.once("destroyed",_);function U(){e.removeListener("destroyed",_),o.removeListener("destroyed",_)}this.once("complete",U),this.once("error",U)}}function wI(t,e){var o=e.PouchConstructor;return typeof t=="string"?new o(t,e):t}function FN(t,e,o,_){if(typeof o=="function"&&(_=o,o={}),typeof o>"u"&&(o={}),o.doc_ids&&!Array.isArray(o.doc_ids))throw Bc(dD,"`doc_ids` filter parameter is not a list.");o.complete=_,o=Om(o),o.continuous=o.continuous||o.live,o.retry="retry"in o?o.retry:!1,o.PouchConstructor=o.PouchConstructor||this;var U=new tse(o),te=wI(t,o),me=wI(e,o);return gG(te,me,o,U),U}function rse(t,e,o,_){return typeof o=="function"&&(_=o,o={}),typeof o>"u"&&(o={}),o=Om(o),o.PouchConstructor=o.PouchConstructor||this,t=wI(t,o),e=wI(e,o),new nse(t,e,o,_)}class nse extends b2{constructor(e,o,_,U){super(),this.canceled=!1;const te=_.push?L3({},_,_.push):_,me=_.pull?L3({},_,_.pull):_;this.push=FN(e,o,te),this.pull=FN(o,e,me),this.pushPaused=!0,this.pullPaused=!0;const Le=Zt=>{this.emit("change",{direction:"pull",change:Zt})},Re=Zt=>{this.emit("change",{direction:"push",change:Zt})},je=Zt=>{this.emit("denied",{direction:"push",doc:Zt})},Qe=Zt=>{this.emit("denied",{direction:"pull",doc:Zt})},nt=()=>{this.pushPaused=!0,this.pullPaused&&this.emit("paused")},yt=()=>{this.pullPaused=!0,this.pushPaused&&this.emit("paused")},Wt=()=>{this.pushPaused=!1,this.pullPaused&&this.emit("active",{direction:"push"})},Bt=()=>{this.pullPaused=!1,this.pushPaused&&this.emit("active",{direction:"pull"})};let rr={};const Nt=Zt=>($t,kt)=>{($t==="change"&&(kt===Le||kt===Re)||$t==="denied"&&(kt===Qe||kt===je)||$t==="paused"&&(kt===yt||kt===nt)||$t==="active"&&(kt===Bt||kt===Wt))&&($t in rr||(rr[$t]={}),rr[$t][Zt]=!0,Object.keys(rr[$t]).length===2&&this.removeAllListeners($t))};_.live&&(this.push.on("complete",this.pull.cancel.bind(this.pull)),this.pull.on("complete",this.push.cancel.bind(this.push)));function Se(Zt,$t,kt){Zt.listeners($t).indexOf(kt)==-1&&Zt.on($t,kt)}this.on("newListener",function(Zt){Zt==="change"?(Se(this.pull,"change",Le),Se(this.push,"change",Re)):Zt==="denied"?(Se(this.pull,"denied",Qe),Se(this.push,"denied",je)):Zt==="active"?(Se(this.pull,"active",Bt),Se(this.push,"active",Wt)):Zt==="paused"&&(Se(this.pull,"paused",yt),Se(this.push,"paused",nt))}),this.on("removeListener",function(Zt){Zt==="change"?(this.pull.removeListener("change",Le),this.push.removeListener("change",Re)):Zt==="denied"?(this.pull.removeListener("denied",Qe),this.push.removeListener("denied",je)):Zt==="active"?(this.pull.removeListener("active",Bt),this.push.removeListener("active",Wt)):Zt==="paused"&&(this.pull.removeListener("paused",yt),this.push.removeListener("paused",nt))}),this.pull.on("removeListener",Nt("pull")),this.push.on("removeListener",Nt("push"));const lr=Promise.all([this.push,this.pull]).then(Zt=>{const $t={push:Zt[0],pull:Zt[1]};return this.emit("complete",$t),U&&U(null,$t),this.removeAllListeners(),$t},Zt=>{if(this.cancel(),U?U(Zt):this.emit("error",Zt),this.removeAllListeners(),U)throw Zt});this.then=function(Zt,$t){return lr.then(Zt,$t)},this.catch=function(Zt){return lr.catch(Zt)}}cancel(){this.canceled||(this.canceled=!0,this.push.cancel(),this.pull.cancel())}}function ise(t){t.replicate=FN,t.sync=rse,Object.defineProperty(t.prototype,"replicate",{get:function(){var e=this;return typeof this.replicateMethods>"u"&&(this.replicateMethods={from:function(o,_,U){return e.constructor.replicate(o,e,_,U)},to:function(o,_,U){return e.constructor.replicate(e,o,_,U)}}),this.replicateMethods}}),t.prototype.sync=function(e,o,_){return this.constructor.sync(this,e,o,_)}}jc.plugin(xoe).plugin(Moe).plugin(Goe).plugin(ise);let xp=class extends Error{constructor(e,o,_){super(),this.status=e,this.name=o,this.message=_,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}};new xp(401,"unauthorized","Name or password is incorrect.");new xp(400,"bad_request","Missing JSON list of 'docs'");new xp(404,"not_found","missing");new xp(409,"conflict","Document update conflict");new xp(400,"bad_request","_id field must contain a string");new xp(412,"missing_id","_id is required for puts");new xp(400,"bad_request","Only reserved document ids may start with underscore.");new xp(412,"precondition_failed","Database not open");new xp(500,"unknown_error","Database encountered an unknown error");new xp(500,"badarg","Some query argument is invalid");new xp(400,"invalid_request","Request was invalid");new xp(400,"query_parse_error","Some query parameter is invalid");new xp(500,"doc_validation","Bad special document member");new xp(400,"bad_request","Something wrong with the request");new xp(400,"bad_request","Document must be a JSON object");new xp(404,"not_found","Database not found");new xp(500,"indexed_db_went_bad","unknown");new xp(500,"web_sql_went_bad","unknown");new xp(500,"levelDB_went_went_bad","unknown");new xp(403,"forbidden","Forbidden by design doc validate_doc_update function");new xp(400,"bad_request","Invalid rev format");new xp(412,"file_exists","The database could not be created, the file already exists.");new xp(412,"missing_stub","A pre-existing attachment stub wasn't found");new xp(413,"invalid_url","Provided URL is invalid");function ase(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer||typeof Blob<"u"&&t instanceof Blob}function ose(t){return t instanceof ArrayBuffer?t.slice(0):t.slice(0,t.size,t.type)}var yG=Function.prototype.toString,sse=yG.call(Object);function lse(t){var e=Object.getPrototypeOf(t);if(e===null)return!0;var o=e.constructor;return typeof o=="function"&&o instanceof o&&yG.call(o)==sse}function BN(t){var e,o,_;if(!t||typeof t!="object")return t;if(Array.isArray(t)){for(e=[],o=0,_=t.length;o<_;o++)e[o]=BN(t[o]);return e}if(t instanceof Date&&isFinite(t))return t.toISOString();if(ase(t))return ose(t);if(!lse(t))return t;e={};for(o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var U=BN(t[o]);typeof U<"u"&&(e[o]=U)}return e}var oj;try{localStorage.setItem("_pouch_check_localstorage",1),oj=!!localStorage.getItem("_pouch_check_localstorage")}catch{oj=!1}var O5=function(t,e,o,_,U){if(_==="m")throw new TypeError("Private method is not writable");if(_==="a"&&!U)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!U:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return _==="a"?U.call(t,o):U?U.value=o:e.set(t,o),o},Sh=function(t,e,o,_){if(o==="a"&&!_)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!_:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?_:o==="a"?_.call(t):_?_.value:e.get(t)},QC,G5,am,bS,wS;class use{constructor(e){QC.set(this,void 0),G5.set(this,void 0),am.set(this,null),bS.set(this,new Map),wS.set(this,!1),O5(this,QC,e,"f"),O5(this,G5,()=>{this.unsubscribeAll()},"f"),e.once("destroyed",Sh(this,G5,"f"))}subscribeToDocs(e,o){var _;if(Sh(this,wS,"f"))return()=>{};Sh(this,am,"f")==null&&O5(this,am,cse(Sh(this,QC,"f")),"f");const U=Array.isArray(e)&&e.length>0;if(U)for(const me of e??[])if(Sh(this,am,"f").ids.has(me))(_=Sh(this,am,"f").ids.get(me))===null||_===void 0||_.add(o);else{const Le=new Set;Le.add(o),Sh(this,am,"f").ids.set(me,Le)}else Sh(this,am,"f").all.add(o);let te=!1;return()=>{var me,Le,Re,je;if(!(te||Sh(this,wS,"f"))){if(te=!0,U)for(const Qe of e??[]){const nt=(me=Sh(this,am,"f"))===null||me===void 0?void 0:me.ids.get(Qe);nt?.delete(o),nt?.size===0&&((Le=Sh(this,am,"f"))===null||Le===void 0||Le.ids.delete(Qe))}else(Re=Sh(this,am,"f"))===null||Re===void 0||Re.all.delete(o);((je=Sh(this,am,"f"))===null||je===void 0?void 0:je.all.size)===0&&Sh(this,am,"f").ids.size===0&&(Sh(this,am,"f").changesFeed.cancel(),O5(this,am,null,"f"))}}}subscribeToView(e,o){if(Sh(this,wS,"f"))return()=>{};let _;Sh(this,bS,"f").has(e)?_=Sh(this,bS,"f").get(e):(_=fse(Sh(this,QC,"f"),e),Sh(this,bS,"f").set(e,_)),_.callbacks.add(o);let U=!1;return()=>{U||Sh(this,wS,"f")||(U=!0,_.callbacks.delete(o),_.callbacks.size===0&&(_.feed.cancel(),Sh(this,bS,"f").delete(e)))}}unsubscribeAll(){if(!Sh(this,wS,"f")){O5(this,wS,!0,"f"),Sh(this,QC,"f").removeListener("destroyed",Sh(this,G5,"f")),Sh(this,am,"f")&&(Sh(this,am,"f").changesFeed.cancel(),Sh(this,am,"f").all.clear(),Sh(this,am,"f").ids.forEach(e=>{e.clear()}),Sh(this,am,"f").ids.clear());for(const e of Sh(this,bS,"f").values())e.feed.cancel(),e.callbacks.clear();Sh(this,bS,"f").clear()}}}QC=new WeakMap,G5=new WeakMap,am=new WeakMap,bS=new WeakMap,wS=new WeakMap;function cse(t){let e=null;return e={changesFeed:t.changes({since:"now",live:!0}).on("change",_=>{var U;const te=((U=e?.all.size)!==null&&U!==void 0?U:0)>0,me=e?.ids.get(_.id);_.deleted?(te&&e&&M6(e.all,!0,_.id),me&&M6(me,!0,_.id)):t.get(_.id).then(Le=>{te&&e&&M6(e.all,!1,_.id,Le),me&&M6(me,!1,_.id,Le)}).catch(console.error)}),all:new Set,ids:new Map},e}function M6(t,e,o,_){for(const U of t)try{const te=_?BN(_):void 0;U(e,o,te)}catch(te){console.error(te)}}function fse(t,e){let o=null;return o={feed:t.changes({since:"now",live:!0,filter:"_view",view:e}).on("change",U=>{var te;for(const me of(te=o?.callbacks)!==null&&te!==void 0?te:[])try{me(U.id)}catch(Le){console.error(Le)}}),callbacks:new Set},o}const UN=vr.createContext({defaultKey:"",databases:{}});function hse(t){const{pouchdb:e,name:o}=t,{databases:_,default:U}=t;let te,me;if(_!=null&&U!=null)te=_,me=U.toString();else if(e!=null)me=o?.toString()||e.name,te={[me]:e};else throw new TypeError("databases argument must be pared with the default argument");const Le=dse(te),Re=vr.useContext(UN).databases,je=vr.useMemo(()=>({defaultKey:me,databases:Object.assign(Object.assign({},Re),Le)}),[Le,me,Re]);return Ts.createElement(UN.Provider,{value:je},t.children)}function dse(t){const[e,o]=vr.useState(t),[_,U]=vr.useState(null);if(_&&t===e)return _;const te={},me=new Set(Object.keys(_??{}));let Le=!1;for(const[Re,je]of Object.entries(t))_&&e[Re]===je?(te[Re]=_[Re],me.delete(Re)):(Le=!0,te[Re]={pouchdb:je,subscriptionManager:new use(je)});if(Le||me.size>0)o(t),U(te);else if(_)return _;if(_)for(const Re of me)_[Re].subscriptionManager.unsubscribeAll();return te}function pse(t){const{defaultKey:e,databases:o}=vr.useContext(UN);if(e===""&&o[e]==null&&Object.keys(o).length===0)throw new Error("could not find PouchDB context value; please ensure the component is wrapped in a <Provider>");const _=t==="_default"?e:t??e;if(!(_ in o))throw new Error(`could not find a PouchDB database with name of "${t}"`);return o[_]}function vse(t){const[e,o]=vr.useReducer(mse,t,me=>(typeof me=="function"&&(me=me()),me||(me={}),Object.assign(Object.assign({},me),{error:null,state:"loading"}))),_=vr.useMemo(()=>Object.assign(Object.assign({},e),{loading:e.state==="loading"}),[e]),U=vr.useRef(e);U.current=e;const te=vr.useCallback(me=>{const Le=me(U.current);o({type:"loading_finished",payload:Le})},[]);return[_,o,te]}function mse(t,e){switch(e.type){case"loading_started":return Object.assign(Object.assign({},t),{state:"loading"});case"loading_finished":return Object.assign(Object.assign({},e.payload),{error:null,state:"done"});case"loading_error":return Object.assign(Object.assign(Object.assign({},t),e.payload.setResult?e.payload.result||{}:{}),{state:"error",error:e.payload.error});default:return t}}var Cz,sj;function gse(){return sj||(sj=1,Cz=function t(e,o){if(e===o)return!0;if(e&&o&&typeof e=="object"&&typeof o=="object"){if(e.constructor!==o.constructor)return!1;var _,U,te;if(Array.isArray(e)){if(_=e.length,_!=o.length)return!1;for(U=_;U--!==0;)if(!t(e[U],o[U]))return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if(te=Object.keys(e),_=te.length,_!==Object.keys(o).length)return!1;for(U=_;U--!==0;)if(!Object.prototype.hasOwnProperty.call(o,te[U]))return!1;for(U=_;U--!==0;){var me=te[U];if(!t(e[me],o[me]))return!1}return!0}return e!==e&&o!==o}),Cz}var yse=gse();const _se=Uy(yse);function xse(t){const e=vr.useRef(t);return vr.useMemo(()=>_se(e.current,t)?e.current:(e.current=t,t),[t])}function bse(t){const{pouchdb:e,subscriptionManager:o}=pse(t?.db),{include_docs:_,conflicts:U,attachments:te,binary:me,limit:Le,skip:Re,descending:je,update_seq:Qe}=t||{},{startkey:nt,endkey:yt,inclusive_end:Wt}=t||{},{key:Bt}=t||{},rr=xse(t?.keys),[Nt,Se,lr]=vse(()=>({rows:[],total_rows:0,offset:0}));return vr.useEffect(()=>{let Zt=!0,$t=!1,kt=!1;const Jt={include_docs:_,conflicts:U,attachments:te,binary:me,limit:Le,skip:Re,descending:je,update_seq:Qe,startkey:nt,endkey:yt,inclusive_end:Wt,key:Bt,keys:rr},Ur=async()=>{if($t){kt=!0;return}$t=!0,kt=!1,Se({type:"loading_started"});try{const In=await e.allDocs(Jt);Zt&&Se({type:"loading_finished",payload:In})}catch(In){Zt&&Se({type:"loading_error",payload:{error:In,setResult:!1}})}finally{$t=!1,kt&&Zt&&Ur()}};Ur();let Lr=null;Bt!=null?Lr=[Bt]:rr!=null&&(Lr=rr);const xn=o.subscribeToDocs(Lr,(In,Ln)=>{!Zt||!wse(Ln,nt,yt,Wt,je)||(In?lr(ci=>{const Zn=ci.rows.filter(ai=>ai.id!==Ln);return Object.assign(Object.assign({},ci),{rows:Zn,total_rows:ci.total_rows-(ci.rows.length-Zn.length)})}):Ur())});return()=>{Zt=!1,xn()}},[Se,lr,e,o,_,U,te,me,nt,yt,Wt,Le,Re,je,Bt,rr,Qe]),Nt}function wse(t,e,o,_,U){return e&&(U&&t>e||!U&&t<e)?!1:o==null?!0:_?U?t>=o:t<=o:U?t>o:t<o}function gD(t){return"$"+t}function _G(t){return t.substring(1)}function US(){this._store={}}US.prototype.get=function(t){var e=gD(t);return this._store[e]};US.prototype.set=function(t,e){var o=gD(t);return this._store[o]=e,!0};US.prototype.has=function(t){var e=gD(t);return e in this._store};US.prototype.keys=function(){return Object.keys(this._store).map(t=>_G(t))};US.prototype.delete=function(t){var e=gD(t),o=e in this._store;return delete this._store[e],o};US.prototype.forEach=function(t){for(var e=Object.keys(this._store),o=0,_=e.length;o<_;o++){var U=e[o],te=this._store[U];U=_G(U),t(te,U)}};Object.defineProperty(US.prototype,"size",{get:function(){return Object.keys(this._store).length}});function yD(t){if(this._store=new US,t&&Array.isArray(t))for(var e=0,o=t.length;e<o;e++)this.add(t[e])}yD.prototype.add=function(t){return this._store.set(t,!0)};yD.prototype.has=function(t){return this._store.has(t)};yD.prototype.forEach=function(t){this._store.forEach(function(e,o){t(o)})};Object.defineProperty(yD.prototype,"size",{get:function(){return this._store.size}});class bp extends Error{constructor(e,o,_){super(),this.status=e,this.name=o,this.message=_,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}}new bp(401,"unauthorized","Name or password is incorrect.");new bp(400,"bad_request","Missing JSON list of 'docs'");new bp(404,"not_found","missing");new bp(409,"conflict","Document update conflict");new bp(400,"bad_request","_id field must contain a string");new bp(412,"missing_id","_id is required for puts");new bp(400,"bad_request","Only reserved document ids may start with underscore.");new bp(412,"precondition_failed","Database not open");new bp(500,"unknown_error","Database encountered an unknown error");new bp(500,"badarg","Some query argument is invalid");new bp(400,"invalid_request","Request was invalid");new bp(400,"query_parse_error","Some query parameter is invalid");new bp(500,"doc_validation","Bad special document member");new bp(400,"bad_request","Something wrong with the request");new bp(400,"bad_request","Document must be a JSON object");new bp(404,"not_found","Database not found");new bp(500,"indexed_db_went_bad","unknown");new bp(500,"web_sql_went_bad","unknown");new bp(500,"levelDB_went_went_bad","unknown");new bp(403,"forbidden","Forbidden by design doc validate_doc_update function");new bp(400,"bad_request","Invalid rev format");new bp(412,"file_exists","The database could not be created, the file already exists.");new bp(412,"missing_stub","A pre-existing attachment stub wasn't found");new bp(413,"invalid_url","Provided URL is invalid");var Tse=Function.prototype.toString;Tse.call(Object);var lj;try{localStorage.setItem("_pouch_check_localstorage",1),lj=!!localStorage.getItem("_pouch_check_localstorage")}catch{lj=!1}const yc=t=>typeof t=="string",z5=()=>{let t,e;const o=new Promise((_,U)=>{t=_,e=U});return o.resolve=t,o.reject=e,o},uj=t=>t==null?"":""+t,Sse=(t,e,o)=>{t.forEach(_=>{e[_]&&(o[_]=e[_])})},Ase=/###/g,cj=t=>t&&t.indexOf("###")>-1?t.replace(Ase,"."):t,fj=t=>!t||yc(t),Z5=(t,e,o)=>{const _=yc(e)?e.split("."):e;let U=0;for(;U<_.length-1;){if(fj(t))return{};const te=cj(_[U]);!t[te]&&o&&(t[te]=new o),Object.prototype.hasOwnProperty.call(t,te)?t=t[te]:t={},++U}return fj(t)?{}:{obj:t,k:cj(_[U])}},hj=(t,e,o)=>{const{obj:_,k:U}=Z5(t,e,Object);if(_!==void 0||e.length===1){_[U]=o;return}let te=e[e.length-1],me=e.slice(0,e.length-1),Le=Z5(t,me,Object);for(;Le.obj===void 0&&me.length;)te=`${me[me.length-1]}.${te}`,me=me.slice(0,me.length-1),Le=Z5(t,me,Object),Le?.obj&&typeof Le.obj[`${Le.k}.${te}`]<"u"&&(Le.obj=void 0);Le.obj[`${Le.k}.${te}`]=o},Ese=(t,e,o,_)=>{const{obj:U,k:te}=Z5(t,e,Object);U[te]=U[te]||[],U[te].push(o)},TI=(t,e)=>{const{obj:o,k:_}=Z5(t,e);if(o&&Object.prototype.hasOwnProperty.call(o,_))return o[_]},Cse=(t,e,o)=>{const _=TI(t,o);return _!==void 0?_:TI(e,o)},xG=(t,e,o)=>{for(const _ in e)_!=="__proto__"&&_!=="constructor"&&(_ in t?yc(t[_])||t[_]instanceof String||yc(e[_])||e[_]instanceof String?o&&(t[_]=e[_]):xG(t[_],e[_],o):t[_]=e[_]);return t},YC=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Mse={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const kse=t=>yc(t)?t.replace(/[&<>"'\/]/g,e=>Mse[e]):t;class Lse{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const o=this.regExpMap.get(e);if(o!==void 0)return o;const _=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,_),this.regExpQueue.push(e),_}}const Pse=[" ",",","?","!",";"],Rse=new Lse(20),Ise=(t,e,o)=>{e=e||"",o=o||"";const _=Pse.filter(me=>e.indexOf(me)<0&&o.indexOf(me)<0);if(_.length===0)return!0;const U=Rse.getRegExp(`(${_.map(me=>me==="?"?"\\?":me).join("|")})`);let te=!U.test(t);if(!te){const me=t.indexOf(o);me>0&&!U.test(t.substring(0,me))&&(te=!0)}return te},jN=function(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const _=e.split(o);let U=t;for(let te=0;te<_.length;){if(!U||typeof U!="object")return;let me,Le="";for(let Re=te;Re<_.length;++Re)if(Re!==te&&(Le+=o),Le+=_[Re],me=U[Le],me!==void 0){if(["string","number","boolean"].indexOf(typeof me)>-1&&Re<_.length-1)continue;te+=Re-te+1;break}U=me}return U},SI=t=>t?.replace("_","-"),Dse={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class AI{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,o)}init(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=e||Dse,this.options=o,this.debug=o.debug}log(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"log","",!0)}warn(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"warn","",!0)}error(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"error","")}deprecate(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(e,o,_,U){return U&&!this.debug?null:(yc(e[0])&&(e[0]=`${_}${this.prefix} ${e[0]}`),this.logger[o](e))}create(e){return new AI(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new AI(this.logger,e)}}var Bb=new AI;class _D{constructor(){this.observers={}}on(e,o){return e.split(" ").forEach(_=>{this.observers[_]||(this.observers[_]=new Map);const U=this.observers[_].get(o)||0;this.observers[_].set(o,U+1)}),this}off(e,o){if(this.observers[e]){if(!o){delete this.observers[e];return}this.observers[e].delete(o)}}emit(e){for(var o=arguments.length,_=new Array(o>1?o-1:0),U=1;U<o;U++)_[U-1]=arguments[U];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(me=>{let[Le,Re]=me;for(let je=0;je<Re;je++)Le(..._)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(me=>{let[Le,Re]=me;for(let je=0;je<Re;je++)Le.apply(Le,[e,..._])})}}class dj extends _D{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const o=this.options.ns.indexOf(e);o>-1&&this.options.ns.splice(o,1)}getResource(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const te=U.keySeparator!==void 0?U.keySeparator:this.options.keySeparator,me=U.ignoreJSONStructure!==void 0?U.ignoreJSONStructure:this.options.ignoreJSONStructure;let Le;e.indexOf(".")>-1?Le=e.split("."):(Le=[e,o],_&&(Array.isArray(_)?Le.push(..._):yc(_)&&te?Le.push(..._.split(te)):Le.push(_)));const Re=TI(this.data,Le);return!Re&&!o&&!_&&e.indexOf(".")>-1&&(e=Le[0],o=Le[1],_=Le.slice(2).join(".")),Re||!me||!yc(_)?Re:jN(this.data?.[e]?.[o],_,te)}addResource(e,o,_,U){let te=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const me=te.keySeparator!==void 0?te.keySeparator:this.options.keySeparator;let Le=[e,o];_&&(Le=Le.concat(me?_.split(me):_)),e.indexOf(".")>-1&&(Le=e.split("."),U=o,o=Le[1]),this.addNamespaces(o),hj(this.data,Le,U),te.silent||this.emit("added",e,o,_,U)}addResources(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const te in _)(yc(_[te])||Array.isArray(_[te]))&&this.addResource(e,o,te,_[te],{silent:!0});U.silent||this.emit("added",e,o,_)}addResourceBundle(e,o,_,U,te){let me=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},Le=[e,o];e.indexOf(".")>-1&&(Le=e.split("."),U=_,_=o,o=Le[1]),this.addNamespaces(o);let Re=TI(this.data,Le)||{};me.skipCopy||(_=JSON.parse(JSON.stringify(_))),U?xG(Re,_,te):Re={...Re,..._},hj(this.data,Le,Re),me.silent||this.emit("added",e,o,_)}removeResourceBundle(e,o){this.hasResourceBundle(e,o)&&delete this.data[e][o],this.removeNamespaces(o),this.emit("removed",e,o)}hasResourceBundle(e,o){return this.getResource(e,o)!==void 0}getResourceBundle(e,o){return o||(o=this.options.defaultNS),this.getResource(e,o)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const o=this.getDataByLanguage(e);return!!(o&&Object.keys(o)||[]).find(U=>o[U]&&Object.keys(o[U]).length>0)}toJSON(){return this.data}}var bG={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,o,_,U){return t.forEach(te=>{e=this.processors[te]?.process(e,o,_,U)??e}),e}};const pj={},vj=t=>!yc(t)&&typeof t!="boolean"&&typeof t!="number";class EI extends _D{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Sse(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Bb.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,o)?.res!==void 0}extractFromKey(e,o){let _=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;_===void 0&&(_=":");const U=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let te=o.ns||this.options.defaultNS||[];const me=_&&e.indexOf(_)>-1,Le=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Ise(e,_,U);if(me&&!Le){const Re=e.match(this.interpolator.nestingRegexp);if(Re&&Re.length>0)return{key:e,namespaces:yc(te)?[te]:te};const je=e.split(_);(_!==U||_===U&&this.options.ns.indexOf(je[0])>-1)&&(te=je.shift()),e=je.join(U)}return{key:e,namespaces:yc(te)?[te]:te}}translate(e,o,_){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const U=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,te=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:me,namespaces:Le}=this.extractFromKey(e[e.length-1],o),Re=Le[Le.length-1],je=o.lng||this.language,Qe=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(je?.toLowerCase()==="cimode"){if(Qe){const Ln=o.nsSeparator||this.options.nsSeparator;return U?{res:`${Re}${Ln}${me}`,usedKey:me,exactUsedKey:me,usedLng:je,usedNS:Re,usedParams:this.getUsedParamsDetails(o)}:`${Re}${Ln}${me}`}return U?{res:me,usedKey:me,exactUsedKey:me,usedLng:je,usedNS:Re,usedParams:this.getUsedParamsDetails(o)}:me}const nt=this.resolve(e,o);let yt=nt?.res;const Wt=nt?.usedKey||me,Bt=nt?.exactUsedKey||me,rr=["[object Number]","[object Function]","[object RegExp]"],Nt=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,Se=!this.i18nFormat||this.i18nFormat.handleAsObject,lr=o.count!==void 0&&!yc(o.count),Zt=EI.hasDefaultValue(o),$t=lr?this.pluralResolver.getSuffix(je,o.count,o):"",kt=o.ordinal&&lr?this.pluralResolver.getSuffix(je,o.count,{ordinal:!1}):"",Jt=lr&&!o.ordinal&&o.count===0,Ur=Jt&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${$t}`]||o[`defaultValue${kt}`]||o.defaultValue;let Lr=yt;Se&&!yt&&Zt&&(Lr=Ur);const xn=vj(Lr),In=Object.prototype.toString.apply(Lr);if(Se&&Lr&&xn&&rr.indexOf(In)<0&&!(yc(Nt)&&Array.isArray(Lr))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ln=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Wt,Lr,{...o,ns:Le}):`key '${me} (${this.language})' returned an object instead of string.`;return U?(nt.res=Ln,nt.usedParams=this.getUsedParamsDetails(o),nt):Ln}if(te){const Ln=Array.isArray(Lr),ci=Ln?[]:{},Zn=Ln?Bt:Wt;for(const ai in Lr)if(Object.prototype.hasOwnProperty.call(Lr,ai)){const ua=`${Zn}${te}${ai}`;Zt&&!yt?ci[ai]=this.translate(ua,{...o,defaultValue:vj(Ur)?Ur[ai]:void 0,joinArrays:!1,ns:Le}):ci[ai]=this.translate(ua,{...o,joinArrays:!1,ns:Le}),ci[ai]===ua&&(ci[ai]=Lr[ai])}yt=ci}}else if(Se&&yc(Nt)&&Array.isArray(yt))yt=yt.join(Nt),yt&&(yt=this.extendTranslation(yt,e,o,_));else{let Ln=!1,ci=!1;!this.isValidLookup(yt)&&Zt&&(Ln=!0,yt=Ur),this.isValidLookup(yt)||(ci=!0,yt=me);const ai=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ci?void 0:yt,ua=Zt&&Ur!==yt&&this.options.updateMissing;if(ci||Ln||ua){if(this.logger.log(ua?"updateKey":"missingKey",je,Re,me,ua?Ur:yt),te){const Qn=this.resolve(me,{...o,keySeparator:!1});Qn&&Qn.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Qi=[];const ta=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ta&&ta[0])for(let Qn=0;Qn<ta.length;Qn++)Qi.push(ta[Qn]);else this.options.saveMissingTo==="all"?Qi=this.languageUtils.toResolveHierarchy(o.lng||this.language):Qi.push(o.lng||this.language);const Nn=(Qn,Ai,Mn)=>{const Yn=Zt&&Mn!==yt?Mn:ai;this.options.missingKeyHandler?this.options.missingKeyHandler(Qn,Re,Ai,Yn,ua,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Qn,Re,Ai,Yn,ua,o),this.emit("missingKey",Qn,Re,Ai,yt)};this.options.saveMissing&&(this.options.saveMissingPlurals&&lr?Qi.forEach(Qn=>{const Ai=this.pluralResolver.getSuffixes(Qn,o);Jt&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Ai.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ai.push(`${this.options.pluralSeparator}zero`),Ai.forEach(Mn=>{Nn([Qn],me+Mn,o[`defaultValue${Mn}`]||Ur)})}):Nn(Qi,me,Ur))}yt=this.extendTranslation(yt,e,o,nt,_),ci&&yt===me&&this.options.appendNamespaceToMissingKey&&(yt=`${Re}:${me}`),(ci||Ln)&&this.options.parseMissingKeyHandler&&(yt=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${Re}:${me}`:me,Ln?yt:void 0))}return U?(nt.res=yt,nt.usedParams=this.getUsedParamsDetails(o),nt):yt}extendTranslation(e,o,_,U,te){var me=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,..._},_.lng||this.language||U.usedLng,U.usedNS,U.usedKey,{resolved:U});else if(!_.skipInterpolation){_.interpolation&&this.interpolator.init({..._,interpolation:{...this.options.interpolation,..._.interpolation}});const je=yc(e)&&(_?.interpolation?.skipOnVariables!==void 0?_.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Qe;if(je){const yt=e.match(this.interpolator.nestingRegexp);Qe=yt&&yt.length}let nt=_.replace&&!yc(_.replace)?_.replace:_;if(this.options.interpolation.defaultVariables&&(nt={...this.options.interpolation.defaultVariables,...nt}),e=this.interpolator.interpolate(e,nt,_.lng||this.language||U.usedLng,_),je){const yt=e.match(this.interpolator.nestingRegexp),Wt=yt&&yt.length;Qe<Wt&&(_.nest=!1)}!_.lng&&U&&U.res&&(_.lng=this.language||U.usedLng),_.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var yt=arguments.length,Wt=new Array(yt),Bt=0;Bt<yt;Bt++)Wt[Bt]=arguments[Bt];return te?.[0]===Wt[0]&&!_.context?(me.logger.warn(`It seems you are nesting recursively key: ${Wt[0]} in key: ${o[0]}`),null):me.translate(...Wt,o)},_)),_.interpolation&&this.interpolator.reset()}const Le=_.postProcess||this.options.postProcess,Re=yc(Le)?[Le]:Le;return e!=null&&Re?.length&&_.applyPostProcessor!==!1&&(e=bG.handle(Re,e,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...U,usedParams:this.getUsedParamsDetails(_)},..._}:_,this)),e}resolve(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_,U,te,me,Le;return yc(e)&&(e=[e]),e.forEach(Re=>{if(this.isValidLookup(_))return;const je=this.extractFromKey(Re,o),Qe=je.key;U=Qe;let nt=je.namespaces;this.options.fallbackNS&&(nt=nt.concat(this.options.fallbackNS));const yt=o.count!==void 0&&!yc(o.count),Wt=yt&&!o.ordinal&&o.count===0,Bt=o.context!==void 0&&(yc(o.context)||typeof o.context=="number")&&o.context!=="",rr=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);nt.forEach(Nt=>{this.isValidLookup(_)||(Le=Nt,!pj[`${rr[0]}-${Nt}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(Le)&&(pj[`${rr[0]}-${Nt}`]=!0,this.logger.warn(`key "${U}" for languages "${rr.join(", ")}" won't get resolved as namespace "${Le}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),rr.forEach(Se=>{if(this.isValidLookup(_))return;me=Se;const lr=[Qe];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(lr,Qe,Se,Nt,o);else{let $t;yt&&($t=this.pluralResolver.getSuffix(Se,o.count,o));const kt=`${this.options.pluralSeparator}zero`,Jt=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(yt&&(lr.push(Qe+$t),o.ordinal&&$t.indexOf(Jt)===0&&lr.push(Qe+$t.replace(Jt,this.options.pluralSeparator)),Wt&&lr.push(Qe+kt)),Bt){const Ur=`${Qe}${this.options.contextSeparator}${o.context}`;lr.push(Ur),yt&&(lr.push(Ur+$t),o.ordinal&&$t.indexOf(Jt)===0&&lr.push(Ur+$t.replace(Jt,this.options.pluralSeparator)),Wt&&lr.push(Ur+kt))}}let Zt;for(;Zt=lr.pop();)this.isValidLookup(_)||(te=Zt,_=this.getResource(Se,Nt,Zt,o))}))})}),{res:_,usedKey:U,exactUsedKey:te,usedLng:me,usedNS:Le}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,o,_,U):this.resourceStore.getResource(e,o,_,U)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],_=e.replace&&!yc(e.replace);let U=_?e.replace:e;if(_&&typeof e.count<"u"&&(U.count=e.count),this.options.interpolation.defaultVariables&&(U={...this.options.interpolation.defaultVariables,...U}),!_){U={...U};for(const te of o)delete U[te]}return U}static hasDefaultValue(e){const o="defaultValue";for(const _ in e)if(Object.prototype.hasOwnProperty.call(e,_)&&o===_.substring(0,o.length)&&e[_]!==void 0)return!0;return!1}}class mj{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Bb.create("languageUtils")}getScriptPartFromCode(e){if(e=SI(e),!e||e.indexOf("-")<0)return null;const o=e.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(e){if(e=SI(e),!e||e.indexOf("-")<0)return e;const o=e.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(e){if(yc(e)&&e.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(e)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let o;return e.forEach(_=>{if(o)return;const U=this.formatLanguageCode(_);(!this.options.supportedLngs||this.isSupportedCode(U))&&(o=U)}),!o&&this.options.supportedLngs&&e.forEach(_=>{if(o)return;const U=this.getLanguagePartFromCode(_);if(this.isSupportedCode(U))return o=U;o=this.options.supportedLngs.find(te=>{if(te===U)return te;if(!(te.indexOf("-")<0&&U.indexOf("-")<0)&&(te.indexOf("-")>0&&U.indexOf("-")<0&&te.substring(0,te.indexOf("-"))===U||te.indexOf(U)===0&&U.length>1))return te})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(e,o){if(!e)return[];if(typeof e=="function"&&(e=e(o)),yc(e)&&(e=[e]),Array.isArray(e))return e;if(!o)return e.default||[];let _=e[o];return _||(_=e[this.getScriptPartFromCode(o)]),_||(_=e[this.formatLanguageCode(o)]),_||(_=e[this.getLanguagePartFromCode(o)]),_||(_=e.default),_||[]}toResolveHierarchy(e,o){const _=this.getFallbackCodes(o||this.options.fallbackLng||[],e),U=[],te=me=>{me&&(this.isSupportedCode(me)?U.push(me):this.logger.warn(`rejecting language code not found in supportedLngs: ${me}`))};return yc(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&te(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&te(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&te(this.getLanguagePartFromCode(e))):yc(e)&&te(this.formatLanguageCode(e)),_.forEach(me=>{U.indexOf(me)<0&&te(this.formatLanguageCode(me))}),U}}const gj={zero:0,one:1,two:2,few:3,many:4,other:5},yj={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ose{constructor(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=o,this.logger=Bb.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,o){this.rules[e]=o}clearCache(){this.pluralRulesCache={}}getRule(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=SI(e==="dev"?"en":e),U=o.ordinal?"ordinal":"cardinal",te=JSON.stringify({cleanedCode:_,type:U});if(te in this.pluralRulesCache)return this.pluralRulesCache[te];let me;try{me=new Intl.PluralRules(_,{type:U})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),yj;if(!e.match(/-|_/))return yj;const Re=this.languageUtils.getLanguagePartFromCode(e);me=this.getRule(Re,o)}return this.pluralRulesCache[te]=me,me}needsPlural(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=this.getRule(e,o);return _||(_=this.getRule("dev",o)),_?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,_).map(U=>`${o}${U}`)}getSuffixes(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=this.getRule(e,o);return _||(_=this.getRule("dev",o)),_?_.resolvedOptions().pluralCategories.sort((U,te)=>gj[U]-gj[te]).map(U=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${U}`):[]}getSuffix(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const U=this.getRule(e,_);return U?`${this.options.prepend}${_.ordinal?`ordinal${this.options.prepend}`:""}${U.select(o)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",o,_))}}const _j=function(t,e,o){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",U=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,te=Cse(t,e,o);return!te&&U&&yc(o)&&(te=jN(t,o,_),te===void 0&&(te=jN(e,o,_))),te},Mz=t=>t.replace(/\$/g,"$$$$");class zse{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bb.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(o=>o),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:o,escapeValue:_,useRawValueToEscape:U,prefix:te,prefixEscaped:me,suffix:Le,suffixEscaped:Re,formatSeparator:je,unescapeSuffix:Qe,unescapePrefix:nt,nestingPrefix:yt,nestingPrefixEscaped:Wt,nestingSuffix:Bt,nestingSuffixEscaped:rr,nestingOptionsSeparator:Nt,maxReplaces:Se,alwaysFormat:lr}=e.interpolation;this.escape=o!==void 0?o:kse,this.escapeValue=_!==void 0?_:!0,this.useRawValueToEscape=U!==void 0?U:!1,this.prefix=te?YC(te):me||"{{",this.suffix=Le?YC(Le):Re||"}}",this.formatSeparator=je||",",this.unescapePrefix=Qe?"":nt||"-",this.unescapeSuffix=this.unescapePrefix?"":Qe||"",this.nestingPrefix=yt?YC(yt):Wt||YC("$t("),this.nestingSuffix=Bt?YC(Bt):rr||YC(")"),this.nestingOptionsSeparator=Nt||",",this.maxReplaces=Se||1e3,this.alwaysFormat=lr!==void 0?lr:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(o,_)=>o?.source===_?(o.lastIndex=0,o):new RegExp(_,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,o,_,U){let te,me,Le;const Re=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},je=Wt=>{if(Wt.indexOf(this.formatSeparator)<0){const Se=_j(o,Re,Wt,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Se,void 0,_,{...U,...o,interpolationkey:Wt}):Se}const Bt=Wt.split(this.formatSeparator),rr=Bt.shift().trim(),Nt=Bt.join(this.formatSeparator).trim();return this.format(_j(o,Re,rr,this.options.keySeparator,this.options.ignoreJSONStructure),Nt,_,{...U,...o,interpolationkey:rr})};this.resetRegExp();const Qe=U?.missingInterpolationHandler||this.options.missingInterpolationHandler,nt=U?.interpolation?.skipOnVariables!==void 0?U.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Wt=>Mz(Wt)},{regex:this.regexp,safeValue:Wt=>this.escapeValue?Mz(this.escape(Wt)):Mz(Wt)}].forEach(Wt=>{for(Le=0;te=Wt.regex.exec(e);){const Bt=te[1].trim();if(me=je(Bt),me===void 0)if(typeof Qe=="function"){const Nt=Qe(e,te,U);me=yc(Nt)?Nt:""}else if(U&&Object.prototype.hasOwnProperty.call(U,Bt))me="";else if(nt){me=te[0];continue}else this.logger.warn(`missed to pass in variable ${Bt} for interpolating ${e}`),me="";else!yc(me)&&!this.useRawValueToEscape&&(me=uj(me));const rr=Wt.safeValue(me);if(e=e.replace(te[0],rr),nt?(Wt.regex.lastIndex+=me.length,Wt.regex.lastIndex-=te[0].length):Wt.regex.lastIndex=0,Le++,Le>=this.maxReplaces)break}}),e}nest(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U,te,me;const Le=(Re,je)=>{const Qe=this.nestingOptionsSeparator;if(Re.indexOf(Qe)<0)return Re;const nt=Re.split(new RegExp(`${Qe}[ ]*{`));let yt=`{${nt[1]}`;Re=nt[0],yt=this.interpolate(yt,me);const Wt=yt.match(/'/g),Bt=yt.match(/"/g);((Wt?.length??0)%2===0&&!Bt||Bt.length%2!==0)&&(yt=yt.replace(/'/g,'"'));try{me=JSON.parse(yt),je&&(me={...je,...me})}catch(rr){return this.logger.warn(`failed parsing options string in nesting for key ${Re}`,rr),`${Re}${Qe}${yt}`}return me.defaultValue&&me.defaultValue.indexOf(this.prefix)>-1&&delete me.defaultValue,Re};for(;U=this.nestingRegexp.exec(e);){let Re=[];me={..._},me=me.replace&&!yc(me.replace)?me.replace:me,me.applyPostProcessor=!1,delete me.defaultValue;let je=!1;if(U[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(U[1])){const Qe=U[1].split(this.formatSeparator).map(nt=>nt.trim());U[1]=Qe.shift(),Re=Qe,je=!0}if(te=o(Le.call(this,U[1].trim(),me),me),te&&U[0]===e&&!yc(te))return te;yc(te)||(te=uj(te)),te||(this.logger.warn(`missed to resolve ${U[1]} for nesting ${e}`),te=""),je&&(te=Re.reduce((Qe,nt)=>this.format(Qe,nt,_.lng,{..._,interpolationkey:U[1].trim()}),te.trim())),e=e.replace(U[0],te),this.regexp.lastIndex=0}return e}}const Nse=t=>{let e=t.toLowerCase().trim();const o={};if(t.indexOf("(")>-1){const _=t.split("(");e=_[0].toLowerCase().trim();const U=_[1].substring(0,_[1].length-1);e==="currency"&&U.indexOf(":")<0?o.currency||(o.currency=U.trim()):e==="relativetime"&&U.indexOf(":")<0?o.range||(o.range=U.trim()):U.split(";").forEach(me=>{if(me){const[Le,...Re]=me.split(":"),je=Re.join(":").trim().replace(/^'+|'+$/g,""),Qe=Le.trim();o[Qe]||(o[Qe]=je),je==="false"&&(o[Qe]=!1),je==="true"&&(o[Qe]=!0),isNaN(je)||(o[Qe]=parseInt(je,10))}})}return{formatName:e,formatOptions:o}},ZC=t=>{const e={};return(o,_,U)=>{let te=U;U&&U.interpolationkey&&U.formatParams&&U.formatParams[U.interpolationkey]&&U[U.interpolationkey]&&(te={...te,[U.interpolationkey]:void 0});const me=_+JSON.stringify(te);let Le=e[me];return Le||(Le=t(SI(_),U),e[me]=Le),Le(o)}};class Fse{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bb.create("formatter"),this.options=e,this.formats={number:ZC((o,_)=>{const U=new Intl.NumberFormat(o,{..._});return te=>U.format(te)}),currency:ZC((o,_)=>{const U=new Intl.NumberFormat(o,{..._,style:"currency"});return te=>U.format(te)}),datetime:ZC((o,_)=>{const U=new Intl.DateTimeFormat(o,{..._});return te=>U.format(te)}),relativetime:ZC((o,_)=>{const U=new Intl.RelativeTimeFormat(o,{..._});return te=>U.format(te,_.range||"day")}),list:ZC((o,_)=>{const U=new Intl.ListFormat(o,{..._});return te=>U.format(te)})},this.init(e)}init(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=o.interpolation.formatSeparator||","}add(e,o){this.formats[e.toLowerCase().trim()]=o}addCached(e,o){this.formats[e.toLowerCase().trim()]=ZC(o)}format(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const te=o.split(this.formatSeparator);if(te.length>1&&te[0].indexOf("(")>1&&te[0].indexOf(")")<0&&te.find(Le=>Le.indexOf(")")>-1)){const Le=te.findIndex(Re=>Re.indexOf(")")>-1);te[0]=[te[0],...te.splice(1,Le)].join(this.formatSeparator)}return te.reduce((Le,Re)=>{const{formatName:je,formatOptions:Qe}=Nse(Re);if(this.formats[je]){let nt=Le;try{const yt=U?.formatParams?.[U.interpolationkey]||{},Wt=yt.locale||yt.lng||U.locale||U.lng||_;nt=this.formats[je](Le,Wt,{...Qe,...U,...yt})}catch(yt){this.logger.warn(yt)}return nt}else this.logger.warn(`there was no format function for ${je}`);return Le},e)}}const Bse=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class Use extends _D{constructor(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=o,this.services=_,this.languageUtils=_.languageUtils,this.options=U,this.logger=Bb.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=U.maxParallelReads||10,this.readingCalls=0,this.maxRetries=U.maxRetries>=0?U.maxRetries:5,this.retryTimeout=U.retryTimeout>=1?U.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(_,U.backend,U)}queueLoad(e,o,_,U){const te={},me={},Le={},Re={};return e.forEach(je=>{let Qe=!0;o.forEach(nt=>{const yt=`${je}|${nt}`;!_.reload&&this.store.hasResourceBundle(je,nt)?this.state[yt]=2:this.state[yt]<0||(this.state[yt]===1?me[yt]===void 0&&(me[yt]=!0):(this.state[yt]=1,Qe=!1,me[yt]===void 0&&(me[yt]=!0),te[yt]===void 0&&(te[yt]=!0),Re[nt]===void 0&&(Re[nt]=!0)))}),Qe||(Le[je]=!0)}),(Object.keys(te).length||Object.keys(me).length)&&this.queue.push({pending:me,pendingCount:Object.keys(me).length,loaded:{},errors:[],callback:U}),{toLoad:Object.keys(te),pending:Object.keys(me),toLoadLanguages:Object.keys(Le),toLoadNamespaces:Object.keys(Re)}}loaded(e,o,_){const U=e.split("|"),te=U[0],me=U[1];o&&this.emit("failedLoading",te,me,o),!o&&_&&this.store.addResourceBundle(te,me,_,void 0,void 0,{skipCopy:!0}),this.state[e]=o?-1:2,o&&_&&(this.state[e]=0);const Le={};this.queue.forEach(Re=>{Ese(Re.loaded,[te],me),Bse(Re,e),o&&Re.errors.push(o),Re.pendingCount===0&&!Re.done&&(Object.keys(Re.loaded).forEach(je=>{Le[je]||(Le[je]={});const Qe=Re.loaded[je];Qe.length&&Qe.forEach(nt=>{Le[je][nt]===void 0&&(Le[je][nt]=!0)})}),Re.done=!0,Re.errors.length?Re.callback(Re.errors):Re.callback())}),this.emit("loaded",Le),this.queue=this.queue.filter(Re=>!Re.done)}read(e,o,_){let U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,te=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,me=arguments.length>5?arguments[5]:void 0;if(!e.length)return me(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:o,fcName:_,tried:U,wait:te,callback:me});return}this.readingCalls++;const Le=(je,Qe)=>{if(this.readingCalls--,this.waitingReads.length>0){const nt=this.waitingReads.shift();this.read(nt.lng,nt.ns,nt.fcName,nt.tried,nt.wait,nt.callback)}if(je&&Qe&&U<this.maxRetries){setTimeout(()=>{this.read.call(this,e,o,_,U+1,te*2,me)},te);return}me(je,Qe)},Re=this.backend[_].bind(this.backend);if(Re.length===2){try{const je=Re(e,o);je&&typeof je.then=="function"?je.then(Qe=>Le(null,Qe)).catch(Le):Le(null,je)}catch(je){Le(je)}return}return Re(e,o,Le)}prepareLoading(e,o){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),U&&U();yc(e)&&(e=this.languageUtils.toResolveHierarchy(e)),yc(o)&&(o=[o]);const te=this.queueLoad(e,o,_,U);if(!te.toLoad.length)return te.pending.length||U(),null;te.toLoad.forEach(me=>{this.loadOne(me)})}load(e,o,_){this.prepareLoading(e,o,{},_)}reload(e,o,_){this.prepareLoading(e,o,{reload:!0},_)}loadOne(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const _=e.split("|"),U=_[0],te=_[1];this.read(U,te,"read",void 0,void 0,(me,Le)=>{me&&this.logger.warn(`${o}loading namespace ${te} for language ${U} failed`,me),!me&&Le&&this.logger.log(`${o}loaded namespace ${te} for language ${U}`,Le),this.loaded(e,me,Le)})}saveMissing(e,o,_,U,te){let me=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},Le=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${_}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(_==null||_==="")){if(this.backend?.create){const Re={...me,isUpdate:te},je=this.backend.create.bind(this.backend);if(je.length<6)try{let Qe;je.length===5?Qe=je(e,o,_,U,Re):Qe=je(e,o,_,U),Qe&&typeof Qe.then=="function"?Qe.then(nt=>Le(null,nt)).catch(Le):Le(null,Qe)}catch(Qe){Le(Qe)}else je(e,o,_,U,Le,Re)}!e||!e[0]||this.store.addResource(e[0],o,_,U)}}}const xj=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),yc(t[1])&&(e.defaultValue=t[1]),yc(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const o=t[3]||t[2];Object.keys(o).forEach(_=>{e[_]=o[_]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),bj=t=>(yc(t.ns)&&(t.ns=[t.ns]),yc(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),yc(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),k6=()=>{},jse=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(o=>{typeof t[o]=="function"&&(t[o]=t[o].bind(t))})};class dL extends _D{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=bj(e),this.services={},this.logger=Bb,this.modules={external:[]},jse(this),o&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,o),this;setTimeout(()=>{this.init(e,o)},0)}}init(){var e=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof o=="function"&&(_=o,o={}),o.defaultNS==null&&o.ns&&(yc(o.ns)?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const U=xj();this.options={...U,...this.options,...bj(o)},this.options.interpolation={...U.interpolation,...this.options.interpolation},o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);const te=Qe=>Qe?typeof Qe=="function"?new Qe:Qe:null;if(!this.options.isClone){this.modules.logger?Bb.init(te(this.modules.logger),this.options):Bb.init(null,this.options);let Qe;this.modules.formatter?Qe=this.modules.formatter:Qe=Fse;const nt=new mj(this.options);this.store=new dj(this.options.resources,this.options);const yt=this.services;yt.logger=Bb,yt.resourceStore=this.store,yt.languageUtils=nt,yt.pluralResolver=new Ose(nt,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Qe&&(!this.options.interpolation.format||this.options.interpolation.format===U.interpolation.format)&&(yt.formatter=te(Qe),yt.formatter.init(yt,this.options),this.options.interpolation.format=yt.formatter.format.bind(yt.formatter)),yt.interpolator=new zse(this.options),yt.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},yt.backendConnector=new Use(te(this.modules.backend),yt.resourceStore,yt,this.options),yt.backendConnector.on("*",function(Wt){for(var Bt=arguments.length,rr=new Array(Bt>1?Bt-1:0),Nt=1;Nt<Bt;Nt++)rr[Nt-1]=arguments[Nt];e.emit(Wt,...rr)}),this.modules.languageDetector&&(yt.languageDetector=te(this.modules.languageDetector),yt.languageDetector.init&&yt.languageDetector.init(yt,this.options.detection,this.options)),this.modules.i18nFormat&&(yt.i18nFormat=te(this.modules.i18nFormat),yt.i18nFormat.init&&yt.i18nFormat.init(this)),this.translator=new EI(this.services,this.options),this.translator.on("*",function(Wt){for(var Bt=arguments.length,rr=new Array(Bt>1?Bt-1:0),Nt=1;Nt<Bt;Nt++)rr[Nt-1]=arguments[Nt];e.emit(Wt,...rr)}),this.modules.external.forEach(Wt=>{Wt.init&&Wt.init(this)})}if(this.format=this.options.interpolation.format,_||(_=k6),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Qe=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Qe.length>0&&Qe[0]!=="dev"&&(this.options.lng=Qe[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(Qe=>{this[Qe]=function(){return e.store[Qe](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Qe=>{this[Qe]=function(){return e.store[Qe](...arguments),e}});const Re=z5(),je=()=>{const Qe=(nt,yt)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),Re.resolve(yt),_(nt,yt)};if(this.languages&&!this.isInitialized)return Qe(null,this.t.bind(this));this.changeLanguage(this.options.lng,Qe)};return this.options.resources||!this.options.initAsync?je():setTimeout(je,0),Re}loadResources(e){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k6;const U=yc(e)?e:this.language;if(typeof e=="function"&&(_=e),!this.options.resources||this.options.partialBundledLanguages){if(U?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return _();const te=[],me=Le=>{if(!Le||Le==="cimode")return;this.services.languageUtils.toResolveHierarchy(Le).forEach(je=>{je!=="cimode"&&te.indexOf(je)<0&&te.push(je)})};U?me(U):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(Re=>me(Re)),this.options.preload?.forEach?.(Le=>me(Le)),this.services.backendConnector.load(te,this.options.ns,Le=>{!Le&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),_(Le)})}else _(null)}reloadResources(e,o,_){const U=z5();return typeof e=="function"&&(_=e,e=void 0),typeof o=="function"&&(_=o,o=void 0),e||(e=this.languages),o||(o=this.options.ns),_||(_=k6),this.services.backendConnector.reload(e,o,te=>{U.resolve(),_(te)}),U}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&bG.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let o=0;o<this.languages.length;o++){const _=this.languages[o];if(!(["cimode","dev"].indexOf(_)>-1)&&this.store.hasLanguageSomeTranslations(_)){this.resolvedLanguage=_;break}}}changeLanguage(e,o){var _=this;this.isLanguageChangingTo=e;const U=z5();this.emit("languageChanging",e);const te=Re=>{this.language=Re,this.languages=this.services.languageUtils.toResolveHierarchy(Re),this.resolvedLanguage=void 0,this.setResolvedLanguage(Re)},me=(Re,je)=>{je?(te(je),this.translator.changeLanguage(je),this.isLanguageChangingTo=void 0,this.emit("languageChanged",je),this.logger.log("languageChanged",je)):this.isLanguageChangingTo=void 0,U.resolve(function(){return _.t(...arguments)}),o&&o(Re,function(){return _.t(...arguments)})},Le=Re=>{!e&&!Re&&this.services.languageDetector&&(Re=[]);const je=yc(Re)?Re:this.services.languageUtils.getBestMatchFromCodes(Re);je&&(this.language||te(je),this.translator.language||this.translator.changeLanguage(je),this.services.languageDetector?.cacheUserLanguage?.(je)),this.loadResources(je,Qe=>{me(Qe,je)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?Le(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(Le):this.services.languageDetector.detect(Le):Le(e),U}getFixedT(e,o,_){var U=this;const te=function(me,Le){let Re;if(typeof Le!="object"){for(var je=arguments.length,Qe=new Array(je>2?je-2:0),nt=2;nt<je;nt++)Qe[nt-2]=arguments[nt];Re=U.options.overloadTranslationOptionHandler([me,Le].concat(Qe))}else Re={...Le};Re.lng=Re.lng||te.lng,Re.lngs=Re.lngs||te.lngs,Re.ns=Re.ns||te.ns,Re.keyPrefix!==""&&(Re.keyPrefix=Re.keyPrefix||_||te.keyPrefix);const yt=U.options.keySeparator||".";let Wt;return Re.keyPrefix&&Array.isArray(me)?Wt=me.map(Bt=>`${Re.keyPrefix}${yt}${Bt}`):Wt=Re.keyPrefix?`${Re.keyPrefix}${yt}${me}`:me,U.t(Wt,Re)};return yc(e)?te.lng=e:te.lngs=e,te.ns=o,te.keyPrefix=_,te}t(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.translator?.translate(...o)}exists(){for(var e=arguments.length,o=new Array(e),_=0;_<e;_++)o[_]=arguments[_];return this.translator?.exists(...o)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const _=o.lng||this.resolvedLanguage||this.languages[0],U=this.options?this.options.fallbackLng:!1,te=this.languages[this.languages.length-1];if(_.toLowerCase()==="cimode")return!0;const me=(Le,Re)=>{const je=this.services.backendConnector.state[`${Le}|${Re}`];return je===-1||je===0||je===2};if(o.precheck){const Le=o.precheck(this,me);if(Le!==void 0)return Le}return!!(this.hasResourceBundle(_,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||me(_,e)&&(!U||me(te,e)))}loadNamespaces(e,o){const _=z5();return this.options.ns?(yc(e)&&(e=[e]),e.forEach(U=>{this.options.ns.indexOf(U)<0&&this.options.ns.push(U)}),this.loadResources(U=>{_.resolve(),o&&o(U)}),_):(o&&o(),Promise.resolve())}loadLanguages(e,o){const _=z5();yc(e)&&(e=[e]);const U=this.options.preload||[],te=e.filter(me=>U.indexOf(me)<0&&this.services.languageUtils.isSupportedCode(me));return te.length?(this.options.preload=U.concat(te),this.loadResources(me=>{_.resolve(),o&&o(me)}),_):(o&&o(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],_=this.services?.languageUtils||new mj(xj());return o.indexOf(_.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new dL(e,o)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k6;const _=e.forkResourceStore;_&&delete e.forkResourceStore;const U={...this.options,...e,isClone:!0},te=new dL(U);if((e.debug!==void 0||e.prefix!==void 0)&&(te.logger=te.logger.clone(e)),["store","services","language"].forEach(Le=>{te[Le]=this[Le]}),te.services={...this.services},te.services.utils={hasLoadedNamespace:te.hasLoadedNamespace.bind(te)},_){const Le=Object.keys(this.store.data).reduce((Re,je)=>(Re[je]={...this.store.data[je]},Object.keys(Re[je]).reduce((Qe,nt)=>(Qe[nt]={...Re[je][nt]},Qe),{})),{});te.store=new dj(Le,U),te.services.resourceStore=te.store}return te.translator=new EI(te.services,U),te.translator.on("*",function(Le){for(var Re=arguments.length,je=new Array(Re>1?Re-1:0),Qe=1;Qe<Re;Qe++)je[Qe-1]=arguments[Qe];te.emit(Le,...je)}),te.init(U,o),te.translator.options=U,te.translator.backendConnector.services.utils={hasLoadedNamespace:te.hasLoadedNamespace.bind(te)},te}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const zm=dL.createInstance();zm.createInstance=dL.createInstance;zm.createInstance;zm.dir;zm.init;zm.loadResources;zm.reloadResources;zm.use;zm.changeLanguage;zm.getFixedT;zm.t;zm.exists;zm.setDefaultNamespace;zm.hasLoadedNamespace;zm.loadNamespaces;zm.loadLanguages;function VN(t){"@babel/helpers - typeof";return VN=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VN(t)}function wG(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":VN(XMLHttpRequest))==="object"}function Vse(t){return!!t&&typeof t.then=="function"}function qse(t){return Vse(t)?t:Promise.resolve(t)}const Hse="modulepreload",Gse=function(t){return"/"+t},wj={},qN=function(e,o,_){let U=Promise.resolve();if(o&&o.length>0){let Re=function(je){return Promise.all(je.map(Qe=>Promise.resolve(Qe).then(nt=>({status:"fulfilled",value:nt}),nt=>({status:"rejected",reason:nt}))))};document.getElementsByTagName("link");const me=document.querySelector("meta[property=csp-nonce]"),Le=me?.nonce||me?.getAttribute("nonce");U=Re(o.map(je=>{if(je=Gse(je),je in wj)return;wj[je]=!0;const Qe=je.endsWith(".css"),nt=Qe?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${je}"]${nt}`))return;const yt=document.createElement("link");if(yt.rel=Qe?"stylesheet":Hse,Qe||(yt.as="script"),yt.crossOrigin="",yt.href=je,Le&&yt.setAttribute("nonce",Le),document.head.appendChild(yt),Qe)return new Promise((Wt,Bt)=>{yt.addEventListener("load",Wt),yt.addEventListener("error",()=>Bt(new Error(`Unable to preload CSS for ${je}`)))})}))}function te(me){const Le=new Event("vite:preloadError",{cancelable:!0});if(Le.payload=me,window.dispatchEvent(Le),!Le.defaultPrevented)throw me}return U.then(me=>{for(const Le of me||[])Le.status==="rejected"&&te(Le.reason);return e().catch(te)})};var y0={};function Tj(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);e&&(_=_.filter(function(U){return Object.getOwnPropertyDescriptor(t,U).enumerable})),o.push.apply(o,_)}return o}function Sj(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Tj(Object(o),!0).forEach(function(_){Wse(t,_,o[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Tj(Object(o)).forEach(function(_){Object.defineProperty(t,_,Object.getOwnPropertyDescriptor(o,_))})}return t}function Wse(t,e,o){return(e=$se(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function $se(t){var e=Xse(t,"string");return D3(e)=="symbol"?e:e+""}function Xse(t,e){if(D3(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var _=o.call(t,e);if(D3(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function D3(t){"@babel/helpers - typeof";return D3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D3(t)}var OS=typeof fetch=="function"?fetch:void 0;typeof y0<"u"&&y0.fetch?OS=y0.fetch:typeof window<"u"&&window.fetch&&(OS=window.fetch);var pL;wG()&&(typeof y0<"u"&&y0.XMLHttpRequest?pL=y0.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(pL=window.XMLHttpRequest));var CI;typeof ActiveXObject=="function"&&(typeof y0<"u"&&y0.ActiveXObject?CI=y0.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(CI=window.ActiveXObject));typeof OS!="function"&&(OS=void 0);if(!OS&&!pL&&!CI)try{qN(()=>import("./browser-ponyfill-B-CPdmQc.js").then(t=>t.b),[]).then(function(t){OS=t.default}).catch(function(){})}catch{}var HN=function(e,o){if(o&&D3(o)==="object"){var _="";for(var U in o)_+="&"+encodeURIComponent(U)+"="+encodeURIComponent(o[U]);if(!_)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+_.slice(1)}return e},Aj=function(e,o,_,U){var te=function(Re){if(!Re.ok)return _(Re.statusText||"Error",{status:Re.status});Re.text().then(function(je){_(null,{status:Re.status,data:je})}).catch(_)};if(U){var me=U(e,o);if(me instanceof Promise){me.then(te).catch(_);return}}typeof fetch=="function"?fetch(e,o).then(te).catch(_):OS(e,o).then(te).catch(_)},Ej=!1,Yse=function(e,o,_,U){e.queryStringParams&&(o=HN(o,e.queryStringParams));var te=Sj({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof y0<"u"&&typeof y0.process<"u"&&y0.process.versions&&y0.process.versions.node&&(te["User-Agent"]="i18next-http-backend (node/".concat(y0.process.version,"; ").concat(y0.process.platform," ").concat(y0.process.arch,")")),_&&(te["Content-Type"]="application/json");var me=typeof e.requestOptions=="function"?e.requestOptions(_):e.requestOptions,Le=Sj({method:_?"POST":"GET",body:_?e.stringify(_):void 0,headers:te},Ej?{}:me),Re=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Aj(o,Le,U,Re)}catch(je){if(!me||Object.keys(me).length===0||!je.message||je.message.indexOf("not implemented")<0)return U(je);try{Object.keys(me).forEach(function(Qe){delete Le[Qe]}),Aj(o,Le,U,Re),Ej=!0}catch(Qe){U(Qe)}}},Zse=function(e,o,_,U){_&&D3(_)==="object"&&(_=HN("",_).slice(1)),e.queryStringParams&&(o=HN(o,e.queryStringParams));try{var te=pL?new pL:new CI("MSXML2.XMLHTTP.3.0");te.open(_?"POST":"GET",o,1),e.crossDomain||te.setRequestHeader("X-Requested-With","XMLHttpRequest"),te.withCredentials=!!e.withCredentials,_&&te.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),te.overrideMimeType&&te.overrideMimeType("application/json");var me=e.customHeaders;if(me=typeof me=="function"?me():me,me)for(var Le in me)te.setRequestHeader(Le,me[Le]);te.onreadystatechange=function(){te.readyState>3&&U(te.status>=400?te.statusText:null,{status:te.status,data:te.responseText})},te.send(_)}catch(Re){console&&console.log(Re)}},Kse=function(e,o,_,U){if(typeof _=="function"&&(U=_,_=void 0),U=U||function(){},OS&&o.indexOf("file:")!==0)return Yse(e,o,_,U);if(wG()||typeof ActiveXObject=="function")return Zse(e,o,_,U);U(new Error("No fetch and no xhr implementation found!"))};function _M(t){"@babel/helpers - typeof";return _M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_M(t)}function Cj(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(t);e&&(_=_.filter(function(U){return Object.getOwnPropertyDescriptor(t,U).enumerable})),o.push.apply(o,_)}return o}function kz(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Cj(Object(o),!0).forEach(function(_){TG(t,_,o[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Cj(Object(o)).forEach(function(_){Object.defineProperty(t,_,Object.getOwnPropertyDescriptor(o,_))})}return t}function Jse(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qse(t,e){for(var o=0;o<e.length;o++){var _=e[o];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(t,SG(_.key),_)}}function ele(t,e,o){return e&&Qse(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function TG(t,e,o){return(e=SG(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function SG(t){var e=tle(t,"string");return _M(e)=="symbol"?e:e+""}function tle(t,e){if(_M(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var _=o.call(t,e);if(_M(_)!="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var rle=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(o){return JSON.parse(o)},stringify:JSON.stringify,parsePayload:function(o,_,U){return TG({},_,U||"")},parseLoadPayload:function(o,_){},request:Kse,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},GN=(function(){function t(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Jse(this,t),this.services=e,this.options=o,this.allOptions=_,this.type="backend",this.init(e,o,_)}return ele(t,[{key:"init",value:function(o){var _=this,U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=o,this.options=kz(kz(kz({},rle()),this.options||{}),U),this.allOptions=te,this.services&&this.options.reloadInterval){var me=setInterval(function(){return _.reload()},this.options.reloadInterval);_M(me)==="object"&&typeof me.unref=="function"&&me.unref()}}},{key:"readMulti",value:function(o,_,U){this._readAny(o,o,_,_,U)}},{key:"read",value:function(o,_,U){this._readAny([o],o,[_],_,U)}},{key:"_readAny",value:function(o,_,U,te,me){var Le=this,Re=this.options.loadPath;typeof this.options.loadPath=="function"&&(Re=this.options.loadPath(o,U)),Re=qse(Re),Re.then(function(je){if(!je)return me(null,{});var Qe=Le.services.interpolator.interpolate(je,{lng:o.join("+"),ns:U.join("+")});Le.loadUrl(Qe,me,_,te)})}},{key:"loadUrl",value:function(o,_,U,te){var me=this,Le=typeof U=="string"?[U]:U,Re=typeof te=="string"?[te]:te,je=this.options.parseLoadPayload(Le,Re);this.options.request(this.options,o,je,function(Qe,nt){if(nt&&(nt.status>=500&&nt.status<600||!nt.status))return _("failed loading "+o+"; status code: "+nt.status,!0);if(nt&&nt.status>=400&&nt.status<500)return _("failed loading "+o+"; status code: "+nt.status,!1);if(!nt&&Qe&&Qe.message){var yt=Qe.message.toLowerCase(),Wt=["failed","fetch","network","load"].find(function(Nt){return yt.indexOf(Nt)>-1});if(Wt)return _("failed loading "+o+": "+Qe.message,!0)}if(Qe)return _(Qe,!1);var Bt,rr;try{typeof nt.data=="string"?Bt=me.options.parse(nt.data,U,te):Bt=nt.data}catch{rr="failed parsing "+o+" to json"}if(rr)return _(rr,!1);_(null,Bt)})}},{key:"create",value:function(o,_,U,te,me){var Le=this;if(this.options.addPath){typeof o=="string"&&(o=[o]);var Re=this.options.parsePayload(_,U,te),je=0,Qe=[],nt=[];o.forEach(function(yt){var Wt=Le.options.addPath;typeof Le.options.addPath=="function"&&(Wt=Le.options.addPath(yt,_));var Bt=Le.services.interpolator.interpolate(Wt,{lng:yt,ns:_});Le.options.request(Le.options,Bt,Re,function(rr,Nt){je+=1,Qe.push(rr),nt.push(Nt),je===o.length&&typeof me=="function"&&me(Qe,nt)})})}}},{key:"reload",value:function(){var o=this,_=this.services,U=_.backendConnector,te=_.languageUtils,me=_.logger,Le=U.language;if(!(Le&&Le.toLowerCase()==="cimode")){var Re=[],je=function(nt){var yt=te.toResolveHierarchy(nt);yt.forEach(function(Wt){Re.indexOf(Wt)<0&&Re.push(Wt)})};je(Le),this.allOptions.preload&&this.allOptions.preload.forEach(function(Qe){return je(Qe)}),Re.forEach(function(Qe){o.allOptions.ns.forEach(function(nt){U.read(Qe,nt,"read",null,null,function(yt,Wt){yt&&me.warn("loading namespace ".concat(nt," for language ").concat(Qe," failed"),yt),!yt&&Wt&&me.log("loaded namespace ".concat(nt," for language ").concat(Qe),Wt),U.loaded("".concat(Qe,"|").concat(nt),yt,Wt)})})})}}}])})();GN.type="backend";const nle=async()=>{try{const o=(await(await fetch("/api/hardpy_config")).json()).frontend?.language??"en";await zm.use(GN).use(xU).init({lng:o,fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}}),console.log("i18n initialized with:",zm.language)}catch(t){console.error("Error initializing i18n:",t),await zm.use(GN).use(xU).init({lng:"en",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}}),console.log("i18n initialized with:",zm.language)}};nle();var CS={CENTER:"center",END:"end",LEFT:"left",RIGHT:"right",START:"start"},ile={ZERO:0},K0={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},KL={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Zl="bp5";typeof BLUEPRINT_NAMESPACE<"u"?Zl=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(Zl=REACT_APP_BLUEPRINT_NAMESPACE);var vL="".concat(Zl,"-active"),ale="".concat(Zl,"-align-left"),AG="".concat(Zl,"-align-right"),w4="".concat(Zl,"-compact"),WN="".concat(Zl,"-dark"),JL="".concat(Zl,"-disabled"),O3="".concat(Zl,"-fill"),ole="".concat(Zl,"-fixed-top"),sle="".concat(Zl,"-inline"),EG="".concat(Zl,"-interactive"),mL="".concat(Zl,"-large"),lle="".concat(Zl,"-loading"),gL="".concat(Zl,"-minimal"),Mj="".concat(Zl,"-outlined"),ule="".concat(Zl,"-read-only"),CG="".concat(Zl,"-round"),MG="".concat(Zl,"-selected"),MI="".concat(Zl,"-small"),cle="".concat(Zl,"-vertical");ED(KL.TOP);ED(KL.BOTTOM);ED(KL.LEFT);ED(KL.RIGHT);Fy(K0.PRIMARY);Fy(K0.SUCCESS);Fy(K0.WARNING);Fy(K0.DANGER);var fle="".concat(Zl,"-text-disabled"),hle="".concat(Zl,"-text-overflow-ellipsis"),dle="".concat(Zl,"-blockquote"),ple="".concat(Zl,"-code"),vle="".concat(Zl,"-code-block"),UM="".concat(Zl,"-heading"),kG="".concat(Zl,"-list"),xD="".concat(Zl,"-alert"),mle="".concat(xD,"-body"),gle="".concat(xD,"-contents"),yle="".concat(xD,"-footer"),bD="".concat(Zl,"-button"),_le="".concat(bD,"-spinner"),xle="".concat(bD,"-text"),T4="".concat(Zl,"-callout"),ble="".concat(T4,"-has-body-content"),wle="".concat(T4,"-icon"),Tle="".concat(Zl,"-card"),LG="".concat(Zl,"-collapse"),Sle="".concat(LG,"-body"),jM="".concat(Zl,"-dialog"),Ale="".concat(jM,"-container"),Ele="".concat(jM,"-header"),wD="".concat(jM,"-body"),Cle="".concat(jM,"-close-button"),Mle="".concat(jM,"-footer"),kle="".concat(Zl,"-divider"),PG="".concat(Zl,"-drawer"),Lle="".concat(PG,"-body"),Ple="".concat(PG,"-footer"),Rle="".concat(Zl,"-flex-expander"),TD="".concat(Zl,"-input"),Ile="".concat(TD,"-group"),Dle="".concat(TD,"-left-container"),Ole="".concat(TD,"-action"),RG="".concat(Zl,"-control"),IG="".concat(RG,"-indicator"),kj="".concat(IG,"-child"),zle="".concat(Zl,"-checkbox"),Nle="".concat(Zl,"-radio"),DG="".concat(Zl,"-switch"),Lj="".concat(DG,"-inner-text"),Fle="".concat(Zl,"-label"),OG="".concat(Zl,"-menu"),QL="".concat(OG,"-item"),Ble="".concat(QL,"-is-selectable"),Ule="".concat(QL,"-selected-icon"),jle="".concat(QL,"-icon"),Vle="".concat(QL,"-label"),$N="".concat(Zl,"-submenu"),qle="".concat($N,"-icon"),SD="".concat(Zl,"-navbar"),Hle="".concat(SD,"-group"),Gle="".concat(SD,"-heading"),Wle="".concat(SD,"-divider"),A2="".concat(Zl,"-overlay"),$le="".concat(A2,"-backdrop"),Xle="".concat(A2,"-content"),Yle="".concat(A2,"-inline"),yL="".concat(A2,"-open"),Zle="".concat(A2,"-scroll-container"),zG="".concat(A2,"-start-focus-trap"),NG="".concat(A2,"-end-focus-trap"),Fg="".concat(Zl,"-popover"),Lz="".concat(Fg,"-arrow"),Kle="".concat(Fg,"-backdrop"),Pz="".concat(Fg,"-capturing-dismiss"),Jle="".concat(Fg,"-content"),Qle="".concat(Fg,"-placement"),kI="".concat(Fg,"-dismiss"),eue="".concat(kI,"-override"),tue="".concat(Fg,"-match-target-width"),rue="".concat(Fg,"-open"),nue="".concat(Fg,"-popper-escaped"),iue="".concat(Fg,"-reference-hidden"),aue="".concat(Fg,"-target"),oue="".concat(Fg,"-transition-container"),sue="".concat(Zl,"-progress-bar"),lue="".concat(Zl,"-progress-meter"),uue="".concat(Zl,"-no-stripes"),cue="".concat(Zl,"-no-animation"),fue="".concat(Zl,"-portal"),Pj="".concat(Zl,"-skeleton"),AD="".concat(Zl,"-spinner"),hue="".concat(AD,"-animation"),due="".concat(AD,"-head"),pue="".concat(Zl,"-no-spin"),vue="".concat(AD,"-track"),E2="".concat(Zl,"-tab"),mue="".concat(E2,"-icon"),gue="".concat(E2,"-tag"),FG="".concat(E2,"-indicator"),yue="".concat(FG,"-wrapper"),_ue="".concat(E2,"-list"),S4="".concat(E2,"-panel"),xue="".concat(E2,"s"),BG="".concat(Zl,"-tag"),bue="".concat(BG,"-remove"),wue="".concat(Zl,"-tooltip"),A4="".concat(Zl,"-icon"),Tue="".concat(A4,"-standard"),Sue="".concat(A4,"-large");function E4(t){switch(t){case CS.LEFT:case CS.START:return ale;case CS.RIGHT:case CS.END:return AG;default:return}}function Aue(t){if(t!==void 0)return"".concat(Zl,"-elevation-").concat(t)}function Eue(t){if(t!=null)return t.indexOf("".concat(Zl,"-icon-"))===0?t:"".concat(Zl,"-icon-").concat(t)}function Fy(t){if(!(t==null||t===K0.NONE))return"".concat(Zl,"-intent-").concat(t.toLowerCase())}function ED(t){if(t!==void 0)return"".concat(Zl,"-position-").concat(t)}function VM(t,e){var o;if(t==="small")return MI;if(t==="large")return mL;var _=e.large,U=_===void 0?!1:_,te=e.small,me=te===void 0?!1:te;return o={},o[mL]=U,o[MI]=me,o}function Cue(t,e){var o;if(t==="outlined")return Mj;if(t==="minimal")return gL;var _=e.minimal,U=_===void 0?!1:_,te=e.outlined,me=te===void 0?!1:te;return o={},o[gL]=U,o[Mj]=me,o}const Mue={BLACK:"#111418",DARK_GRAY1:"#1C2127",DARK_GRAY2:"#252A31",DARK_GRAY3:"#2F343C",DARK_GRAY4:"#383E47",DARK_GRAY5:"#404854",GRAY1:"#5F6B7C",GRAY2:"#738091",GRAY3:"#8F99A8",GRAY4:"#ABB3BF",GRAY5:"#C5CBD3",LIGHT_GRAY1:"#D3D8DE",LIGHT_GRAY2:"#DCE0E5",LIGHT_GRAY3:"#E5E8EB",LIGHT_GRAY4:"#EDEFF2",LIGHT_GRAY5:"#F6F7F9",WHITE:"#FFFFFF"},kue={BLUE1:"#184A90",BLUE2:"#215DB0",BLUE3:"#2D72D2",BLUE4:"#4C90F0",BLUE5:"#8ABBFF",GREEN1:"#165A36",GREEN2:"#1C6E42",GREEN3:"#238551",GREEN4:"#32A467",GREEN5:"#72CA9B",ORANGE1:"#77450D",ORANGE2:"#935610",ORANGE3:"#C87619",ORANGE4:"#EC9A3C",ORANGE5:"#FBB360",RED1:"#8E292C",RED2:"#AC2F33",RED3:"#CD4246",RED4:"#E76A6E",RED5:"#FA999C"},Lue={CERULEAN1:"#0C5174",CERULEAN2:"#0F6894",CERULEAN3:"#147EB3",CERULEAN4:"#3FA6DA",CERULEAN5:"#68C1EE",FOREST1:"#1D7324",FOREST2:"#238C2C",FOREST3:"#29A634",FOREST4:"#43BF4D",FOREST5:"#62D96B",GOLD1:"#5C4405",GOLD2:"#866103",GOLD3:"#D1980B",GOLD4:"#F0B726",GOLD5:"#FBD065",INDIGO1:"#5642A6",INDIGO2:"#634DBF",INDIGO3:"#7961DB",INDIGO4:"#9881F3",INDIGO5:"#BDADFF",LIME1:"#43501B",LIME2:"#5A701A",LIME3:"#8EB125",LIME4:"#B6D94C",LIME5:"#D4F17E",ROSE1:"#A82255",ROSE2:"#C22762",ROSE3:"#DB2C6F",ROSE4:"#F5498B",ROSE5:"#FF66A1",SEPIA1:"#5E4123",SEPIA2:"#7A542E",SEPIA3:"#946638",SEPIA4:"#AF855A",SEPIA5:"#D0B090",TURQUOISE1:"#004D46",TURQUOISE2:"#007067",TURQUOISE3:"#00A396",TURQUOISE4:"#13C9BA",TURQUOISE5:"#7AE1D8",VERMILION1:"#96290D",VERMILION2:"#B83211",VERMILION3:"#D33D17",VERMILION4:"#EB6847",VERMILION5:"#FF9980",VIOLET1:"#5C255C",VIOLET2:"#7C327C",VIOLET3:"#9D3F9D",VIOLET4:"#BD6BBD",VIOLET5:"#D69FD6"},Rj={...Mue,...kue,...Lue};var XN=function(t,e){return XN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,_){o.__proto__=_}||function(o,_){for(var U in _)Object.prototype.hasOwnProperty.call(_,U)&&(o[U]=_[U])},XN(t,e)};function C_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");XN(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}var Ys=function(){return Ys=Object.assign||function(e){for(var o,_=1,U=arguments.length;_<U;_++){o=arguments[_];for(var te in o)Object.prototype.hasOwnProperty.call(o,te)&&(e[te]=o[te])}return e},Ys.apply(this,arguments)};function Wp(t,e){var o={};for(var _ in t)Object.prototype.hasOwnProperty.call(t,_)&&e.indexOf(_)<0&&(o[_]=t[_]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,_=Object.getOwnPropertySymbols(t);U<_.length;U++)e.indexOf(_[U])<0&&Object.prototype.propertyIsEnumerable.call(t,_[U])&&(o[_[U]]=t[_[U]]);return o}function Pue(t,e,o){return o===void 0&&(o=function(_,U){return _===U}),t==null&&e==null?!0:t==null||e==null||t.length!==e.length?!1:t.every(function(_,U){return o(_,e[U])})}function Rue(t,e,o){if(t==null&&e==null)return!0;if(t==null||e==null)return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(o!=null)return Rz(t,e,o);var _=Object.keys(t),U=Object.keys(e);return Rz(t,e,{include:_})&&Rz(t,e,{include:U})}function Rz(t,e,o){return Iue(t,e,o).every(function(_){return t.hasOwnProperty(_)===e.hasOwnProperty(_)&&t[_]===e[_]})}function Iue(t,e,o){if(Due(o))return o.include;if(Oue(o)){var _=Object.keys(t),U=Object.keys(e),te=zue(_.concat(U));return o.exclude.forEach(function(me){return delete te[me]}),Object.keys(te)}return[]}function Due(t){return t!=null&&t.include!=null}function Oue(t){return t!=null&&t.exclude!=null}function zue(t){return t.reduce(function(e,o){return e[o]=!0,e},{})}function UG(){return typeof window<"u"&&window.document!=null}function Nue(t,e){return t===e||t.contains(e)}function Fue(t){if(t==null||t.closest==null)return!1;var e=t.closest("input, textarea, [contenteditable=true]");if(e==null)return!1;if(e.tagName.toLowerCase()==="input"){var o=e.type;if(o==="checkbox"||o==="radio")return!1}return!e.readOnly}function YN(t,e){var o,_=(o=t?.getRootNode(e))!==null&&o!==void 0?o:document,U=_.activeElement;return U instanceof HTMLElement?U:null}function Bue(t){return function(e){t.some(function(o){return e.key===o})&&(Fue(e.target)||e.preventDefault(),e.target.dispatchEvent(new MouseEvent("click",Ys(Ys({},e),{view:void 0}))))}}var Uue=['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(",");function jue(t){return Array.from(t.querySelectorAll(Uue))}function C4(t){return typeof t=="function"}var $p="[Blueprint]",Vue=$p+" <Alert> cancelButtonText and onCancel should be set together.",que=$p+" <Alert> canEscapeKeyCancel enabled without onCancel or onClose handler.",Hue=$p+" <Alert> canOutsideClickCancel enabled without onCancel or onClose handler.",Gue=$p+" <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.",Wue=$p+' <NavbarGroup> does not support align="center". Only "left" or "right" alignment is allowed, and align="center" will be ignored.',$ue="".concat($p," <Popover> requires renderTarget prop or a child element."),Xue="".concat($p,' <Popover hasBackdrop={true}> requires interactionKind="click".'),Yue="".concat($p," <Popover> supports only one child which is rendered as its target; additional children are ignored."),Zue=$p+" <Popover> with children ignores renderTarget prop; use either prop or children.",Kue=$p+" Disabling <Popover> with empty/whitespace content...",Jue=$p+" <Popover usePortal={false}> ignores hasBackdrop",Que=$p+" <Popover> supports either placement or position prop, not both.",ece=$p+" <Popover> onInteraction is ignored when uncontrolled.",tce=$p+" <Popover> targetProps value is ignored when renderTarget API is used.",rce=$p+" <Portal> context blueprintPortalClassName must be string",nce=$p+" setting blueprintPortalClassName via legacy React context API is deprecated, use <PortalProvider> instead.",ice=$p+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.",ace=$p+" <Dialog> iconName is ignored if title is omitted.",oce=$p+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.",sce=$p+" <Overlay2> was used outside of a <OverlaysProvider> context. This will no longer be supported in Blueprint v6. See https://github.com/palantir/blueprint/wiki/Overlay2-migration",lce=$p+" <Overlay2> cannot use childRef and childRefs props simultaneously",uce=$p+" <Overlay2> requires childRefs prop when rendering multiple child elements",cce=$p+" <Overlay2> requires each child element to have a unique key prop when childRefs is used";function z3(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function jG(t,e,o){return t==null?t:Math.min(Math.max(t,e),o)}var Ij=new Map;function fce(t){var e,o=(e=Ij.get(t))!==null&&e!==void 0?e:0;return Ij.set(t,o+1),"".concat(t,"-").concat(o)}function M4(t){return typeof t=="string"&&t.trim().length===0}function _L(t,e){return e===void 0&&(e=!1),t==null||t===""||t===!1||!e&&Array.isArray(t)&&(t.length===0||t.every(function(o){return _L(o,!0)}))}function VG(t,e,o){if(e===void 0&&(e="span"),o===void 0&&(o={}),!(t==null||typeof t=="boolean"||M4(t)))return typeof t=="string"||typeof t=="number"||hce(t)||dce(t)?vr.createElement(e,o,t):qG(t)?Object.keys(o).length>0?vr.cloneElement(t,o):t:void 0}function qG(t){return typeof t=="object"&&typeof t.type<"u"&&typeof t.props<"u"}function hce(t){return typeof t.type=="symbol"}function dce(t){return Array.isArray(t)}function HG(t,e){return t!=null&&t.type!=null&&t.type.displayName!=null&&t.type.displayName===e.displayName}function pce(){var t=parseInt(vr.version.split(".")[0],10);return t>=18}function xL(t){return t.key==="Enter"||t.key===" "}function vce(t,e,o){if(e.includes(t.key))return-1;if(o.includes(t.key))return 1}function mce(t){return t!=null&&typeof t!="function"}function gce(t){return typeof t=="function"}function k4(t,e){mce(t)?t.current=e:gce(t)&&t(e)}function N3(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(o){t.forEach(function(_){k4(_,o)})}}function v_(t){return t===null?null:typeof t.current>"u"?t:t.current}function yce(t,e,o){return function(_){t[e]=_,k4(o,_)}}var Ax=(function(t){C_(e,t);function e(o){var _=t.call(this,o)||this;return _.timeoutIds=[],_.requestIds=[],_.clearTimeouts=function(){if(_.timeoutIds.length>0){for(var U=0,te=_.timeoutIds;U<te.length;U++){var me=te[U];window.clearTimeout(me)}_.timeoutIds=[]}},_.cancelAnimationFrames=function(){if(_.requestIds.length>0){for(var U=0,te=_.requestIds;U<te.length;U++){var me=te[U];window.cancelAnimationFrame(me)}_.requestIds=[]}},z3("production")||_.validateProps(_.props),_}return e.prototype.componentDidUpdate=function(o,_,U){z3("production")||this.validateProps(this.props)},e.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},e.prototype.requestAnimationFrame=function(o){var _=window.requestAnimationFrame(o);return this.requestIds.push(_),function(){return window.cancelAnimationFrame(_)}},e.prototype.setTimeout=function(o,_){var U=window.setTimeout(o,_);return this.timeoutIds.push(U),function(){return window.clearTimeout(U)}},e.prototype.validateProps=function(o){},e})(vr.PureComponent),Gf="Blueprint5",Dj=["active","alignText","asyncControl","containerRef","current","elementRef","ellipsizeText","endIcon","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","selectedValue","size","small","tagName","text","textClassName","variant"];function zS(t,e,o){return e===void 0&&(e=Dj),o===void 0&&(o=!1),o&&(e=e.concat(Dj)),e.reduce(function(_,U){return U.indexOf("-")!==-1||_.hasOwnProperty(U)&&delete _[U],_},Ys({},t))}var Iz={exports:{}};/*!
|
|
47
47
|
Copyright (c) 2018 Jed Watson.
|
|
48
48
|
Licensed under the MIT License (MIT), see
|
|
49
49
|
http://jedwatson.github.io/classnames
|
|
50
|
-
*/var Oj;function _ce(){return Oj||(Oj=1,(function(t){(function(){var e={}.hasOwnProperty;function o(){for(var te="",me=0;me<arguments.length;me++){var Le=arguments[me];Le&&(te=U(te,_(Le)))}return te}function _(te){if(typeof te=="string"||typeof te=="number")return te;if(typeof te!="object")return"";if(Array.isArray(te))return o.apply(null,te);if(te.toString!==Object.prototype.toString&&!te.toString.toString().includes("[native code]"))return te.toString();var me="";for(var Le in te)e.call(te,Le)&&te[Le]&&(me=U(me,Le));return me}function U(te,me){return me?te?te+" "+me:te+me:te}t.exports?(o.default=o,t.exports=o):window.classNames=o})()})(Iz)),Iz.exports}var xce=_ce();const Wl=Uy(xce);function L4(t,e){e===void 0&&(e=[]),vr.useEffect(function(){z3("production")||t()},e)}var bce={defaultTabIndex:void 0,disabledTabIndex:-1};function GG(t,e,o,_){_===void 0&&(_=bce);var U=_.defaultTabIndex,te=_.disabledTabIndex,me=e.active,Le=e.onClick,Re=e.onFocus,je=e.onKeyDown,Qe=e.onKeyUp,nt=e.onBlur,yt=e.tabIndex,Wt=yt===void 0?U:yt,Bt=vr.useState(),rr=Bt[0],Nt=Bt[1],Se=vr.useState(!1),lr=Se[0],Zt=Se[1],$t=vr.useRef(null),kt=vr.useCallback(function(xn){lr&&Zt(!1),nt?.(xn)},[lr,nt]),Jt=vr.useCallback(function(xn){xL(xn)&&(xn.preventDefault(),xn.key!==rr&&Zt(!0)),Nt(xn.key),je?.(xn)},[rr,je]),Ur=vr.useCallback(function(xn){var In;xL(xn)&&(Zt(!1),(In=$t.current)===null||In===void 0||In.click()),Nt(void 0),Qe?.(xn)},[Qe,$t]),Lr=t&&(me||lr);return[Lr,{onBlur:kt,onClick:t?Le:void 0,onFocus:t?Re:void 0,onKeyDown:Jt,onKeyUp:Ur,ref:N3($t,o),tabIndex:t?Wt:te}]}var bL=function(){return bL=Object.assign||function(e){for(var o,_=1,U=arguments.length;_<U;_++){o=arguments[_];for(var te in o)Object.prototype.hasOwnProperty.call(o,te)&&(e[te]=o[te])}return e},bL.apply(this,arguments)};function Ex(t,e,o,_){var U=arguments.length,te=U<3?e:_===null?_=Object.getOwnPropertyDescriptor(e,o):_,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(t,e,o,_);else for(var Le=t.length-1;Le>=0;Le--)(me=t[Le])&&(te=(U<3?me(te):U>3?me(e,o,te):me(e,o))||te);return U>3&&te&&Object.defineProperty(e,o,te),te}function lm(t,e,o,_){function U(te){return te instanceof o?te:new o(function(me){me(te)})}return new(o||(o=Promise))(function(te,me){function Le(Qe){try{je(_.next(Qe))}catch(nt){me(nt)}}function Re(Qe){try{je(_.throw(Qe))}catch(nt){me(nt)}}function je(Qe){Qe.done?te(Qe.value):U(Qe.value).then(Le,Re)}je((_=_.apply(t,e||[])).next())})}function wce(t){return t.toLowerCase()}var Tce=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Sce=/[^A-Z0-9]+/gi;function WG(t,e){e===void 0&&(e={});for(var o=e.splitRegexp,_=o===void 0?Tce:o,U=e.stripRegexp,te=U===void 0?Sce:U,me=e.transform,Le=me===void 0?wce:me,Re=e.delimiter,je=Re===void 0?" ":Re,Qe=zj(zj(t,_,"$1\0$2"),te,"\0"),nt=0,yt=Qe.length;Qe.charAt(nt)==="\0";)nt++;for(;Qe.charAt(yt-1)==="\0";)yt--;return Qe.slice(nt,yt).split("\0").map(Le).join(je)}function zj(t,e,o){return e instanceof RegExp?t.replace(e,o):e.reduce(function(_,U){return _.replace(U,o)},t)}function Ace(t,e){var o=t.charAt(0),_=t.substr(1).toLowerCase();return e>0&&o>="0"&&o<="9"?"_"+o+_:""+o.toUpperCase()+_}function Ece(t,e){return e===void 0&&(e={}),WG(t,bL({delimiter:"",transform:Ace},e))}function Cce(t,e){return e===void 0&&(e={}),WG(t,bL({delimiter:"."},e))}function Mce(t,e){return e===void 0&&(e={}),Cce(t,bL({delimiter:"_"},e))}var hc;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(hc||(hc={}));var _0=function(){return _0=Object.assign||function(e){for(var o,_=1,U=arguments.length;_<U;_++){o=arguments[_];for(var te in o)Object.prototype.hasOwnProperty.call(o,te)&&(e[te]=o[te])}return e},_0.apply(this,arguments)};function kce(t,e){var o={};for(var _ in t)Object.prototype.hasOwnProperty.call(t,_)&&e.indexOf(_)<0&&(o[_]=t[_]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,_=Object.getOwnPropertySymbols(t);U<_.length;U++)e.indexOf(_[U])<0&&Object.prototype.propertyIsEnumerable.call(t,_[U])&&(o[_[U]]=t[_[U]]);return o}function iM(t,e,o,_){function U(te){return te instanceof o?te:new o(function(me){me(te)})}return new(o||(o=Promise))(function(te,me){function Le(Qe){try{je(_.next(Qe))}catch(nt){me(nt)}}function Re(Qe){try{je(_.throw(Qe))}catch(nt){me(nt)}}function je(Qe){Qe.done?te(Qe.value):U(Qe.value).then(Le,Re)}je((_=_.apply(t,e||[])).next())})}function aM(t,e){var o={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},_,U,te,me;return me={next:Le(0),throw:Le(1),return:Le(2)},typeof Symbol=="function"&&(me[Symbol.iterator]=function(){return this}),me;function Le(je){return function(Qe){return Re([je,Qe])}}function Re(je){if(_)throw new TypeError("Generator is already executing.");for(;me&&(me=0,je[0]&&(o=0)),o;)try{if(_=1,U&&(te=je[0]&2?U.return:je[0]?U.throw||((te=U.return)&&te.call(U),0):U.next)&&!(te=te.call(U,je[1])).done)return te;switch(U=0,te&&(je=[je[0]&2,te.value]),je[0]){case 0:case 1:te=je;break;case 4:return o.label++,{value:je[1],done:!1};case 5:o.label++,U=je[1],je=[0];continue;case 7:je=o.ops.pop(),o.trys.pop();continue;default:if(te=o.trys,!(te=te.length>0&&te[te.length-1])&&(je[0]===6||je[0]===2)){o=0;continue}if(je[0]===3&&(!te||je[1]>te[0]&&je[1]<te[3])){o.label=je[1];break}if(je[0]===6&&o.label<te[1]){o.label=te[1],te=je;break}if(te&&o.label<te[2]){o.label=te[2],o.ops.push(je);break}te[2]&&o.ops.pop(),o.trys.pop();continue}je=e.call(t,o)}catch(Qe){je=[6,Qe],U=0}finally{_=te=0}if(je[0]&5)throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}}var gr,mr;(function(t){t.AddChild="add-child",t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddParent="add-parent",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Announcement="announcement",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayObject="array-object",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsArc="arrows-arc",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.BackwardTen="backward-ten",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.BinaryNumber="binary-number",t.Blank="blank",t.BlockPromote="block-promote",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.BranchLocked="branch-locked",t.BranchUnlocked="branch-unlocked",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.BritishPound="british-pound",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Bullseye="bullseye",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.ClipboardFile="clipboard-file",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudServer="cloud-server",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Construction="construction",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CssStyle="css-style",t.CubeAdd="cube-add",t.CubeEdit="cube-edit",t.CubeRemove="cube-remove",t.Cube="cube",t.Cubes="cubes",t.CurlyBraces="curly-braces",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataCloud="data-cloud",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.DataSearch="data-search",t.DataSync="data-sync",t.Database="database",t.DeleteClip="delete-clip",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentCode="document-code",t.DocumentLocked="document-locked",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Excavator="excavator",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.FighterJet="fighter-jet",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.FilterSortAsc="filter-sort-asc",t.FilterSortDesc="filter-sort-desc",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.ForwardTen="forward-ten",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GiftBox="gift-box",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetworkAdd="globe-network-add",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.Hexagon="hexagon",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",t.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",t.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",t.LayoutLinear="layout-linear",t.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",t.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.LayoutThreeColumns="layout-three-columns",t.LayoutThreeRows="layout-three-rows",t.LayoutTopRowThreeTiles="layout-top-row-three-tiles",t.LayoutTopRowTwoTiles="layout-top-row-two-tiles",t.LayoutTwoColumns="layout-two-columns",t.LayoutTwoRows="layout-two-rows",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.LinkedSquares="linked-squares",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsAdd="notifications-add",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.ObjectView="object-view",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.Output="output",t.Package="package",t.PageBreak="page-break",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Panel="panel",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.PhoneSearch="phone-search",t.Phone="phone",t.PieChart="pie-chart",t.Pill="pill",t.Pin="pin",t.Pistol="pistol",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.RangeRing="range-ring",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RootFolder="root-folder",t.RotateCcw="rotate-ccw",t.RotateCw="rotate-cw",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.RunHistory="run-history",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.SelectionBoxAdd="selection-box-add",t.SelectionBoxEdit="selection-box-edit",t.SelectionBoxRemove="selection-box-remove",t.SelectionBox="selection-box",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.ServerInstall="server-install",t.Server="server",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.SubtractRightJoin="subtract-right-join",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Sweep="sweep",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.TableSync="table-sync",t.TagAdd="tag-add",t.TagPromote="tag-promote",t.TagRefresh="tag-refresh",t.TagUndo="tag-undo",t.Tag="tag",t.Tags="tags",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThAdd="th-add",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThListAdd="th-list-add",t.ThList="th-list",t.ThVirtualAdd="th-virtual-add",t.ThVirtual="th-virtual",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.Vector="vector",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.WrenchRedo="wrench-redo",t.WrenchSnooze="wrench-snooze",t.WrenchTime="wrench-time",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(mr||(mr={}));gr={},gr[mr.AddChild]="62365",gr[mr.AddClip]="61697",gr[mr.AddColumnLeft]="61698",gr[mr.AddColumnRight]="61699",gr[mr.AddLocation]="61700",gr[mr.AddParent]="62366",gr[mr.AddRowBottom]="61701",gr[mr.AddRowTop]="61702",gr[mr.AddToArtifact]="61703",gr[mr.AddToFolder]="61704",gr[mr.Add]="61705",gr[mr.AimpointsTarget]="62261",gr[mr.Airplane]="61706",gr[mr.AlignCenter]="61707",gr[mr.AlignJustify]="61708",gr[mr.AlignLeft]="61709",gr[mr.AlignRight]="61710",gr[mr.AlignmentBottom]="61711",gr[mr.AlignmentHorizontalCenter]="61712",gr[mr.AlignmentLeft]="61713",gr[mr.AlignmentRight]="61714",gr[mr.AlignmentTop]="61715",gr[mr.AlignmentVerticalCenter]="61716",gr[mr.Ammunition]="62274",gr[mr.Anchor]="62256",gr[mr.Annotation]="61717",gr[mr.Announcement]="62358",gr[mr.Antenna]="61718",gr[mr.AppHeader]="61719",gr[mr.Application]="61720",gr[mr.Applications]="61721",gr[mr.Archive]="61722",gr[mr.AreaOfInterest]="61723",gr[mr.ArrayBoolean]="61724",gr[mr.ArrayDate]="61725",gr[mr.ArrayFloatingPoint]="62253",gr[mr.ArrayNumeric]="61726",gr[mr.ArrayObject]="62356",gr[mr.ArrayString]="61727",gr[mr.ArrayTimestamp]="61728",gr[mr.Array]="61729",gr[mr.ArrowBottomLeft]="61730",gr[mr.ArrowBottomRight]="61731",gr[mr.ArrowDown]="61732",gr[mr.ArrowLeft]="61733",gr[mr.ArrowRight]="61734",gr[mr.ArrowTopLeft]="61735",gr[mr.ArrowTopRight]="61736",gr[mr.ArrowUp]="61737",gr[mr.ArrowsArc]="62343",gr[mr.ArrowsHorizontal]="61738",gr[mr.ArrowsVertical]="61739",gr[mr.Asterisk]="61740",gr[mr.At]="62257",gr[mr.AutomaticUpdates]="61741",gr[mr.Axle]="62264",gr[mr.Backlink]="61742",gr[mr.BackwardTen]="62300",gr[mr.Badge]="61743",gr[mr.BanCircle]="61744",gr[mr.BankAccount]="61745",gr[mr.Barcode]="61746",gr[mr.BinaryNumber]="62295",gr[mr.Blank]="61747",gr[mr.BlockPromote]="62322",gr[mr.BlockedPerson]="61748",gr[mr.Bold]="61749",gr[mr.Book]="61750",gr[mr.Bookmark]="61751",gr[mr.Box]="61752",gr[mr.BranchLocked]="62374",gr[mr.BranchUnlocked]="62375",gr[mr.Briefcase]="61753",gr[mr.BringData]="61754",gr[mr.BringForward]="62292",gr[mr.BritishPound]="62342",gr[mr.Bug]="62254",gr[mr.Buggy]="61755",gr[mr.Build]="61756",gr[mr.Bullseye]="62297",gr[mr.Calculator]="61757",gr[mr.Calendar]="61758",gr[mr.Camera]="61759",gr[mr.CaretDown]="61760",gr[mr.CaretLeft]="61761",gr[mr.CaretRight]="61762",gr[mr.CaretUp]="61763",gr[mr.CargoShip]="61764",gr[mr.CellTower]="61765",gr[mr.Changes]="61766",gr[mr.Chart]="61767",gr[mr.Chat]="61768",gr[mr.ChevronBackward]="61769",gr[mr.ChevronDown]="61770",gr[mr.ChevronForward]="61771",gr[mr.ChevronLeft]="61772",gr[mr.ChevronRight]="61773",gr[mr.ChevronUp]="61774",gr[mr.CircleArrowDown]="61775",gr[mr.CircleArrowLeft]="61776",gr[mr.CircleArrowRight]="61777",gr[mr.CircleArrowUp]="61778",gr[mr.Circle]="61779",gr[mr.Citation]="61780",gr[mr.Clean]="61781",gr[mr.Clip]="61782",gr[mr.ClipboardFile]="62299",gr[mr.Clipboard]="61783",gr[mr.CloudDownload]="61784",gr[mr.CloudServer]="62298",gr[mr.CloudTick]="62286",gr[mr.CloudUpload]="61785",gr[mr.Cloud]="61786",gr[mr.CodeBlock]="61787",gr[mr.Code]="61788",gr[mr.Cog]="61789",gr[mr.CollapseAll]="61790",gr[mr.ColorFill]="62248",gr[mr.ColumnLayout]="61791",gr[mr.Comment]="61792",gr[mr.Comparison]="61793",gr[mr.Compass]="61794",gr[mr.Compressed]="61795",gr[mr.Confirm]="61796",gr[mr.Console]="61797",gr[mr.Construction]="62357",gr[mr.Contrast]="61798",gr[mr.Control]="61799",gr[mr.CreditCard]="61800",gr[mr.Crop]="62291",gr[mr.CrossCircle]="62262",gr[mr.Cross]="61801",gr[mr.Crown]="61802",gr[mr.CssStyle]="62315",gr[mr.CubeAdd]="61803",gr[mr.CubeEdit]="62339",gr[mr.CubeRemove]="61804",gr[mr.Cube]="61805",gr[mr.Cubes]="62323",gr[mr.CurlyBraces]="62296",gr[mr.CurvedRangeChart]="61806",gr[mr.Cut]="61807",gr[mr.Cycle]="61808",gr[mr.Dashboard]="61809",gr[mr.DataCloud]="62353",gr[mr.DataConnection]="61810",gr[mr.DataLineage]="61811",gr[mr.DataSearch]="62319",gr[mr.DataSync]="62316",gr[mr.Database]="61812",gr[mr.DeleteClip]="62371",gr[mr.Delete]="61813",gr[mr.Delta]="61814",gr[mr.DeriveColumn]="61815",gr[mr.Desktop]="61816",gr[mr.Detection]="62273",gr[mr.Diagnosis]="61817",gr[mr.DiagramTree]="61818",gr[mr.DirectionLeft]="61819",gr[mr.DirectionRight]="61820",gr[mr.Disable]="61821",gr[mr.Divide]="62247",gr[mr.DocumentCode]="62368",gr[mr.DocumentLocked]="62369",gr[mr.DocumentOpen]="61822",gr[mr.DocumentShare]="61823",gr[mr.Document]="61824",gr[mr.Dollar]="61825",gr[mr.Dot]="61826",gr[mr.DoubleCaretHorizontal]="61827",gr[mr.DoubleCaretVertical]="61828",gr[mr.DoubleChevronDown]="61829",gr[mr.DoubleChevronLeft]="61830",gr[mr.DoubleChevronRight]="61831",gr[mr.DoubleChevronUp]="61832",gr[mr.DoughnutChart]="61833",gr[mr.Download]="61834",gr[mr.DragHandleHorizontal]="61835",gr[mr.DragHandleVertical]="61836",gr[mr.Draw]="61837",gr[mr.DrawerLeftFilled]="61838",gr[mr.DrawerLeft]="61839",gr[mr.DrawerRightFilled]="61840",gr[mr.DrawerRight]="61841",gr[mr.DriveTime]="61842",gr[mr.Duplicate]="61843",gr[mr.Edit]="61844",gr[mr.Eject]="61845",gr[mr.Emoji]="61846",gr[mr.Endnote]="62294",gr[mr.Endorsed]="61847",gr[mr.Envelope]="61848",gr[mr.Equals]="61849",gr[mr.Eraser]="61850",gr[mr.Error]="61851",gr[mr.Euro]="61852",gr[mr.Excavator]="62317",gr[mr.Exchange]="61853",gr[mr.ExcludeRow]="61854",gr[mr.ExpandAll]="61855",gr[mr.Explain]="62285",gr[mr.Export]="61856",gr[mr.EyeOff]="61857",gr[mr.EyeOn]="61858",gr[mr.EyeOpen]="61859",gr[mr.FastBackward]="61860",gr[mr.FastForward]="61861",gr[mr.FeedSubscribed]="61862",gr[mr.Feed]="61863",gr[mr.FighterJet]="62340",gr[mr.Film]="61864",gr[mr.FilterKeep]="61865",gr[mr.FilterList]="61866",gr[mr.FilterOpen]="61867",gr[mr.FilterRemove]="61868",gr[mr.FilterSortAsc]="62350",gr[mr.FilterSortDesc]="62351",gr[mr.Filter]="61869",gr[mr.Flag]="61870",gr[mr.Flame]="61871",gr[mr.Flash]="61872",gr[mr.FloatingPoint]="62252",gr[mr.FloppyDisk]="61873",gr[mr.FlowBranch]="61874",gr[mr.FlowEnd]="61875",gr[mr.FlowLinear]="61876",gr[mr.FlowReviewBranch]="61877",gr[mr.FlowReview]="61878",gr[mr.Flows]="61879",gr[mr.FolderClose]="61880",gr[mr.FolderNew]="61881",gr[mr.FolderOpen]="61882",gr[mr.FolderSharedOpen]="61883",gr[mr.FolderShared]="61884",gr[mr.Follower]="61885",gr[mr.Following]="61886",gr[mr.Font]="61887",gr[mr.Fork]="61888",gr[mr.Form]="61889",gr[mr.ForwardTen]="62301",gr[mr.Fuel]="62243",gr[mr.FullCircle]="61890",gr[mr.FullStackedChart]="61891",gr[mr.Fullscreen]="61892",gr[mr.Function]="61893",gr[mr.GanttChart]="61894",gr[mr.Generate]="62284",gr[mr.Geofence]="61895",gr[mr.Geolocation]="61896",gr[mr.Geosearch]="61897",gr[mr.Geotime]="62276",gr[mr.GiftBox]="62370",gr[mr.GitBranch]="61898",gr[mr.GitCommit]="61899",gr[mr.GitMerge]="61900",gr[mr.GitNewBranch]="61901",gr[mr.GitPull]="61902",gr[mr.GitPush]="61903",gr[mr.GitRepo]="61904",gr[mr.Glass]="61905",gr[mr.GlobeNetworkAdd]="62338",gr[mr.GlobeNetwork]="61906",gr[mr.Globe]="61907",gr[mr.GraphRemove]="61908",gr[mr.Graph]="61909",gr[mr.GreaterThanOrEqualTo]="61910",gr[mr.GreaterThan]="61911",gr[mr.GridView]="61912",gr[mr.Grid]="61913",gr[mr.GroupItem]="62282",gr[mr.GroupObjects]="61914",gr[mr.GroupedBarChart]="61915",gr[mr.HandDown]="61916",gr[mr.HandLeft]="61917",gr[mr.HandRight]="61918",gr[mr.HandUp]="61919",gr[mr.Hand]="61920",gr[mr.Hat]="61921",gr[mr.HeaderOne]="61922",gr[mr.HeaderThree]="61923",gr[mr.HeaderTwo]="61924",gr[mr.Header]="61925",gr[mr.Headset]="61926",gr[mr.HeartBroken]="61927",gr[mr.Heart]="61928",gr[mr.HeatGrid]="61929",gr[mr.Heatmap]="61930",gr[mr.Helicopter]="61931",gr[mr.Help]="61932",gr[mr.HelperManagement]="61933",gr[mr.Hexagon]="62324",gr[mr.HighPriority]="61934",gr[mr.HighVoltagePole]="62259",gr[mr.Highlight]="61935",gr[mr.History]="61936",gr[mr.Home]="61937",gr[mr.HorizontalBarChartAsc]="61938",gr[mr.HorizontalBarChartDesc]="61939",gr[mr.HorizontalBarChart]="61940",gr[mr.HorizontalDistribution]="61941",gr[mr.HorizontalInbetween]="62249",gr[mr.Hurricane]="61942",gr[mr.IdNumber]="61943",gr[mr.ImageRotateLeft]="61944",gr[mr.ImageRotateRight]="61945",gr[mr.Import]="61946",gr[mr.InboxFiltered]="61947",gr[mr.InboxGeo]="61948",gr[mr.InboxSearch]="61949",gr[mr.InboxUpdate]="61950",gr[mr.Inbox]="61951",gr[mr.InfoSign]="61952",gr[mr.Inheritance]="61953",gr[mr.InheritedGroup]="61954",gr[mr.InnerJoin]="61955",gr[mr.Input]="62283",gr[mr.Insert]="61956",gr[mr.Intelligence]="62263",gr[mr.Intersection]="61957",gr[mr.IpAddress]="61958",gr[mr.IssueClosed]="61959",gr[mr.IssueNew]="61960",gr[mr.Issue]="61961",gr[mr.Italic]="61962",gr[mr.JoinTable]="61963",gr[mr.KeyBackspace]="61964",gr[mr.KeyCommand]="61965",gr[mr.KeyControl]="61966",gr[mr.KeyDelete]="61967",gr[mr.KeyEnter]="61968",gr[mr.KeyEscape]="61969",gr[mr.KeyOption]="61970",gr[mr.KeyShift]="61971",gr[mr.KeyTab]="61972",gr[mr.Key]="61973",gr[mr.KnownVehicle]="61974",gr[mr.LabTest]="61975",gr[mr.Label]="61976",gr[mr.LayerOutline]="61977",gr[mr.Layer]="61978",gr[mr.Layers]="61979",gr[mr.LayoutAuto]="61980",gr[mr.LayoutBalloon]="61981",gr[mr.LayoutBottomRowThreeTiles]="62308",gr[mr.LayoutBottomRowTwoTiles]="62307",gr[mr.LayoutCircle]="61982",gr[mr.LayoutGrid]="61983",gr[mr.LayoutGroupBy]="61984",gr[mr.LayoutHierarchy]="61985",gr[mr.LayoutLeftColumnThreeTiles]="62310",gr[mr.LayoutLeftColumnTwoTiles]="62309",gr[mr.LayoutLinear]="61986",gr[mr.LayoutRightColumnThreeTiles]="62312",gr[mr.LayoutRightColumnTwoTiles]="62311",gr[mr.LayoutSkewGrid]="61987",gr[mr.LayoutSortedClusters]="61988",gr[mr.LayoutThreeColumns]="62305",gr[mr.LayoutThreeRows]="62306",gr[mr.LayoutTopRowThreeTiles]="62314",gr[mr.LayoutTopRowTwoTiles]="62313",gr[mr.LayoutTwoColumns]="62303",gr[mr.LayoutTwoRows]="62304",gr[mr.Layout]="61989",gr[mr.Learning]="61990",gr[mr.LeftJoin]="61991",gr[mr.LengthenText]="62270",gr[mr.LessThanOrEqualTo]="61992",gr[mr.LessThan]="61993",gr[mr.Lifesaver]="61994",gr[mr.Lightbulb]="61995",gr[mr.Lightning]="61996",gr[mr.Link]="61997",gr[mr.LinkedSquares]="62341",gr[mr.ListColumns]="61998",gr[mr.ListDetailView]="61999",gr[mr.List]="62000",gr[mr.Locate]="62001",gr[mr.Lock]="62002",gr[mr.Locomotive]="62267",gr[mr.LogIn]="62003",gr[mr.LogOut]="62004",gr[mr.LowVoltagePole]="62258",gr[mr.Manual]="62005",gr[mr.ManuallyEnteredData]="62006",gr[mr.ManyToMany]="62007",gr[mr.ManyToOne]="62008",gr[mr.MapCreate]="62009",gr[mr.MapMarker]="62010",gr[mr.Map]="62011",gr[mr.Maximize]="62012",gr[mr.Media]="62013",gr[mr.MenuClosed]="62014",gr[mr.MenuOpen]="62015",gr[mr.Menu]="62016",gr[mr.MergeColumns]="62017",gr[mr.MergeLinks]="62018",gr[mr.Microphone]="62275",gr[mr.Minimize]="62019",gr[mr.Minus]="62020",gr[mr.MobilePhone]="62021",gr[mr.MobileVideo]="62022",gr[mr.ModalFilled]="62023",gr[mr.Modal]="62024",gr[mr.Model]="62269",gr[mr.Moon]="62025",gr[mr.More]="62026",gr[mr.Mountain]="62027",gr[mr.Move]="62028",gr[mr.Mugshot]="62029",gr[mr.MultiSelect]="62030",gr[mr.Music]="62031",gr[mr.Nest]="62032",gr[mr.NewDrawing]="62033",gr[mr.NewGridItem]="62034",gr[mr.NewLayer]="62035",gr[mr.NewLayers]="62036",gr[mr.NewLink]="62037",gr[mr.NewObject]="62038",gr[mr.NewPerson]="62039",gr[mr.NewPrescription]="62040",gr[mr.NewShield]="62281",gr[mr.NewTextBox]="62041",gr[mr.Ninja]="62042",gr[mr.NotEqualTo]="62043",gr[mr.NotificationsAdd]="62360",gr[mr.NotificationsSnooze]="62044",gr[mr.NotificationsUpdated]="62045",gr[mr.Notifications]="62046",gr[mr.NumberedList]="62047",gr[mr.Numerical]="62048",gr[mr.ObjectView]="62352",gr[mr.Office]="62049",gr[mr.Offline]="62050",gr[mr.OilField]="62051",gr[mr.OneColumn]="62052",gr[mr.OneToMany]="62053",gr[mr.OneToOne]="62054",gr[mr.OpenApplication]="62251",gr[mr.Outdated]="62055",gr[mr.Output]="62320",gr[mr.Package]="62325",gr[mr.PageBreak]="62373",gr[mr.PageLayout]="62056",gr[mr.PanelStats]="62057",gr[mr.PanelTable]="62058",gr[mr.Panel]="62337",gr[mr.Paperclip]="62059",gr[mr.Paragraph]="62060",gr[mr.PasteVariable]="62278",gr[mr.PathSearch]="62061",gr[mr.Path]="62062",gr[mr.Pause]="62063",gr[mr.People]="62064",gr[mr.Percentage]="62065",gr[mr.Person]="62066",gr[mr.PhoneCall]="62279",gr[mr.PhoneForward]="62280",gr[mr.PhoneSearch]="62359",gr[mr.Phone]="62067",gr[mr.PieChart]="62068",gr[mr.Pill]="62326",gr[mr.Pin]="62069",gr[mr.Pistol]="62364",gr[mr.PivotTable]="62070",gr[mr.Pivot]="62071",gr[mr.Play]="62072",gr[mr.Playbook]="62244",gr[mr.Plus]="62073",gr[mr.PolygonFilter]="62074",gr[mr.Power]="62075",gr[mr.PredictiveAnalysis]="62076",gr[mr.Prescription]="62077",gr[mr.Presentation]="62078",gr[mr.Print]="62079",gr[mr.Projects]="62080",gr[mr.Properties]="62081",gr[mr.Property]="62082",gr[mr.PublishFunction]="62083",gr[mr.Pulse]="62084",gr[mr.Rain]="62085",gr[mr.Random]="62086",gr[mr.RangeRing]="62321",gr[mr.Record]="62087",gr[mr.RectHeight]="62245",gr[mr.RectWidth]="62246",gr[mr.Rectangle]="62241",gr[mr.Redo]="62088",gr[mr.Refresh]="62089",gr[mr.Regex]="62255",gr[mr.RegressionChart]="62090",gr[mr.RemoveColumnLeft]="62091",gr[mr.RemoveColumnRight]="62092",gr[mr.RemoveColumn]="62093",gr[mr.RemoveRowBottom]="62094",gr[mr.RemoveRowTop]="62095",gr[mr.Remove]="62096",gr[mr.Repeat]="62097",gr[mr.Reset]="62098",gr[mr.Resolve]="62099",gr[mr.Rig]="62100",gr[mr.RightJoin]="62101",gr[mr.Ring]="62102",gr[mr.RocketSlant]="62103",gr[mr.Rocket]="62104",gr[mr.RootFolder]="62367",gr[mr.RotateCcw]="62345",gr[mr.RotateCw]="62344",gr[mr.RotateDocument]="62105",gr[mr.RotatePage]="62106",gr[mr.Route]="62107",gr[mr.RunHistory]="62355",gr[mr.Satellite]="62108",gr[mr.Saved]="62109",gr[mr.ScatterPlot]="62110",gr[mr.SearchAround]="62111",gr[mr.SearchTemplate]="62112",gr[mr.SearchText]="62113",gr[mr.Search]="62114",gr[mr.SegmentedControl]="62115",gr[mr.Select]="62116",gr[mr.SelectionBoxAdd]="62362",gr[mr.SelectionBoxEdit]="62363",gr[mr.SelectionBoxRemove]="62376",gr[mr.SelectionBox]="62361",gr[mr.Selection]="62117",gr[mr.SendBackward]="62293",gr[mr.SendMessage]="62118",gr[mr.SendToGraph]="62119",gr[mr.SendToMap]="62120",gr[mr.SendTo]="62121",gr[mr.Sensor]="62268",gr[mr.SeriesAdd]="62122",gr[mr.SeriesConfiguration]="62123",gr[mr.SeriesDerived]="62124",gr[mr.SeriesFiltered]="62125",gr[mr.SeriesSearch]="62126",gr[mr.ServerInstall]="62327",gr[mr.Server]="62328",gr[mr.Settings]="62127",gr[mr.Shapes]="62128",gr[mr.Share]="62129",gr[mr.SharedFilter]="62130",gr[mr.Shield]="62131",gr[mr.Ship]="62132",gr[mr.Shop]="62133",gr[mr.ShoppingCart]="62134",gr[mr.ShortenText]="62271",gr[mr.SignalSearch]="62135",gr[mr.SimCard]="62136",gr[mr.Slash]="62137",gr[mr.SmallCross]="62138",gr[mr.SmallInfoSign]="62260",gr[mr.SmallMinus]="62139",gr[mr.SmallPlus]="62140",gr[mr.SmallSquare]="62141",gr[mr.SmallTick]="62142",gr[mr.Snowflake]="62143",gr[mr.SoccerBall]="62288",gr[mr.SocialMedia]="62144",gr[mr.SortAlphabeticalDesc]="62145",gr[mr.SortAlphabetical]="62146",gr[mr.SortAsc]="62147",gr[mr.SortDesc]="62148",gr[mr.SortNumericalDesc]="62149",gr[mr.SortNumerical]="62150",gr[mr.Sort]="62151",gr[mr.SpellCheck]="62272",gr[mr.SplitColumns]="62152",gr[mr.SportsStadium]="62289",gr[mr.Square]="62153",gr[mr.StackedChart]="62154",gr[mr.StadiumGeometry]="62155",gr[mr.StarEmpty]="62156",gr[mr.Star]="62157",gr[mr.StepBackward]="62158",gr[mr.StepChart]="62159",gr[mr.StepForward]="62160",gr[mr.Stop]="62161",gr[mr.Stopwatch]="62162",gr[mr.Strikethrough]="62163",gr[mr.Style]="62164",gr[mr.Subscript]="62265",gr[mr.SubtractRightJoin]="62354",gr[mr.Superscript]="62266",gr[mr.SwapHorizontal]="62165",gr[mr.SwapVertical]="62166",gr[mr.Sweep]="62372",gr[mr.Switch]="62167",gr[mr.SymbolCircle]="62168",gr[mr.SymbolCross]="62169",gr[mr.SymbolDiamond]="62170",gr[mr.SymbolRectangle]="62242",gr[mr.SymbolSquare]="62171",gr[mr.SymbolTriangleDown]="62172",gr[mr.SymbolTriangleUp]="62173",gr[mr.Syringe]="62174",gr[mr.TableSync]="62318",gr[mr.TagAdd]="62329",gr[mr.TagPromote]="62330",gr[mr.TagRefresh]="62331",gr[mr.TagUndo]="62332",gr[mr.Tag]="62175",gr[mr.Tags]="62333",gr[mr.TakeAction]="62176",gr[mr.Tank]="62177",gr[mr.Target]="62178",gr[mr.Taxi]="62179",gr[mr.Team]="62290",gr[mr.Temperature]="62180",gr[mr.TextHighlight]="62181",gr[mr.ThAdd]="62346",gr[mr.ThDerived]="62182",gr[mr.ThDisconnect]="62183",gr[mr.ThFiltered]="62184",gr[mr.ThListAdd]="62347",gr[mr.ThList]="62185",gr[mr.ThVirtualAdd]="62349",gr[mr.ThVirtual]="62348",gr[mr.Th]="62186",gr[mr.ThirdParty]="62187",gr[mr.ThumbsDown]="62188",gr[mr.ThumbsUp]="62189",gr[mr.TickCircle]="62190",gr[mr.Tick]="62191",gr[mr.Time]="62192",gr[mr.TimelineAreaChart]="62193",gr[mr.TimelineBarChart]="62194",gr[mr.TimelineEvents]="62195",gr[mr.TimelineLineChart]="62196",gr[mr.Tint]="62197",gr[mr.Torch]="62198",gr[mr.Tractor]="62199",gr[mr.Train]="62200",gr[mr.Translate]="62201",gr[mr.Trash]="62202",gr[mr.Tree]="62203",gr[mr.TrendingDown]="62204",gr[mr.TrendingUp]="62205",gr[mr.Trophy]="62287",gr[mr.Truck]="62206",gr[mr.TwoColumns]="62207",gr[mr.Unarchive]="62208",gr[mr.Underline]="62209",gr[mr.Undo]="62210",gr[mr.UngroupObjects]="62211",gr[mr.UnknownVehicle]="62212",gr[mr.Unlink]="62277",gr[mr.Unlock]="62213",gr[mr.Unpin]="62214",gr[mr.Unresolve]="62215",gr[mr.Updated]="62216",gr[mr.Upload]="62217",gr[mr.User]="62218",gr[mr.Variable]="62219",gr[mr.Vector]="62302",gr[mr.VerticalBarChartAsc]="62220",gr[mr.VerticalBarChartDesc]="62221",gr[mr.VerticalDistribution]="62222",gr[mr.VerticalInbetween]="62250",gr[mr.Video]="62223",gr[mr.Virus]="62224",gr[mr.VolumeDown]="62225",gr[mr.VolumeOff]="62226",gr[mr.VolumeUp]="62227",gr[mr.Walk]="62228",gr[mr.WarningSign]="62229",gr[mr.WaterfallChart]="62230",gr[mr.Waves]="62231",gr[mr.WidgetButton]="62232",gr[mr.WidgetFooter]="62233",gr[mr.WidgetHeader]="62234",gr[mr.Widget]="62235",gr[mr.Wind]="62236",gr[mr.WrenchRedo]="62334",gr[mr.WrenchSnooze]="62335",gr[mr.WrenchTime]="62336",gr[mr.Wrench]="62237",gr[mr.ZoomIn]="62238",gr[mr.ZoomOut]="62239",gr[mr.ZoomToFit]="62240";var $G={},XG={};for(var Dz=0,Nj=Object.values(mr);Dz<Nj.length;Dz++){var L6=Nj[Dz];$G[Ece(L6)]=L6,XG[Mce(L6).toUpperCase()]=L6}var YG=_0(_0({},$G),XG),Lce=new Set(Object.values(YG));function Pce(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function Rce(t,e){return iM(this,void 0,void 0,function(){var o,_,U;return aM(this,function(te){switch(te.label){case 0:return o=Pce("development")&&typeof performance<"u",o&&(_=performance.now(),console.info("Started '".concat(t,"'..."))),[4,e()];case 1:return te.sent(),o&&(U=Math.round(performance.now()-_),console.info("Finished '".concat(t,"' in ").concat(U,"ms"))),[2]}})})}function Ice(t){return iM(this,void 0,void 0,function(){var e,o;return aM(this,function(_){switch(_.label){case 0:return e=t.loader,o=e===void 0?eM.defaultLoader:e,typeof o!="function"?[3,1]:[2,o];case 1:return o!=="all"?[3,3]:[4,qN(()=>import("./allPathsLoader-B8vBKA-e.js"),[])];case 2:return[2,_.sent().allPathsLoader];case 3:return[4,qN(()=>import("./splitPathsBySizeLoader-CLCw9W9y.js"),[])];case 4:return[2,_.sent().splitPathsBySizeLoader]}})})}var W5=(function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(e){e.loader!==void 0&&(eM.defaultLoader=e.loader)},t.load=function(e,o,_){return iM(this,void 0,void 0,function(){var U=this;return aM(this,function(te){switch(te.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map(function(me){return U.loadImpl(me,o,_)}))];case 1:return te.sent(),[2]}})})},t.loadAll=function(e){return iM(this,void 0,void 0,function(){var o,_=this;return aM(this,function(U){return o=Object.values(YG),Rce("[Blueprint] loading all icons",function(){return iM(_,void 0,void 0,function(){return aM(this,function(te){switch(te.label){case 0:return[4,Promise.all([this.load(o,hc.STANDARD,e),this.load(o,hc.LARGE,e)])];case 1:return te.sent(),[2]}})})}),[2]})})},t.getPaths=function(e,o){if(this.isValidIconName(e)){var _=o<hc.LARGE?eM.loadedIconPaths16:eM.loadedIconPaths20;return _.get(e)}},t.loadImpl=function(e,o,_){return _===void 0&&(_={}),iM(this,void 0,void 0,function(){var U,te,me,Le,Re;return aM(this,function(je){switch(je.label){case 0:return this.isValidIconName(e)?(U=o<hc.LARGE?eM.loadedIconPaths16:eM.loadedIconPaths20,U.has(e)?[2]:[4,Ice(_)]):(console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2]);case 1:te=je.sent(),je.label=2;case 2:return je.trys.push([2,4,,5]),me=o<hc.LARGE?hc.STANDARD:hc.LARGE,[4,te(e,me)];case 3:return Le=je.sent(),U.set(e,Le),[3,5];case 4:return Re=je.sent(),console.error("[Blueprint] Unable to load ".concat(o,"px icon '").concat(e,"'"),Re),[3,5];case 5:return[2]}})})},t.isValidIconName=function(e){return Lce.has(e)},t})(),eM=new W5,Dce="bp5",Fj="".concat(Dce,"-icon"),Bj=new Map;function Oce(t){var e,o=(e=Bj.get(t))!==null&&e!==void 0?e:0;return Bj.set(t,o+1),"".concat(t,"-").concat(o)}var C2=vr.forwardRef(function(t,e){var o=t.children,_=t.className,U=t.color,te=t.htmlTitle,me=t.iconName,Le=t.size,Re=Le===void 0?hc.STANDARD:Le,je=t.svgProps,Qe=t.tagName,nt=Qe===void 0?"span":Qe,yt=t.title,Wt=kce(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),Bt=Re>=hc.LARGE,rr=Bt?hc.LARGE:hc.STANDARD,Nt="0 0 ".concat(rr," ").concat(rr),Se=Oce("iconTitle"),lr=_0({fill:U,height:Re,role:"img",viewBox:Nt,width:Re},je);return nt===null?vr.createElement("svg",_0({"aria-labelledby":yt?Se:void 0,"data-icon":me,ref:e},lr,Wt,{className:Wl(_,je?.className)}),yt&&vr.createElement("title",{id:Se},yt),o):vr.createElement(nt,_0(_0({"aria-hidden":yt?void 0:!0},Wt),{className:Wl(Fj,"".concat(Fj,"-").concat(me),_),ref:e,title:te}),vr.createElement("svg",_0({"data-icon":me},lr,{className:je?.className}),yt&&vr.createElement("title",null,yt),o))});C2.displayName="Blueprint5.SVGIconContainer";var P4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"caret-right",ref:e},t),vr.createElement("path",{d:o?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});P4.defaultProps={size:hc.STANDARD};P4.displayName="Blueprint5.Icon.CaretRight";var R4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"error",ref:e},t),vr.createElement("path",{d:o?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM220 80H180V120H220V80zM220 140H180V320H220V140z":"M159.8 320.2C71.4 320.2 -0.2 248.6 -0.2 160.2S71.4 0.2 159.8 0.2S319.8 71.8 319.8 160.2S248.2 320.2 159.8 320.2zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V260.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});R4.defaultProps={size:hc.STANDARD};R4.displayName="Blueprint5.Icon.Error";var I4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"info-sign",ref:e},t),vr.createElement("path",{d:o?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM180 320H220V280H180V320zM260 80H140V100H180V240H160V260H220V100H260V80z":"M160 320C71.6 320 0 248.4 0 160S71.6 0 160 0S320 71.6 320 160S248.4 320 160 320zM140 260H180V220H140V260zM200 60H120V80H140V180H120V200H180V80H200V60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});I4.defaultProps={size:hc.STANDARD};I4.displayName="Blueprint5.Icon.InfoSign";var CD=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"small-cross",ref:e},t),vr.createElement("path",{d:o?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});CD.defaultProps={size:hc.STANDARD};CD.displayName="Blueprint5.Icon.SmallCross";var D4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"small-tick",ref:e},t),vr.createElement("path",{d:o?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});D4.defaultProps={size:hc.STANDARD};D4.displayName="Blueprint5.Icon.SmallTick";var O4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"tick",ref:e},t),vr.createElement("path",{d:o?"M340 320C334.4 320 329.4 317.8 325.8 314.2L140 128.2L74.2 194C70.6 197.8 65.6 200 60 200C49 200 40 191 40 180C40 174.4 42.2 169.4 45.8 165.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L354.2000000000001 285.8C357.8 289.4 360 294.4 360 300C360 311 351 320 340 320z":"M280 260C274.4000000000001 260 269.4000000000001 257.8 265.8 254.2L120 108.2L54.2 174.2C50.6 177.8 45.6 180 40 180C29 180 20 171 20 160C20 154.4 22.2 149.4 25.8 145.8L105.8 65.8C109.4 62.2 114.4 60 120 60S130.6 62.2 134.2 65.8L294.2000000000001 225.8C297.8 229.4 300 234.4 300 240C300 251 291 260 280 260z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});O4.defaultProps={size:hc.STANDARD};O4.displayName="Blueprint5.Icon.Tick";var z4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"warning-sign",ref:e},t),vr.createElement("path",{d:o?"M397.2 49.6C397.2 49.6 397.4000000000001 49.8000000000001 397.4000000000001 49.8000000000001L217.4 369.8000000000001C217.4 369.8000000000001 217.2 369.6 217.2 369.6C213.8 375.8 207.4 380 200 380S186.2 375.8 182.8 369.6L182.6 369.8L2.6 49.8L2.8 49.5999999999999C1.2 46.8 0 43.6 0 40C0 29 9 20 20 20H380C391 20 400 29 400 40C400 43.6 398.8 46.8 397.2 49.6zM220 60H180V100H220V60zM220 120H180V280H220V120z":"M316.8 50L317 50.2L177 290.2L176.8 290C173.4 296 167.2 300 159.8 300S146.4 296 142.8 290C142.8 290 142.6 290.2 142.6 290.2L2.6 50.2L2.8 50C1 47 -0.2 43.8 -0.2 40C-0.2 29 8.8 20 19.8 20H299.8C310.8 20 319.8 29 319.8 40C319.8 43.8 318.6 47 316.8 50zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V220.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});z4.defaultProps={size:hc.STANDARD};z4.displayName="Blueprint5.Icon.WarningSign";var Bg=vr.forwardRef(function(t,e){var o,_,U=t.autoLoad,te=U===void 0?!0:U,me=t.className,Le=t.color,Re=t.icon,je=t.intent,Qe=t.tagName,nt=Qe===void 0?"span":Qe,yt=t.svgProps,Wt=t.title,Bt=t.htmlTitle,rr=Wp(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),Nt=(_=(o=t.iconSize)!==null&&o!==void 0?o:t.size)!==null&&_!==void 0?_:hc.STANDARD,Se=vr.useState(function(){return typeof Re=="string"?W5.getPaths(Re,Nt):void 0}),lr=Se[0],Zt=Se[1];if(vr.useEffect(function(){var Jt=!1;if(typeof Re=="string"){var Ur=W5.getPaths(Re,Nt);Ur!==void 0?Zt(Ur):te?W5.load(Re,Nt).then(function(){Jt||Zt(W5.getPaths(Re,Nt))}).catch(function(Lr){console.error("[Blueprint] Icon '".concat(Re,"' (").concat(Nt,"px) could not be loaded."),Lr)}):console.error("[Blueprint] Icon '".concat(Re,"' (").concat(Nt,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(Re,"', ").concat(Nt,")?"))}return function(){Jt=!0}},[te,Re,Nt]),Re==null||typeof Re=="boolean")return null;if(typeof Re!="string")return Re;if(lr==null){var $t=Nt===hc.STANDARD?Tue:Nt===hc.LARGE?Sue:void 0;return vr.createElement(nt||"span",Ys(Ys({"aria-hidden":Wt?void 0:!0},zS(rr)),{className:Wl(A4,$t,Eue(Re),Fy(je),me),"data-icon":Re,ref:e,title:Bt}))}else{var kt=lr.map(function(Jt,Ur){return vr.createElement("path",{d:Jt,key:Ur,fillRule:"evenodd"})});return vr.createElement(C2,Ys({children:kt,className:Wl(Fy(je),me),color:Le,htmlTitle:Bt,iconName:Re,ref:e,size:Nt,svgProps:yt,tagName:nt,title:Wt},zS(rr)))}});Bg.displayName="".concat(Gf,".Icon");var T3;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(T3||(T3={}));var TS=45,Uj="M 50,50 m 0,-".concat(TS," a ").concat(TS,",").concat(TS," 0 1 1 0,").concat(TS*2," a ").concat(TS,",").concat(TS," 0 1 1 0,-").concat(TS*2),N5=280,zce=10,Nce=4,Fce=16,N4=function(t){var e,o=t.className,_=o===void 0?"":o,U=t.intent,te=t.value,me=t.tagName,Le=me===void 0?"div":me,Re=t.size,je=Wp(t,["className","intent","value","tagName","size"]);L4(function(){var Bt=Re!=null,rr=_.indexOf(MI)>=0||_.indexOf(mL)>=0;Bt&&rr&&console.warn(ice)},[_,Re]);var Qe=Bce(Re,_),nt=Math.min(Fce,Nce*T3.LARGE/Qe),yt=N5-N5*(te==null?.25:jG(te,0,1)),Wt=Wl(AD,Fy(U),(e={},e[pue]=te!=null,e),_);return vr.createElement(Le,Ys({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":te===void 0?void 0:te*100,className:Wt,role:"progressbar"},je),vr.createElement(Le,{className:hue},vr.createElement("svg",{width:Qe,height:Qe,strokeWidth:nt.toFixed(2),viewBox:Uce(nt)},vr.createElement("path",{className:vue,d:Uj}),vr.createElement("path",{className:due,d:Uj,pathLength:N5,strokeDasharray:"".concat(N5," ").concat(N5),strokeDashoffset:yt}))))};N4.displayName="".concat(Gf,".Spinner");var Bce=function(t,e){return t==null?e.indexOf(MI)>=0?T3.SMALL:e.indexOf(mL)>=0?T3.LARGE:T3.STANDARD:Math.max(zce,t)},Uce=function(t){var e=TS+t/2,o=(50-e).toFixed(2),_=(e*2).toFixed(2);return"".concat(o," ").concat(o," ").concat(_," ").concat(_)},jce=UG()?vr.useLayoutEffect:vr.useEffect,MD=vr.forwardRef(function(t,e){var o,_=t.children,U=t.tagName,te=U===void 0?"div":U,me=t.title,Le=t.className,Re=t.ellipsize,je=Re===void 0?!1:Re,Qe=Wp(t,["children","tagName","title","className","ellipsize"]),nt=vr.useRef(),yt=vr.useMemo(function(){return N3(nt,e)},[e]),Wt=vr.useState(""),Bt=Wt[0],rr=Wt[1],Nt=vr.useState(),Se=Nt[0],lr=Nt[1];return jce(function(){var Zt;((Zt=nt.current)===null||Zt===void 0?void 0:Zt.textContent)!=null&&(lr(je&&nt.current.scrollWidth>nt.current.clientWidth),rr(nt.current.textContent))},[nt,_,je]),vr.createElement(te,Ys(Ys({},Qe),{className:Wl((o={},o[hle]=je,o),Le),ref:yt,title:me??(Se?Bt:void 0)}),_)});MD.displayName="".concat(Gf,".Text");var x_=vr.forwardRef(function(t,e){var o=ZG(t,e);return vr.createElement("button",Ys({type:"button"},zS(t),o),KG(t))});x_.displayName="".concat(Gf,".Button");var ZN=vr.forwardRef(function(t,e){var o=t.href,_=ZG(t,e,{defaultTabIndex:0,disabledTabIndex:-1});return vr.createElement("a",Ys({role:"button"},zS(t),_,{"aria-disabled":_.disabled,href:_.disabled?void 0:o}),KG(t))});ZN.displayName="".concat(Gf,".AnchorButton");function ZG(t,e,o){var _,U=t.alignText,te=t.fill,me=t.large,Le=t.loading,Re=Le===void 0?!1:Le,je=t.minimal,Qe=t.outlined,nt=t.size,yt=nt===void 0?"medium":nt,Wt=t.small,Bt=t.variant,rr=Bt===void 0?"solid":Bt,Nt=t.disabled||Re,Se=GG(!Nt,t,e,o),lr=Se[0],Zt=Se[1],$t=Wl(bD,(_={},_[vL]=lr,_[JL]=Nt,_[O3]=te,_[lle]=Re,_),E4(U),Fy(t.intent),VM(yt,{large:me,small:Wt}),Cue(rr,{minimal:je,outlined:Qe}),t.className);return Ys(Ys({},Zt),{className:$t,disabled:Nt})}function KG(t){var e=t.children,o=t.ellipsizeText,_=t.endIcon,U=t.icon,te=t.loading,me=t.rightIcon,Le=t.text,Re=t.textClassName,je=!_L(Le)||!_L(e);return vr.createElement(vr.Fragment,null,te&&vr.createElement(N4,{className:_le,size:T3.SMALL}),vr.createElement(Bg,{icon:U}),je&&vr.createElement(MD,{className:Wl(xle,Re),ellipsize:o,tagName:"span"},Le,e),vr.createElement(Bg,{icon:_??me}))}function M_(t,e){return vr.forwardRef(function(o,_){var U=o.className,te=o.children,me=Wp(o,["className","children"]);return vr.createElement(t,Ys(Ys({},me),{className:Wl(e,U),ref:_}),te)})}var Vce=M_("h1",UM),tM=M_("h2",UM);M_("h3",UM);var JG=M_("h4",UM),qce=M_("h5",UM),Hce=M_("h6",UM);M_("blockquote",dle);M_("code",ple);M_("pre",vle);M_("label",Fle);M_("ol",kG);M_("ul",kG);function Ug(){return Ug=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var _ in o)({}).hasOwnProperty.call(o,_)&&(t[_]=o[_])}return t},Ug.apply(null,arguments)}function kD(t,e){if(t==null)return{};var o={};for(var _ in t)if({}.hasOwnProperty.call(t,_)){if(e.indexOf(_)!==-1)continue;o[_]=t[_]}return o}function LI(t,e){return LI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,_){return o.__proto__=_,o},LI(t,e)}function F4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,LI(t,e)}var Oz={exports:{}},zz,jj;function Gce(){if(jj)return zz;jj=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zz=t,zz}var Nz,Vj;function Wce(){if(Vj)return Nz;Vj=1;var t=Gce();function e(){}function o(){}return o.resetWarningCache=e,Nz=function(){function _(me,Le,Re,je,Qe,nt){if(nt!==t){var yt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw yt.name="Invariant Violation",yt}}_.isRequired=_;function U(){return _}var te={array:_,bigint:_,bool:_,func:_,number:_,object:_,string:_,symbol:_,any:_,arrayOf:U,element:_,elementType:_,instanceOf:U,node:_,objectOf:U,oneOf:U,oneOfType:U,shape:U,exact:U,checkPropTypes:o,resetWarningCache:e};return te.PropTypes=te,te},Nz}var qj;function $ce(){return qj||(qj=1,Oz.exports=Wce()()),Oz.exports}function Xce(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Yce(t,e){t.classList?t.classList.add(e):Xce(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Hj(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Zce(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Hj(t.className,e):t.setAttribute("class",Hj(t.className&&t.className.baseVal||"",e))}var eP=MH();const y3=Uy(eP),Kce=CH({__proto__:null,default:y3},[eP]),Gj={disabled:!1},PI=Ts.createContext(null);var QG=function(e){return e.scrollTop},$5="unmounted",c3="exited",f3="entering",rM="entered",KN="exiting",M2=(function(t){F4(e,t);function e(_,U){var te;te=t.call(this,_,U)||this;var me=U,Le=me&&!me.isMounting?_.enter:_.appear,Re;return te.appearStatus=null,_.in?Le?(Re=c3,te.appearStatus=f3):Re=rM:_.unmountOnExit||_.mountOnEnter?Re=$5:Re=c3,te.state={status:Re},te.nextCallback=null,te}e.getDerivedStateFromProps=function(U,te){var me=U.in;return me&&te.status===$5?{status:c3}:null};var o=e.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(U){var te=null;if(U!==this.props){var me=this.state.status;this.props.in?me!==f3&&me!==rM&&(te=f3):(me===f3||me===rM)&&(te=KN)}this.updateStatus(!1,te)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var U=this.props.timeout,te,me,Le;return te=me=Le=U,U!=null&&typeof U!="number"&&(te=U.exit,me=U.enter,Le=U.appear!==void 0?U.appear:me),{exit:te,enter:me,appear:Le}},o.updateStatus=function(U,te){if(U===void 0&&(U=!1),te!==null)if(this.cancelNextCallback(),te===f3){if(this.props.unmountOnExit||this.props.mountOnEnter){var me=this.props.nodeRef?this.props.nodeRef.current:y3.findDOMNode(this);me&&QG(me)}this.performEnter(U)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c3&&this.setState({status:$5})},o.performEnter=function(U){var te=this,me=this.props.enter,Le=this.context?this.context.isMounting:U,Re=this.props.nodeRef?[Le]:[y3.findDOMNode(this),Le],je=Re[0],Qe=Re[1],nt=this.getTimeouts(),yt=Le?nt.appear:nt.enter;if(!U&&!me||Gj.disabled){this.safeSetState({status:rM},function(){te.props.onEntered(je)});return}this.props.onEnter(je,Qe),this.safeSetState({status:f3},function(){te.props.onEntering(je,Qe),te.onTransitionEnd(yt,function(){te.safeSetState({status:rM},function(){te.props.onEntered(je,Qe)})})})},o.performExit=function(){var U=this,te=this.props.exit,me=this.getTimeouts(),Le=this.props.nodeRef?void 0:y3.findDOMNode(this);if(!te||Gj.disabled){this.safeSetState({status:c3},function(){U.props.onExited(Le)});return}this.props.onExit(Le),this.safeSetState({status:KN},function(){U.props.onExiting(Le),U.onTransitionEnd(me.exit,function(){U.safeSetState({status:c3},function(){U.props.onExited(Le)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(U,te){te=this.setNextCallback(te),this.setState(U,te)},o.setNextCallback=function(U){var te=this,me=!0;return this.nextCallback=function(Le){me&&(me=!1,te.nextCallback=null,U(Le))},this.nextCallback.cancel=function(){me=!1},this.nextCallback},o.onTransitionEnd=function(U,te){this.setNextCallback(te);var me=this.props.nodeRef?this.props.nodeRef.current:y3.findDOMNode(this),Le=U==null&&!this.props.addEndListener;if(!me||Le){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var Re=this.props.nodeRef?[this.nextCallback]:[me,this.nextCallback],je=Re[0],Qe=Re[1];this.props.addEndListener(je,Qe)}U!=null&&setTimeout(this.nextCallback,U)},o.render=function(){var U=this.state.status;if(U===$5)return null;var te=this.props,me=te.children;te.in,te.mountOnEnter,te.unmountOnExit,te.appear,te.enter,te.exit,te.timeout,te.addEndListener,te.onEnter,te.onEntering,te.onEntered,te.onExit,te.onExiting,te.onExited,te.nodeRef;var Le=kD(te,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ts.createElement(PI.Provider,{value:null},typeof me=="function"?me(U,Le):Ts.cloneElement(Ts.Children.only(me),Le))},e})(Ts.Component);M2.contextType=PI;M2.propTypes={};function KC(){}M2.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:KC,onEntering:KC,onEntered:KC,onExit:KC,onExiting:KC,onExited:KC};M2.UNMOUNTED=$5;M2.EXITED=c3;M2.ENTERING=f3;M2.ENTERED=rM;M2.EXITING=KN;var Jce=function(e,o){return e&&o&&o.split(" ").forEach(function(_){return Yce(e,_)})},Fz=function(e,o){return e&&o&&o.split(" ").forEach(function(_){return Zce(e,_)})},K5=(function(t){F4(e,t);function e(){for(var _,U=arguments.length,te=new Array(U),me=0;me<U;me++)te[me]=arguments[me];return _=t.call.apply(t,[this].concat(te))||this,_.appliedClasses={appear:{},enter:{},exit:{}},_.onEnter=function(Le,Re){var je=_.resolveArguments(Le,Re),Qe=je[0],nt=je[1];_.removeClasses(Qe,"exit"),_.addClass(Qe,nt?"appear":"enter","base"),_.props.onEnter&&_.props.onEnter(Le,Re)},_.onEntering=function(Le,Re){var je=_.resolveArguments(Le,Re),Qe=je[0],nt=je[1],yt=nt?"appear":"enter";_.addClass(Qe,yt,"active"),_.props.onEntering&&_.props.onEntering(Le,Re)},_.onEntered=function(Le,Re){var je=_.resolveArguments(Le,Re),Qe=je[0],nt=je[1],yt=nt?"appear":"enter";_.removeClasses(Qe,yt),_.addClass(Qe,yt,"done"),_.props.onEntered&&_.props.onEntered(Le,Re)},_.onExit=function(Le){var Re=_.resolveArguments(Le),je=Re[0];_.removeClasses(je,"appear"),_.removeClasses(je,"enter"),_.addClass(je,"exit","base"),_.props.onExit&&_.props.onExit(Le)},_.onExiting=function(Le){var Re=_.resolveArguments(Le),je=Re[0];_.addClass(je,"exit","active"),_.props.onExiting&&_.props.onExiting(Le)},_.onExited=function(Le){var Re=_.resolveArguments(Le),je=Re[0];_.removeClasses(je,"exit"),_.addClass(je,"exit","done"),_.props.onExited&&_.props.onExited(Le)},_.resolveArguments=function(Le,Re){return _.props.nodeRef?[_.props.nodeRef.current,Le]:[Le,Re]},_.getClassNames=function(Le){var Re=_.props.classNames,je=typeof Re=="string",Qe=je&&Re?Re+"-":"",nt=je?""+Qe+Le:Re[Le],yt=je?nt+"-active":Re[Le+"Active"],Wt=je?nt+"-done":Re[Le+"Done"];return{baseClassName:nt,activeClassName:yt,doneClassName:Wt}},_}var o=e.prototype;return o.addClass=function(U,te,me){var Le=this.getClassNames(te)[me+"ClassName"],Re=this.getClassNames("enter"),je=Re.doneClassName;te==="appear"&&me==="done"&&je&&(Le+=" "+je),me==="active"&&U&&QG(U),Le&&(this.appliedClasses[te][me]=Le,Jce(U,Le))},o.removeClasses=function(U,te){var me=this.appliedClasses[te],Le=me.base,Re=me.active,je=me.done;this.appliedClasses[te]={},Le&&Fz(U,Le),Re&&Fz(U,Re),je&&Fz(U,je)},o.render=function(){var U=this.props;U.classNames;var te=kD(U,["classNames"]);return Ts.createElement(M2,Ug({},te,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e})(Ts.Component);K5.defaultProps={classNames:""};K5.propTypes={};function PS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B4(t,e){var o=function(te){return e&&vr.isValidElement(te)?e(te):te},_=Object.create(null);return t&&vr.Children.map(t,function(U){return U}).forEach(function(U){_[U.key]=o(U)}),_}function Qce(t,e){t=t||{},e=e||{};function o(Qe){return Qe in e?e[Qe]:t[Qe]}var _=Object.create(null),U=[];for(var te in t)te in e?U.length&&(_[te]=U,U=[]):U.push(te);var me,Le={};for(var Re in e){if(_[Re])for(me=0;me<_[Re].length;me++){var je=_[Re][me];Le[_[Re][me]]=o(je)}Le[Re]=o(Re)}for(me=0;me<U.length;me++)Le[U[me]]=o(U[me]);return Le}function _3(t,e,o){return o[e]!=null?o[e]:t.props[e]}function efe(t,e){return B4(t.children,function(o){return vr.cloneElement(o,{onExited:e.bind(null,o),in:!0,appear:_3(o,"appear",t),enter:_3(o,"enter",t),exit:_3(o,"exit",t)})})}function tfe(t,e,o){var _=B4(t.children),U=Qce(e,_);return Object.keys(U).forEach(function(te){var me=U[te];if(vr.isValidElement(me)){var Le=te in e,Re=te in _,je=e[te],Qe=vr.isValidElement(je)&&!je.props.in;Re&&(!Le||Qe)?U[te]=vr.cloneElement(me,{onExited:o.bind(null,me),in:!0,exit:_3(me,"exit",t),enter:_3(me,"enter",t)}):!Re&&Le&&!Qe?U[te]=vr.cloneElement(me,{in:!1}):Re&&Le&&vr.isValidElement(je)&&(U[te]=vr.cloneElement(me,{onExited:o.bind(null,me),in:je.props.in,exit:_3(me,"exit",t),enter:_3(me,"enter",t)}))}}),U}var rfe=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},nfe={component:"div",childFactory:function(e){return e}},U4=(function(t){F4(e,t);function e(_,U){var te;te=t.call(this,_,U)||this;var me=te.handleExited.bind(PS(te));return te.state={contextValue:{isMounting:!0},handleExited:me,firstRender:!0},te}var o=e.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(U,te){var me=te.children,Le=te.handleExited,Re=te.firstRender;return{children:Re?efe(U,Le):tfe(U,me,Le),firstRender:!1}},o.handleExited=function(U,te){var me=B4(this.props.children);U.key in me||(U.props.onExited&&U.props.onExited(te),this.mounted&&this.setState(function(Le){var Re=Ug({},Le.children);return delete Re[U.key],{children:Re}}))},o.render=function(){var U=this.props,te=U.component,me=U.childFactory,Le=kD(U,["component","childFactory"]),Re=this.state.contextValue,je=rfe(this.state.children).map(me);return delete Le.appear,delete Le.enter,delete Le.exit,te===null?Ts.createElement(PI.Provider,{value:Re},je):Ts.createElement(PI.Provider,{value:Re},Ts.createElement(te,Le,je))},e})(Ts.Component);U4.propTypes={};U4.defaultProps=nfe;var ife=function(){var t=1,e=new WeakMap,o=function(_,U){return typeof _=="number"||typeof _=="string"?U?"idx-".concat(U):"val-".concat(_):e.has(_)?"uid"+e.get(_):(e.set(_,t++),o(_))};return o},eW=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:ife()}},afe=eW(),ofe=vr.createContext(eW()),sfe=function(t){return t.value++},lfe=function(t){return t?t.prefix:""},ufe=function(t){var e=t||afe,o=lfe(e),_=sfe(e),U=o+_,te=function(me){return U+e.uid(me)};return{uid:U,gen:te}},cfe=function(){var t=vr.useContext(ofe),e=vr.useState(function(){return ufe(t)})[0];return e},ffe=function(){var t=cfe().uid;return t},hfe=vr.createContext({hasProvider:!1,stack:{current:[]}}),Bz={exports:{}},Uz={};/**
|
|
50
|
+
*/var Oj;function _ce(){return Oj||(Oj=1,(function(t){(function(){var e={}.hasOwnProperty;function o(){for(var te="",me=0;me<arguments.length;me++){var Le=arguments[me];Le&&(te=U(te,_(Le)))}return te}function _(te){if(typeof te=="string"||typeof te=="number")return te;if(typeof te!="object")return"";if(Array.isArray(te))return o.apply(null,te);if(te.toString!==Object.prototype.toString&&!te.toString.toString().includes("[native code]"))return te.toString();var me="";for(var Le in te)e.call(te,Le)&&te[Le]&&(me=U(me,Le));return me}function U(te,me){return me?te?te+" "+me:te+me:te}t.exports?(o.default=o,t.exports=o):window.classNames=o})()})(Iz)),Iz.exports}var xce=_ce();const Wl=Uy(xce);function L4(t,e){e===void 0&&(e=[]),vr.useEffect(function(){z3("production")||t()},e)}var bce={defaultTabIndex:void 0,disabledTabIndex:-1};function GG(t,e,o,_){_===void 0&&(_=bce);var U=_.defaultTabIndex,te=_.disabledTabIndex,me=e.active,Le=e.onClick,Re=e.onFocus,je=e.onKeyDown,Qe=e.onKeyUp,nt=e.onBlur,yt=e.tabIndex,Wt=yt===void 0?U:yt,Bt=vr.useState(),rr=Bt[0],Nt=Bt[1],Se=vr.useState(!1),lr=Se[0],Zt=Se[1],$t=vr.useRef(null),kt=vr.useCallback(function(xn){lr&&Zt(!1),nt?.(xn)},[lr,nt]),Jt=vr.useCallback(function(xn){xL(xn)&&(xn.preventDefault(),xn.key!==rr&&Zt(!0)),Nt(xn.key),je?.(xn)},[rr,je]),Ur=vr.useCallback(function(xn){var In;xL(xn)&&(Zt(!1),(In=$t.current)===null||In===void 0||In.click()),Nt(void 0),Qe?.(xn)},[Qe,$t]),Lr=t&&(me||lr);return[Lr,{onBlur:kt,onClick:t?Le:void 0,onFocus:t?Re:void 0,onKeyDown:Jt,onKeyUp:Ur,ref:N3($t,o),tabIndex:t?Wt:te}]}var bL=function(){return bL=Object.assign||function(e){for(var o,_=1,U=arguments.length;_<U;_++){o=arguments[_];for(var te in o)Object.prototype.hasOwnProperty.call(o,te)&&(e[te]=o[te])}return e},bL.apply(this,arguments)};function Ex(t,e,o,_){var U=arguments.length,te=U<3?e:_===null?_=Object.getOwnPropertyDescriptor(e,o):_,me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")te=Reflect.decorate(t,e,o,_);else for(var Le=t.length-1;Le>=0;Le--)(me=t[Le])&&(te=(U<3?me(te):U>3?me(e,o,te):me(e,o))||te);return U>3&&te&&Object.defineProperty(e,o,te),te}function lm(t,e,o,_){function U(te){return te instanceof o?te:new o(function(me){me(te)})}return new(o||(o=Promise))(function(te,me){function Le(Qe){try{je(_.next(Qe))}catch(nt){me(nt)}}function Re(Qe){try{je(_.throw(Qe))}catch(nt){me(nt)}}function je(Qe){Qe.done?te(Qe.value):U(Qe.value).then(Le,Re)}je((_=_.apply(t,e||[])).next())})}function wce(t){return t.toLowerCase()}var Tce=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Sce=/[^A-Z0-9]+/gi;function WG(t,e){e===void 0&&(e={});for(var o=e.splitRegexp,_=o===void 0?Tce:o,U=e.stripRegexp,te=U===void 0?Sce:U,me=e.transform,Le=me===void 0?wce:me,Re=e.delimiter,je=Re===void 0?" ":Re,Qe=zj(zj(t,_,"$1\0$2"),te,"\0"),nt=0,yt=Qe.length;Qe.charAt(nt)==="\0";)nt++;for(;Qe.charAt(yt-1)==="\0";)yt--;return Qe.slice(nt,yt).split("\0").map(Le).join(je)}function zj(t,e,o){return e instanceof RegExp?t.replace(e,o):e.reduce(function(_,U){return _.replace(U,o)},t)}function Ace(t,e){var o=t.charAt(0),_=t.substr(1).toLowerCase();return e>0&&o>="0"&&o<="9"?"_"+o+_:""+o.toUpperCase()+_}function Ece(t,e){return e===void 0&&(e={}),WG(t,bL({delimiter:"",transform:Ace},e))}function Cce(t,e){return e===void 0&&(e={}),WG(t,bL({delimiter:"."},e))}function Mce(t,e){return e===void 0&&(e={}),Cce(t,bL({delimiter:"_"},e))}var hc;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(hc||(hc={}));var _0=function(){return _0=Object.assign||function(e){for(var o,_=1,U=arguments.length;_<U;_++){o=arguments[_];for(var te in o)Object.prototype.hasOwnProperty.call(o,te)&&(e[te]=o[te])}return e},_0.apply(this,arguments)};function kce(t,e){var o={};for(var _ in t)Object.prototype.hasOwnProperty.call(t,_)&&e.indexOf(_)<0&&(o[_]=t[_]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,_=Object.getOwnPropertySymbols(t);U<_.length;U++)e.indexOf(_[U])<0&&Object.prototype.propertyIsEnumerable.call(t,_[U])&&(o[_[U]]=t[_[U]]);return o}function iM(t,e,o,_){function U(te){return te instanceof o?te:new o(function(me){me(te)})}return new(o||(o=Promise))(function(te,me){function Le(Qe){try{je(_.next(Qe))}catch(nt){me(nt)}}function Re(Qe){try{je(_.throw(Qe))}catch(nt){me(nt)}}function je(Qe){Qe.done?te(Qe.value):U(Qe.value).then(Le,Re)}je((_=_.apply(t,e||[])).next())})}function aM(t,e){var o={label:0,sent:function(){if(te[0]&1)throw te[1];return te[1]},trys:[],ops:[]},_,U,te,me;return me={next:Le(0),throw:Le(1),return:Le(2)},typeof Symbol=="function"&&(me[Symbol.iterator]=function(){return this}),me;function Le(je){return function(Qe){return Re([je,Qe])}}function Re(je){if(_)throw new TypeError("Generator is already executing.");for(;me&&(me=0,je[0]&&(o=0)),o;)try{if(_=1,U&&(te=je[0]&2?U.return:je[0]?U.throw||((te=U.return)&&te.call(U),0):U.next)&&!(te=te.call(U,je[1])).done)return te;switch(U=0,te&&(je=[je[0]&2,te.value]),je[0]){case 0:case 1:te=je;break;case 4:return o.label++,{value:je[1],done:!1};case 5:o.label++,U=je[1],je=[0];continue;case 7:je=o.ops.pop(),o.trys.pop();continue;default:if(te=o.trys,!(te=te.length>0&&te[te.length-1])&&(je[0]===6||je[0]===2)){o=0;continue}if(je[0]===3&&(!te||je[1]>te[0]&&je[1]<te[3])){o.label=je[1];break}if(je[0]===6&&o.label<te[1]){o.label=te[1],te=je;break}if(te&&o.label<te[2]){o.label=te[2],o.ops.push(je);break}te[2]&&o.ops.pop(),o.trys.pop();continue}je=e.call(t,o)}catch(Qe){je=[6,Qe],U=0}finally{_=te=0}if(je[0]&5)throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}}var gr,mr;(function(t){t.AddChild="add-child",t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddParent="add-parent",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Announcement="announcement",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayObject="array-object",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsArc="arrows-arc",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.BackwardTen="backward-ten",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.BinaryNumber="binary-number",t.Blank="blank",t.BlockPromote="block-promote",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.BranchLocked="branch-locked",t.BranchUnlocked="branch-unlocked",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.BritishPound="british-pound",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Bullseye="bullseye",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.ClipboardFile="clipboard-file",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudServer="cloud-server",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Construction="construction",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CssStyle="css-style",t.CubeAdd="cube-add",t.CubeEdit="cube-edit",t.CubeRemove="cube-remove",t.Cube="cube",t.Cubes="cubes",t.CurlyBraces="curly-braces",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataCloud="data-cloud",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.DataSearch="data-search",t.DataSync="data-sync",t.Database="database",t.DeleteClip="delete-clip",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentCode="document-code",t.DocumentLocked="document-locked",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Excavator="excavator",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.FighterJet="fighter-jet",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.FilterSortAsc="filter-sort-asc",t.FilterSortDesc="filter-sort-desc",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.ForwardTen="forward-ten",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GiftBox="gift-box",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetworkAdd="globe-network-add",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.Hexagon="hexagon",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutBottomRowThreeTiles="layout-bottom-row-three-tiles",t.LayoutBottomRowTwoTiles="layout-bottom-row-two-tiles",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLeftColumnThreeTiles="layout-left-column-three-tiles",t.LayoutLeftColumnTwoTiles="layout-left-column-two-tiles",t.LayoutLinear="layout-linear",t.LayoutRightColumnThreeTiles="layout-right-column-three-tiles",t.LayoutRightColumnTwoTiles="layout-right-column-two-tiles",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.LayoutThreeColumns="layout-three-columns",t.LayoutThreeRows="layout-three-rows",t.LayoutTopRowThreeTiles="layout-top-row-three-tiles",t.LayoutTopRowTwoTiles="layout-top-row-two-tiles",t.LayoutTwoColumns="layout-two-columns",t.LayoutTwoRows="layout-two-rows",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.LinkedSquares="linked-squares",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsAdd="notifications-add",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.ObjectView="object-view",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.Output="output",t.Package="package",t.PageBreak="page-break",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Panel="panel",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.PhoneSearch="phone-search",t.Phone="phone",t.PieChart="pie-chart",t.Pill="pill",t.Pin="pin",t.Pistol="pistol",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.RangeRing="range-ring",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RootFolder="root-folder",t.RotateCcw="rotate-ccw",t.RotateCw="rotate-cw",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.RunHistory="run-history",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.SelectionBoxAdd="selection-box-add",t.SelectionBoxEdit="selection-box-edit",t.SelectionBoxRemove="selection-box-remove",t.SelectionBox="selection-box",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.ServerInstall="server-install",t.Server="server",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.SubtractRightJoin="subtract-right-join",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Sweep="sweep",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.TableSync="table-sync",t.TagAdd="tag-add",t.TagPromote="tag-promote",t.TagRefresh="tag-refresh",t.TagUndo="tag-undo",t.Tag="tag",t.Tags="tags",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThAdd="th-add",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThListAdd="th-list-add",t.ThList="th-list",t.ThVirtualAdd="th-virtual-add",t.ThVirtual="th-virtual",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.Vector="vector",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.WrenchRedo="wrench-redo",t.WrenchSnooze="wrench-snooze",t.WrenchTime="wrench-time",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(mr||(mr={}));gr={},gr[mr.AddChild]="62365",gr[mr.AddClip]="61697",gr[mr.AddColumnLeft]="61698",gr[mr.AddColumnRight]="61699",gr[mr.AddLocation]="61700",gr[mr.AddParent]="62366",gr[mr.AddRowBottom]="61701",gr[mr.AddRowTop]="61702",gr[mr.AddToArtifact]="61703",gr[mr.AddToFolder]="61704",gr[mr.Add]="61705",gr[mr.AimpointsTarget]="62261",gr[mr.Airplane]="61706",gr[mr.AlignCenter]="61707",gr[mr.AlignJustify]="61708",gr[mr.AlignLeft]="61709",gr[mr.AlignRight]="61710",gr[mr.AlignmentBottom]="61711",gr[mr.AlignmentHorizontalCenter]="61712",gr[mr.AlignmentLeft]="61713",gr[mr.AlignmentRight]="61714",gr[mr.AlignmentTop]="61715",gr[mr.AlignmentVerticalCenter]="61716",gr[mr.Ammunition]="62274",gr[mr.Anchor]="62256",gr[mr.Annotation]="61717",gr[mr.Announcement]="62358",gr[mr.Antenna]="61718",gr[mr.AppHeader]="61719",gr[mr.Application]="61720",gr[mr.Applications]="61721",gr[mr.Archive]="61722",gr[mr.AreaOfInterest]="61723",gr[mr.ArrayBoolean]="61724",gr[mr.ArrayDate]="61725",gr[mr.ArrayFloatingPoint]="62253",gr[mr.ArrayNumeric]="61726",gr[mr.ArrayObject]="62356",gr[mr.ArrayString]="61727",gr[mr.ArrayTimestamp]="61728",gr[mr.Array]="61729",gr[mr.ArrowBottomLeft]="61730",gr[mr.ArrowBottomRight]="61731",gr[mr.ArrowDown]="61732",gr[mr.ArrowLeft]="61733",gr[mr.ArrowRight]="61734",gr[mr.ArrowTopLeft]="61735",gr[mr.ArrowTopRight]="61736",gr[mr.ArrowUp]="61737",gr[mr.ArrowsArc]="62343",gr[mr.ArrowsHorizontal]="61738",gr[mr.ArrowsVertical]="61739",gr[mr.Asterisk]="61740",gr[mr.At]="62257",gr[mr.AutomaticUpdates]="61741",gr[mr.Axle]="62264",gr[mr.Backlink]="61742",gr[mr.BackwardTen]="62300",gr[mr.Badge]="61743",gr[mr.BanCircle]="61744",gr[mr.BankAccount]="61745",gr[mr.Barcode]="61746",gr[mr.BinaryNumber]="62295",gr[mr.Blank]="61747",gr[mr.BlockPromote]="62322",gr[mr.BlockedPerson]="61748",gr[mr.Bold]="61749",gr[mr.Book]="61750",gr[mr.Bookmark]="61751",gr[mr.Box]="61752",gr[mr.BranchLocked]="62374",gr[mr.BranchUnlocked]="62375",gr[mr.Briefcase]="61753",gr[mr.BringData]="61754",gr[mr.BringForward]="62292",gr[mr.BritishPound]="62342",gr[mr.Bug]="62254",gr[mr.Buggy]="61755",gr[mr.Build]="61756",gr[mr.Bullseye]="62297",gr[mr.Calculator]="61757",gr[mr.Calendar]="61758",gr[mr.Camera]="61759",gr[mr.CaretDown]="61760",gr[mr.CaretLeft]="61761",gr[mr.CaretRight]="61762",gr[mr.CaretUp]="61763",gr[mr.CargoShip]="61764",gr[mr.CellTower]="61765",gr[mr.Changes]="61766",gr[mr.Chart]="61767",gr[mr.Chat]="61768",gr[mr.ChevronBackward]="61769",gr[mr.ChevronDown]="61770",gr[mr.ChevronForward]="61771",gr[mr.ChevronLeft]="61772",gr[mr.ChevronRight]="61773",gr[mr.ChevronUp]="61774",gr[mr.CircleArrowDown]="61775",gr[mr.CircleArrowLeft]="61776",gr[mr.CircleArrowRight]="61777",gr[mr.CircleArrowUp]="61778",gr[mr.Circle]="61779",gr[mr.Citation]="61780",gr[mr.Clean]="61781",gr[mr.Clip]="61782",gr[mr.ClipboardFile]="62299",gr[mr.Clipboard]="61783",gr[mr.CloudDownload]="61784",gr[mr.CloudServer]="62298",gr[mr.CloudTick]="62286",gr[mr.CloudUpload]="61785",gr[mr.Cloud]="61786",gr[mr.CodeBlock]="61787",gr[mr.Code]="61788",gr[mr.Cog]="61789",gr[mr.CollapseAll]="61790",gr[mr.ColorFill]="62248",gr[mr.ColumnLayout]="61791",gr[mr.Comment]="61792",gr[mr.Comparison]="61793",gr[mr.Compass]="61794",gr[mr.Compressed]="61795",gr[mr.Confirm]="61796",gr[mr.Console]="61797",gr[mr.Construction]="62357",gr[mr.Contrast]="61798",gr[mr.Control]="61799",gr[mr.CreditCard]="61800",gr[mr.Crop]="62291",gr[mr.CrossCircle]="62262",gr[mr.Cross]="61801",gr[mr.Crown]="61802",gr[mr.CssStyle]="62315",gr[mr.CubeAdd]="61803",gr[mr.CubeEdit]="62339",gr[mr.CubeRemove]="61804",gr[mr.Cube]="61805",gr[mr.Cubes]="62323",gr[mr.CurlyBraces]="62296",gr[mr.CurvedRangeChart]="61806",gr[mr.Cut]="61807",gr[mr.Cycle]="61808",gr[mr.Dashboard]="61809",gr[mr.DataCloud]="62353",gr[mr.DataConnection]="61810",gr[mr.DataLineage]="61811",gr[mr.DataSearch]="62319",gr[mr.DataSync]="62316",gr[mr.Database]="61812",gr[mr.DeleteClip]="62371",gr[mr.Delete]="61813",gr[mr.Delta]="61814",gr[mr.DeriveColumn]="61815",gr[mr.Desktop]="61816",gr[mr.Detection]="62273",gr[mr.Diagnosis]="61817",gr[mr.DiagramTree]="61818",gr[mr.DirectionLeft]="61819",gr[mr.DirectionRight]="61820",gr[mr.Disable]="61821",gr[mr.Divide]="62247",gr[mr.DocumentCode]="62368",gr[mr.DocumentLocked]="62369",gr[mr.DocumentOpen]="61822",gr[mr.DocumentShare]="61823",gr[mr.Document]="61824",gr[mr.Dollar]="61825",gr[mr.Dot]="61826",gr[mr.DoubleCaretHorizontal]="61827",gr[mr.DoubleCaretVertical]="61828",gr[mr.DoubleChevronDown]="61829",gr[mr.DoubleChevronLeft]="61830",gr[mr.DoubleChevronRight]="61831",gr[mr.DoubleChevronUp]="61832",gr[mr.DoughnutChart]="61833",gr[mr.Download]="61834",gr[mr.DragHandleHorizontal]="61835",gr[mr.DragHandleVertical]="61836",gr[mr.Draw]="61837",gr[mr.DrawerLeftFilled]="61838",gr[mr.DrawerLeft]="61839",gr[mr.DrawerRightFilled]="61840",gr[mr.DrawerRight]="61841",gr[mr.DriveTime]="61842",gr[mr.Duplicate]="61843",gr[mr.Edit]="61844",gr[mr.Eject]="61845",gr[mr.Emoji]="61846",gr[mr.Endnote]="62294",gr[mr.Endorsed]="61847",gr[mr.Envelope]="61848",gr[mr.Equals]="61849",gr[mr.Eraser]="61850",gr[mr.Error]="61851",gr[mr.Euro]="61852",gr[mr.Excavator]="62317",gr[mr.Exchange]="61853",gr[mr.ExcludeRow]="61854",gr[mr.ExpandAll]="61855",gr[mr.Explain]="62285",gr[mr.Export]="61856",gr[mr.EyeOff]="61857",gr[mr.EyeOn]="61858",gr[mr.EyeOpen]="61859",gr[mr.FastBackward]="61860",gr[mr.FastForward]="61861",gr[mr.FeedSubscribed]="61862",gr[mr.Feed]="61863",gr[mr.FighterJet]="62340",gr[mr.Film]="61864",gr[mr.FilterKeep]="61865",gr[mr.FilterList]="61866",gr[mr.FilterOpen]="61867",gr[mr.FilterRemove]="61868",gr[mr.FilterSortAsc]="62350",gr[mr.FilterSortDesc]="62351",gr[mr.Filter]="61869",gr[mr.Flag]="61870",gr[mr.Flame]="61871",gr[mr.Flash]="61872",gr[mr.FloatingPoint]="62252",gr[mr.FloppyDisk]="61873",gr[mr.FlowBranch]="61874",gr[mr.FlowEnd]="61875",gr[mr.FlowLinear]="61876",gr[mr.FlowReviewBranch]="61877",gr[mr.FlowReview]="61878",gr[mr.Flows]="61879",gr[mr.FolderClose]="61880",gr[mr.FolderNew]="61881",gr[mr.FolderOpen]="61882",gr[mr.FolderSharedOpen]="61883",gr[mr.FolderShared]="61884",gr[mr.Follower]="61885",gr[mr.Following]="61886",gr[mr.Font]="61887",gr[mr.Fork]="61888",gr[mr.Form]="61889",gr[mr.ForwardTen]="62301",gr[mr.Fuel]="62243",gr[mr.FullCircle]="61890",gr[mr.FullStackedChart]="61891",gr[mr.Fullscreen]="61892",gr[mr.Function]="61893",gr[mr.GanttChart]="61894",gr[mr.Generate]="62284",gr[mr.Geofence]="61895",gr[mr.Geolocation]="61896",gr[mr.Geosearch]="61897",gr[mr.Geotime]="62276",gr[mr.GiftBox]="62370",gr[mr.GitBranch]="61898",gr[mr.GitCommit]="61899",gr[mr.GitMerge]="61900",gr[mr.GitNewBranch]="61901",gr[mr.GitPull]="61902",gr[mr.GitPush]="61903",gr[mr.GitRepo]="61904",gr[mr.Glass]="61905",gr[mr.GlobeNetworkAdd]="62338",gr[mr.GlobeNetwork]="61906",gr[mr.Globe]="61907",gr[mr.GraphRemove]="61908",gr[mr.Graph]="61909",gr[mr.GreaterThanOrEqualTo]="61910",gr[mr.GreaterThan]="61911",gr[mr.GridView]="61912",gr[mr.Grid]="61913",gr[mr.GroupItem]="62282",gr[mr.GroupObjects]="61914",gr[mr.GroupedBarChart]="61915",gr[mr.HandDown]="61916",gr[mr.HandLeft]="61917",gr[mr.HandRight]="61918",gr[mr.HandUp]="61919",gr[mr.Hand]="61920",gr[mr.Hat]="61921",gr[mr.HeaderOne]="61922",gr[mr.HeaderThree]="61923",gr[mr.HeaderTwo]="61924",gr[mr.Header]="61925",gr[mr.Headset]="61926",gr[mr.HeartBroken]="61927",gr[mr.Heart]="61928",gr[mr.HeatGrid]="61929",gr[mr.Heatmap]="61930",gr[mr.Helicopter]="61931",gr[mr.Help]="61932",gr[mr.HelperManagement]="61933",gr[mr.Hexagon]="62324",gr[mr.HighPriority]="61934",gr[mr.HighVoltagePole]="62259",gr[mr.Highlight]="61935",gr[mr.History]="61936",gr[mr.Home]="61937",gr[mr.HorizontalBarChartAsc]="61938",gr[mr.HorizontalBarChartDesc]="61939",gr[mr.HorizontalBarChart]="61940",gr[mr.HorizontalDistribution]="61941",gr[mr.HorizontalInbetween]="62249",gr[mr.Hurricane]="61942",gr[mr.IdNumber]="61943",gr[mr.ImageRotateLeft]="61944",gr[mr.ImageRotateRight]="61945",gr[mr.Import]="61946",gr[mr.InboxFiltered]="61947",gr[mr.InboxGeo]="61948",gr[mr.InboxSearch]="61949",gr[mr.InboxUpdate]="61950",gr[mr.Inbox]="61951",gr[mr.InfoSign]="61952",gr[mr.Inheritance]="61953",gr[mr.InheritedGroup]="61954",gr[mr.InnerJoin]="61955",gr[mr.Input]="62283",gr[mr.Insert]="61956",gr[mr.Intelligence]="62263",gr[mr.Intersection]="61957",gr[mr.IpAddress]="61958",gr[mr.IssueClosed]="61959",gr[mr.IssueNew]="61960",gr[mr.Issue]="61961",gr[mr.Italic]="61962",gr[mr.JoinTable]="61963",gr[mr.KeyBackspace]="61964",gr[mr.KeyCommand]="61965",gr[mr.KeyControl]="61966",gr[mr.KeyDelete]="61967",gr[mr.KeyEnter]="61968",gr[mr.KeyEscape]="61969",gr[mr.KeyOption]="61970",gr[mr.KeyShift]="61971",gr[mr.KeyTab]="61972",gr[mr.Key]="61973",gr[mr.KnownVehicle]="61974",gr[mr.LabTest]="61975",gr[mr.Label]="61976",gr[mr.LayerOutline]="61977",gr[mr.Layer]="61978",gr[mr.Layers]="61979",gr[mr.LayoutAuto]="61980",gr[mr.LayoutBalloon]="61981",gr[mr.LayoutBottomRowThreeTiles]="62308",gr[mr.LayoutBottomRowTwoTiles]="62307",gr[mr.LayoutCircle]="61982",gr[mr.LayoutGrid]="61983",gr[mr.LayoutGroupBy]="61984",gr[mr.LayoutHierarchy]="61985",gr[mr.LayoutLeftColumnThreeTiles]="62310",gr[mr.LayoutLeftColumnTwoTiles]="62309",gr[mr.LayoutLinear]="61986",gr[mr.LayoutRightColumnThreeTiles]="62312",gr[mr.LayoutRightColumnTwoTiles]="62311",gr[mr.LayoutSkewGrid]="61987",gr[mr.LayoutSortedClusters]="61988",gr[mr.LayoutThreeColumns]="62305",gr[mr.LayoutThreeRows]="62306",gr[mr.LayoutTopRowThreeTiles]="62314",gr[mr.LayoutTopRowTwoTiles]="62313",gr[mr.LayoutTwoColumns]="62303",gr[mr.LayoutTwoRows]="62304",gr[mr.Layout]="61989",gr[mr.Learning]="61990",gr[mr.LeftJoin]="61991",gr[mr.LengthenText]="62270",gr[mr.LessThanOrEqualTo]="61992",gr[mr.LessThan]="61993",gr[mr.Lifesaver]="61994",gr[mr.Lightbulb]="61995",gr[mr.Lightning]="61996",gr[mr.Link]="61997",gr[mr.LinkedSquares]="62341",gr[mr.ListColumns]="61998",gr[mr.ListDetailView]="61999",gr[mr.List]="62000",gr[mr.Locate]="62001",gr[mr.Lock]="62002",gr[mr.Locomotive]="62267",gr[mr.LogIn]="62003",gr[mr.LogOut]="62004",gr[mr.LowVoltagePole]="62258",gr[mr.Manual]="62005",gr[mr.ManuallyEnteredData]="62006",gr[mr.ManyToMany]="62007",gr[mr.ManyToOne]="62008",gr[mr.MapCreate]="62009",gr[mr.MapMarker]="62010",gr[mr.Map]="62011",gr[mr.Maximize]="62012",gr[mr.Media]="62013",gr[mr.MenuClosed]="62014",gr[mr.MenuOpen]="62015",gr[mr.Menu]="62016",gr[mr.MergeColumns]="62017",gr[mr.MergeLinks]="62018",gr[mr.Microphone]="62275",gr[mr.Minimize]="62019",gr[mr.Minus]="62020",gr[mr.MobilePhone]="62021",gr[mr.MobileVideo]="62022",gr[mr.ModalFilled]="62023",gr[mr.Modal]="62024",gr[mr.Model]="62269",gr[mr.Moon]="62025",gr[mr.More]="62026",gr[mr.Mountain]="62027",gr[mr.Move]="62028",gr[mr.Mugshot]="62029",gr[mr.MultiSelect]="62030",gr[mr.Music]="62031",gr[mr.Nest]="62032",gr[mr.NewDrawing]="62033",gr[mr.NewGridItem]="62034",gr[mr.NewLayer]="62035",gr[mr.NewLayers]="62036",gr[mr.NewLink]="62037",gr[mr.NewObject]="62038",gr[mr.NewPerson]="62039",gr[mr.NewPrescription]="62040",gr[mr.NewShield]="62281",gr[mr.NewTextBox]="62041",gr[mr.Ninja]="62042",gr[mr.NotEqualTo]="62043",gr[mr.NotificationsAdd]="62360",gr[mr.NotificationsSnooze]="62044",gr[mr.NotificationsUpdated]="62045",gr[mr.Notifications]="62046",gr[mr.NumberedList]="62047",gr[mr.Numerical]="62048",gr[mr.ObjectView]="62352",gr[mr.Office]="62049",gr[mr.Offline]="62050",gr[mr.OilField]="62051",gr[mr.OneColumn]="62052",gr[mr.OneToMany]="62053",gr[mr.OneToOne]="62054",gr[mr.OpenApplication]="62251",gr[mr.Outdated]="62055",gr[mr.Output]="62320",gr[mr.Package]="62325",gr[mr.PageBreak]="62373",gr[mr.PageLayout]="62056",gr[mr.PanelStats]="62057",gr[mr.PanelTable]="62058",gr[mr.Panel]="62337",gr[mr.Paperclip]="62059",gr[mr.Paragraph]="62060",gr[mr.PasteVariable]="62278",gr[mr.PathSearch]="62061",gr[mr.Path]="62062",gr[mr.Pause]="62063",gr[mr.People]="62064",gr[mr.Percentage]="62065",gr[mr.Person]="62066",gr[mr.PhoneCall]="62279",gr[mr.PhoneForward]="62280",gr[mr.PhoneSearch]="62359",gr[mr.Phone]="62067",gr[mr.PieChart]="62068",gr[mr.Pill]="62326",gr[mr.Pin]="62069",gr[mr.Pistol]="62364",gr[mr.PivotTable]="62070",gr[mr.Pivot]="62071",gr[mr.Play]="62072",gr[mr.Playbook]="62244",gr[mr.Plus]="62073",gr[mr.PolygonFilter]="62074",gr[mr.Power]="62075",gr[mr.PredictiveAnalysis]="62076",gr[mr.Prescription]="62077",gr[mr.Presentation]="62078",gr[mr.Print]="62079",gr[mr.Projects]="62080",gr[mr.Properties]="62081",gr[mr.Property]="62082",gr[mr.PublishFunction]="62083",gr[mr.Pulse]="62084",gr[mr.Rain]="62085",gr[mr.Random]="62086",gr[mr.RangeRing]="62321",gr[mr.Record]="62087",gr[mr.RectHeight]="62245",gr[mr.RectWidth]="62246",gr[mr.Rectangle]="62241",gr[mr.Redo]="62088",gr[mr.Refresh]="62089",gr[mr.Regex]="62255",gr[mr.RegressionChart]="62090",gr[mr.RemoveColumnLeft]="62091",gr[mr.RemoveColumnRight]="62092",gr[mr.RemoveColumn]="62093",gr[mr.RemoveRowBottom]="62094",gr[mr.RemoveRowTop]="62095",gr[mr.Remove]="62096",gr[mr.Repeat]="62097",gr[mr.Reset]="62098",gr[mr.Resolve]="62099",gr[mr.Rig]="62100",gr[mr.RightJoin]="62101",gr[mr.Ring]="62102",gr[mr.RocketSlant]="62103",gr[mr.Rocket]="62104",gr[mr.RootFolder]="62367",gr[mr.RotateCcw]="62345",gr[mr.RotateCw]="62344",gr[mr.RotateDocument]="62105",gr[mr.RotatePage]="62106",gr[mr.Route]="62107",gr[mr.RunHistory]="62355",gr[mr.Satellite]="62108",gr[mr.Saved]="62109",gr[mr.ScatterPlot]="62110",gr[mr.SearchAround]="62111",gr[mr.SearchTemplate]="62112",gr[mr.SearchText]="62113",gr[mr.Search]="62114",gr[mr.SegmentedControl]="62115",gr[mr.Select]="62116",gr[mr.SelectionBoxAdd]="62362",gr[mr.SelectionBoxEdit]="62363",gr[mr.SelectionBoxRemove]="62376",gr[mr.SelectionBox]="62361",gr[mr.Selection]="62117",gr[mr.SendBackward]="62293",gr[mr.SendMessage]="62118",gr[mr.SendToGraph]="62119",gr[mr.SendToMap]="62120",gr[mr.SendTo]="62121",gr[mr.Sensor]="62268",gr[mr.SeriesAdd]="62122",gr[mr.SeriesConfiguration]="62123",gr[mr.SeriesDerived]="62124",gr[mr.SeriesFiltered]="62125",gr[mr.SeriesSearch]="62126",gr[mr.ServerInstall]="62327",gr[mr.Server]="62328",gr[mr.Settings]="62127",gr[mr.Shapes]="62128",gr[mr.Share]="62129",gr[mr.SharedFilter]="62130",gr[mr.Shield]="62131",gr[mr.Ship]="62132",gr[mr.Shop]="62133",gr[mr.ShoppingCart]="62134",gr[mr.ShortenText]="62271",gr[mr.SignalSearch]="62135",gr[mr.SimCard]="62136",gr[mr.Slash]="62137",gr[mr.SmallCross]="62138",gr[mr.SmallInfoSign]="62260",gr[mr.SmallMinus]="62139",gr[mr.SmallPlus]="62140",gr[mr.SmallSquare]="62141",gr[mr.SmallTick]="62142",gr[mr.Snowflake]="62143",gr[mr.SoccerBall]="62288",gr[mr.SocialMedia]="62144",gr[mr.SortAlphabeticalDesc]="62145",gr[mr.SortAlphabetical]="62146",gr[mr.SortAsc]="62147",gr[mr.SortDesc]="62148",gr[mr.SortNumericalDesc]="62149",gr[mr.SortNumerical]="62150",gr[mr.Sort]="62151",gr[mr.SpellCheck]="62272",gr[mr.SplitColumns]="62152",gr[mr.SportsStadium]="62289",gr[mr.Square]="62153",gr[mr.StackedChart]="62154",gr[mr.StadiumGeometry]="62155",gr[mr.StarEmpty]="62156",gr[mr.Star]="62157",gr[mr.StepBackward]="62158",gr[mr.StepChart]="62159",gr[mr.StepForward]="62160",gr[mr.Stop]="62161",gr[mr.Stopwatch]="62162",gr[mr.Strikethrough]="62163",gr[mr.Style]="62164",gr[mr.Subscript]="62265",gr[mr.SubtractRightJoin]="62354",gr[mr.Superscript]="62266",gr[mr.SwapHorizontal]="62165",gr[mr.SwapVertical]="62166",gr[mr.Sweep]="62372",gr[mr.Switch]="62167",gr[mr.SymbolCircle]="62168",gr[mr.SymbolCross]="62169",gr[mr.SymbolDiamond]="62170",gr[mr.SymbolRectangle]="62242",gr[mr.SymbolSquare]="62171",gr[mr.SymbolTriangleDown]="62172",gr[mr.SymbolTriangleUp]="62173",gr[mr.Syringe]="62174",gr[mr.TableSync]="62318",gr[mr.TagAdd]="62329",gr[mr.TagPromote]="62330",gr[mr.TagRefresh]="62331",gr[mr.TagUndo]="62332",gr[mr.Tag]="62175",gr[mr.Tags]="62333",gr[mr.TakeAction]="62176",gr[mr.Tank]="62177",gr[mr.Target]="62178",gr[mr.Taxi]="62179",gr[mr.Team]="62290",gr[mr.Temperature]="62180",gr[mr.TextHighlight]="62181",gr[mr.ThAdd]="62346",gr[mr.ThDerived]="62182",gr[mr.ThDisconnect]="62183",gr[mr.ThFiltered]="62184",gr[mr.ThListAdd]="62347",gr[mr.ThList]="62185",gr[mr.ThVirtualAdd]="62349",gr[mr.ThVirtual]="62348",gr[mr.Th]="62186",gr[mr.ThirdParty]="62187",gr[mr.ThumbsDown]="62188",gr[mr.ThumbsUp]="62189",gr[mr.TickCircle]="62190",gr[mr.Tick]="62191",gr[mr.Time]="62192",gr[mr.TimelineAreaChart]="62193",gr[mr.TimelineBarChart]="62194",gr[mr.TimelineEvents]="62195",gr[mr.TimelineLineChart]="62196",gr[mr.Tint]="62197",gr[mr.Torch]="62198",gr[mr.Tractor]="62199",gr[mr.Train]="62200",gr[mr.Translate]="62201",gr[mr.Trash]="62202",gr[mr.Tree]="62203",gr[mr.TrendingDown]="62204",gr[mr.TrendingUp]="62205",gr[mr.Trophy]="62287",gr[mr.Truck]="62206",gr[mr.TwoColumns]="62207",gr[mr.Unarchive]="62208",gr[mr.Underline]="62209",gr[mr.Undo]="62210",gr[mr.UngroupObjects]="62211",gr[mr.UnknownVehicle]="62212",gr[mr.Unlink]="62277",gr[mr.Unlock]="62213",gr[mr.Unpin]="62214",gr[mr.Unresolve]="62215",gr[mr.Updated]="62216",gr[mr.Upload]="62217",gr[mr.User]="62218",gr[mr.Variable]="62219",gr[mr.Vector]="62302",gr[mr.VerticalBarChartAsc]="62220",gr[mr.VerticalBarChartDesc]="62221",gr[mr.VerticalDistribution]="62222",gr[mr.VerticalInbetween]="62250",gr[mr.Video]="62223",gr[mr.Virus]="62224",gr[mr.VolumeDown]="62225",gr[mr.VolumeOff]="62226",gr[mr.VolumeUp]="62227",gr[mr.Walk]="62228",gr[mr.WarningSign]="62229",gr[mr.WaterfallChart]="62230",gr[mr.Waves]="62231",gr[mr.WidgetButton]="62232",gr[mr.WidgetFooter]="62233",gr[mr.WidgetHeader]="62234",gr[mr.Widget]="62235",gr[mr.Wind]="62236",gr[mr.WrenchRedo]="62334",gr[mr.WrenchSnooze]="62335",gr[mr.WrenchTime]="62336",gr[mr.Wrench]="62237",gr[mr.ZoomIn]="62238",gr[mr.ZoomOut]="62239",gr[mr.ZoomToFit]="62240";var $G={},XG={};for(var Dz=0,Nj=Object.values(mr);Dz<Nj.length;Dz++){var L6=Nj[Dz];$G[Ece(L6)]=L6,XG[Mce(L6).toUpperCase()]=L6}var YG=_0(_0({},$G),XG),Lce=new Set(Object.values(YG));function Pce(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function Rce(t,e){return iM(this,void 0,void 0,function(){var o,_,U;return aM(this,function(te){switch(te.label){case 0:return o=Pce("development")&&typeof performance<"u",o&&(_=performance.now(),console.info("Started '".concat(t,"'..."))),[4,e()];case 1:return te.sent(),o&&(U=Math.round(performance.now()-_),console.info("Finished '".concat(t,"' in ").concat(U,"ms"))),[2]}})})}function Ice(t){return iM(this,void 0,void 0,function(){var e,o;return aM(this,function(_){switch(_.label){case 0:return e=t.loader,o=e===void 0?eM.defaultLoader:e,typeof o!="function"?[3,1]:[2,o];case 1:return o!=="all"?[3,3]:[4,qN(()=>import("./allPathsLoader-C-JecT3u.js"),[])];case 2:return[2,_.sent().allPathsLoader];case 3:return[4,qN(()=>import("./splitPathsBySizeLoader-CBTnepth.js"),[])];case 4:return[2,_.sent().splitPathsBySizeLoader]}})})}var W5=(function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(e){e.loader!==void 0&&(eM.defaultLoader=e.loader)},t.load=function(e,o,_){return iM(this,void 0,void 0,function(){var U=this;return aM(this,function(te){switch(te.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map(function(me){return U.loadImpl(me,o,_)}))];case 1:return te.sent(),[2]}})})},t.loadAll=function(e){return iM(this,void 0,void 0,function(){var o,_=this;return aM(this,function(U){return o=Object.values(YG),Rce("[Blueprint] loading all icons",function(){return iM(_,void 0,void 0,function(){return aM(this,function(te){switch(te.label){case 0:return[4,Promise.all([this.load(o,hc.STANDARD,e),this.load(o,hc.LARGE,e)])];case 1:return te.sent(),[2]}})})}),[2]})})},t.getPaths=function(e,o){if(this.isValidIconName(e)){var _=o<hc.LARGE?eM.loadedIconPaths16:eM.loadedIconPaths20;return _.get(e)}},t.loadImpl=function(e,o,_){return _===void 0&&(_={}),iM(this,void 0,void 0,function(){var U,te,me,Le,Re;return aM(this,function(je){switch(je.label){case 0:return this.isValidIconName(e)?(U=o<hc.LARGE?eM.loadedIconPaths16:eM.loadedIconPaths20,U.has(e)?[2]:[4,Ice(_)]):(console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2]);case 1:te=je.sent(),je.label=2;case 2:return je.trys.push([2,4,,5]),me=o<hc.LARGE?hc.STANDARD:hc.LARGE,[4,te(e,me)];case 3:return Le=je.sent(),U.set(e,Le),[3,5];case 4:return Re=je.sent(),console.error("[Blueprint] Unable to load ".concat(o,"px icon '").concat(e,"'"),Re),[3,5];case 5:return[2]}})})},t.isValidIconName=function(e){return Lce.has(e)},t})(),eM=new W5,Dce="bp5",Fj="".concat(Dce,"-icon"),Bj=new Map;function Oce(t){var e,o=(e=Bj.get(t))!==null&&e!==void 0?e:0;return Bj.set(t,o+1),"".concat(t,"-").concat(o)}var C2=vr.forwardRef(function(t,e){var o=t.children,_=t.className,U=t.color,te=t.htmlTitle,me=t.iconName,Le=t.size,Re=Le===void 0?hc.STANDARD:Le,je=t.svgProps,Qe=t.tagName,nt=Qe===void 0?"span":Qe,yt=t.title,Wt=kce(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),Bt=Re>=hc.LARGE,rr=Bt?hc.LARGE:hc.STANDARD,Nt="0 0 ".concat(rr," ").concat(rr),Se=Oce("iconTitle"),lr=_0({fill:U,height:Re,role:"img",viewBox:Nt,width:Re},je);return nt===null?vr.createElement("svg",_0({"aria-labelledby":yt?Se:void 0,"data-icon":me,ref:e},lr,Wt,{className:Wl(_,je?.className)}),yt&&vr.createElement("title",{id:Se},yt),o):vr.createElement(nt,_0(_0({"aria-hidden":yt?void 0:!0},Wt),{className:Wl(Fj,"".concat(Fj,"-").concat(me),_),ref:e,title:te}),vr.createElement("svg",_0({"data-icon":me},lr,{className:je?.className}),yt&&vr.createElement("title",null,yt),o))});C2.displayName="Blueprint5.SVGIconContainer";var P4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"caret-right",ref:e},t),vr.createElement("path",{d:o?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});P4.defaultProps={size:hc.STANDARD};P4.displayName="Blueprint5.Icon.CaretRight";var R4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"error",ref:e},t),vr.createElement("path",{d:o?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM220 80H180V120H220V80zM220 140H180V320H220V140z":"M159.8 320.2C71.4 320.2 -0.2 248.6 -0.2 160.2S71.4 0.2 159.8 0.2S319.8 71.8 319.8 160.2S248.2 320.2 159.8 320.2zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V260.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});R4.defaultProps={size:hc.STANDARD};R4.displayName="Blueprint5.Icon.Error";var I4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"info-sign",ref:e},t),vr.createElement("path",{d:o?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM180 320H220V280H180V320zM260 80H140V100H180V240H160V260H220V100H260V80z":"M160 320C71.6 320 0 248.4 0 160S71.6 0 160 0S320 71.6 320 160S248.4 320 160 320zM140 260H180V220H140V260zM200 60H120V80H140V180H120V200H180V80H200V60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});I4.defaultProps={size:hc.STANDARD};I4.displayName="Blueprint5.Icon.InfoSign";var CD=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"small-cross",ref:e},t),vr.createElement("path",{d:o?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});CD.defaultProps={size:hc.STANDARD};CD.displayName="Blueprint5.Icon.SmallCross";var D4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"small-tick",ref:e},t),vr.createElement("path",{d:o?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});D4.defaultProps={size:hc.STANDARD};D4.displayName="Blueprint5.Icon.SmallTick";var O4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"tick",ref:e},t),vr.createElement("path",{d:o?"M340 320C334.4 320 329.4 317.8 325.8 314.2L140 128.2L74.2 194C70.6 197.8 65.6 200 60 200C49 200 40 191 40 180C40 174.4 42.2 169.4 45.8 165.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L354.2000000000001 285.8C357.8 289.4 360 294.4 360 300C360 311 351 320 340 320z":"M280 260C274.4000000000001 260 269.4000000000001 257.8 265.8 254.2L120 108.2L54.2 174.2C50.6 177.8 45.6 180 40 180C29 180 20 171 20 160C20 154.4 22.2 149.4 25.8 145.8L105.8 65.8C109.4 62.2 114.4 60 120 60S130.6 62.2 134.2 65.8L294.2000000000001 225.8C297.8 229.4 300 234.4 300 240C300 251 291 260 280 260z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});O4.defaultProps={size:hc.STANDARD};O4.displayName="Blueprint5.Icon.Tick";var z4=vr.forwardRef(function(t,e){var o=t.size>=hc.LARGE,_=o?hc.LARGE:hc.STANDARD,U="".concat(-1*_/.05/2),te={transformOrigin:"center"};return vr.createElement(C2,_0({iconName:"warning-sign",ref:e},t),vr.createElement("path",{d:o?"M397.2 49.6C397.2 49.6 397.4000000000001 49.8000000000001 397.4000000000001 49.8000000000001L217.4 369.8000000000001C217.4 369.8000000000001 217.2 369.6 217.2 369.6C213.8 375.8 207.4 380 200 380S186.2 375.8 182.8 369.6L182.6 369.8L2.6 49.8L2.8 49.5999999999999C1.2 46.8 0 43.6 0 40C0 29 9 20 20 20H380C391 20 400 29 400 40C400 43.6 398.8 46.8 397.2 49.6zM220 60H180V100H220V60zM220 120H180V280H220V120z":"M316.8 50L317 50.2L177 290.2L176.8 290C173.4 296 167.2 300 159.8 300S146.4 296 142.8 290C142.8 290 142.6 290.2 142.6 290.2L2.6 50.2L2.8 50C1 47 -0.2 43.8 -0.2 40C-0.2 29 8.8 20 19.8 20H299.8C310.8 20 319.8 29 319.8 40C319.8 43.8 318.6 47 316.8 50zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V220.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(U,", ").concat(U,")"),style:te}))});z4.defaultProps={size:hc.STANDARD};z4.displayName="Blueprint5.Icon.WarningSign";var Bg=vr.forwardRef(function(t,e){var o,_,U=t.autoLoad,te=U===void 0?!0:U,me=t.className,Le=t.color,Re=t.icon,je=t.intent,Qe=t.tagName,nt=Qe===void 0?"span":Qe,yt=t.svgProps,Wt=t.title,Bt=t.htmlTitle,rr=Wp(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),Nt=(_=(o=t.iconSize)!==null&&o!==void 0?o:t.size)!==null&&_!==void 0?_:hc.STANDARD,Se=vr.useState(function(){return typeof Re=="string"?W5.getPaths(Re,Nt):void 0}),lr=Se[0],Zt=Se[1];if(vr.useEffect(function(){var Jt=!1;if(typeof Re=="string"){var Ur=W5.getPaths(Re,Nt);Ur!==void 0?Zt(Ur):te?W5.load(Re,Nt).then(function(){Jt||Zt(W5.getPaths(Re,Nt))}).catch(function(Lr){console.error("[Blueprint] Icon '".concat(Re,"' (").concat(Nt,"px) could not be loaded."),Lr)}):console.error("[Blueprint] Icon '".concat(Re,"' (").concat(Nt,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(Re,"', ").concat(Nt,")?"))}return function(){Jt=!0}},[te,Re,Nt]),Re==null||typeof Re=="boolean")return null;if(typeof Re!="string")return Re;if(lr==null){var $t=Nt===hc.STANDARD?Tue:Nt===hc.LARGE?Sue:void 0;return vr.createElement(nt||"span",Ys(Ys({"aria-hidden":Wt?void 0:!0},zS(rr)),{className:Wl(A4,$t,Eue(Re),Fy(je),me),"data-icon":Re,ref:e,title:Bt}))}else{var kt=lr.map(function(Jt,Ur){return vr.createElement("path",{d:Jt,key:Ur,fillRule:"evenodd"})});return vr.createElement(C2,Ys({children:kt,className:Wl(Fy(je),me),color:Le,htmlTitle:Bt,iconName:Re,ref:e,size:Nt,svgProps:yt,tagName:nt,title:Wt},zS(rr)))}});Bg.displayName="".concat(Gf,".Icon");var T3;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(T3||(T3={}));var TS=45,Uj="M 50,50 m 0,-".concat(TS," a ").concat(TS,",").concat(TS," 0 1 1 0,").concat(TS*2," a ").concat(TS,",").concat(TS," 0 1 1 0,-").concat(TS*2),N5=280,zce=10,Nce=4,Fce=16,N4=function(t){var e,o=t.className,_=o===void 0?"":o,U=t.intent,te=t.value,me=t.tagName,Le=me===void 0?"div":me,Re=t.size,je=Wp(t,["className","intent","value","tagName","size"]);L4(function(){var Bt=Re!=null,rr=_.indexOf(MI)>=0||_.indexOf(mL)>=0;Bt&&rr&&console.warn(ice)},[_,Re]);var Qe=Bce(Re,_),nt=Math.min(Fce,Nce*T3.LARGE/Qe),yt=N5-N5*(te==null?.25:jG(te,0,1)),Wt=Wl(AD,Fy(U),(e={},e[pue]=te!=null,e),_);return vr.createElement(Le,Ys({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":te===void 0?void 0:te*100,className:Wt,role:"progressbar"},je),vr.createElement(Le,{className:hue},vr.createElement("svg",{width:Qe,height:Qe,strokeWidth:nt.toFixed(2),viewBox:Uce(nt)},vr.createElement("path",{className:vue,d:Uj}),vr.createElement("path",{className:due,d:Uj,pathLength:N5,strokeDasharray:"".concat(N5," ").concat(N5),strokeDashoffset:yt}))))};N4.displayName="".concat(Gf,".Spinner");var Bce=function(t,e){return t==null?e.indexOf(MI)>=0?T3.SMALL:e.indexOf(mL)>=0?T3.LARGE:T3.STANDARD:Math.max(zce,t)},Uce=function(t){var e=TS+t/2,o=(50-e).toFixed(2),_=(e*2).toFixed(2);return"".concat(o," ").concat(o," ").concat(_," ").concat(_)},jce=UG()?vr.useLayoutEffect:vr.useEffect,MD=vr.forwardRef(function(t,e){var o,_=t.children,U=t.tagName,te=U===void 0?"div":U,me=t.title,Le=t.className,Re=t.ellipsize,je=Re===void 0?!1:Re,Qe=Wp(t,["children","tagName","title","className","ellipsize"]),nt=vr.useRef(),yt=vr.useMemo(function(){return N3(nt,e)},[e]),Wt=vr.useState(""),Bt=Wt[0],rr=Wt[1],Nt=vr.useState(),Se=Nt[0],lr=Nt[1];return jce(function(){var Zt;((Zt=nt.current)===null||Zt===void 0?void 0:Zt.textContent)!=null&&(lr(je&&nt.current.scrollWidth>nt.current.clientWidth),rr(nt.current.textContent))},[nt,_,je]),vr.createElement(te,Ys(Ys({},Qe),{className:Wl((o={},o[hle]=je,o),Le),ref:yt,title:me??(Se?Bt:void 0)}),_)});MD.displayName="".concat(Gf,".Text");var x_=vr.forwardRef(function(t,e){var o=ZG(t,e);return vr.createElement("button",Ys({type:"button"},zS(t),o),KG(t))});x_.displayName="".concat(Gf,".Button");var ZN=vr.forwardRef(function(t,e){var o=t.href,_=ZG(t,e,{defaultTabIndex:0,disabledTabIndex:-1});return vr.createElement("a",Ys({role:"button"},zS(t),_,{"aria-disabled":_.disabled,href:_.disabled?void 0:o}),KG(t))});ZN.displayName="".concat(Gf,".AnchorButton");function ZG(t,e,o){var _,U=t.alignText,te=t.fill,me=t.large,Le=t.loading,Re=Le===void 0?!1:Le,je=t.minimal,Qe=t.outlined,nt=t.size,yt=nt===void 0?"medium":nt,Wt=t.small,Bt=t.variant,rr=Bt===void 0?"solid":Bt,Nt=t.disabled||Re,Se=GG(!Nt,t,e,o),lr=Se[0],Zt=Se[1],$t=Wl(bD,(_={},_[vL]=lr,_[JL]=Nt,_[O3]=te,_[lle]=Re,_),E4(U),Fy(t.intent),VM(yt,{large:me,small:Wt}),Cue(rr,{minimal:je,outlined:Qe}),t.className);return Ys(Ys({},Zt),{className:$t,disabled:Nt})}function KG(t){var e=t.children,o=t.ellipsizeText,_=t.endIcon,U=t.icon,te=t.loading,me=t.rightIcon,Le=t.text,Re=t.textClassName,je=!_L(Le)||!_L(e);return vr.createElement(vr.Fragment,null,te&&vr.createElement(N4,{className:_le,size:T3.SMALL}),vr.createElement(Bg,{icon:U}),je&&vr.createElement(MD,{className:Wl(xle,Re),ellipsize:o,tagName:"span"},Le,e),vr.createElement(Bg,{icon:_??me}))}function M_(t,e){return vr.forwardRef(function(o,_){var U=o.className,te=o.children,me=Wp(o,["className","children"]);return vr.createElement(t,Ys(Ys({},me),{className:Wl(e,U),ref:_}),te)})}var Vce=M_("h1",UM),tM=M_("h2",UM);M_("h3",UM);var JG=M_("h4",UM),qce=M_("h5",UM),Hce=M_("h6",UM);M_("blockquote",dle);M_("code",ple);M_("pre",vle);M_("label",Fle);M_("ol",kG);M_("ul",kG);function Ug(){return Ug=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var _ in o)({}).hasOwnProperty.call(o,_)&&(t[_]=o[_])}return t},Ug.apply(null,arguments)}function kD(t,e){if(t==null)return{};var o={};for(var _ in t)if({}.hasOwnProperty.call(t,_)){if(e.indexOf(_)!==-1)continue;o[_]=t[_]}return o}function LI(t,e){return LI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,_){return o.__proto__=_,o},LI(t,e)}function F4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,LI(t,e)}var Oz={exports:{}},zz,jj;function Gce(){if(jj)return zz;jj=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zz=t,zz}var Nz,Vj;function Wce(){if(Vj)return Nz;Vj=1;var t=Gce();function e(){}function o(){}return o.resetWarningCache=e,Nz=function(){function _(me,Le,Re,je,Qe,nt){if(nt!==t){var yt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw yt.name="Invariant Violation",yt}}_.isRequired=_;function U(){return _}var te={array:_,bigint:_,bool:_,func:_,number:_,object:_,string:_,symbol:_,any:_,arrayOf:U,element:_,elementType:_,instanceOf:U,node:_,objectOf:U,oneOf:U,oneOfType:U,shape:U,exact:U,checkPropTypes:o,resetWarningCache:e};return te.PropTypes=te,te},Nz}var qj;function $ce(){return qj||(qj=1,Oz.exports=Wce()()),Oz.exports}function Xce(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Yce(t,e){t.classList?t.classList.add(e):Xce(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Hj(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Zce(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Hj(t.className,e):t.setAttribute("class",Hj(t.className&&t.className.baseVal||"",e))}var eP=MH();const y3=Uy(eP),Kce=CH({__proto__:null,default:y3},[eP]),Gj={disabled:!1},PI=Ts.createContext(null);var QG=function(e){return e.scrollTop},$5="unmounted",c3="exited",f3="entering",rM="entered",KN="exiting",M2=(function(t){F4(e,t);function e(_,U){var te;te=t.call(this,_,U)||this;var me=U,Le=me&&!me.isMounting?_.enter:_.appear,Re;return te.appearStatus=null,_.in?Le?(Re=c3,te.appearStatus=f3):Re=rM:_.unmountOnExit||_.mountOnEnter?Re=$5:Re=c3,te.state={status:Re},te.nextCallback=null,te}e.getDerivedStateFromProps=function(U,te){var me=U.in;return me&&te.status===$5?{status:c3}:null};var o=e.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(U){var te=null;if(U!==this.props){var me=this.state.status;this.props.in?me!==f3&&me!==rM&&(te=f3):(me===f3||me===rM)&&(te=KN)}this.updateStatus(!1,te)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var U=this.props.timeout,te,me,Le;return te=me=Le=U,U!=null&&typeof U!="number"&&(te=U.exit,me=U.enter,Le=U.appear!==void 0?U.appear:me),{exit:te,enter:me,appear:Le}},o.updateStatus=function(U,te){if(U===void 0&&(U=!1),te!==null)if(this.cancelNextCallback(),te===f3){if(this.props.unmountOnExit||this.props.mountOnEnter){var me=this.props.nodeRef?this.props.nodeRef.current:y3.findDOMNode(this);me&&QG(me)}this.performEnter(U)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c3&&this.setState({status:$5})},o.performEnter=function(U){var te=this,me=this.props.enter,Le=this.context?this.context.isMounting:U,Re=this.props.nodeRef?[Le]:[y3.findDOMNode(this),Le],je=Re[0],Qe=Re[1],nt=this.getTimeouts(),yt=Le?nt.appear:nt.enter;if(!U&&!me||Gj.disabled){this.safeSetState({status:rM},function(){te.props.onEntered(je)});return}this.props.onEnter(je,Qe),this.safeSetState({status:f3},function(){te.props.onEntering(je,Qe),te.onTransitionEnd(yt,function(){te.safeSetState({status:rM},function(){te.props.onEntered(je,Qe)})})})},o.performExit=function(){var U=this,te=this.props.exit,me=this.getTimeouts(),Le=this.props.nodeRef?void 0:y3.findDOMNode(this);if(!te||Gj.disabled){this.safeSetState({status:c3},function(){U.props.onExited(Le)});return}this.props.onExit(Le),this.safeSetState({status:KN},function(){U.props.onExiting(Le),U.onTransitionEnd(me.exit,function(){U.safeSetState({status:c3},function(){U.props.onExited(Le)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(U,te){te=this.setNextCallback(te),this.setState(U,te)},o.setNextCallback=function(U){var te=this,me=!0;return this.nextCallback=function(Le){me&&(me=!1,te.nextCallback=null,U(Le))},this.nextCallback.cancel=function(){me=!1},this.nextCallback},o.onTransitionEnd=function(U,te){this.setNextCallback(te);var me=this.props.nodeRef?this.props.nodeRef.current:y3.findDOMNode(this),Le=U==null&&!this.props.addEndListener;if(!me||Le){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var Re=this.props.nodeRef?[this.nextCallback]:[me,this.nextCallback],je=Re[0],Qe=Re[1];this.props.addEndListener(je,Qe)}U!=null&&setTimeout(this.nextCallback,U)},o.render=function(){var U=this.state.status;if(U===$5)return null;var te=this.props,me=te.children;te.in,te.mountOnEnter,te.unmountOnExit,te.appear,te.enter,te.exit,te.timeout,te.addEndListener,te.onEnter,te.onEntering,te.onEntered,te.onExit,te.onExiting,te.onExited,te.nodeRef;var Le=kD(te,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ts.createElement(PI.Provider,{value:null},typeof me=="function"?me(U,Le):Ts.cloneElement(Ts.Children.only(me),Le))},e})(Ts.Component);M2.contextType=PI;M2.propTypes={};function KC(){}M2.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:KC,onEntering:KC,onEntered:KC,onExit:KC,onExiting:KC,onExited:KC};M2.UNMOUNTED=$5;M2.EXITED=c3;M2.ENTERING=f3;M2.ENTERED=rM;M2.EXITING=KN;var Jce=function(e,o){return e&&o&&o.split(" ").forEach(function(_){return Yce(e,_)})},Fz=function(e,o){return e&&o&&o.split(" ").forEach(function(_){return Zce(e,_)})},K5=(function(t){F4(e,t);function e(){for(var _,U=arguments.length,te=new Array(U),me=0;me<U;me++)te[me]=arguments[me];return _=t.call.apply(t,[this].concat(te))||this,_.appliedClasses={appear:{},enter:{},exit:{}},_.onEnter=function(Le,Re){var je=_.resolveArguments(Le,Re),Qe=je[0],nt=je[1];_.removeClasses(Qe,"exit"),_.addClass(Qe,nt?"appear":"enter","base"),_.props.onEnter&&_.props.onEnter(Le,Re)},_.onEntering=function(Le,Re){var je=_.resolveArguments(Le,Re),Qe=je[0],nt=je[1],yt=nt?"appear":"enter";_.addClass(Qe,yt,"active"),_.props.onEntering&&_.props.onEntering(Le,Re)},_.onEntered=function(Le,Re){var je=_.resolveArguments(Le,Re),Qe=je[0],nt=je[1],yt=nt?"appear":"enter";_.removeClasses(Qe,yt),_.addClass(Qe,yt,"done"),_.props.onEntered&&_.props.onEntered(Le,Re)},_.onExit=function(Le){var Re=_.resolveArguments(Le),je=Re[0];_.removeClasses(je,"appear"),_.removeClasses(je,"enter"),_.addClass(je,"exit","base"),_.props.onExit&&_.props.onExit(Le)},_.onExiting=function(Le){var Re=_.resolveArguments(Le),je=Re[0];_.addClass(je,"exit","active"),_.props.onExiting&&_.props.onExiting(Le)},_.onExited=function(Le){var Re=_.resolveArguments(Le),je=Re[0];_.removeClasses(je,"exit"),_.addClass(je,"exit","done"),_.props.onExited&&_.props.onExited(Le)},_.resolveArguments=function(Le,Re){return _.props.nodeRef?[_.props.nodeRef.current,Le]:[Le,Re]},_.getClassNames=function(Le){var Re=_.props.classNames,je=typeof Re=="string",Qe=je&&Re?Re+"-":"",nt=je?""+Qe+Le:Re[Le],yt=je?nt+"-active":Re[Le+"Active"],Wt=je?nt+"-done":Re[Le+"Done"];return{baseClassName:nt,activeClassName:yt,doneClassName:Wt}},_}var o=e.prototype;return o.addClass=function(U,te,me){var Le=this.getClassNames(te)[me+"ClassName"],Re=this.getClassNames("enter"),je=Re.doneClassName;te==="appear"&&me==="done"&&je&&(Le+=" "+je),me==="active"&&U&&QG(U),Le&&(this.appliedClasses[te][me]=Le,Jce(U,Le))},o.removeClasses=function(U,te){var me=this.appliedClasses[te],Le=me.base,Re=me.active,je=me.done;this.appliedClasses[te]={},Le&&Fz(U,Le),Re&&Fz(U,Re),je&&Fz(U,je)},o.render=function(){var U=this.props;U.classNames;var te=kD(U,["classNames"]);return Ts.createElement(M2,Ug({},te,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e})(Ts.Component);K5.defaultProps={classNames:""};K5.propTypes={};function PS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B4(t,e){var o=function(te){return e&&vr.isValidElement(te)?e(te):te},_=Object.create(null);return t&&vr.Children.map(t,function(U){return U}).forEach(function(U){_[U.key]=o(U)}),_}function Qce(t,e){t=t||{},e=e||{};function o(Qe){return Qe in e?e[Qe]:t[Qe]}var _=Object.create(null),U=[];for(var te in t)te in e?U.length&&(_[te]=U,U=[]):U.push(te);var me,Le={};for(var Re in e){if(_[Re])for(me=0;me<_[Re].length;me++){var je=_[Re][me];Le[_[Re][me]]=o(je)}Le[Re]=o(Re)}for(me=0;me<U.length;me++)Le[U[me]]=o(U[me]);return Le}function _3(t,e,o){return o[e]!=null?o[e]:t.props[e]}function efe(t,e){return B4(t.children,function(o){return vr.cloneElement(o,{onExited:e.bind(null,o),in:!0,appear:_3(o,"appear",t),enter:_3(o,"enter",t),exit:_3(o,"exit",t)})})}function tfe(t,e,o){var _=B4(t.children),U=Qce(e,_);return Object.keys(U).forEach(function(te){var me=U[te];if(vr.isValidElement(me)){var Le=te in e,Re=te in _,je=e[te],Qe=vr.isValidElement(je)&&!je.props.in;Re&&(!Le||Qe)?U[te]=vr.cloneElement(me,{onExited:o.bind(null,me),in:!0,exit:_3(me,"exit",t),enter:_3(me,"enter",t)}):!Re&&Le&&!Qe?U[te]=vr.cloneElement(me,{in:!1}):Re&&Le&&vr.isValidElement(je)&&(U[te]=vr.cloneElement(me,{onExited:o.bind(null,me),in:je.props.in,exit:_3(me,"exit",t),enter:_3(me,"enter",t)}))}}),U}var rfe=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},nfe={component:"div",childFactory:function(e){return e}},U4=(function(t){F4(e,t);function e(_,U){var te;te=t.call(this,_,U)||this;var me=te.handleExited.bind(PS(te));return te.state={contextValue:{isMounting:!0},handleExited:me,firstRender:!0},te}var o=e.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(U,te){var me=te.children,Le=te.handleExited,Re=te.firstRender;return{children:Re?efe(U,Le):tfe(U,me,Le),firstRender:!1}},o.handleExited=function(U,te){var me=B4(this.props.children);U.key in me||(U.props.onExited&&U.props.onExited(te),this.mounted&&this.setState(function(Le){var Re=Ug({},Le.children);return delete Re[U.key],{children:Re}}))},o.render=function(){var U=this.props,te=U.component,me=U.childFactory,Le=kD(U,["component","childFactory"]),Re=this.state.contextValue,je=rfe(this.state.children).map(me);return delete Le.appear,delete Le.enter,delete Le.exit,te===null?Ts.createElement(PI.Provider,{value:Re},je):Ts.createElement(PI.Provider,{value:Re},Ts.createElement(te,Le,je))},e})(Ts.Component);U4.propTypes={};U4.defaultProps=nfe;var ife=function(){var t=1,e=new WeakMap,o=function(_,U){return typeof _=="number"||typeof _=="string"?U?"idx-".concat(U):"val-".concat(_):e.has(_)?"uid"+e.get(_):(e.set(_,t++),o(_))};return o},eW=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:ife()}},afe=eW(),ofe=vr.createContext(eW()),sfe=function(t){return t.value++},lfe=function(t){return t?t.prefix:""},ufe=function(t){var e=t||afe,o=lfe(e),_=sfe(e),U=o+_,te=function(me){return U+e.uid(me)};return{uid:U,gen:te}},cfe=function(){var t=vr.useContext(ofe),e=vr.useState(function(){return ufe(t)})[0];return e},ffe=function(){var t=cfe().uid;return t},hfe=vr.createContext({hasProvider:!1,stack:{current:[]}}),Bz={exports:{}},Uz={};/**
|
|
51
51
|
* @license React
|
|
52
52
|
* use-sync-external-store-shim.production.js
|
|
53
53
|
*
|
|
@@ -4669,5 +4669,5 @@ maplibre-gl/dist/maplibre-gl.js:
|
|
|
4669
4669
|
return val;
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
|
-
`;eZ(RAe,IAe);class Uv extends Ef{constructor(){super(Al(Uv.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Al(Uv.getDefaults(),arguments,["solo"]);this.input=this.output=new Q0({context:this.context}),Uv._allSolos.has(this.context)||Uv._allSolos.set(this.context,new Set),Uv._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(Ef.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),Uv._allSolos.get(this.context).forEach(o=>o._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){Uv._soloed.has(this.context)||Uv._soloed.set(this.context,new Set),Uv._soloed.get(this.context).add(this)}_removeSolo(){Uv._soloed.has(this.context)&&Uv._soloed.get(this.context).delete(this)}_isSoloed(){return Uv._soloed.has(this.context)&&Uv._soloed.get(this.context).has(this)}_noSolos(){return!Uv._soloed.has(this.context)||Uv._soloed.has(this.context)&&Uv._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),Uv._allSolos.get(this.context).delete(this),this._removeSolo(),this}}Uv._allSolos=new Map;Uv._soloed=new Map;class fD extends Ef{constructor(){super(Al(fD.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Al(fD.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new cD({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new G3({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,hv(this,["pan","volume"])}static getDefaults(){return Object.assign(Ef.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class v3 extends Ef{constructor(){super(Al(v3.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Al(v3.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new Uv({solo:e.solo,context:this.context}),this._panVol=this.output=new fD({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),hv(this,["pan","volume"])}static getDefaults(){return Object.assign(Ef.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return v3.buses.has(e)||v3.buses.set(e,new Q0({context:this.context})),v3.buses.get(e)}send(e,o=0){const _=this._getBus(e),U=new Q0({context:this.context,units:"decibels",gain:o});return this.connect(U),U.connect(_),U}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}v3.buses=new Map;class DAe extends Ef{constructor(){super(...arguments),this.name="Listener",this.positionX=new yp({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new yp({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new yp({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new yp({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new yp({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new yp({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new yp({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new yp({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new yp({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(Ef.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}QD(t=>{t.listener=new DAe({context:t})});eO(t=>{t.listener.dispose()});function OAe(){return y_().now()}y_().transport;y_().destination;y_().destination;y_().listener;y_().draw;y_();const zAe=[{note:"C4",duration:0},{note:"B3",duration:.2}],NAe=[{note:"C5",duration:0},{note:"E5",duration:.2}],wH=.3;function TH(t,e){const o=OAe(),_=new FM().toDestination();t.forEach(U=>{_.triggerAttack(U.note,o+U.duration)}),_.triggerRelease(`+${e}`)}function FAe(t){return Ts.useEffect(()=>{const e=()=>{t.status=="failed"?TH(zAe,wH):t.status=="passed"&&TH(NAe,wH)};t.status&&e()},[t.status]),Aa.jsx(Aa.Fragment,{})}const BAe=({isVisible:t,testPassed:e,testStopped:o,failedTestCases:_=[],stoppedTestCase:U,onDismiss:te,onVisibilityChange:me,autoDismissPass:Le=!0,autoDismissTimeout:Re=5})=>{const{t:je}=BM(),[Qe,nt]=vr.useState(Re);if(vr.useEffect(()=>{me?.(t),t&&nt(Re)},[t,me,Re]),vr.useEffect(()=>{if(t&&e&&Le){nt(Re);const Ln=setInterval(()=>{nt(Zn=>Zn<=1?(clearInterval(Ln),0):Zn-1)},1e3),ci=setTimeout(()=>{te()},Re*1e3);return()=>{clearInterval(Ln),clearTimeout(ci)}}},[t,e,te,Le,Re]),!t)return null;let yt;o?yt="rgba(255, 179, 0, 0.95)":e?yt="rgba(15, 153, 96, 0.95)":yt="rgba(219, 55, 55, 0.95)";let Wt,Bt;o?(Wt="STOP",Bt=je("app.status.stopped")
|
|
4673
|
-
`)[0]})]},ci))]}),In=!e||!Le;return Aa.jsxs("div",{style:rr,onClick:Ur,className:WN,children:[Aa.jsx("div",{style:Nt,children:Wt}),Aa.jsx("div",{style:Se,children:Bt}),o&&Lr(),!e&&!o&&xn(),In&&Aa.jsx("div",{style:Jt,children:je("app.modalResultDismissHint")||"Click anywhere or press any key to dismiss"}),e&&Le&&Aa.jsx("div",{style:Jt,children:je("app.modalResultAutoDismissHint",{seconds:Qe})+" "+je("app.modalResultDismissHint")||`Auto-dismissing in ${Qe} seconds...`})]})},SH={ULTRAWIDE:490,WIDE:400},tZ={ready:"app.status.ready",run:"app.status.run",passed:"app.status.passed",failed:"app.status.failed",stopped:"app.status.stopped"},UAe=t=>t in tZ,jAe=t=>{if(!t.modules)return;for(const[o,_]of Object.entries(t.modules))if(_.cases){for(const[U,te]of Object.entries(_.cases))if(te.status==="stopped")return{moduleName:_.name||o,caseName:te.name||U,assertionMsg:te.assertion_msg||void 0}}let e=null;for(const[o,_]of Object.entries(t.modules))if(_.cases)for(const[U,te]of Object.entries(_.cases))te.status==="failed"&&(e={moduleName:_.name||o,caseName:te.name||U,assertionMsg:te.assertion_msg||void 0});return e};function VAe({syncDocumentId:t}){const{t:e}=BM(),[o,_]=vr.useState(!1),[U,te]=vr.useState(!1),[me,Le]=vr.useState(null),[Re,je]=vr.useState(!1),[Qe,nt]=vr.useState("ready"),[yt,Wt]=vr.useState(0),[Bt,rr]=vr.useState(!0),[Nt,Se]=vr.useState(0),[lr,Zt]=vr.useState(!1),[$t,kt]=vr.useState(null),Jt=vr.useRef(null),[Ur,Lr]=vr.useState(null);vr.useEffect(()=>{(async()=>{try{const Wn=await(await fetch("/api/hardpy_config")).json();Le(Wn),Wn.frontend.sound_on!==void 0&&_(Wn.frontend.sound_on)}catch(Oi){console.error("Failed to load HardPy config:",Oi)}finally{je(!0)}})()},[]);const xn=Zi=>{const[Oi,Wn]=vr.useState(0);return vr.useEffect(()=>{function En(){Wn(window.innerWidth)}return window.addEventListener("resize",En),En(),()=>{window.removeEventListener("resize",En)}},[Wn]),Oi>Zi},In=xn(SH.ULTRAWIDE),Ln=xn(SH.WIDE),ci=vr.useCallback(Zi=>{},[]);vr.useEffect(()=>{const Zi=Oi=>{if(lr&&(Oi.preventDefault(),Oi.stopPropagation(),Oi.stopImmediatePropagation(),Zt(!1),kt(null),Oi.key===" ")){Oi.preventDefault();const Wn=document.activeElement;Wn&&Wn.blur&&Wn.blur()}};if(lr)return document.addEventListener("keydown",Zi,{capture:!0,passive:!1}),()=>{document.removeEventListener("keydown",Zi,{capture:!0})}},[lr]),vr.useEffect(()=>{if(Qe==="run"){if(Jt.current!==null){const Zi=()=>{const Wn=Math.floor(Date.now()/1e3);Se(Wn-Jt.current)};Zi();const Oi=setInterval(Zi,1e3);return Lr(Oi),()=>{Oi&&clearInterval(Oi)}}}else Ur&&(clearInterval(Ur),Lr(null))},[Qe]);function Zn(Zi,Oi){for(let Wn=0;Wn<Zi.length;Wn++)if(Zi[Wn].id===Oi)return Wn;return-1}const{rows:ai,state:ua,loading:Qi,error:ta}=bse({include_docs:!0});vr.useEffect(()=>{if(ai.length===0)return;const Zi=Zn(ai,t);if(Zi===-1)return;const Oi=ai[Zi].doc,Wn=Oi.status||"",En=Oi.progress||0;if(Wn!==Qe&&nt(UAe(Wn)?Wn:"unknown"),En!==yt&&Wt(En),Oi.start_time&&(Jt.current=Oi.start_time,Oi.stop_time&&Wn!=="run")){const Oa=Oi.stop_time-Oi.start_time;Oa!==Nt&&Se(Oa)}const aa=Qe,Ci=me?.frontend?.modal_result?.enable??!1;if(aa!=="run"&&Wn==="run"&&lr&&(Zt(!1),kt(null)),Ci&&aa==="run"&&(Wn==="passed"||Wn==="failed"||Wn==="stopped")&&!lr){const Oa=Wn==="passed",Ca=Wn==="stopped",Po=[];!Oa&&!Ca&&Oi.modules&&Object.entries(Oi.modules).forEach(([Za,dl])=>{dl.cases&&Object.entries(dl.cases).forEach(([mo,Co])=>{Co.status==="failed"&&Po.push({moduleName:dl.name||Za,caseName:Co.name||mo,assertionMsg:Co.assertion_msg||void 0})})});const Eo=Ca?jAe(Oi):void 0;kt({testPassed:Oa,testStopped:Ca,failedTestCases:Po,stoppedTestCase:Eo}),Zt(!0)}ua==="error"?rr(!1):Bt===!1&&rr(!0)},[ai,ua,Qe,yt,Nt,Bt,me,lr]);const Nn=()=>{if(Qi&&ai.length===0)return Aa.jsx(SS,{style:{marginTop:"60px"},children:Aa.jsx(tM,{children:e("app.connection")})});if(ua==="error")return Aa.jsxs(SS,{style:{marginTop:"60px"},children:[Aa.jsx(tM,{children:e("app.dbError")}),ta&&Aa.jsx("p",{children:ta.message})]});if(ai.length===0)return Aa.jsx(SS,{style:{marginTop:"60px"},children:Aa.jsx(tM,{children:e("app.noEntries")})});const Zi=Zn(ai,t);if(Zi===-1)return Aa.jsxs(SS,{style:{marginTop:"60px"},children:[Aa.jsx(tM,{children:e("app.dbError")}),ta&&Aa.jsx("p",{children:ta.message})]});const Oi=ai[Zi];if(!Oi)return Aa.jsxs(SS,{style:{marginTop:"60px"},children:[Aa.jsx(tM,{children:e("app.dbError")}),ta&&Aa.jsx("p",{children:ta.message})]});const Wn=Oi.doc;return Aa.jsx("div",{style:{marginTop:"40px"},children:Aa.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[(In||!U)&&Aa.jsx(SS,{style:{flexDirection:"column",padding:"20px",flexGrow:1,flexShrink:1,marginTop:"20px",marginBottom:"20px"},children:Aa.jsx(jxe,{db_state:Wn,defaultClose:!In})}),U&&Aa.jsx(SS,{style:{flexDirection:"column",padding:"20px",marginTop:"20px",marginBottom:"20px"},children:Aa.jsx("pre",{children:JSON.stringify(Wn,null,2)})})]},Oi.id)})},Qn=()=>Aa.jsxs(V4,{children:[Aa.jsx(rF,{shouldDismissPopover:!1,text:e(o?"app.soundOff":"app.soundOn"),icon:o?"volume-up":"volume-off",id:"use_end_test_sound",onClick:()=>_(!o)}),Aa.jsx(rF,{shouldDismissPopover:!1,text:e(U?"app.debugOff":"app.debugOn"),icon:"bug",id:"use_debug_info",onClick:()=>te(!U)})]}),Ai=Zi=>Zi==="unknown"?e("app.status.unknown")||"Unknown status":e(tZ[Zi]),Mn=me?.frontend?.full_size_button!==!1,Yn=()=>{Zt(!1),kt(null)};return Aa.jsxs("div",{className:"App",children:[Aa.jsx(Hxe,{reload_timeout_s:3}),Aa.jsxs(b1,{fixedToTop:!0,style:{background:Rj.LIGHT_GRAY4,margin:"auto"},children:[Aa.jsxs(b1.Group,{align:CS.LEFT,children:[Aa.jsxs(b1.Heading,{id:"main-heading",children:[Aa.jsx("div",{className:"logo-smol"}),Ln&&Aa.jsx("div",{children:Aa.jsx("b",{children:In?e("app.title"):"HardPy"})})]}),Ln&&Aa.jsx(b1.Divider,{}),Aa.jsxs("div",{style:{display:"flex",flexDirection:Ln?"row":"column",alignItems:"center",gap:Ln?"10px":"2px",fontSize:Ln?"inherit":"12px"},children:[Aa.jsxs(b1.Heading,{id:"last-exec-heading",style:{margin:0,display:"flex",alignItems:"center",gap:"5px",whiteSpace:"nowrap",flexWrap:Ln?"nowrap":"wrap"},children:[Aa.jsx("div",{children:e("app.lastLaunch")}),Aa.jsx("div",{children:Ai(Qe)}),Aa.jsx(uL,{status:Qe==="unknown"?"":Qe})]}),o&&Aa.jsx(FAe,{status:Qe},"sound"),Ln&&Aa.jsx(b1.Divider,{}),Aa.jsxs(b1.Heading,{style:{whiteSpace:"nowrap"},children:[e("app.duration"),": ",Nt,"s"]})]}),Aa.jsx(b1.Divider,{})]}),Aa.jsx(b1.Group,{align:CS.RIGHT,children:Aa.jsx(Z4,{content:Qn(),children:Aa.jsx(x_,{className:"bp3-minimal",icon:"cog"})})})]}),Aa.jsx("div",{className:Lle,style:{marginBottom:"60px"},children:Nn()}),Re&&Aa.jsx("div",{className:Ple,style:{width:"100%",display:"flex",flexDirection:"column",position:"fixed",bottom:0,background:Rj.LIGHT_GRAY5,margin:"auto"},children:Mn?Aa.jsxs(Aa.Fragment,{children:[Aa.jsx("div",{style:{width:"100%",padding:"10px 20px 0px 20px"},children:Aa.jsx(rH,{percentage:yt,status:Qe})}),Aa.jsx("div",{style:{width:"100%",padding:"10px 20px",display:"flex",justifyContent:"center"},children:Aa.jsx("div",{style:{width:"100%"},children:Aa.jsx(dV,{testing_status:Qe,useBigButton:!0})})})]}):Aa.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"row"},children:[Aa.jsx("div",{style:{flexDirection:"column",flexGrow:1,flexShrink:1,marginTop:"auto",marginBottom:"auto",padding:"20px"},children:Aa.jsx(rH,{percentage:yt,status:Qe})}),Aa.jsx("div",{style:{flexDirection:"column"},children:Aa.jsx(dV,{testing_status:Qe,useBigButton:!1})})]})}),Aa.jsx(BAe,{isVisible:lr,testPassed:$t?.testPassed||!1,testStopped:$t?.testStopped||!1,failedTestCases:$t?.failedTestCases||[],stoppedTestCase:$t?.stoppedTestCase,onDismiss:Yn,onVisibilityChange:ci,autoDismissPass:me?.frontend?.modal_result?.auto_dismiss_pass??!0,autoDismissTimeout:me?.frontend?.modal_result?.auto_dismiss_timeout??5})]})}function qAe(){const{t}=BM();return Aa.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[Aa.jsx("h1",{children:t("error.dbConnectionTitle")}),Aa.jsx("p",{children:t("error.dbConnectionMessage")})]})}async function HAe(){try{return`${(await(await fetch("/api/couch")).json()).connection_str}/statestore`}catch(t){console.error(t);return}}async function GAe(){try{return(await(await fetch("/api/database_document_id")).json()).document_id}catch(t){return console.error(t),"current"}}const AH=Ane.createRoot(document.getElementById("root")),EH=await HAe();if(EH!==void 0){const t=new jc(EH),e=await GAe();AH.render(Aa.jsx(vr.StrictMode,{children:Aa.jsx(hse,{pouchdb:t,children:Aa.jsx(VAe,{syncDocumentId:e})})}))}else AH.render(Aa.jsx(vr.StrictMode,{children:Aa.jsx(qAe,{})}));console.log=function(){},console.debug=function(){};export{hc as I,iM as _,aM as a,qN as b,Uy as g,Ece as p};
|
|
4672
|
+
`;eZ(RAe,IAe);class Uv extends Ef{constructor(){super(Al(Uv.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Al(Uv.getDefaults(),arguments,["solo"]);this.input=this.output=new Q0({context:this.context}),Uv._allSolos.has(this.context)||Uv._allSolos.set(this.context,new Set),Uv._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(Ef.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),Uv._allSolos.get(this.context).forEach(o=>o._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){Uv._soloed.has(this.context)||Uv._soloed.set(this.context,new Set),Uv._soloed.get(this.context).add(this)}_removeSolo(){Uv._soloed.has(this.context)&&Uv._soloed.get(this.context).delete(this)}_isSoloed(){return Uv._soloed.has(this.context)&&Uv._soloed.get(this.context).has(this)}_noSolos(){return!Uv._soloed.has(this.context)||Uv._soloed.has(this.context)&&Uv._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),Uv._allSolos.get(this.context).delete(this),this._removeSolo(),this}}Uv._allSolos=new Map;Uv._soloed=new Map;class fD extends Ef{constructor(){super(Al(fD.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Al(fD.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new cD({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new G3({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,hv(this,["pan","volume"])}static getDefaults(){return Object.assign(Ef.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class v3 extends Ef{constructor(){super(Al(v3.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Al(v3.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new Uv({solo:e.solo,context:this.context}),this._panVol=this.output=new fD({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),hv(this,["pan","volume"])}static getDefaults(){return Object.assign(Ef.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return v3.buses.has(e)||v3.buses.set(e,new Q0({context:this.context})),v3.buses.get(e)}send(e,o=0){const _=this._getBus(e),U=new Q0({context:this.context,units:"decibels",gain:o});return this.connect(U),U.connect(_),U}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}v3.buses=new Map;class DAe extends Ef{constructor(){super(...arguments),this.name="Listener",this.positionX=new yp({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new yp({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new yp({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new yp({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new yp({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new yp({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new yp({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new yp({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new yp({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(Ef.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}QD(t=>{t.listener=new DAe({context:t})});eO(t=>{t.listener.dispose()});function OAe(){return y_().now()}y_().transport;y_().destination;y_().destination;y_().listener;y_().draw;y_();const zAe=[{note:"C4",duration:0},{note:"B3",duration:.2}],NAe=[{note:"C5",duration:0},{note:"E5",duration:.2}],wH=.3;function TH(t,e){const o=OAe(),_=new FM().toDestination();t.forEach(U=>{_.triggerAttack(U.note,o+U.duration)}),_.triggerRelease(`+${e}`)}function FAe(t){return Ts.useEffect(()=>{const e=()=>{t.status=="failed"?TH(zAe,wH):t.status=="passed"&&TH(NAe,wH)};t.status&&e()},[t.status]),Aa.jsx(Aa.Fragment,{})}const BAe=({isVisible:t,testPassed:e,testStopped:o,failedTestCases:_=[],stoppedTestCase:U,onDismiss:te,onVisibilityChange:me,autoDismissPass:Le=!0,autoDismissTimeout:Re=5})=>{const{t:je}=BM(),[Qe,nt]=vr.useState(Re);if(vr.useEffect(()=>{me?.(t),t&&nt(Re)},[t,me,Re]),vr.useEffect(()=>{if(t&&e&&Le){nt(Re);const Ln=setInterval(()=>{nt(Zn=>Zn<=1?(clearInterval(Ln),0):Zn-1)},1e3),ci=setTimeout(()=>{te()},Re*1e3);return()=>{clearInterval(Ln),clearTimeout(ci)}}},[t,e,te,Le,Re]),!t)return null;let yt;o?yt="rgba(255, 179, 0, 0.95)":e?yt="rgba(15, 153, 96, 0.95)":yt="rgba(219, 55, 55, 0.95)";let Wt,Bt;o?(Wt="STOP",Bt=je("app.status.stopped")):e?(Wt="PASS",Bt=je("app.status.passed")):(Wt="FAIL",Bt=je("app.status.failed"));const rr={position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:yt,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",zIndex:9999,cursor:"pointer",color:"white",textAlign:"center",padding:"20px"},Nt={fontSize:"clamp(60px, 15vw, 120px)",fontWeight:"bold",marginBottom:"10px",textShadow:"0 4px 8px rgba(0,0,0,0.3)"},Se={fontSize:"clamp(24px, 6vw, 48px)",fontWeight:"bold",marginBottom:"30px",textShadow:"0 2px 4px rgba(0,0,0,0.3)"},lr={maxHeight:"50vh",overflowY:"auto",backgroundColor:"rgba(0,0,0,0.3)",borderRadius:"8px",padding:"15px",marginTop:"10px",width:"90%",maxWidth:"800px",marginBottom:"20px"},Zt={marginBottom:"12px",textAlign:"left",borderBottom:"1px solid rgba(255,255,255,0.2)",paddingBottom:"8px",wordBreak:"break-word"},$t={fontSize:"clamp(14px, 3vw, 18px)",fontWeight:"bold",marginBottom:"4px"},kt={fontSize:"clamp(12px, 2.5vw, 14px)",opacity:.9,fontStyle:"italic"},Jt={position:"absolute",bottom:"20px",fontSize:"clamp(12px, 3vw, 16px)",opacity:.8,width:"100%",textAlign:"center",padding:"0 10px"},Ur=()=>{te()},Lr=()=>U?Aa.jsxs("div",{style:lr,children:[Aa.jsxs("h3",{style:{marginTop:0,marginBottom:"15px",fontSize:"clamp(16px, 4vw, 24px)"},children:[je("app.stoppedTestCase")||"Stopped Test Case",":"]}),Aa.jsxs("div",{style:Zt,children:[Aa.jsxs("div",{style:$t,children:[U.moduleName," → ",U.caseName]}),U.assertionMsg&&Aa.jsx("div",{style:kt,children:U.assertionMsg})]})]}):null,xn=()=>_.length===0?null:Aa.jsxs("div",{style:lr,children:[Aa.jsxs("h3",{style:{marginTop:0,marginBottom:"15px",fontSize:"clamp(16px, 4vw, 24px)"},children:[je("app.failedTestCases")||"Failed Test Cases",":"]}),_.map((Ln,ci)=>Aa.jsxs("div",{style:Zt,children:[Aa.jsxs("div",{style:$t,children:[Ln.moduleName," → ",Ln.caseName]}),Ln.assertionMsg&&Aa.jsx("div",{style:kt,children:Ln.assertionMsg.split(`
|
|
4673
|
+
`)[0]})]},ci))]}),In=!e||!Le;return Aa.jsxs("div",{style:rr,onClick:Ur,className:WN,children:[Aa.jsx("div",{style:Nt,children:Wt}),Aa.jsx("div",{style:Se,children:Bt}),o&&Lr(),!e&&!o&&xn(),In&&Aa.jsx("div",{style:Jt,children:je("app.modalResultDismissHint")||"Click anywhere or press any key to dismiss"}),e&&Le&&Aa.jsx("div",{style:Jt,children:je("app.modalResultAutoDismissHint",{seconds:Qe})+" "+je("app.modalResultDismissHint")||`Auto-dismissing in ${Qe} seconds...`})]})},SH={ULTRAWIDE:490,WIDE:400},tZ={ready:"app.status.ready",run:"app.status.run",passed:"app.status.passed",failed:"app.status.failed",stopped:"app.status.stopped"},UAe=t=>t in tZ,jAe=t=>{if(!t.modules)return;for(const[o,_]of Object.entries(t.modules))if(_.cases){for(const[U,te]of Object.entries(_.cases))if(te.status==="stopped")return{moduleName:_.name||o,caseName:te.name||U,assertionMsg:te.assertion_msg||void 0}}let e=null;for(const[o,_]of Object.entries(t.modules))if(_.cases)for(const[U,te]of Object.entries(_.cases))te.status==="failed"&&(e={moduleName:_.name||o,caseName:te.name||U,assertionMsg:te.assertion_msg||void 0});return e};function VAe({syncDocumentId:t}){const{t:e}=BM(),[o,_]=vr.useState(!1),[U,te]=vr.useState(!1),[me,Le]=vr.useState(null),[Re,je]=vr.useState(!1),[Qe,nt]=vr.useState("ready"),[yt,Wt]=vr.useState(0),[Bt,rr]=vr.useState(!0),[Nt,Se]=vr.useState(0),[lr,Zt]=vr.useState(!1),[$t,kt]=vr.useState(null),Jt=vr.useRef(null),[Ur,Lr]=vr.useState(null);vr.useEffect(()=>{(async()=>{try{const Wn=await(await fetch("/api/hardpy_config")).json();Le(Wn),Wn.frontend.sound_on!==void 0&&_(Wn.frontend.sound_on)}catch(Oi){console.error("Failed to load HardPy config:",Oi)}finally{je(!0)}})()},[]);const xn=Zi=>{const[Oi,Wn]=vr.useState(0);return vr.useEffect(()=>{function En(){Wn(window.innerWidth)}return window.addEventListener("resize",En),En(),()=>{window.removeEventListener("resize",En)}},[Wn]),Oi>Zi},In=xn(SH.ULTRAWIDE),Ln=xn(SH.WIDE),ci=vr.useCallback(Zi=>{},[]);vr.useEffect(()=>{const Zi=Oi=>{if(lr&&(Oi.preventDefault(),Oi.stopPropagation(),Oi.stopImmediatePropagation(),Zt(!1),kt(null),Oi.key===" ")){Oi.preventDefault();const Wn=document.activeElement;Wn&&Wn.blur&&Wn.blur()}};if(lr)return document.addEventListener("keydown",Zi,{capture:!0,passive:!1}),()=>{document.removeEventListener("keydown",Zi,{capture:!0})}},[lr]),vr.useEffect(()=>{if(Qe==="run"){if(Jt.current!==null){const Zi=()=>{const Wn=Math.floor(Date.now()/1e3);Se(Wn-Jt.current)};Zi();const Oi=setInterval(Zi,1e3);return Lr(Oi),()=>{Oi&&clearInterval(Oi)}}}else Ur&&(clearInterval(Ur),Lr(null))},[Qe]);function Zn(Zi,Oi){for(let Wn=0;Wn<Zi.length;Wn++)if(Zi[Wn].id===Oi)return Wn;return-1}const{rows:ai,state:ua,loading:Qi,error:ta}=bse({include_docs:!0});vr.useEffect(()=>{if(ai.length===0)return;const Zi=Zn(ai,t);if(Zi===-1)return;const Oi=ai[Zi].doc,Wn=Oi.status||"",En=Oi.progress||0;if(Wn!==Qe&&nt(UAe(Wn)?Wn:"unknown"),En!==yt&&Wt(En),Oi.start_time&&(Jt.current=Oi.start_time,Oi.stop_time&&Wn!=="run")){const Oa=Oi.stop_time-Oi.start_time;Oa!==Nt&&Se(Oa)}const aa=Qe,Ci=me?.frontend?.modal_result?.enable??!1;if(aa!=="run"&&Wn==="run"&&lr&&(Zt(!1),kt(null)),Ci&&aa==="run"&&(Wn==="passed"||Wn==="failed"||Wn==="stopped")&&!lr){const Oa=Wn==="passed",Ca=Wn==="stopped",Po=[];!Oa&&!Ca&&Oi.modules&&Object.entries(Oi.modules).forEach(([Za,dl])=>{dl.cases&&Object.entries(dl.cases).forEach(([mo,Co])=>{Co.status==="failed"&&Po.push({moduleName:dl.name||Za,caseName:Co.name||mo,assertionMsg:Co.assertion_msg||void 0})})});const Eo=Ca?jAe(Oi):void 0;kt({testPassed:Oa,testStopped:Ca,failedTestCases:Po,stoppedTestCase:Eo}),Zt(!0)}ua==="error"?rr(!1):Bt===!1&&rr(!0)},[ai,ua,Qe,yt,Nt,Bt,me,lr]);const Nn=()=>{if(Qi&&ai.length===0)return Aa.jsx(SS,{style:{marginTop:"60px"},children:Aa.jsx(tM,{children:e("app.connection")})});if(ua==="error")return Aa.jsxs(SS,{style:{marginTop:"60px"},children:[Aa.jsx(tM,{children:e("app.dbError")}),ta&&Aa.jsx("p",{children:ta.message})]});if(ai.length===0)return Aa.jsx(SS,{style:{marginTop:"60px"},children:Aa.jsx(tM,{children:e("app.noEntries")})});const Zi=Zn(ai,t);if(Zi===-1)return Aa.jsxs(SS,{style:{marginTop:"60px"},children:[Aa.jsx(tM,{children:e("app.dbError")}),ta&&Aa.jsx("p",{children:ta.message})]});const Oi=ai[Zi];if(!Oi)return Aa.jsxs(SS,{style:{marginTop:"60px"},children:[Aa.jsx(tM,{children:e("app.dbError")}),ta&&Aa.jsx("p",{children:ta.message})]});const Wn=Oi.doc;return Aa.jsx("div",{style:{marginTop:"40px"},children:Aa.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[(In||!U)&&Aa.jsx(SS,{style:{flexDirection:"column",padding:"20px",flexGrow:1,flexShrink:1,marginTop:"20px",marginBottom:"20px"},children:Aa.jsx(jxe,{db_state:Wn,defaultClose:!In})}),U&&Aa.jsx(SS,{style:{flexDirection:"column",padding:"20px",marginTop:"20px",marginBottom:"20px"},children:Aa.jsx("pre",{children:JSON.stringify(Wn,null,2)})})]},Oi.id)})},Qn=()=>Aa.jsxs(V4,{children:[Aa.jsx(rF,{shouldDismissPopover:!1,text:e(o?"app.soundOff":"app.soundOn"),icon:o?"volume-up":"volume-off",id:"use_end_test_sound",onClick:()=>_(!o)}),Aa.jsx(rF,{shouldDismissPopover:!1,text:e(U?"app.debugOff":"app.debugOn"),icon:"bug",id:"use_debug_info",onClick:()=>te(!U)})]}),Ai=Zi=>Zi==="unknown"?e("app.status.unknown")||"Unknown status":e(tZ[Zi]),Mn=me?.frontend?.full_size_button!==!1,Yn=()=>{Zt(!1),kt(null)};return Aa.jsxs("div",{className:"App",children:[Aa.jsx(Hxe,{reload_timeout_s:3}),Aa.jsxs(b1,{fixedToTop:!0,style:{background:Rj.LIGHT_GRAY4,margin:"auto"},children:[Aa.jsxs(b1.Group,{align:CS.LEFT,children:[Aa.jsxs(b1.Heading,{id:"main-heading",children:[Aa.jsx("div",{className:"logo-smol"}),Ln&&Aa.jsx("div",{children:Aa.jsx("b",{children:In?e("app.title"):"HardPy"})})]}),Ln&&Aa.jsx(b1.Divider,{}),Aa.jsxs("div",{style:{display:"flex",flexDirection:Ln?"row":"column",alignItems:"center",gap:Ln?"10px":"2px",fontSize:Ln?"inherit":"12px"},children:[Aa.jsxs(b1.Heading,{id:"last-exec-heading",style:{margin:0,display:"flex",alignItems:"center",gap:"5px",whiteSpace:"nowrap",flexWrap:Ln?"nowrap":"wrap"},children:[Aa.jsx("div",{children:e("app.lastLaunch")}),Aa.jsx("div",{children:Ai(Qe)}),Aa.jsx(uL,{status:Qe==="unknown"?"":Qe})]}),o&&Aa.jsx(FAe,{status:Qe},"sound"),Ln&&Aa.jsx(b1.Divider,{}),Aa.jsxs(b1.Heading,{style:{whiteSpace:"nowrap"},children:[e("app.duration"),": ",Nt,"s"]})]}),Aa.jsx(b1.Divider,{})]}),Aa.jsx(b1.Group,{align:CS.RIGHT,children:Aa.jsx(Z4,{content:Qn(),children:Aa.jsx(x_,{className:"bp3-minimal",icon:"cog"})})})]}),Aa.jsx("div",{className:Lle,style:{marginBottom:"60px",paddingBottom:Mn?"120px":"80px"},children:Nn()}),Re&&Aa.jsx("div",{className:Ple,style:{width:"100%",display:"flex",flexDirection:"column",position:"fixed",bottom:0,background:Rj.LIGHT_GRAY5,margin:"auto"},children:Mn?Aa.jsxs(Aa.Fragment,{children:[Aa.jsx("div",{style:{width:"100%",padding:"10px 20px 0px 20px"},children:Aa.jsx(rH,{percentage:yt,status:Qe})}),Aa.jsx("div",{style:{width:"100%",padding:"10px 20px",display:"flex",justifyContent:"center"},children:Aa.jsx("div",{style:{width:"100%"},children:Aa.jsx(dV,{testing_status:Qe,useBigButton:!0})})})]}):Aa.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"row"},children:[Aa.jsx("div",{style:{flexDirection:"column",flexGrow:1,flexShrink:1,marginTop:"auto",marginBottom:"auto",padding:"20px"},children:Aa.jsx(rH,{percentage:yt,status:Qe})}),Aa.jsx("div",{style:{flexDirection:"column"},children:Aa.jsx(dV,{testing_status:Qe,useBigButton:!1})})]})}),Aa.jsx(BAe,{isVisible:lr,testPassed:$t?.testPassed||!1,testStopped:$t?.testStopped||!1,failedTestCases:$t?.failedTestCases||[],stoppedTestCase:$t?.stoppedTestCase,onDismiss:Yn,onVisibilityChange:ci,autoDismissPass:me?.frontend?.modal_result?.auto_dismiss_pass??!0,autoDismissTimeout:me?.frontend?.modal_result?.auto_dismiss_timeout??5})]})}function qAe(){const{t}=BM();return Aa.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[Aa.jsx("h1",{children:t("error.dbConnectionTitle")}),Aa.jsx("p",{children:t("error.dbConnectionMessage")})]})}async function HAe(){try{return`${(await(await fetch("/api/couch")).json()).connection_str}/statestore`}catch(t){console.error(t);return}}async function GAe(){try{return(await(await fetch("/api/database_document_id")).json()).document_id}catch(t){return console.error(t),"current"}}const AH=Ane.createRoot(document.getElementById("root")),EH=await HAe();if(EH!==void 0){const t=new jc(EH),e=await GAe();AH.render(Aa.jsx(vr.StrictMode,{children:Aa.jsx(hse,{pouchdb:t,children:Aa.jsx(VAe,{syncDocumentId:e})})}))}else AH.render(Aa.jsx(vr.StrictMode,{children:Aa.jsx(qAe,{})}));console.log=function(){},console.debug=function(){};export{hc as I,iM as _,aM as a,qN as b,Uy as g,Ece as p};
|