UNPKG

quicktab

Version:

Multi IFrame tab plugin. operate IFrame like operating browser tabs

1 lines 108 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Quicktab=e()}(this,(function(){"use strict";function t(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}function e(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function n(e,n){return e.get(t(e,n))}function r(t,n,r){e(t,n),n.set(t,r)}function i(e,n,r){return e.set(t(e,n),r),r}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=function(t){return t&&t.Math===Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof o&&o)||s("object"==typeof o&&o)||function(){return this}()||Function("return this")(),l={},c=function(t){try{return!!t()}catch(t){return!0}},u=!c((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!c((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=h,p=Function.prototype.call,d=f?p.bind(p):function(){return p.apply(p,arguments)},y={},v={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b=m&&!v.call({1:2},1);y.f=b?function(t){var e=m(this,t);return!!e&&e.enumerable}:v;var g,S,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T=h,A=Function.prototype,x=A.call,E=T&&A.bind.bind(x,x),L=T?E:function(t){return function(){return x.apply(t,arguments)}},O=L,C=O({}.toString),k=O("".slice),P=function(t){return k(C(t),8,-1)},D=c,I=P,M=Object,j=L("".split),R=D((function(){return!M("z").propertyIsEnumerable(0)}))?function(t){return"String"===I(t)?j(t,""):M(t)}:M,B=function(t){return null==t},N=B,H=TypeError,K=function(t){if(N(t))throw new H("Can't call method on "+t);return t},_=R,W=K,U=function(t){return _(W(t))},F="object"==typeof document&&document.all,Y=void 0===F&&void 0!==F?function(t){return"function"==typeof t||t===F}:function(t){return"function"==typeof t},q=Y,G=function(t){return"object"==typeof t?null!==t:q(t)},z=a,$=Y,V=function(t,e){return arguments.length<2?(n=z[t],$(n)?n:void 0):z[t]&&z[t][e];var n},J=L({}.isPrototypeOf),Z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",X=a,Q=Z,tt=X.process,et=X.Deno,nt=tt&&tt.versions||et&&et.version,rt=nt&&nt.v8;rt&&(S=(g=rt.split("."))[0]>0&&g[0]<4?1:+(g[0]+g[1])),!S&&Q&&(!(g=Q.match(/Edge\/(\d+)/))||g[1]>=74)&&(g=Q.match(/Chrome\/(\d+)/))&&(S=+g[1]);var it=S,ot=it,st=c,at=a.String,lt=!!Object.getOwnPropertySymbols&&!st((function(){var t=Symbol("symbol detection");return!at(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),ct=lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ut=V,ht=Y,ft=J,pt=Object,dt=ct?function(t){return"symbol"==typeof t}:function(t){var e=ut("Symbol");return ht(e)&&ft(e.prototype,pt(t))},yt=String,vt=function(t){try{return yt(t)}catch(t){return"Object"}},mt=Y,bt=vt,gt=TypeError,St=function(t){if(mt(t))return t;throw new gt(bt(t)+" is not a function")},wt=St,Tt=B,At=function(t,e){var n=t[e];return Tt(n)?void 0:wt(n)},xt=d,Et=Y,Lt=G,Ot=TypeError,Ct={exports:{}},kt=a,Pt=Object.defineProperty,Dt=function(t,e){try{Pt(kt,t,{value:e,configurable:!0,writable:!0})}catch(n){kt[t]=e}return e},It=a,Mt=Dt,jt="__core-js_shared__",Rt=Ct.exports=It[jt]||Mt(jt,{});(Rt.versions||(Rt.versions=[])).push({version:"3.37.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Bt=Ct.exports,Nt=Bt,Ht=function(t,e){return Nt[t]||(Nt[t]=e||{})},Kt=K,_t=Object,Wt=function(t){return _t(Kt(t))},Ut=Wt,Ft=L({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Ft(Ut(t),e)},qt=L,Gt=0,zt=Math.random(),$t=qt(1..toString),Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+$t(++Gt+zt,36)},Jt=Ht,Zt=Yt,Xt=Vt,Qt=lt,te=ct,ee=a.Symbol,ne=Jt("wks"),re=te?ee.for||ee:ee&&ee.withoutSetter||Xt,ie=function(t){return Zt(ne,t)||(ne[t]=Qt&&Zt(ee,t)?ee[t]:re("Symbol."+t)),ne[t]},oe=d,se=G,ae=dt,le=At,ce=function(t,e){var n,r;if("string"===e&&Et(n=t.toString)&&!Lt(r=xt(n,t)))return r;if(Et(n=t.valueOf)&&!Lt(r=xt(n,t)))return r;if("string"!==e&&Et(n=t.toString)&&!Lt(r=xt(n,t)))return r;throw new Ot("Can't convert object to primitive value")},ue=TypeError,he=ie("toPrimitive"),fe=function(t,e){if(!se(t)||ae(t))return t;var n,r=le(t,he);if(r){if(void 0===e&&(e="default"),n=oe(r,t,e),!se(n)||ae(n))return n;throw new ue("Can't convert object to primitive value")}return void 0===e&&(e="number"),ce(t,e)},pe=dt,de=function(t){var e=fe(t,"string");return pe(e)?e:e+""},ye=G,ve=a.document,me=ye(ve)&&ye(ve.createElement),be=function(t){return me?ve.createElement(t):{}},ge=be,Se=!u&&!c((function(){return 7!==Object.defineProperty(ge("div"),"a",{get:function(){return 7}}).a})),we=u,Te=d,Ae=y,xe=w,Ee=U,Le=de,Oe=Yt,Ce=Se,ke=Object.getOwnPropertyDescriptor;l.f=we?ke:function(t,e){if(t=Ee(t),e=Le(e),Ce)try{return ke(t,e)}catch(t){}if(Oe(t,e))return xe(!Te(Ae.f,t,e),t[e])};var Pe={},De=u&&c((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ie=G,Me=String,je=TypeError,Re=function(t){if(Ie(t))return t;throw new je(Me(t)+" is not an object")},Be=u,Ne=Se,He=De,Ke=Re,_e=de,We=TypeError,Ue=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,Ye="enumerable",qe="configurable",Ge="writable";Pe.f=Be?He?function(t,e,n){if(Ke(t),e=_e(e),Ke(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Ge in n&&!n[Ge]){var r=Fe(t,e);r&&r[Ge]&&(t[e]=n.value,n={configurable:qe in n?n[qe]:r[qe],enumerable:Ye in n?n[Ye]:r[Ye],writable:!1})}return Ue(t,e,n)}:Ue:function(t,e,n){if(Ke(t),e=_e(e),Ke(n),Ne)try{return Ue(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new We("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var ze=Pe,$e=w,Ve=u?function(t,e,n){return ze.f(t,e,$e(1,n))}:function(t,e,n){return t[e]=n,t},Je={exports:{}},Ze=u,Xe=Yt,Qe=Function.prototype,tn=Ze&&Object.getOwnPropertyDescriptor,en=Xe(Qe,"name"),nn={EXISTS:en,PROPER:en&&"something"===function(){}.name,CONFIGURABLE:en&&(!Ze||Ze&&tn(Qe,"name").configurable)},rn=Y,on=Bt,sn=L(Function.toString);rn(on.inspectSource)||(on.inspectSource=function(t){return sn(t)});var an,ln,cn,un=on.inspectSource,hn=Y,fn=a.WeakMap,pn=hn(fn)&&/native code/.test(String(fn)),dn=Vt,yn=Ht("keys"),vn=function(t){return yn[t]||(yn[t]=dn(t))},mn={},bn=pn,gn=a,Sn=G,wn=Ve,Tn=Yt,An=Bt,xn=vn,En=mn,Ln="Object already initialized",On=gn.TypeError,Cn=gn.WeakMap;if(bn||An.state){var kn=An.state||(An.state=new Cn);kn.get=kn.get,kn.has=kn.has,kn.set=kn.set,an=function(t,e){if(kn.has(t))throw new On(Ln);return e.facade=t,kn.set(t,e),e},ln=function(t){return kn.get(t)||{}},cn=function(t){return kn.has(t)}}else{var Pn=xn("state");En[Pn]=!0,an=function(t,e){if(Tn(t,Pn))throw new On(Ln);return e.facade=t,wn(t,Pn,e),e},ln=function(t){return Tn(t,Pn)?t[Pn]:{}},cn=function(t){return Tn(t,Pn)}}var Dn={set:an,get:ln,has:cn,enforce:function(t){return cn(t)?ln(t):an(t,{})},getterFor:function(t){return function(e){var n;if(!Sn(e)||(n=ln(e)).type!==t)throw new On("Incompatible receiver, "+t+" required");return n}}},In=L,Mn=c,jn=Y,Rn=Yt,Bn=u,Nn=nn.CONFIGURABLE,Hn=un,Kn=Dn.enforce,_n=Dn.get,Wn=String,Un=Object.defineProperty,Fn=In("".slice),Yn=In("".replace),qn=In([].join),Gn=Bn&&!Mn((function(){return 8!==Un((function(){}),"length",{value:8}).length})),zn=String(String).split("String"),$n=Je.exports=function(t,e,n){"Symbol("===Fn(Wn(e),0,7)&&(e="["+Yn(Wn(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!Rn(t,"name")||Nn&&t.name!==e)&&(Bn?Un(t,"name",{value:e,configurable:!0}):t.name=e),Gn&&n&&Rn(n,"arity")&&t.length!==n.arity&&Un(t,"length",{value:n.arity});try{n&&Rn(n,"constructor")&&n.constructor?Bn&&Un(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Kn(t);return Rn(r,"source")||(r.source=qn(zn,"string"==typeof e?e:"")),t};Function.prototype.toString=$n((function(){return jn(this)&&_n(this).source||Hn(this)}),"toString");var Vn=Je.exports,Jn=Y,Zn=Pe,Xn=Vn,Qn=Dt,tr=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(Jn(n)&&Xn(n,o,r),r.global)i?t[e]=n:Qn(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Zn.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},er={},nr=Math.ceil,rr=Math.floor,ir=Math.trunc||function(t){var e=+t;return(e>0?rr:nr)(e)},or=function(t){var e=+t;return e!=e||0===e?0:ir(e)},sr=or,ar=Math.max,lr=Math.min,cr=or,ur=Math.min,hr=function(t){var e=cr(t);return e>0?ur(e,9007199254740991):0},fr=hr,pr=function(t){return fr(t.length)},dr=U,yr=function(t,e){var n=sr(t);return n<0?ar(n+e,0):lr(n,e)},vr=pr,mr=function(t){return function(e,n,r){var i=dr(e),o=vr(i);if(0===o)return!t&&-1;var s,a=yr(r,o);if(t&&n!=n){for(;o>a;)if((s=i[a++])!=s)return!0}else for(;o>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},br={includes:mr(!0),indexOf:mr(!1)},gr=Yt,Sr=U,wr=br.indexOf,Tr=mn,Ar=L([].push),xr=function(t,e){var n,r=Sr(t),i=0,o=[];for(n in r)!gr(Tr,n)&&gr(r,n)&&Ar(o,n);for(;e.length>i;)gr(r,n=e[i++])&&(~wr(o,n)||Ar(o,n));return o},Er=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lr=xr,Or=Er.concat("length","prototype");er.f=Object.getOwnPropertyNames||function(t){return Lr(t,Or)};var Cr={};Cr.f=Object.getOwnPropertySymbols;var kr=V,Pr=er,Dr=Cr,Ir=Re,Mr=L([].concat),jr=kr("Reflect","ownKeys")||function(t){var e=Pr.f(Ir(t)),n=Dr.f;return n?Mr(e,n(t)):e},Rr=Yt,Br=jr,Nr=l,Hr=Pe,Kr=c,_r=Y,Wr=/#|\.prototype\./,Ur=function(t,e){var n=Yr[Fr(t)];return n===Gr||n!==qr&&(_r(e)?Kr(e):!!e)},Fr=Ur.normalize=function(t){return String(t).replace(Wr,".").toLowerCase()},Yr=Ur.data={},qr=Ur.NATIVE="N",Gr=Ur.POLYFILL="P",zr=Ur,$r=a,Vr=l.f,Jr=Ve,Zr=tr,Xr=Dt,Qr=function(t,e,n){for(var r=Br(e),i=Hr.f,o=Nr.f,s=0;s<r.length;s++){var a=r[s];Rr(t,a)||n&&Rr(n,a)||i(t,a,o(e,a))}},ti=zr,ei=function(t,e){var n,r,i,o,s,a=t.target,l=t.global,c=t.stat;if(n=l?$r:c?$r[a]||Xr(a,{}):$r[a]&&$r[a].prototype)for(r in e){if(o=e[r],i=t.dontCallGetSet?(s=Vr(n,r))&&s.value:n[r],!ti(l?r:a+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof o==typeof i)continue;Qr(o,i)}(t.sham||i&&i.sham)&&Jr(o,"sham",!0),Zr(n,r,o,t)}},ni={},ri=xr,ii=Er,oi=Object.keys||function(t){return ri(t,ii)},si=u,ai=De,li=Pe,ci=Re,ui=U,hi=oi;ni.f=si&&!ai?Object.defineProperties:function(t,e){ci(t);for(var n,r=ui(e),i=hi(e),o=i.length,s=0;o>s;)li.f(t,n=i[s++],r[n]);return t};var fi,pi=V("document","documentElement"),di=Re,yi=ni,vi=Er,mi=mn,bi=pi,gi=be,Si="prototype",wi="script",Ti=vn("IE_PROTO"),Ai=function(){},xi=function(t){return"<"+wi+">"+t+"</"+wi+">"},Ei=function(t){t.write(xi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Li=function(){try{fi=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Li="undefined"!=typeof document?document.domain&&fi?Ei(fi):(e=gi("iframe"),n="java"+wi+":",e.style.display="none",bi.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(xi("document.F=Object")),t.close(),t.F):Ei(fi);for(var r=vi.length;r--;)delete Li[Si][vi[r]];return Li()};mi[Ti]=!0;var Oi=Object.create||function(t,e){var n;return null!==t?(Ai[Si]=di(t),n=new Ai,Ai[Si]=null,n[Ti]=t):n=Li(),void 0===e?n:yi.f(n,e)},Ci=ie,ki=Oi,Pi=Pe.f,Di=Ci("unscopables"),Ii=Array.prototype;void 0===Ii[Di]&&Pi(Ii,Di,{configurable:!0,value:ki(null)});var Mi=function(t){Ii[Di][t]=!0},ji=br.includes,Ri=Mi;ei({target:"Array",proto:!0,forced:c((function(){return!Array(1).includes()}))},{includes:function(t){return ji(this,t,arguments.length>1?arguments[1]:void 0)}}),Ri("includes");var Bi,Ni,Hi,Ki={},_i=!c((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wi=Yt,Ui=Y,Fi=Wt,Yi=_i,qi=vn("IE_PROTO"),Gi=Object,zi=Gi.prototype,$i=Yi?Gi.getPrototypeOf:function(t){var e=Fi(t);if(Wi(e,qi))return e[qi];var n=e.constructor;return Ui(n)&&e instanceof n?n.prototype:e instanceof Gi?zi:null},Vi=c,Ji=Y,Zi=G,Xi=$i,Qi=tr,to=ie("iterator"),eo=!1;[].keys&&("next"in(Hi=[].keys())?(Ni=Xi(Xi(Hi)))!==Object.prototype&&(Bi=Ni):eo=!0);var no=!Zi(Bi)||Vi((function(){var t={};return Bi[to].call(t)!==t}));no&&(Bi={}),Ji(Bi[to])||Qi(Bi,to,(function(){return this}));var ro={IteratorPrototype:Bi,BUGGY_SAFARI_ITERATORS:eo},io=Pe.f,oo=Yt,so=ie("toStringTag"),ao=function(t,e,n){t&&!n&&(t=t.prototype),t&&!oo(t,so)&&io(t,so,{configurable:!0,value:e})},lo=ro.IteratorPrototype,co=Oi,uo=w,ho=ao,fo=Ki,po=function(){return this},yo=L,vo=St,mo=function(t,e,n){try{return yo(vo(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},bo=G,go=function(t){return bo(t)||null===t},So=String,wo=TypeError,To=mo,Ao=G,xo=K,Eo=function(t){if(go(t))return t;throw new wo("Can't set "+So(t)+" as a prototype")},Lo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=To(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return xo(n),Eo(r),Ao(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Oo=ei,Co=d,ko=Y,Po=function(t,e,n,r){var i=e+" Iterator";return t.prototype=co(lo,{next:uo(+!r,n)}),ho(t,i,!1),fo[i]=po,t},Do=$i,Io=Lo,Mo=ao,jo=Ve,Ro=tr,Bo=Ki,No=nn.PROPER,Ho=nn.CONFIGURABLE,Ko=ro.IteratorPrototype,_o=ro.BUGGY_SAFARI_ITERATORS,Wo=ie("iterator"),Uo="keys",Fo="values",Yo="entries",qo=function(){return this},Go=U,zo=Mi,$o=Ki,Vo=Dn,Jo=Pe.f,Zo=function(t,e,n,r,i,o,s){Po(n,e,r);var a,l,c,u=function(t){if(t===i&&y)return y;if(!_o&&t&&t in p)return p[t];switch(t){case Uo:case Fo:case Yo:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",f=!1,p=t.prototype,d=p[Wo]||p["@@iterator"]||i&&p[i],y=!_o&&d||u(i),v="Array"===e&&p.entries||d;if(v&&(a=Do(v.call(new t)))!==Object.prototype&&a.next&&(Do(a)!==Ko&&(Io?Io(a,Ko):ko(a[Wo])||Ro(a,Wo,qo)),Mo(a,h,!0)),No&&i===Fo&&d&&d.name!==Fo&&(Ho?jo(p,"name",Fo):(f=!0,y=function(){return Co(d,this)})),i)if(l={values:u(Fo),keys:o?y:u(Uo),entries:u(Yo)},s)for(c in l)(_o||f||!(c in p))&&Ro(p,c,l[c]);else Oo({target:e,proto:!0,forced:_o||f},l);return p[Wo]!==y&&Ro(p,Wo,y,{name:i}),Bo[e]=y,l},Xo=function(t,e){return{value:t,done:e}},Qo=u,ts="Array Iterator",es=Vo.set,ns=Vo.getterFor(ts),rs=Zo(Array,"Array",(function(t,e){es(this,{type:ts,target:Go(t),index:0,kind:e})}),(function(){var t=ns(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=void 0,Xo(void 0,!0);switch(t.kind){case"keys":return Xo(n,!1);case"values":return Xo(e[n],!1)}return Xo([n,e[n]],!1)}),"values"),is=$o.Arguments=$o.Array;if(zo("keys"),zo("values"),zo("entries"),Qo&&"values"!==is.name)try{Jo(is,"name",{value:"values"})}catch(t){}var os=P,ss=Array.isArray||function(t){return"Array"===os(t)},as=u,ls=ss,cs=TypeError,us=Object.getOwnPropertyDescriptor,hs=as&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(ls(t)&&!us(t,"length").writable)throw new cs("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},fs=TypeError,ps=function(t){if(t>9007199254740991)throw fs("Maximum allowed index exceeded");return t},ds=Wt,ys=pr,vs=hs,ms=ps;ei({target:"Array",proto:!0,arity:1,forced:c((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=ds(this),n=ys(e),r=arguments.length;ms(n+r);for(var i=0;i<r;i++)e[n]=arguments[i],n++;return vs(e,n),n}});var bs=vt,gs=TypeError,Ss=function(t,e){if(!delete t[e])throw new gs("Cannot delete property "+bs(e)+" of "+bs(t))},ws={};ws[ie("toStringTag")]="z";var Ts="[object z]"===String(ws),As=Y,xs=P,Es=ie("toStringTag"),Ls=Object,Os="Arguments"===xs(function(){return arguments}()),Cs=Ts?xs:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Ls(t),Es))?n:Os?xs(e):"Object"===(r=xs(e))&&As(e.callee)?"Arguments":r},ks=String,Ps=function(t){if("Symbol"===Cs(t))throw new TypeError("Cannot convert a Symbol value to a string");return ks(t)},Ds=L([].slice),Is=Ds,Ms=Math.floor,js=function(t,e){var n=t.length;if(n<8)for(var r,i,o=1;o<n;){for(i=o,r=t[o];i&&e(t[i-1],r)>0;)t[i]=t[--i];i!==o++&&(t[i]=r)}else for(var s=Ms(n/2),a=js(Is(t,0,s),e),l=js(Is(t,s),e),c=a.length,u=l.length,h=0,f=0;h<c||f<u;)t[h+f]=h<c&&f<u?e(a[h],l[f])<=0?a[h++]:l[f++]:h<c?a[h++]:l[f++];return t},Rs=js,Bs=c,Ns=function(t,e){var n=[][t];return!!n&&Bs((function(){n.call(null,e||function(){return 1},1)}))},Hs=Z.match(/firefox\/(\d+)/i),Ks=!!Hs&&+Hs[1],_s=/MSIE|Trident/.test(Z),Ws=Z.match(/AppleWebKit\/(\d+)\./),Us=!!Ws&&+Ws[1],Fs=ei,Ys=L,qs=St,Gs=Wt,zs=pr,$s=Ss,Vs=Ps,Js=c,Zs=Rs,Xs=Ns,Qs=Ks,ta=_s,ea=it,na=Us,ra=[],ia=Ys(ra.sort),oa=Ys(ra.push),sa=Js((function(){ra.sort(void 0)})),aa=Js((function(){ra.sort(null)})),la=Xs("sort"),ca=!Js((function(){if(ea)return ea<70;if(!(Qs&&Qs>3)){if(ta)return!0;if(na)return na<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)ra.push({k:e+r,v:n})}for(ra.sort((function(t,e){return e.v-t.v})),r=0;r<ra.length;r++)e=ra[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));Fs({target:"Array",proto:!0,forced:sa||!aa||!la||!ca},{sort:function(t){void 0!==t&&qs(t);var e=Gs(this);if(ca)return void 0===t?ia(e):ia(e,t);var n,r,i=[],o=zs(e);for(r=0;r<o;r++)r in e&&oa(i,e[r]);for(Zs(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:Vs(e)>Vs(n)?1:-1}}(t)),n=zs(i),r=0;r<n;)e[r]=i[r++];for(;r<o;)$s(e,r++);return e}});var ua=Wt,ha=pr,fa=hs,pa=Ss,da=ps;ei({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=ua(this),n=ha(e),r=arguments.length;if(r){da(n+r);for(var i=n;i--;){var o=i+r;i in e?e[o]=e[i]:pa(e,o)}for(var s=0;s<r;s++)e[s]=arguments[s]}return fa(e,n+r)}});var ya=h,va=Function.prototype,ma=va.apply,ba=va.call,ga="object"==typeof Reflect&&Reflect.apply||(ya?ba.bind(ma):function(){return ba.apply(ma,arguments)}),Sa=ss,wa=Y,Ta=P,Aa=Ps,xa=L([].push),Ea=ei,La=V,Oa=ga,Ca=d,ka=L,Pa=c,Da=Y,Ia=dt,Ma=Ds,ja=function(t){if(wa(t))return t;if(Sa(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?xa(n,i):"number"!=typeof i&&"Number"!==Ta(i)&&"String"!==Ta(i)||xa(n,Aa(i))}var o=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(Sa(this))return e;for(var r=0;r<o;r++)if(n[r]===t)return e}}},Ra=lt,Ba=String,Na=La("JSON","stringify"),Ha=ka(/./.exec),Ka=ka("".charAt),_a=ka("".charCodeAt),Wa=ka("".replace),Ua=ka(1..toString),Fa=/[\uD800-\uDFFF]/g,Ya=/^[\uD800-\uDBFF]$/,qa=/^[\uDC00-\uDFFF]$/,Ga=!Ra||Pa((function(){var t=La("Symbol")("stringify detection");return"[null]"!==Na([t])||"{}"!==Na({a:t})||"{}"!==Na(Object(t))})),za=Pa((function(){return'"\\udf06\\ud834"'!==Na("\udf06\ud834")||'"\\udead"'!==Na("\udead")})),$a=function(t,e){var n=Ma(arguments),r=ja(e);if(Da(r)||void 0!==t&&!Ia(t))return n[1]=function(t,e){if(Da(r)&&(e=Ca(r,this,Ba(t),e)),!Ia(e))return e},Oa(Na,null,n)},Va=function(t,e,n){var r=Ka(n,e-1),i=Ka(n,e+1);return Ha(Ya,t)&&!Ha(qa,i)||Ha(qa,t)&&!Ha(Ya,r)?"\\u"+Ua(_a(t,0),16):t};Na&&Ea({target:"JSON",stat:!0,arity:3,forced:Ga||za},{stringify:function(t,e,n){var r=Ma(arguments),i=Oa(Ga?$a:Na,null,r);return za&&"string"==typeof i?Wa(i,Fa,Va):i}});var Ja=Y,Za=G,Xa=Lo,Qa=G,tl=P,el=ie("match"),nl=Re,rl=function(){var t=nl(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},il=d,ol=Yt,sl=J,al=rl,ll=RegExp.prototype,cl=c,ul=a.RegExp,hl=cl((function(){var t=ul("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),fl=hl||cl((function(){return!ul("a","y").sticky})),pl={BROKEN_CARET:hl||cl((function(){var t=ul("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:fl,UNSUPPORTED_Y:hl},dl=Pe.f,yl=Vn,vl=Pe,ml=function(t,e,n){return n.get&&yl(n.get,e,{getter:!0}),n.set&&yl(n.set,e,{setter:!0}),vl.f(t,e,n)},bl=V,gl=ml,Sl=u,wl=ie("species"),Tl=c,Al=a.RegExp,xl=Tl((function(){var t=Al(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})),El=c,Ll=a.RegExp,Ol=El((function(){var t=Ll("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Cl=u,kl=a,Pl=L,Dl=zr,Il=function(t,e,n){var r,i;return Xa&&Ja(r=e.constructor)&&r!==n&&Za(i=r.prototype)&&i!==n.prototype&&Xa(t,i),t},Ml=Ve,jl=Oi,Rl=er.f,Bl=J,Nl=function(t){var e;return Qa(t)&&(void 0!==(e=t[el])?!!e:"RegExp"===tl(t))},Hl=Ps,Kl=function(t){var e=t.flags;return void 0!==e||"flags"in ll||ol(t,"flags")||!sl(ll,t)?e:il(al,t)},_l=pl,Wl=function(t,e,n){n in t||dl(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})},Ul=tr,Fl=c,Yl=Yt,ql=Dn.enforce,Gl=function(t){var e=bl(t);Sl&&e&&!e[wl]&&gl(e,wl,{configurable:!0,get:function(){return this}})},zl=xl,$l=Ol,Vl=ie("match"),Jl=kl.RegExp,Zl=Jl.prototype,Xl=kl.SyntaxError,Ql=Pl(Zl.exec),tc=Pl("".charAt),ec=Pl("".replace),nc=Pl("".indexOf),rc=Pl("".slice),ic=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,oc=/a/g,sc=/a/g,ac=new Jl(oc)!==oc,lc=_l.MISSED_STICKY,cc=_l.UNSUPPORTED_Y,uc=Cl&&(!ac||lc||zl||$l||Fl((function(){return sc[Vl]=!1,Jl(oc)!==oc||Jl(sc)===sc||"/a/i"!==String(Jl(oc,"i"))})));if(Dl("RegExp",uc)){for(var hc=function(t,e){var n,r,i,o,s,a,l=Bl(Zl,this),c=Nl(t),u=void 0===e,h=[],f=t;if(!l&&c&&u&&t.constructor===hc)return t;if((c||Bl(Zl,t))&&(t=t.source,u&&(e=Kl(f))),t=void 0===t?"":Hl(t),e=void 0===e?"":Hl(e),f=t,zl&&"dotAll"in oc&&(r=!!e&&nc(e,"s")>-1)&&(e=ec(e,/s/g,"")),n=e,lc&&"sticky"in oc&&(i=!!e&&nc(e,"y")>-1)&&cc&&(e=ec(e,/y/g,"")),$l&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],s=jl(null),a=!1,l=!1,c=0,u="";r<=n;r++){if("\\"===(e=tc(t,r)))e+=tc(t,++r);else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:Ql(ic,rc(t,r+1))&&(r+=2,l=!0),i+=e,c++;continue;case">"===e&&l:if(""===u||Yl(s,u))throw new Xl("Invalid capture group name");s[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=e:i+=e}return[i,o]}(t),t=o[0],h=o[1]),s=Il(Jl(t,e),l?this:Zl,hc),(r||i||h.length)&&(a=ql(s),r&&(a.dotAll=!0,a.raw=hc(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=tc(t,r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+tc(t,++r);return i}(t),n)),i&&(a.sticky=!0),h.length&&(a.groups=h)),t!==f)try{Ml(s,"source",""===f?"(?:)":f)}catch(t){}return s},fc=Rl(Jl),pc=0;fc.length>pc;)Wl(hc,Jl,fc[pc++]);Zl.constructor=hc,hc.prototype=Zl,Ul(kl,"RegExp",hc,{constructor:!0})}Gl("RegExp");var dc=u,yc=xl,vc=P,mc=ml,bc=Dn.get,gc=RegExp.prototype,Sc=TypeError;dc&&yc&&mc(gc,"dotAll",{configurable:!0,get:function(){if(this!==gc){if("RegExp"===vc(this))return!!bc(this).dotAll;throw new Sc("Incompatible receiver, RegExp required")}}});var wc=d,Tc=L,Ac=Ps,xc=rl,Ec=pl,Lc=Oi,Oc=Dn.get,Cc=xl,kc=Ol,Pc=Ht("native-string-replace",String.prototype.replace),Dc=RegExp.prototype.exec,Ic=Dc,Mc=Tc("".charAt),jc=Tc("".indexOf),Rc=Tc("".replace),Bc=Tc("".slice),Nc=function(){var t=/a/,e=/b*/g;return wc(Dc,t,"a"),wc(Dc,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Hc=Ec.BROKEN_CARET,Kc=void 0!==/()??/.exec("")[1];(Nc||Kc||Hc||Cc||kc)&&(Ic=function(t){var e,n,r,i,o,s,a,l=this,c=Oc(l),u=Ac(t),h=c.raw;if(h)return h.lastIndex=l.lastIndex,e=wc(Ic,h,u),l.lastIndex=h.lastIndex,e;var f=c.groups,p=Hc&&l.sticky,d=wc(xc,l),y=l.source,v=0,m=u;if(p&&(d=Rc(d,"y",""),-1===jc(d,"g")&&(d+="g"),m=Bc(u,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Mc(u,l.lastIndex-1))&&(y="(?: "+y+")",m=" "+m,v++),n=new RegExp("^(?:"+y+")",d)),Kc&&(n=new RegExp("^"+y+"$(?!\\s)",d)),Nc&&(r=l.lastIndex),i=wc(Dc,p?n:l,m),p?i?(i.input=Bc(i.input,v),i[0]=Bc(i[0],v),i.index=l.lastIndex,l.lastIndex+=i[0].length):l.lastIndex=0:Nc&&i&&(l.lastIndex=l.global?i.index+i[0].length:r),Kc&&i&&i.length>1&&wc(Pc,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&f)for(i.groups=s=Lc(null),o=0;o<f.length;o++)s[(a=f[o])[0]]=i[a[1]];return i});var _c=Ic;ei({target:"RegExp",proto:!0,forced:/./.exec!==_c},{exec:_c});var Wc=d,Uc=tr,Fc=_c,Yc=c,qc=ie,Gc=Ve,zc=qc("species"),$c=RegExp.prototype,Vc=L,Jc=or,Zc=Ps,Xc=K,Qc=Vc("".charAt),tu=Vc("".charCodeAt),eu=Vc("".slice),nu=function(t){return function(e,n){var r,i,o=Zc(Xc(e)),s=Jc(n),a=o.length;return s<0||s>=a?t?"":void 0:(r=tu(o,s))<55296||r>56319||s+1===a||(i=tu(o,s+1))<56320||i>57343?t?Qc(o,s):r:t?eu(o,s,s+2):i-56320+(r-55296<<10)+65536}},ru={codeAt:nu(!1),charAt:nu(!0)}.charAt,iu=L,ou=Wt,su=Math.floor,au=iu("".charAt),lu=iu("".replace),cu=iu("".slice),uu=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hu=/\$([$&'`]|\d{1,2})/g,fu=d,pu=Re,du=Y,yu=P,vu=_c,mu=TypeError,bu=ga,gu=d,Su=L,wu=function(t,e,n,r){var i=qc(t),o=!Yc((function(){var e={};return e[i]=function(){return 7},7!==""[t](e)})),s=o&&!Yc((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[zc]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!o||!s||n){var a=/./[i],l=e(i,""[t],(function(t,e,n,r,i){var s=e.exec;return s===Fc||s===$c.exec?o&&!i?{done:!0,value:Wc(a,e,n,r)}:{done:!0,value:Wc(t,n,e,r)}:{done:!1}}));Uc(String.prototype,t,l[0]),Uc($c,i,l[1])}r&&Gc($c[i],"sham",!0)},Tu=c,Au=Re,xu=Y,Eu=B,Lu=or,Ou=hr,Cu=Ps,ku=K,Pu=function(t,e,n){return e+(n?ru(t,e).length:1)},Du=At,Iu=function(t,e,n,r,i,o){var s=n+t.length,a=r.length,l=hu;return void 0!==i&&(i=ou(i),l=uu),lu(o,l,(function(o,l){var c;switch(au(l,0)){case"$":return"$";case"&":return t;case"`":return cu(e,0,n);case"'":return cu(e,s);case"<":c=i[cu(l,1,-1)];break;default:var u=+l;if(0===u)return o;if(u>a){var h=su(u/10);return 0===h?o:h<=a?void 0===r[h-1]?au(l,1):r[h-1]+au(l,1):o}c=r[u-1]}return void 0===c?"":c}))},Mu=function(t,e){var n=t.exec;if(du(n)){var r=fu(n,t,e);return null!==r&&pu(r),r}if("RegExp"===yu(t))return fu(vu,t,e);throw new mu("RegExp#exec called on incompatible receiver")},ju=ie("replace"),Ru=Math.max,Bu=Math.min,Nu=Su([].concat),Hu=Su([].push),Ku=Su("".indexOf),_u=Su("".slice),Wu="$0"==="a".replace(/./,"$0"),Uu=!!/./[ju]&&""===/./[ju]("a","$0");wu("replace",(function(t,e,n){var r=Uu?"$":"$0";return[function(t,n){var r=ku(this),i=Eu(t)?void 0:Du(t,ju);return i?gu(i,t,r,n):gu(e,Cu(r),t,n)},function(t,i){var o=Au(this),s=Cu(t);if("string"==typeof i&&-1===Ku(i,r)&&-1===Ku(i,"$<")){var a=n(e,o,s,i);if(a.done)return a.value}var l=xu(i);l||(i=Cu(i));var c,u=o.global;u&&(c=o.unicode,o.lastIndex=0);for(var h,f=[];null!==(h=Mu(o,s))&&(Hu(f,h),u);){""===Cu(h[0])&&(o.lastIndex=Pu(s,Ou(o.lastIndex),c))}for(var p,d="",y=0,v=0;v<f.length;v++){for(var m,b=Cu((h=f[v])[0]),g=Ru(Bu(Lu(h.index),s.length),0),S=[],w=1;w<h.length;w++)Hu(S,void 0===(p=h[w])?p:String(p));var T=h.groups;if(l){var A=Nu([b],S,g,s);void 0!==T&&Hu(A,T),m=Cu(bu(i,void 0,A))}else m=Iu(b,s,g,S,T,i);g>=y&&(d+=_u(s,y,g)+m,y=g+b.length)}return d+_u(s,y)}]}),!!Tu((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Wu||Uu);var Fu="\t\n\v\f\r                 \u2028\u2029\ufeff",Yu=K,qu=Ps,Gu=Fu,zu=L("".replace),$u=RegExp("^["+Gu+"]+"),Vu=RegExp("(^|[^"+Gu+"])["+Gu+"]+$"),Ju=function(t){return function(e){var n=qu(Yu(e));return 1&t&&(n=zu(n,$u,"")),2&t&&(n=zu(n,Vu,"$1")),n}},Zu={start:Ju(1),end:Ju(2),trim:Ju(3)},Xu=nn.PROPER,Qu=c,th=Fu,eh=Zu.trim;ei({target:"String",proto:!0,forced:function(t){return Qu((function(){return!!th[t]()||"​…᠎"!=="​…᠎"[t]()||Xu&&th[t].name!==t}))}("trim")},{trim:function(){return eh(this)}});var nh=be("span").classList,rh=nh&&nh.constructor&&nh.constructor.prototype,ih=rh===Object.prototype?void 0:rh,oh=a,sh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ah=ih,lh=rs,ch=Ve,uh=ao,hh=ie("iterator"),fh=lh.values,ph=function(t,e){if(t){if(t[hh]!==fh)try{ch(t,hh,fh)}catch(e){t[hh]=fh}if(uh(t,e,!0),sh[e])for(var n in lh)if(t[n]!==lh[n])try{ch(t,n,lh[n])}catch(e){t[n]=lh[n]}}};for(var dh in sh)ph(oh[dh]&&oh[dh].prototype,dh);ph(ah,"DOMTokenList");var yh=function t(){var e=[].slice.call(arguments),n=!1;"boolean"==typeof e[0]&&(n=e.shift());var r=e[0];if(vh(r))throw new Error("extendee must be an object");for(var i=e.slice(1),o=i.length,s=0;s<o;s++){var a=i[s];for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var c=a[l];if(n&&(h=c,Array.isArray(h)||"[object Object]"=={}.toString.call(h))){var u=Array.isArray(c)?[]:{};r[l]=t(!0,Object.prototype.hasOwnProperty.call(r,l)&&!vh(r[l])?r[l]:u,c)}else r[l]=c}}var h;return r};function vh(t){return!t||"object"!=typeof t&&"function"!=typeof t}var mh='<svg viewBox="0 0 24 24"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /></svg>',bh='<svg viewBox="0 0 24 24"><path d="M7,10L12,15L17,10H7Z" /></svg>';var gh={Default:{id:"",minHeight:void 0,height:void 0,width:void 0,lang:void 0,cacheType:"local",responsive:{enable:!0,breakpoint:576,hide:["prev","refresh","next","fullscreen"]},defaultTabs:[],toolbar:{hide:!1,position:"top",prev:{enable:!0,icon:'<svg viewBox="0 0 24 24"><path d="M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z" /></svg>',order:10},refresh:{enable:!1,icon:'<svg viewBox="0 0 24 24"><path d="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z" /></svg>',order:20},tabWrapper:{order:30},next:{enable:!0,icon:'<svg viewBox="0 0 24 24"><path d="M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z" /></svg>',order:40},dropdown:{enable:!1,icon:bh,order:50,searchInput:{placeholder:"",prefixIcon:'<svg viewBox="0 0 24 24"><path d="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z" /></svg>'},openedTabs:{text:"",closeIcon:mh},recentlyClosedTabs:{text:"",showIcon:bh,hideIcon:'<svg viewBox="0 0 24 24"><path d="M7,15L12,10L17,15H7Z" /></svg>'},timeFormat:{year:"",months:"",days:"",hours:"",minutes:"",seconds:""},emptyText:""},fullscreen:{enable:!1,icon:'<svg viewBox="0 0 24 24"><path d="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z" /></svg>',order:60}},tab:{remember:!1,contextmenu:{enable:!1,close:{enable:!0,text:"",order:10,separator:!1},closeOthers:{enable:!0,text:"",order:20,separator:!1},closePrev:{enable:!0,text:"",order:30,separator:!1},closeNext:{enable:!0,text:"",order:40,separator:!1},closeAll:{enable:!0,text:"",order:50,separator:!1},fullscreen:{enable:!0,text:"",order:60,separator:!0},refresh:{enable:!0,text:"",order:70,separator:!1},centerActive:{enable:!0,text:"",order:80,separator:!1},newBlank:{enable:!0,text:"",order:90,separator:!1}},mouseWheelSwitch:{enable:!1,onlyScroll:!1},maxNum:-1,closeBtn:{enable:!0,showOnHover:!1,icon:mh},resizeCenterActive:!1,clickCenterActive:!1,doubleClick:{enable:!1,refresh:!0},dragSort:!1,timeout:{enable:!1,filter:t=>!0,text:"",second:3e3,template:""},loading:{enable:!0,filter:t=>!0,template:""}},onTabActivated:t=>!1,onTabLoaded:t=>!1,onTabTimeout:t=>!1,onTabFinally:t=>!1,onTabAll:()=>!1,onTabLoadingTransitionend:t=>!1,onTabClick:t=>!1,onTabDoubleClick:t=>!1,onTabClose:t=>!1,onTabCloseAll:()=>!1,onInit:()=>!1},TabDefault:{title:"新标签页",url:"",closable:!0}},Sh={tabUrl:"data-tab-url",container:"data-quicktab",contextmenu:"data-qt-contextmenu",dropdown:"data-qt-dropdown",iframeLoaded:"loaded",addTabTarget:"data-qt-target",addTabParentTarget:"data-qt-parent-target",addTabUrl:"data-qt-tab-url",addTabTitle:"data-qt-tab-title",addTabClosable:"data-qt-tab-closable",iframeTimeoutTimer:"timer",tabOptionDataKey:"qtab",tabOptionTimeKey:"timestamp"},wh={toolbar:"tab-bar",toolbarHide:"hide",toolbarPrevItem:"prev",toolbarRefreshItem:"refresh",toolbarTabWrapperItem:"scroll",toolbarNextItem:"next",toolbarDropdownItem:"dropdown",toolbarFullscreenItem:"fullscreen",tabBody:"tab-body",tabActive:"active",tabDisabled:"disabled",tabPaneActive:"active",showCloseBtnOnHover:"hover",listGroupCloseItem:"close",listGroupActive:"active",listGroupCloseOtherItem:"other",listGroupClosePrevItem:"prev",listGroupCloseNextItem:"next",listGroupCloseAllItem:"all",listGroupRefreshItem:"refresh",listGroupCenterActiveItem:"center-active",listGroupNewBlankItem:"new-blank",listGroupFullscreenItem:"fullscreen",overlays:"mask",dropdownBodyStickyHasIcon:"has-icon",contextmenuPEN:"pen-contextmenu",dropdownPEN:"pen-dropdown",dropdownActive:"active"},Th={container:["<div ".concat(Sh.container,'="%s" class="quicktab">'),"</div>"],toolbar:['<ul class="'.concat(wh.toolbar,' %s">'),"</ul>"],toolbarItem:'<li class="%s">%s</li>',tabBody:'<ul class="'.concat(wh.tabBody,'"></ul>'),tabBodyItem:"<li ".concat(Sh.tabUrl,"=%s></li>"),maskWrapper:"<div ".concat(Sh.tabUrl,'=%s class="').concat(wh.overlays,'">%s</div>'),loading:'<div class="mask-inner"><div class="quicktab-loaders"><div></div><div></div><div></div></div></div>',timeout:'<div style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;background-color:#f8f9fa;"><span style="color: rgba(33, 37, 41, 0.75);">%s</span></div>',tab:'<button %s class="%s" '.concat(Sh.tabUrl,"=%s ><span>%s</span>%s</button>"),listGroup:["<ul ".concat(Sh.contextmenu,'="%s" class="quicktab-list-group">'),"</ul>"],listGroupItem:'<li class="%s"><span>%s</span></li>',listGroupSeparatorItem:'<li class="separator"></li>',dropdown:["<div ".concat(Sh.dropdown,'="%s" class="quicktab-dropdown">'),"</div>"],dropdownHeader:'<div class="header">%s<input type="text" autocomplete="off" placeholder="%s"></div>',dropdownBody:['<div class="body">',"</div>"],dropdownBodySticky:'<div class="sticky %s"><div class="subheader"><div class="subheader-text">%s</div>%s</div></div>',dropdownBodySection:'<ul class="section"></ul>',iconWrapper:'<div class="icon-wrapper" %s>%s</div>',dropdownEmpty:'<div class="empty">%s</div>',sectionItem:'<li class="%s">\n <div class="details">\n <p class="title">%s</p>\n <p><span class="url">%s</span><span class="dot">·</span>%s </p>\n </div>\n %s\n </li>'},Ah={formatTimeoutMessage:()=>"请求超时",formatContextmenuClose:()=>"关闭当前",formatContextmenuCloseOthers:()=>"关闭其它",formatContextmenuClosePrev:()=>"关闭左侧",formatContextmenuCloseNext:()=>"关闭右侧",formatContextmenuCloseAll:()=>"关闭所有",formatContextmenuFullscreen:()=>"全屏显示",formatContextmenuRefresh:()=>"重新加载",formatContextmenuCenterActive:()=>"回到当前",formatContextmenuNewBlank:()=>"新窗口打开",formatSearchInputPlaceholder:()=>"搜索标签页",formatOpenedTabs:()=>"打开的标签页",formatRecentlyClosedTabs:()=>"最近关闭的标签页",formatSearchNoResults:()=>"找不到任何结果",formatTimeYear:()=>"年前",formatTimeMonths:()=>"个月前",formatTimeDays:()=>"天前",formatTimeHours:()=>"小时前",formatTimeMinutes:()=>"分钟前",formatTimeSeconds:()=>"秒前"};var xh={VERSION:"0.0.1",DEFAULTS:yh(!0,{},gh.Default,Ah),OPTIONS:gh,DATAKEYS:Sh,CLASSES:wh,HTML:Th,SELECTOR_DATA_TOGGLE:'[data-qt-toggle="quicktab"]',LANGS:{zh:Ah,"zh-CN":Ah},NAMESPACE:"Quicktab"},Eh=St,Lh=Wt,Oh=R,Ch=pr,kh=TypeError,Ph="Reduce of empty array with no initial value",Dh=function(t){return function(e,n,r,i){var o=Lh(e),s=Oh(o),a=Ch(o);if(Eh(n),0===a&&r<2)throw new kh(Ph);var l=t?a-1:0,c=t?-1:1;if(r<2)for(;;){if(l in s){i=s[l],l+=c;break}if(l+=c,t?l<0:a<=l)throw new kh(Ph)}for(;t?l>=0:a>l;l+=c)l in s&&(i=n(i,s[l],l,o));return i}},Ih={left:Dh(!1),right:Dh(!0)},Mh="process"===P(a.process),jh=Ih.left;ei({target:"Array",proto:!0,forced:!Mh&&it>79&&it<83||!Ns("reduce")},{reduce:function(t){var e=arguments.length;return jh(this,t,e,e>1?arguments[1]:void 0)}});var Rh=L,Bh=Set.prototype,Nh={Set:Set,add:Rh(Bh.add),has:Rh(Bh.has),remove:Rh(Bh.delete),proto:Bh},Hh=Nh.has,Kh=function(t){return Hh(t),t},_h=d,Wh=function(t,e,n){for(var r,i,o=n?t:t.iterator,s=t.next;!(r=_h(s,o)).done;)if(void 0!==(i=e(r.value)))return i},Uh=L,Fh=Wh,Yh=Nh.Set,qh=Nh.proto,Gh=Uh(qh.forEach),zh=Uh(qh.keys),$h=zh(new Yh).next,Vh=function(t,e,n){return n?Fh({iterator:zh(t),next:$h},e):Gh(t,e)},Jh=Vh,Zh=Nh.Set,Xh=Nh.add,Qh=function(t){var e=new Zh;return Jh(t,(function(t){Xh(e,t)})),e},tf=mo(Nh.proto,"size","get")||function(t){return t.size},ef=St,nf=Re,rf=d,of=or,sf=function(t){return{iterator:t,next:t.next,done:!1}},af="Invalid size",lf=RangeError,cf=TypeError,uf=Math.max,hf=function(t,e){this.set=t,this.size=uf(e,0),this.has=ef(t.has),this.keys=ef(t.keys)};hf.prototype={getIterator:function(){return sf(nf(rf(this.keys,this.set)))},includes:function(t){return rf(this.has,this.set,t)}};var ff=function(t){nf(t);var e=+t.size;if(e!=e)throw new cf(af);var n=of(e);if(n<0)throw new lf(af);return new hf(t,n)},pf=Kh,df=Qh,yf=tf,vf=ff,mf=Vh,bf=Wh,gf=Nh.has,Sf=Nh.remove,wf=V,Tf=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},Af=function(t){var e=wf("Set");try{(new e)[t](Tf(0));try{return(new e)[t](Tf(-1)),!1}catch(t){return!0}}catch(t){return!1}},xf=function(t){var e=pf(this),n=vf(t),r=df(e);return yf(e)<=n.size?mf(e,(function(t){n.includes(t)&&Sf(r,t)})):bf(n.getIterator(),(function(t){gf(e,t)&&Sf(r,t)})),r};ei({target:"Set",proto:!0,real:!0,forced:!Af("difference")},{difference:xf});var Ef=Kh,Lf=tf,Of=ff,Cf=Vh,kf=Wh,Pf=Nh.Set,Df=Nh.add,If=Nh.has,Mf=c,jf=function(t){var e=Ef(this),n=Of(t),r=new Pf;return Lf(e)>n.size?kf(n.getIterator(),(function(t){If(e,t)&&Df(r,t)})):Cf(e,(function(t){n.includes(t)&&Df(r,t)})),r};ei({target:"Set",proto:!0,real:!0,forced:!Af("intersection")||Mf((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:jf});var Rf=d,Bf=Re,Nf=At,Hf=function(t,e,n){var r,i;Bf(t);try{if(!(r=Nf(t,"return"))){if("throw"===e)throw n;return n}r=Rf(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;return Bf(r),n},Kf=Kh,_f=Nh.has,Wf=tf,Uf=ff,Ff=Vh,Yf=Wh,qf=Hf,Gf=function(t){var e=Kf(this),n=Uf(t);if(Wf(e)<=n.size)return!1!==Ff(e,(function(t){if(n.includes(t))return!1}),!0);var r=n.getIterator();return!1!==Yf(r,(function(t){if(_f(e,t))return qf(r,"normal",!1)}))};ei({target:"Set",proto:!0,real:!0,forced:!Af("isDisjointFrom")},{isDisjointFrom:Gf});var zf=Kh,$f=tf,Vf=Vh,Jf=ff,Zf=function(t){var e=zf(this),n=Jf(t);return!($f(e)>n.size)&&!1!==Vf(e,(function(t){if(!n.includes(t))return!1}),!0)};ei({target:"Set",proto:!0,real:!0,forced:!Af("isSubsetOf")},{isSubsetOf:Zf});var Xf=Kh,Qf=Nh.has,tp=tf,ep=ff,np=Wh,rp=Hf,ip=function(t){var e=Xf(this),n=ep(t);if(tp(e)<n.size)return!1;var r=n.getIterator();return!1!==np(r,(function(t){if(!Qf(e,t))return rp(r,"normal",!1)}))};ei({target:"Set",proto:!0,real:!0,forced:!Af("isSupersetOf")},{isSupersetOf:ip});var op=Kh,sp=Qh,ap=ff,lp=Wh,cp=Nh.add,up=Nh.has,hp=Nh.remove,fp=function(t){var e=op(this),n=ap(t).getIterator(),r=sp(e);return lp(n,(function(t){up(e,t)?hp(r,t):cp(r,t)})),r};ei({target:"Set",proto:!0,real:!0,forced:!Af("symmetricDifference")},{symmetricDifference:fp});var pp,dp,yp,vp,mp=Kh,bp=Nh.add,gp=Qh,Sp=ff,wp=Wh,Tp=function(t){var e=mp(this),n=Sp(t).getIterator(),r=gp(e);return wp(n,(function(t){bp(r,t)})),r};function Ap(t){let e=typeof t;return"object"===e&&(e=(t&&Object.getPrototypeOf(t)?.constructor?.name)??"null"),"string"===e?`"${t}"`:"number"===e||"bigint"===e||"boolean"===e?`${t}`:e}function xp(t,e,n,r,i){const o=i&&"input"in i?i.input:n.value,s=i?.expected??t.expects,a=i?.received??Ap(o),l={kind:t.kind,type:t.type,input:o,expected:s,received:a,message:`Invalid ${e}: ${s?`Expected ${s} but r`:"R"}eceived ${a}`,requirement:t.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly,skipPipe:r.skipPipe},c="schema"===t.kind,u=t.message??(h=t.reference,f=l.lang,vp?.get(h)?.get(f))??(c?function(t){return yp?.get(t)}(l.lang):null)??r.message??function(t){return dp?.get(t)}(l.lang);var h,f;u&&(l.message="function"==typeof u?u(l):u),c&&(n.typed=!1),n.issues?n.issues.push(l):n.issues=[l]}function Ep(t){if(t.path){let e="";for(const n of t.path){if(!("key"in n)||"string"!=typeof n.key&&"number"!=typeof n.key)return null;e+=e?`.${n.key}`:n.key}return e}return null}function Lp(t,e){return{kind:"validation",type:"check",reference:Lp,async:!1,expects:null,requirement:t,message:e,_run(t,e){return t.typed&&!this.requirement(t.value)&&xp(this,"input",t,e),t}}}function Op(t,e){return{kind:"validation",type:"min_length",reference:Op,async:!1,expects:`>=${t}`,requirement:t,message:e,_run(t,e){return t.typed&&t.value.length<this.requirement&&xp(this,"length",t,e,{received:`${t.value.length}`}),t}}}function Cp(t,e){return{kind:"schema",type:"array",reference:Cp,expects:"Array",async:!1,item:t,message:e,_run(t,e){const n=t.value;if(Array.isArray(n)){t.typed=!0,t.value=[];for(let r=0;r<n.length;r++){const i=n[r],o=this.item._run({typed:!1,value:i},e);if(o.issues){const s={type:"array",origin:"value",input:n,key:r,value:i};for(const e of o.issues)e.path?e.path.unshift(s):e.path=[s],t.issues?.push(e);if(t.issues||(t.issues=o.issues),e.abortEarly){t.typed=!1;break}}o.typed||(t.typed=!1),t.value.push(o.value)}}else xp(this,"type",t,e);return t}}}function kp(t){return{kind:"schema",type:"boolean",reference:kp,expects:"boolean",async:!1,message:t,_run(t,e){return"boolean"==typeof t.value?t.typed=!0:xp(this,"type",t,e),t}}}function Pp(t){return{kind:"schema",type:"number",reference:Pp,expects:"number",async:!1,message:t,_run(t,e){return"number"!=typeof t.value||isNaN(t.value)?xp(this,"type",t,e):t.typed=!0,t}}}function Dp(t,e){return{kind:"schema",type:"object",reference:Dp,expects:"Object",async:!1,entries:t,message:e,_run(t,e){const n=t.value;if(n&&"object"==typeof n){t.typed=!0,t.value={};for(const r in this.entries){const i=n[r],o=this.entries[r]._run({typed:!1,value:i},e);if(o.issues){const s={type:"object",origin:"value",input:n,key:r,value:i};for(const e of o.issues)e.path?e.path.unshift(s):e.path=[s],t.issues?.push(e);if(t.issues||(t.issues=o.issues),e.abortEarly){t.typed=!1;break}}o.typed||(t.typed=!1),(void 0!==o.value||r in n)&&(t.value[r]=o.value)}}else xp(this,"type",t,e);return t}}}function Ip(t,...e){const n={kind:"schema",type:"optional",reference:Ip,expects:`${t.expects} | undefined`,async:!1,wrapped:t,_run(t,e){return void 0===t.value&&("default"in this&&(t.value=function(t,e,n){return"function"==typeof t.default?t.default(e,n):t.default}(this,t,e)),void 0===t.value)?(t.typed=!0,t):this.wrapped._run(t,e)}};return 0 in e&&(n.default=e[0]),n}function Mp(t,e){return{kind:"schema",type:"picklist",reference:Mp,expects:t.map(Ap).join(" | ")||"never",async:!1,options:t,message:e,_run(t,e){return this.options.includes(t.value)?t.typed=!0:xp(this,"type",t,e),t}}}function jp(t){return{kind:"schema",type:"string",reference:jp,expects:"string",async:!1,message:t,_run(t,e){return"string"==typeof t.value?t.typed=!0:xp(this,"type",t,e),t}}}function Rp(...t){return{...t[0],pipe:t,_run(e,n){for(let r=0;r<t.length;r++){e=t[r]._run(e,n);const i=t[r+1];if(n.skipPipe||e.issues&&(n.abortEarly||n.abortPipeEarly||"schema"===i?.kind||"transformation"===i?.kind)){e.typed=!1;break}}return e}}}function Bp(t,e,n){const r=t._run({typed:!1,value:e},function(t){return{lang:t?.lang??pp?.lang,message:t?.message,abortEarly:t?.abortEarly??pp?.abortEarly,abortPipeEarly:t?.abortPipeEarly??pp?.abortPipeEarly,skipPipe:t?.skipPipe}}(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}ei({target:"Set",proto:!0,real:!0,forced:!Af("union")},{union:Tp});var Np={createNode(t){const e=document.createElement("div");return e.innerHTML=t.trim(),e.firstElementChild},isSameOriginIframe(t){try{return t.contentWindow.location.origin===window.location.origin}catch(t){return!1}},setProperty(t,e,n,r){if(!Array.isArray(e))return void console.error("Invalid arguments");const i=!(t instanceof Element);if(i){const e=document.createElement("div");e.innerHTML=t,t=e}return t.querySelectorAll(e).forEach((t=>{t.style.setProperty(n,r)})),i?t.innerHTML:t},sprintf(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=!0,o=0;const s=t.replace(/%s/g,(()=>{const t=n[o++];return void 0===t?(i=!1,""):t}));return i?s:""},isStr:t=>"[object String]"===Object.prototype.toString.call(t),arrUnique(t,e){let n=[];return t.reduce((function(t,r){return-1===n.indexOf(r[e])&&(n.push(r[e]),t.push(r)),t}),[])},ready(t){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()},handleClickAndDoubleClick(t,e,n){let r=0,i=null;return n=Object.assign({delay:200,clickPreventDefault:!1,clickStopPropagation:!1,dbClickPreventDefault:!1,dbClickStopPropagation:!1},"object"==typeof n&&n),function(o){"function"!=typeof e?(n.clickPreventDefault&&o.preventDefault(),n.clickStopPropagation&&o.stopPropagation(),"function"==typeof t&&t.call(this,o)):(r++,1===r?(n.clickPreventDefault&&o.preventDefault(),n.clickStopPropagation&&o.stopPropagation(),i=setTimeout((()=>{"function"==typeof t&&t.call(this,o),r=0}),n.delay)):(n.dbClickPreventDefault&&o.preventDefault(),n.dbClickStopPropagation&&o.stopPropagation(),clearTimeout(i),"function"==typeof e&&e.call(this,o),r=0))}},isJSON(t){try{return JSON.parse(t),!0}catch(t){return!1}},parseAttributeValue(t){try{return JSON.parse(t)}catch(e){const n=window[t];return"function"==typeof n?n:t}},stringTypeOptions(t){return["minHeight","height","width"].forEach((e=>{this.updateObjDataByKey(t,e,this.getObjDataByKey(t,e).toString())})),t},parseDataOptions(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};for(const i in e){const o=n+i;let s=t.getAttribute(o),a=this.parseAttributeValue(s);"[object Object]"!==Object.prototype.toString.call(e[i])?null!==s&&(r[i]=a):(this.parseDataOptions(t,e[i],o+"-",r[i]={}),0===Object.keys(r[i]).length&&delete r[i])}return r},hasDuplicateValues(t,e){const n=new Set;for(const r of t){const t=r[e];if(n.has(t))return!0;n.add(t)}return!1},onResize(t,e,n){n=Object.assign({immediate:!1,type:"both"},"object"==typeof n&&n);const r=new ResizeObserver((r=>{r.forEach((r=>{if(!1===n.immediate&&!r.target.firstResize)return void(r.target.firstResize=!0);const i=r.contentRect.width,o=r.contentRect.height,s=r.target.__resizeObserverLastWidth||0,a=r.target.__resizeObserverLastHeight||0;r.target.__resizeObserverLastWidth=i,r.target.__resizeObserverLastHeight=o,i!==s&&o===a&&"width"===n.type&&e.call(t,r),o!==a&&i===s&&"height"===n.type&&e.call(t,r),"both"===n.type&&e.call(t,r)}))}));return r.observe(t),r},getEnabledAndSortedOpsKey:(t,e)=>Object.keys(t).filter((n=>Object.keys(e).includes(n)&&!1!==t[n].enable)).sort(((e,n)=>t[e].order-t[n].order)),isDOMElement:t=>t instanceof Element||t instanceof Document,prevAll(t){const e=[];let n=t.previousElementSibling;for(;n;)e.push(n),n=n.previousElementSibling;return e},nextAll(t){const e=[];let n=t.nextElementSibling;for(;n;)e.push(n),n=n.nextElementSibling;return e},index(t){let e=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)e++;return e},animate(t,e){{let n=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),e.style.setProperty("transition","none"),e.style.setProperty("transform","translate3d(".concat(t.left-n.left,"px,").concat(t.top-n.top,"px,0)")),e.offsetWidth,e.style.setProperty("transition","transform ".concat(300,"ms")),e.style.setProperty("transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=setTimeout((function(){e.style.setProperty("transition",""),e.style.setProperty("transform",""),e.animated=!1}),300)}},timeAgo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{second:"秒前",minutes:"分钟前",hours:"小时前",days:"天前",months:"月前",years:"年前"};const n=Math.floor((Date.now()-Math.floor(t))/1e3),r=3600,i=86400,o=30*i,s=365*i;if(n<60)return"".concat(n," ").concat(e.second);if(n<r){const t=Math.floor(n/60);return"".concat(t," ").concat(e.minutes)}if(n<i){const t=Math.floor(n/r);return"".concat(t," ").concat(e.hours)}if(n<o){const t=Math.floor(n/i);return"".concat(t," ").concat(e.days)}if(n<s){const t=Math.floor(n/o);return"".concat(t," ").concat(e.months)}{const t=Math.floor(n/s);return"".concat(t," ").concat(e.years)}},hasDecimal:t=>!Number.isInteger(t),notify(t){console[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"]("Quicktab:".concat(t))},validate(t,e){const n=Bp(t,e,{abortEarly:!0,lang:"zh-CN"});if(n.success)return!0;{const t=function(t){const e={};for(const n of t)if(n.path){const t=Ep(n);t?(e.nested||(e.nested={}),e.nested[t]?e.nested[t].push(n.message):e.nested[t]=[n.message]):e.other?e.other.push(n.message):e.other=[n.message]}else e.root?e.root.push(n.message):e.root=[n.message];return e}(n.issues).nested;let e="";return Object.keys(t).forEach((n=>{e+="option: [".concat(n,"] ").concat(t[n])})),e}}};const Hp=Dp({title:Ip(jp()),url:Rp(jp(),Op(1)),closable:Ip(kp())}),Kp=function t(e,n){return{kind:"schema",typ