@jupyterlite/pyodide-kernel 0.1.3 → 0.2.0-alpha.2

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.
package/lib/worker.js CHANGED
@@ -1,33 +1,21 @@
1
- var Dl=Object.create;var Fi=Object.defineProperty;var Pl=Object.getOwnPropertyDescriptor;var Cl=Object.getOwnPropertyNames;var Rl=Object.getPrototypeOf,Tl=Object.prototype.hasOwnProperty;var Ln=(o=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(o,{get:(i,a)=>(typeof require!="undefined"?require:i)[a]}):o)(function(o){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+o+'" is not supported')});var gt=(o,i)=>()=>(o&&(i=o(o=0)),i);var fe=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports),Il=(o,i)=>{for(var a in i)Fi(o,a,{get:i[a],enumerable:!0})},Yl=(o,i,a,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let c of Cl(i))!Tl.call(o,c)&&c!==a&&Fi(o,c,{get:()=>i[c],enumerable:!(s=Pl(i,c))||s.enumerable});return o};var nt=(o,i,a)=>(a=o!=null?Dl(Rl(o)):{},Yl(i||!o||!o.__esModule?Fi(a,"default",{value:o,enumerable:!0}):a,o));var Hn=fe((ii,Wn)=>{(function(o,i){typeof ii=="object"&&typeof Wn!="undefined"?i(ii):typeof define=="function"&&define.amd?define(["exports"],i):(o=typeof globalThis!="undefined"?globalThis:o||self,i(o.lumino_algorithm={}))})(ii,function(o){"use strict";o.ArrayExt=void 0,function(m){function x(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=S.length;if(y===0)return-1;_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);var R;g<_?R=g+1+(y-_):R=g-_+1;for(var Y=0;Y<R;++Y){var ne=(_+Y)%y;if(S[ne]===C)return ne}return-1}m.firstIndexOf=x;function P(S,C,_,g){_===void 0&&(_=-1),g===void 0&&(g=0);var y=S.length;if(y===0)return-1;_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);var R;_<g?R=_+1+(y-g):R=_-g+1;for(var Y=0;Y<R;++Y){var ne=(_-Y+y)%y;if(S[ne]===C)return ne}return-1}m.lastIndexOf=P;function I(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=S.length;if(y===0)return-1;_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);var R;g<_?R=g+1+(y-_):R=g-_+1;for(var Y=0;Y<R;++Y){var ne=(_+Y)%y;if(C(S[ne],ne))return ne}return-1}m.findFirstIndex=I;function L(S,C,_,g){_===void 0&&(_=-1),g===void 0&&(g=0);var y=S.length;if(y===0)return-1;_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);var R;_<g?R=_+1+(y-g):R=_-g+1;for(var Y=0;Y<R;++Y){var ne=(_-Y+y)%y;if(C(S[ne],ne))return ne}return-1}m.findLastIndex=L;function me(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=I(S,C,_,g);return y!==-1?S[y]:void 0}m.findFirstValue=me;function ie(S,C,_,g){_===void 0&&(_=-1),g===void 0&&(g=0);var y=L(S,C,_,g);return y!==-1?S[y]:void 0}m.findLastValue=ie;function J(S,C,_,g,y){g===void 0&&(g=0),y===void 0&&(y=-1);var R=S.length;if(R===0)return 0;g<0?g=Math.max(0,g+R):g=Math.min(g,R-1),y<0?y=Math.max(0,y+R):y=Math.min(y,R-1);for(var Y=g,ne=y-g+1;ne>0;){var ge=ne>>1,Re=Y+ge;_(S[Re],C)<0?(Y=Re+1,ne-=ge+1):ne=ge}return Y}m.lowerBound=J;function G(S,C,_,g,y){g===void 0&&(g=0),y===void 0&&(y=-1);var R=S.length;if(R===0)return 0;g<0?g=Math.max(0,g+R):g=Math.min(g,R-1),y<0?y=Math.max(0,y+R):y=Math.min(y,R-1);for(var Y=g,ne=y-g+1;ne>0;){var ge=ne>>1,Re=Y+ge;_(S[Re],C)>0?ne=ge:(Y=Re+1,ne-=ge+1)}return Y}m.upperBound=G;function K(S,C,_){if(S===C)return!0;if(S.length!==C.length)return!1;for(var g=0,y=S.length;g<y;++g)if(_?!_(S[g],C[g]):S[g]!==C[g])return!1;return!0}m.shallowEqual=K;function pe(S,C){C===void 0&&(C={});var _=C.start,g=C.stop,y=C.step;if(y===void 0&&(y=1),y===0)throw new Error("Slice `step` cannot be zero.");var R=S.length;_===void 0?_=y<0?R-1:0:_<0?_=Math.max(_+R,y<0?-1:0):_>=R&&(_=y<0?R-1:R),g===void 0?g=y<0?-1:R:g<0?g=Math.max(g+R,y<0?-1:0):g>=R&&(g=y<0?R-1:R);var Y;y<0&&g>=_||y>0&&_>=g?Y=0:y<0?Y=Math.floor((g-_+1)/y+1):Y=Math.floor((g-_-1)/y+1);for(var ne=[],ge=0;ge<Y;++ge)ne[ge]=S[_+ge*y];return ne}m.slice=pe;function ue(S,C,_){var g=S.length;if(!(g<=1)&&(C<0?C=Math.max(0,C+g):C=Math.min(C,g-1),_<0?_=Math.max(0,_+g):_=Math.min(_,g-1),C!==_)){for(var y=S[C],R=C<_?1:-1,Y=C;Y!==_;Y+=R)S[Y]=S[Y+R];S[_]=y}}m.move=ue;function ee(S,C,_){C===void 0&&(C=0),_===void 0&&(_=-1);var g=S.length;if(!(g<=1))for(C<0?C=Math.max(0,C+g):C=Math.min(C,g-1),_<0?_=Math.max(0,_+g):_=Math.min(_,g-1);C<_;){var y=S[C],R=S[_];S[C++]=R,S[_--]=y}}m.reverse=ee;function ke(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=S.length;if(!(y<=1)&&(_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1),!(_>=g))){var R=g-_+1;if(C>0?C=C%R:C<0&&(C=(C%R+R)%R),C!==0){var Y=_+C;ee(S,_,Y-1),ee(S,Y,g),ee(S,_,g)}}}m.rotate=ke;function xe(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=S.length;if(y!==0){_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);var R;g<_?R=g+1+(y-_):R=g-_+1;for(var Y=0;Y<R;++Y)S[(_+Y)%y]=C}}m.fill=xe;function we(S,C,_){var g=S.length;C<0?C=Math.max(0,C+g):C=Math.min(C,g);for(var y=g;y>C;--y)S[y]=S[y-1];S[C]=_}m.insert=we;function V(S,C){var _=S.length;if(C<0&&(C+=_),!(C<0||C>=_)){for(var g=S[C],y=C+1;y<_;++y)S[y-1]=S[y];return S.length=_-1,g}}m.removeAt=V;function Ge(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=x(S,C,_,g);return y!==-1&&V(S,y),y}m.removeFirstOf=Ge;function dt(S,C,_,g){_===void 0&&(_=-1),g===void 0&&(g=0);var y=P(S,C,_,g);return y!==-1&&V(S,y),y}m.removeLastOf=dt;function Ut(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=S.length;if(y===0)return 0;_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);for(var R=0,Y=0;Y<y;++Y)_<=g&&Y>=_&&Y<=g&&S[Y]===C||g<_&&(Y<=g||Y>=_)&&S[Y]===C?R++:R>0&&(S[Y-R]=S[Y]);return R>0&&(S.length=y-R),R}m.removeAllOf=Ut;function yi(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y,R=I(S,C,_,g);return R!==-1&&(y=V(S,R)),{index:R,value:y}}m.removeFirstWhere=yi;function wi(S,C,_,g){_===void 0&&(_=-1),g===void 0&&(g=0);var y,R=L(S,C,_,g);return R!==-1&&(y=V(S,R)),{index:R,value:y}}m.removeLastWhere=wi;function Ft(S,C,_,g){_===void 0&&(_=0),g===void 0&&(g=-1);var y=S.length;if(y===0)return 0;_<0?_=Math.max(0,_+y):_=Math.min(_,y-1),g<0?g=Math.max(0,g+y):g=Math.min(g,y-1);for(var R=0,Y=0;Y<y;++Y)_<=g&&Y>=_&&Y<=g&&C(S[Y],Y)||g<_&&(Y<=g||Y>=_)&&C(S[Y],Y)?R++:R>0&&(S[Y-R]=S[Y]);return R>0&&(S.length=y-R),R}m.removeAllWhere=Ft}(o.ArrayExt||(o.ArrayExt={}));function i(m){var x;return typeof m.iter=="function"?x=m.iter():x=new v(m),x}function a(m){return new M(m)}function s(m){return new T(m)}function c(m){return new D(m)}function d(m){return new re(m)}function f(m,x){for(var P=0,I=i(m),L;(L=I.next())!==void 0;)if(x(L,P++)===!1)return}function u(m,x){for(var P=0,I=i(m),L;(L=I.next())!==void 0;)if(!x(L,P++))return!1;return!0}function h(m,x){for(var P=0,I=i(m),L;(L=I.next())!==void 0;)if(x(L,P++))return!0;return!1}function w(m){for(var x=0,P=[],I=i(m),L;(L=I.next())!==void 0;)P[x++]=L;return P}function k(m){for(var x=i(m),P,I={};(P=x.next())!==void 0;)I[P[0]]=P[1];return I}var v=function(){function m(x){this._index=0,this._source=x}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source);return x._index=this._index,x},m.prototype.next=function(){if(!(this._index>=this._source.length))return this._source[this._index++]},m}(),M=function(){function m(x,P){P===void 0&&(P=Object.keys(x)),this._index=0,this._source=x,this._keys=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source,this._keys);return x._index=this._index,x},m.prototype.next=function(){if(!(this._index>=this._keys.length)){var x=this._keys[this._index++];return x in this._source?x:this.next()}},m}(),T=function(){function m(x,P){P===void 0&&(P=Object.keys(x)),this._index=0,this._source=x,this._keys=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source,this._keys);return x._index=this._index,x},m.prototype.next=function(){if(!(this._index>=this._keys.length)){var x=this._keys[this._index++];return x in this._source?this._source[x]:this.next()}},m}(),D=function(){function m(x,P){P===void 0&&(P=Object.keys(x)),this._index=0,this._source=x,this._keys=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source,this._keys);return x._index=this._index,x},m.prototype.next=function(){if(!(this._index>=this._keys.length)){var x=this._keys[this._index++];return x in this._source?[x,this._source[x]]:this.next()}},m}(),re=function(){function m(x){this._fn=x}return m.prototype.iter=function(){return this},m.prototype.clone=function(){throw new Error("An `FnIterator` cannot be cloned.")},m.prototype.next=function(){return this._fn.call(void 0)},m}();function z(){for(var m=[],x=0;x<arguments.length;x++)m[x]=arguments[x];return new q(i(m.map(i)))}var q=function(){function m(x){this._cloned=!1,this._source=x,this._active=void 0}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source.clone());return x._active=this._active&&this._active.clone(),x._cloned=!0,this._cloned=!0,x},m.prototype.next=function(){if(this._active===void 0){var x=this._source.next();if(x===void 0)return;this._active=this._cloned?x.clone():x}var P=this._active.next();return P!==void 0?P:(this._active=void 0,this.next())},m}();function W(){return new Z}var Z=function(){function m(){}return m.prototype.iter=function(){return this},m.prototype.clone=function(){return new m},m.prototype.next=function(){},m}();function H(m,x){return x===void 0&&(x=0),new ae(i(m),x)}var ae=function(){function m(x,P){this._source=x,this._index=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){return new m(this._source.clone(),this._index)},m.prototype.next=function(){var x=this._source.next();if(x!==void 0)return[this._index++,x]},m}();function E(m,x){return new N(i(m),x)}var N=function(){function m(x,P){this._index=0,this._source=x,this._fn=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source.clone(),this._fn);return x._index=this._index,x},m.prototype.next=function(){for(var x=this._fn,P=this._source,I;(I=P.next())!==void 0;)if(x(I,this._index++))return I},m}();function F(m,x){for(var P=0,I=i(m),L;(L=I.next())!==void 0;)if(x(L,P++))return L}function $(m,x){for(var P=0,I=i(m),L;(L=I.next())!==void 0;)if(x(L,P++))return P-1;return-1}function X(m,x){var P=i(m),I=P.next();if(I!==void 0){for(var L=I;(I=P.next())!==void 0;)x(I,L)<0&&(L=I);return L}}function ce(m,x){var P=i(m),I=P.next();if(I!==void 0){for(var L=I;(I=P.next())!==void 0;)x(I,L)>0&&(L=I);return L}}function Ve(m,x){var P=i(m),I=P.next();if(I!==void 0){for(var L=I,me=I;(I=P.next())!==void 0;)x(I,L)<0?L=I:x(I,me)>0&&(me=I);return[L,me]}}function yt(m,x){return new ot(i(m),x)}var ot=function(){function m(x,P){this._index=0,this._source=x,this._fn=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source.clone(),this._fn);return x._index=this._index,x},m.prototype.next=function(){var x=this._source.next();if(x!==void 0)return this._fn.call(void 0,x,this._index++)},m}();function wt(m,x,P){return x===void 0?new lt(0,m,1):P===void 0?new lt(m,x,1):new lt(m,x,P)}var lt=function(){function m(x,P,I){this._index=0,this._start=x,this._stop=P,this._step=I,this._length=bt.rangeLength(x,P,I)}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._start,this._stop,this._step);return x._index=this._index,x},m.prototype.next=function(){if(!(this._index>=this._length))return this._start+this._step*this._index++},m}(),bt;(function(m){function x(P,I,L){return L===0?1/0:P>I&&L>0||P<I&&L<0?0:Math.ceil((I-P)/L)}m.rangeLength=x})(bt||(bt={}));function Oe(m,x,P){var I=0,L=i(m),me=L.next();if(me===void 0&&P===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(me===void 0)return P;var ie=L.next();if(ie===void 0&&P===void 0)return me;if(ie===void 0)return x(P,me,I++);var J;P===void 0?J=x(me,ie,I++):J=x(x(P,me,I++),ie,I++);for(var G;(G=L.next())!==void 0;)J=x(J,G,I++);return J}function kt(m,x){return new Qe(m,x)}function ct(m){return new Qe(m,1)}var Qe=function(){function m(x,P){this._value=x,this._count=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){return new m(this._value,this._count)},m.prototype.next=function(){if(!(this._count<=0))return this._count--,this._value},m}();function $e(m){var x;return typeof m.retro=="function"?x=m.retro():x=new A(m),x}var A=function(){function m(x){this._source=x,this._index=x.length-1}return m.prototype.iter=function(){return this},m.prototype.clone=function(){var x=new m(this._source);return x._index=this._index,x},m.prototype.next=function(){if(!(this._index<0||this._index>=this._source.length))return this._source[this._index--]},m}();function gi(m){var x=[],P=new Set,I=new Map;return f(m,L),I.forEach(function(ie,J){me(J)}),x;function L(ie){var J=ie[0],G=ie[1],K=I.get(G);K?K.push(J):I.set(G,[J])}function me(ie){if(!P.has(ie)){P.add(ie);var J=I.get(ie);J&&J.forEach(me),x.push(ie)}}}function _i(m,x){return new Xe(i(m),x)}var Xe=function(){function m(x,P){this._source=x,this._step=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){return new m(this._source.clone(),this._step)},m.prototype.next=function(){for(var x=this._source.next(),P=this._step-1;P>0;--P)this._source.next();return x},m}();o.StringExt=void 0,function(m){function x(ie,J,G){G===void 0&&(G=0);for(var K=new Array(J.length),pe=0,ue=G,ee=J.length;pe<ee;++pe,++ue){if(ue=ie.indexOf(J[pe],ue),ue===-1)return null;K[pe]=ue}return K}m.findIndices=x;function P(ie,J,G){G===void 0&&(G=0);var K=x(ie,J,G);if(!K)return null;for(var pe=0,ue=0,ee=K.length;ue<ee;++ue){var ke=K[ue]-G;pe+=ke*ke}return{score:pe,indices:K}}m.matchSumOfSquares=P;function I(ie,J,G){G===void 0&&(G=0);var K=x(ie,J,G);if(!K)return null;for(var pe=0,ue=G-1,ee=0,ke=K.length;ee<ke;++ee){var xe=K[ee];pe+=xe-ue-1,ue=xe}return{score:pe,indices:K}}m.matchSumOfDeltas=I;function L(ie,J,G){for(var K=[],pe=0,ue=0,ee=J.length;pe<ee;){for(var ke=J[pe],xe=J[pe];++pe<ee&&J[pe]===xe+1;)xe++;ue<ke&&K.push(ie.slice(ue,ke)),ke<xe+1&&K.push(G(ie.slice(ke,xe+1))),ue=xe+1}return ue<ie.length&&K.push(ie.slice(ue)),K}m.highlight=L;function me(ie,J){return ie<J?-1:ie>J?1:0}m.cmp=me}(o.StringExt||(o.StringExt={}));function Nt(m,x){return new At(i(m),x)}var At=function(){function m(x,P){this._source=x,this._count=P}return m.prototype.iter=function(){return this},m.prototype.clone=function(){return new m(this._source.clone(),this._count)},m.prototype.next=function(){if(!(this._count<=0)){var x=this._source.next();if(x!==void 0)return this._count--,x}},m}();function xi(){for(var m=[],x=0;x<arguments.length;x++)m[x]=arguments[x];return new zt(m.map(i))}var zt=function(){function m(x){this._source=x}return m.prototype.iter=function(){return this},m.prototype.clone=function(){return new m(this._source.map(function(x){return x.clone()}))},m.prototype.next=function(){for(var x=new Array(this._source.length),P=0,I=this._source.length;P<I;++P){var L=this._source[P].next();if(L===void 0)return;x[P]=L}return x},m}();o.ArrayIterator=v,o.ChainIterator=q,o.EmptyIterator=Z,o.EnumerateIterator=ae,o.FilterIterator=N,o.FnIterator=re,o.ItemIterator=D,o.KeyIterator=M,o.MapIterator=ot,o.RangeIterator=lt,o.RepeatIterator=Qe,o.RetroArrayIterator=A,o.StrideIterator=Xe,o.TakeIterator=At,o.ValueIterator=T,o.ZipIterator=zt,o.chain=z,o.each=f,o.empty=W,o.enumerate=H,o.every=u,o.filter=E,o.find=F,o.findIndex=$,o.iter=i,o.iterFn=d,o.iterItems=c,o.iterKeys=a,o.iterValues=s,o.map=yt,o.max=ce,o.min=X,o.minmax=Ve,o.once=ct,o.range=wt,o.reduce=Oe,o.repeat=kt,o.retro=$e,o.some=h,o.stride=_i,o.take=Nt,o.toArray=w,o.toObject=k,o.topologicSort=gi,o.zip=xi,Object.defineProperty(o,"__esModule",{value:!0})})});var Vn=fe((ni,qn)=>{(function(o,i){typeof ni=="object"&&typeof qn!="undefined"?i(ni):typeof define=="function"&&define.amd?define(["exports"],i):(o=typeof globalThis!="undefined"?globalThis:o||self,i(o.lumino_properties={}))})(ni,function(o){"use strict";o.AttachedProperty=function(){function a(s){this._pid=i.nextPID(),this.name=s.name,this._create=s.create,this._coerce=s.coerce||null,this._compare=s.compare||null,this._changed=s.changed||null}return a.prototype.get=function(s){var c,d=i.ensureMap(s);return this._pid in d?c=d[this._pid]:c=d[this._pid]=this._createValue(s),c},a.prototype.set=function(s,c){var d,f=i.ensureMap(s);this._pid in f?d=f[this._pid]:d=f[this._pid]=this._createValue(s);var u=this._coerceValue(s,c);this._maybeNotify(s,d,f[this._pid]=u)},a.prototype.coerce=function(s){var c,d=i.ensureMap(s);this._pid in d?c=d[this._pid]:c=d[this._pid]=this._createValue(s);var f=this._coerceValue(s,c);this._maybeNotify(s,c,d[this._pid]=f)},a.prototype._createValue=function(s){var c=this._create;return c(s)},a.prototype._coerceValue=function(s,c){var d=this._coerce;return d?d(s,c):c},a.prototype._compareValue=function(s,c){var d=this._compare;return d?d(s,c):s===c},a.prototype._maybeNotify=function(s,c,d){var f=this._changed;f&&!this._compareValue(c,d)&&f(s,c,d)},a}(),function(a){function s(c){i.ownerData.delete(c)}a.clearData=s}(o.AttachedProperty||(o.AttachedProperty={}));var i;(function(a){a.ownerData=new WeakMap,a.nextPID=function(){var c=0;return function(){var d=Math.random(),f=(""+d).slice(2);return"pid-"+f+"-"+c++}}();function s(c){var d=a.ownerData.get(c);return d||(d=Object.create(null),a.ownerData.set(c,d),d)}a.ensureMap=s})(i||(i={})),Object.defineProperty(o,"__esModule",{value:!0})})});var Gn=fe((ai,$n)=>{(function(o,i){typeof ai=="object"&&typeof $n!="undefined"?i(ai,Hn(),Vn()):typeof define=="function"&&define.amd?define(["exports","@lumino/algorithm","@lumino/properties"],i):(o=typeof globalThis!="undefined"?globalThis:o||self,i(o.lumino_signaling={},o.lumino_algorithm,o.lumino_properties))})(ai,function(o,i,a){"use strict";o.Signal=function(){function c(d){this._blockedCount=0,this.sender=d}return c.prototype.block=function(d){this._blockedCount++;try{d()}finally{this._blockedCount--}},c.prototype.connect=function(d,f){return s.connect(this,d,f)},c.prototype.disconnect=function(d,f){return s.disconnect(this,d,f)},c.prototype.emit=function(d){this._blockedCount||s.emit(this,d)},c}(),function(c){function d(T,D){var re=s.blockedProperty;re.set(T,re.get(T)+1);try{D()}finally{re.set(T,re.get(T)-1)}}c.blockAll=d;function f(T,D){s.disconnectBetween(T,D)}c.disconnectBetween=f;function u(T){s.disconnectSender(T)}c.disconnectSender=u;function h(T){s.disconnectReceiver(T)}c.disconnectReceiver=h;function w(T){s.disconnectAll(T)}c.disconnectAll=w;function k(T){s.disconnectAll(T)}c.clearData=k;function v(){return s.exceptionHandler}c.getExceptionHandler=v;function M(T){var D=s.exceptionHandler;return s.exceptionHandler=T,D}c.setExceptionHandler=M}(o.Signal||(o.Signal={}));var s;(function(c){c.exceptionHandler=function(E){console.error(E)};function d(E,N,F){F=F||void 0;var $=M.get(E.sender);if($||($=[],M.set(E.sender,$)),z($,E,N,F))return!1;var X=F||N,ce=T.get(X);ce||(ce=[],T.set(X,ce));var Ve={signal:E,slot:N,thisArg:F};return $.push(Ve),ce.push(Ve),!0}c.connect=d;function f(E,N,F){F=F||void 0;var $=M.get(E.sender);if(!$||$.length===0)return!1;var X=z($,E,N,F);if(!X)return!1;var ce=F||N,Ve=T.get(ce);return X.signal=null,W($),W(Ve),!0}c.disconnect=f;function u(E,N){var F=M.get(E);if(!(!F||F.length===0)){var $=T.get(N);!$||$.length===0||(i.each($,function(X){X.signal&&X.signal.sender===E&&(X.signal=null)}),W(F),W($))}}c.disconnectBetween=u;function h(E){var N=M.get(E);!N||N.length===0||(i.each(N,function(F){if(F.signal){var $=F.thisArg||F.slot;F.signal=null,W(T.get($))}}),W(N))}c.disconnectSender=h;function w(E){var N=T.get(E);!N||N.length===0||(i.each(N,function(F){if(F.signal){var $=F.signal.sender;F.signal=null,W(M.get($))}}),W(N))}c.disconnectReceiver=w;function k(E){h(E),w(E)}c.disconnectAll=k;function v(E,N){if(!(c.blockedProperty.get(E.sender)>0)){var F=M.get(E.sender);if(!(!F||F.length===0))for(var $=0,X=F.length;$<X;++$){var ce=F[$];ce.signal===E&&q(ce,N)}}}c.emit=v;var M=new WeakMap,T=new WeakMap,D=new Set,re=function(){var E=typeof requestAnimationFrame=="function";return E?requestAnimationFrame:setImmediate}();function z(E,N,F,$){return i.find(E,function(X){return X.signal===N&&X.slot===F&&X.thisArg===$})}function q(E,N){var F=E.signal,$=E.slot,X=E.thisArg;try{$.call(X,F.sender,N)}catch(ce){c.exceptionHandler(ce)}}function W(E){D.size===0&&re(Z),D.add(E)}function Z(){D.forEach(H),D.clear()}function H(E){i.ArrayExt.removeAllWhere(E,ae)}function ae(E){return E.signal===null}c.blockedProperty=new a.AttachedProperty({name:"blocked",create:function(){return 0}})})(s||(s={})),Object.defineProperty(o,"__esModule",{value:!0})})});var Zn=fe(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.ActivityMonitor=void 0;var Bn=Gn(),Li=class{constructor(i){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new Bn.Signal(this),i.signal.connect(this._onSignalFired,this),this._timeout=i.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(i){this._timeout=i}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,Bn.Signal.clearData(this))}_onSignalFired(i,a){clearTimeout(this._timer),this._sender=i,this._args=a,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}};ri.ActivityMonitor=Li});var Kn=fe(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0})});var Qn=fe(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.MarkdownCodeBlocks=void 0;var jl;(function(o){o.CODE_BLOCK_MARKER="```";let i=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class a{constructor(f){this.startLine=f,this.code="",this.endLine=-1}}o.MarkdownCodeBlock=a;function s(d){return i.indexOf(d)>-1}o.isMarkdown=s;function c(d){if(!d||d==="")return[];let f=d.split(`
2
- `),u=[],h=null;for(let w=0;w<f.length;w++){let k=f[w],v=k.indexOf(o.CODE_BLOCK_MARKER)===0,M=h!=null;if(!(!v&&!M))if(M)h&&(v?(h.endLine=w-1,u.push(h),h=null):h.code+=k+`
3
- `);else{h=new a(w);let T=k.indexOf(o.CODE_BLOCK_MARKER),D=k.lastIndexOf(o.CODE_BLOCK_MARKER);T!==D&&(h.code=k.substring(T+o.CODE_BLOCK_MARKER.length,D),h.endLine=w,u.push(h),h=null)}}return u}o.findMarkdownCodeBlocks=c})(jl=It.MarkdownCodeBlocks||(It.MarkdownCodeBlocks={}))});var oi=fe((si,Xn)=>{(function(o,i){typeof si=="object"&&typeof Xn!="undefined"?i(si):typeof define=="function"&&define.amd?define(["exports"],i):(o=typeof globalThis!="undefined"?globalThis:o||self,i(o.lumino_coreutils={}))})(si,function(o){"use strict";o.JSONExt=void 0,function(f){f.emptyObject=Object.freeze({}),f.emptyArray=Object.freeze([]);function u(z){return z===null||typeof z=="boolean"||typeof z=="number"||typeof z=="string"}f.isPrimitive=u;function h(z){return Array.isArray(z)}f.isArray=h;function w(z){return!u(z)&&!h(z)}f.isObject=w;function k(z,q){if(z===q)return!0;if(u(z)||u(q))return!1;var W=h(z),Z=h(q);return W!==Z?!1:W&&Z?M(z,q):T(z,q)}f.deepEqual=k;function v(z){return u(z)?z:h(z)?D(z):re(z)}f.deepCopy=v;function M(z,q){if(z===q)return!0;if(z.length!==q.length)return!1;for(var W=0,Z=z.length;W<Z;++W)if(!k(z[W],q[W]))return!1;return!0}function T(z,q){if(z===q)return!0;for(var W in z)if(z[W]!==void 0&&!(W in q))return!1;for(var W in q)if(q[W]!==void 0&&!(W in z))return!1;for(var W in z){var Z=z[W],H=q[W];if(!(Z===void 0&&H===void 0)&&(Z===void 0||H===void 0||!k(Z,H)))return!1}return!0}function D(z){for(var q=new Array(z.length),W=0,Z=z.length;W<Z;++W)q[W]=v(z[W]);return q}function re(z){var q={};for(var W in z){var Z=z[W];Z!==void 0&&(q[W]=v(Z))}return q}}(o.JSONExt||(o.JSONExt={}));var i=function(){function f(){this._types=[],this._values=[]}return f.prototype.types=function(){return this._types.slice()},f.prototype.hasData=function(u){return this._types.indexOf(u)!==-1},f.prototype.getData=function(u){var h=this._types.indexOf(u);return h!==-1?this._values[h]:void 0},f.prototype.setData=function(u,h){this.clearData(u),this._types.push(u),this._values.push(h)},f.prototype.clearData=function(u){var h=this._types.indexOf(u);h!==-1&&(this._types.splice(h,1),this._values.splice(h,1))},f.prototype.clear=function(){this._types.length=0,this._values.length=0},f}(),a=function(){function f(){var u=this;this.promise=new Promise(function(h,w){u._resolve=h,u._reject=w})}return f.prototype.resolve=function(u){var h=this._resolve;h(u)},f.prototype.reject=function(u){var h=this._reject;h(u)},f}(),s=function(){function f(u){this.name=u,this._tokenStructuralPropertyT=null}return f}();function c(f){for(var u=0,h=0,w=f.length;h<w;++h)h%4===0&&(u=Math.random()*4294967295>>>0),f[h]=u&255,u>>>=8}o.Random=void 0,function(f){f.getRandomValues=function(){var u=typeof window!="undefined"&&(window.crypto||window.msCrypto)||null;return u&&typeof u.getRandomValues=="function"?function(w){return u.getRandomValues(w)}:c}()}(o.Random||(o.Random={}));function d(f){for(var u=new Uint8Array(16),h=new Array(256),w=0;w<16;++w)h[w]="0"+w.toString(16);for(var w=16;w<256;++w)h[w]=w.toString(16);return function(){return f(u),u[6]=64|u[6]&15,u[8]=128|u[8]&63,h[u[0]]+h[u[1]]+h[u[2]]+h[u[3]]+"-"+h[u[4]]+h[u[5]]+"-"+h[u[6]]+h[u[7]]+"-"+h[u[8]]+h[u[9]]+"-"+h[u[10]]+h[u[11]]+h[u[12]]+h[u[13]]+h[u[14]]+h[u[15]]}}o.UUID=void 0,function(f){f.uuid4=d(o.Random.getRandomValues)}(o.UUID||(o.UUID={})),o.MimeData=i,o.PromiseDelegate=a,o.Token=s,Object.defineProperty(o,"__esModule",{value:!0})})});var na=fe((pc,ia)=>{"use strict";function El(o,i){var a=o;i.slice(0,-1).forEach(function(c){a=a[c]||{}});var s=i[i.length-1];return s in a}function ea(o){return typeof o=="number"||/^0x[0-9a-f]+$/i.test(o)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(o)}function ta(o,i){return i==="constructor"&&typeof o[i]=="function"||i==="__proto__"}ia.exports=function(o,i){i||(i={});var a={bools:{},strings:{},unknownFn:null};typeof i.unknown=="function"&&(a.unknownFn=i.unknown),typeof i.boolean=="boolean"&&i.boolean?a.allBools=!0:[].concat(i.boolean).filter(Boolean).forEach(function(H){a.bools[H]=!0});var s={};function c(H){return s[H].some(function(ae){return a.bools[ae]})}Object.keys(i.alias||{}).forEach(function(H){s[H]=[].concat(i.alias[H]),s[H].forEach(function(ae){s[ae]=[H].concat(s[H].filter(function(E){return ae!==E}))})}),[].concat(i.string).filter(Boolean).forEach(function(H){a.strings[H]=!0,s[H]&&[].concat(s[H]).forEach(function(ae){a.strings[ae]=!0})});var d=i.default||{},f={_:[]};function u(H,ae){return a.allBools&&/^--[^=]+$/.test(ae)||a.strings[H]||a.bools[H]||s[H]}function h(H,ae,E){for(var N=H,F=0;F<ae.length-1;F++){var $=ae[F];if(ta(N,$))return;N[$]===void 0&&(N[$]={}),(N[$]===Object.prototype||N[$]===Number.prototype||N[$]===String.prototype)&&(N[$]={}),N[$]===Array.prototype&&(N[$]=[]),N=N[$]}var X=ae[ae.length-1];ta(N,X)||((N===Object.prototype||N===Number.prototype||N===String.prototype)&&(N={}),N===Array.prototype&&(N=[]),N[X]===void 0||a.bools[X]||typeof N[X]=="boolean"?N[X]=E:Array.isArray(N[X])?N[X].push(E):N[X]=[N[X],E])}function w(H,ae,E){if(!(E&&a.unknownFn&&!u(H,E)&&a.unknownFn(E)===!1)){var N=!a.strings[H]&&ea(ae)?Number(ae):ae;h(f,H.split("."),N),(s[H]||[]).forEach(function(F){h(f,F.split("."),N)})}}Object.keys(a.bools).forEach(function(H){w(H,d[H]===void 0?!1:d[H])});var k=[];o.indexOf("--")!==-1&&(k=o.slice(o.indexOf("--")+1),o=o.slice(0,o.indexOf("--")));for(var v=0;v<o.length;v++){var M=o[v],T,D;if(/^--.+=/.test(M)){var re=M.match(/^--([^=]+)=([\s\S]*)$/);T=re[1];var z=re[2];a.bools[T]&&(z=z!=="false"),w(T,z,M)}else if(/^--no-.+/.test(M))T=M.match(/^--no-(.+)/)[1],w(T,!1,M);else if(/^--.+/.test(M))T=M.match(/^--(.+)/)[1],D=o[v+1],D!==void 0&&!/^(-|--)[^-]/.test(D)&&!a.bools[T]&&!a.allBools&&(!s[T]||!c(T))?(w(T,D,M),v+=1):/^(true|false)$/.test(D)?(w(T,D==="true",M),v+=1):w(T,a.strings[T]?"":!0,M);else if(/^-[^-]+/.test(M)){for(var q=M.slice(1,-1).split(""),W=!1,Z=0;Z<q.length;Z++){if(D=M.slice(Z+2),D==="-"){w(q[Z],D,M);continue}if(/[A-Za-z]/.test(q[Z])&&D[0]==="="){w(q[Z],D.slice(1),M),W=!0;break}if(/[A-Za-z]/.test(q[Z])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(D)){w(q[Z],D,M),W=!0;break}if(q[Z+1]&&q[Z+1].match(/\W/)){w(q[Z],M.slice(Z+2),M),W=!0;break}else w(q[Z],a.strings[q[Z]]?"":!0,M)}T=M.slice(-1)[0],!W&&T!=="-"&&(o[v+1]&&!/^(-|--)[^-]/.test(o[v+1])&&!a.bools[T]&&(!s[T]||!c(T))?(w(T,o[v+1],M),v+=1):o[v+1]&&/^(true|false)$/.test(o[v+1])?(w(T,o[v+1]==="true",M),v+=1):w(T,a.strings[T]?"":!0,M))}else if((!a.unknownFn||a.unknownFn(M)!==!1)&&f._.push(a.strings._||!ea(M)?M:Number(M)),i.stopEarly){f._.push.apply(f._,o.slice(v+1));break}}return Object.keys(d).forEach(function(H){El(f,H.split("."))||(h(f,H.split("."),d[H]),(s[H]||[]).forEach(function(ae){h(f,ae.split("."),d[H])}))}),i["--"]?f["--"]=k.slice():k.forEach(function(H){f._.push(H)}),f}});var li=fe((hc,ra)=>{"use strict";function Ie(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function aa(o,i){for(var a="",s=0,c=-1,d=0,f,u=0;u<=o.length;++u){if(u<o.length)f=o.charCodeAt(u);else{if(f===47)break;f=47}if(f===47){if(!(c===u-1||d===1))if(c!==u-1&&d===2){if(a.length<2||s!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",s=0):(a=a.slice(0,h),s=a.length-1-a.lastIndexOf("/")),c=u,d=0;continue}}else if(a.length===2||a.length===1){a="",s=0,c=u,d=0;continue}}i&&(a.length>0?a+="/..":a="..",s=2)}else a.length>0?a+="/"+o.slice(c+1,u):a=o.slice(c+1,u),s=u-c-1;c=u,d=0}else f===46&&d!==-1?++d:d=-1}return a}function Nl(o,i){var a=i.dir||i.root,s=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+s:a+o+s:s}var _t={resolve:function(){for(var i="",a=!1,s,c=arguments.length-1;c>=-1&&!a;c--){var d;c>=0?d=arguments[c]:(s===void 0&&(s=process.cwd()),d=s),Ie(d),d.length!==0&&(i=d+"/"+i,a=d.charCodeAt(0)===47)}return i=aa(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(Ie(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=aa(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return Ie(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var s=arguments[a];Ie(s),s.length>0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":_t.normalize(i)},relative:function(i,a){if(Ie(i),Ie(a),i===a||(i=_t.resolve(i),a=_t.resolve(a),i===a))return"";for(var s=1;s<i.length&&i.charCodeAt(s)===47;++s);for(var c=i.length,d=c-s,f=1;f<a.length&&a.charCodeAt(f)===47;++f);for(var u=a.length,h=u-f,w=d<h?d:h,k=-1,v=0;v<=w;++v){if(v===w){if(h>w){if(a.charCodeAt(f+v)===47)return a.slice(f+v+1);if(v===0)return a.slice(f+v)}else d>w&&(i.charCodeAt(s+v)===47?k=v:v===0&&(k=0));break}var M=i.charCodeAt(s+v),T=a.charCodeAt(f+v);if(M!==T)break;M===47&&(k=v)}var D="";for(v=s+k+1;v<=c;++v)(v===c||i.charCodeAt(v)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+a.slice(f+k):(f+=k,a.charCodeAt(f)===47&&++f,a.slice(f))},_makeLong:function(i){return i},dirname:function(i){if(Ie(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,c=-1,d=!0,f=i.length-1;f>=1;--f)if(a=i.charCodeAt(f),a===47){if(!d){c=f;break}}else d=!1;return c===-1?s?"/":".":s&&c===1?"//":i.slice(0,c)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Ie(i);var s=0,c=-1,d=!0,f;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var u=a.length-1,h=-1;for(f=i.length-1;f>=0;--f){var w=i.charCodeAt(f);if(w===47){if(!d){s=f+1;break}}else h===-1&&(d=!1,h=f+1),u>=0&&(w===a.charCodeAt(u)?--u===-1&&(c=f):(u=-1,c=h))}return s===c?c=h:c===-1&&(c=i.length),i.slice(s,c)}else{for(f=i.length-1;f>=0;--f)if(i.charCodeAt(f)===47){if(!d){s=f+1;break}}else c===-1&&(d=!1,c=f+1);return c===-1?"":i.slice(s,c)}},extname:function(i){Ie(i);for(var a=-1,s=0,c=-1,d=!0,f=0,u=i.length-1;u>=0;--u){var h=i.charCodeAt(u);if(h===47){if(!d){s=u+1;break}continue}c===-1&&(d=!1,c=u+1),h===46?a===-1?a=u:f!==1&&(f=1):a!==-1&&(f=-1)}return a===-1||c===-1||f===0||f===1&&a===c-1&&a===s+1?"":i.slice(a,c)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return Nl("/",i)},parse:function(i){Ie(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),c=s===47,d;c?(a.root="/",d=1):d=0;for(var f=-1,u=0,h=-1,w=!0,k=i.length-1,v=0;k>=d;--k){if(s=i.charCodeAt(k),s===47){if(!w){u=k+1;break}continue}h===-1&&(w=!1,h=k+1),s===46?f===-1?f=k:v!==1&&(v=1):f!==-1&&(v=-1)}return f===-1||h===-1||v===0||v===1&&f===h-1&&f===u+1?h!==-1&&(u===0&&c?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(u,h)):(u===0&&c?(a.name=i.slice(1,f),a.base=i.slice(1,h)):(a.name=i.slice(u,f),a.base=i.slice(u,h)),a.ext=i.slice(f,h)),u>0?a.dir=i.slice(0,u-1):c&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};_t.posix=_t;ra.exports=_t});var oa=fe((mc,sa)=>{"use strict";sa.exports=function(i,a){if(a=a.split(":")[0],i=+i,!i)return!1;switch(a){case"http":case"ws":return i!==80;case"https":case"wss":return i!==443;case"ftp":return i!==21;case"gopher":return i!==70;case"file":return!1}return i!==0}});var da=fe(Wi=>{"use strict";var Al=Object.prototype.hasOwnProperty,zl;function la(o){try{return decodeURIComponent(o.replace(/\+/g," "))}catch{return null}}function ca(o){try{return encodeURIComponent(o)}catch{return null}}function Ul(o){for(var i=/([^=?#&]+)=?([^&]*)/g,a={},s;s=i.exec(o);){var c=la(s[1]),d=la(s[2]);c===null||d===null||c in a||(a[c]=d)}return a}function Fl(o,i){i=i||"";var a=[],s,c;typeof i!="string"&&(i="?");for(c in o)if(Al.call(o,c)){if(s=o[c],!s&&(s===null||s===zl||isNaN(s))&&(s=""),c=ca(c),s=ca(s),c===null||s===null)continue;a.push(c+"="+s)}return a.length?i+a.join("&"):""}Wi.stringify=Fl;Wi.parse=Ul});var _a=fe((gc,ga)=>{"use strict";var fa=oa(),ci=da(),Ll=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,pa=/[\n\r\t]/g,Wl=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,ha=/:\d+$/,Hl=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,ql=/^[a-zA-Z]:/;function qi(o){return(o||"").toString().replace(Ll,"")}var Hi=[["#","hash"],["?","query"],function(i,a){return Ye(a.protocol)?i.replace(/\\/g,"/"):i},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ua={hash:1,query:1};function ma(o){var i;typeof window!="undefined"?i=window:typeof global!="undefined"?i=global:typeof self!="undefined"?i=self:i={};var a=i.location||{};o=o||a;var s={},c=typeof o,d;if(o.protocol==="blob:")s=new je(unescape(o.pathname),{});else if(c==="string"){s=new je(o,{});for(d in ua)delete s[d]}else if(c==="object"){for(d in o)d in ua||(s[d]=o[d]);s.slashes===void 0&&(s.slashes=Wl.test(o.href))}return s}function Ye(o){return o==="file:"||o==="ftp:"||o==="http:"||o==="https:"||o==="ws:"||o==="wss:"}function va(o,i){o=qi(o),o=o.replace(pa,""),i=i||{};var a=Hl.exec(o),s=a[1]?a[1].toLowerCase():"",c=!!a[2],d=!!a[3],f=0,u;return c?d?(u=a[2]+a[3]+a[4],f=a[2].length+a[3].length):(u=a[2]+a[4],f=a[2].length):d?(u=a[3]+a[4],f=a[3].length):u=a[4],s==="file:"?f>=2&&(u=u.slice(2)):Ye(s)?u=a[4]:s?c&&(u=u.slice(2)):f>=2&&Ye(i.protocol)&&(u=a[4]),{protocol:s,slashes:c||Ye(s),slashesCount:f,rest:u}}function Vl(o,i){if(o==="")return i;for(var a=(i||"/").split("/").slice(0,-1).concat(o.split("/")),s=a.length,c=a[s-1],d=!1,f=0;s--;)a[s]==="."?a.splice(s,1):a[s]===".."?(a.splice(s,1),f++):f&&(s===0&&(d=!0),a.splice(s,1),f--);return d&&a.unshift(""),(c==="."||c==="..")&&a.push(""),a.join("/")}function je(o,i,a){if(o=qi(o),o=o.replace(pa,""),!(this instanceof je))return new je(o,i,a);var s,c,d,f,u,h,w=Hi.slice(),k=typeof i,v=this,M=0;for(k!=="object"&&k!=="string"&&(a=i,i=null),a&&typeof a!="function"&&(a=ci.parse),i=ma(i),c=va(o||"",i),s=!c.protocol&&!c.slashes,v.slashes=c.slashes||s&&i.slashes,v.protocol=c.protocol||i.protocol||"",o=c.rest,(c.protocol==="file:"&&(c.slashesCount!==2||ql.test(o))||!c.slashes&&(c.protocol||c.slashesCount<2||!Ye(v.protocol)))&&(w[3]=[/(.*)/,"pathname"]);M<w.length;M++){if(f=w[M],typeof f=="function"){o=f(o,v);continue}d=f[0],h=f[1],d!==d?v[h]=o:typeof d=="string"?(u=d==="@"?o.lastIndexOf(d):o.indexOf(d),~u&&(typeof f[2]=="number"?(v[h]=o.slice(0,u),o=o.slice(u+f[2])):(v[h]=o.slice(u),o=o.slice(0,u)))):(u=d.exec(o))&&(v[h]=u[1],o=o.slice(0,u.index)),v[h]=v[h]||s&&f[3]&&i[h]||"",f[4]&&(v[h]=v[h].toLowerCase())}a&&(v.query=a(v.query)),s&&i.slashes&&v.pathname.charAt(0)!=="/"&&(v.pathname!==""||i.pathname!=="")&&(v.pathname=Vl(v.pathname,i.pathname)),v.pathname.charAt(0)!=="/"&&Ye(v.protocol)&&(v.pathname="/"+v.pathname),fa(v.port,v.protocol)||(v.host=v.hostname,v.port=""),v.username=v.password="",v.auth&&(u=v.auth.indexOf(":"),~u?(v.username=v.auth.slice(0,u),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=v.auth.slice(u+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(v.auth)),v.auth=v.password?v.username+":"+v.password:v.username),v.origin=v.protocol!=="file:"&&Ye(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString()}function $l(o,i,a){var s=this;switch(o){case"query":typeof i=="string"&&i.length&&(i=(a||ci.parse)(i)),s[o]=i;break;case"port":s[o]=i,fa(i,s.protocol)?i&&(s.host=s.hostname+":"+i):(s.host=s.hostname,s[o]="");break;case"hostname":s[o]=i,s.port&&(i+=":"+s.port),s.host=i;break;case"host":s[o]=i,ha.test(i)?(i=i.split(":"),s.port=i.pop(),s.hostname=i.join(":")):(s.hostname=i,s.port="");break;case"protocol":s.protocol=i.toLowerCase(),s.slashes=!a;break;case"pathname":case"hash":if(i){var c=o==="pathname"?"/":"#";s[o]=i.charAt(0)!==c?c+i:i}else s[o]=i;break;case"username":case"password":s[o]=encodeURIComponent(i);break;case"auth":var d=i.indexOf(":");~d?(s.username=i.slice(0,d),s.username=encodeURIComponent(decodeURIComponent(s.username)),s.password=i.slice(d+1),s.password=encodeURIComponent(decodeURIComponent(s.password))):s.username=encodeURIComponent(decodeURIComponent(i))}for(var f=0;f<Hi.length;f++){var u=Hi[f];u[4]&&(s[u[1]]=s[u[1]].toLowerCase())}return s.auth=s.password?s.username+":"+s.password:s.username,s.origin=s.protocol!=="file:"&&Ye(s.protocol)&&s.host?s.protocol+"//"+s.host:"null",s.href=s.toString(),s}function Gl(o){(!o||typeof o!="function")&&(o=ci.stringify);var i,a=this,s=a.host,c=a.protocol;c&&c.charAt(c.length-1)!==":"&&(c+=":");var d=c+(a.protocol&&a.slashes||Ye(a.protocol)?"//":"");return a.username?(d+=a.username,a.password&&(d+=":"+a.password),d+="@"):a.password?(d+=":"+a.password,d+="@"):a.protocol!=="file:"&&Ye(a.protocol)&&!s&&a.pathname!=="/"&&(d+="@"),(s[s.length-1]===":"||ha.test(a.hostname)&&!a.port)&&(s+=":"),d+=s+a.pathname,i=typeof a.query=="object"?o(a.query):a.query,i&&(d+=i.charAt(0)!=="?"?"?"+i:i),a.hash&&(d+=a.hash),d}je.prototype={set:$l,toString:Gl};je.extractProtocol=va;je.location=ma;je.trimLeft=qi;je.qs=ci;ga.exports=je});var $i=fe(at=>{"use strict";var Bl=at&&at.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(at,"__esModule",{value:!0});at.URLExt=void 0;var Zl=li(),Vi=Bl(_a()),Jl;(function(o){function i(w){if(typeof document!="undefined"&&document){let k=document.createElement("a");return k.href=w,k}return Vi.default(w)}o.parse=i;function a(w){return Vi.default(w).hostname}o.getHostName=a;function s(w){return w&&i(w).toString()}o.normalize=s;function c(...w){let k=Vi.default(w[0],{}),v=`${k.protocol}${k.slashes?"//":""}${k.auth}${k.auth?"@":""}${k.host}`,M=Zl.posix.join(`${v&&k.pathname[0]!=="/"?"/":""}${k.pathname}`,...w.slice(1));return`${v}${M==="."?"":M}`}o.join=c;function d(w){return c(...w.split("/").map(encodeURIComponent))}o.encodeParts=d;function f(w){let k=Object.keys(w).filter(v=>v.length>0);return k.length?"?"+k.map(v=>{let M=encodeURIComponent(String(w[v]));return v+(M?"="+M:"")}).join("&"):""}o.objectToQueryString=f;function u(w){return w.replace(/^\?/,"").split("&").reduce((k,v)=>{let[M,T]=v.split("=");return M.length>0&&(k[M]=decodeURIComponent(T||"")),k},{})}o.queryStringToObject=u;function h(w){let{protocol:k}=i(w);return(!k||w.toLowerCase().indexOf(k)!==0)&&w.indexOf("/")!==0}o.isLocal=h})(Jl=at.URLExt||(at.URLExt={}))});var xa=fe((exports,module)=>{"use strict";var __importDefault=exports&&exports.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});exports.PageConfig=void 0;var coreutils_1=oi(),minimist_1=__importDefault(na()),url_1=$i(),PageConfig;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document!="undefined"&&document){let o=document.getElementById("jupyter-config-data");o&&(configData=JSON.parse(o.textContent||""),found=!0)}if(!found&&typeof process!="undefined"&&process.argv)try{let cli=minimist_1.default(process.argv.slice(2)),path=li(),fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in process.env&&(fullPath=path.resolve(process.env.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(o){console.error(o)}if(!coreutils_1.JSONExt.isObject(configData))configData=Object.create(null);else for(let o in configData)typeof configData[o]!="string"&&(configData[o]=JSON.stringify(configData[o]));return configData[name]||getBodyData(name)}PageConfig.getOption=getOption;function setOption(o,i){let a=getOption(o);return configData[o]=i,a}PageConfig.setOption=setOption;function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}PageConfig.getBaseUrl=getBaseUrl;function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}PageConfig.getTreeUrl=getTreeUrl;function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}PageConfig.getShareUrl=getShareUrl;function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}PageConfig.getTreeShareUrl=getTreeShareUrl;function getUrl(o){var i,a,s,c;let d=o.toShare?getShareUrl():getBaseUrl(),f=(i=o.mode)!==null&&i!==void 0?i:getOption("mode"),u=(a=o.workspace)!==null&&a!==void 0?a:getOption("workspace"),h=f==="single-document"?"doc":"lab";d=url_1.URLExt.join(d,h),u!==PageConfig.defaultWorkspace&&(d=url_1.URLExt.join(d,"workspaces",encodeURIComponent((s=getOption("workspace"))!==null&&s!==void 0?s:PageConfig.defaultWorkspace)));let w=(c=o.treePath)!==null&&c!==void 0?c:getOption("treePath");return w&&(d=url_1.URLExt.join(d,"tree",url_1.URLExt.encodeParts(w))),d}PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default";function getWsUrl(o){let i=getOption("wsUrl");if(!i){if(o=o?url_1.URLExt.normalize(o):getBaseUrl(),o.indexOf("http")!==0)return"";i="ws"+o.slice(4)}return url_1.URLExt.normalize(i)}PageConfig.getWsUrl=getWsUrl;function getNBConvertURL({path:o,format:i,download:a}){let s=url_1.URLExt.encodeParts(o),c=url_1.URLExt.join(getBaseUrl(),"nbconvert",i,s);return a?c+"?download=true":c}PageConfig.getNBConvertURL=getNBConvertURL;function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}PageConfig.getToken=getToken;function getNotebookVersion(){let o=getOption("notebookVersion");return o===""?[0,0,0]:JSON.parse(o)}PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(o){if(typeof document=="undefined"||!document.body)return"";let i=document.body.dataset[o];return typeof i=="undefined"?"":decodeURIComponent(i)}let Extension;(function(o){function i(c){try{let d=getOption(c);if(d)return JSON.parse(d)}catch(d){console.warn(`Unable to parse ${c}.`,d)}return[]}o.deferred=i("deferredExtensions"),o.disabled=i("disabledExtensions");function a(c){let d=c.indexOf(":"),f="";return d!==-1&&(f=c.slice(0,d)),o.deferred.some(u=>u===c||f&&u===f)}o.isDeferred=a;function s(c){let d=c.indexOf(":"),f="";return d!==-1&&(f=c.slice(0,d)),o.disabled.some(u=>u===c||f&&u===f)}o.isDisabled=s})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig=exports.PageConfig||(exports.PageConfig={}))});var ya=fe(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.PathExt=void 0;var rt=li(),Kl;(function(o){function i(...k){let v=rt.posix.join(...k);return v==="."?"":w(v)}o.join=i;function a(k,v){return rt.posix.basename(k,v)}o.basename=a;function s(k){let v=w(rt.posix.dirname(k));return v==="."?"":v}o.dirname=s;function c(k){return rt.posix.extname(k)}o.extname=c;function d(k){return k===""?"":w(rt.posix.normalize(k))}o.normalize=d;function f(...k){return w(rt.posix.resolve(...k))}o.resolve=f;function u(k,v){return w(rt.posix.relative(k,v))}o.relative=u;function h(k){return k.length>0&&k.indexOf(".")!==0&&(k=`.${k}`),k}o.normalizeExtension=h;function w(k){return k.indexOf("/")===0&&(k=k.slice(1)),k}o.removeSlash=w})(Kl=Yt.PathExt||(Yt.PathExt={}))});var wa=fe(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Text=void 0;var Ql;(function(o){let i=2>1;function a(f,u){if(i)return f;let h=f;for(let w=0;w+1<u.length&&w<f;w++){let k=u.charCodeAt(w);if(k>=55296&&k<=56319){let v=u.charCodeAt(w+1);v>=56320&&v<=57343&&(h--,w++)}}return h}o.jsIndexToCharIndex=a;function s(f,u){if(i)return f;let h=f;for(let w=0;w+1<u.length&&w<h;w++){let k=u.charCodeAt(w);if(k>=55296&&k<=56319){let v=u.charCodeAt(w+1);v>=56320&&v<=57343&&(h++,w++)}}return h}o.charIndexToJsIndex=s;function c(f,u=!1){return f.replace(/^(\w)|[\s-_:]+(\w)/g,function(h,w,k){return k?k.toUpperCase():u?w.toUpperCase():w.toLowerCase()})}o.camelCase=c;function d(f){return(f||"").toLowerCase().split(" ").map(u=>u.charAt(0).toUpperCase()+u.slice(1)).join(" ")}o.titleCase=d})(Ql=jt.Text||(jt.Text={}))});var ba=fe((Gi,xt)=>{(function(o,i){typeof Gi=="object"&&typeof xt!="undefined"?xt.exports=i():typeof define=="function"&&define.amd?define(i):o.moment=i()})(Gi,function(){"use strict";var o;function i(){return o.apply(null,arguments)}function a(e){o=e}function s(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function c(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(d(e,t))return!1;return!0}function u(e){return e===void 0}function h(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function w(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function k(e,t){var n=[],r,l=e.length;for(r=0;r<l;++r)n.push(t(e[r],r));return n}function v(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function M(e,t,n,r){return xn(e,t,n,r,!0).utc()}function T(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function D(e){return e._pf==null&&(e._pf=T()),e._pf}var re;Array.prototype.some?re=Array.prototype.some:re=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function z(e){if(e._isValid==null){var t=D(e),n=re.call(t.parsedDateParts,function(l){return l!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function q(e){var t=M(NaN);return e!=null?v(D(t),e):D(t).userInvalidated=!0,t}var W=i.momentProperties=[],Z=!1;function H(e,t){var n,r,l,p=W.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=D(t)),u(t._locale)||(e._locale=t._locale),p>0)for(n=0;n<p;n++)r=W[n],l=t[r],u(l)||(e[r]=l);return e}function ae(e){H(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Z===!1&&(Z=!0,i.updateOffset(this),Z=!1)}function E(e){return e instanceof ae||e!=null&&e._isAMomentObject!=null}function N(e){i.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+e)}function F(e,t){var n=!0;return v(function(){if(i.deprecationHandler!=null&&i.deprecationHandler(null,e),n){var r=[],l,p,b,U=arguments.length;for(p=0;p<U;p++){if(l="",typeof arguments[p]=="object"){l+=`
4
- [`+p+"] ";for(b in arguments[0])d(arguments[0],b)&&(l+=b+": "+arguments[0][b]+", ");l=l.slice(0,-2)}else l=arguments[p];r.push(l)}N(e+`
5
- Arguments: `+Array.prototype.slice.call(r).join("")+`
6
- `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var $={};function X(e,t){i.deprecationHandler!=null&&i.deprecationHandler(e,t),$[e]||(N(t),$[e]=!0)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;function ce(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Ve(e){var t,n;for(n in e)d(e,n)&&(t=e[n],ce(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function yt(e,t){var n=v({},e),r;for(r in t)d(t,r)&&(c(e[r])&&c(t[r])?(n[r]={},v(n[r],e[r]),v(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)d(e,r)&&!d(t,r)&&c(e[r])&&(n[r]=v({},n[r]));return n}function ot(e){e!=null&&this.set(e)}var wt;Object.keys?wt=Object.keys:wt=function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var lt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function bt(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ce(r)?r.call(t,n):r}function Oe(e,t,n){var r=""+Math.abs(e),l=t-r.length,p=e>=0;return(p?n?"+":"":"-")+Math.pow(10,Math.max(0,l)).toString().substr(1)+r}var kt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ct=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Qe={},$e={};function A(e,t,n,r){var l=r;typeof r=="string"&&(l=function(){return this[r]()}),e&&($e[e]=l),t&&($e[t[0]]=function(){return Oe(l.apply(this,arguments),t[1],t[2])}),n&&($e[n]=function(){return this.localeData().ordinal(l.apply(this,arguments),e)})}function gi(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function _i(e){var t=e.match(kt),n,r;for(n=0,r=t.length;n<r;n++)$e[t[n]]?t[n]=$e[t[n]]:t[n]=gi(t[n]);return function(l){var p="",b;for(b=0;b<r;b++)p+=ce(t[b])?t[b].call(l,e):t[b];return p}}function Xe(e,t){return e.isValid()?(t=Nt(t,e.localeData()),Qe[t]=Qe[t]||_i(t),Qe[t](e)):e.localeData().invalidDate()}function Nt(e,t){var n=5;function r(l){return t.longDateFormat(l)||l}for(ct.lastIndex=0;n>=0&&ct.test(e);)e=e.replace(ct,r),ct.lastIndex=0,n-=1;return e}var At={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function xi(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(kt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var zt="Invalid date";function m(){return this._invalidDate}var x="%d",P=/\d{1,2}/;function I(e){return this._ordinal.replace("%d",e)}var L={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function me(e,t,n,r){var l=this._relativeTime[n];return ce(l)?l(e,t,n,r):l.replace(/%d/i,e)}function ie(e,t){var n=this._relativeTime[e>0?"future":"past"];return ce(n)?n(t):n.replace(/%s/i,t)}var J={};function G(e,t){var n=e.toLowerCase();J[n]=J[n+"s"]=J[t]=e}function K(e){return typeof e=="string"?J[e]||J[e.toLowerCase()]:void 0}function pe(e){var t={},n,r;for(r in e)d(e,r)&&(n=K(r),n&&(t[n]=e[r]));return t}var ue={};function ee(e,t){ue[e]=t}function ke(e){var t=[],n;for(n in e)d(e,n)&&t.push({unit:n,priority:ue[n]});return t.sort(function(r,l){return r.priority-l.priority}),t}function xe(e){return e%4===0&&e%100!==0||e%400===0}function we(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=we(t)),n}function Ge(e,t){return function(n){return n!=null?(Ut(this,e,n),i.updateOffset(this,t),this):dt(this,e)}}function dt(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ut(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&xe(e.year())&&e.month()===1&&e.date()===29?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),qt(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function yi(e){return e=K(e),ce(this[e])?this[e]():this}function wi(e,t){if(typeof e=="object"){e=pe(e);var n=ke(e),r,l=n.length;for(r=0;r<l;r++)this[n[r].unit](e[n[r].unit])}else if(e=K(e),ce(this[e]))return this[e](t);return this}var Ft=/\d/,S=/\d\d/,C=/\d{3}/,_=/\d{4}/,g=/[+-]?\d{6}/,y=/\d\d?/,R=/\d\d\d\d?/,Y=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,ge=/\d{1,4}/,Re=/[+-]?\d{1,6}/,ut=/\d+/,Lt=/[+-]?\d+/,$a=/Z|[+-]\d\d:?\d\d/gi,Wt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ga=/[+-]?\d+(\.\d{1,3})?/,St=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ht;Ht={};function j(e,t,n){Ht[e]=ce(t)?t:function(r,l){return r&&n?n:t}}function Ba(e,t){return d(Ht,e)?Ht[e](t._strict,t._locale):new RegExp(Za(e))}function Za(e){return Se(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,l,p){return n||r||l||p}))}function Se(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var bi={};function se(e,t){var n,r=t,l;for(typeof e=="string"&&(e=[e]),h(t)&&(r=function(p,b){b[t]=V(p)}),l=e.length,n=0;n<l;n++)bi[e[n]]=r}function Mt(e,t){se(e,function(n,r,l,p){l._w=l._w||{},t(n,l._w,l,p)})}function Ja(e,t,n){t!=null&&d(bi,e)&&bi[e](t,n._a,n,e)}var _e=0,Ne=1,Te=2,ve=3,De=4,Ae=5,et=6,Ka=7,Qa=8;function Xa(e,t){return(e%t+t)%t}var he;Array.prototype.indexOf?he=Array.prototype.indexOf:he=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function qt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Xa(t,12);return e+=(t-n)/12,n===1?xe(e)?29:28:31-n%7%2}A("M",["MM",2],"Mo",function(){return this.month()+1}),A("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),A("MMMM",0,0,function(e){return this.localeData().months(this,e)}),G("month","M"),ee("month",8),j("M",y),j("MM",y,S),j("MMM",function(e,t){return t.monthsShortRegex(e)}),j("MMMM",function(e,t){return t.monthsRegex(e)}),se(["M","MM"],function(e,t){t[Ne]=V(e)-1}),se(["MMM","MMMM"],function(e,t,n,r){var l=n._locale.monthsParse(e,r,n._strict);l!=null?t[Ne]=l:D(n).invalidMonth=e});var er="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),an="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,tr=St,ir=St;function nr(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rn).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ar(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rn.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rr(e,t,n){var r,l,p,b=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)p=M([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(p,"").toLocaleLowerCase();return n?t==="MMM"?(l=he.call(this._shortMonthsParse,b),l!==-1?l:null):(l=he.call(this._longMonthsParse,b),l!==-1?l:null):t==="MMM"?(l=he.call(this._shortMonthsParse,b),l!==-1?l:(l=he.call(this._longMonthsParse,b),l!==-1?l:null)):(l=he.call(this._longMonthsParse,b),l!==-1?l:(l=he.call(this._shortMonthsParse,b),l!==-1?l:null))}function sr(e,t,n){var r,l,p;if(this._monthsParseExact)return rr.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(l=M([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(l,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(l,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(p="^"+this.months(l,"")+"|^"+this.monthsShort(l,""),this._monthsParse[r]=new RegExp(p.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function sn(e,t){var n;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=V(t);else if(t=e.localeData().monthsParse(t),!h(t))return e}return n=Math.min(e.date(),qt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function on(e){return e!=null?(sn(this,e),i.updateOffset(this,!0),this):dt(this,"Month")}function or(){return qt(this.year(),this.month())}function lr(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ln.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=tr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function cr(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ln.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=ir),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ln(){function e(b,U){return U.length-b.length}var t=[],n=[],r=[],l,p;for(l=0;l<12;l++)p=M([2e3,l]),t.push(this.monthsShort(p,"")),n.push(this.months(p,"")),r.push(this.months(p,"")),r.push(this.monthsShort(p,""));for(t.sort(e),n.sort(e),r.sort(e),l=0;l<12;l++)t[l]=Se(t[l]),n[l]=Se(n[l]);for(l=0;l<24;l++)r[l]=Se(r[l]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}A("Y",0,0,function(){var e=this.year();return e<=9999?Oe(e,4):"+"+e}),A(0,["YY",2],0,function(){return this.year()%100}),A(0,["YYYY",4],0,"year"),A(0,["YYYYY",5],0,"year"),A(0,["YYYYYY",6,!0],0,"year"),G("year","y"),ee("year",1),j("Y",Lt),j("YY",y,S),j("YYYY",ge,_),j("YYYYY",Re,g),j("YYYYYY",Re,g),se(["YYYYY","YYYYYY"],_e),se("YYYY",function(e,t){t[_e]=e.length===2?i.parseTwoDigitYear(e):V(e)}),se("YY",function(e,t){t[_e]=i.parseTwoDigitYear(e)}),se("Y",function(e,t){t[_e]=parseInt(e,10)});function Ot(e){return xe(e)?366:365}i.parseTwoDigitYear=function(e){return V(e)+(V(e)>68?1900:2e3)};var cn=Ge("FullYear",!0);function dr(){return xe(this.year())}function ur(e,t,n,r,l,p,b){var U;return e<100&&e>=0?(U=new Date(e+400,t,n,r,l,p,b),isFinite(U.getFullYear())&&U.setFullYear(e)):U=new Date(e,t,n,r,l,p,b),U}function Dt(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Vt(e,t,n){var r=7+t-n,l=(7+Dt(e,0,r).getUTCDay()-t)%7;return-l+r-1}function dn(e,t,n,r,l){var p=(7+n-r)%7,b=Vt(e,r,l),U=1+7*(t-1)+p+b,B,oe;return U<=0?(B=e-1,oe=Ot(B)+U):U>Ot(e)?(B=e+1,oe=U-Ot(e)):(B=e,oe=U),{year:B,dayOfYear:oe}}function Pt(e,t,n){var r=Vt(e.year(),t,n),l=Math.floor((e.dayOfYear()-r-1)/7)+1,p,b;return l<1?(b=e.year()-1,p=l+ze(b,t,n)):l>ze(e.year(),t,n)?(p=l-ze(e.year(),t,n),b=e.year()+1):(b=e.year(),p=l),{week:p,year:b}}function ze(e,t,n){var r=Vt(e,t,n),l=Vt(e+1,t,n);return(Ot(e)-r+l)/7}A("w",["ww",2],"wo","week"),A("W",["WW",2],"Wo","isoWeek"),G("week","w"),G("isoWeek","W"),ee("week",5),ee("isoWeek",5),j("w",y),j("ww",y,S),j("W",y),j("WW",y,S),Mt(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=V(e)});function fr(e){return Pt(e,this._week.dow,this._week.doy).week}var pr={dow:0,doy:6};function hr(){return this._week.dow}function mr(){return this._week.doy}function vr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function gr(e){var t=Pt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}A("d",0,"do","day"),A("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),A("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),A("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),A("e",0,0,"weekday"),A("E",0,0,"isoWeekday"),G("day","d"),G("weekday","e"),G("isoWeekday","E"),ee("day",11),ee("weekday",11),ee("isoWeekday",11),j("d",y),j("e",y),j("E",y),j("dd",function(e,t){return t.weekdaysMinRegex(e)}),j("ddd",function(e,t){return t.weekdaysShortRegex(e)}),j("dddd",function(e,t){return t.weekdaysRegex(e)}),Mt(["dd","ddd","dddd"],function(e,t,n,r){var l=n._locale.weekdaysParse(e,r,n._strict);l!=null?t.d=l:D(n).invalidWeekday=e}),Mt(["d","e","E"],function(e,t,n,r){t[r]=V(e)});function _r(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function xr(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ki(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),un="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),br=St,kr=St,Sr=St;function Mr(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ki(n,this._week.dow):e?n[e.day()]:n}function Or(e){return e===!0?ki(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Dr(e){return e===!0?ki(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pr(e,t,n){var r,l,p,b=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)p=M([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(p,"").toLocaleLowerCase();return n?t==="dddd"?(l=he.call(this._weekdaysParse,b),l!==-1?l:null):t==="ddd"?(l=he.call(this._shortWeekdaysParse,b),l!==-1?l:null):(l=he.call(this._minWeekdaysParse,b),l!==-1?l:null):t==="dddd"?(l=he.call(this._weekdaysParse,b),l!==-1||(l=he.call(this._shortWeekdaysParse,b),l!==-1)?l:(l=he.call(this._minWeekdaysParse,b),l!==-1?l:null)):t==="ddd"?(l=he.call(this._shortWeekdaysParse,b),l!==-1||(l=he.call(this._weekdaysParse,b),l!==-1)?l:(l=he.call(this._minWeekdaysParse,b),l!==-1?l:null)):(l=he.call(this._minWeekdaysParse,b),l!==-1||(l=he.call(this._weekdaysParse,b),l!==-1)?l:(l=he.call(this._shortWeekdaysParse,b),l!==-1?l:null))}function Cr(e,t,n){var r,l,p;if(this._weekdaysParseExact)return Pr.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(l=M([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(l,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(l,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(l,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(p="^"+this.weekdays(l,"")+"|^"+this.weekdaysShort(l,"")+"|^"+this.weekdaysMin(l,""),this._weekdaysParse[r]=new RegExp(p.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Rr(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=_r(e,this.localeData()),this.add(e-t,"d")):t}function Tr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ir(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=xr(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Yr(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Si.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=br),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function jr(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Si.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Er(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Si.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Si(){function e(ye,He){return He.length-ye.length}var t=[],n=[],r=[],l=[],p,b,U,B,oe;for(p=0;p<7;p++)b=M([2e3,1]).day(p),U=Se(this.weekdaysMin(b,"")),B=Se(this.weekdaysShort(b,"")),oe=Se(this.weekdays(b,"")),t.push(U),n.push(B),r.push(oe),l.push(U),l.push(B),l.push(oe);t.sort(e),n.sort(e),r.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Mi(){return this.hours()%12||12}function Nr(){return this.hours()||24}A("H",["HH",2],0,"hour"),A("h",["hh",2],0,Mi),A("k",["kk",2],0,Nr),A("hmm",0,0,function(){return""+Mi.apply(this)+Oe(this.minutes(),2)}),A("hmmss",0,0,function(){return""+Mi.apply(this)+Oe(this.minutes(),2)+Oe(this.seconds(),2)}),A("Hmm",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)}),A("Hmmss",0,0,function(){return""+this.hours()+Oe(this.minutes(),2)+Oe(this.seconds(),2)});function fn(e,t){A(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}fn("a",!0),fn("A",!1),G("hour","h"),ee("hour",13);function pn(e,t){return t._meridiemParse}j("a",pn),j("A",pn),j("H",y),j("h",y),j("k",y),j("HH",y,S),j("hh",y,S),j("kk",y,S),j("hmm",R),j("hmmss",Y),j("Hmm",R),j("Hmmss",Y),se(["H","HH"],ve),se(["k","kk"],function(e,t,n){var r=V(e);t[ve]=r===24?0:r}),se(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),se(["h","hh"],function(e,t,n){t[ve]=V(e),D(n).bigHour=!0}),se("hmm",function(e,t,n){var r=e.length-2;t[ve]=V(e.substr(0,r)),t[De]=V(e.substr(r)),D(n).bigHour=!0}),se("hmmss",function(e,t,n){var r=e.length-4,l=e.length-2;t[ve]=V(e.substr(0,r)),t[De]=V(e.substr(r,2)),t[Ae]=V(e.substr(l)),D(n).bigHour=!0}),se("Hmm",function(e,t,n){var r=e.length-2;t[ve]=V(e.substr(0,r)),t[De]=V(e.substr(r))}),se("Hmmss",function(e,t,n){var r=e.length-4,l=e.length-2;t[ve]=V(e.substr(0,r)),t[De]=V(e.substr(r,2)),t[Ae]=V(e.substr(l))});function Ar(e){return(e+"").toLowerCase().charAt(0)==="p"}var zr=/[ap]\.?m?\.?/i,Ur=Ge("Hours",!0);function Fr(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var hn={calendar:lt,longDateFormat:At,invalidDate:zt,ordinal:x,dayOfMonthOrdinalParse:P,relativeTime:L,months:er,monthsShort:an,week:pr,weekdays:yr,weekdaysMin:wr,weekdaysShort:un,meridiemParse:zr},de={},Ct={},Rt;function Lr(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function mn(e){return e&&e.toLowerCase().replace("_","-")}function Wr(e){for(var t=0,n,r,l,p;t<e.length;){for(p=mn(e[t]).split("-"),n=p.length,r=mn(e[t+1]),r=r?r.split("-"):null;n>0;){if(l=$t(p.slice(0,n).join("-")),l)return l;if(r&&r.length>=n&&Lr(p,r)>=n-1)break;n--}t++}return Rt}function Hr(e){return e.match("^[^/\\\\]*$")!=null}function $t(e){var t=null,n;if(de[e]===void 0&&typeof xt!="undefined"&&xt&&xt.exports&&Hr(e))try{t=Rt._abbr,n=Ln,n("./locale/"+e),Be(t)}catch{de[e]=null}return de[e]}function Be(e,t){var n;return e&&(u(t)?n=Ue(e):n=Oi(e,t),n?Rt=n:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Rt._abbr}function Oi(e,t){if(t!==null){var n,r=hn;if(t.abbr=e,de[e]!=null)X("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=de[e]._config;else if(t.parentLocale!=null)if(de[t.parentLocale]!=null)r=de[t.parentLocale]._config;else if(n=$t(t.parentLocale),n!=null)r=n._config;else return Ct[t.parentLocale]||(Ct[t.parentLocale]=[]),Ct[t.parentLocale].push({name:e,config:t}),null;return de[e]=new ot(yt(r,t)),Ct[e]&&Ct[e].forEach(function(l){Oi(l.name,l.config)}),Be(e),de[e]}else return delete de[e],null}function qr(e,t){if(t!=null){var n,r,l=hn;de[e]!=null&&de[e].parentLocale!=null?de[e].set(yt(de[e]._config,t)):(r=$t(e),r!=null&&(l=r._config),t=yt(l,t),r==null&&(t.abbr=e),n=new ot(t),n.parentLocale=de[e],de[e]=n),Be(e)}else de[e]!=null&&(de[e].parentLocale!=null?(de[e]=de[e].parentLocale,e===Be()&&Be(e)):de[e]!=null&&delete de[e]);return de[e]}function Ue(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Rt;if(!s(e)){if(t=$t(e),t)return t;e=[e]}return Wr(e)}function Vr(){return wt(de)}function Di(e){var t,n=e._a;return n&&D(e).overflow===-2&&(t=n[Ne]<0||n[Ne]>11?Ne:n[Te]<1||n[Te]>qt(n[_e],n[Ne])?Te:n[ve]<0||n[ve]>24||n[ve]===24&&(n[De]!==0||n[Ae]!==0||n[et]!==0)?ve:n[De]<0||n[De]>59?De:n[Ae]<0||n[Ae]>59?Ae:n[et]<0||n[et]>999?et:-1,D(e)._overflowDayOfYear&&(t<_e||t>Te)&&(t=Te),D(e)._overflowWeeks&&t===-1&&(t=Ka),D(e)._overflowWeekday&&t===-1&&(t=Qa),D(e).overflow=t),e}var $r=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Br=/Z|[+-]\d\d(?::?\d\d)?/,Gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Pi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zr=/^\/?Date\((-?\d+)/i,Jr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Kr={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function vn(e){var t,n,r=e._i,l=$r.exec(r)||Gr.exec(r),p,b,U,B,oe=Gt.length,ye=Pi.length;if(l){for(D(e).iso=!0,t=0,n=oe;t<n;t++)if(Gt[t][1].exec(l[1])){b=Gt[t][0],p=Gt[t][2]!==!1;break}if(b==null){e._isValid=!1;return}if(l[3]){for(t=0,n=ye;t<n;t++)if(Pi[t][1].exec(l[3])){U=(l[2]||" ")+Pi[t][0];break}if(U==null){e._isValid=!1;return}}if(!p&&U!=null){e._isValid=!1;return}if(l[4])if(Br.exec(l[4]))B="Z";else{e._isValid=!1;return}e._f=b+(U||"")+(B||""),Ri(e)}else e._isValid=!1}function Qr(e,t,n,r,l,p){var b=[Xr(e),an.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(l,10)];return p&&b.push(parseInt(p,10)),b}function Xr(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function es(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ts(e,t,n){if(e){var r=un.indexOf(e),l=new Date(t[0],t[1],t[2]).getDay();if(r!==l)return D(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function is(e,t,n){if(e)return Kr[e];if(t)return 0;var r=parseInt(n,10),l=r%100,p=(r-l)/100;return p*60+l}function gn(e){var t=Jr.exec(es(e._i)),n;if(t){if(n=Qr(t[4],t[3],t[2],t[5],t[6],t[7]),!ts(t[1],n,e))return;e._a=n,e._tzm=is(t[8],t[9],t[10]),e._d=Dt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),D(e).rfc2822=!0}else e._isValid=!1}function ns(e){var t=Zr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(vn(e),e._isValid===!1)delete e._isValid;else return;if(gn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:i.createFromInputFallback(e)}i.createFromInputFallback=F("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ft(e,t,n){return e!=null?e:t!=null?t:n}function as(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ci(e){var t,n,r=[],l,p,b;if(!e._d){for(l=as(e),e._w&&e._a[Te]==null&&e._a[Ne]==null&&rs(e),e._dayOfYear!=null&&(b=ft(e._a[_e],l[_e]),(e._dayOfYear>Ot(b)||e._dayOfYear===0)&&(D(e)._overflowDayOfYear=!0),n=Dt(b,0,e._dayOfYear),e._a[Ne]=n.getUTCMonth(),e._a[Te]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=l[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[ve]===24&&e._a[De]===0&&e._a[Ae]===0&&e._a[et]===0&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Dt:ur).apply(null,r),p=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==p&&(D(e).weekdayMismatch=!0)}}function rs(e){var t,n,r,l,p,b,U,B,oe;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(p=1,b=4,n=ft(t.GG,e._a[_e],Pt(le(),1,4).year),r=ft(t.W,1),l=ft(t.E,1),(l<1||l>7)&&(B=!0)):(p=e._locale._week.dow,b=e._locale._week.doy,oe=Pt(le(),p,b),n=ft(t.gg,e._a[_e],oe.year),r=ft(t.w,oe.week),t.d!=null?(l=t.d,(l<0||l>6)&&(B=!0)):t.e!=null?(l=t.e+p,(t.e<0||t.e>6)&&(B=!0)):l=p),r<1||r>ze(n,p,b)?D(e)._overflowWeeks=!0:B!=null?D(e)._overflowWeekday=!0:(U=dn(n,r,l,p,b),e._a[_e]=U.year,e._dayOfYear=U.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function Ri(e){if(e._f===i.ISO_8601){vn(e);return}if(e._f===i.RFC_2822){gn(e);return}e._a=[],D(e).empty=!0;var t=""+e._i,n,r,l,p,b,U=t.length,B=0,oe,ye;for(l=Nt(e._f,e._locale).match(kt)||[],ye=l.length,n=0;n<ye;n++)p=l[n],r=(t.match(Ba(p,e))||[])[0],r&&(b=t.substr(0,t.indexOf(r)),b.length>0&&D(e).unusedInput.push(b),t=t.slice(t.indexOf(r)+r.length),B+=r.length),$e[p]?(r?D(e).empty=!1:D(e).unusedTokens.push(p),Ja(p,r,e)):e._strict&&!r&&D(e).unusedTokens.push(p);D(e).charsLeftOver=U-B,t.length>0&&D(e).unusedInput.push(t),e._a[ve]<=12&&D(e).bigHour===!0&&e._a[ve]>0&&(D(e).bigHour=void 0),D(e).parsedDateParts=e._a.slice(0),D(e).meridiem=e._meridiem,e._a[ve]=ss(e._locale,e._a[ve],e._meridiem),oe=D(e).era,oe!==null&&(e._a[_e]=e._locale.erasConvertYear(oe,e._a[_e])),Ci(e),Di(e)}function ss(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function os(e){var t,n,r,l,p,b,U=!1,B=e._f.length;if(B===0){D(e).invalidFormat=!0,e._d=new Date(NaN);return}for(l=0;l<B;l++)p=0,b=!1,t=H({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[l],Ri(t),z(t)&&(b=!0),p+=D(t).charsLeftOver,p+=D(t).unusedTokens.length*10,D(t).score=p,U?p<r&&(r=p,n=t):(r==null||p<r||b)&&(r=p,n=t,b&&(U=!0));v(e,n||t)}function ls(e){if(!e._d){var t=pe(e._i),n=t.day===void 0?t.date:t.day;e._a=k([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Ci(e)}}function cs(e){var t=new ae(Di(_n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _n(e){var t=e._i,n=e._f;return e._locale=e._locale||Ue(e._l),t===null||n===void 0&&t===""?q({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),E(t)?new ae(Di(t)):(w(t)?e._d=t:s(n)?os(e):n?Ri(e):ds(e),z(e)||(e._d=null),e))}function ds(e){var t=e._i;u(t)?e._d=new Date(i.now()):w(t)?e._d=new Date(t.valueOf()):typeof t=="string"?ns(e):s(t)?(e._a=k(t.slice(0),function(n){return parseInt(n,10)}),Ci(e)):c(t)?ls(e):h(t)?e._d=new Date(t):i.createFromInputFallback(e)}function xn(e,t,n,r,l){var p={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(c(e)&&f(e)||s(e)&&e.length===0)&&(e=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=l,p._l=n,p._i=e,p._f=t,p._strict=r,cs(p)}function le(e,t,n,r){return xn(e,t,n,r,!1)}var us=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=le.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:q()}),fs=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=le.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:q()});function yn(e,t){var n,r;if(t.length===1&&s(t[0])&&(t=t[0]),!t.length)return le();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function ps(){var e=[].slice.call(arguments,0);return yn("isBefore",e)}function hs(){var e=[].slice.call(arguments,0);return yn("isAfter",e)}var ms=function(){return Date.now?Date.now():+new Date},Tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function vs(e){var t,n=!1,r,l=Tt.length;for(t in e)if(d(e,t)&&!(he.call(Tt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<l;++r)if(e[Tt[r]]){if(n)return!1;parseFloat(e[Tt[r]])!==V(e[Tt[r]])&&(n=!0)}return!0}function gs(){return this._isValid}function _s(){return Pe(NaN)}function Bt(e){var t=pe(e),n=t.year||0,r=t.quarter||0,l=t.month||0,p=t.week||t.isoWeek||0,b=t.day||0,U=t.hour||0,B=t.minute||0,oe=t.second||0,ye=t.millisecond||0;this._isValid=vs(t),this._milliseconds=+ye+oe*1e3+B*6e4+U*1e3*60*60,this._days=+b+p*7,this._months=+l+r*3+n*12,this._data={},this._locale=Ue(),this._bubble()}function Zt(e){return e instanceof Bt}function Ti(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function xs(e,t,n){var r=Math.min(e.length,t.length),l=Math.abs(e.length-t.length),p=0,b;for(b=0;b<r;b++)(n&&e[b]!==t[b]||!n&&V(e[b])!==V(t[b]))&&p++;return p+l}function wn(e,t){A(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Oe(~~(n/60),2)+t+Oe(~~n%60,2)})}wn("Z",":"),wn("ZZ",""),j("Z",Wt),j("ZZ",Wt),se(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ii(Wt,e)});var ys=/([\+\-]|\d\d)/gi;function Ii(e,t){var n=(t||"").match(e),r,l,p;return n===null?null:(r=n[n.length-1]||[],l=(r+"").match(ys)||["-",0,0],p=+(l[1]*60)+V(l[2]),p===0?0:l[0]==="+"?p:-p)}function Yi(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(E(e)||w(e)?e.valueOf():le(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):le(e).local()}function ji(e){return-Math.round(e._d.getTimezoneOffset())}i.updateOffset=function(){};function ws(e,t,n){var r=this._offset||0,l;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Ii(Wt,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(l=ji(this)),this._offset=e,this._isUTC=!0,l!=null&&this.add(l,"m"),r!==e&&(!t||this._changeInProgress?Mn(this,Pe(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:ji(this)}function bs(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ks(e){return this.utcOffset(0,e)}function Ss(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ji(this),"m")),this}function Ms(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Ii($a,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Os(e){return this.isValid()?(e=e?le(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ds(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ps(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e={},t;return H(e,this),e=_n(e),e._a?(t=e._isUTC?M(e._a):le(e._a),this._isDSTShifted=this.isValid()&&xs(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Cs(){return this.isValid()?!this._isUTC:!1}function Rs(){return this.isValid()?this._isUTC:!1}function bn(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ts=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Is=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pe(e,t){var n=e,r=null,l,p,b;return Zt(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Ts.exec(e))?(l=r[1]==="-"?-1:1,n={y:0,d:V(r[Te])*l,h:V(r[ve])*l,m:V(r[De])*l,s:V(r[Ae])*l,ms:V(Ti(r[et]*1e3))*l}):(r=Is.exec(e))?(l=r[1]==="-"?-1:1,n={y:tt(r[2],l),M:tt(r[3],l),w:tt(r[4],l),d:tt(r[5],l),h:tt(r[6],l),m:tt(r[7],l),s:tt(r[8],l)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(b=Ys(le(n.from),le(n.to)),n={},n.ms=b.milliseconds,n.M=b.months),p=new Bt(n),Zt(e)&&d(e,"_locale")&&(p._locale=e._locale),Zt(e)&&d(e,"_isValid")&&(p._isValid=e._isValid),p}Pe.fn=Bt.prototype,Pe.invalid=_s;function tt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function kn(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ys(e,t){var n;return e.isValid()&&t.isValid()?(t=Yi(t,e),e.isBefore(t)?n=kn(e,t):(n=kn(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Sn(e,t){return function(n,r){var l,p;return r!==null&&!isNaN(+r)&&(X(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=n,n=r,r=p),l=Pe(n,r),Mn(this,l,e),this}}function Mn(e,t,n,r){var l=t._milliseconds,p=Ti(t._days),b=Ti(t._months);e.isValid()&&(r=r==null?!0:r,b&&sn(e,dt(e,"Month")+b*n),p&&Ut(e,"Date",dt(e,"Date")+p*n),l&&e._d.setTime(e._d.valueOf()+l*n),r&&i.updateOffset(e,p||b))}var js=Sn(1,"add"),Es=Sn(-1,"subtract");function On(e){return typeof e=="string"||e instanceof String}function Ns(e){return E(e)||w(e)||On(e)||h(e)||zs(e)||As(e)||e===null||e===void 0}function As(e){var t=c(e)&&!f(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l,p,b=r.length;for(l=0;l<b;l+=1)p=r[l],n=n||d(e,p);return t&&n}function zs(e){var t=s(e),n=!1;return t&&(n=e.filter(function(r){return!h(r)&&On(e)}).length===0),t&&n}function Us(e){var t=c(e)&&!f(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],l,p;for(l=0;l<r.length;l+=1)p=r[l],n=n||d(e,p);return t&&n}function Fs(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ls(e,t){arguments.length===1&&(arguments[0]?Ns(arguments[0])?(e=arguments[0],t=void 0):Us(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||le(),r=Yi(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",p=t&&(ce(t[l])?t[l].call(this,n):t[l]);return this.format(p||this.localeData().calendar(l,this,le(n)))}function Ws(){return new ae(this)}function Hs(e,t){var n=E(e)?e:le(e);return this.isValid()&&n.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function qs(e,t){var n=E(e)?e:le(e);return this.isValid()&&n.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Vs(e,t,n,r){var l=E(e)?e:le(e),p=E(t)?t:le(t);return this.isValid()&&l.isValid()&&p.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(l,n):!this.isBefore(l,n))&&(r[1]===")"?this.isBefore(p,n):!this.isAfter(p,n))):!1}function $s(e,t){var n=E(e)?e:le(e),r;return this.isValid()&&n.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Gs(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Bs(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Zs(e,t,n){var r,l,p;if(!this.isValid())return NaN;if(r=Yi(e,this),!r.isValid())return NaN;switch(l=(r.utcOffset()-this.utcOffset())*6e4,t=K(t),t){case"year":p=Jt(this,r)/12;break;case"month":p=Jt(this,r);break;case"quarter":p=Jt(this,r)/3;break;case"second":p=(this-r)/1e3;break;case"minute":p=(this-r)/6e4;break;case"hour":p=(this-r)/36e5;break;case"day":p=(this-r-l)/864e5;break;case"week":p=(this-r-l)/6048e5;break;default:p=this-r}return n?p:we(p)}function Jt(e,t){if(e.date()<t.date())return-Jt(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),l,p;return t-r<0?(l=e.clone().add(n-1,"months"),p=(t-r)/(r-l)):(l=e.clone().add(n+1,"months"),p=(t-r)/(l-r)),-(n+p)||0}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Js(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Ks(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Xe(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ce(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Xe(n,"Z")):Xe(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qs(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,l,p;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",l="-MM-DD[T]HH:mm:ss.SSS",p=t+'[")]',this.format(n+r+l+p)}function Xs(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Xe(this,e);return this.localeData().postformat(t)}function eo(e,t){return this.isValid()&&(E(e)&&e.isValid()||le(e).isValid())?Pe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function to(e){return this.from(le(),e)}function io(e,t){return this.isValid()&&(E(e)&&e.isValid()||le(e).isValid())?Pe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function no(e){return this.to(le(),e)}function Dn(e){var t;return e===void 0?this._locale._abbr:(t=Ue(e),t!=null&&(this._locale=t),this)}var Pn=F("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Cn(){return this._locale}var Kt=1e3,pt=60*Kt,Qt=60*pt,Rn=(365*400+97)*24*Qt;function ht(e,t){return(e%t+t)%t}function Tn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Rn:new Date(e,t,n).valueOf()}function In(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Rn:Date.UTC(e,t,n)}function ao(e){var t,n;if(e=K(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?In:Tn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ht(t+(this._isUTC?0:this.utcOffset()*pt),Qt);break;case"minute":t=this._d.valueOf(),t-=ht(t,pt);break;case"second":t=this._d.valueOf(),t-=ht(t,Kt);break}return this._d.setTime(t),i.updateOffset(this,!0),this}function ro(e){var t,n;if(e=K(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?In:Tn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Qt-ht(t+(this._isUTC?0:this.utcOffset()*pt),Qt)-1;break;case"minute":t=this._d.valueOf(),t+=pt-ht(t,pt)-1;break;case"second":t=this._d.valueOf(),t+=Kt-ht(t,Kt)-1;break}return this._d.setTime(t),i.updateOffset(this,!0),this}function so(){return this._d.valueOf()-(this._offset||0)*6e4}function oo(){return Math.floor(this.valueOf()/1e3)}function lo(){return new Date(this.valueOf())}function co(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function uo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function fo(){return this.isValid()?this.toISOString():null}function po(){return z(this)}function ho(){return v({},D(this))}function mo(){return D(this).overflow}function vo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}A("N",0,0,"eraAbbr"),A("NN",0,0,"eraAbbr"),A("NNN",0,0,"eraAbbr"),A("NNNN",0,0,"eraName"),A("NNNNN",0,0,"eraNarrow"),A("y",["y",1],"yo","eraYear"),A("y",["yy",2],0,"eraYear"),A("y",["yyy",3],0,"eraYear"),A("y",["yyyy",4],0,"eraYear"),j("N",Ei),j("NN",Ei),j("NNN",Ei),j("NNNN",Do),j("NNNNN",Po),se(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var l=n._locale.erasParse(e,r,n._strict);l?D(n).era=l:D(n).invalidEra=e}),j("y",ut),j("yy",ut),j("yyy",ut),j("yyyy",ut),j("yo",Co),se(["y","yy","yyy","yyyy"],_e),se(["yo"],function(e,t,n,r){var l;n._locale._eraYearOrdinalRegex&&(l=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_e]=n._locale.eraYearOrdinalParse(e,l):t[_e]=parseInt(e,10)});function go(e,t){var n,r,l,p=this._eras||Ue("en")._eras;for(n=0,r=p.length;n<r;++n){switch(typeof p[n].since){case"string":l=i(p[n].since).startOf("day"),p[n].since=l.valueOf();break}switch(typeof p[n].until){case"undefined":p[n].until=1/0;break;case"string":l=i(p[n].until).startOf("day").valueOf(),p[n].until=l.valueOf();break}}return p}function _o(e,t,n){var r,l,p=this.eras(),b,U,B;for(e=e.toUpperCase(),r=0,l=p.length;r<l;++r)if(b=p[r].name.toUpperCase(),U=p[r].abbr.toUpperCase(),B=p[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(U===e)return p[r];break;case"NNNN":if(b===e)return p[r];break;case"NNNNN":if(B===e)return p[r];break}else if([b,U,B].indexOf(e)>=0)return p[r]}function xo(e,t){var n=e.since<=e.until?1:-1;return t===void 0?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function yo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function wo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function bo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function ko(){var e,t,n,r,l=this.localeData().eras();for(e=0,t=l.length;e<t;++e)if(n=l[e].since<=l[e].until?1:-1,r=this.clone().startOf("day").valueOf(),l[e].since<=r&&r<=l[e].until||l[e].until<=r&&r<=l[e].since)return(this.year()-i(l[e].since).year())*n+l[e].offset;return this.year()}function So(e){return d(this,"_erasNameRegex")||Ni.call(this),e?this._erasNameRegex:this._erasRegex}function Mo(e){return d(this,"_erasAbbrRegex")||Ni.call(this),e?this._erasAbbrRegex:this._erasRegex}function Oo(e){return d(this,"_erasNarrowRegex")||Ni.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ei(e,t){return t.erasAbbrRegex(e)}function Do(e,t){return t.erasNameRegex(e)}function Po(e,t){return t.erasNarrowRegex(e)}function Co(e,t){return t._eraYearOrdinalRegex||ut}function Ni(){var e=[],t=[],n=[],r=[],l,p,b=this.eras();for(l=0,p=b.length;l<p;++l)t.push(Se(b[l].name)),e.push(Se(b[l].abbr)),n.push(Se(b[l].narrow)),r.push(Se(b[l].name)),r.push(Se(b[l].abbr)),r.push(Se(b[l].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}A(0,["gg",2],0,function(){return this.weekYear()%100}),A(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Xt(e,t){A(0,[e,e.length],0,t)}Xt("gggg","weekYear"),Xt("ggggg","weekYear"),Xt("GGGG","isoWeekYear"),Xt("GGGGG","isoWeekYear"),G("weekYear","gg"),G("isoWeekYear","GG"),ee("weekYear",1),ee("isoWeekYear",1),j("G",Lt),j("g",Lt),j("GG",y,S),j("gg",y,S),j("GGGG",ge,_),j("gggg",ge,_),j("GGGGG",Re,g),j("ggggg",Re,g),Mt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=V(e)}),Mt(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)});function Ro(e){return Yn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function To(e){return Yn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Io(){return ze(this.year(),1,4)}function Yo(){return ze(this.isoWeekYear(),1,4)}function jo(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)}function Eo(){var e=this.localeData()._week;return ze(this.weekYear(),e.dow,e.doy)}function Yn(e,t,n,r,l){var p;return e==null?Pt(this,r,l).year:(p=ze(e,r,l),t>p&&(t=p),No.call(this,e,t,n,r,l))}function No(e,t,n,r,l){var p=dn(e,t,n,r,l),b=Dt(p.year,0,p.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}A("Q",0,"Qo","quarter"),G("quarter","Q"),ee("quarter",7),j("Q",Ft),se("Q",function(e,t){t[Ne]=(V(e)-1)*3});function Ao(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}A("D",["DD",2],"Do","date"),G("date","D"),ee("date",9),j("D",y),j("DD",y,S),j("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),se(["D","DD"],Te),se("Do",function(e,t){t[Te]=V(e.match(y)[0])});var jn=Ge("Date",!0);A("DDD",["DDDD",3],"DDDo","dayOfYear"),G("dayOfYear","DDD"),ee("dayOfYear",4),j("DDD",ne),j("DDDD",C),se(["DDD","DDDD"],function(e,t,n){n._dayOfYear=V(e)});function zo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}A("m",["mm",2],0,"minute"),G("minute","m"),ee("minute",14),j("m",y),j("mm",y,S),se(["m","mm"],De);var Uo=Ge("Minutes",!1);A("s",["ss",2],0,"second"),G("second","s"),ee("second",15),j("s",y),j("ss",y,S),se(["s","ss"],Ae);var Fo=Ge("Seconds",!1);A("S",0,0,function(){return~~(this.millisecond()/100)}),A(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),A(0,["SSS",3],0,"millisecond"),A(0,["SSSS",4],0,function(){return this.millisecond()*10}),A(0,["SSSSS",5],0,function(){return this.millisecond()*100}),A(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),A(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),A(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),A(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),G("millisecond","ms"),ee("millisecond",16),j("S",ne,Ft),j("SS",ne,S),j("SSS",ne,C);var Ze,En;for(Ze="SSSS";Ze.length<=9;Ze+="S")j(Ze,ut);function Lo(e,t){t[et]=V(("0."+e)*1e3)}for(Ze="S";Ze.length<=9;Ze+="S")se(Ze,Lo);En=Ge("Milliseconds",!1),A("z",0,0,"zoneAbbr"),A("zz",0,0,"zoneName");function Wo(){return this._isUTC?"UTC":""}function Ho(){return this._isUTC?"Coordinated Universal Time":""}var O=ae.prototype;O.add=js,O.calendar=Ls,O.clone=Ws,O.diff=Zs,O.endOf=ro,O.format=Xs,O.from=eo,O.fromNow=to,O.to=io,O.toNow=no,O.get=yi,O.invalidAt=mo,O.isAfter=Hs,O.isBefore=qs,O.isBetween=Vs,O.isSame=$s,O.isSameOrAfter=Gs,O.isSameOrBefore=Bs,O.isValid=po,O.lang=Pn,O.locale=Dn,O.localeData=Cn,O.max=fs,O.min=us,O.parsingFlags=ho,O.set=wi,O.startOf=ao,O.subtract=Es,O.toArray=co,O.toObject=uo,O.toDate=lo,O.toISOString=Ks,O.inspect=Qs,typeof Symbol!="undefined"&&Symbol.for!=null&&(O[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),O.toJSON=fo,O.toString=Js,O.unix=oo,O.valueOf=so,O.creationData=vo,O.eraName=yo,O.eraNarrow=wo,O.eraAbbr=bo,O.eraYear=ko,O.year=cn,O.isLeapYear=dr,O.weekYear=Ro,O.isoWeekYear=To,O.quarter=O.quarters=Ao,O.month=on,O.daysInMonth=or,O.week=O.weeks=vr,O.isoWeek=O.isoWeeks=gr,O.weeksInYear=jo,O.weeksInWeekYear=Eo,O.isoWeeksInYear=Io,O.isoWeeksInISOWeekYear=Yo,O.date=jn,O.day=O.days=Rr,O.weekday=Tr,O.isoWeekday=Ir,O.dayOfYear=zo,O.hour=O.hours=Ur,O.minute=O.minutes=Uo,O.second=O.seconds=Fo,O.millisecond=O.milliseconds=En,O.utcOffset=ws,O.utc=ks,O.local=Ss,O.parseZone=Ms,O.hasAlignedHourOffset=Os,O.isDST=Ds,O.isLocal=Cs,O.isUtcOffset=Rs,O.isUtc=bn,O.isUTC=bn,O.zoneAbbr=Wo,O.zoneName=Ho,O.dates=F("dates accessor is deprecated. Use date instead.",jn),O.months=F("months accessor is deprecated. Use month instead",on),O.years=F("years accessor is deprecated. Use year instead",cn),O.zone=F("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bs),O.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ps);function qo(e){return le(e*1e3)}function Vo(){return le.apply(null,arguments).parseZone()}function Nn(e){return e}var te=ot.prototype;te.calendar=bt,te.longDateFormat=xi,te.invalidDate=m,te.ordinal=I,te.preparse=Nn,te.postformat=Nn,te.relativeTime=me,te.pastFuture=ie,te.set=Ve,te.eras=go,te.erasParse=_o,te.erasConvertYear=xo,te.erasAbbrRegex=Mo,te.erasNameRegex=So,te.erasNarrowRegex=Oo,te.months=nr,te.monthsShort=ar,te.monthsParse=sr,te.monthsRegex=cr,te.monthsShortRegex=lr,te.week=fr,te.firstDayOfYear=mr,te.firstDayOfWeek=hr,te.weekdays=Mr,te.weekdaysMin=Dr,te.weekdaysShort=Or,te.weekdaysParse=Cr,te.weekdaysRegex=Yr,te.weekdaysShortRegex=jr,te.weekdaysMinRegex=Er,te.isPM=Ar,te.meridiem=Fr;function ei(e,t,n,r){var l=Ue(),p=M().set(r,t);return l[n](p,e)}function An(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",t!=null)return ei(e,t,n,"month");var r,l=[];for(r=0;r<12;r++)l[r]=ei(e,r,n,"month");return l}function Ai(e,t,n,r){typeof e=="boolean"?(h(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var l=Ue(),p=e?l._week.dow:0,b,U=[];if(n!=null)return ei(t,(n+p)%7,r,"day");for(b=0;b<7;b++)U[b]=ei(t,(b+p)%7,r,"day");return U}function $o(e,t){return An(e,t,"months")}function Go(e,t){return An(e,t,"monthsShort")}function Bo(e,t,n){return Ai(e,t,n,"weekdays")}function Zo(e,t,n){return Ai(e,t,n,"weekdaysShort")}function Jo(e,t,n){return Ai(e,t,n,"weekdaysMin")}Be("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=V(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),i.lang=F("moment.lang is deprecated. Use moment.locale instead.",Be),i.langData=F("moment.langData is deprecated. Use moment.localeData instead.",Ue);var Fe=Math.abs;function Ko(){var e=this._data;return this._milliseconds=Fe(this._milliseconds),this._days=Fe(this._days),this._months=Fe(this._months),e.milliseconds=Fe(e.milliseconds),e.seconds=Fe(e.seconds),e.minutes=Fe(e.minutes),e.hours=Fe(e.hours),e.months=Fe(e.months),e.years=Fe(e.years),this}function zn(e,t,n,r){var l=Pe(t,n);return e._milliseconds+=r*l._milliseconds,e._days+=r*l._days,e._months+=r*l._months,e._bubble()}function Qo(e,t){return zn(this,e,t,1)}function Xo(e,t){return zn(this,e,t,-1)}function Un(e){return e<0?Math.floor(e):Math.ceil(e)}function el(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,l,p,b,U,B;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Un(zi(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,l=we(e/1e3),r.seconds=l%60,p=we(l/60),r.minutes=p%60,b=we(p/60),r.hours=b%24,t+=we(b/24),B=we(Fn(t)),n+=B,t-=Un(zi(B)),U=we(n/12),n%=12,r.days=t,r.months=n,r.years=U,this}function Fn(e){return e*4800/146097}function zi(e){return e*146097/4800}function tl(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=K(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Fn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(zi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function il(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+V(this._months/12)*31536e6:NaN}function Le(e){return function(){return this.as(e)}}var nl=Le("ms"),al=Le("s"),rl=Le("m"),sl=Le("h"),ol=Le("d"),ll=Le("w"),cl=Le("M"),dl=Le("Q"),ul=Le("y");function fl(){return Pe(this)}function pl(e){return e=K(e),this.isValid()?this[e+"s"]():NaN}function it(e){return function(){return this.isValid()?this._data[e]:NaN}}var hl=it("milliseconds"),ml=it("seconds"),vl=it("minutes"),gl=it("hours"),_l=it("days"),xl=it("months"),yl=it("years");function wl(){return we(this.days()/7)}var We=Math.round,mt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bl(e,t,n,r,l){return l.relativeTime(t||1,!!n,e,r)}function kl(e,t,n,r){var l=Pe(e).abs(),p=We(l.as("s")),b=We(l.as("m")),U=We(l.as("h")),B=We(l.as("d")),oe=We(l.as("M")),ye=We(l.as("w")),He=We(l.as("y")),Je=p<=n.ss&&["s",p]||p<n.s&&["ss",p]||b<=1&&["m"]||b<n.m&&["mm",b]||U<=1&&["h"]||U<n.h&&["hh",U]||B<=1&&["d"]||B<n.d&&["dd",B];return n.w!=null&&(Je=Je||ye<=1&&["w"]||ye<n.w&&["ww",ye]),Je=Je||oe<=1&&["M"]||oe<n.M&&["MM",oe]||He<=1&&["y"]||["yy",He],Je[2]=t,Je[3]=+e>0,Je[4]=r,bl.apply(null,Je)}function Sl(e){return e===void 0?We:typeof e=="function"?(We=e,!0):!1}function Ml(e,t){return mt[e]===void 0?!1:t===void 0?mt[e]:(mt[e]=t,e==="s"&&(mt.ss=t-1),!0)}function Ol(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=mt,l,p;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},mt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),l=this.localeData(),p=kl(this,!n,r,l),n&&(p=l.pastFuture(+this,p)),l.postformat(p)}var Ui=Math.abs;function vt(e){return(e>0)-(e<0)||+e}function ti(){if(!this.isValid())return this.localeData().invalidDate();var e=Ui(this._milliseconds)/1e3,t=Ui(this._days),n=Ui(this._months),r,l,p,b,U=this.asSeconds(),B,oe,ye,He;return U?(r=we(e/60),l=we(r/60),e%=60,r%=60,p=we(n/12),n%=12,b=e?e.toFixed(3).replace(/\.?0+$/,""):"",B=U<0?"-":"",oe=vt(this._months)!==vt(U)?"-":"",ye=vt(this._days)!==vt(U)?"-":"",He=vt(this._milliseconds)!==vt(U)?"-":"",B+"P"+(p?oe+p+"Y":"")+(n?oe+n+"M":"")+(t?ye+t+"D":"")+(l||r||e?"T":"")+(l?He+l+"H":"")+(r?He+r+"M":"")+(e?He+b+"S":"")):"P0D"}var Q=Bt.prototype;Q.isValid=gs,Q.abs=Ko,Q.add=Qo,Q.subtract=Xo,Q.as=tl,Q.asMilliseconds=nl,Q.asSeconds=al,Q.asMinutes=rl,Q.asHours=sl,Q.asDays=ol,Q.asWeeks=ll,Q.asMonths=cl,Q.asQuarters=dl,Q.asYears=ul,Q.valueOf=il,Q._bubble=el,Q.clone=fl,Q.get=pl,Q.milliseconds=hl,Q.seconds=ml,Q.minutes=vl,Q.hours=gl,Q.days=_l,Q.weeks=wl,Q.months=xl,Q.years=yl,Q.humanize=Ol,Q.toISOString=ti,Q.toString=ti,Q.toJSON=ti,Q.locale=Dn,Q.localeData=Cn,Q.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ti),Q.lang=Pn,A("X",0,0,"unix"),A("x",0,0,"valueOf"),j("x",Lt),j("X",Ga),se("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),se("x",function(e,t,n){n._d=new Date(V(e))});return i.version="2.29.4",a(le),i.fn=O,i.min=ps,i.max=hs,i.now=ms,i.utc=M,i.unix=qo,i.months=$o,i.isDate=w,i.locale=Be,i.invalid=q,i.duration=Pe,i.isMoment=E,i.weekdays=Bo,i.parseZone=Vo,i.localeData=Ue,i.isDuration=Zt,i.monthsShort=Go,i.weekdaysMin=Jo,i.defineLocale=Oi,i.updateLocale=qr,i.locales=Vr,i.weekdaysShort=Zo,i.normalizeUnits=K,i.relativeTimeRounding=Sl,i.relativeTimeThreshold=Ml,i.calendarFormat=Fs,i.prototype=O,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})});var ka=fe(st=>{"use strict";var Xl=st&&st.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(st,"__esModule",{value:!0});st.Time=void 0;var Bi=Xl(ba()),ec;(function(o){function i(s){Bi.default.locale(document.documentElement.lang);let c=Bi.default(s).fromNow();return c=c==="a few seconds ago"?"seconds ago":c,c}o.formatHuman=i;function a(s,c="YYYY-MM-DD HH:mm"){return Bi.default(s).format(c)}o.format=a})(ec=st.Time||(st.Time={}))});var Et=fe(be=>{"use strict";var tc=be&&be.__createBinding||(Object.create?function(o,i,a,s){s===void 0&&(s=a),Object.defineProperty(o,s,{enumerable:!0,get:function(){return i[a]}})}:function(o,i,a,s){s===void 0&&(s=a),o[s]=i[a]}),Ke=be&&be.__exportStar||function(o,i){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&tc(i,o,a)};Object.defineProperty(be,"__esModule",{value:!0});Ke(Zn(),be);Ke(Kn(),be);Ke(Qn(),be);Ke(xa(),be);Ke(ya(),be);Ke(wa(),be);Ke(ka(),be);Ke($i(),be)});var Ma=fe((Sc,Sa)=>{"use strict";function di(){this._types=Object.create(null),this._extensions=Object.create(null);for(let o=0;o<arguments.length;o++)this.define(arguments[o]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}di.prototype.define=function(o,i){for(let a in o){let s=o[a].map(function(c){return c.toLowerCase()});a=a.toLowerCase();for(let c=0;c<s.length;c++){let d=s[c];if(d[0]!=="*"){if(!i&&d in this._types)throw new Error('Attempt to change mapping for "'+d+'" extension from "'+this._types[d]+'" to "'+a+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+a+'".');this._types[d]=a}}if(i||!this._extensions[a]){let c=s[0];this._extensions[a]=c[0]!=="*"?c:c.substr(1)}}};di.prototype.getType=function(o){o=String(o);let i=o.replace(/^.*[/\\]/,"").toLowerCase(),a=i.replace(/^.*\./,"").toLowerCase(),s=i.length<o.length;return(a.length<i.length-1||!s)&&this._types[a]||null};di.prototype.getExtension=function(o){return o=/^\s*([^;\s]*)/.test(o)&&RegExp.$1,o&&this._extensions[o.toLowerCase()]||null};Sa.exports=di});var Da=fe((Mc,Oa)=>{Oa.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}});var Ca=fe((Oc,Pa)=>{Pa.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var Ta=fe((Dc,Ra)=>{"use strict";var ic=Ma();Ra.exports=new ic(Da(),Ca())});var Ia,Ya,Zi,nc,Me,Ee,ac,Ji=gt(()=>{Ia=nt(Et()),Ya=nt(Ta()),Zi=nt(oi()),nc=new Zi.Token("@jupyterlite/contents:IContents");(function(o){o.JSON="application/json",o.PLAIN_TEXT="text/plain",o.OCTET_STREAM="octet/stream"})(Me||(Me={}));(function(o){let i=JSON.parse(Ia.PageConfig.getOption("fileTypes")||"{}");function a(c,d=null){c=c.toLowerCase();for(let f of Object.values(i))for(let u of f.extensions||[])if(u===c&&f.mimeTypes&&f.mimeTypes.length)return f.mimeTypes[0];return Ya.default.getType(c)||d||Me.OCTET_STREAM}o.getType=a;function s(c,d){c=c.toLowerCase();for(let f of Object.values(i))if(f.fileFormat===d){for(let u of f.extensions||[])if(u===c)return!0}return!1}o.hasFormat=s})(Ee||(Ee={}));ac=new Zi.Token("@jupyterlite/contents:IBroadcastChannelWrapper")});var qe,Ce,Na,ja,Ea,Ki,ui,Aa=gt(()=>{qe=nt(Et()),Ce=nt(Et());Ji();Na=nt(oi()),ja="JupyterLite Storage",Ea=5,Ki=class{constructor(i){this.reduceBytesToString=(a,s)=>a+String.fromCharCode(s),this._serverContents=new Map,this._storageName=ja,this._storageDrivers=null,this._localforage=i.localforage,this._storageName=i.storageName||ja,this._storageDrivers=i.storageDrivers||null,this._ready=new Na.PromiseDelegate}async initialize(){await this.initStorage(),this._ready.resolve(void 0)}async initStorage(){this._storage=this.createDefaultStorage(),this._counters=this.createDefaultCounters(),this._checkpoints=this.createDefaultCheckpoints()}get ready(){return this._ready.promise}get storage(){return this.ready.then(()=>this._storage)}get counters(){return this.ready.then(()=>this._counters)}get checkpoints(){return this.ready.then(()=>this._checkpoints)}get defaultStorageOptions(){let i=this._storageDrivers&&this._storageDrivers.length?this._storageDrivers:null;return{version:1,name:this._storageName,...i?{driver:i}:{}}}createDefaultStorage(){return this._localforage.createInstance({description:"Offline Storage for Notebooks and Files",storeName:"files",...this.defaultStorageOptions})}createDefaultCounters(){return this._localforage.createInstance({description:"Store the current file suffix counters",storeName:"counters",...this.defaultStorageOptions})}createDefaultCheckpoints(){return this._localforage.createInstance({description:"Offline Storage for Checkpoints",storeName:"checkpoints",...this.defaultStorageOptions})}async newUntitled(i){var a,s,c;let d=(a=i==null?void 0:i.path)!==null&&a!==void 0?a:"",f=(s=i==null?void 0:i.type)!==null&&s!==void 0?s:"notebook",u=new Date().toISOString(),h=Ce.PathExt.dirname(d),w=Ce.PathExt.basename(d),k=Ce.PathExt.extname(d),v=await this.get(h),M="";d&&!k&&v?(h=`${d}/`,M=""):h&&w?(h=`${h}/`,M=w):(h="",M=d);let T;switch(f){case"directory":{M=`Untitled Folder${await this._incrementCounter("directory")||""}`,T={name:M,path:`${h}${M}`,last_modified:u,created:u,format:"json",mimetype:"",content:null,size:0,writable:!0,type:"directory"};break}case"notebook":{let re=await this._incrementCounter("notebook");M=M||`Untitled${re||""}.ipynb`,T={name:M,path:`${h}${M}`,last_modified:u,created:u,format:"json",mimetype:Me.JSON,content:ui.EMPTY_NB,size:JSON.stringify(ui.EMPTY_NB).length,writable:!0,type:"notebook"};break}default:{let re=(c=i==null?void 0:i.ext)!==null&&c!==void 0?c:".txt",z=await this._incrementCounter("file"),q=Ee.getType(re)||Me.OCTET_STREAM,W;Ee.hasFormat(re,"text")||q.indexOf("text")!==-1?W="text":re.indexOf("json")!==-1||re.indexOf("ipynb")!==-1?W="json":W="base64",M=M||`untitled${z||""}${re}`,T={name:M,path:`${h}${M}`,last_modified:u,created:u,format:W,mimetype:q,content:"",size:0,writable:!0,type:"file"};break}}let D=T.path;return await(await this.storage).setItem(D,T),T}async copy(i,a){let s=Ce.PathExt.basename(i);for(a=a===""?"":`${a.slice(1)}/`;await this.get(`${a}${s}`,{content:!0});){let f=Ce.PathExt.extname(s);s=`${s.replace(f,"")} (copy)${f}`}let c=`${a}${s}`,d=await this.get(i,{content:!0});if(!d)throw Error(`Could not find file with path ${i}`);return d={...d,name:s,path:c},await(await this.storage).setItem(c,d),d}async get(i,a){if(i=decodeURIComponent(i.replace(/^\//,"")),i==="")return await this._getFolder(i);let s=await this.storage,c=await s.getItem(i),d=await this._getServerContents(i,a),f=c||d;if(!f)return null;if(!(a!=null&&a.content))return{size:0,...f,content:null};if(f.type==="directory"){let u=new Map;await s.iterate((k,v)=>{v===`${i}/${k.name}`&&u.set(k.name,k)});let h=d?d.content:Array.from((await this._getServerDirectory(i)).values());for(let k of h)u.has(k.name)||u.set(k.name,k);let w=[...u.values()];return{name:Ce.PathExt.basename(i),path:i,last_modified:f.last_modified,created:f.created,format:"json",mimetype:Me.JSON,content:w,size:0,writable:!0,type:"directory"}}return f}async rename(i,a){let s=decodeURIComponent(i),c=await this.get(s,{content:!0});if(!c)throw Error(`Could not find file with path ${s}`);let d=new Date().toISOString(),f=Ce.PathExt.basename(a),u={...c,name:f,path:a,last_modified:d},h=await this.storage;if(await h.setItem(a,u),await h.removeItem(s),await(await this.checkpoints).removeItem(s),c.type==="directory"){let w;for(w of c.content)await this.rename(qe.URLExt.join(i,w.name),qe.URLExt.join(a,w.name))}return u}async save(i,a={}){var s;i=decodeURIComponent(i);let c=Ce.PathExt.extname((s=a.name)!==null&&s!==void 0?s:""),d=a.chunk,f=d?d>1||d===-1:!1,u=await this.get(i,{content:f});if(u||(u=await this.newUntitled({path:i,ext:c,type:"file"})),!u)return null;let h=u.content,w=new Date().toISOString();if(u={...u,...a,last_modified:w},a.content&&a.format==="base64"){let k=d?d===-1:!0;if(c===".ipynb"){let v=this._handleChunk(a.content,h,f);u={...u,content:k?JSON.parse(v):v,format:"json",type:"notebook",size:v.length}}else if(Ee.hasFormat(c,"json")){let v=this._handleChunk(a.content,h,f);u={...u,content:k?JSON.parse(v):v,format:"json",type:"file",size:v.length}}else if(Ee.hasFormat(c,"text")){let v=this._handleChunk(a.content,h,f);u={...u,content:v,format:"text",type:"file",size:v.length}}else{let v=a.content;u={...u,content:v,size:atob(v).length}}}return await(await this.storage).setItem(i,u),u}async delete(i){i=decodeURIComponent(i);let a=`${i}/`,s=(await(await this.storage).keys()).filter(c=>c===i||c.startsWith(a));await Promise.all(s.map(this.forgetPath,this))}async forgetPath(i){await Promise.all([(await this.storage).removeItem(i),(await this.checkpoints).removeItem(i)])}async createCheckpoint(i){var a;let s=await this.checkpoints;i=decodeURIComponent(i);let c=await this.get(i,{content:!0});if(!c)throw Error(`Could not find file with path ${i}`);let d=((a=await s.getItem(i))!==null&&a!==void 0?a:[]).filter(Boolean);return d.push(c),d.length>Ea&&d.splice(0,d.length-Ea),await s.setItem(i,d),{id:`${d.length-1}`,last_modified:c.last_modified}}async listCheckpoints(i){return(await(await this.checkpoints).getItem(i)||[]).filter(Boolean).map(this.normalizeCheckpoint,this)}normalizeCheckpoint(i,a){return{id:a.toString(),last_modified:i.last_modified}}async restoreCheckpoint(i,a){i=decodeURIComponent(i);let s=await(await this.checkpoints).getItem(i)||[],c=parseInt(a),d=s[c];await(await this.storage).setItem(i,d)}async deleteCheckpoint(i,a){i=decodeURIComponent(i);let s=await(await this.checkpoints).getItem(i)||[],c=parseInt(a);s.splice(c,1),await(await this.checkpoints).setItem(i,s)}_handleChunk(i,a,s){let c=decodeURIComponent(escape(atob(i)));return s?a+c:c}async _getFolder(i){let a=new Map;await(await this.storage).iterate((c,d)=>{d.includes("/")||a.set(c.path,c)});for(let c of(await this._getServerDirectory(i)).values())a.has(c.path)||a.set(c.path,c);return i&&a.size===0?null:{name:"",path:i,last_modified:new Date(0).toISOString(),created:new Date(0).toISOString(),format:"json",mimetype:Me.JSON,content:Array.from(a.values()),size:0,writable:!0,type:"directory"}}async _getServerContents(i,a){let s=Ce.PathExt.basename(i),d=(await this._getServerDirectory(qe.URLExt.join(i,".."))).get(s);if(!d)return null;if(d=d||{name:s,path:i,last_modified:new Date(0).toISOString(),created:new Date(0).toISOString(),format:"text",mimetype:Me.PLAIN_TEXT,type:"file",writable:!0,size:0,content:""},a!=null&&a.content)if(d.type==="directory"){let f=await this._getServerDirectory(i);d={...d,content:Array.from(f.values())}}else{let f=qe.URLExt.join(qe.PageConfig.getBaseUrl(),"files",i),u=await fetch(f);if(!u.ok)return null;let h=d.mimetype||u.headers.get("Content-Type"),w=Ce.PathExt.extname(s);if(d.type==="notebook"||Ee.hasFormat(w,"json")||(h==null?void 0:h.indexOf("json"))!==-1||i.match(/\.(ipynb|[^/]*json[^/]*)$/)){let k=await u.text();d={...d,content:JSON.parse(k),format:"json",mimetype:d.mimetype||Me.JSON,size:k.length}}else if(Ee.hasFormat(w,"text")||h.indexOf("text")!==-1){let k=await u.text();d={...d,content:k,format:"text",mimetype:h||Me.PLAIN_TEXT,size:k.length}}else{let k=await u.arrayBuffer(),v=new Uint8Array(k);d={...d,content:btoa(v.reduce(this.reduceBytesToString,"")),format:"base64",mimetype:h||Me.OCTET_STREAM,size:v.length}}}return d}async _getServerDirectory(i){let a=this._serverContents.get(i)||new Map;if(!this._serverContents.has(i)){let s=qe.URLExt.join(qe.PageConfig.getBaseUrl(),"api/contents",i,"all.json");try{let c=await fetch(s),d=JSON.parse(await c.text());for(let f of d.content)a.set(f.name,f)}catch(c){console.warn(`don't worry, about ${c}... nothing's broken. If there had been a
7
- file at ${s}, you might see some more files.`)}this._serverContents.set(i,a)}return a}async _incrementCounter(i){var a;let s=await this.counters,d=((a=await s.getItem(i))!==null&&a!==void 0?a:-1)+1;return await s.setItem(i,d),d}};(function(o){o.EMPTY_NB={metadata:{orig_nbformat:4},nbformat_minor:4,nbformat:4,cells:[]}})(ui||(ui={}))});var fi,za,rc,sc,Ua=gt(()=>{fi=16895,za=33206,rc=1,sc=2});var La,Xi,vi,oc,lc,Fa,pi,hi,mi,Qi,en=gt(()=>{La=":",Xi="/api/drive.v1",vi=4096,oc=new TextEncoder,lc=new TextDecoder("utf-8"),Fa={0:!1,1:!0,2:!0,64:!0,65:!0,66:!0,129:!0,193:!0,514:!0,577:!0,578:!0,705:!0,706:!0,1024:!0,1025:!0,1026:!0,1089:!0,1090:!0,1153:!0,1154:!0,1217:!0,1218:!0,4096:!0,4098:!0},pi=class{constructor(i){this.fs=i}open(i){let a=this.fs.realPath(i.node);this.fs.FS.isFile(i.node.mode)&&(i.file=this.fs.API.get(a))}close(i){if(!this.fs.FS.isFile(i.node.mode)||!i.file)return;let a=this.fs.realPath(i.node),s=i.flags,c=typeof s=="string"?parseInt(s,10):s;c&=8191;let d=!0;c in Fa&&(d=Fa[c]),d&&this.fs.API.put(a,i.file),i.file=void 0}read(i,a,s,c,d){if(c<=0||i.file===void 0||d>=(i.file.data.length||0))return 0;let f=Math.min(i.file.data.length-d,c);return a.set(i.file.data.subarray(d,d+f),s),f}write(i,a,s,c,d){var f;if(c<=0||i.file===void 0)return 0;if(i.node.timestamp=Date.now(),d+c>(((f=i.file)===null||f===void 0?void 0:f.data.length)||0)){let u=i.file.data?i.file.data:new Uint8Array;i.file.data=new Uint8Array(d+c),i.file.data.set(u)}return i.file.data.set(a.subarray(s,s+c),d),c}llseek(i,a,s){let c=a;if(s===1)c+=i.position;else if(s===2&&this.fs.FS.isFile(i.node.mode))if(i.file!==void 0)c+=i.file.data.length;else throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM);if(c<0)throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EINVAL);return c}},hi=class{constructor(i){this.fs=i}getattr(i){return{...this.fs.API.getattr(this.fs.realPath(i)),mode:i.mode,ino:i.id}}setattr(i,a){for(let[s,c]of Object.entries(a))switch(s){case"mode":i.mode=c;break;case"timestamp":i.timestamp=c;break;default:console.warn("setattr",s,"of",c,"on",i,"not yet implemented");break}}lookup(i,a){let s=this.fs.PATH.join2(this.fs.realPath(i),a),c=this.fs.API.lookup(s);if(!c.ok)throw this.fs.FS.genericErrors[this.fs.ERRNO_CODES.ENOENT];return this.fs.createNode(i,a,c.mode,0)}mknod(i,a,s,c){let d=this.fs.PATH.join2(this.fs.realPath(i),a);return this.fs.API.mknod(d,s),this.fs.createNode(i,a,s,c)}rename(i,a,s){this.fs.API.rename(i.parent?this.fs.PATH.join2(this.fs.realPath(i.parent),i.name):i.name,this.fs.PATH.join2(this.fs.realPath(a),s)),i.name=s,i.parent=a}unlink(i,a){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(i),a))}rmdir(i,a){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(i),a))}readdir(i){return this.fs.API.readdir(this.fs.realPath(i))}symlink(i,a,s){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}readlink(i){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}},mi=class{constructor(i,a,s,c,d){this._baseUrl=i,this._driveName=a,this._mountpoint=s,this.FS=c,this.ERRNO_CODES=d}request(i){let a=new XMLHttpRequest;a.open("POST",encodeURI(this.endpoint),!1);try{a.send(JSON.stringify(i))}catch(s){console.error(s)}if(a.status>=400)throw new this.FS.ErrnoError(this.ERRNO_CODES.EINVAL);return JSON.parse(a.responseText)}lookup(i){return this.request({method:"lookup",path:this.normalizePath(i)})}getmode(i){return Number.parseInt(this.request({method:"getmode",path:this.normalizePath(i)}))}mknod(i,a){return this.request({method:"mknod",path:this.normalizePath(i),data:{mode:a}})}rename(i,a){return this.request({method:"rename",path:this.normalizePath(i),data:{newPath:this.normalizePath(a)}})}readdir(i){let a=this.request({method:"readdir",path:this.normalizePath(i)});return a.push("."),a.push(".."),a}rmdir(i){return this.request({method:"rmdir",path:this.normalizePath(i)})}get(i){let a=this.request({method:"get",path:this.normalizePath(i)}),s=a.content,c=a.format;switch(c){case"json":case"text":return{data:oc.encode(s),format:c};case"base64":{let d=atob(s),f=d.length,u=new Uint8Array(f);for(let h=0;h<f;h++)u[h]=d.charCodeAt(h);return{data:u,format:c}}default:throw new this.FS.ErrnoError(this.ERRNO_CODES.ENOENT)}}put(i,a){switch(a.format){case"json":case"text":return this.request({method:"put",path:this.normalizePath(i),data:{format:a.format,data:lc.decode(a.data)}});case"base64":{let s="";for(let c=0;c<a.data.byteLength;c++)s+=String.fromCharCode(a.data[c]);return this.request({method:"put",path:this.normalizePath(i),data:{format:a.format,data:btoa(s)}})}}}getattr(i){let a=this.request({method:"getattr",path:this.normalizePath(i)});return a.atime=new Date(a.atime),a.mtime=new Date(a.mtime),a.ctime=new Date(a.ctime),a.size=a.size||0,a}normalizePath(i){return i.startsWith(this._mountpoint)&&(i=i.slice(this._mountpoint.length)),this._driveName&&(i=`${this._driveName}${La}${i}`),i}get endpoint(){return`${this._baseUrl}api/drive`}},Qi=class{constructor(i){this.FS=i.FS,this.PATH=i.PATH,this.ERRNO_CODES=i.ERRNO_CODES,this.API=new mi(i.baseUrl,i.driveName,i.mountpoint,this.FS,this.ERRNO_CODES),this.driveName=i.driveName,this.node_ops=new hi(this),this.stream_ops=new pi(this)}mount(i){return this.createNode(null,i.mountpoint,16895,0)}createNode(i,a,s,c){let d=this.FS;if(!d.isDir(s)&&!d.isFile(s))throw new d.ErrnoError(this.ERRNO_CODES.EINVAL);let f=d.createNode(i,a,s,c);return f.node_ops=this.node_ops,f.stream_ops=this.stream_ops,f}getMode(i){return this.API.getmode(i)}realPath(i){let a=[],s=i;for(a.push(s.name);s.parent!==s;)s=s.parent,a.push(s.name);return a.reverse(),this.PATH.join.apply(null,a)}}});var tn,nn,Wa=gt(()=>{tn=nt(Et());en();nn=class{constructor(i){this.isDisposed=!1,this._onMessage=async a=>{if(!this._channel)return;let{_contents:s}=this,c=a.data,d=c==null?void 0:c.path;if((c==null?void 0:c.receiver)!=="broadcast.ts")return;let u=null,h;switch(c==null?void 0:c.method){case"readdir":h=await s.get(d,{content:!0}),u=[],h.type==="directory"&&h.content&&(u=h.content.map(w=>w.name));break;case"rmdir":await s.delete(d);break;case"rename":await s.rename(d,c.data.newPath);break;case"getmode":h=await s.get(d),h.type==="directory"?u=16895:u=33206;break;case"lookup":try{h=await s.get(d),u={ok:!0,mode:h.type==="directory"?16895:33206}}catch{u={ok:!1}}break;case"mknod":h=await s.newUntitled({path:tn.PathExt.dirname(d),type:Number.parseInt(c.data.mode)===16895?"directory":"file",ext:tn.PathExt.extname(d)}),await s.rename(h.path,d);break;case"getattr":h=await s.get(d),u={dev:1,nlink:1,uid:0,gid:0,rdev:0,size:h.size||0,blksize:vi,blocks:Math.ceil(h.size||0/vi),atime:h.last_modified,mtime:h.last_modified,ctime:h.created,timestamp:0};break;case"get":if(h=await s.get(d,{content:!0}),h.type==="directory")break;u={content:h.format==="json"?JSON.stringify(h.content):h.content,format:h.format};break;case"put":await s.save(d,{content:c.data.format==="json"?JSON.parse(c.data.data):c.data.data,type:"file",format:c.data.format});break;default:u=null;break}this._channel.postMessage(u)},this._channel=null,this._enabled=!1,this._contents=i.contents}get enabled(){return this._enabled}enable(){if(this._channel){console.warn("BroadcastChannel already created and enabled");return}this._channel=new BroadcastChannel(Xi),this._channel.addEventListener("message",this._onMessage),this._enabled=!0}disable(){this._channel&&(this._channel.removeEventListener("message",this._onMessage),this._channel=null),this._enabled=!1}dispose(){this.isDisposed||(this.disable(),this.isDisposed=!0)}}});var Ha={};Il(Ha,{BLOCK_SIZE:()=>vi,BroadcastChannelWrapper:()=>nn,Contents:()=>Ki,ContentsAPI:()=>mi,DIR_MODE:()=>fi,DRIVE_API_PATH:()=>Xi,DRIVE_SEPARATOR:()=>La,DriveFS:()=>Qi,DriveFSEmscriptenNodeOps:()=>hi,DriveFSEmscriptenStreamOps:()=>pi,FILE:()=>Ee,FILE_MODE:()=>za,IBroadcastChannelWrapper:()=>ac,IContents:()=>nc,MIME:()=>Me,SEEK_CUR:()=>rc,SEEK_END:()=>sc});var qa=gt(()=>{Aa();en();Ji();Wa();Ua()});var Va=class{constructor(){this._options=null;this._initializer=null;this._pyodide=null;this._localPath="";this._driveName="";this._driveFS=null;this._initialized=new Promise((i,a)=>{this._initializer={resolve:i,reject:a}})}async initialize(i){var a;if(this._options=i,i.location.includes(":")){let s=i.location.split(":");this._driveName=s[0],this._localPath=s[1]}else this._driveName="",this._localPath=i.location;await this.initRuntime(i),await this.initFilesystem(i),await this.initPackageManager(i),await this.initKernel(i),await this.initGlobals(i),(a=this._initializer)==null||a.resolve()}async initRuntime(i){let{pyodideUrl:a,indexUrl:s}=i,c;a.endsWith(".mjs")?c=(await import(a)).loadPyodide:(importScripts(a),c=self.loadPyodide),this._pyodide=await c({indexURL:s})}async initPackageManager(i){if(!this._options)throw new Error("Uninitialized");let{pipliteWheelUrl:a,disablePyPIFallback:s,pipliteUrls:c}=this._options;await this._pyodide.loadPackage(["micropip"]),await this._pyodide.runPythonAsync(`
1
+ var ni=Object.create;var Me=Object.defineProperty;var ai=Object.getOwnPropertyDescriptor;var oi=Object.getOwnPropertyNames;var si=Object.getPrototypeOf,ri=Object.prototype.hasOwnProperty;var ce=(n,e)=>()=>(n&&(e=n(n=0)),e);var F=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),li=(n,e)=>{for(var t in e)Me(n,t,{get:e[t],enumerable:!0})},ci=(n,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of oi(e))!ri.call(n,a)&&a!==t&&Me(n,a,{get:()=>e[a],enumerable:!(i=ai(e,a))||i.enumerable});return n};var se=(n,e,t)=>(t=n!=null?ni(si(n)):{},ci(e||!n||!n.__esModule?Me(t,"default",{value:n,enumerable:!0}):t,n));var Ye=F((be,Ve)=>{(function(n,e){typeof be=="object"&&typeof Ve!="undefined"?e(be):typeof define=="function"&&define.amd?define(["exports"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n.lumino_algorithm={}))})(be,function(n){"use strict";n.ArrayExt=void 0,function(u){function v(g,w,d=0,p=-1){let f=g.length;if(f===0)return-1;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _;p<d?_=p+1+(f-d):_=p-d+1;for(let k=0;k<_;++k){let U=(d+k)%f;if(g[U]===w)return U}return-1}u.firstIndexOf=v;function x(g,w,d=-1,p=0){let f=g.length;if(f===0)return-1;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _;d<p?_=d+1+(f-p):_=d-p+1;for(let k=0;k<_;++k){let U=(d-k+f)%f;if(g[U]===w)return U}return-1}u.lastIndexOf=x;function y(g,w,d=0,p=-1){let f=g.length;if(f===0)return-1;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _;p<d?_=p+1+(f-d):_=p-d+1;for(let k=0;k<_;++k){let U=(d+k)%f;if(w(g[U],U))return U}return-1}u.findFirstIndex=y;function M(g,w,d=-1,p=0){let f=g.length;if(f===0)return-1;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _;d<p?_=d+1+(f-p):_=d-p+1;for(let k=0;k<_;++k){let U=(d-k+f)%f;if(w(g[U],U))return U}return-1}u.findLastIndex=M;function B(g,w,d=0,p=-1){let f=y(g,w,d,p);return f!==-1?g[f]:void 0}u.findFirstValue=B;function T(g,w,d=-1,p=0){let f=M(g,w,d,p);return f!==-1?g[f]:void 0}u.findLastValue=T;function A(g,w,d,p=0,f=-1){let _=g.length;if(_===0)return 0;p<0?p=Math.max(0,p+_):p=Math.min(p,_-1),f<0?f=Math.max(0,f+_):f=Math.min(f,_-1);let k=p,U=f-p+1;for(;U>0;){let Z=U>>1,fe=k+Z;d(g[fe],w)<0?(k=fe+1,U-=Z+1):U=Z}return k}u.lowerBound=A;function H(g,w,d,p=0,f=-1){let _=g.length;if(_===0)return 0;p<0?p=Math.max(0,p+_):p=Math.min(p,_-1),f<0?f=Math.max(0,f+_):f=Math.min(f,_-1);let k=p,U=f-p+1;for(;U>0;){let Z=U>>1,fe=k+Z;d(g[fe],w)>0?U=Z:(k=fe+1,U-=Z+1)}return k}u.upperBound=H;function L(g,w,d){if(g===w)return!0;if(g.length!==w.length)return!1;for(let p=0,f=g.length;p<f;++p)if(d?!d(g[p],w[p]):g[p]!==w[p])return!1;return!0}u.shallowEqual=L;function W(g,w={}){let{start:d,stop:p,step:f}=w;if(f===void 0&&(f=1),f===0)throw new Error("Slice `step` cannot be zero.");let _=g.length;d===void 0?d=f<0?_-1:0:d<0?d=Math.max(d+_,f<0?-1:0):d>=_&&(d=f<0?_-1:_),p===void 0?p=f<0?-1:_:p<0?p=Math.max(p+_,f<0?-1:0):p>=_&&(p=f<0?_-1:_);let k;f<0&&p>=d||f>0&&d>=p?k=0:f<0?k=Math.floor((p-d+1)/f+1):k=Math.floor((p-d-1)/f+1);let U=[];for(let Z=0;Z<k;++Z)U[Z]=g[d+Z*f];return U}u.slice=W;function $(g,w,d){let p=g.length;if(p<=1||(w<0?w=Math.max(0,w+p):w=Math.min(w,p-1),d<0?d=Math.max(0,d+p):d=Math.min(d,p-1),w===d))return;let f=g[w],_=w<d?1:-1;for(let k=w;k!==d;k+=_)g[k]=g[k+_];g[d]=f}u.move=$;function K(g,w=0,d=-1){let p=g.length;if(!(p<=1))for(w<0?w=Math.max(0,w+p):w=Math.min(w,p-1),d<0?d=Math.max(0,d+p):d=Math.min(d,p-1);w<d;){let f=g[w],_=g[d];g[w++]=_,g[d--]=f}}u.reverse=K;function G(g,w,d=0,p=-1){let f=g.length;if(f<=1||(d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1),d>=p))return;let _=p-d+1;if(w>0?w=w%_:w<0&&(w=(w%_+_)%_),w===0)return;let k=d+w;K(g,d,k-1),K(g,k,p),K(g,d,p)}u.rotate=G;function Q(g,w,d=0,p=-1){let f=g.length;if(f===0)return;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _;p<d?_=p+1+(f-d):_=p-d+1;for(let k=0;k<_;++k)g[(d+k)%f]=w}u.fill=Q;function Zt(g,w,d){let p=g.length;w<0?w=Math.max(0,w+p):w=Math.min(w,p);for(let f=p;f>w;--f)g[f]=g[f-1];g[w]=d}u.insert=Zt;function me(g,w){let d=g.length;if(w<0&&(w+=d),w<0||w>=d)return;let p=g[w];for(let f=w+1;f<d;++f)g[f-1]=g[f];return g.length=d-1,p}u.removeAt=me;function Gt(g,w,d=0,p=-1){let f=v(g,w,d,p);return f!==-1&&me(g,f),f}u.removeFirstOf=Gt;function Xt(g,w,d=-1,p=0){let f=x(g,w,d,p);return f!==-1&&me(g,f),f}u.removeLastOf=Xt;function Qt(g,w,d=0,p=-1){let f=g.length;if(f===0)return 0;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _=0;for(let k=0;k<f;++k)d<=p&&k>=d&&k<=p&&g[k]===w||p<d&&(k<=p||k>=d)&&g[k]===w?_++:_>0&&(g[k-_]=g[k]);return _>0&&(g.length=f-_),_}u.removeAllOf=Qt;function ei(g,w,d=0,p=-1){let f,_=y(g,w,d,p);return _!==-1&&(f=me(g,_)),{index:_,value:f}}u.removeFirstWhere=ei;function ti(g,w,d=-1,p=0){let f,_=M(g,w,d,p);return _!==-1&&(f=me(g,_)),{index:_,value:f}}u.removeLastWhere=ti;function ii(g,w,d=0,p=-1){let f=g.length;if(f===0)return 0;d<0?d=Math.max(0,d+f):d=Math.min(d,f-1),p<0?p=Math.max(0,p+f):p=Math.min(p,f-1);let _=0;for(let k=0;k<f;++k)d<=p&&k>=d&&k<=p&&w(g[k],k)||p<d&&(k<=p||k>=d)&&w(g[k],k)?_++:_>0&&(g[k-_]=g[k]);return _>0&&(g.length=f-_),_}u.removeAllWhere=ii}(n.ArrayExt||(n.ArrayExt={}));function*e(...u){for(let v of u)yield*v}function*t(){}function*i(u,v=0){for(let x of u)yield[v++,x]}function*a(u,v){let x=0;for(let y of u)v(y,x++)&&(yield y)}function o(u,v){let x=0;for(let y of u)if(v(y,x++))return y}function r(u,v){let x=0;for(let y of u)if(v(y,x++))return x-1;return-1}function s(u,v){let x;for(let y of u){if(x===void 0){x=y;continue}v(y,x)<0&&(x=y)}return x}function l(u,v){let x;for(let y of u){if(x===void 0){x=y;continue}v(y,x)>0&&(x=y)}return x}function m(u,v){let x=!0,y,M;for(let B of u)x?(y=B,M=B,x=!1):v(B,y)<0?y=B:v(B,M)>0&&(M=B);return x?void 0:[y,M]}function h(u){return Array.from(u)}function c(u){let v={};for(let[x,y]of u)v[x]=y;return v}function b(u,v){let x=0;for(let y of u)if(v(y,x++)===!1)return}function j(u,v){let x=0;for(let y of u)if(v(y,x++)===!1)return!1;return!0}function C(u,v){let x=0;for(let y of u)if(v(y,x++))return!0;return!1}function*q(u,v){let x=0;for(let y of u)yield v(y,x++)}function*O(u,v,x){v===void 0?(v=u,u=0,x=1):x===void 0&&(x=1);let y=S.rangeLength(u,v,x);for(let M=0;M<y;M++)yield u+x*M}var S;(function(u){function v(x,y,M){return M===0?1/0:x>y&&M>0||x<y&&M<0?0:Math.ceil((y-x)/M)}u.rangeLength=v})(S||(S={}));function R(u,v,x){let y=u[Symbol.iterator](),M=0,B=y.next();if(B.done&&x===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(B.done)return x;let T=y.next();if(T.done&&x===void 0)return B.value;if(T.done)return v(x,B.value,M++);let A;x===void 0?A=v(B.value,T.value,M++):A=v(v(x,B.value,M++),T.value,M++);let H;for(;!(H=y.next()).done;)A=v(A,H.value,M++);return A}function*I(u,v){for(;0<v--;)yield u}function*P(u){yield u}function*N(u){if(typeof u.retro=="function")yield*u.retro();else for(let v=u.length-1;v>-1;v--)yield u[v]}function V(u){let v=[],x=new Set,y=new Map;for(let T of u)M(T);for(let[T]of y)B(T);return v;function M(T){let[A,H]=T,L=y.get(H);L?L.push(A):y.set(H,[A])}function B(T){if(x.has(T))return;x.add(T);let A=y.get(T);if(A)for(let H of A)B(H);v.push(T)}}function*D(u,v){let x=0;for(let y of u)x++%v===0&&(yield y)}n.StringExt=void 0,function(u){function v(T,A,H=0){let L=new Array(A.length);for(let W=0,$=H,K=A.length;W<K;++W,++$){if($=T.indexOf(A[W],$),$===-1)return null;L[W]=$}return L}u.findIndices=v;function x(T,A,H=0){let L=v(T,A,H);if(!L)return null;let W=0;for(let $=0,K=L.length;$<K;++$){let G=L[$]-H;W+=G*G}return{score:W,indices:L}}u.matchSumOfSquares=x;function y(T,A,H=0){let L=v(T,A,H);if(!L)return null;let W=0,$=H-1;for(let K=0,G=L.length;K<G;++K){let Q=L[K];W+=Q-$-1,$=Q}return{score:W,indices:L}}u.matchSumOfDeltas=y;function M(T,A,H){let L=[],W=0,$=0,K=A.length;for(;W<K;){let G=A[W],Q=A[W];for(;++W<K&&A[W]===Q+1;)Q++;$<G&&L.push(T.slice($,G)),G<Q+1&&L.push(H(T.slice(G,Q+1))),$=Q+1}return $<T.length&&L.push(T.slice($)),L}u.highlight=M;function B(T,A){return T<A?-1:T>A?1:0}u.cmp=B}(n.StringExt||(n.StringExt={}));function*z(u,v){if(v<1)return;let x=u[Symbol.iterator](),y;for(;0<v--&&!(y=x.next()).done;)yield y.value}function*E(...u){let v=u.map(y=>y[Symbol.iterator]()),x=v.map(y=>y.next());for(;j(x,y=>!y.done);x=v.map(y=>y.next()))yield x.map(y=>y.value)}n.chain=e,n.each=b,n.empty=t,n.enumerate=i,n.every=j,n.filter=a,n.find=o,n.findIndex=r,n.map=q,n.max=l,n.min=s,n.minmax=m,n.once=P,n.range=O,n.reduce=R,n.repeat=I,n.retro=N,n.some=C,n.stride=D,n.take=z,n.toArray=h,n.toObject=c,n.topologicSort=V,n.zip=E})});var pe=F((we,Ze)=>{(function(n,e){typeof we=="object"&&typeof Ze!="undefined"?e(we):typeof define=="function"&&define.amd?define(["exports"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n.lumino_coreutils={}))})(we,function(n){"use strict";n.JSONExt=void 0,function(r){r.emptyObject=Object.freeze({}),r.emptyArray=Object.freeze([]);function s(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"}r.isPrimitive=s;function l(O){return Array.isArray(O)}r.isArray=l;function m(O){return!s(O)&&!l(O)}r.isObject=m;function h(O,S){if(O===S)return!0;if(s(O)||s(S))return!1;let R=l(O),I=l(S);return R!==I?!1:R&&I?b(O,S):j(O,S)}r.deepEqual=h;function c(O){return s(O)?O:l(O)?C(O):q(O)}r.deepCopy=c;function b(O,S){if(O===S)return!0;if(O.length!==S.length)return!1;for(let R=0,I=O.length;R<I;++R)if(!h(O[R],S[R]))return!1;return!0}function j(O,S){if(O===S)return!0;for(let R in O)if(O[R]!==void 0&&!(R in S))return!1;for(let R in S)if(S[R]!==void 0&&!(R in O))return!1;for(let R in O){let I=O[R],P=S[R];if(!(I===void 0&&P===void 0)&&(I===void 0||P===void 0||!h(I,P)))return!1}return!0}function C(O){let S=new Array(O.length);for(let R=0,I=O.length;R<I;++R)S[R]=c(O[R]);return S}function q(O){let S={};for(let R in O){let I=O[R];I!==void 0&&(S[R]=c(I))}return S}}(n.JSONExt||(n.JSONExt={}));class e{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(s){return this._types.indexOf(s)!==-1}getData(s){let l=this._types.indexOf(s);return l!==-1?this._values[l]:void 0}setData(s,l){this.clearData(s),this._types.push(s),this._values.push(l)}clearData(s){let l=this._types.indexOf(s);l!==-1&&(this._types.splice(l,1),this._values.splice(l,1))}clear(){this._types.length=0,this._values.length=0}}class t{constructor(){this.promise=new Promise((s,l)=>{this._resolve=s,this._reject=l})}resolve(s){let l=this._resolve;l(s)}reject(s){let l=this._reject;l(s)}}class i{constructor(s,l){this.name=s,this.description=l!=null?l:"",this._tokenStructuralPropertyT=null}}function a(r){let s=0;for(let l=0,m=r.length;l<m;++l)l%4===0&&(s=Math.random()*4294967295>>>0),r[l]=s&255,s>>>=8}n.Random=void 0,function(r){r.getRandomValues=(()=>{let s=typeof window!="undefined"&&(window.crypto||window.msCrypto)||null;return s&&typeof s.getRandomValues=="function"?function(m){return s.getRandomValues(m)}:a})()}(n.Random||(n.Random={}));function o(r){let s=new Uint8Array(16),l=new Array(256);for(let m=0;m<16;++m)l[m]="0"+m.toString(16);for(let m=16;m<256;++m)l[m]=m.toString(16);return function(){return r(s),s[6]=64|s[6]&15,s[8]=128|s[8]&63,l[s[0]]+l[s[1]]+l[s[2]]+l[s[3]]+"-"+l[s[4]]+l[s[5]]+"-"+l[s[6]]+l[s[7]]+"-"+l[s[8]]+l[s[9]]+"-"+l[s[10]]+l[s[11]]+l[s[12]]+l[s[13]]+l[s[14]]+l[s[15]]}}n.UUID=void 0,function(r){r.uuid4=o(n.Random.getRandomValues)}(n.UUID||(n.UUID={})),n.MimeData=e,n.PromiseDelegate=t,n.Token=i})});var Xe=F((ye,Ge)=>{(function(n,e){typeof ye=="object"&&typeof Ge!="undefined"?e(ye,Ye(),pe()):typeof define=="function"&&define.amd?define(["exports","@lumino/algorithm","@lumino/coreutils"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n.lumino_signaling={},n.lumino_algorithm,n.lumino_coreutils))})(ye,function(n,e,t){"use strict";class i{constructor(s){this.sender=s}connect(s,l){return o.connect(this,s,l)}disconnect(s,l){return o.disconnect(this,s,l)}emit(s){o.emit(this,s)}}(function(r){function s(C,q){o.disconnectBetween(C,q)}r.disconnectBetween=s;function l(C){o.disconnectSender(C)}r.disconnectSender=l;function m(C){o.disconnectReceiver(C)}r.disconnectReceiver=m;function h(C){o.disconnectAll(C)}r.disconnectAll=h;function c(C){o.disconnectAll(C)}r.clearData=c;function b(){return o.exceptionHandler}r.getExceptionHandler=b;function j(C){let q=o.exceptionHandler;return o.exceptionHandler=C,q}r.setExceptionHandler=j})(i||(i={}));class a extends i{constructor(){super(...arguments),this._pending=new t.PromiseDelegate}async*[Symbol.asyncIterator](){let s=this._pending;for(;;)try{let{args:l,next:m}=await s.promise;s=m,yield l}catch{return}}emit(s){let l=this._pending,m=this._pending=new t.PromiseDelegate;l.resolve({args:s,next:m}),super.emit(s)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new t.PromiseDelegate}}var o;(function(r){r.exceptionHandler=z=>{console.error(z)};function s(z,E,u){u=u||void 0;let v=C.get(z.sender);if(v||(v=[],C.set(z.sender,v)),R(v,z,E,u))return!1;let x=u||E,y=q.get(x);y||(y=[],q.set(x,y));let M={signal:z,slot:E,thisArg:u};return v.push(M),y.push(M),!0}r.connect=s;function l(z,E,u){u=u||void 0;let v=C.get(z.sender);if(!v||v.length===0)return!1;let x=R(v,z,E,u);if(!x)return!1;let y=u||E,M=q.get(y);return x.signal=null,P(v),P(M),!0}r.disconnect=l;function m(z,E){let u=C.get(z);if(!u||u.length===0)return;let v=q.get(E);if(!(!v||v.length===0)){for(let x of v)x.signal&&x.signal.sender===z&&(x.signal=null);P(u),P(v)}}r.disconnectBetween=m;function h(z){let E=C.get(z);if(!(!E||E.length===0)){for(let u of E){if(!u.signal)continue;let v=u.thisArg||u.slot;u.signal=null,P(q.get(v))}P(E)}}r.disconnectSender=h;function c(z){let E=q.get(z);if(!(!E||E.length===0)){for(let u of E){if(!u.signal)continue;let v=u.signal.sender;u.signal=null,P(C.get(v))}P(E)}}r.disconnectReceiver=c;function b(z){h(z),c(z)}r.disconnectAll=b;function j(z,E){let u=C.get(z.sender);if(!(!u||u.length===0))for(let v=0,x=u.length;v<x;++v){let y=u[v];y.signal===z&&I(y,E)}}r.emit=j;let C=new WeakMap,q=new WeakMap,O=new Set,S=(()=>typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate)();function R(z,E,u,v){return e.find(z,x=>x.signal===E&&x.slot===u&&x.thisArg===v)}function I(z,E){let{signal:u,slot:v,thisArg:x}=z;try{v.call(x,u.sender,E)}catch(y){r.exceptionHandler(y)}}function P(z){O.size===0&&S(N),O.add(z)}function N(){O.forEach(V),O.clear()}function V(z){e.ArrayExt.removeAllWhere(z,D)}function D(z){return z.signal===null}})(o||(o={})),n.Signal=i,n.Stream=a})});var et=F(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.ActivityMonitor=void 0;var Qe=Xe(),Te=class{constructor(e){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new Qe.Signal(this),e.signal.connect(this._onSignalFired,this),this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,Qe.Signal.clearData(this))}_onSignalFired(e,t){clearTimeout(this._timer),this._sender=e,this._args=t,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}};_e.ActivityMonitor=Te});var it=F(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0})});var nt=F(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.MarkdownCodeBlocks=void 0;var pi;(function(n){n.CODE_BLOCK_MARKER="```";let e=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class t{constructor(r){this.startLine=r,this.code="",this.endLine=-1}}n.MarkdownCodeBlock=t;function i(o){return e.indexOf(o)>-1}n.isMarkdown=i;function a(o){if(!o||o==="")return[];let r=o.split(`
2
+ `),s=[],l=null;for(let m=0;m<r.length;m++){let h=r[m],c=h.indexOf(n.CODE_BLOCK_MARKER)===0,b=l!=null;if(!(!c&&!b))if(b)l&&(c?(l.endLine=m-1,s.push(l),l=null):l.code+=h+`
3
+ `);else{l=new t(m);let j=h.indexOf(n.CODE_BLOCK_MARKER),C=h.lastIndexOf(n.CODE_BLOCK_MARKER);j!==C&&(l.code=h.substring(j+n.CODE_BLOCK_MARKER.length,C),l.endLine=m,s.push(l),l=null)}}return s}n.findMarkdownCodeBlocks=a})(pi=ue.MarkdownCodeBlocks||(ue.MarkdownCodeBlocks={}))});var rt=F((Wi,st)=>{"use strict";function di(n,e){var t=n;e.slice(0,-1).forEach(function(a){t=t[a]||{}});var i=e[e.length-1];return i in t}function at(n){return typeof n=="number"||/^0x[0-9a-f]+$/i.test(n)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(n)}function ot(n,e){return e==="constructor"&&typeof n[e]=="function"||e==="__proto__"}st.exports=function(n,e){e||(e={});var t={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(t.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?t.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(P){t.bools[P]=!0});var i={};function a(P){return i[P].some(function(N){return t.bools[N]})}Object.keys(e.alias||{}).forEach(function(P){i[P]=[].concat(e.alias[P]),i[P].forEach(function(N){i[N]=[P].concat(i[P].filter(function(V){return N!==V}))})}),[].concat(e.string).filter(Boolean).forEach(function(P){t.strings[P]=!0,i[P]&&[].concat(i[P]).forEach(function(N){t.strings[N]=!0})});var o=e.default||{},r={_:[]};function s(P,N){return t.allBools&&/^--[^=]+$/.test(N)||t.strings[P]||t.bools[P]||i[P]}function l(P,N,V){for(var D=P,z=0;z<N.length-1;z++){var E=N[z];if(ot(D,E))return;D[E]===void 0&&(D[E]={}),(D[E]===Object.prototype||D[E]===Number.prototype||D[E]===String.prototype)&&(D[E]={}),D[E]===Array.prototype&&(D[E]=[]),D=D[E]}var u=N[N.length-1];ot(D,u)||((D===Object.prototype||D===Number.prototype||D===String.prototype)&&(D={}),D===Array.prototype&&(D=[]),D[u]===void 0||t.bools[u]||typeof D[u]=="boolean"?D[u]=V:Array.isArray(D[u])?D[u].push(V):D[u]=[D[u],V])}function m(P,N,V){if(!(V&&t.unknownFn&&!s(P,V)&&t.unknownFn(V)===!1)){var D=!t.strings[P]&&at(N)?Number(N):N;l(r,P.split("."),D),(i[P]||[]).forEach(function(z){l(r,z.split("."),D)})}}Object.keys(t.bools).forEach(function(P){m(P,o[P]===void 0?!1:o[P])});var h=[];n.indexOf("--")!==-1&&(h=n.slice(n.indexOf("--")+1),n=n.slice(0,n.indexOf("--")));for(var c=0;c<n.length;c++){var b=n[c],j,C;if(/^--.+=/.test(b)){var q=b.match(/^--([^=]+)=([\s\S]*)$/);j=q[1];var O=q[2];t.bools[j]&&(O=O!=="false"),m(j,O,b)}else if(/^--no-.+/.test(b))j=b.match(/^--no-(.+)/)[1],m(j,!1,b);else if(/^--.+/.test(b))j=b.match(/^--(.+)/)[1],C=n[c+1],C!==void 0&&!/^(-|--)[^-]/.test(C)&&!t.bools[j]&&!t.allBools&&(!i[j]||!a(j))?(m(j,C,b),c+=1):/^(true|false)$/.test(C)?(m(j,C==="true",b),c+=1):m(j,t.strings[j]?"":!0,b);else if(/^-[^-]+/.test(b)){for(var S=b.slice(1,-1).split(""),R=!1,I=0;I<S.length;I++){if(C=b.slice(I+2),C==="-"){m(S[I],C,b);continue}if(/[A-Za-z]/.test(S[I])&&C[0]==="="){m(S[I],C.slice(1),b),R=!0;break}if(/[A-Za-z]/.test(S[I])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(C)){m(S[I],C,b),R=!0;break}if(S[I+1]&&S[I+1].match(/\W/)){m(S[I],b.slice(I+2),b),R=!0;break}else m(S[I],t.strings[S[I]]?"":!0,b)}j=b.slice(-1)[0],!R&&j!=="-"&&(n[c+1]&&!/^(-|--)[^-]/.test(n[c+1])&&!t.bools[j]&&(!i[j]||!a(j))?(m(j,n[c+1],b),c+=1):n[c+1]&&/^(true|false)$/.test(n[c+1])?(m(j,n[c+1]==="true",b),c+=1):m(j,t.strings[j]?"":!0,b))}else if((!t.unknownFn||t.unknownFn(b)!==!1)&&r._.push(t.strings._||!at(b)?b:Number(b)),e.stopEarly){r._.push.apply(r._,n.slice(c+1));break}}return Object.keys(o).forEach(function(P){di(r,P.split("."))||(l(r,P.split("."),o[P]),(i[P]||[]).forEach(function(N){l(r,N.split("."),o[P])}))}),e["--"]?r["--"]=h.slice():h.forEach(function(P){r._.push(P)}),r}});var ke=F((Ki,ct)=>{"use strict";function ee(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}function lt(n,e){for(var t="",i=0,a=-1,o=0,r,s=0;s<=n.length;++s){if(s<n.length)r=n.charCodeAt(s);else{if(r===47)break;r=47}if(r===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(t.length<2||i!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var l=t.lastIndexOf("/");if(l!==t.length-1){l===-1?(t="",i=0):(t=t.slice(0,l),i=t.length-1-t.lastIndexOf("/")),a=s,o=0;continue}}else if(t.length===2||t.length===1){t="",i=0,a=s,o=0;continue}}e&&(t.length>0?t+="/..":t="..",i=2)}else t.length>0?t+="/"+n.slice(a+1,s):t=n.slice(a+1,s),i=s-a-1;a=s,o=0}else r===46&&o!==-1?++o:o=-1}return t}function mi(n,e){var t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+i:t+n+i:i}var de={resolve:function(){for(var e="",t=!1,i,a=arguments.length-1;a>=-1&&!t;a--){var o;a>=0?o=arguments[a]:(i===void 0&&(i=process.cwd()),o=i),ee(o),o.length!==0&&(e=o+"/"+e,t=o.charCodeAt(0)===47)}return e=lt(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(ee(e),e.length===0)return".";var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=lt(e,!t),e.length===0&&!t&&(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return ee(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];ee(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":de.normalize(e)},relative:function(e,t){if(ee(e),ee(t),e===t||(e=de.resolve(e),t=de.resolve(t),e===t))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var a=e.length,o=a-i,r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var s=t.length,l=s-r,m=o<l?o:l,h=-1,c=0;c<=m;++c){if(c===m){if(l>m){if(t.charCodeAt(r+c)===47)return t.slice(r+c+1);if(c===0)return t.slice(r+c)}else o>m&&(e.charCodeAt(i+c)===47?h=c:c===0&&(h=0));break}var b=e.charCodeAt(i+c),j=t.charCodeAt(r+c);if(b!==j)break;b===47&&(h=c)}var C="";for(c=i+h+1;c<=a;++c)(c===a||e.charCodeAt(c)===47)&&(C.length===0?C+="..":C+="/..");return C.length>0?C+t.slice(r+h):(r+=h,t.charCodeAt(r)===47&&++r,t.slice(r))},_makeLong:function(e){return e},dirname:function(e){if(ee(e),e.length===0)return".";for(var t=e.charCodeAt(0),i=t===47,a=-1,o=!0,r=e.length-1;r>=1;--r)if(t=e.charCodeAt(r),t===47){if(!o){a=r;break}}else o=!1;return a===-1?i?"/":".":i&&a===1?"//":e.slice(0,a)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ee(e);var i=0,a=-1,o=!0,r;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var m=e.charCodeAt(r);if(m===47){if(!o){i=r+1;break}}else l===-1&&(o=!1,l=r+1),s>=0&&(m===t.charCodeAt(s)?--s===-1&&(a=r):(s=-1,a=l))}return i===a?a=l:a===-1&&(a=e.length),e.slice(i,a)}else{for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===47){if(!o){i=r+1;break}}else a===-1&&(o=!1,a=r+1);return a===-1?"":e.slice(i,a)}},extname:function(e){ee(e);for(var t=-1,i=0,a=-1,o=!0,r=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(l===47){if(!o){i=s+1;break}continue}a===-1&&(o=!1,a=s+1),l===46?t===-1?t=s:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||a===-1||r===0||r===1&&t===a-1&&t===i+1?"":e.slice(t,a)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return mi("/",e)},parse:function(e){ee(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var i=e.charCodeAt(0),a=i===47,o;a?(t.root="/",o=1):o=0;for(var r=-1,s=0,l=-1,m=!0,h=e.length-1,c=0;h>=o;--h){if(i=e.charCodeAt(h),i===47){if(!m){s=h+1;break}continue}l===-1&&(m=!1,l=h+1),i===46?r===-1?r=h:c!==1&&(c=1):r!==-1&&(c=-1)}return r===-1||l===-1||c===0||c===1&&r===l-1&&r===s+1?l!==-1&&(s===0&&a?t.base=t.name=e.slice(1,l):t.base=t.name=e.slice(s,l)):(s===0&&a?(t.name=e.slice(1,r),t.base=e.slice(1,l)):(t.name=e.slice(s,r),t.base=e.slice(s,l)),t.ext=e.slice(r,l)),s>0?t.dir=e.slice(0,s-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};de.posix=de;ct.exports=de});var dt=F((Ji,pt)=>{"use strict";pt.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var ut=F(Ae=>{"use strict";var fi=Object.prototype.hasOwnProperty,ui;function mt(n){try{return decodeURIComponent(n.replace(/\+/g," "))}catch{return null}}function ft(n){try{return encodeURIComponent(n)}catch{return null}}function hi(n){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},i;i=e.exec(n);){var a=mt(i[1]),o=mt(i[2]);a===null||o===null||a in t||(t[a]=o)}return t}function vi(n,e){e=e||"";var t=[],i,a;typeof e!="string"&&(e="?");for(a in n)if(fi.call(n,a)){if(i=n[a],!i&&(i===null||i===ui||isNaN(i))&&(i=""),a=ft(a),i=ft(i),a===null||i===null)continue;t.push(a+"="+i)}return t.length?e+t.join("&"):""}Ae.stringify=vi;Ae.parse=hi});var _t=F((Yi,yt)=>{"use strict";var vt=dt(),je=ut(),gi=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,gt=/[\n\r\t]/g,xi=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,xt=/:\d+$/,bi=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,wi=/^[a-zA-Z]:/;function Ue(n){return(n||"").toString().replace(gi,"")}var qe=[["#","hash"],["?","query"],function(e,t){return te(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ht={hash:1,query:1};function bt(n){var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e={};var t=e.location||{};n=n||t;var i={},a=typeof n,o;if(n.protocol==="blob:")i=new ie(unescape(n.pathname),{});else if(a==="string"){i=new ie(n,{});for(o in ht)delete i[o]}else if(a==="object"){for(o in n)o in ht||(i[o]=n[o]);i.slashes===void 0&&(i.slashes=xi.test(n.href))}return i}function te(n){return n==="file:"||n==="ftp:"||n==="http:"||n==="https:"||n==="ws:"||n==="wss:"}function wt(n,e){n=Ue(n),n=n.replace(gt,""),e=e||{};var t=bi.exec(n),i=t[1]?t[1].toLowerCase():"",a=!!t[2],o=!!t[3],r=0,s;return a?o?(s=t[2]+t[3]+t[4],r=t[2].length+t[3].length):(s=t[2]+t[4],r=t[2].length):o?(s=t[3]+t[4],r=t[3].length):s=t[4],i==="file:"?r>=2&&(s=s.slice(2)):te(i)?s=t[4]:i?a&&(s=s.slice(2)):r>=2&&te(e.protocol)&&(s=t[4]),{protocol:i,slashes:a||te(i),slashesCount:r,rest:s}}function yi(n,e){if(n==="")return e;for(var t=(e||"/").split("/").slice(0,-1).concat(n.split("/")),i=t.length,a=t[i-1],o=!1,r=0;i--;)t[i]==="."?t.splice(i,1):t[i]===".."?(t.splice(i,1),r++):r&&(i===0&&(o=!0),t.splice(i,1),r--);return o&&t.unshift(""),(a==="."||a==="..")&&t.push(""),t.join("/")}function ie(n,e,t){if(n=Ue(n),n=n.replace(gt,""),!(this instanceof ie))return new ie(n,e,t);var i,a,o,r,s,l,m=qe.slice(),h=typeof e,c=this,b=0;for(h!=="object"&&h!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=je.parse),e=bt(e),a=wt(n||"",e),i=!a.protocol&&!a.slashes,c.slashes=a.slashes||i&&e.slashes,c.protocol=a.protocol||e.protocol||"",n=a.rest,(a.protocol==="file:"&&(a.slashesCount!==2||wi.test(n))||!a.slashes&&(a.protocol||a.slashesCount<2||!te(c.protocol)))&&(m[3]=[/(.*)/,"pathname"]);b<m.length;b++){if(r=m[b],typeof r=="function"){n=r(n,c);continue}o=r[0],l=r[1],o!==o?c[l]=n:typeof o=="string"?(s=o==="@"?n.lastIndexOf(o):n.indexOf(o),~s&&(typeof r[2]=="number"?(c[l]=n.slice(0,s),n=n.slice(s+r[2])):(c[l]=n.slice(s),n=n.slice(0,s)))):(s=o.exec(n))&&(c[l]=s[1],n=n.slice(0,s.index)),c[l]=c[l]||i&&r[3]&&e[l]||"",r[4]&&(c[l]=c[l].toLowerCase())}t&&(c.query=t(c.query)),i&&e.slashes&&c.pathname.charAt(0)!=="/"&&(c.pathname!==""||e.pathname!=="")&&(c.pathname=yi(c.pathname,e.pathname)),c.pathname.charAt(0)!=="/"&&te(c.protocol)&&(c.pathname="/"+c.pathname),vt(c.port,c.protocol)||(c.host=c.hostname,c.port=""),c.username=c.password="",c.auth&&(s=c.auth.indexOf(":"),~s?(c.username=c.auth.slice(0,s),c.username=encodeURIComponent(decodeURIComponent(c.username)),c.password=c.auth.slice(s+1),c.password=encodeURIComponent(decodeURIComponent(c.password))):c.username=encodeURIComponent(decodeURIComponent(c.auth)),c.auth=c.password?c.username+":"+c.password:c.username),c.origin=c.protocol!=="file:"&&te(c.protocol)&&c.host?c.protocol+"//"+c.host:"null",c.href=c.toString()}function _i(n,e,t){var i=this;switch(n){case"query":typeof e=="string"&&e.length&&(e=(t||je.parse)(e)),i[n]=e;break;case"port":i[n]=e,vt(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[n]="");break;case"hostname":i[n]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[n]=e,xt.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!t;break;case"pathname":case"hash":if(e){var a=n==="pathname"?"/":"#";i[n]=e.charAt(0)!==a?a+e:e}else i[n]=e;break;case"username":case"password":i[n]=encodeURIComponent(e);break;case"auth":var o=e.indexOf(":");~o?(i.username=e.slice(0,o),i.username=encodeURIComponent(decodeURIComponent(i.username)),i.password=e.slice(o+1),i.password=encodeURIComponent(decodeURIComponent(i.password))):i.username=encodeURIComponent(decodeURIComponent(e))}for(var r=0;r<qe.length;r++){var s=qe[r];s[4]&&(i[s[1]]=i[s[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin=i.protocol!=="file:"&&te(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i}function ki(n){(!n||typeof n!="function")&&(n=je.stringify);var e,t=this,i=t.host,a=t.protocol;a&&a.charAt(a.length-1)!==":"&&(a+=":");var o=a+(t.protocol&&t.slashes||te(t.protocol)?"//":"");return t.username?(o+=t.username,t.password&&(o+=":"+t.password),o+="@"):t.password?(o+=":"+t.password,o+="@"):t.protocol!=="file:"&&te(t.protocol)&&!i&&t.pathname!=="/"&&(o+="@"),(i[i.length-1]===":"||xt.test(t.hostname)&&!t.port)&&(i+=":"),o+=i+t.pathname,e=typeof t.query=="object"?n(t.query):t.query,e&&(o+=e.charAt(0)!=="?"?"?"+e:e),t.hash&&(o+=t.hash),o}ie.prototype={set:_i,toString:ki};ie.extractProtocol=wt;ie.location=bt;ie.trimLeft=Ue;ie.qs=je;yt.exports=ie});var Ne=F(re=>{"use strict";var ji=re&&re.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(re,"__esModule",{value:!0});re.URLExt=void 0;var Ci=ke(),Ce=ji(_t()),Oi;(function(n){function e(m){if(typeof document!="undefined"&&document){let h=document.createElement("a");return h.href=m,h}return(0,Ce.default)(m)}n.parse=e;function t(m){return(0,Ce.default)(m).hostname}n.getHostName=t;function i(m){return m&&e(m).toString()}n.normalize=i;function a(...m){let h=(0,Ce.default)(m[0],{}),c=h.protocol===""&&h.slashes;c&&(h=(0,Ce.default)(m[0],"https:"+m[0]));let b=`${c?"":h.protocol}${h.slashes?"//":""}${h.auth}${h.auth?"@":""}${h.host}`,j=Ci.posix.join(`${b&&h.pathname[0]!=="/"?"/":""}${h.pathname}`,...m.slice(1));return`${b}${j==="."?"":j}`}n.join=a;function o(m){return a(...m.split("/").map(encodeURIComponent))}n.encodeParts=o;function r(m){let h=Object.keys(m).filter(c=>c.length>0);return h.length?"?"+h.map(c=>{let b=encodeURIComponent(String(m[c]));return c+(b?"="+b:"")}).join("&"):""}n.objectToQueryString=r;function s(m){return m.replace(/^\?/,"").split("&").reduce((h,c)=>{let[b,j]=c.split("=");return b.length>0&&(h[b]=decodeURIComponent(j||"")),h},{})}n.queryStringToObject=s;function l(m){let{protocol:h}=e(m);return(!h||m.toLowerCase().indexOf(h)!==0)&&m.indexOf("/")!==0}n.isLocal=l})(Oi=re.URLExt||(re.URLExt={}))});var kt=F((exports,module)=>{"use strict";var __importDefault=exports&&exports.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(exports,"__esModule",{value:!0});exports.PageConfig=void 0;var coreutils_1=pe(),minimist_1=__importDefault(rt()),url_1=Ne(),PageConfig;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document!="undefined"&&document){let n=document.getElementById("jupyter-config-data");n&&(configData=JSON.parse(n.textContent||""),found=!0)}if(!found&&typeof process!="undefined"&&process.argv)try{let cli=(0,minimist_1.default)(process.argv.slice(2)),path=ke(),fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in process.env&&(fullPath=path.resolve(process.env.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(n){console.error(n)}if(!coreutils_1.JSONExt.isObject(configData))configData=Object.create(null);else for(let n in configData)typeof configData[n]!="string"&&(configData[n]=JSON.stringify(configData[n]));return configData[name]||getBodyData(name)}PageConfig.getOption=getOption;function setOption(n,e){let t=getOption(n);return configData[n]=e,t}PageConfig.setOption=setOption;function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}PageConfig.getBaseUrl=getBaseUrl;function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}PageConfig.getTreeUrl=getTreeUrl;function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}PageConfig.getShareUrl=getShareUrl;function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}PageConfig.getTreeShareUrl=getTreeShareUrl;function getUrl(n){var e,t,i,a;let o=n.toShare?getShareUrl():getBaseUrl(),r=(e=n.mode)!==null&&e!==void 0?e:getOption("mode"),s=(t=n.workspace)!==null&&t!==void 0?t:getOption("workspace"),l=r==="single-document"?"doc":"lab";o=url_1.URLExt.join(o,l),s!==PageConfig.defaultWorkspace&&(o=url_1.URLExt.join(o,"workspaces",encodeURIComponent((i=getOption("workspace"))!==null&&i!==void 0?i:PageConfig.defaultWorkspace)));let m=(a=n.treePath)!==null&&a!==void 0?a:getOption("treePath");return m&&(o=url_1.URLExt.join(o,"tree",url_1.URLExt.encodeParts(m))),o}PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default";function getWsUrl(n){let e=getOption("wsUrl");if(!e){if(n=n?url_1.URLExt.normalize(n):getBaseUrl(),n.indexOf("http")!==0)return"";e="ws"+n.slice(4)}return url_1.URLExt.normalize(e)}PageConfig.getWsUrl=getWsUrl;function getNBConvertURL({path:n,format:e,download:t}){let i=url_1.URLExt.encodeParts(n),a=url_1.URLExt.join(getBaseUrl(),"nbconvert",e,i);return t?a+"?download=true":a}PageConfig.getNBConvertURL=getNBConvertURL;function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}PageConfig.getToken=getToken;function getNotebookVersion(){let n=getOption("notebookVersion");return n===""?[0,0,0]:JSON.parse(n)}PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(n){if(typeof document=="undefined"||!document.body)return"";let e=document.body.dataset[n];return typeof e=="undefined"?"":decodeURIComponent(e)}let Extension;(function(n){function e(a){try{let o=getOption(a);if(o)return JSON.parse(o)}catch(o){console.warn(`Unable to parse ${a}.`,o)}return[]}n.deferred=e("deferredExtensions"),n.disabled=e("disabledExtensions");function t(a){let o=a.indexOf(":"),r="";return o!==-1&&(r=a.slice(0,o)),n.deferred.some(s=>s===a||r&&s===r)}n.isDeferred=t;function i(a){let o=a.indexOf(":"),r="";return o!==-1&&(r=a.slice(0,o)),n.disabled.some(s=>s===a||r&&s===r)}n.isDisabled=i})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig=exports.PageConfig||(exports.PageConfig={}))});var jt=F(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.PathExt=void 0;var le=ke(),Pi;(function(n){function e(...h){let c=le.posix.join(...h);return c==="."?"":m(c)}n.join=e;function t(h,c){return le.posix.basename(h,c)}n.basename=t;function i(h){let c=m(le.posix.dirname(h));return c==="."?"":c}n.dirname=i;function a(h){return le.posix.extname(h)}n.extname=a;function o(h){return h===""?"":m(le.posix.normalize(h))}n.normalize=o;function r(...h){return m(le.posix.resolve(...h))}n.resolve=r;function s(h,c){return m(le.posix.relative(h,c))}n.relative=s;function l(h){return h.length>0&&h.indexOf(".")!==0&&(h=`.${h}`),h}n.normalizeExtension=l;function m(h){return h.indexOf("/")===0&&(h=h.slice(1)),h}n.removeSlash=m})(Pi=he.PathExt||(he.PathExt={}))});var Ct=F(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.signalToPromise=void 0;var Si=pe();function zi(n,e){let t=new Si.PromiseDelegate;function i(){n.disconnect(a)}function a(o,r){i(),t.resolve([o,r])}return n.connect(a),(e!=null?e:0)>0&&setTimeout(()=>{i(),t.reject(`Signal not emitted within ${e} ms.`)},e),t.promise}Oe.signalToPromise=zi});var Ot=F(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.Text=void 0;var Ri;(function(n){let e=2>1;function t(r,s){if(e)return r;let l=r;for(let m=0;m+1<s.length&&m<r;m++){let h=s.charCodeAt(m);if(h>=55296&&h<=56319){let c=s.charCodeAt(m+1);c>=56320&&c<=57343&&(l--,m++)}}return l}n.jsIndexToCharIndex=t;function i(r,s){if(e)return r;let l=r;for(let m=0;m+1<s.length&&m<l;m++){let h=s.charCodeAt(m);if(h>=55296&&h<=56319){let c=s.charCodeAt(m+1);c>=56320&&c<=57343&&(l++,m++)}}return l}n.charIndexToJsIndex=i;function a(r,s=!1){return r.replace(/^(\w)|[\s-_:]+(\w)/g,function(l,m,h){return h?h.toUpperCase():s?m.toUpperCase():m.toLowerCase()})}n.camelCase=a;function o(r){return(r||"").toLowerCase().split(" ").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}n.titleCase=o})(Ri=ve.Text||(ve.Text={}))});var Pt=F(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.Time=void 0;var Ei=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}],Ii;(function(n){function e(i){let a=document.documentElement.lang||"en",o=new Intl.RelativeTimeFormat(a,{numeric:"auto"}),r=new Date(i).getTime()-Date.now();for(let s of Ei){let l=Math.ceil(r/s.milliseconds);if(l!==0)return o.format(l,s.name)}return o.format(0,"seconds")}n.formatHuman=e;function t(i){let a=document.documentElement.lang||"en";return new Intl.DateTimeFormat(a,{dateStyle:"short",timeStyle:"short"}).format(new Date(i))}n.format=t})(Ii=ge.Time||(ge.Time={}))});var xe=F(J=>{"use strict";var Di=J&&J.__createBinding||(Object.create?function(n,e,t,i){i===void 0&&(i=t);var a=Object.getOwnPropertyDescriptor(e,t);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,i,a)}:function(n,e,t,i){i===void 0&&(i=t),n[i]=e[t]}),ae=J&&J.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Di(e,n,t)};Object.defineProperty(J,"__esModule",{value:!0});ae(et(),J);ae(it(),J);ae(nt(),J);ae(kt(),J);ae(jt(),J);ae(Ct(),J);ae(Ot(),J);ae(Pt(),J);ae(Ne(),J)});var zt=F((nn,St)=>{"use strict";function Pe(){this._types=Object.create(null),this._extensions=Object.create(null);for(let n=0;n<arguments.length;n++)this.define(arguments[n]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Pe.prototype.define=function(n,e){for(let t in n){let i=n[t].map(function(a){return a.toLowerCase()});t=t.toLowerCase();for(let a=0;a<i.length;a++){let o=i[a];if(o[0]!=="*"){if(!e&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+t+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+t+'".');this._types[o]=t}}if(e||!this._extensions[t]){let a=i[0];this._extensions[t]=a[0]!=="*"?a:a.substr(1)}}};Pe.prototype.getType=function(n){n=String(n);let e=n.replace(/^.*[/\\]/,"").toLowerCase(),t=e.replace(/^.*\./,"").toLowerCase(),i=e.length<n.length;return(t.length<e.length-1||!i)&&this._types[t]||null};Pe.prototype.getExtension=function(n){return n=/^\s*([^;\s]*)/.test(n)&&RegExp.$1,n&&this._extensions[n.toLowerCase()]||null};St.exports=Pe});var Et=F((an,Rt)=>{Rt.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}});var Dt=F((on,It)=>{It.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}});var Tt=F((sn,Mt)=>{"use strict";var Mi=zt();Mt.exports=new Mi(Et(),Dt())});var At,qt,Le,Ti,Y,ne,Ai,Fe=ce(()=>{At=se(xe()),qt=se(Tt()),Le=se(pe()),Ti=new Le.Token("@jupyterlite/contents:IContents");(function(n){n.JSON="application/json",n.PLAIN_TEXT="text/plain",n.OCTET_STREAM="octet/stream"})(Y||(Y={}));(function(n){let e=JSON.parse(At.PageConfig.getOption("fileTypes")||"{}");function t(a,o=null){a=a.toLowerCase();for(let r of Object.values(e))for(let s of r.extensions||[])if(s===a&&r.mimeTypes&&r.mimeTypes.length)return r.mimeTypes[0];return qt.default.getType(a)||o||Y.OCTET_STREAM}n.getType=t;function i(a,o){a=a.toLowerCase();for(let r of Object.values(e))if(r.fileFormat===o){for(let s of r.extensions||[])if(s===a)return!0}return!1}n.hasFormat=i})(ne||(ne={}));Ai=new Le.Token("@jupyterlite/contents:IBroadcastChannelWrapper")});var oe,X,Lt,Ut,Nt,Be,Se,Ft=ce(()=>{oe=se(xe()),X=se(xe());Fe();Lt=se(pe()),Ut="JupyterLite Storage",Nt=5,Be=class{constructor(e){this.reduceBytesToString=(t,i)=>t+String.fromCharCode(i),this._serverContents=new Map,this._storageName=Ut,this._storageDrivers=null,this._localforage=e.localforage,this._storageName=e.storageName||Ut,this._storageDrivers=e.storageDrivers||null,this._ready=new Lt.PromiseDelegate}async initialize(){await this.initStorage(),this._ready.resolve(void 0)}async initStorage(){this._storage=this.createDefaultStorage(),this._counters=this.createDefaultCounters(),this._checkpoints=this.createDefaultCheckpoints()}get ready(){return this._ready.promise}get storage(){return this.ready.then(()=>this._storage)}get counters(){return this.ready.then(()=>this._counters)}get checkpoints(){return this.ready.then(()=>this._checkpoints)}get defaultStorageOptions(){let e=this._storageDrivers&&this._storageDrivers.length?this._storageDrivers:null;return{version:1,name:this._storageName,...e?{driver:e}:{}}}createDefaultStorage(){return this._localforage.createInstance({description:"Offline Storage for Notebooks and Files",storeName:"files",...this.defaultStorageOptions})}createDefaultCounters(){return this._localforage.createInstance({description:"Store the current file suffix counters",storeName:"counters",...this.defaultStorageOptions})}createDefaultCheckpoints(){return this._localforage.createInstance({description:"Offline Storage for Checkpoints",storeName:"checkpoints",...this.defaultStorageOptions})}async newUntitled(e){var t,i,a;let o=(t=e==null?void 0:e.path)!==null&&t!==void 0?t:"",r=(i=e==null?void 0:e.type)!==null&&i!==void 0?i:"notebook",s=new Date().toISOString(),l=X.PathExt.dirname(o),m=X.PathExt.basename(o),h=X.PathExt.extname(o),c=await this.get(l),b="";o&&!h&&c?(l=`${o}/`,b=""):l&&m?(l=`${l}/`,b=m):(l="",b=o);let j;switch(r){case"directory":{b=`Untitled Folder${await this._incrementCounter("directory")||""}`,j={name:b,path:`${l}${b}`,last_modified:s,created:s,format:"json",mimetype:"",content:null,size:0,writable:!0,type:"directory"};break}case"notebook":{let q=await this._incrementCounter("notebook");b=b||`Untitled${q||""}.ipynb`,j={name:b,path:`${l}${b}`,last_modified:s,created:s,format:"json",mimetype:Y.JSON,content:Se.EMPTY_NB,size:JSON.stringify(Se.EMPTY_NB).length,writable:!0,type:"notebook"};break}default:{let q=(a=e==null?void 0:e.ext)!==null&&a!==void 0?a:".txt",O=await this._incrementCounter("file"),S=ne.getType(q)||Y.OCTET_STREAM,R;ne.hasFormat(q,"text")||S.indexOf("text")!==-1?R="text":q.indexOf("json")!==-1||q.indexOf("ipynb")!==-1?R="json":R="base64",b=b||`untitled${O||""}${q}`,j={name:b,path:`${l}${b}`,last_modified:s,created:s,format:R,mimetype:S,content:"",size:0,writable:!0,type:"file"};break}}let C=j.path;return await(await this.storage).setItem(C,j),j}async copy(e,t){let i=X.PathExt.basename(e);for(t=t===""?"":`${t.slice(1)}/`;await this.get(`${t}${i}`,{content:!0});){let r=X.PathExt.extname(i);i=`${i.replace(r,"")} (copy)${r}`}let a=`${t}${i}`,o=await this.get(e,{content:!0});if(!o)throw Error(`Could not find file with path ${e}`);return o={...o,name:i,path:a},await(await this.storage).setItem(a,o),o}async get(e,t){if(e=decodeURIComponent(e.replace(/^\//,"")),e==="")return await this._getFolder(e);let i=await this.storage,a=await i.getItem(e),o=await this._getServerContents(e,t),r=a||o;if(!r)return null;if(!(t!=null&&t.content))return{size:0,...r,content:null};if(r.type==="directory"){let s=new Map;await i.iterate((h,c)=>{c===`${e}/${h.name}`&&s.set(h.name,h)});let l=o?o.content:Array.from((await this._getServerDirectory(e)).values());for(let h of l)s.has(h.name)||s.set(h.name,h);let m=[...s.values()];return{name:X.PathExt.basename(e),path:e,last_modified:r.last_modified,created:r.created,format:"json",mimetype:Y.JSON,content:m,size:0,writable:!0,type:"directory"}}return r}async rename(e,t){let i=decodeURIComponent(e),a=await this.get(i,{content:!0});if(!a)throw Error(`Could not find file with path ${i}`);let o=new Date().toISOString(),r=X.PathExt.basename(t),s={...a,name:r,path:t,last_modified:o},l=await this.storage;if(await l.setItem(t,s),await l.removeItem(i),await(await this.checkpoints).removeItem(i),a.type==="directory"){let m;for(m of a.content)await this.rename(oe.URLExt.join(e,m.name),oe.URLExt.join(t,m.name))}return s}async save(e,t={}){var i;e=decodeURIComponent(e);let a=X.PathExt.extname((i=t.name)!==null&&i!==void 0?i:""),o=t.chunk,r=o?o>1||o===-1:!1,s=await this.get(e,{content:r});if(s||(s=await this.newUntitled({path:e,ext:a,type:"file"})),!s)return null;let l=s.content,m=new Date().toISOString();if(s={...s,...t,last_modified:m},t.content&&t.format==="base64"){let h=o?o===-1:!0;if(a===".ipynb"){let c=this._handleChunk(t.content,l,r);s={...s,content:h?JSON.parse(c):c,format:"json",type:"notebook",size:c.length}}else if(ne.hasFormat(a,"json")){let c=this._handleChunk(t.content,l,r);s={...s,content:h?JSON.parse(c):c,format:"json",type:"file",size:c.length}}else if(ne.hasFormat(a,"text")){let c=this._handleChunk(t.content,l,r);s={...s,content:c,format:"text",type:"file",size:c.length}}else{let c=t.content;s={...s,content:c,size:atob(c).length}}}return await(await this.storage).setItem(e,s),s}async delete(e){e=decodeURIComponent(e);let t=`${e}/`,i=(await(await this.storage).keys()).filter(a=>a===e||a.startsWith(t));await Promise.all(i.map(this.forgetPath,this))}async forgetPath(e){await Promise.all([(await this.storage).removeItem(e),(await this.checkpoints).removeItem(e)])}async createCheckpoint(e){var t;let i=await this.checkpoints;e=decodeURIComponent(e);let a=await this.get(e,{content:!0});if(!a)throw Error(`Could not find file with path ${e}`);let o=((t=await i.getItem(e))!==null&&t!==void 0?t:[]).filter(Boolean);return o.push(a),o.length>Nt&&o.splice(0,o.length-Nt),await i.setItem(e,o),{id:`${o.length-1}`,last_modified:a.last_modified}}async listCheckpoints(e){return(await(await this.checkpoints).getItem(e)||[]).filter(Boolean).map(this.normalizeCheckpoint,this)}normalizeCheckpoint(e,t){return{id:t.toString(),last_modified:e.last_modified}}async restoreCheckpoint(e,t){e=decodeURIComponent(e);let i=await(await this.checkpoints).getItem(e)||[],a=parseInt(t),o=i[a];await(await this.storage).setItem(e,o)}async deleteCheckpoint(e,t){e=decodeURIComponent(e);let i=await(await this.checkpoints).getItem(e)||[],a=parseInt(t);i.splice(a,1),await(await this.checkpoints).setItem(e,i)}_handleChunk(e,t,i){let a=decodeURIComponent(escape(atob(e)));return i?t+a:a}async _getFolder(e){let t=new Map;await(await this.storage).iterate((a,o)=>{o.includes("/")||t.set(a.path,a)});for(let a of(await this._getServerDirectory(e)).values())t.has(a.path)||t.set(a.path,a);return e&&t.size===0?null:{name:"",path:e,last_modified:new Date(0).toISOString(),created:new Date(0).toISOString(),format:"json",mimetype:Y.JSON,content:Array.from(t.values()),size:0,writable:!0,type:"directory"}}async _getServerContents(e,t){let i=X.PathExt.basename(e),o=(await this._getServerDirectory(oe.URLExt.join(e,".."))).get(i);if(!o)return null;if(o=o||{name:i,path:e,last_modified:new Date(0).toISOString(),created:new Date(0).toISOString(),format:"text",mimetype:Y.PLAIN_TEXT,type:"file",writable:!0,size:0,content:""},t!=null&&t.content)if(o.type==="directory"){let r=await this._getServerDirectory(e);o={...o,content:Array.from(r.values())}}else{let r=oe.URLExt.join(oe.PageConfig.getBaseUrl(),"files",e),s=await fetch(r);if(!s.ok)return null;let l=o.mimetype||s.headers.get("Content-Type"),m=X.PathExt.extname(i);if(o.type==="notebook"||ne.hasFormat(m,"json")||(l==null?void 0:l.indexOf("json"))!==-1||e.match(/\.(ipynb|[^/]*json[^/]*)$/)){let h=await s.text();o={...o,content:JSON.parse(h),format:"json",mimetype:o.mimetype||Y.JSON,size:h.length}}else if(ne.hasFormat(m,"text")||l.indexOf("text")!==-1){let h=await s.text();o={...o,content:h,format:"text",mimetype:l||Y.PLAIN_TEXT,size:h.length}}else{let h=await s.arrayBuffer(),c=new Uint8Array(h);o={...o,content:btoa(c.reduce(this.reduceBytesToString,"")),format:"base64",mimetype:l||Y.OCTET_STREAM,size:c.length}}}return o}async _getServerDirectory(e){let t=this._serverContents.get(e)||new Map;if(!this._serverContents.has(e)){let i=oe.URLExt.join(oe.PageConfig.getBaseUrl(),"api/contents",e,"all.json");try{let a=await fetch(i),o=JSON.parse(await a.text());for(let r of o.content)t.set(r.name,r)}catch(a){console.warn(`don't worry, about ${a}... nothing's broken. If there had been a
4
+ file at ${i}, you might see some more files.`)}this._serverContents.set(e,t)}return t}async _incrementCounter(e){var t;let i=await this.counters,o=((t=await i.getItem(e))!==null&&t!==void 0?t:-1)+1;return await i.setItem(e,o),o}};(function(n){n.EMPTY_NB={metadata:{orig_nbformat:4},nbformat_minor:4,nbformat:4,cells:[]}})(Se||(Se={}))});var ze,Bt,qi,Ui,$t=ce(()=>{ze=16895,Bt=33206,qi=1,Ui=2});var Wt,He,De,Ni,Li,Ht,Re,Ee,Ie,$e,We=ce(()=>{Wt=":",He="/api/drive.v1",De=4096,Ni=new TextEncoder,Li=new TextDecoder("utf-8"),Ht={0:!1,1:!0,2:!0,64:!0,65:!0,66:!0,129:!0,193:!0,514:!0,577:!0,578:!0,705:!0,706:!0,1024:!0,1025:!0,1026:!0,1089:!0,1090:!0,1153:!0,1154:!0,1217:!0,1218:!0,4096:!0,4098:!0},Re=class{constructor(e){this.fs=e}open(e){let t=this.fs.realPath(e.node);this.fs.FS.isFile(e.node.mode)&&(e.file=this.fs.API.get(t))}close(e){if(!this.fs.FS.isFile(e.node.mode)||!e.file)return;let t=this.fs.realPath(e.node),i=e.flags,a=typeof i=="string"?parseInt(i,10):i;a&=8191;let o=!0;a in Ht&&(o=Ht[a]),o&&this.fs.API.put(t,e.file),e.file=void 0}read(e,t,i,a,o){if(a<=0||e.file===void 0||o>=(e.file.data.length||0))return 0;let r=Math.min(e.file.data.length-o,a);return t.set(e.file.data.subarray(o,o+r),i),r}write(e,t,i,a,o){var r;if(a<=0||e.file===void 0)return 0;if(e.node.timestamp=Date.now(),o+a>(((r=e.file)===null||r===void 0?void 0:r.data.length)||0)){let s=e.file.data?e.file.data:new Uint8Array;e.file.data=new Uint8Array(o+a),e.file.data.set(s)}return e.file.data.set(t.subarray(i,i+a),o),a}llseek(e,t,i){let a=t;if(i===1)a+=e.position;else if(i===2&&this.fs.FS.isFile(e.node.mode))if(e.file!==void 0)a+=e.file.data.length;else throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM);if(a<0)throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EINVAL);return a}},Ee=class{constructor(e){this.fs=e}getattr(e){return{...this.fs.API.getattr(this.fs.realPath(e)),mode:e.mode,ino:e.id}}setattr(e,t){for(let[i,a]of Object.entries(t))switch(i){case"mode":e.mode=a;break;case"timestamp":e.timestamp=a;break;default:console.warn("setattr",i,"of",a,"on",e,"not yet implemented");break}}lookup(e,t){let i=this.fs.PATH.join2(this.fs.realPath(e),t),a=this.fs.API.lookup(i);if(!a.ok)throw this.fs.FS.genericErrors[this.fs.ERRNO_CODES.ENOENT];return this.fs.createNode(e,t,a.mode,0)}mknod(e,t,i,a){let o=this.fs.PATH.join2(this.fs.realPath(e),t);return this.fs.API.mknod(o,i),this.fs.createNode(e,t,i,a)}rename(e,t,i){this.fs.API.rename(e.parent?this.fs.PATH.join2(this.fs.realPath(e.parent),e.name):e.name,this.fs.PATH.join2(this.fs.realPath(t),i)),e.name=i,e.parent=t}unlink(e,t){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(e),t))}rmdir(e,t){this.fs.API.rmdir(this.fs.PATH.join2(this.fs.realPath(e),t))}readdir(e){return this.fs.API.readdir(this.fs.realPath(e))}symlink(e,t,i){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}readlink(e){throw new this.fs.FS.ErrnoError(this.fs.ERRNO_CODES.EPERM)}},Ie=class{constructor(e,t,i,a,o){this._baseUrl=e,this._driveName=t,this._mountpoint=i,this.FS=a,this.ERRNO_CODES=o}request(e){let t=new XMLHttpRequest;t.open("POST",encodeURI(this.endpoint),!1);try{t.send(JSON.stringify(e))}catch(i){console.error(i)}if(t.status>=400)throw new this.FS.ErrnoError(this.ERRNO_CODES.EINVAL);return JSON.parse(t.responseText)}lookup(e){return this.request({method:"lookup",path:this.normalizePath(e)})}getmode(e){return Number.parseInt(this.request({method:"getmode",path:this.normalizePath(e)}))}mknod(e,t){return this.request({method:"mknod",path:this.normalizePath(e),data:{mode:t}})}rename(e,t){return this.request({method:"rename",path:this.normalizePath(e),data:{newPath:this.normalizePath(t)}})}readdir(e){let t=this.request({method:"readdir",path:this.normalizePath(e)});return t.push("."),t.push(".."),t}rmdir(e){return this.request({method:"rmdir",path:this.normalizePath(e)})}get(e){let t=this.request({method:"get",path:this.normalizePath(e)}),i=t.content,a=t.format;switch(a){case"json":case"text":return{data:Ni.encode(i),format:a};case"base64":{let o=atob(i),r=o.length,s=new Uint8Array(r);for(let l=0;l<r;l++)s[l]=o.charCodeAt(l);return{data:s,format:a}}default:throw new this.FS.ErrnoError(this.ERRNO_CODES.ENOENT)}}put(e,t){switch(t.format){case"json":case"text":return this.request({method:"put",path:this.normalizePath(e),data:{format:t.format,data:Li.decode(t.data)}});case"base64":{let i="";for(let a=0;a<t.data.byteLength;a++)i+=String.fromCharCode(t.data[a]);return this.request({method:"put",path:this.normalizePath(e),data:{format:t.format,data:btoa(i)}})}}}getattr(e){let t=this.request({method:"getattr",path:this.normalizePath(e)});return t.atime=new Date(t.atime),t.mtime=new Date(t.mtime),t.ctime=new Date(t.ctime),t.size=t.size||0,t}normalizePath(e){return e.startsWith(this._mountpoint)&&(e=e.slice(this._mountpoint.length)),this._driveName&&(e=`${this._driveName}${Wt}${e}`),e}get endpoint(){return`${this._baseUrl}api/drive`}},$e=class{constructor(e){this.FS=e.FS,this.PATH=e.PATH,this.ERRNO_CODES=e.ERRNO_CODES,this.API=new Ie(e.baseUrl,e.driveName,e.mountpoint,this.FS,this.ERRNO_CODES),this.driveName=e.driveName,this.node_ops=new Ee(this),this.stream_ops=new Re(this)}mount(e){return this.createNode(null,e.mountpoint,16895,0)}createNode(e,t,i,a){let o=this.FS;if(!o.isDir(i)&&!o.isFile(i))throw new o.ErrnoError(this.ERRNO_CODES.EINVAL);let r=o.createNode(e,t,i,a);return r.node_ops=this.node_ops,r.stream_ops=this.stream_ops,r}getMode(e){return this.API.getmode(e)}realPath(e){let t=[],i=e;for(t.push(i.name);i.parent!==i;)i=i.parent,t.push(i.name);return t.reverse(),this.PATH.join.apply(null,t)}}});var Ke,Je,Kt=ce(()=>{Ke=se(xe());We();Je=class{constructor(e){this.isDisposed=!1,this._onMessage=async t=>{if(!this._channel)return;let{_contents:i}=this,a=t.data,o=a==null?void 0:a.path;if((a==null?void 0:a.receiver)!=="broadcast.ts")return;let s=null,l;switch(a==null?void 0:a.method){case"readdir":l=await i.get(o,{content:!0}),s=[],l.type==="directory"&&l.content&&(s=l.content.map(m=>m.name));break;case"rmdir":await i.delete(o);break;case"rename":await i.rename(o,a.data.newPath);break;case"getmode":l=await i.get(o),l.type==="directory"?s=16895:s=33206;break;case"lookup":try{l=await i.get(o),s={ok:!0,mode:l.type==="directory"?16895:33206}}catch{s={ok:!1}}break;case"mknod":l=await i.newUntitled({path:Ke.PathExt.dirname(o),type:Number.parseInt(a.data.mode)===16895?"directory":"file",ext:Ke.PathExt.extname(o)}),await i.rename(l.path,o);break;case"getattr":l=await i.get(o),s={dev:1,nlink:1,uid:0,gid:0,rdev:0,size:l.size||0,blksize:De,blocks:Math.ceil(l.size||0/De),atime:l.last_modified,mtime:l.last_modified,ctime:l.created,timestamp:0};break;case"get":if(l=await i.get(o,{content:!0}),l.type==="directory")break;s={content:l.format==="json"?JSON.stringify(l.content):l.content,format:l.format};break;case"put":await i.save(o,{content:a.data.format==="json"?JSON.parse(a.data.data):a.data.data,type:"file",format:a.data.format});break;default:s=null;break}this._channel.postMessage(s)},this._channel=null,this._enabled=!1,this._contents=e.contents}get enabled(){return this._enabled}enable(){if(this._channel){console.warn("BroadcastChannel already created and enabled");return}this._channel=new BroadcastChannel(He),this._channel.addEventListener("message",this._onMessage),this._enabled=!0}disable(){this._channel&&(this._channel.removeEventListener("message",this._onMessage),this._channel=null),this._enabled=!1}dispose(){this.isDisposed||(this.disable(),this.isDisposed=!0)}}});var Jt={};li(Jt,{BLOCK_SIZE:()=>De,BroadcastChannelWrapper:()=>Je,Contents:()=>Be,ContentsAPI:()=>Ie,DIR_MODE:()=>ze,DRIVE_API_PATH:()=>He,DRIVE_SEPARATOR:()=>Wt,DriveFS:()=>$e,DriveFSEmscriptenNodeOps:()=>Ee,DriveFSEmscriptenStreamOps:()=>Re,FILE:()=>ne,FILE_MODE:()=>Bt,IBroadcastChannelWrapper:()=>Ai,IContents:()=>Ti,MIME:()=>Y,SEEK_CUR:()=>qi,SEEK_END:()=>Ui});var Vt=ce(()=>{Ft();We();Fe();Kt();$t()});var Yt=class{constructor(){this._options=null;this._initializer=null;this._pyodide=null;this._localPath="";this._driveName="";this._driveFS=null;this._initialized=new Promise((e,t)=>{this._initializer={resolve:e,reject:t}})}async initialize(e){var t;if(this._options=e,e.location.includes(":")){let i=e.location.split(":");this._driveName=i[0],this._localPath=i[1]}else this._driveName="",this._localPath=e.location;await this.initRuntime(e),await this.initFilesystem(e),await this.initPackageManager(e),await this.initKernel(e),await this.initGlobals(e),(t=this._initializer)==null||t.resolve()}async initRuntime(e){let{pyodideUrl:t,indexUrl:i}=e,a;t.endsWith(".mjs")?a=(await import(t)).loadPyodide:(importScripts(t),a=self.loadPyodide),this._pyodide=await a({indexURL:i})}async initPackageManager(e){if(!this._options)throw new Error("Uninitialized");let{pipliteWheelUrl:t,disablePyPIFallback:i,pipliteUrls:a}=this._options;await this._pyodide.loadPackage(["micropip"]),await this._pyodide.runPythonAsync(`
8
5
  import micropip
9
- await micropip.install('${a}', keep_going=True)
6
+ await micropip.install('${t}', keep_going=True)
10
7
  import piplite.piplite
11
- piplite.piplite._PIPLITE_DISABLE_PYPI = ${s?"True":"False"}
12
- piplite.piplite._PIPLITE_URLS = ${JSON.stringify(c)}
13
- `)}async initKernel(i){await this._pyodide.runPythonAsync(`
8
+ piplite.piplite._PIPLITE_DISABLE_PYPI = ${i?"True":"False"}
9
+ piplite.piplite._PIPLITE_URLS = ${JSON.stringify(a)}
10
+ `)}async initKernel(e){await this._pyodide.runPythonAsync(`
14
11
  await piplite.install(['sqlite3'], keep_going=True);
15
12
  await piplite.install(['ipykernel'], keep_going=True);
16
13
  await piplite.install(['comm'], keep_going=True);
17
14
  await piplite.install(['pyodide_kernel'], keep_going=True);
18
15
  await piplite.install(['ipython'], keep_going=True);
19
16
  import pyodide_kernel
20
- `),i.mountDrive&&this._localPath&&await this._pyodide.runPythonAsync(`
17
+ `),e.mountDrive&&this._localPath&&await this._pyodide.runPythonAsync(`
21
18
  import os;
22
19
  os.chdir("${this._localPath}");
23
- `)}async initGlobals(i){let{globals:a}=this._pyodide;this._kernel=a.get("pyodide_kernel").kernel_instance.copy(),this._stdout_stream=a.get("pyodide_kernel").stdout_stream.copy(),this._stderr_stream=a.get("pyodide_kernel").stderr_stream.copy(),this._interpreter=this._kernel.interpreter.copy(),this._interpreter.send_comm=this.sendComm.bind(this)}async initFilesystem(i){if(i.mountDrive){let a="/drive",{FS:s,PATH:c,ERRNO_CODES:d}=this._pyodide,{baseUrl:f}=i,{DriveFS:u}=await Promise.resolve().then(()=>(qa(),Ha)),h=new u({FS:s,PATH:c,ERRNO_CODES:d,baseUrl:f,driveName:this._driveName,mountpoint:a});s.mkdir(a),s.mount(h,{},a),s.chdir(a),this._driveFS=h}}mapToObject(i){let a=i instanceof Array?[]:{};return i.forEach((s,c)=>{a[c]=s instanceof Map||s instanceof Array?this.mapToObject(s):s}),a}formatResult(i){if(!(i instanceof this._pyodide.ffi.PyProxy))return i;let a=i.toJs();return this.mapToObject(a)}async setup(i){await this._initialized,this._kernel._parent_header=this._pyodide.toPy(i)}async execute(i,a){await this.setup(a);let s=(v,M,T)=>{let D={execution_count:v,data:this.formatResult(M),metadata:this.formatResult(T)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:D,type:"execute_result"})},c=(v,M,T)=>{let D={ename:v,evalue:M,traceback:T};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:D,type:"execute_error"})},d=v=>{let M={wait:this.formatResult(v)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:M,type:"clear_output"})},f=(v,M,T)=>{let D={data:this.formatResult(v),metadata:this.formatResult(M),transient:this.formatResult(T)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:D,type:"display_data"})},u=(v,M,T)=>{let D={data:this.formatResult(v),metadata:this.formatResult(M),transient:this.formatResult(T)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:D,type:"update_display_data"})},h=(v,M)=>{let T={name:this.formatResult(v),text:this.formatResult(M)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:T,type:"stream"})};this._stdout_stream.publish_stream_callback=h,this._stderr_stream.publish_stream_callback=h,this._interpreter.display_pub.clear_output_callback=d,this._interpreter.display_pub.display_data_callback=f,this._interpreter.display_pub.update_display_data_callback=u,this._interpreter.displayhook.publish_execution_result=s,this._interpreter.input=this.input.bind(this),this._interpreter.getpass=this.getpass.bind(this);let w=await this._kernel.run(i.code),k=this.formatResult(w);return k.status==="error"&&c(k.ename,k.evalue,k.traceback),k}async complete(i,a){await this.setup(a);let s=this._kernel.complete(i.code,i.cursor_pos);return this.formatResult(s)}async inspect(i,a){await this.setup(a);let s=this._kernel.inspect(i.code,i.cursor_pos,i.detail_level);return this.formatResult(s)}async isComplete(i,a){await this.setup(a);let s=this._kernel.is_complete(i.code);return this.formatResult(s)}async commInfo(i,a){await this.setup(a);let s=this._kernel.comm_info(i.target_name);return{comms:this.formatResult(s),status:"ok"}}async commOpen(i,a){await this.setup(a);let s=this._kernel.comm_manager.comm_open(this._pyodide.toPy(null),this._pyodide.toPy(null),this._pyodide.toPy(i));return this.formatResult(s)}async commMsg(i,a){await this.setup(a);let s=this._kernel.comm_manager.comm_msg(this._pyodide.toPy(null),this._pyodide.toPy(null),this._pyodide.toPy(i));return this.formatResult(s)}async commClose(i,a){await this.setup(a);let s=this._kernel.comm_manager.comm_close(this._pyodide.toPy(null),this._pyodide.toPy(null),this._pyodide.toPy(i));return this.formatResult(s)}async inputReply(i,a){await this.setup(a),this._resolveInputReply(i)}async sendInputRequest(i,a){let s={prompt:i,password:a};postMessage({type:"input_request",parentHeader:this.formatResult(this._kernel._parent_header).header,content:s})}async getpass(i){return i=typeof i=="undefined"?"":i,await this.sendInputRequest(i,!0),(await new Promise(c=>{this._resolveInputReply=c})).value}async input(i){return i=typeof i=="undefined"?"":i,await this.sendInputRequest(i,!1),(await new Promise(c=>{this._resolveInputReply=c})).value}async sendComm(i,a,s,c,d){postMessage({type:i,content:this.formatResult(a),metadata:this.formatResult(s),ident:this.formatResult(c),buffers:this.formatResult(d),parentHeader:this.formatResult(this._kernel._parent_header).header})}};export{Va as PyodideRemoteKernel};
24
- /*! Bundled license information:
25
-
26
- moment/moment.js:
27
- (*! moment.js *)
28
- (*! version : 2.29.4 *)
29
- (*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
30
- (*! license : MIT *)
31
- (*! momentjs.com *)
32
- */
20
+ `)}async initGlobals(e){let{globals:t}=this._pyodide;this._kernel=t.get("pyodide_kernel").kernel_instance.copy(),this._stdout_stream=t.get("pyodide_kernel").stdout_stream.copy(),this._stderr_stream=t.get("pyodide_kernel").stderr_stream.copy(),this._interpreter=this._kernel.interpreter.copy(),this._interpreter.send_comm=this.sendComm.bind(this)}async initFilesystem(e){if(e.mountDrive){let t="/drive",{FS:i,PATH:a,ERRNO_CODES:o}=this._pyodide,{baseUrl:r}=e,{DriveFS:s}=await Promise.resolve().then(()=>(Vt(),Jt)),l=new s({FS:i,PATH:a,ERRNO_CODES:o,baseUrl:r,driveName:this._driveName,mountpoint:t});i.mkdir(t),i.mount(l,{},t),i.chdir(t),this._driveFS=l}}mapToObject(e){let t=e instanceof Array?[]:{};return e.forEach((i,a)=>{t[a]=i instanceof Map||i instanceof Array?this.mapToObject(i):i}),t}formatResult(e){if(!(e instanceof this._pyodide.ffi.PyProxy))return e;let t=e.toJs();return this.mapToObject(t)}async setup(e){await this._initialized,this._kernel._parent_header=this._pyodide.toPy(e)}async execute(e,t){await this.setup(t);let i=(c,b,j)=>{let C={execution_count:c,data:this.formatResult(b),metadata:this.formatResult(j)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:C,type:"execute_result"})},a=(c,b,j)=>{let C={ename:c,evalue:b,traceback:j};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:C,type:"execute_error"})},o=c=>{let b={wait:this.formatResult(c)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:b,type:"clear_output"})},r=(c,b,j)=>{let C={data:this.formatResult(c),metadata:this.formatResult(b),transient:this.formatResult(j)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:C,type:"display_data"})},s=(c,b,j)=>{let C={data:this.formatResult(c),metadata:this.formatResult(b),transient:this.formatResult(j)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:C,type:"update_display_data"})},l=(c,b)=>{let j={name:this.formatResult(c),text:this.formatResult(b)};postMessage({parentHeader:this.formatResult(this._kernel._parent_header).header,bundle:j,type:"stream"})};this._stdout_stream.publish_stream_callback=l,this._stderr_stream.publish_stream_callback=l,this._interpreter.display_pub.clear_output_callback=o,this._interpreter.display_pub.display_data_callback=r,this._interpreter.display_pub.update_display_data_callback=s,this._interpreter.displayhook.publish_execution_result=i,this._interpreter.input=this.input.bind(this),this._interpreter.getpass=this.getpass.bind(this);let m=await this._kernel.run(e.code),h=this.formatResult(m);return h.status==="error"&&a(h.ename,h.evalue,h.traceback),h}async complete(e,t){await this.setup(t);let i=this._kernel.complete(e.code,e.cursor_pos);return this.formatResult(i)}async inspect(e,t){await this.setup(t);let i=this._kernel.inspect(e.code,e.cursor_pos,e.detail_level);return this.formatResult(i)}async isComplete(e,t){await this.setup(t);let i=this._kernel.is_complete(e.code);return this.formatResult(i)}async commInfo(e,t){await this.setup(t);let i=this._kernel.comm_info(e.target_name);return{comms:this.formatResult(i),status:"ok"}}async commOpen(e,t){await this.setup(t);let i=this._kernel.comm_manager.comm_open(this._pyodide.toPy(null),this._pyodide.toPy(null),this._pyodide.toPy(e));return this.formatResult(i)}async commMsg(e,t){await this.setup(t);let i=this._kernel.comm_manager.comm_msg(this._pyodide.toPy(null),this._pyodide.toPy(null),this._pyodide.toPy(e));return this.formatResult(i)}async commClose(e,t){await this.setup(t);let i=this._kernel.comm_manager.comm_close(this._pyodide.toPy(null),this._pyodide.toPy(null),this._pyodide.toPy(e));return this.formatResult(i)}async inputReply(e,t){await this.setup(t),this._resolveInputReply(e)}async sendInputRequest(e,t){let i={prompt:e,password:t};postMessage({type:"input_request",parentHeader:this.formatResult(this._kernel._parent_header).header,content:i})}async getpass(e){return e=typeof e=="undefined"?"":e,await this.sendInputRequest(e,!0),(await new Promise(a=>{this._resolveInputReply=a})).value}async input(e){return e=typeof e=="undefined"?"":e,await this.sendInputRequest(e,!1),(await new Promise(a=>{this._resolveInputReply=a})).value}async sendComm(e,t,i,a,o){postMessage({type:e,content:this.formatResult(t),metadata:this.formatResult(i),ident:this.formatResult(a),buffers:this.formatResult(o),parentHeader:this.formatResult(this._kernel._parent_header).header})}};export{Yt as PyodideRemoteKernel};
33
21
  //# sourceMappingURL=worker.js.map