UNPKG

eruda-track

Version:

[![npm version][npm-version-src]][npm-version-href] [![bundle][bundle-src]][bundle-href] [![JSDocs][jsdocs-src]][jsdocs-href]

21 lines 54.8 kB
(function(F,_){typeof exports=="object"&&typeof module!="undefined"?module.exports=_():typeof define=="function"&&define.amd?define(_):(F=typeof globalThis!="undefined"?globalThis:F||self,F.erudaTrack=_())})(this,function(){"use strict";var F=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var et={exports:{}};et.exports,function(a){var t=function(){var e=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function o(s,f){if(!i[s]){i[s]={};for(var p=0;p<s.length;p++)i[s][s.charAt(p)]=p}return i[s][f]}var c={compressToBase64:function(s){if(s==null)return"";var f=c._compress(s,6,function(p){return r.charAt(p)});switch(f.length%4){default:case 0:return f;case 1:return f+"===";case 2:return f+"==";case 3:return f+"="}},decompressFromBase64:function(s){return s==null?"":s==""?null:c._decompress(s.length,32,function(f){return o(r,s.charAt(f))})},compressToUTF16:function(s){return s==null?"":c._compress(s,15,function(f){return e(f+32)})+" "},decompressFromUTF16:function(s){return s==null?"":s==""?null:c._decompress(s.length,16384,function(f){return s.charCodeAt(f)-32})},compressToUint8Array:function(s){for(var f=c.compress(s),p=new Uint8Array(f.length*2),u=0,l=f.length;u<l;u++){var h=f.charCodeAt(u);p[u*2]=h>>>8,p[u*2+1]=h%256}return p},decompressFromUint8Array:function(s){if(s==null)return c.decompress(s);for(var f=new Array(s.length/2),p=0,u=f.length;p<u;p++)f[p]=s[p*2]*256+s[p*2+1];var l=[];return f.forEach(function(h){l.push(e(h))}),c.decompress(l.join(""))},compressToEncodedURIComponent:function(s){return s==null?"":c._compress(s,6,function(f){return n.charAt(f)})},decompressFromEncodedURIComponent:function(s){return s==null?"":s==""?null:(s=s.replace(/ /g,"+"),c._decompress(s.length,32,function(f){return o(n,s.charAt(f))}))},compress:function(s){return c._compress(s,16,function(f){return e(f)})},_compress:function(s,f,p){if(s==null)return"";var u,l,h={},d={},x="",m="",v="",y=2,w=3,E=2,S=[],g=0,$=0,b;for(b=0;b<s.length;b+=1)if(x=s.charAt(b),Object.prototype.hasOwnProperty.call(h,x)||(h[x]=w++,d[x]=!0),m=v+x,Object.prototype.hasOwnProperty.call(h,m))v=m;else{if(Object.prototype.hasOwnProperty.call(d,v)){if(v.charCodeAt(0)<256){for(u=0;u<E;u++)g=g<<1,$==f-1?($=0,S.push(p(g)),g=0):$++;for(l=v.charCodeAt(0),u=0;u<8;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1}else{for(l=1,u=0;u<E;u++)g=g<<1|l,$==f-1?($=0,S.push(p(g)),g=0):$++,l=0;for(l=v.charCodeAt(0),u=0;u<16;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1}y--,y==0&&(y=Math.pow(2,E),E++),delete d[v]}else for(l=h[v],u=0;u<E;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1;y--,y==0&&(y=Math.pow(2,E),E++),h[m]=w++,v=String(x)}if(v!==""){if(Object.prototype.hasOwnProperty.call(d,v)){if(v.charCodeAt(0)<256){for(u=0;u<E;u++)g=g<<1,$==f-1?($=0,S.push(p(g)),g=0):$++;for(l=v.charCodeAt(0),u=0;u<8;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1}else{for(l=1,u=0;u<E;u++)g=g<<1|l,$==f-1?($=0,S.push(p(g)),g=0):$++,l=0;for(l=v.charCodeAt(0),u=0;u<16;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1}y--,y==0&&(y=Math.pow(2,E),E++),delete d[v]}else for(l=h[v],u=0;u<E;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1;y--,y==0&&(y=Math.pow(2,E),E++)}for(l=2,u=0;u<E;u++)g=g<<1|l&1,$==f-1?($=0,S.push(p(g)),g=0):$++,l=l>>1;for(;;)if(g=g<<1,$==f-1){S.push(p(g));break}else $++;return S.join("")},decompress:function(s){return s==null?"":s==""?null:c._decompress(s.length,32768,function(f){return s.charCodeAt(f)})},_decompress:function(s,f,p){var u=[],l=4,h=4,d=3,x="",m=[],v,y,w,E,S,g,$,b={val:p(0),position:f,index:1};for(v=0;v<3;v+=1)u[v]=v;for(w=0,S=Math.pow(2,2),g=1;g!=S;)E=b.val&b.position,b.position>>=1,b.position==0&&(b.position=f,b.val=p(b.index++)),w|=(E>0?1:0)*g,g<<=1;switch(w){case 0:for(w=0,S=Math.pow(2,8),g=1;g!=S;)E=b.val&b.position,b.position>>=1,b.position==0&&(b.position=f,b.val=p(b.index++)),w|=(E>0?1:0)*g,g<<=1;$=e(w);break;case 1:for(w=0,S=Math.pow(2,16),g=1;g!=S;)E=b.val&b.position,b.position>>=1,b.position==0&&(b.position=f,b.val=p(b.index++)),w|=(E>0?1:0)*g,g<<=1;$=e(w);break;case 2:return""}for(u[3]=$,y=$,m.push($);;){if(b.index>s)return"";for(w=0,S=Math.pow(2,d),g=1;g!=S;)E=b.val&b.position,b.position>>=1,b.position==0&&(b.position=f,b.val=p(b.index++)),w|=(E>0?1:0)*g,g<<=1;switch($=w){case 0:for(w=0,S=Math.pow(2,8),g=1;g!=S;)E=b.val&b.position,b.position>>=1,b.position==0&&(b.position=f,b.val=p(b.index++)),w|=(E>0?1:0)*g,g<<=1;u[h++]=e(w),$=h-1,l--;break;case 1:for(w=0,S=Math.pow(2,16),g=1;g!=S;)E=b.val&b.position,b.position>>=1,b.position==0&&(b.position=f,b.val=p(b.index++)),w|=(E>0?1:0)*g,g<<=1;u[h++]=e(w),$=h-1,l--;break;case 2:return m.join("")}if(l==0&&(l=Math.pow(2,d),d++),u[$])x=u[$];else if($===h)x=y+y.charAt(0);else return null;m.push(x),u[h++]=y+x.charAt(0),l--,y=x,l==0&&(l=Math.pow(2,d),d++)}}};return c}();a!=null?a.exports=t:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(et);var Gr=et.exports,jr=_(Gr),rt={exports:{}},nt={exports:{}},it={exports:{}},st={exports:{}},ot={exports:{}},at={exports:{}};(function(a,t){t=function(e){return e===void 0},a.exports=t})(at,at.exports);var T=at.exports,Zr=_(T),ut={exports:{}},ct={exports:{}},ft={exports:{}},pt={exports:{}};(function(a,t){var e=Object.prototype.toString;t=function(r){return e.call(r)},a.exports=t})(pt,pt.exports);var q=pt.exports;(function(a,t){var e=q;t=function(r){return e(r)==="[object Number]"},a.exports=t})(ft,ft.exports);var lt=ft.exports,ht={exports:{}};(function(a,t){var e=q;t=function(r){var n=e(r);return n==="[object Function]"||n==="[object GeneratorFunction]"||n==="[object AsyncFunction]"},a.exports=t})(ht,ht.exports);var R=ht.exports,Xr=_(R);(function(a,t){var e=lt,r=R,n=Math.pow(2,53)-1;t=function(i){if(!i)return!1;var o=i.length;return e(o)&&o>=0&&o<=n&&!r(i)},a.exports=t})(ct,ct.exports);var G=ct.exports,vt={exports:{}},dt={exports:{}};(function(a,t){var e=Object.prototype.hasOwnProperty;t=function(r,n){return e.call(r,n)},a.exports=t})(dt,dt.exports);var j=dt.exports;(function(a,t){var e=j;Object.keys?t=Object.keys:t=function(r){var n=[];for(var i in r)e(r,i)&&n.push(i);return n},a.exports=t})(vt,vt.exports);var L=vt.exports,xt={exports:{}};(function(a,t){var e=T;t=function(r,n,i){if(e(n))return r;switch(i==null?3:i){case 1:return function(o){return r.call(n,o)};case 3:return function(o,c,s){return r.call(n,o,c,s)};case 4:return function(o,c,s,f){return r.call(n,o,c,s,f)}}return function(){return r.apply(n,arguments)}},a.exports=t})(xt,xt.exports);var sr=xt.exports;(function(a,t){var e=G,r=L,n=sr;t=function(i,o,c){o=n(o,c);var s,f;if(e(i))for(s=0,f=i.length;s<f;s++)o(i[s],s,i);else{var p=r(i);for(s=0,f=p.length;s<f;s++)o(i[p[s]],p[s],i)}return i},a.exports=t})(ut,ut.exports);var C=ut.exports,M=_(C);(function(a,t){var e=T,r=C;t=function(n,i){return function(o){return r(arguments,function(c,s){if(s!==0){var f=n(c);r(f,function(p){(!i||e(o[p]))&&(o[p]=c[p])})}}),o}},a.exports=t})(ot,ot.exports);var gt=ot.exports,mt={exports:{}},yt={exports:{}},wt={exports:{}};(function(a,t){t=function(e){var r=typeof e;return!!e&&(r==="function"||r==="object")},a.exports=t})(wt,wt.exports);var W=wt.exports;(function(a,t){var e=W,r=R,n=Object.getPrototypeOf,i={}.constructor;t=function(o){if(e(o)){if(n)return n(o);var c=o.__proto__;if(c||c===null)return c;if(r(o.constructor))return o.constructor.prototype;if(o instanceof i)return i.prototype}},a.exports=t})(yt,yt.exports);var Ir=yt.exports,Et={exports:{}},bt={exports:{}},$t={exports:{}},St={exports:{}};(function(a,t){var e=q;Array.isArray?t=Array.isArray:t=function(r){return e(r)==="[object Array]"},a.exports=t})(St,St.exports);var U=St.exports,_t={exports:{}},Ct={exports:{}};(function(a,t){var e=L,r=gt;t=r(e),a.exports=t})(Ct,Ct.exports);var Jr=Ct.exports,zt={exports:{}};(function(a,t){var e=L;t=function(r,n){var i=e(n),o=i.length;if(r==null)return!o;r=Object(r);for(var c=0;c<o;c++){var s=i[c];if(n[s]!==r[s]||!(s in r))return!1}return!0},a.exports=t})(zt,zt.exports);var Yr=zt.exports;(function(a,t){var e=Jr,r=Yr;t=function(n){return n=e({},n),function(i){return r(i,n)}},a.exports=t})(_t,_t.exports);var Qr=_t.exports,At={exports:{}};(function(a,t){t=function(e){return e},a.exports=t})(At,At.exports);var Kr=At.exports,Ot={exports:{}},Tt={exports:{}},Mt={exports:{}};(function(a,t){var e=j,r=U;t=function(o,c){if(r(o))return o;if(c&&e(c,o))return[o];var s=[];return o.replace(n,function(f,p,u,l){s.push(u?l.replace(i,"$1"):p||f)}),s};var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;a.exports=t})(Mt,Mt.exports);var Vr=Mt.exports;(function(a,t){var e=T,r=Vr;t=function(n,i){i=r(i,n);var o;for(o=i.shift();!e(o);){if(n=n[o],n==null)return;o=i.shift()}return n},a.exports=t})(Tt,Tt.exports);var or=Tt.exports;(function(a,t){var e=U,r=or;t=function(i){return e(i)?function(o){return r(o,i)}:n(i)};function n(i){return function(o){return o==null?void 0:o[i]}}a.exports=t})(Ot,Ot.exports);var tn=Ot.exports;(function(a,t){var e=R,r=W,n=U,i=sr,o=Qr,c=Kr,s=tn;t=function(f,p,u){return f==null?c:e(f)?i(f,p,u):r(f)&&!n(f)?o(f):s(f)},a.exports=t})($t,$t.exports);var Z=$t.exports;(function(a,t){var e=Z,r=C;t=function(n,i,o){var c=[];return i=e(i,o),r(n,function(s,f,p){i(s,f,p)&&c.push(s)}),c},a.exports=t})(bt,bt.exports);var en=bt.exports;(function(a,t){var e=en;t=function(n,i){return i=i||r,e(n,function(o,c,s){for(var f=s.length;++c<f;)if(i(o,s[c]))return!1;return!0})};function r(n,i){return n===i}a.exports=t})(Et,Et.exports);var rn=Et.exports;(function(a,t){var e=L,r=Ir,n=rn,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols;t=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=s.prototype,p=f===void 0?!0:f,u=s.unenumerable,l=u===void 0?!1:u,h=s.symbol,d=h===void 0?!1:h,x=[];if((l||d)&&i){var m=e;l&&i&&(m=i);do x=x.concat(m(c)),d&&o&&(x=x.concat(o(c)));while(p&&(c=r(c))&&c!==Object.prototype);x=n(x)}else if(p)for(var v in c)x.push(v);else x=e(c);return x},a.exports=t})(mt,mt.exports);var ar=mt.exports;(function(a,t){var e=gt,r=ar;t=e(r),a.exports=t})(st,st.exports);var X=st.exports,nn=_(X),Nt={exports:{}},kt={exports:{}};(function(a,t){var e=Z,r=L,n=G;t=function(i,o,c){o=e(o,c);for(var s=!n(i)&&r(i),f=(s||i).length,p=Array(f),u=0;u<f;u++){var l=s?s[u]:u;p[u]=o(i[l],l,i)}return p},a.exports=t})(kt,kt.exports);var Ht=kt.exports,sn=_(Ht),Pt={exports:{}};(function(a,t){var e=q;t=function(r){return e(r)==="[object String]"},a.exports=t})(Pt,Pt.exports);var z=Pt.exports,on=_(z);(function(a,t){var e=G,r=Ht,n=U,i=z;t=function(o){return o?n(o)?o:e(o)&&!i(o)?r(o):[o]:[]},a.exports=t})(Nt,Nt.exports);var B=Nt.exports,Dt={exports:{}},Rt={exports:{}};(function(a,t){var e=W;t=function(n){if(!e(n))return{};if(r)return r(n);function i(){}return i.prototype=n,new i};var r=Object.create;a.exports=t})(Rt,Rt.exports);var an=Rt.exports;(function(a,t){var e=an;t=function(r,n){r.prototype=e(n.prototype)},a.exports=t})(Dt,Dt.exports);var un=Dt.exports,Lt={exports:{}};(function(a,t){var e=R;t=typeof wx!="undefined"&&e(wx.openLocation),a.exports=t})(Lt,Lt.exports);var cn=Lt.exports;(function(a,t){var e=X,r=B,n=un,i=or,o=cn;t=function(f,p){return s.extend(f,p)};function c(f,p,u){u=u||{};var l=p.className||i(p,"initialize.name")||"";delete p.className;var h=function(){var d=r(arguments);return this.initialize?this.initialize.apply(this,d)||this:this};if(!o)try{h=new Function("toArr","return function "+l+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(r)}catch(d){}return n(h,f),h.prototype.constructor=h,h.extend=function(d,x){return c(h,d,x)},h.inherits=function(d){n(h,d)},h.methods=function(d){return e(h.prototype,d),h},h.statics=function(d){return e(h,d),h},h.methods(p).statics(u),h}var s=t.Base=c(Object,{className:"Base",callSuper:function(f,p,u){var l=f.prototype[p];return l.apply(this,u)},toString:function(){return this.constructor.name}});a.exports=t})(it,it.exports);var I=it.exports,Wt={exports:{}},Bt={exports:{}};(function(a,t){t=function(e,r){return r=r==null?e.length-1:+r,function(){var n=Math.max(arguments.length-r,0),i=new Array(n),o;for(o=0;o<n;o++)i[o]=arguments[o+r];switch(r){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var c=new Array(r+1);for(o=0;o<r;o++)c[o]=arguments[o];return c[r]=i,e.apply(this,c)}},a.exports=t})(Bt,Bt.exports);var ur=Bt.exports;(function(a,t){var e=ur;t=e(function(r,n){for(var i=r.length,o=0,c=n.length;o<c;o++)for(var s=n[o],f=0,p=s.length;f<p;f++)r[i++]=s[f];return r.length=i,r}),a.exports=t})(Wt,Wt.exports);var fn=Wt.exports;(function(a,t){var e=I,r=z,n=C,i=fn;t=e({className:"Select",initialize:function(c){if(this.length=0,!c)return this;if(r(c))return o.find(c);c.nodeType&&(this[0]=c,this.length=1)},find:function(c){var s=new t;return this.each(function(){i(s,this.querySelectorAll(c))}),s},each:function(c){return n(this,function(s,f){c.call(s,f,s)}),this}});var o=new t(document);a.exports=t})(nt,nt.exports);var cr=nt.exports,qt={exports:{}},Ut={exports:{}};(function(a,t){var e=z,r=B,n=cr;t=function(i){return r(e(i)?new n(i):i)},a.exports=t})(Ut,Ut.exports);var k=Ut.exports;(function(a,t){var e=k;t=function(r){r=e(r);var n=r[0],i=n.getBoundingClientRect();return{left:i.left+window.pageXOffset,top:i.top+window.pageYOffset,width:Math.round(i.width),height:Math.round(i.height)}},a.exports=t})(qt,qt.exports);var pn=qt.exports,Ft={exports:{}};(function(a,t){var e=C,r=k;t=function(c){c=r(c),e(c,function(s){n(s)&&(s.style.display=o(s.nodeName))})};function n(c){return getComputedStyle(c,"").getPropertyValue("display")=="none"}var i={};function o(c){var s,f;return i[c]||(s=document.createElement(c),document.documentElement.appendChild(s),f=getComputedStyle(s,"").getPropertyValue("display"),s.parentNode.removeChild(s),f=="none"&&(f="block"),i[c]=f),i[c]}a.exports=t})(Ft,Ft.exports);var ln=Ft.exports,Gt={exports:{}},jt={exports:{}},Zt={exports:{}};(function(a,t){var e=/([A-Z])/g,r=/[_.\- ]+/g,n=/(^-)|(-$)/g;t=function(i){return i=i.replace(e,"-$1").toLowerCase().replace(r,"-").replace(n,""),i.split("-")},a.exports=t})(Zt,Zt.exports);var fr=Zt.exports;(function(a,t){var e=fr;t=function(r){return e(r).join("-")},a.exports=t})(jt,jt.exports);var pr=jt.exports,Xt={exports:{}},It={exports:{}};(function(a,t){t=function(e,r,n){return Array.prototype.indexOf.call(e,r,n)},a.exports=t})(It,It.exports);var hn=It.exports,Jt={exports:{}};(function(a,t){var e=C;t=function(r){var n=[];return e(r,function(i){n.push(i)}),n},a.exports=t})(Jt,Jt.exports);var vn=Jt.exports;(function(a,t){var e=hn,r=z,n=G,i=vn;t=function(o,c){return r(o)?o.indexOf(c)>-1:(n(o)||(o=i(o)),e(o,c)>=0)},a.exports=t})(Xt,Xt.exports);var K=Xt.exports,lr=_(K),Yt={exports:{}},Qt={exports:{}};(function(a,t){var e=j;t=function(r,n){var i=function(o){var c=i.cache,s=""+(n?n.apply(this,arguments):o);return e(c,s)||(c[s]=r.apply(this,arguments)),c[s]};return i.cache={},i},a.exports=t})(Qt,Qt.exports);var dn=Qt.exports,Kt={exports:{}};(function(a,t){var e=fr;t=function(n){var i=e(n),o=i[0];return i.shift(),i.forEach(r,i),o+=i.join(""),o};function r(n,i){this[i]=n.replace(/\w/,function(o){return o.toUpperCase()})}a.exports=t})(Kt,Kt.exports);var xn=Kt.exports,Vt={exports:{}};(function(a,t){t=function(e){return e.length<1?e:e[0].toUpperCase()+e.slice(1)},a.exports=t})(Vt,Vt.exports);var gn=Vt.exports;(function(a,t){var e=dn,r=xn,n=gn,i=j,o=pr;t=e(function(p){if(p=p.replace(s,""),p=r(p),i(f,p))return p;for(var u=c.length;u--;){var l=c[u]+n(p);if(i(f,l))return l}return p}),t.dash=e(function(p){var u=t(p);return(s.test(u)?"-":"")+o(u)});var c=["O","ms","Moz","Webkit"],s=/^(O)|(ms)|(Moz)|(Webkit)|(-o-)|(-ms-)|(-moz-)|(-webkit-)/g,f=document.createElement("p").style;a.exports=t})(Yt,Yt.exports);var mn=Yt.exports;(function(a,t){var e=z,r=W,n=pr,i=T,o=K,c=lt,s=k,f=mn,p=C;t=function(x,m,v){x=s(x);var y=i(v)&&e(m);if(y)return u(x[0],m);var w=m;r(w)||(w={},w[m]=v),l(x,w)};function u(x,m){return x.style[f(m)]||getComputedStyle(x,"").getPropertyValue(m)}function l(x,m){p(x,function(v){var y=";";p(m,function(w,E){E=f.dash(E),y+=E+":"+d(E,w)+";"}),v.style.cssText+=y})}var h=["column-count","columns","font-weight","line-weight","opacity","z-index","zoom"];function d(x,m){var v=c(m)&&!o(h,n(x));return v?m+"px":m}a.exports=t})(Gt,Gt.exports);var te=Gt.exports,ee={exports:{}};(function(a,t){var e=B,r=W,n=z,i=C,o=T,c=k;t=function(p,u,l){p=c(p);var h=o(l)&&n(u);if(h)return s(p[0],u);var d=u;r(d)||(d={},d[u]=l),f(p,d)},t.remove=function(p,u){p=c(p),u=e(u),i(p,function(l){i(u,function(h){l.removeAttribute(h)})})};function s(p,u){return p.getAttribute(u)}function f(p,u){i(p,function(l){i(u,function(h,d){l.setAttribute(d,h)})})}a.exports=t})(ee,ee.exports);var hr=ee.exports,re={exports:{}};(function(a,t){var e=T,r=C,n=k;t={html:i("innerHTML"),text:i("textContent"),val:i("value")};function i(o){return function(c,s){c=n(c);var f=c[0];if(e(s))return f?f[o]:"";f&&r(c,function(p){p[o]=s})}}a.exports=t})(re,re.exports);var yn=re.exports,ne={exports:{}};(function(a,t){t=function(e){var r=e?e.length:0;if(r)return e[r-1]},a.exports=t})(ne,ne.exports);var vr=ne.exports,ie={exports:{}};(function(a,t){var e=C,r=k;t=function(n){n=r(n),e(n,function(i){var o=i.parentNode;o&&o.removeChild(i)})},a.exports=t})(ie,ie.exports);var wn=ie.exports,se={exports:{}};(function(a,t){var e=hr,r=z,n=W,i=C;t=function(o,c,s){var f=c;return r(c)&&(f="data-"+c),n(c)&&(f={},i(c,function(p,u){f["data-"+u]=p})),e(o,f,s)},a.exports=t})(se,se.exports);var En=se.exports,oe={exports:{}},ae={exports:{}};(function(a,t){var e=I,r=K;function n(){return!0}function i(){return!1}function o(s){var f=this.events[s.type],p,u=c.call(this,s,f);s=new t.Event(s);for(var l=0,h,d,x;(d=u[l++])&&!s.isPropagationStopped();)for(s.curTarget=d.el,h=0;(p=d.handlers[h++])&&!s.isImmediatePropagationStopped();)x=p.handler.apply(d.el,[s]),x===!1&&(s.preventDefault(),s.stopPropagation())}function c(s,f){var p=s.target,u=[],l=f.delegateCount,h,d,x,m;if(p.nodeType)for(;p!==this;p=p.parentNode||this){for(d=[],m=0;m<l;m++)x=f[m],h=x.selector+" ",d[h]===void 0&&(d[h]=r(this.querySelectorAll(h),p)),d[h]&&d.push(x);d.length&&u.push({el:p,handlers:d})}return l<f.length&&u.push({el:this,handlers:f.slice(l)}),u}t={add:function(s,f,p,u){var l={selector:p,handler:u},h;s.events||(s.events={}),(h=s.events[f])||(h=s.events[f]=[],h.delegateCount=0,s.addEventListener(f,function(){o.apply(s,arguments)},!1)),p?h.splice(h.delegateCount++,0,l):h.push(l)},remove:function(s,f,p,u){var l=s.events;if(!(!l||!l[f]))for(var h=l[f],d=h.length,x;d--;)x=h[d],(!p||x.selector==p)&&x.handler==u&&(h.splice(d,1),x.selector&&h.delegateCount--)},Event:e({className:"Event",initialize:function(f){this.origEvent=f},isDefaultPrevented:i,isPropagationStopped:i,isImmediatePropagationStopped:i,preventDefault:function(){var s=this.origEvent;this.isDefaultPrevented=n,s&&s.preventDefault&&s.preventDefault()},stopPropagation:function(){var s=this.origEvent;this.isPropagationStopped=n,s&&s.stopPropagation&&s.stopPropagation()},stopImmediatePropagation:function(){var s=this.origEvent;this.isImmediatePropagationStopped=n,s&&s.stopImmediatePropagation&&s.stopImmediatePropagation(),this.stopPropagation()}})},a.exports=t})(ae,ae.exports);var bn=ae.exports;(function(a,t){var e=bn,r=T,n=k,i=C;t={on:o("add"),off:o("remove")};function o(c){return function(s,f,p,u){s=n(s),r(u)&&(u=p,p=void 0),i(s,function(l){e[c](l,f,p,u)})}}a.exports=t})(oe,oe.exports);var dr=oe.exports,ue={exports:{}},ce={exports:{}};(function(a,t){var e=Z,r=G,n=L;t=function(i,o,c){o=e(o,c);for(var s=!r(i)&&n(i),f=(s||i).length,p=0;p<f;p++){var u=s?s[p]:p;if(o(i[u],u,i))return!0}return!1},a.exports=t})(ce,ce.exports);var $n=ce.exports;(function(a,t){var e=B,r=$n,n=k,i=z,o=C;t={add:function(s,f){s=n(s);var p=c(f);o(s,function(u){var l=[];o(p,function(h){t.has(u,h)||l.push(h)}),l.length!==0&&(u.className+=(u.className?" ":"")+l.join(" "))})},has:function(s,f){s=n(s);var p=new RegExp("(^|\\s)"+f+"(\\s|$)");return r(s,function(u){return p.test(u.className)})},toggle:function(s,f){s=n(s),o(s,function(p){if(!t.has(p,f))return t.add(p,f);t.remove(p,f)})},remove:function(s,f){s=n(s);var p=c(f);o(s,function(u){o(p,function(l){u.classList.remove(l)})})}};function c(s){return i(s)?s.split(/\s+/):e(s)}a.exports=t})(ue,ue.exports);var xr=ue.exports,fe={exports:{}};(function(a,t){var e=C,r=k,n=z;t={before:i("beforebegin"),after:i("afterend"),append:i("beforeend"),prepend:i("afterbegin")};function i(o){return function(c,s){c=r(c),e(c,function(f){if(n(s))f.insertAdjacentHTML(o,s);else{var p=f.parentNode;switch(o){case"beforebegin":p&&p.insertBefore(s,f);break;case"afterend":p&&p.insertBefore(s,f.nextSibling);break;case"beforeend":f.appendChild(s);break;case"afterbegin":f.prepend(s);break}}})}}a.exports=t})(fe,fe.exports);var Sn=fe.exports;(function(a,t){var e=cr,r=pn,n=ln,i=te,o=hr,c=yn,s=vr,f=wn,p=En,u=dr,l=xr,h=Sn,d=T,x=z;t=function(v){return new e(v)},e.methods({offset:function(){return r(this)},hide:function(){return this.css("display","none")},show:function(){return n(this),this},first:function(){return t(this[0])},last:function(){return t(s(this))},get:function(v){return this[v]},eq:function(v){return t(this[v])},on:function(v,y,w){return u.on(this,v,y,w),this},off:function(v,y,w){return u.off(this,v,y,w),this},html:function(v){var y=c.html(this,v);return d(v)?y:this},text:function(v){var y=c.text(this,v);return d(v)?y:this},val:function(v){var y=c.val(this,v);return d(v)?y:this},css:function(v,y){var w=i(this,v,y);return m(v,y)?w:this},attr:function(v,y){var w=o(this,v,y);return m(v,y)?w:this},data:function(v,y){var w=p(this,v,y);return m(v,y)?w:this},rmAttr:function(v){return o.remove(this,v),this},remove:function(){return f(this),this},addClass:function(v){return l.add(this,v),this},rmClass:function(v){return l.remove(this,v),this},toggleClass:function(v){return l.toggle(this,v),this},hasClass:function(v){return l.has(this,v)},parent:function(){return t(this[0].parentNode)},append:function(v){return h.append(this,v),this},prepend:function(v){return h.prepend(this,v),this},before:function(v){return h.before(this,v),this},after:function(v){return h.after(this,v),this}});var m=function(v,y){return d(y)&&x(v)};a.exports=t})(rt,rt.exports);var _n=rt.exports,H=_(_n),pe={exports:{}},le={exports:{}};(function(a,t){t=function(){for(var e=arguments,r=e[0],n=1,i=e.length;n<i;n++)e[n]<r&&(r=e[n]);return r},a.exports=t})(le,le.exports);var gr=le.exports,Cn=_(gr),he={exports:{}},ve={exports:{}};(function(a,t){var e=/^\s+/;t=function(r,n){if(n==null)return r.trimLeft?r.trimLeft():r.replace(e,"");for(var i=0,o=r.length,c=n.length,s=!0,f,p;s&&i<o;)for(s=!1,f=-1,p=r.charAt(i);++f<c;)if(p===n[f]){s=!0,i++;break}return i>=o?"":r.substr(i,o)},a.exports=t})(ve,ve.exports);var zn=ve.exports,de={exports:{}};(function(a,t){t=function(e,r){if(r==null){if(e.trimRight)return e.trimRight();r=` \r \f\v`}for(var n=e.length-1,i=r.length,o=!0,c,s;o&&n>=0;)for(o=!1,c=-1,s=e.charAt(n);++c<i;)if(s===r[c]){o=!0,n--;break}return n>=0?e.substring(0,n+1):""},a.exports=t})(de,de.exports);var An=de.exports;(function(a,t){var e=zn,r=An;t=function(n,i){return i==null&&n.trim?n.trim():e(r(n,i),i)},a.exports=t})(he,he.exports);var mr=he.exports,yr=_(mr);(function(a,t){var e=z,r=B,n=gr,i=Ht,o=mr;t=function(s){e(s)&&(s=r(s));for(var f="",p=arguments.length,u=new Array(p>1?p-1:0),l=1;l<p;l++)u[l-1]=arguments[l];for(var h=0,d=s.length;h<d;h++)f+=s[h],u[h]&&(f+=u[h]);for(var x=f.split(` `),m=[],v=0,y=x.length;v<y;v++){var w=x[v],E=w.match(c);E&&m.push(E[1].length)}var S=m.length>0?n.apply(null,m):0;return o(i(x,function(g){return g[0]===" "?g.slice(S):g}).join(` `))};var c=/^(\s+)\S+/;a.exports=t})(pe,pe.exports);var On=pe.exports,Tn=_(On),xe={exports:{}},ge={exports:{}};(function(a,t){t=function(e,r,n){var i=e.length;r==null?r=0:r<0?r=Math.max(i+r,0):r=Math.min(r,i),n==null?n=i:n<0?n=Math.max(i+n,0):n=Math.min(n,i);for(var o=[];r<n;)o.push(e[r++]);return o},a.exports=t})(ge,ge.exports);var Mn=ge.exports,me={exports:{}},ye={exports:{}};(function(a,t){var e=ur,r=B;t=e(function(n,i){return function(){var o=[];return o=o.concat(i),o=o.concat(r(arguments)),n.apply(this,o)}}),a.exports=t})(ye,ye.exports);var Nn=ye.exports,we={exports:{}};(function(a,t){t=function(e,r){var n;return function(){return--e>0&&(n=r.apply(this,arguments)),e<=1&&(r=null),n}},a.exports=t})(we,we.exports);var kn=we.exports;(function(a,t){var e=Nn,r=kn;t=e(r,2),a.exports=t})(me,me.exports);var Hn=me.exports,Ee={exports:{}};(function(a,t){var e=W,r=U,n=X;t=function(i){return e(i)?r(i)?i.slice():n({},i):i},a.exports=t})(Ee,Ee.exports);var wr=Ee.exports;(function(a,t){var e=I,r=j,n=C,i=Mn,o=Hn,c=wr;t=e({initialize:function(){this._events=this._events||{}},on:function(s,f){return this._events[s]=this._events[s]||[],this._events[s].push(f),this},off:function(s,f){var p=this._events;if(r(p,s)){var u=p[s].indexOf(f);return u>-1&&p[s].splice(u,1),this}},once:function(s,f){return this.on(s,o(f)),this},emit:function(s){var f=this;if(r(this._events,s)){var p=i(arguments,1),u=c(this._events[s]);return n(u,function(l){return l.apply(f,p)},this),this}},removeAllListeners:function(s){return s?delete this._events[s]:this._events={},this}},{mixin:function(s){n(["on","off","once","emit","removeAllListeners"],function(f){s[f]=t.prototype[f]}),s._events=s._events||{}}}),a.exports=t})(xe,xe.exports);var Pn=xe.exports,Dn=_(Pn),be={exports:{}},$e={exports:{}};(function(a,t){t=typeof window=="object"&&typeof document=="object"&&document.nodeType===9,a.exports=t})($e,$e.exports);var Er=$e.exports;(function(a,t){var e=Er;t=e?window:F,a.exports=t})(be,be.exports);var Se=be.exports,br=_(Se),_e={exports:{}},Ce={exports:{}},ze={exports:{}};(function(a,t){var e=C,r=T,n=R;t=function(i,o){r(o)&&(o=!0);var c=n(o),s={};return e(i,function(f){s[f]=c?o(f):o}),s},a.exports=t})(ze,ze.exports);var Rn=ze.exports,Ae={exports:{}};(function(a,t){t=function(e,r){return e.indexOf(r)===0},a.exports=t})(Ae,Ae.exports);var Oe=Ae.exports,J=_(Oe),Te={exports:{}},Me={exports:{}};(function(a,t){t=function(e){return e==null?"":e.toString()},a.exports=t})(Me,Me.exports);var V=Me.exports,Ne=_(V);(function(a,t){var e=V;t=function(r){return e(r).toLocaleLowerCase()},a.exports=t})(Te,Te.exports);var $r=Te.exports,Sr=_($r);(function(a,t){var e=vr,r=Rn,n=Oe,i=$r;t=function(u,l){for(var h=[],d,x=u;u;){if(d=!0,!e(h)||!p[e(h)]){if(n(u,"<!--")){var m=u.indexOf("-->");m>=0&&(l.comment&&l.comment(u.substring(4,m)),u=u.substring(m+3),d=!1)}else if(n(u,"<!")){var v=u.match(o);v&&(l.text&&l.text(u.substring(0,v[0].length)),u=u.substring(v[0].length),d=!1)}else if(n(u,"</")){var y=u.match(c);y&&(u=u.substring(y[0].length),y[0].replace(c,P),d=!1)}else if(n(u,"<")){var w=u.match(s);w&&(u=u.substring(w[0].length),w[0].replace(s,b),d=!1)}if(d){var E=u.indexOf("<"),S=E<0?u:u.substring(0,E);u=E<0?"":u.substring(E),l.text&&l.text(S)}}else{var g=new RegExp("</".concat(e(h),"[^>]*>")).exec(u);if(g){var $=u.substring(0,g.index);u=u.substring(g.index+g[0].length),$&&l.text&&l.text($)}P("",e(h))}if(x===u)throw Error("Parse Error: "+u);x=u}P();function b(D,A,O,N){if(A=i(A),N=!!N,N||h.push(A),l.start){var Q={};O.replace(f,function(Fr,Gi,ji,Zi,Xi){Q[Gi]=ji||Zi||Xi||""}),l.start(A,Q,N)}}function P(D,A){A=i(A);var O;if(!A)O=0;else for(O=h.length-1;O>=0&&h[O]!==A;O--);if(O>=0){for(var N=h.length-1;N>=O;N--)l.end&&l.end(h[N]);h.length=O}}};var o=/^<!\s*doctype((?:\s+[\w:]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,c=/^<\/([-A-Za-z0-9_]+)[^>]*>/,s=/^<([-A-Za-z0-9_]+)((?:\s+[-A-Za-z0-9_:@.]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/i,f=/([-A-Za-z0-9_:@.]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,p=r("script,style".split(","));a.exports=t})(Ce,Ce.exports);var Ln=Ce.exports,ke={exports:{}},He={exports:{}};(function(a,t){t=function(e){var r=e.length,n=Array(r);r--;for(var i=0;i<=r;i++)n[r-i]=e[i];return n},a.exports=t})(He,He.exports);var Wn=He.exports;(function(a,t){var e=I,r=Wn;t=e({initialize:function(){this.clear()},clear:function(){this._items=[],this.size=0},push:function(n){return this._items.push(n),++this.size},pop:function(){if(this.size)return this.size--,this._items.pop()},peek:function(){return this._items[this.size-1]},forEach:function(n,i){i=arguments.length>1?i:this;for(var o=this._items,c=this.size-1,s=0;c>=0;c--,s++)n.call(i,o[c],s,this)},toArr:function(){return r(this._items)}}),a.exports=t})(ke,ke.exports);var Bn=ke.exports,Pe={exports:{}};(function(a,t){var e=Z,r=L;t=function(n,i,o){i=e(i,o);for(var c=r(n),s=c.length,f={},p=0;p<s;p++){var u=c[p];f[u]=i(n[u],u,n)}return f},a.exports=t})(Pe,Pe.exports);var qn=Pe.exports;(function(a,t){var e=Ln,r=Bn,n=U,i=C,o=z,c=qn;function s(l){var h=[],d=new r;return e(l,{start:function(x,m){m=c(m,function(v){return p(v)}),d.push({tag:x,attrs:m})},end:function(){var x=d.pop();if(!d.size){h.push(x);return}var m=d.peek();n(m.content)||(m.content=[]),m.content.push(x)},comment:function(x){var m="<!--".concat(x,"-->"),v=d.peek();if(!v){h.push(m);return}v.content||(v.content=[]),v.content.push(m)},text:function(x){var m=d.peek();if(!m){h.push(x);return}m.content||(m.content=[]),m.content.push(x)}}),h}function f(l){var h="";return n(l)?i(l,function(d){return h+=f(d)}):o(l)?h=l:(h+="<".concat(l.tag),i(l.attrs,function(d,x){return h+=" ".concat(x,'="').concat(u(d),'"')}),h+=">",l.content&&(h+=f(l.content)),h+="</".concat(l.tag,">")),h}var p=function(l){return l.replace(/&quot;/g,'"')},u=function(l){return l.replace(/"/g,"&quot;")};t={parse:s,stringify:f},a.exports=t})(_e,_e.exports);var Un=_e.exports,_r=_(Un),De={exports:{}};(function(a,t){var e=lt,r=W,n=R,i=z;t=function(o){if(e(o))return o;if(r(o)){var c=n(o.valueOf)?o.valueOf():o;o=r(c)?c+"":c}return i(o)?+o:o===0?o:+o},a.exports=t})(De,De.exports);var Fn=De.exports,Cr=_(Fn),Re={exports:{}};(function(a,t){var e=Er;t=function(r){if(r=r||(e?navigator.userAgent:""),r=r.toLowerCase(),n("windows phone"))return"windows phone";if(n("win"))return"windows";if(n("android"))return"android";if(n("ipad")||n("iphone")||n("ipod"))return"ios";if(n("mac"))return"os x";if(n("linux"))return"linux";function n(i){return r.indexOf(i)>-1}return"unknown"},a.exports=t})(Re,Re.exports);var Gn=Re.exports,jn=_(Gn),zr={exports:{}};(function(a,t){var e=Se,r=e.getComputedStyle,n=e.document;t=function(o){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=c.display,f=s===void 0?!0:s,p=c.visibility,u=p===void 0?!1:p,l=c.opacity,h=l===void 0?!1:l,d=c.size,x=d===void 0?!1:d,m=c.viewport,v=m===void 0?!1:m,y=c.overflow,w=y===void 0?!1:y,E=r(o);if(f){var S=o.tagName;if(S==="BODY"||S==="HTML"||E.position==="fixed"){if(E.display==="none")return!0;for(var g=o;g=g.parentElement;){var $=r(g);if($.display==="none")return!0}}else if(o.offsetParent===null)return!0}if(u&&E.visibility==="hidden")return!0;if(h){if(E.opacity==="0")return!0;for(var b=o;b=b.parentElement;){var P=r(b);if(P.opacity==="0")return!0}}var D=o.getBoundingClientRect();if(x&&(D.width===0||D.height===0))return!0;if(v){var A={top:0,left:0,right:n.documentElement.clientWidth,bottom:n.documentElement.clientHeight};return i(D,A)}if(w)for(var O=o;O=O.parentElement;){var N=r(O),Q=N.overflow;if(Q==="scroll"||Q==="hidden"){var Fr=O.getBoundingClientRect();if(i(D,Fr))return!0}}return!1};function i(o,c){return o.right<c.left||o.left>c.right||o.bottom<c.top||o.top>c.bottom}a.exports=t})(zr,zr.exports);function Zn(a,t){try{a.exports=t,a.exports.default=t}catch(e){}}function Xn(a){const t=`luna-${a}-`;function e(r){return sn(yr(r).split(/\s+/),n=>lr(n,t)?n:n.replace(/[\w-]+/,i=>`${t}${i}`)).join(" ")}return function(r){if(/<[^>]*>/g.test(r))try{const n=_r.parse(r);return Ar(n,i=>{i.attrs&&i.attrs.class&&(i.attrs.class=e(i.attrs.class))}),_r.stringify(n)}catch(n){return e(r)}return e(r)}}function Ar(a,t){for(let e=0,r=a.length;e<r;e++){const n=a[e];t(n),n.content&&Ar(n.content,t)}}const In="ontouchstart"in br,Jn="PointerEvent"in br,Yn={start:"touchstart",move:"touchmove",end:"touchend"},Qn={start:"mousedown",move:"mousemove",end:"mouseup"},Kn={start:"pointerdown",move:"pointermove",end:"pointerup"};function Y(a){return Jn?Kn[a]:In?Yn[a]:Qn[a]}function Or(a,t){const e=a==="x"?"clientX":"clientY";return t[e]?t[e]:t.changedTouches?t.changedTouches[0][e]:0}function Le(a){return Cr(a.replace("px",""))}function Vn(){const a=jn();return a==="os x"?"mac":a}var We={exports:{}};(function(a,t){var e=gt,r=ar;t=e(r,!0),a.exports=t})(We,We.exports);var ti=We.exports,Tr=_(ti),Be={exports:{}};(function(a,t){var e=Z;t=function(r,n,i){var o=[];n=e(n,i);for(var c=-1,s=r.length;++c<s;){var f=c-o.length,p=r[f];n(p,c,r)&&(o.push(p),r.splice(f,1))}return o},a.exports=t})(Be,Be.exports);var ei=Be.exports,ri=_(ei);class ni extends Dn{constructor(t,{compName:e},{theme:r="light"}={}){super(),this.subComponents=[],this.compName=e,this.c=Xn(e),this.options={},this.container=t,this.$container=H(t),this.$container.addClass([`luna-${e}`,this.c(`platform-${Vn()}`)]),this.on("optionChange",(n,i,o)=>{const c=this.c;n==="theme"&&(this.$container.rmClass(c(`theme-${o}`)).addClass(c(`theme-${i}`)),M(this.subComponents,s=>s.setOption("theme",i)))}),this.setOption("theme",r)}destroy(){this.destroySubComponents();const{$container:t}=this,e=t.attr("class");M(e.split(/\s+/),r=>{J(r,`luna-${this.compName}`)&&t.rmClass(r)}),t.html(""),this.emit("destroy"),this.removeAllListeners()}setOption(t,e){const r=this.options;let n={};typeof t=="string"?n[t]=e:n=t,M(n,(i,o)=>{const c=r[o];r[o]=i,this.emit("optionChange",o,i,c)})}getOption(t){return this.options[t]}addSubComponent(t){t.setOption("theme",this.options.theme),this.subComponents.push(t)}removeSubComponent(t){ri(this.subComponents,e=>e===t)}destroySubComponents(){M(this.subComponents,t=>t.destroy()),this.subComponents=[]}initOptions(t,e={}){Tr(t,e),nn(this.options,t)}find(t){return this.$container.find(this.c(t))}}var qe={exports:{}};(function(a,t){var e=L;t=function(s){return i.test(s)?s.replace(o,c):s};var r=t.map={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},n="(?:"+e(r).join("|")+")",i=new RegExp(n),o=new RegExp(n,"g"),c=function(s){return r[s]};a.exports=t})(qe,qe.exports);var ii=qe.exports,si=_(ii),Ue={exports:{}},Fe={exports:{}};(function(a,t){t=function(e){return!!(e&&e.nodeType===1)},a.exports=t})(Fe,Fe.exports);var Mr=Fe.exports,Ge=_(Mr);(function(a,t){var e=Mr,r=z,n=Oe,i=xr,o=te,c=C,s=R;t=function(p,u){for(var l=arguments.length,h=new Array(l>2?l-2:0),d=2;d<l;d++)h[d-2]=arguments[d];(e(u)||r(u))&&(h.unshift(u),u=null),u||(u={});var x=f(p),m=x.tagName,v=x.id,y=x.classes,w=document.createElement(m);return v&&w.setAttribute("id",v),i.add(w,y),c(h,function(E){r(E)?w.appendChild(document.createTextNode(E)):e(E)&&w.appendChild(E)}),c(u,function(E,S){r(E)?w.setAttribute(S,E):s(E)&&n(S,"on")?w.addEventListener(S.slice(2),E,!1):S==="style"&&o(w,E)}),w};function f(p){for(var u="div",l="",h=[],d=[],x="",m=0,v=p.length;m<v;m++){var y=p[m];y==="#"||y==="."?(d.push(x),x=y):x+=y}d.push(x);for(var w=0,E=d.length;w<E;w++)x=d[w],x&&(n(x,"#")?l=x.slice(1):n(x,".")?h.push(x.slice(1)):u=x);return{tagName:u,id:l,classes:h}}a.exports=t})(Ue,Ue.exports);var Nr=Ue.exports,kr=_(Nr),je={exports:{}},Ze={exports:{}};(function(a,t){var e=I,r=wr,n=C,i=B;t=e({initialize:function(){this._listeners=[]},addListener:function(o){this._listeners.push(o)},rmListener:function(o){var c=this._listeners.indexOf(o);c>-1&&this._listeners.splice(c,1)},rmAllListeners:function(){this._listeners=[]},emit:function(){var o=this,c=i(arguments),s=r(this._listeners);n(s,function(f){return f.apply(o,c)},this)}},{mixin:function(o){n(["addListener","rmListener","emit","rmAllListeners"],function(c){o[c]=t.prototype[c]}),o._listeners=o._listeners||[]}}),a.exports=t})(Ze,Ze.exports);var oi=Ze.exports;(function(a,t){var e=oi,r=Nr,n=dr,i=te,o=K,c=X,s=Se;s.ResizeObserver?t=e.extend({initialize:function(p){var u=this;if(p._resizeSensor)return p._resizeSensor;this.callSuper(e,"initialize");var l=new s.ResizeObserver(function(){return u.emit()});l.observe(p),p._resizeSensor=this,this._resizeObserver=l,this._el=p},destroy:function(){var f=this._el;f._resizeSensor&&(this.rmAllListeners(),delete f._resizeSensor,this._resizeObserver.unobserve(f))}}):t=e.extend({initialize:function(p){if(p._resizeSensor)return p._resizeSensor;this.callSuper(e,"initialize"),this._el=p,p._resizeSensor=this,o(["absolute","relative","fixed","sticky"],i(p,"position"))||i(p,"position","relative"),this._appendResizeSensor(),this._bindEvent()},destroy:function(){var f=this._el;f._resizeSensor&&(this.rmAllListeners(),delete f._resizeSensor,f.removeChild(this._resizeSensorEl))},_appendResizeSensor:function(){var f=this._el,p={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},u={position:"absolute",left:"0px",top:"0px",transition:"0s"},l=r("div",{style:u}),h=r("div.resize-sensor-expand",{style:p},l),d=r("div.resize-sensor-shrink",{style:p},r("div",{style:c({width:"200%",height:"200%"},u)})),x=r("div.resize-sensor",{dir:"ltr",style:p},h,d);this._expandEl=h,this._expandChildEl=l,this._shrinkEl=d,this._resizeSensorEl=x,f.appendChild(x),this._resetExpandShrink()},_bindEvent:function(){var f=this;n.on(this._expandEl,"scroll",function(){return f._onScroll()}),n.on(this._shrinkEl,"scroll",function(){return f._onScroll()})},_onScroll:function(){this.emit(),this._resetExpandShrink()},_resetExpandShrink:function(){var f=this._el,p=f.offsetWidth,u=f.offsetHeight;i(this._expandChildEl,{width:p+10,height:u+10}),c(this._expandEl,{scrollLeft:p+10,scrollTop:u+10}),c(this._shrinkEl,{scrollLeft:p+10,scrollTop:u+10})}}),a.exports=t})(je,je.exports);var ai=je.exports,Hr=_(ai),Xe={exports:{}},Ie={exports:{}};(function(a,t){t=function(e,r,n){var i;return function(){var o=this,c=arguments,s=function(){i=null,e.apply(o,c)};n||clearTimeout(i),(!n||!i)&&(i=setTimeout(s,r))}},a.exports=t})(Ie,Ie.exports);var ui=Ie.exports;(function(a,t){var e=ui;t=function(r,n){return e(r,n,!0)},a.exports=t})(Xe,Xe.exports);var ci=Xe.exports,Pr=_(ci),Je={exports:{}};(function(a,t){t=function(e){return e===null},a.exports=t})(Je,Je.exports);var fi=Je.exports,Dr=_(fi),Ye={exports:{}};(function(a,t){var e=q;t=function(r){return e(r)==="[object RegExp]"},a.exports=t})(Ye,Ye.exports);var pi=Ye.exports,li=_(pi),Qe={exports:{}};(function(a,t){var e=T;t=function(r,n,i){return e(i)&&(i=n,n=void 0),!e(n)&&r<n?n:r>i?i:r},a.exports=t})(Qe,Qe.exports);var hi=Qe.exports,vi=_(hi),Ke={exports:{}};(function(a,t){t=function(){for(var e=arguments,r=e[0],n=1,i=e.length;n<i;n++)e[n]>r&&(r=e[n]);return r},a.exports=t})(Ke,Ke.exports);var di=Ke.exports,xi=_(di);const tt=H(document),Rr=24;class Lr extends ni{constructor(t,e){super(t,{compName:"data-grid"},e),this.resizeIdx=0,this.resizeStartX=0,this.resizeStartLeft=0,this.resizeDeltaX=0,this.nodes=[],this.colWidthsInitialized=!1,this.colMap={},this.selectedNode=null,this.isAscending=!0,this.colWidths=[],this.onResizeColMove=o=>{const{resizeIdx:c,$resizers:s,colWidths:f,$colgroup:p}=this;o=o.origEvent;let u=Or("x",o)-this.resizeStartX;const l=f[c],h=f[c+1],d=Cn(-l+Rr,0),x=xi(h-Rr,0);u=vi(u,d,x),p.each(function(){const v=H(this).find("col");v.eq(c).css("width",l+u+"px"),v.eq(c+1).css("width",h-u+"px")}),this.resizeDeltaX=u;const m=this.resizeStartLeft+u;s.eq(c).css("left",`${m}px`)},this.onResizeColEnd=o=>{this.onResizeColMove(o);const{c,colWidths:s,resizeIdx:f,resizeDeltaX:p}=this,{columns:u}=this.options,l=u[f],h=u[f+1],d=s[f]+p,x=s[f+1]-p,m=d+x,v=l.weight+h.weight,y=v*(d/m),w=v-y;l.weight=y,h.weight=w,this.applyColWeights(),H(document.body).rmClass(c("resizing")),tt.off(Y("move"),this.onResizeColMove),tt.off(Y("end"),this.onResizeColEnd)},this.$container.attr("tabindex","0"),this.resizeSensor=new Hr(t),this.onResize=Pr(()=>{this.updateHeight(),this.updateWeights()},16),e.height&&(e.maxHeight=e.height,e.minHeight=e.height),this.initOptions(e,{minHeight:41,maxHeight:1/0,filter:""});const{columns:r,minHeight:n,maxHeight:i}=this.options;M(r,o=>{Tr(o,{sortable:!1}),this.colMap[o.id]=o}),i<n&&this.setOption("maxHeight",n),this.initTpl(),this.$headerRow=this.find(".header").find("tr"),this.$fillerRow=this.find(".filler-row"),this.fillerRow=this.$fillerRow.get(0),this.$tableBody=this.find(".data").find("tbody"),this.tableBody=this.$tableBody.get(0),this.$colgroup=this.$container.find("colgroup"),this.$dataContainer=this.find(".data-container"),this.renderHeader(),this.renderResizers(),this.updateWeights(),this.updateHeight(),this.bindEvent()}destroy(){super.destroy(),this.resizeSensor.destroy(),this.$container.rmAttr("tabindex")}remove(t){const{nodes:e}=this,r=e.indexOf(t);r>-1&&(t.detach(),e.splice(r,1),t===this.selectedNode&&this.selectNode(e[r]||e[r-1]||null),this.updateHeight())}append(t,e){const r=new gi(this,t,e);return this.nodes.push(r),this.sortId?this.sortNodes(this.sortId,this.isAscending):this.filterNode(r)&&(this.tableBody.insertBefore(r.container,this.fillerRow),this.updateHeight()),r}clear(){M(this.nodes,t=>t.detach()),this.nodes=[],this.selectNode(null),this.updateHeight()}updateHeight(){const{$fillerRow:t,c:e,$container:r}=this;let{maxHeight:n,minHeight:i}=this.options;this.$dataContainer.css({height:"auto"});const o=this.$headerRow.offset().height,c=Le(r.css("border-top-width")),s=Le(r.css("border-bottom-width")),f=o+c+s;i-=f,i<0&&(i=0),n-=f;const p=this.$dataContainer.find(e(".node")),u=p.length;let l=0;u>0&&(l=p.offset().height*u),l>i?t.hide():t.show(),l<i?l=i:l>=n&&(l=n),this.$dataContainer.css({height:l})}selectNode(t){var e;!Dr(t)&&!(t!=null&&t.selectable)||(this.selectedNode&&(this.selectedNode.deselect(),this.selectedNode=null),Dr(t)?this.emit("deselect"):(this.selectedNode=t,(e=this.selectedNode)==null||e.select(),this.emit("select",t)))}onResizeColStart(t){const{c:e,resizeIdx:r,$resizers:n}=this;t.stopPropagation(),t.preventDefault(),t=t.origEvent,this.resizeStartX=Or("x",t),this.resizeStartLeft=Le(n.eq(r).css("left")),H(document.body).addClass(e("resizing")),tt.on(Y("move"),this.onResizeColMove),tt.on(Y("end"),this.onResizeColEnd)}bindEvent(){const{c:t,$headerRow:e,$tableBody:r,$resizers:n}=this;this.resizeSensor.addListener(this.onResize);const i=this;r.on("click",t(".node"),function(){i.selectNode(this.dataGridNode)}),e.on("click",t(".sortable"),function(o){o.stopPropagation();const c=H(this),s=c.data("id"),p=c.data("order")!=="descending";c.data("order",p?"descending":"ascending"),i.sortNodes(s,p),e.find("th").each(function(){const u=H(this);u.data("id")!==s&&u.rmAttr("data-order")})}),n.on(Y("start"),function(o){const c=H(this);i.resizeIdx=Cr(c.data("idx")),i.onResizeColStart(o)}),this.on("optionChange",o=>{switch(o){case"minHeight":case"maxHeight":this.updateHeight();break;case"filter":this.renderData();break}})}sortNodes(t,e){const n=this.colMap[t].comparator||mi;this.nodes.sort(function(i,o){let c=i.data[t],s=o.data[t];return Ge(c)&&(c=c.innerText),Ge(s)&&(s=s.innerText),e?n(c,s):n(s,c)}),this.renderData(),this.sortId=t,this.isAscending=e}updateWeights(){const{container:t,$headerRow:e}=this,{columns:r}=this.options,n=t.offsetWidth;if(!this.colWidthsInitialized&&n){for(let i=0,o=r.length;i<o;i++){const c=r[i];if(!c.weight){const s=e.find("th").get(i).offsetWidth;c.weight=100*s/n}}this.colWidthsInitialized=!0}this.applyColWeights()}applyColWeights(){const{container:t,$colgroup:e}=this,{columns:r}=this.options,n=t.offsetWidth;if(n<=0)return;let i=0;const o=r.length;for(let u=0;u<o;u++)i+=r[u].weight;const c=14;let s="",f=0,p=0;this.colWidths=[];for(let u=0;u<o;u++){const l=r[u];f+=l.weight;const h=f*n/i|0,d=Math.max(h-p,c);p=h,s+=`<col style="width:${d}px"></col>`,this.colWidths[u]=d}e.html(s),this.positionResizers()}positionResizers(){const{colWidths:t}=this,e=[],r=t.length-1;for(let n=0;n<r;n++)e[n]=(e[n-1]||0)+t[n];for(let n=0;n<r;n++)this.$resizers.eq(n).css("left",e[n]+"px")}renderData(){const{tableBody:t,nodes:e,fillerRow:r}=this;M(e,n=>n.detach()),M(e,n=>{this.filterNode(n)&&t.insertBefore(n.container,r)}),this.selectedNode&&!this.filterNode(this.selectedNode)&&this.selectNode(null),this.updateHeight()}filterNode(t){let{filter:e}=this.options;if(e){if(Xr(e))return e(t);if(li(e))return e.test(t.text());if(on(e)&&(e=yr(e),e))return lr(Sr(t.text()),Sr(e))}return!0}renderHeader(){const{c:t}=this;let e="",r="";M(this.options.columns,n=>{const i=si(n.title);n.sortable?e+=t(`<th class="sortable" data-id="${n.id}">${i}</th>`):e+=`<th>${i}</th>`,r+="<td></td>"}),this.$headerRow.html(e),this.$fillerRow.html(r)}renderResizers(){let t="";const e=this.options.columns.length-1;for(let r=0;r<e;r++)t+=this.c(`<div class="resizer" data-idx="${r}"></div>`);this.$container.append(t),this.$resizers=this.find(".resizer")}initTpl(){this.$container.html(this.c(Tn` <div class="header-container"> <table class="header"> <colgroup></colgroup> <tbody> <tr></tr> </tbody> </table> </div> <div class="data-container"> <table class="data"> <colgroup></colgroup> <tbody> <tr class="filler-row"></tr> </tbody> </table> </div> `))}}class gi{constructor(t,e,r={selectable:!1}){this.container=kr("tr"),this.selectable=!1,this.container.dataGridNode=this,this.$container=H(this.container),this.$container.addClass(t.c("node")),this.dataGrid=t,this.data=e,r.selectable&&(this.selectable=r.selectable),this.render()}text(){return this.$container.text()}detach(){this.$container.remove()}select(){this.$container.addClass(this.dataGrid.c("selected"))}deselect(){this.$container.rmClass(this.dataGrid.c("selected"))}render(){const{data:t,$container:e,container:r}=this,n=this.dataGrid.getOption("columns");e.html(""),M(n,i=>{const o=kr("td"),c=t[i.id];Zr(c)||(Ge(c)?o.appendChild(c):o.innerText=Ne(c)),r.appendChild(o)})}}function mi(a,t){if(a=Ne(a),t=Ne(t),J(a,"_")&&!J(t,"_"))return 1;if(J(t,"_")&&!J(a,"_"))return-1;const e=/^\d+|^\D+/;let r,n,i,o;for(;;){if(a){if(!t)return 1}else return t?-1:0;if(r=a.match(e)[0],n=t.match(e)[0],i=!isNaN(r),o=!isNaN(n),i&&!o)return-1;if(o&&!i)return 1;if(i&&o){const c=r-n;if(c)return c;if(r.length!==n.length)return!+r&&!+n?r.length-n.length:n.length-r.length}else if(r!==n)return r<n?-1:1;a=a.substring(r.length),t=t.substring(n.length)}}typeof module!="undefined"&&Zn(module,Lr);var Ve={exports:{}},tr={exports:{}};(function(a,t){var e=q;t=function(r){return e(r)==="[object Date]"},a.exports=t})(tr,tr.exports);var yi=tr.exports,er={exports:{}},rr={exports:{}};(function(a,t){t=function(e,r){var n="";if(r<1)return"";for(;r>0;)r&1&&(n+=e),r>>=1,e+=e;return n},a.exports=t})(rr,rr.exports);var wi=rr.exports;(function(a,t){var e=wi,r=V;t=function(n,i,o){n=r(n);var c=n.length;return o=o||" ",c<i&&(n=(e(o,i-c)+n).slice(-i)),n},a.exports=t})(er,er.exports);var Ei=er.exports;(function(a,t){var e=z,r=yi,n=V,i=Ei;t=function(u,l,h,d){arguments.length===1&&e(u)&&!f.test(u)&&(l=u,u=void 0),u=u||new Date,r(u)||(u=new Date(u)),l=n(t.masks[l]||l||t.masks.default);var x=l.slice(0,4);(x==="UTC:"||x==="GMT:")&&(l=l.slice(4),h=!0,x==="GMT:"&&(d=!0));var m=h?"getUTC":"get",v=u[m+"Date"](),y=u[m+"Day"](),w=u[m+"Month"](),E=u[m+"FullYear"](),S=u[m+"Hours"](),g=u[m+"Minutes"](),$=u[m+"Seconds"](),b=u[m+"Milliseconds"](),P=h?0:u.getTimezoneOffset(),D={d:v,dd:o(v),ddd:t.i18n.dayNames[y],dddd:t.i18n.dayNames[y+7],m:w+1,mm:o(w+1),mmm:t.i18n.monthNames[w],mmmm:t.i18n.monthNames[w+12],yy:n(E).slice(2),yyyy:E,h:S%12||12,hh:o(S%12||12),H:S,HH:o(S),M:g,MM:o(g),s:$,ss:o($),l:o(b,3),L:o(Math.round(b/10)),t:S<12?"a":"p",tt:S<12?"am":"pm",T:S<12?"A":"P",TT:S<12?"AM":"PM",Z:d?"GMT":h?"UTC":(n(u).match(s)||[""]).pop().replace(p,""),o:(P>0?"-":"+")+o(Math.floor(Math.abs(P)/60)*100+Math.abs(P)%60,4),S:["th","st","nd","rd"][v%10>3?0:(v%100-v%10!=10)*v%10]};return l.replace(c,function(A){return A in D?D[A]:A.slice(1,A.length-1)})};var o=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return i(n(u),l,"0")},c=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,s=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,f=/\d/,p=/[^-+\dA-Z]/g;t.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},t.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},a.exports=t})(Ve,Ve.exports);var bi=Ve.exports,$i=_(bi),nr={exports:{}},ir={exports:{}};(function(a,t){t=function(){},a.exports=t})(ir,ir.exports);var Si=ir.exports;(function(a,t){var e=X,r=Si;t=function(n,i){i=i||r;var o=document.createElement("textarea"),c=document.body;e(o.style,{fontSize:"12pt",border:"0",padding:"0",margin:"0",position:"absolute",left:"-9999px"}),o.value=n,c.appendChild(o),o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,n.length);try{document.execCommand("copy"),i()}catch(s){i(s)}finally{c.removeChild(o)}},a.exports=t})(nr,nr.exports);var _i=nr.exports,Ci=_(_i),zi=Object.defineProperty,Ai=Object.defineProperties,