LinuxConfig/LarkShell/PC_Card/7195161935556460547/app/__dev__/webview.js

2 lines
684 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(){"use strict";var Qo="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e,t){return e(t={exports:{}},t.exports),t.exports}var t=e(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),n=Object.freeze({default:t,__moduleExports:t}),r={}.hasOwnProperty,i=function(e,t){return r.call(e,t)},o=Object.freeze({default:i,__moduleExports:i}),a=function(e){try{return!!e()}catch(e){return!0}},s=Object.freeze({default:a,__moduleExports:a}),$e=s&&a||s,l=!$e(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),c=Object.freeze({default:l,__moduleExports:l}),u=e(function(e){var t=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=t)}),d=u.version,h=Object.freeze({default:u,__moduleExports:u,version:d}),p=function(e){return"object"==typeof e?null!==e:"function"==typeof e},f=Object.freeze({default:p,__moduleExports:p}),Ue=f&&p||f,v=function(e){if(!Ue(e))throw TypeError(e+" is not an object!");return e},g=Object.freeze({default:v,__moduleExports:v}),Ye=n&&t||n,y=Ye.document,m=Ue(y)&&Ue(y.createElement),_=function(e){return m?y.createElement(e):{}},A=Object.freeze({default:_,__moduleExports:_}),qe=c&&l||c,b=A&&_||A,w=!qe&&!$e(function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a}),k=Object.freeze({default:w,__moduleExports:w}),C=function(e,t){if(!Ue(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Ue(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Ue(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Ue(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},E=Object.freeze({default:C,__moduleExports:C}),x=g&&v||g,S=k&&w||k,Je=E&&C||E,P=Object.defineProperty,T=qe?Object.defineProperty:function(e,t,n){if(x(e),t=Je(t,!0),x(n),S)try{return P(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e},O={f:T},D=Object.freeze({default:O,__moduleExports:O,f:T}),I=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=Object.freeze({default:I,__moduleExports:I}),Ge=D&&O||D,Xe=N&&I||N,F=qe?function(e,t,n){return Ge.f(e,t,Xe(1,n))}:function(e,t,n){return e[t]=n,e},M=Object.freeze({default:F,__moduleExports:F}),R=0,L=Math.random(),B=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++R+L).toString(36))},j=Object.freeze({default:B,__moduleExports:B}),Ke=M&&F||M,Ze=o&&i||o,et=j&&B||j,z=h&&u||h,H=e(function(e){var o=et("src"),t="toString",n=Function[t],a=(""+n).split(t);z.inspectSource=function(e){return n.call(e)},(e.exports=function(e,t,n,r){var i="function"==typeof n;i&&(Ze(n,"name")||Ke(n,"name",t)),e[t]!==n&&(i&&(Ze(n,o)||Ke(n,o,e[t]?""+e[t]:a.join(String(t)))),e===Ye?e[t]=n:r?e[t]?e[t]=n:Ke(e,t,n):(delete e[t],Ke(e,t,n)))})(Function.prototype,t,function(){return"function"==typeof this&&this[o]||n.call(this)})}),V=Object.freeze({default:H,__moduleExports:H}),W=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},Q=Object.freeze({default:W,__moduleExports:W}),$=Q&&W||Q,U=function(r,i,e){if($(r),void 0===i)return r;switch(e){case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}},Y=Object.freeze({default:U,__moduleExports:U}),q=V&&H||V,nt=Y&&U||Y,J="prototype",G=function(e,t,n){var r,i,o,a,s=e&G.F,l=e&G.G,c=e&G.S,u=e&G.P,d=e&G.B,h=l?Ye:c?Ye[t]||(Ye[t]={}):(Ye[t]||{})[J],p=l?z:z[t]||(z[t]={}),f=p[J]||(p[J]={});for(r in l&&(n=t),n)o=((i=!s&&h&&void 0!==h[r])?h:n)[r],a=d&&i?nt(o,Ye):u&&"function"==typeof o?nt(Function.call,o):o,h&&q(h,r,o,e&G.U),p[r]!=o&&Ke(p,r,a),u&&f[r]!=o&&(f[r]=o)};Ye.core=z,G.F=1,G.G=2,G.S=4,G.P=8,G.B=16,G.W=32,G.U=64,G.R=128;var X=G,K=Object.freeze({default:X,__moduleExports:X}),Z=e(function(e){var n=et("meta"),t=Ge.f,r=0,i=Object.isExtensible||function(){return!0},o=!$e(function(){return i(Object.preventExtensions({}))}),a=function(e){t(e,n,{value:{i:"O"+ ++r,w:{}}})},s=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!Ue(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ze(e,n)){if(!i(e))return"F";if(!t)return"E";a(e)}return e[n].i},getWeak:function(e,t){if(!Ze(e,n)){if(!i(e))return!0;if(!t)return!1;a(e)}return e[n].w},onFreeze:function(e){return o&&s.NEED&&i(e)&&!Ze(e,n)&&a(e),e}}}),ee=Z.KEY,te=Z.NEED,ne=Z.fastKey,re=Z.getWeak,ie=Z.onFreeze,oe=Object.freeze({default:Z,__moduleExports:Z,KEY:ee,NEED:te,fastKey:ne,getWeak:re,onFreeze:ie}),ae="__core-js_shared__",se=Ye[ae]||(Ye[ae]={}),le=function(e){return se[e]||(se[e]={})},ce=Object.freeze({default:le,__moduleExports:le}),ue=ce&&le||ce,de=e(function(e){var t=ue("wks"),n=Ye.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:et)("Symbol."+e))}).store=t}),he=Object.freeze({default:de,__moduleExports:de}),rt=he&&de||he,pe=Ge.f,fe=rt("toStringTag"),ve=function(e,t,n){e&&!Ze(e=n?e:e.prototype,fe)&&pe(e,fe,{configurable:!0,value:t})},ge=Object.freeze({default:ve,__moduleExports:ve}),ye=rt,me={f:ye},_e=Object.freeze({default:me,__moduleExports:me,f:ye}),Ae=Object.freeze({default:!1,__moduleExports:!1}),it=Ae,be=_e&&me||_e,we=Ge.f,ke=function(e){var t=z.Symbol||(z.Symbol=it?{}:Ye.Symbol||{});"_"==e.charAt(0)||e in t||we(t,e,{value:be.f(e)})},Ce=Object.freeze({default:ke,__moduleExports:ke}),Ee={}.toString,xe=function(e){return Ee.call(e).slice(8,-1)},Se=Object.freeze({default:xe,__moduleExports:xe}),Pe=Se&&xe||Se,Te=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==Pe(e)?e.split(""):Object(e)},Oe=Object.freeze({default:Te,__moduleExports:Te}),De=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Ie=Object.freeze({default:De,__moduleExports:De}),Ne=Oe&&Te||Oe,Fe=Ie&&De||Ie,Me=function(e){return Ne(Fe(e))},Re=Object.freeze({default:Me,__moduleExports:Me}),Le=Math.ceil,Be=Math.floor,je=function(e){return isNaN(e=+e)?0:(0<e?Be:Le)(e)},ze=Object.freeze({default:je,__moduleExports:je}),ot=ze&&je||ze,He=Math.min,Ve=function(e){return 0<e?He(ot(e),9007199254740991):0},We=Object.freeze({default:Ve,__moduleExports:Ve}),Qe=Math.max,at=Math.min,st=function(e,t){return(e=ot(e))<0?Qe(e+t,0):at(e,t)},lt=Object.freeze({default:st,__moduleExports:st}),ct=Re&&Me||Re,ut=We&&Ve||We,dt=lt&&st||lt,ht=function(s){return function(e,t,n){var r,i=ct(e),o=ut(i.length),a=dt(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}},pt=Object.freeze({default:ht,__moduleExports:ht}),ft=ue("keys"),vt=function(e){return ft[e]||(ft[e]=et(e))},gt=Object.freeze({default:vt,__moduleExports:vt}),yt=pt&&ht||pt,mt=gt&&vt||gt,_t=yt(!1),At=mt("IE_PROTO"),bt=function(e,t){var n,r=ct(e),i=0,o=[];for(n in r)n!=At&&Ze(r,n)&&o.push(n);for(;t.length>i;)Ze(r,n=t[i++])&&(~_t(o,n)||o.push(n));return o},wt=Object.freeze({default:bt,__moduleExports:bt}),kt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Ct=Object.freeze({default:kt,__moduleExports:kt}),Et=wt&&bt||wt,xt=Ct&&kt||Ct,St=Object.keys||function(e){return Et(e,xt)},Pt=Object.freeze({default:St,__moduleExports:St}),Tt=Object.getOwnPropertySymbols,Ot={f:Tt},Dt=Object.freeze({default:Ot,__moduleExports:Ot,f:Tt}),It={}.propertyIsEnumerable,Nt={f:It},Ft=Object.freeze({default:Nt,__moduleExports:Nt,f:It}),Mt=Pt&&St||Pt,Rt=Dt&&Ot||Dt,Lt=Ft&&Nt||Ft,Bt=function(e){var t=Mt(e),n=Rt.f;if(n)for(var r,i=n(e),o=Lt.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t},jt=Object.freeze({default:Bt,__moduleExports:Bt}),zt=Array.isArray||function(e){return"Array"==Pe(e)},Ht=Object.freeze({default:zt,__moduleExports:zt}),Vt=qe?Object.defineProperties:function(e,t){x(e);for(var n,r=Mt(t),i=r.length,o=0;o<i;)Ge.f(e,n=r[o++],t[n]);return e},Wt=Object.freeze({default:Vt,__moduleExports:Vt}),Qt=Ye.document,$t=Qt&&Qt.documentElement,Ut=Object.freeze({default:$t,__moduleExports:$t}),Yt=Wt&&Vt||Wt,qt=Ut&&$t||Ut,Jt=mt("IE_PROTO"),Gt=function(){},Xt="prototype",Kt=function(){var e,t=b("iframe"),n=xt.length;for(t.style.display="none",qt.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Kt=e.F;n--;)delete Kt[Xt][xt[n]];return Kt()},Zt=Object.create||function(e,t){var n;return null!==e?(Gt[Xt]=x(e),n=new Gt,Gt[Xt]=null,n[Jt]=e):n=Kt(),void 0===t?n:Yt(n,t)},en=Object.freeze({default:Zt,__moduleExports:Zt}),tn=xt.concat("length","prototype"),nn=Object.getOwnPropertyNames||function(e){return Et(e,tn)},rn={f:nn},on=Object.freeze({default:rn,__moduleExports:rn,f:nn}),an=on&&rn||on,sn=an.f,ln={}.toString,cn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],un=function(e){return cn&&"[object Window]"==ln.call(e)?function(e){try{return sn(e)}catch(e){return cn.slice()}}(e):sn(ct(e))},dn={f:un},hn=Object.freeze({default:dn,__moduleExports:dn,f:un}),pn=Object.getOwnPropertyDescriptor,fn=qe?pn:function(e,t){if(e=ct(e),t=Je(t,!0),S)try{return pn(e,t)}catch(e){}if(Ze(e,t))return Xe(!Lt.f.call(e,t),e[t])},vn={f:fn},gn=Object.freeze({default:vn,__moduleExports:vn,f:fn}),yn=K&&X||K,mn=oe&&Z||oe,_n=ge&&ve||ge,An=Ce&&ke||Ce,bn=jt&&Bt||jt,wn=Ht&&zt||Ht,kn=en&&Zt||en,Cn=hn&&dn||hn,En=gn&&vn||gn,xn=mn.KEY,Sn=En.f,Pn=Ge.f,Tn=Cn.f,On=Ye.Symbol,Dn=Ye.JSON,In=Dn&&Dn.stringify,Nn="prototype",Fn=rt("_hidden"),Mn=rt("toPrimitive"),Rn={}.propertyIsEnumerable,Ln=ue("symbol-registry"),Bn=ue("symbols"),jn=ue("op-symbols"),zn=Object[Nn],Hn="function"==typeof On,Vn=Ye.QObject,Wn=!Vn||!Vn[Nn]||!Vn[Nn].findChild,Qn=qe&&$e(function(){return 7!=kn(Pn({},"a",{get:function(){return Pn(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Sn(zn,t);r&&delete zn[t],Pn(e,t,n),r&&e!==zn&&Pn(zn,t,r)}:Pn,$n=function(e){var t=Bn[e]=kn(On[Nn]);return t._k=e,t},Un=Hn&&"symbol"==typeof On.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof On},Yn=function(e,t,n){return e===zn&&Yn(jn,t,n),x(e),t=Je(t,!0),x(n),Ze(Bn,t)?(n.enumerable?(Ze(e,Fn)&&e[Fn][t]&&(e[Fn][t]=!1),n=kn(n,{enumerable:Xe(0,!1)})):(Ze(e,Fn)||Pn(e,Fn,Xe(1,{})),e[Fn][t]=!0),Qn(e,t,n)):Pn(e,t,n)},qn=function(e,t){x(e);for(var n,r=bn(t=ct(t)),i=0,o=r.length;i<o;)Yn(e,n=r[i++],t[n]);return e},Jn=function(e){var t=Rn.call(this,e=Je(e,!0));return!(this===zn&&Ze(Bn,e)&&!Ze(jn,e))&&(!(t||!Ze(this,e)||!Ze(Bn,e)||Ze(this,Fn)&&this[Fn][e])||t)},Gn=function(e,t){if(e=ct(e),t=Je(t,!0),e!==zn||!Ze(Bn,t)||Ze(jn,t)){var n=Sn(e,t);return!n||!Ze(Bn,t)||Ze(e,Fn)&&e[Fn][t]||(n.enumerable=!0),n}},Xn=function(e){for(var t,n=Tn(ct(e)),r=[],i=0;n.length>i;)Ze(Bn,t=n[i++])||t==Fn||t==xn||r.push(t);return r},Kn=function(e){for(var t,n=e===zn,r=Tn(n?jn:ct(e)),i=[],o=0;r.length>o;)!Ze(Bn,t=r[o++])||n&&!Ze(zn,t)||i.push(Bn[t]);return i};Hn||(q((On=function(){if(this instanceof On)throw TypeError("Symbol is not a constructor!");var t=et(0<arguments.length?arguments[0]:void 0),n=function(e){this===zn&&n.call(jn,e),Ze(this,Fn)&&Ze(this[Fn],t)&&(this[Fn][t]=!1),Qn(this,t,Xe(1,e))};return qe&&Wn&&Qn(zn,t,{configurable:!0,set:n}),$n(t)})[Nn],"toString",function(){return this._k}),En.f=Gn,Ge.f=Yn,an.f=Cn.f=Xn,Lt.f=Jn,Rt.f=Kn,qe&&!it&&q(zn,"propertyIsEnumerable",Jn,!0),be.f=function(e){return $n(rt(e))}),yn(yn.G+yn.W+yn.F*!Hn,{Symbol:On});for(var Zn="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),er=0;Zn.length>er;)rt(Zn[er++]);for(var tr=Mt(rt.store),nr=0;tr.length>nr;)An(tr[nr++]);yn(yn.S+yn.F*!Hn,"Symbol",{for:function(e){return Ze(Ln,e+="")?Ln[e]:Ln[e]=On(e)},keyFor:function(e){if(!Un(e))throw TypeError(e+" is not a symbol!");for(var t in Ln)if(Ln[t]===e)return t},useSetter:function(){Wn=!0},useSimple:function(){Wn=!1}}),yn(yn.S+yn.F*!Hn,"Object",{create:function(e,t){return void 0===t?kn(e):qn(kn(e),t)},defineProperty:Yn,defineProperties:qn,getOwnPropertyDescriptor:Gn,getOwnPropertyNames:Xn,getOwnPropertySymbols:Kn}),Dn&&yn(yn.S+yn.F*(!Hn||$e(function(){var e=On();return"[null]"!=In([e])||"{}"!=In({a:e})||"{}"!=In(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(Ue(t)||void 0!==e)&&!Un(e))return wn(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Un(t))return t}),r[1]=t,In.apply(Dn,r)}}),On[Nn][Mn]||Ke(On[Nn],Mn,On[Nn].valueOf),_n(On,"Symbol"),_n(Math,"Math",!0),_n(Ye.JSON,"JSON",!0),yn(yn.S,"Object",{create:kn}),yn(yn.S+yn.F*!qe,"Object",{defineProperty:Ge.f}),yn(yn.S+yn.F*!qe,"Object",{defineProperties:Yt});var rr=function(e,t){var n=(z.Object||{})[e]||Object[e],r={};r[e]=t(n),yn(yn.S+yn.F*$e(function(){n(1)}),"Object",r)},ir=Object.freeze({default:rr,__moduleExports:rr}),or=ir&&rr||ir,ar=En.f;or("getOwnPropertyDescriptor",function(){return function(e,t){return ar(ct(e),t)}});var sr=function(e){return Object(Fe(e))},lr=Object.freeze({default:sr,__moduleExports:sr}),cr=lr&&sr||lr,ur=mt("IE_PROTO"),dr=Object.prototype,hr=Object.getPrototypeOf||function(e){return e=cr(e),Ze(e,ur)?e[ur]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?dr:null},pr=Object.freeze({default:hr,__moduleExports:hr}),fr=pr&&hr||pr;or("getPrototypeOf",function(){return function(e){return fr(cr(e))}}),or("keys",function(){return function(e){return Mt(cr(e))}}),or("getOwnPropertyNames",function(){return Cn.f});var vr=mn.onFreeze;or("freeze",function(t){return function(e){return t&&Ue(e)?t(vr(e)):e}});var gr=mn.onFreeze;or("seal",function(t){return function(e){return t&&Ue(e)?t(gr(e)):e}});var yr=mn.onFreeze;or("preventExtensions",function(t){return function(e){return t&&Ue(e)?t(yr(e)):e}}),or("isFrozen",function(t){return function(e){return!Ue(e)||!!t&&t(e)}}),or("isSealed",function(t){return function(e){return!Ue(e)||!!t&&t(e)}}),or("isExtensible",function(t){return function(e){return!!Ue(e)&&(!t||t(e))}});var mr=Object.assign,_r=!mr||$e(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=mr({},e)[n]||Object.keys(mr({},t)).join("")!=r})?function(e,t){for(var n=cr(e),r=arguments.length,i=1,o=Rt.f,a=Lt.f;i<r;)for(var s,l=Ne(arguments[i++]),c=o?Mt(l).concat(o(l)):Mt(l),u=c.length,d=0;d<u;)a.call(l,s=c[d++])&&(n[s]=l[s]);return n}:mr,Ar=Object.freeze({default:_r,__moduleExports:_r}),br=Ar&&_r||Ar;yn(yn.S+yn.F,"Object",{assign:br});var wr=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},kr=Object.freeze({default:wr,__moduleExports:wr}),Cr=kr&&wr||kr;yn(yn.S,"Object",{is:Cr});var Er=function(e,t){if(x(e),!Ue(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},xr={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n,r){try{(r=nt(Function.call,En.f(Object.prototype,"__proto__").set,2))(e,[]),n=!(e instanceof Array)}catch(e){n=!0}return function(e,t){return Er(e,t),n?e.__proto__=t:r(e,t),e}}({},!1):void 0),check:Er},Sr=xr.set,Pr=xr.check,Tr=Object.freeze({default:xr,__moduleExports:xr,set:Sr,check:Pr}),Or=Tr&&xr||Tr;yn(yn.S,"Object",{setPrototypeOf:Or.set});var Dr=rt("toStringTag"),Ir="Arguments"==Pe(function(){return arguments}()),Nr=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Dr))?n:Ir?Pe(t):"Object"==(r=Pe(t))&&"function"==typeof t.callee?"Arguments":r},Fr=Object.freeze({default:Nr,__moduleExports:Nr}),Mr=Fr&&Nr||Fr,Rr={};Rr[rt("toStringTag")]="z",Rr+""!="[object z]"&&q(Object.prototype,"toString",function(){return"[object "+Mr(this)+"]"},!0);var Lr=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},Br=Object.freeze({default:Lr,__moduleExports:Lr}),jr=Br&&Lr||Br,zr=[].slice,Hr={},Vr=Function.bind||function(t){var n=$(this),r=zr.call(arguments,1),i=function(){var e=r.concat(zr.call(arguments));return this instanceof i?function(e,t,n){if(!(t in Hr)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";Hr[t]=Function("F,a","return new F("+r.join(",")+")")}return Hr[t](e,n)}(n,e.length,e):jr(n,e,t)};return Ue(n.prototype)&&(i.prototype=n.prototype),i},Wr=Object.freeze({default:Vr,__moduleExports:Vr}),Qr=Wr&&Vr||Wr;yn(yn.P,"Function",{bind:Qr});var $r=Ge.f,Ur=Function.prototype,Yr=/^\s*function ([^ (]*)/;"name"in Ur||qe&&$r(Ur,"name",{configurable:!0,get:function(){try{return(""+this).match(Yr)[1]}catch(e){return""}}});var qr=rt("hasInstance"),Jr=Function.prototype;qr in Jr||Ge.f(Jr,qr,{value:function(e){if("function"!=typeof this||!Ue(e))return!1;if(!Ue(this.prototype))return e instanceof this;for(;e=fr(e);)if(this.prototype===e)return!0;return!1}});var Gr="\t\n\v\f\r    \u2028\u2029\ufeff",Xr=Object.freeze({default:Gr,__moduleExports:Gr}),Kr=Xr?Gr:Xr,Zr="["+Kr+"]",ei=RegExp("^"+Zr+Zr+"*"),ti=RegExp(Zr+Zr+"*$"),ni=function(e,t,n){var r={},i=$e(function(){return!!Kr[e]()||"…"!="…"[e]()}),o=r[e]=i?t(ri):Kr[e];n&&(r[n]=o),yn(yn.P+yn.F*i,"String",r)},ri=ni.trim=function(e,t){return e=String(Fe(e)),1&t&&(e=e.replace(ei,"")),2&t&&(e=e.replace(ti,"")),e},ii=ni,oi=Object.freeze({default:ii,__moduleExports:ii}),ai=oi&&ii||oi,si=Ye.parseInt,li=ai.trim,ci=/^[-+]?0[xX]/,ui=8!==si(Kr+"08")||22!==si(Kr+"0x16")?function(e,t){var n=li(String(e),3);return si(n,t>>>0||(ci.test(n)?16:10))}:si,di=Object.freeze({default:ui,__moduleExports:ui}),hi=di&&ui||di;yn(yn.G+yn.F*(parseInt!=hi),{parseInt:hi});var pi=Ye.parseFloat,fi=ai.trim,vi=1/pi(Kr+"-0")!=-1/0?function(e){var t=fi(String(e),3),n=pi(t);return 0===n&&"-"==t.charAt(0)?-0:n}:pi,gi=Object.freeze({default:vi,__moduleExports:vi}),yi=gi&&vi||gi;yn(yn.G+yn.F*(parseFloat!=yi),{parseFloat:yi});var mi=Or.set,_i=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&Ue(r)&&mi&&mi(e,r),e},Ai=Object.freeze({default:_i,__moduleExports:_i}),bi=Ai&&_i||Ai,wi=an.f,ki=En.f,Ci=Ge.f,Ei=ai.trim,xi="Number",Si=Ye[xi],Pi=Si,Ti=Si.prototype,Oi=Pe(kn(Ti))==xi,Di="trim"in String.prototype,Ii=function(e){var t=Je(e,!1);if("string"==typeof t&&2<t.length){var n,r,i,o=(t=Di?t.trim():Ei(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,s=t.slice(2),l=0,c=s.length;l<c;l++)if((a=s.charCodeAt(l))<48||i<a)return NaN;return parseInt(s,r)}}return+t};if(!Si(" 0o1")||!Si("0b1")||Si("+0x1")){Si=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Si&&(Oi?$e(function(){Ti.valueOf.call(n)}):Pe(n)!=xi)?bi(new Pi(Ii(t)),n,Si):Ii(t)};for(var Ni,Fi=qe?wi(Pi):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Mi=0;Fi.length>Mi;Mi++)Ze(Pi,Ni=Fi[Mi])&&!Ze(Si,Ni)&&Ci(Si,Ni,ki(Pi,Ni));(Si.prototype=Ti).constructor=Si,q(Ye,xi,Si)}var Ri=function(e,t){if("number"!=typeof e&&"Number"!=Pe(e))throw TypeError(t);return+e},Li=Object.freeze({default:Ri,__moduleExports:Ri}),Bi=function(e){var t=String(Fe(this)),n="",r=ot(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;0<r;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},ji=Object.freeze({default:Bi,__moduleExports:Bi}),zi=Li&&Ri||Li,Hi=ji&&Bi||ji,Vi=1..toFixed,Wi=Math.floor,Qi=[0,0,0,0,0,0],$i="Number.toFixed: incorrect invocation!",Ui=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*Qi[n],Qi[n]=r%1e7,r=Wi(r/1e7)},Yi=function(e){for(var t=6,n=0;0<=--t;)n+=Qi[t],Qi[t]=Wi(n/e),n=n%e*1e7},qi=function(){for(var e=6,t="";0<=--e;)if(""!==t||0===e||0!==Qi[e]){var n=String(Qi[e]);t=""===t?n:t+Hi.call("0",7-n.length)+n}return t},Ji=function(e,t,n){return 0===t?n:t%2==1?Ji(e,t-1,n*e):Ji(e*e,t/2,n)};yn(yn.P+yn.F*(!!Vi&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!$e(function(){Vi.call({})})),"Number",{toFixed:function(e){var t,n,r,i,o=zi(this,$i),a=ot(e),s="",l="0";if(a<0||20<a)throw RangeError($i);if(o!=o)return"NaN";if(o<=-1e21||1e21<=o)return String(o);if(o<0&&(s="-",o=-o),1e-21<o)if(n=(t=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}(o*Ji(2,69,1))-69)<0?o*Ji(2,-t,1):o/Ji(2,t,1),n*=4503599627370496,0<(t=52-t)){for(Ui(0,n),r=a;7<=r;)Ui(1e7,0),r-=7;for(Ui(Ji(10,r,1),0),r=t-1;23<=r;)Yi(1<<23),r-=23;Yi(1<<r),Ui(1,1),Yi(2),l=qi()}else Ui(0,n),Ui(1<<-t,0),l=qi()+Hi.call("0",a);return l=0<a?s+((i=l.length)<=a?"0."+Hi.call("0",a-i)+l:l.slice(0,i-a)+"."+l.slice(i-a)):s+l}});var Gi=1..toPrecision;yn(yn.P+yn.F*($e(function(){return"1"!==Gi.call(1,void 0)})||!$e(function(){Gi.call({})})),"Number",{toPrecision:function(e){var t=zi(this,"Number#toPrecision: incorrect invocation!");return void 0===e?Gi.call(t):Gi.call(t,e)}}),yn(yn.S,"Number",{EPSILON:Math.pow(2,-52)});var Xi=Ye.isFinite;yn(yn.S,"Number",{isFinite:function(e){return"number"==typeof e&&Xi(e)}});var Ki=Math.floor,Zi=function(e){return!Ue(e)&&isFinite(e)&&Ki(e)===e},eo=Object.freeze({default:Zi,__moduleExports:Zi}),to=eo&&Zi||eo;yn(yn.S,"Number",{isInteger:to}),yn(yn.S,"Number",{isNaN:function(e){return e!=e}});var no=Math.abs;yn(yn.S,"Number",{isSafeInteger:function(e){return to(e)&&no(e)<=9007199254740991}}),yn(yn.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),yn(yn.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991}),yn(yn.S+yn.F*(Number.parseFloat!=yi),"Number",{parseFloat:yi}),yn(yn.S+yn.F*(Number.parseInt!=hi),"Number",{parseInt:hi});var ro=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)},io=Object.freeze({default:ro,__moduleExports:ro}),oo=io&&ro||io,ao=Math.sqrt,so=Math.acosh;yn(yn.S+yn.F*!(so&&710==Math.floor(so(Number.MAX_VALUE))&&so(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:94906265.62425156<e?Math.log(e)+Math.LN2:oo(e-1+ao(e-1)*ao(e+1))}});var lo=Math.asinh;yn(yn.S+yn.F*!(lo&&0<1/lo(0)),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}});var co=Math.atanh;yn(yn.S+yn.F*!(co&&1/co(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}});var uo=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1},ho=Object.freeze({default:uo,__moduleExports:uo}),po=ho&&uo||ho;yn(yn.S,"Math",{cbrt:function(e){return po(e=+e)*Math.pow(Math.abs(e),1/3)}}),yn(yn.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}});var fo=Math.exp;yn(yn.S,"Math",{cosh:function(e){return(fo(e=+e)+fo(-e))/2}});var vo=Math.expm1,go=!vo||22025.465794806718<vo(10)||vo(10)<22025.465794806718||-2e-17!=vo(-2e-17)?function(e){return 0==(e=+e)?e:-1e-6<e&&e<1e-6?e+e*e/2:Math.exp(e)-1}:vo,yo=Object.freeze({default:go,__moduleExports:go}),mo=yo&&go||yo;yn(yn.S+yn.F*(mo!=Math.expm1),"Math",{expm1:mo});var _o=Math.pow,Ao=_o(2,-52),bo=_o(2,-23),wo=_o(2,127)*(2-bo),ko=_o(2,-126),Co=Math.fround||function(e){var t,n,r=Math.abs(e),i=po(e);return r<ko?i*(r/ko/bo+1/Ao-1/Ao)*ko*bo:wo<(n=(t=(1+bo/Ao)*r)-(t-r))||n!=n?i*(1/0):i*n},Eo=Object.freeze({default:Co,__moduleExports:Co}),xo=Eo&&Co||Eo;yn(yn.S,"Math",{fround:xo});var So=Math.abs;yn(yn.S,"Math",{hypot:function(e,t){for(var n,r,i=0,o=0,a=arguments.length,s=0;o<a;)s<(n=So(arguments[o++]))?(i=i*(r=s/n)*r+1,s=n):i+=0<n?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}});var Po=Math.imul;yn(yn.S+yn.F*$e(function(){return-5!=Po(4294967295,5)||2!=Po.length}),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}}),yn(yn.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}}),yn(yn.S,"Math",{log1p:oo}),yn(yn.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}}),yn(yn.S,"Math",{sign:po});var To=Math.exp;yn(yn.S+yn.F*$e(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(mo(e)-mo(-e))/2:(To(e-1)-To(-e-1))*(Math.E/2)}});var Oo=Math.exp;yn(yn.S,"Math",{tanh:function(e){var t=mo(e=+e),n=mo(-e);return t==1/0?1:n==1/0?-1:(t-n)/(Oo(e)+Oo(-e))}}),yn(yn.S,"Math",{trunc:function(e){return(0<e?Math.floor:Math.ceil)(e)}});var Do=String.fromCharCode,Io=String.fromCodePoint;yn(yn.S+yn.F*(!!Io&&1!=Io.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;i<r;){if(t=+arguments[i++],dt(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?Do(t):Do(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}}),yn(yn.S,"String",{raw:function(e){for(var t=ct(e.raw),n=ut(t.length),r=arguments.length,i=[],o=0;o<n;)i.push(String(t[o++])),o<r&&i.push(String(arguments[o]));return i.join("")}}),ai("trim",function(e){return function(){return e(this,3)}});var No=function(s){return function(e,t){var n,r,i=String(Fe(e)),o=ot(t),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}},Fo=Object.freeze({default:No,__moduleExports:No}),Mo={},Ro=Object.freeze({default:Mo,__moduleExports:Mo}),Lo={};Ke(Lo,rt("iterator"),function(){return this});var Bo=function(e,t,n){e.prototype=kn(Lo,{next:Xe(1,n)}),_n(e,t+" Iterator")},jo=Object.freeze({default:Bo,__moduleExports:Bo}),zo=Ro&&Mo||Ro,Ho=jo&&Bo||jo,Vo=rt("iterator"),Wo=!([].keys&&"next"in[].keys()),$o="values",Uo=function(){return this},Yo=function(e,t,n,r,i,o,a){Ho(n,t,r);var s,l,c,u=function(e){if(!Wo&&e in f)return f[e];switch(e){case"keys":case $o:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",h=i==$o,p=!1,f=e.prototype,v=f[Vo]||f["@@iterator"]||i&&f[i],g=!Wo&&v||u(i),y=i?h?u("entries"):g:void 0,m="Array"==t&&f.entries||v;if(m&&(c=fr(m.call(new e)))!==Object.prototype&&c.next&&(_n(c,d,!0),it||Ze(c,Vo)||Ke(c,Vo,Uo)),h&&v&&v.name!==$o&&(p=!0,g=function(){return v.call(this)}),it&&!a||!Wo&&!p&&f[Vo]||Ke(f,Vo,g),zo[t]=g,zo[d]=Uo,i)if(s={values:h?g:u($o),keys:o?g:u("keys"),entries:y},a)for(l in s)l in f||q(f,l,s[l]);else yn(yn.P+yn.F*(Wo||p),t,s);return s},qo=Object.freeze({default:Yo,__moduleExports:Yo}),Jo=Fo&&No||Fo,Go=qo&&Yo||qo,Xo=Jo(!0);Go(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=Xo(t,n),this._i+=e.length,{value:e,done:!1})});var Ko=Jo(!1);yn(yn.P,"String",{codePointAt:function(e){return Ko(this,e)}});var Zo=rt("match"),ea=function(e){var t;return Ue(e)&&(void 0!==(t=e[Zo])?!!t:"RegExp"==Pe(e))},ta=Object.freeze({default:ea,__moduleExports:ea}),na=ta&&ea||ta,ra=function(e,t,n){if(na(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(Fe(e))},ia=Object.freeze({default:ra,__moduleExports:ra}),oa=rt("match"),aa=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[oa]=!1,!"/./"[t](n)}catch(e){}}return!0},sa=Object.freeze({default:aa,__moduleExports:aa}),la=ia&&ra||ia,ca=sa&&aa||sa,ua="endsWith",da=""[ua];yn(yn.P+yn.F*ca(ua),"String",{endsWith:function(e){var t=la(this,e,ua),n=1<arguments.length?arguments[1]:void 0,r=ut(t.length),i=void 0===n?r:Math.min(ut(n),r),o=String(e);return da?da.call(t,o,i):t.slice(i-o.length,i)===o}});var ha="includes";yn(yn.P+yn.F*ca(ha),"String",{includes:function(e){return!!~la(this,e,ha).indexOf(e,1<arguments.length?arguments[1]:void 0)}}),yn(yn.P,"String",{repeat:Hi});var pa="startsWith",fa=""[pa];yn(yn.P+yn.F*ca(pa),"String",{startsWith:function(e){var t=la(this,e,pa),n=ut(Math.min(1<arguments.length?arguments[1]:void 0,t.length)),r=String(e);return fa?fa.call(t,r,n):t.slice(n,n+r.length)===r}});var va=/"/g,ga=function(e,t,n,r){var i=String(Fe(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+String(r).replace(va,"&quot;")+'"'),o+">"+i+"</"+t+">"},ya=function(t,e){var n={};n[t]=e(ga),yn(yn.P+yn.F*$e(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",n)},ma=Object.freeze({default:ya,__moduleExports:ya}),_a=ma&&ya||ma;_a("anchor",function(t){return function(e){return t(this,"a","name",e)}}),_a("big",function(e){return function(){return e(this,"big","","")}}),_a("blink",function(e){return function(){return e(this,"blink","","")}}),_a("bold",function(e){return function(){return e(this,"b","","")}}),_a("fixed",function(e){return function(){return e(this,"tt","","")}}),_a("fontcolor",function(t){return function(e){return t(this,"font","color",e)}}),_a("fontsize",function(t){return function(e){return t(this,"font","size",e)}}),_a("italics",function(e){return function(){return e(this,"i","","")}}),_a("link",function(t){return function(e){return t(this,"a","href",e)}}),_a("small",function(e){return function(){return e(this,"small","","")}}),_a("strike",function(e){return function(){return e(this,"strike","","")}}),_a("sub",function(e){return function(){return e(this,"sub","","")}}),_a("sup",function(e){return function(){return e(this,"sup","","")}}),yn(yn.S,"Date",{now:function(){return(new Date).getTime()}}),yn(yn.P+yn.F*$e(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=cr(this),n=Je(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}});var Aa=Date.prototype.getTime,ba=Date.prototype.toISOString,wa=function(e){return 9<e?e:"0"+e},ka=$e(function(){return"0385-07-25T07:06:39.999Z"!=ba.call(new Date(-5e13-1))})||!$e(function(){ba.call(new Date(NaN))})?function(){if(!isFinite(Aa.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":9999<t?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+wa(e.getUTCMonth()+1)+"-"+wa(e.getUTCDate())+"T"+wa(e.getUTCHours())+":"+wa(e.getUTCMinutes())+":"+wa(e.getUTCSeconds())+"."+(99<n?n:"0"+wa(n))+"Z"}:ba,Ca=Object.freeze({default:ka,__moduleExports:ka}),Ea=Ca&&ka||Ca;yn(yn.P+yn.F*(Date.prototype.toISOString!==Ea),"Date",{toISOString:Ea});var xa=Date.prototype,Sa="Invalid Date",Pa="toString",Ta=xa[Pa],Oa=xa.getTime;new Date(NaN)+""!=Sa&&q(xa,Pa,function(){var e=Oa.call(this);return e==e?Ta.call(this):Sa});var Da=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return Je(x(this),"number"!=e)},Ia=Object.freeze({default:Da,__moduleExports:Da}),Na=Ia&&Da||Ia,Fa=rt("toPrimitive"),Ma=Date.prototype;Fa in Ma||Ke(Ma,Fa,Na),yn(yn.S,"Array",{isArray:wn});var Ra=function(t,e,n,r){try{return r?e(x(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&x(i.call(t)),e}},La=Object.freeze({default:Ra,__moduleExports:Ra}),Ba=rt("iterator"),ja=Array.prototype,za=function(e){return void 0!==e&&(zo.Array===e||ja[Ba]===e)},Ha=Object.freeze({default:za,__moduleExports:za}),Va=function(e,t,n){t in e?Ge.f(e,t,Xe(0,n)):e[t]=n},Wa=Object.freeze({default:Va,__moduleExports:Va}),Qa=rt("iterator"),$a=z.getIteratorMethod=function(e){if(null!=e)return e[Qa]||e["@@iterator"]||zo[Mr(e)]},Ua=Object.freeze({default:$a,__moduleExports:$a}),Ya=rt("iterator"),qa=!1;try{[7][Ya]().return=function(){qa=!0}}catch(e){}var Ja=function(e,t){if(!t&&!qa)return!1;var n=!1;try{var r=[7],i=r[Ya]();i.next=function(){return{done:n=!0}},r[Ya]=function(){return i},e(r)}catch(e){}return n},Ga=Object.freeze({default:Ja,__moduleExports:Ja}),Xa=La&&Ra||La,Ka=Ha&&za||Ha,Za=Wa&&Va||Wa,es=Ua&&$a||Ua,ts=Ga&&Ja||Ga;yn(yn.S+yn.F*!ts(function(e){}),"Array",{from:function(e){var t,n,r,i,o=cr(e),a="function"==typeof this?this:Array,s=arguments.length,l=1<s?arguments[1]:void 0,c=void 0!==l,u=0,d=es(o);if(c&&(l=nt(l,2<s?arguments[2]:void 0,2)),null==d||a==Array&&Ka(d))for(n=new a(t=ut(o.length));u<t;u++)Za(n,u,c?l(o[u],u):o[u]);else for(i=d.call(o),n=new a;!(r=i.next()).done;u++)Za(n,u,c?Xa(i,l,[r.value,u],!0):r.value);return n.length=u,n}}),yn(yn.S+yn.F*$e(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);e<t;)Za(n,e,arguments[e++]);return n.length=t,n}});var ns=function(e,t){return!!e&&$e(function(){t?e.call(null,function(){},1):e.call(null)})},rs=Object.freeze({default:ns,__moduleExports:ns}),is=rs&&ns||rs,os=[].join;yn(yn.P+yn.F*(Ne!=Object||!is(os)),"Array",{join:function(e){return os.call(ct(this),void 0===e?",":e)}});var as=[].slice;yn(yn.P+yn.F*$e(function(){qt&&as.call(qt)}),"Array",{slice:function(e,t){var n=ut(this.length),r=Pe(this);if(t=void 0===t?n:t,"Array"==r)return as.call(this,e,t);for(var i=dt(e,n),o=dt(t,n),a=ut(o-i),s=new Array(a),l=0;l<a;l++)s[l]="String"==r?this.charAt(i+l):this[i+l];return s}});var ss=[].sort,ls=[1,2,3];yn(yn.P+yn.F*($e(function(){ls.sort(void 0)})||!$e(function(){ls.sort(null)})||!is(ss)),"Array",{sort:function(e){return void 0===e?ss.call(cr(this)):ss.call(cr(this),$(e))}});var cs=rt("species"),us=function(e){var t;return wn(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!wn(t.prototype)||(t=void 0),Ue(t)&&null===(t=t[cs])&&(t=void 0)),void 0===t?Array:t},ds=Object.freeze({default:us,__moduleExports:us}),hs=ds&&us||ds,ps=function(e,t){return new(hs(e))(t)},fs=Object.freeze({default:ps,__moduleExports:ps}),vs=fs&&ps||fs,gs=function(d,e){var h=1==d,p=2==d,f=3==d,v=4==d,g=6==d,y=5==d||g,m=e||vs;return function(e,t,n){for(var r,i,o=cr(e),a=Ne(o),s=nt(t,n,3),l=ut(a.length),c=0,u=h?m(e,l):p?m(e,0):void 0;c<l;c++)if((y||c in a)&&(i=s(r=a[c],c,o),d))if(h)u[c]=i;else if(i)switch(d){case 3:return!0;case 5:return r;case 6:return c;case 2:u.push(r)}else if(v)return!1;return g?-1:f||v?v:u}},ys=Object.freeze({default:gs,__moduleExports:gs}),ms=ys&&gs||ys,_s=ms(0),As=is([].forEach,!0);yn(yn.P+yn.F*!As,"Array",{forEach:function(e){return _s(this,e,arguments[1])}});var bs=ms(1);yn(yn.P+yn.F*!is([].map,!0),"Array",{map:function(e){return bs(this,e,arguments[1])}});var ws=ms(2);yn(yn.P+yn.F*!is([].filter,!0),"Array",{filter:function(e){return ws(this,e,arguments[1])}});var ks=ms(3);yn(yn.P+yn.F*!is([].some,!0),"Array",{some:function(e){return ks(this,e,arguments[1])}});var Cs=ms(4);yn(yn.P+yn.F*!is([].every,!0),"Array",{every:function(e){return Cs(this,e,arguments[1])}});var Es=function(e,t,n,r,i){$(t);var o=cr(e),a=Ne(o),s=ut(o.length),l=i?s-1:0,c=i?-1:1;if(n<2)for(;;){if(l in a){r=a[l],l+=c;break}if(l+=c,i?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=l:l<s;l+=c)l in a&&(r=t(r,a[l],l,o));return r},xs=Object.freeze({default:Es,__moduleExports:Es}),Ss=xs&&Es||xs;yn(yn.P+yn.F*!is([].reduce,!0),"Array",{reduce:function(e){return Ss(this,e,arguments.length,arguments[1],!1)}}),yn(yn.P+yn.F*!is([].reduceRight,!0),"Array",{reduceRight:function(e){return Ss(this,e,arguments.length,arguments[1],!0)}});var Ps=yt(!1),Ts=[].indexOf,Os=!!Ts&&1/[1].indexOf(1,-0)<0;yn(yn.P+yn.F*(Os||!is(Ts)),"Array",{indexOf:function(e){return Os?Ts.apply(this,arguments)||0:Ps(this,e,arguments[1])}});var Ds=[].lastIndexOf,Is=!!Ds&&1/[1].lastIndexOf(1,-0)<0;yn(yn.P+yn.F*(Is||!is(Ds)),"Array",{lastIndexOf:function(e){if(Is)return Ds.apply(this,arguments)||0;var t=ct(this),n=ut(t.length),r=n-1;for(1<arguments.length&&(r=Math.min(r,ot(arguments[1]))),r<0&&(r=n+r);0<=r;r--)if(r in t&&t[r]===e)return r||0;return-1}});var Ns=[].copyWithin||function(e,t){var n=cr(this),r=ut(n.length),i=dt(e,r),o=dt(t,r),a=2<arguments.length?arguments[2]:void 0,s=Math.min((void 0===a?r:dt(a,r))-o,r-i),l=1;for(o<i&&i<o+s&&(l=-1,o+=s-1,i+=s-1);0<s--;)o in n?n[i]=n[o]:delete n[i],i+=l,o+=l;return n},Fs=Object.freeze({default:Ns,__moduleExports:Ns}),Ms=rt("unscopables"),Rs=Array.prototype;null==Rs[Ms]&&Ke(Rs,Ms,{});var Ls=function(e){Rs[Ms][e]=!0},Bs=Object.freeze({default:Ls,__moduleExports:Ls}),js=Fs&&Ns||Fs,zs=Bs&&Ls||Bs;yn(yn.P,"Array",{copyWithin:js}),zs("copyWithin");var Hs=function(e){for(var t=cr(this),n=ut(t.length),r=arguments.length,i=dt(1<r?arguments[1]:void 0,n),o=2<r?arguments[2]:void 0,a=void 0===o?n:dt(o,n);i<a;)t[i++]=e;return t},Vs=Object.freeze({default:Hs,__moduleExports:Hs}),Ws=Vs&&Hs||Vs;yn(yn.P,"Array",{fill:Ws}),zs("fill");var Qs=ms(5),$s="find",Us=!0;$s in[]&&Array(1)[$s](function(){Us=!1}),yn(yn.P+yn.F*Us,"Array",{find:function(e){return Qs(this,e,1<arguments.length?arguments[1]:void 0)}}),zs($s);var Ys=ms(6),qs="findIndex",Js=!0;qs in[]&&Array(1)[qs](function(){Js=!1}),yn(yn.P+yn.F*Js,"Array",{findIndex:function(e){return Ys(this,e,1<arguments.length?arguments[1]:void 0)}}),zs(qs);var Gs=rt("species"),Xs=function(e){var t=Ye[e];qe&&t&&!t[Gs]&&Ge.f(t,Gs,{configurable:!0,get:function(){return this}})},Ks=Object.freeze({default:Xs,__moduleExports:Xs}),Zs=Ks&&Xs||Ks;Zs("Array");var el=function(e,t){return{value:t,done:!!e}},tl=Object.freeze({default:el,__moduleExports:el}),nl=tl&&el||tl,rl=Go(Array,"Array",function(e,t){this._t=ct(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,nl(1)):nl(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");zo.Arguments=zo.Array,zs("keys"),zs("values"),zs("entries");var il=Object.freeze({default:rl,__moduleExports:rl}),ol=function(){var e=x(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},al=Object.freeze({default:ol,__moduleExports:ol}),sl=al&&ol||al,ll=Ge.f,cl=an.f,ul=Ye.RegExp,dl=ul,hl=ul.prototype,pl=/a/g,fl=/a/g,vl=new ul(pl)!==pl;if(qe&&(!vl||$e(function(){return fl[rt("match")]=!1,ul(pl)!=pl||ul(fl)==fl||"/a/i"!=ul(pl,"i")}))){ul=function(e,t){var n=this instanceof ul,r=na(e),i=void 0===t;return!n&&r&&e.constructor===ul&&i?e:bi(vl?new dl(r&&!i?e.source:e,t):dl((r=e instanceof ul)?e.source:e,r&&i?sl.call(e):t),n?this:hl,ul)};for(var gl=function(t){t in ul||ll(ul,t,{configurable:!0,get:function(){return dl[t]},set:function(e){dl[t]=e}})},yl=cl(dl),ml=0;yl.length>ml;)gl(yl[ml++]);(hl.constructor=ul).prototype=hl,q(Ye,"RegExp",ul)}Zs("RegExp"),qe&&"g"!=/./g.flags&&Ge.f(RegExp.prototype,"flags",{configurable:!0,get:sl});var _l="toString",Al=/./[_l],bl=function(e){q(RegExp.prototype,_l,e,!0)};$e(function(){return"/a/b"!=Al.call({source:"a",flags:"b"})})?bl(function(){var e=x(this);return"/".concat(e.source,"/","flags"in e?e.flags:!qe&&e instanceof RegExp?sl.call(e):void 0)}):Al.name!=_l&&bl(function(){return Al.call(this)});var wl=function(t,e,n){var r=rt(t),i=n(Fe,r,""[t]),o=i[0],a=i[1];$e(function(){var e={};return e[r]=function(){return 7},7!=""[t](e)})&&(q(String.prototype,t,o),Ke(RegExp.prototype,r,2==e?function(e,t){return a.call(e,this,t)}:function(e){return a.call(e,this)}))},kl=Object.freeze({default:wl,__moduleExports:wl}),Cl=kl&&wl||kl;Cl("match",1,function(r,i,e){return[function(e){var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},e]}),Cl("replace",2,function(i,o,a){return[function(e,t){var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):a.call(String(n),e,t)},a]}),Cl("search",1,function(r,i,e){return[function(e){var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},e]}),Cl("split",2,function(i,o,a){var p=na,f=a,v=[].push,e="split",g="length",y="lastIndex";if("c"=="abbc"[e](/(b)*/)[1]||4!="test"[e](/(?:)/,-1)[g]||2!="ab"[e](/(?:ab)*/)[g]||4!="."[e](/(.?)(.?)/)[g]||1<"."[e](/()()/)[g]||""[e](/.?/)[g]){var m=void 0===/()??/.exec("")[1];a=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!p(e))return f.call(n,e,t);var r,i,o,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,d=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,c+"g");for(m||(r=new RegExp("^"+h.source+"$(?!\\s)",c));(i=h.exec(n))&&!(u<(o=i.index+i[0][g])&&(l.push(n.slice(u,i.index)),!m&&1<i[g]&&i[0].replace(r,function(){for(s=1;s<arguments[g]-2;s++)void 0===arguments[s]&&(i[s]=void 0)}),1<i[g]&&i.index<n[g]&&v.apply(l,i.slice(1)),a=i[0][g],u=o,l[g]>=d));)h[y]===i.index&&h[y]++;return u===n[g]?!a&&h.test("")||l.push(""):l.push(n.slice(u)),l[g]>d?l.slice(0,d):l}}else"0"[e](void 0,0)[g]&&(a=function(e,t){return void 0===e&&0===t?[]:f.call(this,e,t)});return[function(e,t){var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):a.call(String(n),e,t)},a]});var El,xl,Sl,Pl=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},Tl=Object.freeze({default:Pl,__moduleExports:Pl}),Ol=e(function(e){var h={},p={},t=e.exports=function(e,t,n,r,i){var o,a,s,l,c=i?function(){return e}:es(e),u=nt(n,r,t?2:1),d=0;if("function"!=typeof c)throw TypeError(e+" is not iterable!");if(Ka(c)){for(o=ut(e.length);d<o;d++)if((l=t?u(x(a=e[d])[0],a[1]):u(e[d]))===h||l===p)return l}else for(s=c.call(e);!(a=s.next()).done;)if((l=Xa(s,u,a.value,t))===h||l===p)return l};t.BREAK=h,t.RETURN=p}),Dl=Object.freeze({default:Ol,__moduleExports:Ol}),Il=rt("species"),Nl=function(e,t){var n,r=x(e).constructor;return void 0===r||null==(n=x(r)[Il])?t:$(n)},Fl=Object.freeze({default:Nl,__moduleExports:Nl}),Ml=Ye.process,Rl=Ye.setImmediate,Ll=Ye.clearImmediate,Bl=Ye.MessageChannel,jl=Ye.Dispatch,zl=0,Hl={},Vl="onreadystatechange",Wl=function(){var e=+this;if(Hl.hasOwnProperty(e)){var t=Hl[e];delete Hl[e],t()}},Ql=function(e){Wl.call(e.data)};Rl&&Ll||(Rl=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Hl[++zl]=function(){jr("function"==typeof e?e:Function(e),t)},El(zl),zl},Ll=function(e){delete Hl[e]},"process"==Pe(Ml)?El=function(e){Ml.nextTick(nt(Wl,e,1))}:jl&&jl.now?El=function(e){jl.now(nt(Wl,e,1))}:Bl?(Sl=(xl=new Bl).port2,xl.port1.onmessage=Ql,El=nt(Sl.postMessage,Sl,1)):Ye.addEventListener&&"function"==typeof postMessage&&!Ye.importScripts?(El=function(e){Ye.postMessage(e+"","*")},Ye.addEventListener("message",Ql,!1)):El=Vl in b("script")?function(e){qt.appendChild(b("script"))[Vl]=function(){qt.removeChild(this),Wl.call(e)}}:function(e){setTimeout(nt(Wl,e,1),0)});var $l={set:Rl,clear:Ll},Ul=$l.set,Yl=$l.clear,ql=Object.freeze({default:$l,__moduleExports:$l,set:Ul,clear:Yl}),Jl=ql&&$l||ql,Gl=Jl.set,Xl=Ye.MutationObserver||Ye.WebKitMutationObserver,Kl=Ye.process,Zl=Ye.Promise,ec="process"==Pe(Kl),tc=function(){var n,r,i,e=function(){var e,t;for(ec&&(e=Kl.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?i():r=void 0,e}}r=void 0,e&&e.enter()};if(ec)i=function(){Kl.nextTick(e)};else if(!Xl||Ye.navigator&&Ye.navigator.standalone)if(Zl&&Zl.resolve){var t=Zl.resolve();i=function(){t.then(e)}}else i=function(){Gl.call(Ye,e)};else{var o=!0,a=document.createTextNode("");new Xl(e).observe(a,{characterData:!0}),i=function(){a.data=o=!o}}return function(e){var t={fn:e,next:void 0};r&&(r.next=t),n||(n=t,i()),r=t}},nc=Object.freeze({default:tc,__moduleExports:tc});function rc(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=$(n),this.reject=$(r)}var ic,oc,ac,sc,lc=function(e){return new rc(e)},cc={f:lc},uc=Object.freeze({default:cc,__moduleExports:cc,f:lc}),dc=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},hc=Object.freeze({default:dc,__moduleExports:dc}),pc=uc&&cc||uc,fc=function(e,t){if(x(e),Ue(t)&&t.constructor===e)return t;var n=pc.f(e);return(0,n.resolve)(t),n.promise},vc=Object.freeze({default:fc,__moduleExports:fc}),gc=function(e,t,n){for(var r in t)q(e,r,t[r],n);return e},yc=Object.freeze({default:gc,__moduleExports:gc}),mc=Tl&&Pl||Tl,_c=Dl&&Ol||Dl,Ac=Fl&&Nl||Fl,bc=nc&&tc||nc,wc=hc&&dc||hc,kc=vc&&fc||vc,Cc=yc&&gc||yc,Ec=Jl.set,xc=bc(),Sc="Promise",Pc=Ye.TypeError,Tc=Ye.process,Oc=Ye[Sc],Dc="process"==Mr(Tc),Ic=function(){},Nc=oc=pc.f,Fc=!!function(){try{var e=Oc.resolve(1),t=(e.constructor={})[rt("species")]=function(e){e(Ic,Ic)};return(Dc||"function"==typeof PromiseRejectionEvent)&&e.then(Ic)instanceof t}catch(e){}}(),Mc=function(e){var t;return!(!Ue(e)||"function"!=typeof(t=e.then))&&t},Rc=function(c,n){if(!c._n){c._n=!0;var r=c._c;xc(function(){for(var s=c._v,l=1==c._s,e=0,t=function(e){var t,n,r=l?e.ok:e.fail,i=e.resolve,o=e.reject,a=e.domain;try{r?(l||(2==c._h&&jc(c),c._h=1),!0===r?t=s:(a&&a.enter(),t=r(s),a&&a.exit()),t===e.promise?o(Pc("Promise-chain cycle")):(n=Mc(t))?n.call(t,i,o):i(t)):o(s)}catch(e){o(e)}};r.length>e;)t(r[e++]);c._c=[],c._n=!1,n&&!c._h&&Lc(c)})}},Lc=function(o){Ec.call(Ye,function(){var e,t,n,r=o._v,i=Bc(o);if(i&&(e=wc(function(){Dc?Tc.emit("unhandledRejection",r,o):(t=Ye.onunhandledrejection)?t({promise:o,reason:r}):(n=Ye.console)&&n.error&&n.error("Unhandled promise rejection",r)}),o._h=Dc||Bc(o)?2:1),o._a=void 0,i&&e.e)throw e.v})},Bc=function(e){return 1!==e._h&&0===(e._a||e._c).length},jc=function(t){Ec.call(Ye,function(){var e;Dc?Tc.emit("rejectionHandled",t):(e=Ye.onrejectionhandled)&&e({promise:t,reason:t._v})})},zc=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),Rc(t,!0))},Hc=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw Pc("Promise can't be resolved itself");(n=Mc(e))?xc(function(){var t={_w:r,_d:!1};try{n.call(e,nt(Hc,t,1),nt(zc,t,1))}catch(e){zc.call(t,e)}}):(r._v=e,r._s=1,Rc(r,!1))}catch(e){zc.call({_w:r,_d:!1},e)}}};Fc||(Oc=function(e){mc(this,Oc,Sc,"_h"),$(e),ic.call(this);try{e(nt(Hc,this,1),nt(zc,this,1))}catch(e){zc.call(this,e)}},(ic=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Cc(Oc.prototype,{then:function(e,t){var n=Nc(Ac(this,Oc));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=Dc?Tc.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&Rc(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),ac=function(){var e=new ic;this.promise=e,this.resolve=nt(Hc,e,1),this.reject=nt(zc,e,1)},pc.f=Nc=function(e){return e===Oc||e===sc?new ac(e):oc(e)}),yn(yn.G+yn.W+yn.F*!Fc,{Promise:Oc}),_n(Oc,Sc),Zs(Sc),sc=z[Sc],yn(yn.S+yn.F*!Fc,Sc,{reject:function(e){var t=Nc(this);return(0,t.reject)(e),t.promise}}),yn(yn.S+yn.F*(it||!Fc),Sc,{resolve:function(e){return kc(it&&this===sc?Oc:this,e)}}),yn(yn.S+yn.F*!(Fc&&ts(function(e){Oc.all(e).catch(Ic)})),Sc,{all:function(e){var a=this,t=Nc(a),s=t.resolve,l=t.reject,n=wc(function(){var r=[],i=0,o=1;_c(e,!1,function(e){var t=i++,n=!1;r.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--o||s(r))},l)}),--o||s(r)});return n.e&&l(n.v),t.promise},race:function(e){var t=this,n=Nc(t),r=n.reject,i=wc(function(){_c(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}});var Vc=function(e,t){if(!Ue(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e},Wc=Object.freeze({default:Vc,__moduleExports:Vc}),Qc=Wc&&Vc||Wc,$c=Ge.f,Uc=mn.fastKey,Yc=qe?"_s":"size",qc=function(e,t){var n,r=Uc(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n},Jc={getConstructor:function(e,o,n,r){var i=e(function(e,t){mc(e,i,o,"_i"),e._t=o,e._i=kn(null),e._f=void 0,e._l=void 0,e[Yc]=0,null!=t&&_c(t,n,e[r],e)});return Cc(i.prototype,{clear:function(){for(var e=Qc(this,o),t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[Yc]=0},delete:function(e){var t=Qc(this,o),n=qc(t,e);if(n){var r=n.n,i=n.p;delete t._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),t._f==n&&(t._f=r),t._l==n&&(t._l=i),t[Yc]--}return!!n},forEach:function(e){Qc(this,o);for(var t,n=nt(e,1<arguments.length?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!qc(Qc(this,o),e)}}),qe&&$c(i.prototype,"size",{get:function(){return Qc(this,o)[Yc]}}),i},def:function(e,t,n){var r,i,o=qc(e,t);return o?o.v=n:(e._l=o={i:i=Uc(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[Yc]++,"F"!==i&&(e._i[i]=o)),e},getEntry:qc,setStrong:function(e,n,t){Go(e,n,function(e,t){this._t=Qc(e,n),this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?nl(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,nl(1))},t?"entries":"values",!t,!0),Zs(n)}},Gc=Jc.getConstructor,Xc=Jc.def,Kc=Jc.getEntry,Zc=Jc.setStrong,eu=Object.freeze({default:Jc,__moduleExports:Jc,getConstructor:Gc,def:Xc,getEntry:Kc,setStrong:Zc}),tu=function(r,e,t,n,i,o){var a=Ye[r],s=a,l=i?"set":"add",c=s&&s.prototype,u={},d=function(e){var n=c[e];q(c,e,"delete"==e?function(e){return!(o&&!Ue(e))&&n.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Ue(e))&&n.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!Ue(e)?void 0:n.call(this,0===e?0:e)}:"add"==e?function(e){return n.call(this,0===e?0:e),this}:function(e,t){return n.call(this,0===e?0:e,t),this})};if("function"==typeof s&&(o||c.forEach&&!$e(function(){(new s).entries().next()}))){var h=new s,p=h[l](o?{}:-0,1)!=h,f=$e(function(){h.has(1)}),v=ts(function(e){new s(e)}),g=!o&&$e(function(){for(var e=new s,t=5;t--;)e[l](t,t);return!e.has(-0)});v||(((s=e(function(e,t){mc(e,s,r);var n=bi(new a,e,s);return null!=t&&_c(t,i,n[l],n),n})).prototype=c).constructor=s),(f||g)&&(d("delete"),d("has"),i&&d("get")),(g||p)&&d(l),o&&c.clear&&delete c.clear}else s=n.getConstructor(e,r,i,l),Cc(s.prototype,t),mn.NEED=!0;return _n(s,r),u[r]=s,yn(yn.G+yn.W+yn.F*(s!=a),u),o||n.setStrong(s,r,i),s},nu=Object.freeze({default:tu,__moduleExports:tu}),ru=eu&&Jc||eu,iu=nu&&tu||nu,ou=iu("Map",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{get:function(e){var t=ru.getEntry(Qc(this,"Map"),e);return t&&t.v},set:function(e,t){return ru.def(Qc(this,"Map"),0===e?0:e,t)}},ru,!0),au=Object.freeze({default:ou,__moduleExports:ou}),su=iu("Set",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(e){return ru.def(Qc(this,"Set"),e=0===e?0:e,e)}},ru),lu=Object.freeze({default:su,__moduleExports:su}),cu=mn.getWeak,uu=ms(5),du=ms(6),hu=0,pu=function(e){return e._l||(e._l=new fu)},fu=function(){this.a=[]},vu=function(e,t){return uu(e.a,function(e){return e[0]===t})};fu.prototype={get:function(e){var t=vu(this,e);if(t)return t[1]},has:function(e){return!!vu(this,e)},set:function(e,t){var n=vu(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(t){var e=du(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}};var gu={getConstructor:function(e,n,r,i){var o=e(function(e,t){mc(e,o,n,"_i"),e._t=n,e._i=hu++,e._l=void 0,null!=t&&_c(t,r,e[i],e)});return Cc(o.prototype,{delete:function(e){if(!Ue(e))return!1;var t=cu(e);return!0===t?pu(Qc(this,n)).delete(e):t&&Ze(t,this._i)&&delete t[this._i]},has:function(e){if(!Ue(e))return!1;var t=cu(e);return!0===t?pu(Qc(this,n)).has(e):t&&Ze(t,this._i)}}),o},def:function(e,t,n){var r=cu(x(t),!0);return!0===r?pu(e).set(t,n):r[e._i]=n,e},ufstore:pu},yu=gu.getConstructor,mu=gu.def,_u=gu.ufstore,Au=Object.freeze({default:gu,__moduleExports:gu,getConstructor:yu,def:mu,ufstore:_u}),bu=Au&&gu||Au,wu=e(function(e){var o,t=ms(0),n="WeakMap",r=mn.getWeak,a=Object.isExtensible,i=bu.ufstore,s={},l=function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},c={get:function(e){if(Ue(e)){var t=r(e);return!0===t?i(Qc(this,n)).get(e):t?t[this._i]:void 0}},set:function(e,t){return bu.def(Qc(this,n),e,t)}},u=e.exports=iu(n,l,c,bu,!0,!0);$e(function(){return 7!=(new u).set((Object.freeze||Object)(s),7).get(s)})&&(o=bu.getConstructor(l,n),br(o.prototype,c),mn.NEED=!0,t(["delete","has","get","set"],function(r){var e=u.prototype,i=e[r];q(e,r,function(e,t){if(!Ue(e)||a(e))return i.call(this,e,t);this._f||(this._f=new o);var n=this._f[r](e,t);return"set"==r?this:n})}))}),ku=Object.freeze({default:wu,__moduleExports:wu}),Cu="WeakSet";iu(Cu,function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(e){return bu.def(Qc(this,Cu),e,!0)}},bu,!1,!0);for(var Eu,xu=et("typed_array"),Su=et("view"),Pu=!(!Ye.ArrayBuffer||!Ye.DataView),Tu=Pu,Ou=0,Du="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");Ou<9;)(Eu=Ye[Du[Ou++]])?(Ke(Eu.prototype,xu,!0),Ke(Eu.prototype,Su,!0)):Tu=!1;var Iu={ABV:Pu,CONSTR:Tu,TYPED:xu,VIEW:Su},Nu=Iu.ABV,Fu=Iu.CONSTR,Mu=Iu.TYPED,Ru=Iu.VIEW,Lu=Object.freeze({default:Iu,__moduleExports:Iu,ABV:Nu,CONSTR:Fu,TYPED:Mu,VIEW:Ru}),Bu=function(e){if(void 0===e)return 0;var t=ot(e),n=ut(t);if(t!==n)throw RangeError("Wrong length!");return n},ju=Object.freeze({default:Bu,__moduleExports:Bu}),zu=Lu&&Iu||Lu,Hu=ju&&Bu||ju,Vu=e(function(e,t){var n=an.f,r=Ge.f,i="ArrayBuffer",o="DataView",a="prototype",d="Wrong index!",s=Ye[i],l=Ye[o],c=Ye.Math,h=Ye.RangeError,p=Ye.Infinity,u=s,f=c.abs,v=c.pow,g=c.floor,y=c.log,m=c.LN2,_="byteLength",A="byteOffset",b=qe?"_b":"buffer",w=qe?"_l":_,k=qe?"_o":A;function C(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?v(2,-24)-v(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for((e=f(e))!=e||e===p?(i=e!=e?1:0,r=l):(r=g(y(e)/m),e*(o=v(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+c?u/o:u*v(2,1-c))*o&&(r++,o/=2),l<=r+c?(i=0,r=l):1<=r+c?(i=(e*o-1)*v(2,t),r+=c):(i=e*v(2,c-1)*v(2,t),r=0));8<=t;a[d++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;0<s;a[d++]=255&r,r/=256,s-=8);return a[--d]|=128*h,a}function E(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;0<s;u=256*u+e[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=t;0<s;r=256*r+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return r?NaN:c?-p:p;r+=v(2,t),u-=a}return(c?-1:1)*r*v(2,u-t)}function x(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function S(e){return[255&e]}function P(e){return[255&e,e>>8&255]}function T(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function O(e){return C(e,52,8)}function D(e){return C(e,23,4)}function I(e,t,n){r(e[a],t,{get:function(){return this[n]}})}function N(e,t,n,r){var i=Hu(+n);if(i+t>e[w])throw h(d);var o=e[b]._b,a=i+e[k],s=o.slice(a,a+t);return r?s:s.reverse()}function F(e,t,n,r,i,o){var a=Hu(+n);if(a+t>e[w])throw h(d);for(var s=e[b]._b,l=a+e[k],c=r(+i),u=0;u<t;u++)s[l+u]=c[o?u:t-u-1]}if(zu.ABV){if(!$e(function(){s(1)})||!$e(function(){new s(-1)})||$e(function(){return new s,new s(1.5),new s(NaN),s.name!=i})){for(var M,R=(s=function(e){return mc(this,s),new u(Hu(e))})[a]=u[a],L=n(u),B=0;L.length>B;)(M=L[B++])in s||Ke(s,M,u[M]);it||(R.constructor=s)}var j=new l(new s(2)),z=l[a].setInt8;j.setInt8(0,2147483648),j.setInt8(1,2147483649),!j.getInt8(0)&&j.getInt8(1)||Cc(l[a],{setInt8:function(e,t){z.call(this,e,t<<24>>24)},setUint8:function(e,t){z.call(this,e,t<<24>>24)}},!0)}else s=function(e){mc(this,s,i);var t=Hu(e);this._b=Ws.call(new Array(t),0),this[w]=t},l=function(e,t,n){mc(this,l,o),mc(e,s,o);var r=e[w],i=ot(t);if(i<0||r<i)throw h("Wrong offset!");if(r<i+(n=void 0===n?r-i:ut(n)))throw h("Wrong length!");this[b]=e,this[k]=i,this[w]=n},qe&&(I(s,_,"_l"),I(l,"buffer","_b"),I(l,_,"_l"),I(l,A,"_o")),Cc(l[a],{getInt8:function(e){return N(this,1,e)[0]<<24>>24},getUint8:function(e){return N(this,1,e)[0]},getInt16:function(e){var t=N(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=N(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return x(N(this,4,e,arguments[1]))},getUint32:function(e){return x(N(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return E(N(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return E(N(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){F(this,1,e,S,t)},setUint8:function(e,t){F(this,1,e,S,t)},setInt16:function(e,t){F(this,2,e,P,t,arguments[2])},setUint16:function(e,t){F(this,2,e,P,t,arguments[2])},setInt32:function(e,t){F(this,4,e,T,t,arguments[2])},setUint32:function(e,t){F(this,4,e,T,t,arguments[2])},setFloat32:function(e,t){F(this,4,e,D,t,arguments[2])},setFloat64:function(e,t){F(this,8,e,O,t,arguments[2])}});_n(s,i),_n(l,o),Ke(l[a],zu.VIEW,!0),t[i]=s,t[o]=l}),Wu=Object.freeze({default:Vu,__moduleExports:Vu}),Qu=Wu&&Vu||Wu,$u=Ye.ArrayBuffer,Uu=Qu.ArrayBuffer,Yu=Qu.DataView,qu=zu.ABV&&$u.isView,Ju=Uu.prototype.slice,Gu=zu.VIEW,Xu="ArrayBuffer";yn(yn.G+yn.W+yn.F*($u!==Uu),{ArrayBuffer:Uu}),yn(yn.S+yn.F*!zu.CONSTR,Xu,{isView:function(e){return qu&&qu(e)||Ue(e)&&Gu in e}}),yn(yn.P+yn.U+yn.F*$e(function(){return!new Uu(2).slice(1,void 0).byteLength}),Xu,{slice:function(e,t){if(void 0!==Ju&&void 0===t)return Ju.call(x(this),e);for(var n=x(this).byteLength,r=dt(e,n),i=dt(void 0===t?n:t,n),o=new(Ac(this,Uu))(ut(i-r)),a=new Yu(this),s=new Yu(o),l=0;r<i;)s.setUint8(l++,a.getUint8(r++));return o}}),Zs(Xu),yn(yn.G+yn.W+yn.F*!zu.ABV,{DataView:Qu.DataView});var Ku=il&&rl||il,Zu=e(function(e){if(qe){var y=it,m=Ye,_=$e,A=yn,b=zu,t=Qu,h=nt,w=mc,n=Xe,k=Ke,r=Cc,i=ot,C=ut,E=Hu,o=dt,a=Je,s=Ze,x=Mr,S=Ue,p=cr,f=Ka,P=kn,T=fr,O=an.f,v=es,l=et,c=rt,u=ms,d=yt,g=Ac,D=Ku,I=zo,N=ts,F=Zs,M=Ws,R=js,L=Ge,B=En,j=L.f,z=B.f,H=m.RangeError,V=m.TypeError,W=m.Uint8Array,Q="ArrayBuffer",$="Shared"+Q,U="BYTES_PER_ELEMENT",Y="prototype",q=Array[Y],J=t.ArrayBuffer,G=t.DataView,X=u(0),K=u(2),Z=u(3),ee=u(4),te=u(5),ne=u(6),re=d(!0),ie=d(!1),oe=D.values,ae=D.keys,se=D.entries,le=q.lastIndexOf,ce=q.reduce,ue=q.reduceRight,de=q.join,he=q.sort,pe=q.slice,fe=q.toString,ve=q.toLocaleString,ge=c("iterator"),ye=c("toStringTag"),me=l("typed_constructor"),_e=l("def_constructor"),Ae=b.CONSTR,be=b.TYPED,we=b.VIEW,ke="Wrong length!",Ce=u(1,function(e,t){return Te(g(e,e[_e]),t)}),Ee=_(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),xe=!!W&&!!W[Y].set&&_(function(){new W(1).set({})}),Se=function(e,t){var n=i(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(S(e)&&be in e)return e;throw V(e+" is not a typed array!")},Te=function(e,t){if(!(S(e)&&me in e))throw V("It is not a typed array constructor!");return new e(t)},Oe=function(e,t){return De(g(e,e[_e]),t)},De=function(e,t){for(var n=0,r=t.length,i=Te(e,r);n<r;)i[n]=t[n++];return i},Ie=function(e,t,n){j(e,t,{get:function(){return this._d[n]}})},Ne=function(e){var t,n,r,i,o,a,s=p(e),l=arguments.length,c=1<l?arguments[1]:void 0,u=void 0!==c,d=v(s);if(null!=d&&!f(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(u&&2<l&&(c=h(c,arguments[2],2)),t=0,n=C(s.length),i=Te(this,n);t<n;t++)i[t]=u?c(s[t],t):s[t];return i},Fe=function(){for(var e=0,t=arguments.length,n=Te(this,t);e<t;)n[e]=arguments[e++];return n},Me=!!W&&_(function(){ve.call(new W(1))}),Re=function(){return ve.apply(Me?pe.call(Pe(this)):Pe(this),arguments)},Le={copyWithin:function(e,t){return R.call(Pe(this),e,t,2<arguments.length?arguments[2]:void 0)},every:function(e){return ee(Pe(this),e,1<arguments.length?arguments[1]:void 0)},fill:function(e){return M.apply(Pe(this),arguments)},filter:function(e){return Oe(this,K(Pe(this),e,1<arguments.length?arguments[1]:void 0))},find:function(e){return te(Pe(this),e,1<arguments.length?arguments[1]:void 0)},findIndex:function(e){return ne(Pe(this),e,1<arguments.length?arguments[1]:void 0)},forEach:function(e){X(Pe(this),e,1<arguments.length?arguments[1]:void 0)},indexOf:function(e){return ie(Pe(this),e,1<arguments.length?arguments[1]:void 0)},includes:function(e){return re(Pe(this),e,1<arguments.length?arguments[1]:void 0)},join:function(e){return de.apply(Pe(this),arguments)},lastIndexOf:function(e){return le.apply(Pe(this),arguments)},map:function(e){return Ce(Pe(this),e,1<arguments.length?arguments[1]:void 0)},reduce:function(e){return ce.apply(Pe(this),arguments)},reduceRight:function(e){return ue.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return Z(Pe(this),e,1<arguments.length?arguments[1]:void 0)},sort:function(e){return he.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,i=o(e,r);return new(g(n,n[_e]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,C((void 0===t?r:o(t,r))-i))}},Be=function(e,t){return Oe(this,pe.call(Pe(this),e,t))},je=function(e){Pe(this);var t=Se(arguments[1],1),n=this.length,r=p(e),i=C(r.length),o=0;if(n<i+t)throw H(ke);for(;o<i;)this[t+o]=r[o++]},ze={entries:function(){return se.call(Pe(this))},keys:function(){return ae.call(Pe(this))},values:function(){return oe.call(Pe(this))}},He=function(e,t){return S(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ve=function(e,t){return He(e,t=a(t,!0))?n(2,e[t]):z(e,t)},We=function(e,t,n){return!(He(e,t=a(t,!0))&&S(n)&&s(n,"value"))||s(n,"get")||s(n,"set")||n.configurable||s(n,"writable")&&!n.writable||s(n,"enumerable")&&!n.enumerable?j(e,t,n):(e[t]=n.value,e)};Ae||(B.f=Ve,L.f=We),A(A.S+A.F*!Ae,"Object",{getOwnPropertyDescriptor:Ve,defineProperty:We}),_(function(){fe.call({})})&&(fe=ve=function(){return de.call(this)});var Qe=r({},Le);r(Qe,ze),k(Qe,ge,ze.values),r(Qe,{slice:Be,set:je,constructor:function(){},toString:fe,toLocaleString:Re}),Ie(Qe,"buffer","b"),Ie(Qe,"byteOffset","o"),Ie(Qe,"byteLength","l"),Ie(Qe,"length","e"),j(Qe,ye,{get:function(){return this[be]}}),e.exports=function(e,d,t,o){var h=e+((o=!!o)?"Clamped":"")+"Array",n="get"+e,a="set"+e,p=m[h],s=p||{},r=p&&T(p),i=!p||!b.ABV,l={},c=p&&p[Y],f=function(e,i){j(e,i,{get:function(){return e=i,(t=this._d).v[n](e*d+t.o,Ee);var e,t},set:function(e){return t=i,n=e,r=this._d,o&&(n=(n=Math.round(n))<0?0:255<n?255:255&n),void r.v[a](t*d+r.o,n,Ee);var t,n,r},enumerable:!0})};i?(p=t(function(e,t,n,r){w(e,p,h,"_d");var i,o,a,s,l=0,c=0;if(S(t)){if(!(t instanceof J||(s=x(t))==Q||s==$))return be in t?De(p,t):Ne.call(p,t);i=t,c=Se(n,d);var u=t.byteLength;if(void 0===r){if(u%d)throw H(ke);if((o=u-c)<0)throw H(ke)}else if(u<(o=C(r)*d)+c)throw H(ke);a=o/d}else a=E(t),i=new J(o=a*d);for(k(e,"_d",{b:i,o:c,l:o,e:a,v:new G(i)});l<a;)f(e,l++)}),c=p[Y]=P(Qe),k(c,"constructor",p)):_(function(){p(1)})&&_(function(){new p(-1)})&&N(function(e){new p,new p(null),new p(1.5),new p(e)},!0)||(p=t(function(e,t,n,r){var i;return w(e,p,h),S(t)?t instanceof J||(i=x(t))==Q||i==$?void 0!==r?new s(t,Se(n,d),r):void 0!==n?new s(t,Se(n,d)):new s(t):be in t?De(p,t):Ne.call(p,t):new s(E(t))}),X(r!==Function.prototype?O(s).concat(O(r)):O(s),function(e){e in p||k(p,e,s[e])}),p[Y]=c,y||(c.constructor=p));var u=c[ge],v=!!u&&("values"==u.name||null==u.name),g=ze.values;k(p,me,!0),k(c,be,h),k(c,we,!0),k(c,_e,p),(o?new p(1)[ye]==h:ye in c)||j(c,ye,{get:function(){return h}}),l[h]=p,A(A.G+A.W+A.F*(p!=s),l),A(A.S,h,{BYTES_PER_ELEMENT:d}),A(A.S+A.F*_(function(){s.of.call(p,1)}),h,{from:Ne,of:Fe}),U in c||k(c,U,d),A(A.P,h,Le),F(h),A(A.P+A.F*xe,h,{set:je}),A(A.P+A.F*!v,h,ze),y||c.toString==fe||(c.toString=fe),A(A.P+A.F*_(function(){new p(1).slice()}),h,{slice:Be}),A(A.P+A.F*(_(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!_(function(){c.toLocaleString.call([1,2])})),h,{toLocaleString:Re}),I[h]=v?u:g,y||v||k(c,ge,g)}}else e.exports=function(){}}),ed=Object.freeze({default:Zu,__moduleExports:Zu}),td=ed&&Zu||ed;td("Int8",1,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Uint8",1,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Uint8",1,function(r){return function(e,t,n){return r(this,e,t,n)}},!0),td("Int16",2,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Uint16",2,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Int32",4,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Uint32",4,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Float32",4,function(r){return function(e,t,n){return r(this,e,t,n)}}),td("Float64",8,function(r){return function(e,t,n){return r(this,e,t,n)}});var nd=(Ye.Reflect||{}).apply,rd=Function.apply;yn(yn.S+yn.F*!$e(function(){nd(function(){})}),"Reflect",{apply:function(e,t,n){var r=$(e),i=x(n);return nd?nd(r,t,i):rd.call(r,t,i)}});var id=(Ye.Reflect||{}).construct,od=$e(function(){function e(){}return!(id(function(){},[],e)instanceof e)}),ad=!$e(function(){id(function(){})});yn(yn.S+yn.F*(od||ad),"Reflect",{construct:function(e,t){$(e),x(t);var n=arguments.length<3?e:$(arguments[2]);if(ad&&!od)return id(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(Qr.apply(e,r))}var i=n.prototype,o=kn(Ue(i)?i:Object.prototype),a=Function.apply.call(e,o,t);return Ue(a)?a:o}}),yn(yn.S+yn.F*$e(function(){Reflect.defineProperty(Ge.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){x(e),t=Je(t,!0),x(n);try{return Ge.f(e,t,n),!0}catch(e){return!1}}});var sd=En.f;yn(yn.S,"Reflect",{deleteProperty:function(e,t){var n=sd(x(e),t);return!(n&&!n.configurable)&&delete e[t]}});var ld=function(e){this._t=x(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};Ho(ld,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),yn(yn.S,"Reflect",{enumerate:function(e){return new ld(e)}}),yn(yn.S,"Reflect",{get:function e(t,n){var r,i,o=arguments.length<3?t:arguments[2];return x(t)===o?t[n]:(r=En.f(t,n))?Ze(r,"value")?r.value:void 0!==r.get?r.get.call(o):void 0:Ue(i=fr(t))?e(i,n,o):void 0}}),yn(yn.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return En.f(x(e),t)}}),yn(yn.S,"Reflect",{getPrototypeOf:function(e){return fr(x(e))}}),yn(yn.S,"Reflect",{has:function(e,t){return t in e}});var cd=Object.isExtensible;yn(yn.S,"Reflect",{isExtensible:function(e){return x(e),!cd||cd(e)}});var ud=Ye.Reflect,dd=ud&&ud.ownKeys||function(e){var t=an.f(x(e)),n=Rt.f;return n?t.concat(n(e)):t},hd=Object.freeze({default:dd,__moduleExports:dd}),pd=hd&&dd||hd;yn(yn.S,"Reflect",{ownKeys:pd});var fd=Object.preventExtensions;yn(yn.S,"Reflect",{preventExtensions:function(e){x(e);try{return fd&&fd(e),!0}catch(e){return!1}}}),yn(yn.S,"Reflect",{set:function e(t,n,r){var i,o,a=arguments.length<4?t:arguments[3],s=En.f(x(t),n);if(!s){if(Ue(o=fr(t)))return e(o,n,r,a);s=Xe(0)}return Ze(s,"value")?!(!1===s.writable||!Ue(a)||((i=En.f(a,n)||Xe(0)).value=r,Ge.f(a,n,i),0)):void 0!==s.set&&(s.set.call(a,r),!0)}}),Or&&yn(yn.S,"Reflect",{setPrototypeOf:function(e,t){Or.check(e,t);try{return Or.set(e,t),!0}catch(e){return!1}}});var vd=yt(!0);yn(yn.P,"Array",{includes:function(e){return vd(this,e,1<arguments.length?arguments[1]:void 0)}}),zs("includes");var gd=rt("isConcatSpreadable");var yd=function e(t,n,r,i,o,a,s,l){for(var c,u,d=o,h=0,p=!!s&&nt(s,l,3);h<i;){if(h in r){if(c=p?p(r[h],h,n):r[h],u=!1,Ue(c)&&(u=void 0!==(u=c[gd])?!!u:wn(c)),u&&0<a)d=e(t,n,c,ut(c.length),d,a-1)-1;else{if(9007199254740991<=d)throw TypeError();t[d]=c}d++}h++}return d},md=Object.freeze({default:yd,__moduleExports:yd}),_d=md&&yd||md;yn(yn.P,"Array",{flatMap:function(e){var t,n,r=cr(this);return $(e),t=ut(r.length),n=vs(r,0),_d(n,r,r,t,0,1,e,arguments[1]),n}}),zs("flatMap"),yn(yn.P,"Array",{flatten:function(){var e=arguments[0],t=cr(this),n=ut(t.length),r=vs(t,0);return _d(r,t,t,n,0,void 0===e?1:ot(e)),r}}),zs("flatten");var Ad=Jo(!0);yn(yn.P,"String",{at:function(e){return Ad(this,e)}});var bd=function(e,t,n,r){var i=String(Fe(e)),o=i.length,a=void 0===n?" ":String(n),s=ut(t);if(s<=o||""==a)return i;var l=s-o,c=Hi.call(a,Math.ceil(l/a.length));return c.length>l&&(c=c.slice(0,l)),r?c+i:i+c},wd=Object.freeze({default:bd,__moduleExports:bd}),kd=Ye.navigator,Cd=kd&&kd.userAgent||"",Ed=Object.freeze({default:Cd,__moduleExports:Cd}),xd=wd&&bd||wd,Sd=Ed&&Cd||Ed;yn(yn.P+yn.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(Sd),"String",{padStart:function(e){return xd(this,e,1<arguments.length?arguments[1]:void 0,!0)}}),yn(yn.P+yn.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(Sd),"String",{padEnd:function(e){return xd(this,e,1<arguments.length?arguments[1]:void 0,!1)}}),ai("trimLeft",function(e){return function(){return e(this,1)}},"trimStart"),ai("trimRight",function(e){return function(){return e(this,2)}},"trimEnd");var Pd=RegExp.prototype,Td=function(e,t){this._r=e,this._s=t};Ho(Td,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),yn(yn.P,"String",{matchAll:function(e){if(Fe(this),!na(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in Pd?String(e.flags):sl.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=ut(e.lastIndex),new Td(r,t)}}),An("asyncIterator"),An("observable"),yn(yn.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=ct(e),i=En.f,o=pd(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&Za(a,t,n);return a}});var Od=Lt.f,Dd=function(s){return function(e){for(var t,n=ct(e),r=Mt(n),i=r.length,o=0,a=[];o<i;)Od.call(n,t=r[o++])&&a.push(s?[t,n[t]]:n[t]);return a}},Id=Object.freeze({default:Dd,__moduleExports:Dd}),Nd=Id&&Dd||Id,Fd=Nd(!1);yn(yn.S,"Object",{values:function(e){return Fd(e)}});var Md=Nd(!0);yn(yn.S,"Object",{entries:function(e){return Md(e)}});var Rd=it||!$e(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete Ye[e]}),Ld=Object.freeze({default:Rd,__moduleExports:Rd}),Bd=Ld&&Rd||Ld;qe&&yn(yn.P+Bd,"Object",{__defineGetter__:function(e,t){Ge.f(cr(this),e,{get:$(t),enumerable:!0,configurable:!0})}}),qe&&yn(yn.P+Bd,"Object",{__defineSetter__:function(e,t){Ge.f(cr(this),e,{set:$(t),enumerable:!0,configurable:!0})}});var jd=En.f;qe&&yn(yn.P+Bd,"Object",{__lookupGetter__:function(e){var t,n=cr(this),r=Je(e,!0);do{if(t=jd(n,r))return t.get}while(n=fr(n))}});var zd=En.f;qe&&yn(yn.P+Bd,"Object",{__lookupSetter__:function(e){var t,n=cr(this),r=Je(e,!0);do{if(t=zd(n,r))return t.set}while(n=fr(n))}});var Hd=function(e,t){var n=[];return _c(e,!1,n.push,n,t),n},Vd=Object.freeze({default:Hd,__moduleExports:Hd}),Wd=Vd&&Hd||Vd,Qd=function(e){return function(){if(Mr(this)!=e)throw TypeError(e+"#toJSON isn't generic");return Wd(this)}},$d=Object.freeze({default:Qd,__moduleExports:Qd}),Ud=$d&&Qd||$d;yn(yn.P+yn.R,"Map",{toJSON:Ud("Map")}),yn(yn.P+yn.R,"Set",{toJSON:Ud("Set")});var Yd=function(e){yn(yn.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})},qd=Object.freeze({default:Yd,__moduleExports:Yd}),Jd=qd&&Yd||qd;Jd("Map"),Jd("Set"),Jd("WeakMap"),Jd("WeakSet");var Gd=function(e){yn(yn.S,e,{from:function(e){var t,n,r,i,o=arguments[1];return $(this),(t=void 0!==o)&&$(o),null==e?new this:(n=[],t?(r=0,i=nt(o,arguments[2],2),_c(e,!1,function(e){n.push(i(e,r++))})):_c(e,!1,n.push,n),new this(n))}})},Xd=Object.freeze({default:Gd,__moduleExports:Gd}),Kd=Xd&&Gd||Xd;Kd("Map"),Kd("Set"),Kd("WeakMap"),Kd("WeakSet"),yn(yn.G,{global:Ye}),yn(yn.S,"System",{global:Ye}),yn(yn.S,"Error",{isError:function(e){return"Error"===Pe(e)}}),yn(yn.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}}),yn(yn.S,"Math",{DEG_PER_RAD:Math.PI/180});var Zd=180/Math.PI;yn(yn.S,"Math",{degrees:function(e){return e*Zd}});var eh=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r},th=Object.freeze({default:eh,__moduleExports:eh}),nh=th&&eh||th;yn(yn.S,"Math",{fscale:function(e,t,n,r,i){return xo(nh(e,t,n,r,i))}}),yn(yn.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}}),yn(yn.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}}),yn(yn.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,l=(a*o>>>0)+(i*o>>>16);return a*s+(l>>16)+((i*s>>>0)+(65535&l)>>16)}}),yn(yn.S,"Math",{RAD_PER_DEG:180/Math.PI});var rh=Math.PI/180;yn(yn.S,"Math",{radians:function(e){return e*rh}}),yn(yn.S,"Math",{scale:nh}),yn(yn.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,l=(a*o>>>0)+(i*o>>>16);return a*s+(l>>>16)+((i*s>>>0)+(65535&l)>>>16)}}),yn(yn.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:0<e}}),yn(yn.P+yn.R,"Promise",{finally:function(t){var n=Ac(this,z.Promise||Ye.Promise),e="function"==typeof t;return this.then(e?function(e){return kc(n,t()).then(function(){return e})}:t,e?function(e){return kc(n,t()).then(function(){throw e})}:t)}}),yn(yn.S,"Promise",{try:function(e){var t=pc.f(this),n=wc(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}});var ih=au&&ou||au,oh=ku&&wu||ku,ah=ue("metadata"),sh=ah.store||(ah.store=new oh),lh=function(e,t,n){var r=sh.get(e);if(!r){if(!n)return;sh.set(e,r=new ih)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new ih)}return i},ch={store:sh,map:lh,has:function(e,t,n){var r=lh(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=lh(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){lh(n,r,!0).set(e,t)},keys:function(e,t){var n=lh(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){yn(yn.S,"Reflect",e)}},uh=ch.store,dh=ch.map,hh=ch.has,ph=ch.get,fh=ch.set,vh=ch.keys,gh=ch.key,yh=ch.exp,mh=Object.freeze({default:ch,__moduleExports:ch,store:uh,map:dh,has:hh,get:ph,set:fh,keys:vh,key:gh,exp:yh}),_h=mh&&ch||mh,Ah=_h.key,bh=_h.set;_h.exp({defineMetadata:function(e,t,n,r){bh(e,t,x(n),Ah(r))}});var wh=_h.key,kh=_h.map,Ch=_h.store;_h.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:wh(arguments[2]),r=kh(x(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var i=Ch.get(t);return i.delete(n),!!i.size||Ch.delete(t)}});var Eh=_h.has,xh=_h.get,Sh=_h.key,Ph=function(e,t,n){if(Eh(e,t,n))return xh(e,t,n);var r=fr(t);return null!==r?Ph(e,r,n):void 0};_h.exp({getMetadata:function(e,t){return Ph(e,x(t),arguments.length<3?void 0:Sh(arguments[2]))}});var Th=lu&&su||lu,Oh=_h.keys,Dh=_h.key,Ih=function(e,t){var n=Oh(e,t),r=fr(e);if(null===r)return n;var i=Ih(r,t);return i.length?n.length?Wd(new Th(n.concat(i))):i:n};_h.exp({getMetadataKeys:function(e){return Ih(x(e),arguments.length<2?void 0:Dh(arguments[1]))}});var Nh=_h.get,Fh=_h.key;_h.exp({getOwnMetadata:function(e,t){return Nh(e,x(t),arguments.length<3?void 0:Fh(arguments[2]))}});var Mh=_h.keys,Rh=_h.key;_h.exp({getOwnMetadataKeys:function(e){return Mh(x(e),arguments.length<2?void 0:Rh(arguments[1]))}});var Lh=_h.has,Bh=_h.key,jh=function(e,t,n){if(Lh(e,t,n))return!0;var r=fr(t);return null!==r&&jh(e,r,n)};_h.exp({hasMetadata:function(e,t){return jh(e,x(t),arguments.length<3?void 0:Bh(arguments[2]))}});var zh=_h.has,Hh=_h.key;_h.exp({hasOwnMetadata:function(e,t){return zh(e,x(t),arguments.length<3?void 0:Hh(arguments[2]))}});var Vh=_h.key,Wh=_h.set;_h.exp({metadata:function(n,r){return function(e,t){Wh(n,r,(void 0!==t?x:$)(e),Vh(t))}}});var Qh=bc(),$h=Ye.process,Uh="process"==Pe($h);yn(yn.G,{asap:function(e){var t=Uh&&$h.domain;Qh(t?t.bind(e):e)}});var Yh=bc(),qh=rt("observable"),Jh=_c.RETURN,Gh=function(e){return null==e?void 0:$(e)},Xh=function(e){var t=e._c;t&&(e._c=void 0,t())},Kh=function(e){return void 0===e._o},Zh=function(e){Kh(e)||(e._o=void 0,Xh(e))},ep=function(t,e){x(t),this._c=void 0,this._o=t,t=new tp(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:$(n),this._c=n)}catch(e){return void t.error(e)}Kh(this)&&Xh(this)};ep.prototype=Cc({},{unsubscribe:function(){Zh(this)}});var tp=function(e){this._s=e};tp.prototype=Cc({},{next:function(e){var t=this._s;if(!Kh(t)){var n=t._o;try{var r=Gh(n.next);if(r)return r.call(n,e)}catch(e){try{Zh(t)}finally{throw e}}}},error:function(e){var t=this._s;if(Kh(t))throw e;var n=t._o;t._o=void 0;try{var r=Gh(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{Xh(t)}finally{throw e}}return Xh(t),e},complete:function(e){var t=this._s;if(!Kh(t)){var n=t._o;t._o=void 0;try{var r=Gh(n.complete);e=r?r.call(n,e):void 0}catch(e){try{Xh(t)}finally{throw e}}return Xh(t),e}}});var np=function(e){mc(this,np,"Observable","_f")._f=$(e)};Cc(np.prototype,{subscribe:function(e){return new ep(e,this._f)},forEach:function(r){var i=this;return new(z.Promise||Ye.Promise)(function(e,t){$(r);var n=i.subscribe({next:function(e){try{return r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e})})}}),Cc(np,{from:function(e){var t="function"==typeof this?this:np,n=Gh(x(e)[qh]);if(n){var r=x(n.call(e));return r.constructor===t?r:new t(function(e){return r.subscribe(e)})}return new t(function(t){var n=!1;return Yh(function(){if(!n){try{if(_c(e,!1,function(e){if(t.next(e),n)return Jh})===Jh)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e<t;)r[e]=arguments[e++];return new("function"==typeof this?this:np)(function(t){var n=!1;return Yh(function(){if(!n){for(var e=0;e<r.length;++e)if(t.next(r[e]),n)return;t.complete()}}),function(){n=!0}})}}),Ke(np.prototype,qh,function(){return this}),yn(yn.G,{Observable:np}),Zs("Observable");var rp=[].slice,ip=/MSIE .\./.test(Sd),op=function(i){return function(e,t){var n=2<arguments.length,r=!!n&&rp.call(arguments,2);return i(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,t)}};yn(yn.G+yn.B+yn.F*ip,{setTimeout:op(Ye.setTimeout),setInterval:op(Ye.setInterval)}),yn(yn.G+yn.B,{setImmediate:Jl.set,clearImmediate:Jl.clear});for(var ap=rt("iterator"),sp=rt("toStringTag"),lp=zo.Array,cp={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},up=Mt(cp),dp=0;dp<up.length;dp++){var hp,pp=up[dp],fp=cp[pp],vp=Ye[pp],gp=vp&&vp.prototype;if(gp&&(gp[ap]||Ke(gp,ap,lp),gp[sp]||Ke(gp,sp,pp),zo[pp]=lp,fp))for(hp in Ku)gp[hp]||q(gp,hp,Ku[hp],!0)}e(function(D){!function(e){var l,t=Object.prototype,c=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag",a=e.regeneratorRuntime;if(a)D.exports=a;else{(a=e.regeneratorRuntime=D.exports).wrap=m;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",v={},s={};s[i]=function(){return this};var u=Object.getPrototypeOf,g=u&&u(u(T([])));g&&g!==t&&c.call(g,i)&&(s=g);var y=w.prototype=A.prototype=Object.create(s);b.prototype=y.constructor=w,w.constructor=b,w[o]=b.displayName="GeneratorFunction",a.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,o in e||(e[o]="GeneratorFunction")),e.prototype=Object.create(y),e},a.awrap=function(e){return{__await:e}},k(C.prototype),C.prototype[r]=function(){return this},a.AsyncIterator=C,a.async=function(e,t,n,r){var i=new C(m(e,t,n,r));return a.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},k(y),y[o]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},a.keys=function(n){var r=[];for(var e in n)r.push(e);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=l)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function e(e,t){return o.type="throw",o.arg=n,r.next=e,t&&(r.method="next",r.arg=l),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var i=this.tryEntries[t],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),s=c.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=l),v}}}function m(e,t,n,r){var o,a,s,l,i=t&&t.prototype instanceof A?t:A,c=Object.create(i.prototype),u=new P(r||[]);return c._invoke=(o=e,a=n,s=u,l=d,function(e,t){if(l===p)throw new Error("Generator is already running");if(l===f){if("throw"===e)throw t;return O()}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n){var r=E(n,s);if(r){if(r===v)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===d)throw l=f,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=p;var i=_(o,a,s);if("normal"===i.type){if(l=s.done?f:h,i.arg===v)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l=f,s.method="throw",s.arg=i.arg)}}),c}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function A(){}function b(){}function w(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(s){function l(e,t,n,r){var i=_(s[e],s,t);if("throw"!==i.type){var o=i.arg,a=o.value;return a&&"object"==typeof a&&c.call(a,"__await")?Promise.resolve(a.__await).then(function(e){l("next",e,n,r)},function(e){l("throw",e,n,r)}):Promise.resolve(a).then(function(e){o.value=e,n(o)},r)}r(i.arg)}var t;"object"==typeof e.process&&e.process.domain&&(l=e.process.domain.bind(l)),this._invoke=function(n,r){function e(){return new Promise(function(e,t){l(n,r,e,t)})}return t=t?t.then(e,e):e()}}function E(e,t){var n=e.iterator[t.method];if(n===l){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=l,E(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=_(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,v;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=l),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function T(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(c.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=l,e.done=!0,e};return r.next=r}}return{next:O}}function O(){return{value:l,done:!0}}}("object"==typeof Qo?Qo:"object"==typeof window?window:"object"==typeof self?self:Qo)});var yp=function(t,n){var r=n===Object(n)?function(e){return n[e]}:n;return function(e){return String(e).replace(t,r)}},mp=Object.freeze({default:yp,__moduleExports:yp}),_p=(mp&&yp||mp)(/[\\^$*+?.()|[\]{}]/g,"\\$&");yn(yn.S,"RegExp",{escape:function(e){return _p(e)}});z.RegExp.escape;if(Qo._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");Qo._babelPolyfill=!0;function Ap(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}Ap(String.prototype,"padLeft","".padStart),Ap(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&Ap(Array,e,Function.call.bind([][e]))}),function(){if(window.customElements){new Function("var NativeHTMLElement = window.HTMLElement; var nativeDefine = window.customElements.define; var nativeGet = window.customElements.get; var tagnameByConstructor = new Map(); var constructorByTagname = new Map(); var browserConstruction = false; var userConstruction = false; window.HTMLElement = function() { if (!browserConstruction) { var tagname = tagnameByConstructor.get(this.constructor); var fakeClass = nativeGet.call(window.customElements, tagname); userConstruction = true; var instance = new (fakeClass)(); return instance; } browserConstruction = false; }; window.HTMLElement.prototype = NativeHTMLElement.prototype; var define = function (tagname, elementClass) { var elementProto = elementClass.prototype; var StandInElement = class extends NativeHTMLElement { constructor() { super(); Object.setPrototypeOf(this, elementProto); if (!userConstruction) { browserConstruction = true; elementClass.call(this); } userConstruction = false; } }; var standInProto = StandInElement.prototype; StandInElement.observedAttributes = elementClass.observedAttributes; standInProto.connectedCallback = elementProto.connectedCallback; standInProto.disconnectedCallback = elementProto.disconnectedCallback; standInProto.attributeChangedCallback = elementProto.attributeChangedCallback; standInProto.adoptedCallback = elementProto.adoptedCallback; tagnameByConstructor.set(elementClass, tagname); constructorByTagname.set(tagname, elementClass); nativeDefine.call(window.customElements, tagname, StandInElement); }; var get = function (tagname) {return constructorByTagname.get(tagname)}; Object.defineProperty(window, 'customElements', {value: window.customElements, configurable: true, writable: true}); Object.defineProperty(window.customElements, 'define', {value: define, configurable: true, writable: true}); Object.defineProperty(window.customElements, 'get', {value: get, configurable: true, writable: true});")()}}(),function(){var e,r="undefined"!=typeof window&&window===this?this:void 0!==Qo&&null!=Qo?Qo:this,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function n(){n=function(){},r.Symbol||(r.Symbol=o)}var i,o=(i=0,function(e){return"jscomp_symbol_"+(e||"")+i++});function l(){n();var e=r.Symbol.iterator;e||(e=r.Symbol.iterator=r.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&t(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return c(this)}}),l=function(){}}function c(e){var t,n=0;return t=function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}},l(),(t={next:t})[r.Symbol.iterator]=function(){return this},t}!function(){if((t=document.createEvent("Event")).initEvent("foo",!0,!0),t.preventDefault(),!t.defaultPrevented){var e=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(e.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var t,n=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||n&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||n&&"function"!=typeof window.Event){var r=window.Event;if(window.Event=function(e,t){t=t||{};var n=document.createEvent("Event");return n.initEvent(e,!!t.bubbles,!!t.cancelable),n},r)for(var i in r)window.Event[i]=r[i];window.Event.prototype=r.prototype}if(!window.MouseEvent||n&&"function"!=typeof window.MouseEvent){if(n=window.MouseEvent,window.MouseEvent=function(e,t){t=t||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(e,!!t.bubbles,!!t.cancelable,t.view||window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),n},n)for(i in n)window.MouseEvent[i]=n[i];window.MouseEvent.prototype=n.prototype}Array.from||(Array.from=function(e){return[].slice.call(e)}),Object.assign||(Object.assign=function(e,t){for(var n,r=[].slice.call(arguments,1),i=0;i<r.length;i++)if(n=r[i])for(var o=e,a=n,s=Object.getOwnPropertyNames(a),l=0;l<s.length;l++)o[n=s[l]]=a[n];return e})}(window.WebComponents),function(){function l(){}function c(e,t){if(!e.childNodes.length)return[];switch(e.nodeType){case Node.DOCUMENT_NODE:return s.call(e,t);case Node.DOCUMENT_FRAGMENT_NODE:return f.call(e,t);default:return a.call(e,t)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),u=!1;/Trident/.test(navigator.userAgent)&&function(){function n(e,t){if(e instanceof DocumentFragment)for(var n;n=e.firstChild;)r.call(this,n,t);else r.call(this,e,t);return e}u=!0;var t=Node.prototype.cloneNode;Node.prototype.cloneNode=function(e){return e=t.call(this,e),this instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var r=Node.prototype.insertBefore;Node.prototype.insertBefore=n;var i=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?n.call(this,e,null):i.call(this,e),e};var o=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,t){return e instanceof DocumentFragment?(n.call(this,e,t),o.call(this,t)):a.call(this,e,t),t},Document.prototype.createDocumentFragment=function(){var e=this.createElement("df");return e.__proto__=DocumentFragment.prototype,e};var s=Document.prototype.importNode;Document.prototype.importNode=function(e,t){return t=s.call(this,e,t||!1),e instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t}}();var i=Node.prototype.cloneNode,d=Document.prototype.createElement,h=Document.prototype.importNode,t=Node.prototype.removeChild,o=Node.prototype.appendChild,p=Node.prototype.replaceChild,a=Element.prototype.querySelectorAll,s=Document.prototype.querySelectorAll,f=DocumentFragment.prototype.querySelectorAll,e=function(){if(!n){var e=document.createElement("template"),t=document.createElement("template");return t.content.appendChild(document.createElement("div")),e.content.appendChild(t),0===(e=e.cloneNode(!0)).content.childNodes.length||0===e.content.firstChild.content.childNodes.length||r}}();if(n){var v=document.implementation.createHTMLDocument("template"),g=!0,y=document.createElement("style");y.textContent="template{display:none;}";var m=document.head;m.insertBefore(y,m.firstElementChild),l.prototype=Object.create(HTMLElement.prototype);var _=!document.createElement("div").hasOwnProperty("innerHTML");l.R=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=v.createDocumentFragment();for(var t;t=e.firstChild;)o.call(e.content,t);if(_)e.__proto__=l.prototype;else if(e.cloneNode=function(e){return l.a(this,e)},g)try{A(e),b(e)}catch(e){g=!1}l.b(e.content)}};var A=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return S(this)},set:function(e){for(v.body.innerHTML=e,l.b(v);this.content.firstChild;)t.call(this.content,this.content.firstChild);for(;v.body.firstChild;)o.call(this.content,v.body.firstChild)},configurable:!0})},b=function(e){Object.defineProperty(e,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(e){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(v.body.innerHTML=e,e=this.ownerDocument.createDocumentFragment();v.body.firstChild;)o.call(e,v.body.firstChild);p.call(this.parentNode,e,this)},configurable:!0})};A(l.prototype),b(l.prototype),l.b=function(e){for(var t,n=0,r=(e=c(e,"template")).length;n<r&&(t=e[n]);n++)l.R(t)},document.addEventListener("DOMContentLoaded",function(){l.b(document)}),Document.prototype.createElement=function(){var e=d.apply(this,arguments);return"template"===e.localName&&l.R(e),e};var w=/[&\u00A0"]/g,k=/[&\u00A0<>]/g,C=function(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},E=(y=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),x=y("style script xmp iframe noembed noframes plaintext noscript".split(" ")),S=function(e,t){"template"===e.localName&&(e=e.content);for(var n,r="",i=t?t(e):e.childNodes,o=0,a=i.length;o<a&&(n=i[o]);o++){e:{var s=n,l=e,c=t;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,d="<"+u,h=s.attributes,p=0;l=h[p];p++)d+=" "+l.name+'="'+l.value.replace(w,C)+'"';d+=">",s=E[u]?d:d+S(s,c)+"</"+u+">";break e;case Node.TEXT_NODE:s=s.data,s=l&&x[l.localName]?s:s.replace(k,C);break e;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break e;default:throw window.console.error(s),Error("not implemented")}}r+=s}return r}}if(n||e){l.a=function(e,t){var n=i.call(e,!1);return this.R&&this.R(n),t&&(o.call(n.content,i.call(e.content,!0)),P(n.content,e.content)),n};var P=function(e,t){if(t.querySelectorAll&&0!==(t=c(t,"template")).length)for(var n,r,i=0,o=(e=c(e,"template")).length;i<o;i++)r=t[i],n=e[i],l.R&&l.R(r),p.call(n.parentNode,T.call(r,!0),n)},T=Node.prototype.cloneNode=function(e){if(!u&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var t=O.call(this.ownerDocument,this,!0)}else t=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?l.a(this,e):i.call(this,e);return e&&P(t,this),t},O=Document.prototype.importNode=function(e,t){if(t=t||!1,"template"===e.localName)return l.a(e,t);var n=h.call(this,e,t);if(t){P(n,e),e=c(n,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var r,i=0;i<e.length;i++){r=e[i],(t=d.call(document,"script")).textContent=r.textContent;for(var o,a=r.attributes,s=0;s<a.length;s++)o=a[s],t.setAttribute(o.name,o.value);p.call(r.parentNode,t,r)}}return n}}n&&(window.HTMLTemplateElement=l)}();var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=0,u=("undefined"!=typeof window?window:void 0)||{},d=u.MutationObserver||u.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var f,v,g,y,m,_,A,b=Array(1e3);function w(){for(var e=0;e<s;e+=2)(0,b[e])(b[e+1]),b[e]=void 0,b[e+1]=void 0;s=0}if(h)v=function(){return process.xb(w)};else{var k;if(d)m=0,_=new d(w),A=document.createTextNode(""),_.observe(A,{characterData:!0}),k=function(){A.data=m=++m%2};else k=p?((y=new MessageChannel).port1.onmessage=w,function(){return y.port2.postMessage(0)}):(g=setTimeout,function(){return g(w,1)});v=k}function C(e,t){b[s]=e,b[s+1]=t,2===(s+=2)&&f()}function E(e,t){var n=this,r=new this.constructor(P);void 0===r[S]&&V(r);var i=n.o;if(i){var o=arguments[i-1];C(function(){return z(i,r,o,n.l)})}else R(n,r,e,t);return r}function x(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(P);return I(t,e),t}f=v;var S=Math.random().toString(36).substring(16);function P(){}var T=new B;function O(e){try{return e.then}catch(e){return T.error=e,T}}function D(e,t,n){var a,r,i,o;t.constructor===e.constructor&&n===E&&t.constructor.resolve===x?(i=e,1===(o=t).o?F(i,o.l):2===o.o?M(i,o.l):R(o,void 0,function(e){return I(i,e)},function(e){return M(i,e)})):n===T?(M(e,T.error),T.error=null):void 0===n?F(e,t):"function"==typeof n?(a=t,r=n,C(function(i){var o=!1,e=function(e,t,n,r){try{e.call(t,function(e){o||(o=!0,a!==e?I(i,e):F(i,e))},function(e){o||(o=!0,M(i,e))})}catch(e){return e}}(r,a);!o&&e&&(o=!0,M(i,e))},e)):F(e,t)}function I(e,t){if(e===t)M(e,new TypeError("You cannot resolve a promise with itself"));else{var n=typeof t;null===t||"object"!==n&&"function"!==n?F(e,t):D(e,t,O(t))}}function N(e){e.xa&&e.xa(e.l),L(e)}function F(e,t){void 0===e.o&&(e.l=t,e.o=1,0!==e.U.length&&C(L,e))}function M(e,t){void 0===e.o&&(e.o=2,e.l=t,C(N,e))}function R(e,t,n,r){var i=e.U,o=i.length;e.xa=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e.o&&C(L,e)}function L(e){var t=e.U,n=e.o;if(0!==t.length){for(var r,i,o=e.l,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?z(n,r,i,o):i(o);e.U.length=0}}function B(){this.error=null}var j=new B;function z(e,t,n,r){var i="function"==typeof n;if(i){try{var o=n(r)}catch(e){j.error=e,o=j}if(o===j){var a=!0,s=o.error;o.error=null}else var l=!0;if(t===o)return void M(t,new TypeError("A promises callback cannot return that same promise."))}else o=r,l=!0;void 0===t.o&&(i&&l?I(t,o):a?M(t,s):1===e?F(t,o):2===e&&M(t,o))}var H=0;function V(e){e[S]=H++,e.o=void 0,e.l=void 0,e.U=[]}function W(e,t,n){var r=e.Na,i=r.resolve;i===x?(i=O(t))===E&&void 0!==t.o?Q(e,t.o,n,t.l):"function"!=typeof i?(e.$--,e.l[n]=t):r===U?(D(r=new r(P),t,i),$(e,r,n)):$(e,new r(function(e){return e(t)}),n):$(e,i(t),n)}function Q(e,t,n,r){var i=e.N;void 0===i.o&&(e.$--,2===t?M(i,r):e.l[n]=r),0===e.$&&F(i,e.l)}function $(t,e,n){R(e,void 0,function(e){return Q(t,1,n,e)},function(e){return Q(t,2,n,e)})}function U(e){if(this[S]=H++,this.l=this.o=void 0,this.U=[],P!==e){if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof U))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");!function(t,e){try{e(function(e){I(t,e)},function(e){M(t,e)})}catch(e){M(t,e)}}(this,e)}}U.prototype={constructor:U,then:E,a:function(e){return this.then(null,e)}},window.Promise||((window.Promise=U).prototype.catch=U.prototype.a,U.prototype.then=U.prototype.then,U.all=function(e){return new function(e,t){if(this.Na=e,this.N=new e(P),this.N[S]||V(this.N),a(t))if(this.$=this.length=t.length,this.l=Array(this.length),0===this.length)F(this.N,this.l);else{for(this.length=this.length||0,e=0;void 0===this.o&&e<t.length;e++)W(this,t[e],e);0===this.$&&F(this.N,this.l)}else M(this.N,Error("Array Methods must be provided an Array"))}(this,e).N},U.race=function(i){var o=this;return a(i)?new o(function(e,t){for(var n=i.length,r=0;r<n;r++)o.resolve(i[r]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})},U.resolve=x,U.reject=function(e){var t=new this(P);return M(t,e),t}),window.WebComponents=window.WebComponents||{flags:{}};var Y=document.querySelector('script[src*="webcomponents-bundle"]'),q=/wc-(.+)/,J={};if(!J.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var t;(e=e.split("="))[0]&&(t=e[0].match(q))&&(J[t[1]]=e[1]||!0)}),Y)for(var G,X=0;G=Y.attributes[X];X++)"src"!==G.name&&(J[G.name]=G.value||!0);if(J.log&&J.log.split){var K=J.log.split(",");J.log={},K.forEach(function(e){J.log[e]=!0})}else J.log={}}var Z=(window.WebComponents.flags=J).shadydom;Z&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=Z);var ee=J.register||J.ce;function te(){this.Da=this.root=null,this.da=!1,this.L=this.Z=this.pa=this.assignedSlot=this.assignedNodes=this.S=null,this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.V=void 0,this.Ia=this.va=!1}function ne(e){return e.ka||(e.ka=new te),e.ka}function re(e){return e&&e.ka}ee&&window.customElements&&(window.customElements.forcePolyfill=ee),te.prototype.toJSON=function(){return{}};var ie=window.ShadyDOM||{};ie.Ua=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var oe=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");ie.I=!!(oe&&oe.configurable&&oe.get),ie.Ba=ie.force||!ie.Ua;var ae=navigator.userAgent.match("Trident"),se=navigator.userAgent.match("Edge"),le=document.createElement("div");function ce(e){return(e=re(e))&&void 0!==e.firstChild}function ue(e){return"ShadyRoot"===e.Oa}function de(e){if(ue(e=e.getRootNode()))return e}ie.I&&Object.getOwnPropertyDescriptor(le,"shadowRoot")&&(ie.I=!1),void 0===ie.Fa&&(ie.Fa=ie.I&&(ae||se));var he=Element.prototype,pe=he.matches||he.matchesSelector||he.mozMatchesSelector||he.msMatchesSelector||he.oMatchesSelector||he.webkitMatchesSelector;function fe(e,t){if(e&&t)for(var n,r=Object.getOwnPropertyNames(t),i=0;i<r.length&&(n=r[i]);i++){var o=Object.getOwnPropertyDescriptor(t,n);o&&Object.defineProperty(e,n,o)}}function ve(e,t){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];for(r=0;r<n.length;r++)fe(e,n[r]);return e}var ge=document.createTextNode(""),ye=0,me=[];function _e(e){me.push(e),ge.textContent=ye++}new MutationObserver(function(){for(;me.length;)try{me.shift()()}catch(e){throw ge.textContent=ye++,e}}).observe(ge,{characterData:!0});var Ae=!!document.contains;function be(e,t){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}var we,ke=[];function Ce(e){we||(we=!0,_e(Ee)),ke.push(e)}function Ee(){we=!1;for(var e=!!ke.length;ke.length;)ke.shift()();return e}function xe(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.ca=new Set}Ee.list=ke,xe.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var Se={},Pe=Element.prototype.insertBefore,Te=Element.prototype.replaceChild,Oe=Element.prototype.removeChild,De=Element.prototype.setAttribute,Ie=Element.prototype.removeAttribute,Ne=Element.prototype.cloneNode,Fe=Document.prototype.importNode,Me=Element.prototype.addEventListener,Re=Element.prototype.removeEventListener,Le=Window.prototype.addEventListener,Be=Window.prototype.removeEventListener,je=Element.prototype.dispatchEvent,ze=Node.prototype.contains||HTMLElement.prototype.contains,He=Document.prototype.getElementById,Ve=Element.prototype.querySelector,We=DocumentFragment.prototype.querySelector,Qe=Document.prototype.querySelector,$e=Element.prototype.querySelectorAll,Ue=DocumentFragment.prototype.querySelectorAll,Ye=Document.prototype.querySelectorAll;Se.appendChild=Element.prototype.appendChild,Se.insertBefore=Pe,Se.replaceChild=Te,Se.removeChild=Oe,Se.setAttribute=De,Se.removeAttribute=Ie,Se.cloneNode=Ne,Se.importNode=Fe,Se.addEventListener=Me,Se.removeEventListener=Re,Se.eb=Le,Se.fb=Be,Se.dispatchEvent=je,Se.contains=ze,Se.getElementById=He,Se.ob=Ve,Se.sb=We,Se.mb=Qe,Se.querySelector=function(e){switch(this.nodeType){case Node.ELEMENT_NODE:return Ve.call(this,e);case Node.DOCUMENT_NODE:return Qe.call(this,e);default:return We.call(this,e)}},Se.pb=$e,Se.tb=Ue,Se.nb=Ye,Se.querySelectorAll=function(e){switch(this.nodeType){case Node.ELEMENT_NODE:return $e.call(this,e);case Node.DOCUMENT_NODE:return Ye.call(this,e);default:return Ue.call(this,e)}};var qe=/[&\u00A0"]/g,Je=/[&\u00A0<>]/g;function Ge(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function Xe(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var Ke=Xe("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Ze=Xe("style script xmp iframe noembed noframes plaintext noscript".split(" "));function et(e,t){"template"===e.localName&&(e=e.content);for(var n,r="",i=t?t(e):e.childNodes,o=0,a=i.length;o<a&&(n=i[o]);o++){e:{var s=n,l=e,c=t;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,d="<"+u,h=s.attributes,p=0;l=h[p];p++)d+=" "+l.name+'="'+l.value.replace(qe,Ge)+'"';d+=">",s=Ke[u]?d:d+et(s,c)+"</"+u+">";break e;case Node.TEXT_NODE:s=s.data,s=l&&Ze[l.localName]?s:s.replace(Je,Ge);break e;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break e;default:throw window.console.error(s),Error("not implemented")}}r+=s}return r}var tt={},nt=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),rt=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function it(e){var t=[];for(nt.currentNode=e,e=nt.firstChild();e;)t.push(e),e=nt.nextSibling();return t}tt.parentNode=function(e){return nt.currentNode=e,nt.parentNode()},tt.firstChild=function(e){return nt.currentNode=e,nt.firstChild()},tt.lastChild=function(e){return nt.currentNode=e,nt.lastChild()},tt.previousSibling=function(e){return nt.currentNode=e,nt.previousSibling()},tt.nextSibling=function(e){return nt.currentNode=e,nt.nextSibling()},tt.childNodes=it,tt.parentElement=function(e){return rt.currentNode=e,rt.parentNode()},tt.firstElementChild=function(e){return rt.currentNode=e,rt.firstChild()},tt.lastElementChild=function(e){return rt.currentNode=e,rt.lastChild()},tt.previousElementSibling=function(e){return rt.currentNode=e,rt.previousSibling()},tt.nextElementSibling=function(e){return rt.currentNode=e,rt.nextSibling()},tt.children=function(e){var t=[];for(rt.currentNode=e,e=rt.firstChild();e;)t.push(e),e=rt.nextSibling();return t},tt.innerHTML=function(e){return et(e,function(e){return it(e)})},tt.textContent=function(e){switch(e.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:e=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);for(var t,n="";t=e.nextNode();)n+=t.nodeValue;return n;default:return e.nodeValue}};var ot={},at=ie.I,st=[Node.prototype,Element.prototype,HTMLElement.prototype];function lt(e){var t;e:{for(t=0;t<st.length;t++){var n=st[t];if(n.hasOwnProperty(e)){t=n;break e}}t=void 0}return t?Object.getOwnPropertyDescriptor(t,e):t}var ct=at?{parentNode:lt("parentNode"),firstChild:lt("firstChild"),lastChild:lt("lastChild"),previousSibling:lt("previousSibling"),nextSibling:lt("nextSibling"),childNodes:lt("childNodes"),parentElement:lt("parentElement"),previousElementSibling:lt("previousElementSibling"),nextElementSibling:lt("nextElementSibling"),innerHTML:lt("innerHTML"),textContent:lt("textContent"),firstElementChild:lt("firstElementChild"),lastElementChild:lt("lastElementChild"),children:lt("children")}:{},ut=at?{firstElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(DocumentFragment.prototype,"children")}:{},dt=at?{firstElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"firstElementChild"),lastElementChild:Object.getOwnPropertyDescriptor(Document.prototype,"lastElementChild"),children:Object.getOwnPropertyDescriptor(Document.prototype,"children")}:{};ot.Ca=ct,ot.rb=ut,ot.lb=dt,ot.parentNode=function(e){return ct.parentNode.get.call(e)},ot.firstChild=function(e){return ct.firstChild.get.call(e)},ot.lastChild=function(e){return ct.lastChild.get.call(e)},ot.previousSibling=function(e){return ct.previousSibling.get.call(e)},ot.nextSibling=function(e){return ct.nextSibling.get.call(e)},ot.childNodes=function(e){return ct.childNodes.get.call(e)},ot.parentElement=function(e){return ct.parentElement?ct.parentElement.get.call(e):ct.parentNode.get.call(e)},ot.previousElementSibling=function(e){if(ct.previousElementSibling)return ct.previousElementSibling.get.call(e);for(;;){var t=ct.previousSibling.get.call(e);if(1===t.nodeType||null===t)return t;e=t}},ot.nextElementSibling=function(e){if(ct.nextElementSibling)return ct.nextElementSibling.get.call(e);for(;;){var t=ct.nextSibling.get.call(e);if(1===t.nodeType||null===t)return t;e=t}},ot.innerHTML=function(e){return ct.innerHTML.get.call(e)},ot.textContent=function(e){return ct.textContent.get.call(e)},ot.children=function(e){switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:e=ut.children.get.call(e);break;case Node.DOCUMENT_NODE:e=dt.children.get.call(e);break;default:e=ct.children.get.call(e)}return Array.prototype.slice.call(e)},ot.firstElementChild=function(e){switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return ut.firstElementChild.get.call(e);case Node.DOCUMENT_NODE:return dt.firstElementChild.get.call(e);default:return ct.firstElementChild.get.call(e)}},ot.lastElementChild=function(e){switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return ut.lastElementChild.get.call(e);case Node.DOCUMENT_NODE:return dt.lastElementChild.get.call(e);default:return ct.lastElementChild.get.call(e)}};var ht=ie.I?ot:tt;function pt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}var ft=ie.I,vt=document.implementation.createHTMLDocument("inert"),gt=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),yt=gt&&gt.get,mt=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),_t={parentElement:{get:function(){var e=re(this);return(e=e&&e.parentNode)&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:ht.parentElement(this)},configurable:!0},parentNode:{get:function(){var e=re(this);return void 0!==(e=e&&e.parentNode)?e:ht.parentNode(this)},configurable:!0},nextSibling:{get:function(){var e=re(this);return void 0!==(e=e&&e.nextSibling)?e:ht.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var e=re(this);return void 0!==(e=e&&e.previousSibling)?e:ht.previousSibling(this)},configurable:!0},nextElementSibling:{get:function(){var e=re(this);if(e&&void 0!==e.nextSibling){for(e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}return ht.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){var e=re(this);if(e&&void 0!==e.previousSibling){for(e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}return ht.previousElementSibling(this)},configurable:!0}},At={className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)},configurable:!0}},bt={childNodes:{get:function(){if(ce(this)){var e=re(this);if(!e.childNodes){e.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)e.childNodes.push(t)}var n=e.childNodes}else n=ht.childNodes(this);return n.item=function(e){return n[e]},n},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var e=re(this);return void 0!==(e=e&&e.firstChild)?e:ht.firstChild(this)},configurable:!0},lastChild:{get:function(){var e=re(this);return void 0!==(e=e&&e.lastChild)?e:ht.lastChild(this)},configurable:!0},textContent:{get:function(){if(ce(this)){for(var e,t=[],n=0,r=this.childNodes;e=r[n];n++)e.nodeType!==Node.COMMENT_NODE&&t.push(e.textContent);return t.join("")}return ht.textContent(this)},set:function(e){switch(null==e&&(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!ce(this)&&ft){var t=this.firstChild;(t!=this.lastChild||t&&t.nodeType!=Node.TEXT_NODE)&&pt(this),ot.Ca.textContent.set.call(this,e)}else pt(this),(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(e));break;default:this.nodeValue=e}},configurable:!0},firstElementChild:{get:function(){var e=re(this);if(e&&void 0!==e.firstChild){for(e=this.firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}return ht.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){var e=re(this);if(e&&void 0!==e.lastChild){for(e=this.lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}return ht.lastElementChild(this)},configurable:!0},children:{get:function(){var t;return(t=ce(this)?Array.prototype.filter.call(this.childNodes,function(e){return e.nodeType===Node.ELEMENT_NODE}):ht.children(this)).item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){return ce(this)?et("template"===this.localName?this.content:this):ht.innerHTML(this)},set:function(e){var t="template"===this.localName?this.content:this;pt(t);var n=this.localName;for(n&&"template"!==n||(n="div"),n=vt.createElement(n),ft?ot.Ca.innerHTML.set.call(n,e):n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild)},configurable:!0}},wt={shadowRoot:{get:function(){var e=re(this);return e&&e.Da||null},configurable:!0}},kt={activeElement:{get:function(){var e=mt&&mt.get?mt.get.call(document):ie.I?void 0:document.activeElement;if(e&&e.nodeType){var t=!!ue(this);if(this===document||t&&this.host!==e&&Se.contains.call(this.host,e)){for(t=de(e);t&&t!==this;)t=de(e=t.host);e=this===document?t?null:e:t===this?e:null}else e=null}else e=null;return e},set:function(){},configurable:!0}};function Ct(e,t,n){for(var r in t){var i=Object.getOwnPropertyDescriptor(e,r);i&&i.configurable||!i&&n?Object.defineProperty(e,r,t[r]):n&&console.warn("Could not define",r,"on",e)}}function Et(e){Ct(e,_t),Ct(e,At),Ct(e,bt),Ct(e,kt)}var xt=ie.I?function(){}:function(e){var t=ne(e);t.va||(t.va=!0,Ct(e,_t,!0),Ct(e,At,!0))},St=ie.I?function(){}:function(e){ne(e).Ia||(Ct(e,bt,!0),Ct(e,wt,!0))},Pt=ht.childNodes;function Tt(e,t,n){xt(e),n=n||null;var r=ne(e),i=ne(t),o=n?ne(n):null;r.previousSibling=n?o.previousSibling:t.lastChild,(o=re(r.previousSibling))&&(o.nextSibling=e),(o=re(r.nextSibling=n))&&(o.previousSibling=e),r.parentNode=t,n?n===i.firstChild&&(i.firstChild=e):(i.lastChild=e,i.firstChild||(i.firstChild=e)),i.childNodes=null}function Ot(e,t){var n=ne(e);if(void 0===n.firstChild)for(t=t||Pt(e),n.firstChild=t[0]||null,n.lastChild=t[t.length-1]||null,St(e),n=0;n<t.length;n++){var r=t[n],i=ne(r);i.parentNode=e,i.nextSibling=t[n+1]||null,i.previousSibling=t[n-1]||null,xt(r)}}var Dt=ht.parentNode;function It(e,t,n){if(t===e)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=re(n);if(void 0!==(r=r&&r.parentNode)&&r!==e||void 0===r&&Dt(n)!==e)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===t)return t;var i,o,a;(t.parentNode&&Nt(t.parentNode,t),t.__noInsertionPoint)||((o=i=de(e))&&("slot"===t.localName?a=[t]:t.querySelectorAll&&(a=t.querySelectorAll("slot")),o=a&&a.length?a:void 0),o&&(r=o,(a=i).a=a.a||[],a.m=a.m||[],a.w=a.w||{},a.a.push.apply(a.a,[].concat(r instanceof Array?r:function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(function(e){l();var t=e[Symbol.iterator];return t?t.call(e):c(e)}(r))))));if(("slot"===e.localName||o)&&(i=i||de(e))&&dn(i),ce(e)){if(i=n,St(e),void 0!==(o=ne(e)).firstChild&&(o.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(o=t.childNodes,a=0;a<o.length;a++)Tt(o[a],e,i);o=void 0!==(i=ne(t)).firstChild?null:void 0,i.firstChild=i.lastChild=o,i.childNodes=o}else Tt(t,e,i);if(i=re(e),Ft(e)){dn(i.root);var s=!0}else i.root&&(s=!0)}return s||(s=ue(e)?e.host:e,n?(n=function e(t){var n=t;return t&&"slot"===t.localName&&(n=(n=(n=re(t))&&n.L)&&n.length?n[0]:e(t.nextSibling)),n}(n),Se.insertBefore.call(s,t,n)):Se.appendChild.call(s,t)),Rt(e,t),t}function Nt(e,t){if(t.parentNode!==e)throw Error("The node to be removed is not a child of this node: "+t);var n=de(t),r=re(e);if(ce(e)){var i=ne(t),o=ne(e);t===o.firstChild&&(o.firstChild=i.nextSibling),t===o.lastChild&&(o.lastChild=i.previousSibling);var a=i.previousSibling,s=i.nextSibling;if(a&&(ne(a).nextSibling=s),s&&(ne(s).previousSibling=a),i.parentNode=i.previousSibling=i.nextSibling=void 0,void 0!==o.childNodes&&(o.childNodes=null),Ft(e)){dn(r.root);var l=!0}}if(function e(t){var n=re(t);if(n&&void 0!==n.V)for(var r,i=0,o=(n=t.childNodes).length;i<o&&(r=n[i]);i++)e(r);(t=re(t))&&(t.V=void 0)}(t),n){if((i=e&&"slot"===e.localName)&&(l=!0),n.m){for(f in gn(n),o=n.w)for(a=o[f],s=0;s<a.length;s++){var c=a[s];if(be(t,c)){a.splice(s,1);var u=n.m.indexOf(c);if(0<=u&&n.m.splice(u,1),s--,c=(u=re(c)).L)for(var d=0;d<c.length;d++){var h=c[d],p=an(h);p&&Se.removeChild.call(p,h)}u.L=[],u.assignedNodes=[],u=!0}}var f=u}else f=void 0;(f||i)&&dn(n)}return l||(l=ue(e)?e.host:e,(!r.root&&"slot"!==t.localName||l===Dt(t))&&Se.removeChild.call(l,t)),Rt(e,null,t),t}function Ft(e){return(e=(e=re(e))&&e.root)&&_n(e)}function Mt(e,t){if("slot"===t)Ft(e=e.parentNode)&&dn(re(e).root);else if("slot"===e.localName&&"name"===t&&(t=de(e))){if(t.m){var n=e.Ja,r=yn(e);if(r!==n){var i=(n=t.w[n]).indexOf(e);0<=i&&n.splice(i,1),(n=t.w[r]||(t.w[r]=[])).push(e),1<n.length&&(t.w[r]=mn(n))}}dn(t)}}function Rt(e,t,n){var r;(e=(e=re(e))&&e.S)&&(t&&e.addedNodes.push(t),n&&e.removedNodes.push(n),(r=e).a||(r.a=!0,_e(function(){!function(e){if(e.a){e.a=!1;var t=e.takeRecords();t.length&&e.ca.forEach(function(e){e(t)})}}(r)})))}function Lt(e,t,n){var r=[];return function e(t,n,r,i){for(var o,a=0,s=t.length;a<s&&(o=t[a]);a++){var l;if(l=o.nodeType===Node.ELEMENT_NODE){var c=n,u=r,d=i,h=c(l=o);h&&d.push(l),l=u&&u(h)?h:void e(l.childNodes,c,u,d)}if(l)break}}(e.childNodes,t,n,r),r}var Bt=null;function jt(e,t,n){Bt||(Bt=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Bt&&"class"===t?Bt.setElementClass(e,n):(Se.setAttribute.call(e,t,n),Mt(e,t))}var zt="__eventWrappers"+Date.now(),Ht={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0};function Vt(e,t){var n=[],r=e;for(e=e===window?window:e.getRootNode();r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Wt(e,t){e=Vt(e,!0);for(var n,r,i,o,a=0;a<t.length;a++)if((i=(n=t[a])===window?window:n.getRootNode())!==r&&(o=e.indexOf(i),r=i),!ue(i)||-1<o)return n}var Qt={get composed(){return!1!==this.isTrusted&&void 0===this.ha&&(this.ha=Ht[this.type]),this.ha||!1},composedPath:function(){return this.ta||(this.ta=Vt(this.__target,this.composed)),this.ta},get target(){return Wt(this.currentTarget,this.composedPath())},get relatedTarget(){return this.ja?(this.wa||(this.wa=Vt(this.ja,!0)),Wt(this.currentTarget,this.wa)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ia=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ia=this.Ha=!0}};function $t(n){function e(e,t){return(e=new n(e,t)).ha=t&&!!t.composed,e}return function(e,t){for(var n in t)e[n]=t[n]}(e,n),e.prototype=n.prototype,e}var Ut={focus:!0,blur:!0};function Yt(e){return e.__target!==e.target||e.ja!==e.relatedTarget}function qt(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,i=0;(r=n[i])&&(!Yt(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.Ha);i++);}function Jt(e){var t,n=e.composedPath();Object.defineProperty(e,"currentTarget",{get:function(){return i},configurable:!0});for(var r=n.length-1;0<=r;r--){var i=n[r];if(qt(e,i,"capture"),e.ia)return}for(Object.defineProperty(e,"eventPhase",{get:function(){return Event.AT_TARGET}}),r=0;r<n.length;r++){var o=re(i=n[r]);if(o=o&&o.root,(0===r||o&&o===t)&&(qt(e,i,"bubble"),i!==window&&(t=i.getRootNode()),e.ia))break}}function Gt(e,t,n,r,i,o){for(var a=0;a<e.length;a++){var s=e[a],l=s.type,c=s.capture,u=s.once,d=s.passive;if(t===s.node&&n===l&&r===c&&i===u&&o===d)return a}return-1}function Xt(r,i,o){if(i){var a=typeof i;if(("function"===a||"object"===a)&&("object"!==a||i.handleEvent&&"function"==typeof i.handleEvent)){if(o&&"object"==typeof o)var e=!!o.capture,s=!!o.once,t=!!o.passive;else e=!!o,t=s=!1;var l=o&&o.la||this,n=i[zt];if(n){if(-1<Gt(n,l,r,e,s,t))return}else i[zt]=[];n=function(e){if(s&&this.removeEventListener(r,i,o),e.__target||Zt(e),l!==this){var t=Object.getOwnPropertyDescriptor(e,"currentTarget");Object.defineProperty(e,"currentTarget",{get:function(){return l},configurable:!0})}if(e.composed||-1<e.composedPath().indexOf(l))if(Yt(e)&&e.target===e.relatedTarget)e.eventPhase===Event.BUBBLING_PHASE&&e.stopImmediatePropagation();else if(e.eventPhase===Event.CAPTURING_PHASE||e.bubbles||e.target===l||l instanceof Window){var n="function"===a?i.call(l,e):i.handleEvent&&i.handleEvent(e);return l!==this&&(t?(Object.defineProperty(e,"currentTarget",t),t=null):delete e.currentTarget),n}},i[zt].push({node:l,type:r,capture:e,once:s,passive:t,gb:n}),Ut[r]?(this.__handlers=this.__handlers||{},this.__handlers[r]=this.__handlers[r]||{capture:[],bubble:[]},this.__handlers[r][e?"capture":"bubble"].push(n)):(this instanceof Window?Se.eb:Se.addEventListener).call(this,r,n,o)}}}function Kt(e,t,n){if(t){if(n&&"object"==typeof n)var r=!!n.capture,i=!!n.once,o=!!n.passive;else r=!!n,o=i=!1;var a=n&&n.la||this,s=void 0,l=null;try{l=t[zt]}catch(e){}l&&-1<(i=Gt(l,a,e,r,i,o))&&(s=l.splice(i,1)[0].gb,l.length||(t[zt]=void 0)),(this instanceof Window?Se.fb:Se.removeEventListener).call(this,e,s||t,n),s&&Ut[e]&&this.__handlers&&this.__handlers[e]&&-1<(s=(e=this.__handlers[e][r?"capture":"bubble"]).indexOf(s))&&e.splice(s,1)}}function Zt(e){if(e.__target=e.target,e.ja=e.relatedTarget,ie.I){var t=Object.getPrototypeOf(e);if(!t.hasOwnProperty("__patchProto")){var n=Object.create(t);n.ib=t,fe(n,Qt),t.__patchProto=n}e.__proto__=t.__patchProto}else fe(e,Qt)}var en=$t(window.Event),tn=$t(window.CustomEvent),nn=$t(window.MouseEvent);function rn(e,t){return{index:e,W:[],ba:t}}function on(e,t,n,r){var i,o,a=0,s=0,l=0,c=0,u=Math.min(t-a,r-s);if(0==a&&0==s)e:{for(l=0;l<u;l++)if(e[l]!==n[l])break e;l=u}if(t==e.length&&r==n.length){c=e.length;for(var d=n.length,h=0;h<u-l&&(i=e[--c],o=n[--d],i===o);)h++;c=h}if(s+=l,r-=c,0==(t-=c)-(a+=l)&&0==r-s)return[];if(a==t){for(t=rn(a,0);s<r;)t.W.push(n[s++]);return[t]}if(s==r)return[rn(a,t-a)];for(r=r-(l=s)+1,c=t-(u=a)+1,t=Array(r),d=0;d<r;d++)t[d]=Array(c),t[d][0]=d;for(d=0;d<c;d++)t[0][d]=d;for(d=1;d<r;d++)for(h=1;h<c;h++)if(e[u+h-1]===n[l+d-1])t[d][h]=t[d-1][h-1];else{var p=t[d-1][h]+1,f=t[d][h-1]+1;t[d][h]=p<f?p:f}for(u=t.length-1,l=t[0].length-1,r=t[u][l],e=[];0<u||0<l;)0==u?(e.push(2),l--):0==l?(e.push(3),u--):(c=t[u-1][l-1],(p=(d=t[u-1][l])<(h=t[u][l-1])?d<c?d:c:h<c?h:c)==c?(c==r?e.push(0):(e.push(1),r=c),u--,l--):r=p==d?(e.push(3),u--,d):(e.push(2),l--,h));for(e.reverse(),t=void 0,u=[],l=0;l<e.length;l++)switch(e[l]){case 0:t&&(u.push(t),t=void 0),a++,s++;break;case 1:t||(t=rn(a,0)),t.ba++,a++,t.W.push(n[s]),s++;break;case 2:t||(t=rn(a,0)),t.ba++,a++;break;case 3:t||(t=rn(a,0)),t.W.push(n[s]),s++}return t&&u.push(t),u}var an=ht.parentNode,sn=ht.childNodes,ln={};function cn(e){for(var t=[];t.unshift(e),e=e.parentNode;);return t}function un(e,t,n){if(e!==ln)throw new TypeError("Illegal constructor");this.Oa="ShadyRoot",e=sn(t),e=Array.prototype.slice.call(e),this.host=t,this.b=n&&n.mode,Ot(t,e),(n=re(t)).root=this,n.Da="closed"!==this.b?this:null,(n=ne(this)).firstChild=n.lastChild=n.parentNode=n.nextSibling=n.previousSibling=null,n.childNodes=[],this.aa=!1,this.a=this.w=this.m=null,n=0;for(var r=e.length;n<r;n++)Se.removeChild.call(t,e[n])}function dn(e){e.aa||(e.aa=!0,Ce(function(){return hn(e)}))}function hn(e){for(var t;e;){e.aa&&(t=e);e:{var n=e;if(ue(e=n.host.getRootNode()))for(var r=n.host.childNodes,i=0;i<r.length;i++)if("slot"==(n=r[i]).localName)break e;e=void 0}}t&&t._renderRoot()}function pn(e,t,n){var r=ne(t),i=r.Z;r.Z=null,n||(n=(e=e.w[t.slot||"__catchall"])&&e[0]),r.assignedSlot=n?(ne(n).assignedNodes.push(t),n):void 0,i!==r.assignedSlot&&r.assignedSlot&&(ne(r.assignedSlot).da=!0)}function fn(e,t,n){for(var r,i=0;i<n.length&&(r=n[i]);i++)if("slot"==r.localName){var o=re(r).assignedNodes;o&&o.length&&fn(e,t,o)}else t.push(n[i])}function vn(e,t){Se.dispatchEvent.call(t,new Event("slotchange")),(t=re(t)).assignedSlot&&vn(e,t.assignedSlot)}function gn(e){if(e.a&&e.a.length){for(var t,n=e.a,r=0;r<n.length;r++){var i=n[r];Ot(i),Ot(i.parentNode);var o=yn(i);e.w[o]?((t=t||{})[o]=!0,e.w[o].push(i)):e.w[o]=[i],e.m.push(i)}if(t)for(var a in t)e.w[a]=mn(e.w[a]);e.a=[]}}function yn(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.Ja=t}function mn(e){return e.sort(function(e,t){e=cn(e);for(var n=cn(t),r=0;r<e.length;r++){t=e[r];var i=n[r];if(t!==i)return(e=Array.from(t.parentNode.childNodes)).indexOf(t)-e.indexOf(i)}})}function _n(e){return gn(e),!(!e.m||!e.m.length)}function An(e){var t=e.getRootNode();return ue(t)&&hn(t),(e=re(e))&&e.assignedSlot||null}un.prototype._renderRoot=function(){if(this.aa=!1,this.m){gn(this);for(var e,t=0;t<this.m.length;t++){var n=re(e=this.m[t]),r=n.assignedNodes;if(n.assignedNodes=[],n.L=[],n.pa=r)for(n=0;n<r.length;n++){var i=re(r[n]);i.Z=i.assignedSlot,i.assignedSlot===e&&(i.assignedSlot=null)}}for(e=this.host.firstChild;e;e=e.nextSibling)pn(this,e);for(t=0;t<this.m.length;t++){if(!(r=re(e=this.m[t])).assignedNodes.length)for(n=e.firstChild;n;n=n.nextSibling)pn(this,n,e);if((n=(n=re(e.parentNode))&&n.root)&&_n(n)&&n._renderRoot(),fn(this,r.L,r.assignedNodes),n=r.pa){for(i=0;i<n.length;i++)re(n[i]).Z=null;r.pa=null,n.length>r.assignedNodes.length&&(r.da=!0)}r.da&&(r.da=!1,vn(this,e))}for(t=this.m,e=[],r=0;r<t.length;r++)(i=re(n=t[r].parentNode))&&i.root||!(e.indexOf(n)<0)||e.push(n);for(t=0;t<e.length;t++){n=(r=e[t])===this?this.host:r,i=[],r=r.childNodes;for(var o=0;o<r.length;o++){var a=r[o];if("slot"==a.localName){a=re(a).L;for(var s=0;s<a.length;s++)i.push(a[s])}else i.push(a)}r=void 0,o=sn(n),o=Array.prototype.slice.call(o),a=on(i,i.length,o,o.length);for(var l=s=0;s<a.length&&(r=a[s]);s++){for(var c,u=0;u<r.W.length&&(c=r.W[u]);u++)an(c)===n&&Se.removeChild.call(n,c),o.splice(r.index+l,1);l-=r.ba}for(l=0;l<a.length&&(r=a[l]);l++)for(s=o[r.index],u=r.index;u<r.index+r.ba;u++)c=i[u],Se.insertBefore.call(n,c,s),o.splice(u,0,c)}}};var bn={addEventListener:Xt.bind(window),removeEventListener:Kt.bind(window)},wn={addEventListener:Xt,removeEventListener:Kt,appendChild:function(e){return It(this,e)},insertBefore:function(e,t){return It(this,e,t)},removeChild:function(e){return Nt(this,e)},replaceChild:function(e,t){return It(this,e,t),Nt(this,t),e},cloneNode:function(e){if("template"==this.localName)var t=Se.cloneNode.call(this,e);else if(t=Se.cloneNode.call(this,!1),e){e=this.childNodes;for(var n,r=0;r<e.length;r++)n=e[r].cloneNode(!0),t.appendChild(n)}return t},getRootNode:function(){return function e(t){if(t&&t.nodeType){var n=ne(t),r=n.V;return void 0===r&&(ue(t)?(r=t,n.V=r):(r=(r=t.parentNode)?e(r):t,Se.contains.call(document.documentElement,t)&&(n.V=r))),r}}(this)},contains:function(e){return be(this,e)},dispatchEvent:function(e){return Ee(),Se.dispatchEvent.call(this,e)}};Object.defineProperties(wn,{isConnected:{get:function(){if(yt&&yt.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var e=this.ownerDocument;if(Ae){if(Se.contains.call(e,this))return!0}else if(e.documentElement&&Se.contains.call(e.documentElement,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.parentNode||(ue(e)?e.host:void 0);return!!(e&&e instanceof Document)},configurable:!0}});var kn={get assignedSlot(){return An(this)}},Cn={querySelector:function(t){return Lt(this,function(e){return pe.call(e,t)},function(e){return!!e})[0]||null},querySelectorAll:function(t,e){if(e){e=Array.prototype.slice.call(Se.querySelectorAll(this,t));var n=this.getRootNode();return e.filter(function(e){return e.getRootNode()==n})}return Lt(this,function(e){return pe.call(e,t)})}},En={assignedNodes:function(e){if("slot"===this.localName){var t=this.getRootNode();return ue(t)&&hn(t),(t=re(this))&&(e&&e.flatten?t.L:t.assignedNodes)||[]}}},xn=ve({setAttribute:function(e,t){jt(this,e,t)},removeAttribute:function(e){Se.removeAttribute.call(this,e),Mt(this,e)},attachShadow:function(e){if(!this)throw"Must provide a host.";if(!e)throw"Not enough arguments.";return new un(ln,this,e)},get slot(){return this.getAttribute("slot")},set slot(e){jt(this,"slot",e)},get assignedSlot(){return An(this)}},Cn,En);Object.defineProperties(xn,wt);var Sn=ve({importNode:function(e,t){return function e(t,n){if(t.ownerDocument!==document)return Se.importNode.call(document,t,n);var r=Se.importNode.call(document,t,!1);if(n){t=t.childNodes,n=0;for(var i;n<t.length;n++)i=e(t[n],!0),r.appendChild(i)}return r}(e,t)},getElementById:function(t){return Lt(this,function(e){return e.id==t},function(e){return!!e})[0]||null}},Cn);Object.defineProperties(Sn,{_activeElement:kt.activeElement});var Pn,Tn=HTMLElement.prototype.blur,On=ve({blur:function(){var e=re(this);(e=(e=e&&e.root)&&e.activeElement)?e.blur():Tn.call(this)}}),Dn={addEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),(n.la=this).host.addEventListener(e,t,n)},removeEventListener:function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),(n.la=this).host.removeEventListener(e,t,n)},getElementById:function(t){return Lt(this,function(e){return e.id==t},function(e){return!!e})[0]||null}};function In(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i);o.value?e[i]=o.value:Object.defineProperty(e,i,o)}}if(ie.Ba){var Nn={inUse:ie.Ba,patch:function(e){return St(e),xt(e),e},isShadyRoot:ue,enqueue:Ce,flush:Ee,settings:ie,filterMutations:function(e,t){var n=t.getRootNode();return e.map(function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=Array.from(e.addedNodes).filter(function(e){return n===e.getRootNode()})).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e}).filter(function(e){return e})},observeChildren:function(e,t){var n=ne(e);n.S||(n.S=new xe),n.S.ca.add(t);var r=n.S;return{La:t,P:r,Pa:e,takeRecords:function(){return r.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.P;t&&(t.ca.delete(e.La),t.ca.size||(ne(e.Pa).S=null))},nativeMethods:Se,nativeTree:ht};window.ShadyDOM=Nn,window.Event=en,window.CustomEvent=tn,window.MouseEvent=nn,function(){for(var e in Ut)window.addEventListener(e,function(e){e.__target||(Zt(e),Jt(e))},!0)}();var Fn=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;In(un.prototype,Dn),In(window.Node.prototype,wn),In(window.Window.prototype,bn),In(window.Text.prototype,kn),In(window.DocumentFragment.prototype,Cn),In(window.Element.prototype,xn),In(window.Document.prototype,Sn),window.HTMLSlotElement&&In(window.HTMLSlotElement.prototype,En),In(Fn.prototype,On),ie.I&&(Et(window.Node.prototype),Et(window.Text.prototype),Et(window.DocumentFragment.prototype),Et(window.Element.prototype),Et(Fn.prototype),Et(window.Document.prototype),window.HTMLSlotElement&&Et(window.HTMLSlotElement.prototype)),(Pn=un.prototype).__proto__=DocumentFragment.prototype,Ct(Pn,_t,!0),Ct(Pn,bt,!0),Ct(Pn,kt,!0),Object.defineProperties(Pn,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}}),["localName","namespaceURI","prefix"].forEach(function(e){Object.defineProperty(Pn,e,{value:void 0,configurable:!0})}),["ownerDocument","baseURI","isConnected"].forEach(function(e){Object.defineProperty(Pn,e,{get:function(){return this.host[e]},configurable:!0})}),window.ShadowRoot=un}var Mn=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function Rn(e){var t=Mn.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!t&&e}function Ln(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function Bn(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function jn(e,t,n){n=void 0===n?new Set:n;for(var r=e;r;){if(r.nodeType===Node.ELEMENT_NODE){var i=r;t(i);var o=i.localName;if("link"===o&&"import"===i.getAttribute("rel")){if((r=i.import)instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)jn(r,t,n);r=Bn(e,i);continue}if("template"===o){r=Bn(e,i);continue}if(i=i.__CE_shadowRoot)for(i=i.firstChild;i;i=i.nextSibling)jn(i,t,n)}r=r.firstChild?r.firstChild:Bn(e,r)}}function zn(e,t,n){e[t]=n}function Hn(){this.a=new Map,this.M=new Map,this.F=[],this.c=!1}function Vn(e,t){e.c=!0,e.F.push(t)}function Wn(t,e){t.c&&jn(e,function(e){return t.b(e)})}function Qn(e,t){var n=[];for(jn(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state?e.connectedCallback(r):Yn(e,r)}}function $n(e,t){var n=[];for(jn(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var r=n[t];1===r.__CE_state&&e.disconnectedCallback(r)}}function Un(r,e,t){var i=(t=void 0===t?{}:t).bb||new Set,o=t.ga||function(e){return Yn(r,e)},a=[];if(jn(e,function(n){if("link"===n.localName&&"import"===n.getAttribute("rel")){var e=n.import;e instanceof Node&&(e.__CE_isImportDocument=!0,e.__CE_hasRegistry=!0),e&&"complete"===e.readyState?e.__CE_documentLoadHandled=!0:n.addEventListener("load",function(){var e=n.import;if(!e.__CE_documentLoadHandled){e.__CE_documentLoadHandled=!0;var t=new Set(i);t.delete(e),Un(r,e,{bb:t,ga:o})}})}else a.push(n)},i),r.c)for(e=0;e<a.length;e++)r.b(a[e]);for(e=0;e<a.length;e++)o(a[e])}function Yn(e,t){if(void 0===t.__CE_state){var n=t.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=e.a.get(t.localName))){n.constructionStack.push(t);var r=n.constructor;try{try{if(new r!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,(t.__CE_definition=n).attributeChangedCallback)for(n=n.observedAttributes,r=0;r<n.length;r++){var i=n[r],o=t.getAttribute(i);null!==o&&e.attributeChangedCallback(t,i,null,o,null)}Ln(t)&&e.connectedCallback(t)}}}function qn(e){var t=document;this.A=e,this.a=t,this.P=void 0,Un(this.A,this.a),"loading"===this.a.readyState&&(this.P=new MutationObserver(this.b.bind(this)),this.P.observe(this.a,{childList:!0,subtree:!0}))}function Jn(e){e.P&&e.P.disconnect()}function Gn(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(e){t.b=e,t.a&&e(t.a)})}function Xn(e){this.ma=!1,this.A=e,this.ra=new Map,this.na=function(e){return e()},this.Y=!1,this.oa=[],this.Ma=new qn(e)}Hn.prototype.b=function(e){if(this.c&&!e.__CE_patched){e.__CE_patched=!0;for(var t=0;t<this.F.length;t++)this.F[t](e)}},Hn.prototype.connectedCallback=function(e){var t=e.__CE_definition;t.connectedCallback&&t.connectedCallback.call(e)},Hn.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;t.disconnectedCallback&&t.disconnectedCallback.call(e)},Hn.prototype.attributeChangedCallback=function(e,t,n,r,i){var o=e.__CE_definition;o.attributeChangedCallback&&-1<o.observedAttributes.indexOf(t)&&o.attributeChangedCallback.call(e,t,n,r,i)},qn.prototype.b=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||Jn(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,r=0;r<n.length;r++)Un(this.A,n[r])},Gn.prototype.resolve=function(e){if(this.a)throw Error("Already resolved.");this.a=e,this.b&&this.b(e)},(e=Xn.prototype).define=function(e,t){var n,r,i,o=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Rn(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.A.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.ma)throw Error("A custom element is already being defined.");this.ma=!0;try{var a=function(e){var t=s[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},s=t.prototype;if(!(s instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var l=a("connectedCallback"),c=a("disconnectedCallback"),u=a("adoptedCallback"),d=a("attributeChangedCallback"),h=t.observedAttributes||[]}catch(e){return}finally{this.ma=!1}t={localName:e,constructor:t,connectedCallback:l,disconnectedCallback:c,adoptedCallback:u,attributeChangedCallback:d,observedAttributes:h,constructionStack:[]},n=this.A,r=e,i=t,n.a.set(r,i),n.M.set(i.constructor,i),this.oa.push(t),this.Y||(this.Y=!0,this.na(function(){return function(r){if(!1!==r.Y){r.Y=!1;for(var e=r.oa,i=[],o=new Map,t=0;t<e.length;t++)o.set(e[t].localName,[]);for(Un(r.A,document,{ga:function(e){if(void 0===e.__CE_state){var t=e.localName,n=o.get(t);n?n.push(e):r.A.a.get(t)&&i.push(e)}}}),t=0;t<i.length;t++)Yn(r.A,i[t]);for(;0<e.length;){var n=e.shift();t=n.localName,n=o.get(n.localName);for(var a=0;a<n.length;a++)Yn(r.A,n[a]);(t=r.ra.get(t))&&t.resolve(void 0)}}}(o)}))},e.ga=function(e){Un(this.A,e)},e.get=function(e){if(e=this.A.a.get(e))return e.constructor},e.whenDefined=function(t){if(!Rn(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.ra.get(t);return e||(e=new Gn,this.ra.set(t,e),this.A.a.get(t)&&!this.oa.some(function(e){return e.localName===t})&&e.resolve(void 0)),e.c},e.Xa=function(t){Jn(this.Ma);var n=this.na;this.na=function(e){return t(function(){return n(e)})}},(window.CustomElementRegistry=Xn).prototype.define=Xn.prototype.define,Xn.prototype.upgrade=Xn.prototype.ga,Xn.prototype.get=Xn.prototype.get,Xn.prototype.whenDefined=Xn.prototype.whenDefined,Xn.prototype.polyfillWrapFlushCallback=Xn.prototype.Xa;var Kn=window.Document.prototype.createElement,Zn=window.Document.prototype.createElementNS,er=window.Document.prototype.importNode,tr=window.Document.prototype.prepend,nr=window.Document.prototype.append,rr=window.DocumentFragment.prototype.prepend,ir=window.DocumentFragment.prototype.append,or=window.Node.prototype.cloneNode,ar=window.Node.prototype.appendChild,sr=window.Node.prototype.insertBefore,lr=window.Node.prototype.removeChild,cr=window.Node.prototype.replaceChild,ur=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),dr=window.Element.prototype.attachShadow,hr=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),pr=window.Element.prototype.getAttribute,fr=window.Element.prototype.setAttribute,vr=window.Element.prototype.removeAttribute,gr=window.Element.prototype.getAttributeNS,yr=window.Element.prototype.setAttributeNS,mr=window.Element.prototype.removeAttributeNS,_r=window.Element.prototype.insertAdjacentElement,Ar=window.Element.prototype.insertAdjacentHTML,br=window.Element.prototype.prepend,wr=window.Element.prototype.append,kr=window.Element.prototype.before,Cr=window.Element.prototype.after,Er=window.Element.prototype.replaceWith,xr=window.Element.prototype.remove,Sr=window.HTMLElement,Pr=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Tr=window.HTMLElement.prototype.insertAdjacentElement,Or=window.HTMLElement.prototype.insertAdjacentHTML,Dr=new function(){};function Ir(s,e,t){function n(a){return function(e){for(var t=[],n=0;n<arguments.length;++n)t[n-0]=arguments[n];n=[];for(var r=[],i=0;i<t.length;i++){var o=t[i];if(o instanceof Element&&Ln(o)&&r.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)n.push(o);else n.push(o)}for(a.apply(this,t),t=0;t<r.length;t++)$n(s,r[t]);if(Ln(this))for(t=0;t<n.length;t++)(r=n[t])instanceof Element&&Qn(s,r)}}void 0!==t.fa&&(e.prepend=n(t.fa)),void 0!==t.append&&(e.append=n(t.append))}var Nr,Fr,Mr=window.customElements;if(!Mr||Mr.forcePolyfill||"function"!=typeof Mr.define||"function"!=typeof Mr.get){var Rr=new Hn;Fr=Rr,window.HTMLElement=function(){function e(){var e=this.constructor,t=Fr.M.get(e);if(!t)throw Error("The custom element being constructed was not registered with `customElements`.");var n=t.constructionStack;if(0===n.length)return n=Kn.call(document,t.localName),Object.setPrototypeOf(n,e.prototype),n.__CE_state=1,n.__CE_definition=t,Fr.b(n),n;var r=n[t=n.length-1];if(r===Dr)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[t]=Dr,Object.setPrototypeOf(r,e.prototype),Fr.b(r),r}return e.prototype=Sr.prototype,e}(),Nr=Rr,zn(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var t=Nr.a.get(e);if(t)return new t.constructor}return e=Kn.call(this,e),Nr.b(e),e}),zn(Document.prototype,"importNode",function(e,t){return e=er.call(this,e,t),this.__CE_hasRegistry?Un(Nr,e):Wn(Nr,e),e}),zn(Document.prototype,"createElementNS",function(e,t){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var n=Nr.a.get(t);if(n)return new n.constructor}return e=Zn.call(this,e,t),Nr.b(e),e}),Ir(Nr,Document.prototype,{fa:tr,append:nr}),Ir(Rr,DocumentFragment.prototype,{fa:rr,append:ir}),function(){var a=Rr;function t(e,o){Object.defineProperty(e,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,e);else{var t=void 0;if(this.firstChild){var n=this.childNodes,r=n.length;if(0<r&&Ln(this)){t=Array(r);for(var i=0;i<r;i++)t[i]=n[i]}}if(o.set.call(this,e),t)for(e=0;e<t.length;e++)$n(a,t[e])}}})}zn(Node.prototype,"insertBefore",function(e,t){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=sr.call(this,e,t),Ln(this))for(t=0;t<n.length;t++)Qn(a,n[t]);return e}return n=Ln(e),t=sr.call(this,e,t),n&&$n(a,e),Ln(this)&&Qn(a,e),t}),zn(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var t=Array.prototype.slice.apply(e.childNodes);if(e=ar.call(this,e),Ln(this))for(var n=0;n<t.length;n++)Qn(a,t[n]);return e}return t=Ln(e),n=ar.call(this,e),t&&$n(a,e),Ln(this)&&Qn(a,e),n}),zn(Node.prototype,"cloneNode",function(e){return e=or.call(this,e),this.ownerDocument.__CE_hasRegistry?Un(a,e):Wn(a,e),e}),zn(Node.prototype,"removeChild",function(e){var t=Ln(e),n=lr.call(this,e);return t&&$n(a,e),n}),zn(Node.prototype,"replaceChild",function(e,t){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=cr.call(this,e,t),Ln(this))for($n(a,t),t=0;t<n.length;t++)Qn(a,n[t]);return e}n=Ln(e);var r=cr.call(this,e,t),i=Ln(this);return i&&$n(a,t),n&&$n(a,e),i&&Qn(a,e),r}),ur&&ur.get?t(Node.prototype,ur):Vn(a,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=0;t<this.childNodes.length;t++)e.push(this.childNodes[t].textContent);return e.join("")},set:function(e){for(;this.firstChild;)lr.call(this,this.firstChild);ar.call(this,document.createTextNode(e))}})})}(),function(){var a=Rr;function t(e,o){Object.defineProperty(e,"innerHTML",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(e){var t=this,n=void 0;if(Ln(this)&&(n=[],jn(this,function(e){e!==t&&n.push(e)})),o.set.call(this,e),n)for(var r=0;r<n.length;r++){var i=n[r];1===i.__CE_state&&a.disconnectedCallback(i)}return this.ownerDocument.__CE_hasRegistry?Un(a,this):Wn(a,this),e}})}function e(e,r){zn(e,"insertAdjacentElement",function(e,t){var n=Ln(t);return e=r.call(this,e,t),n&&$n(a,t),Ln(e)&&Qn(a,t),e})}function n(e,r){function i(e,t){for(var n=[];e!==t;e=e.nextSibling)n.push(e);for(t=0;t<n.length;t++)Un(a,n[t])}zn(e,"insertAdjacentHTML",function(e,t){if("beforebegin"===(e=e.toLowerCase())){var n=this.previousSibling;r.call(this,e,t),i(n||this.parentNode.firstChild,this)}else if("afterbegin"===e)n=this.firstChild,r.call(this,e,t),i(this.firstChild,n);else if("beforeend"===e)n=this.lastChild,r.call(this,e,t),i(n||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");n=this.nextSibling,r.call(this,e,t),i(this.nextSibling,n)}})}dr&&zn(Element.prototype,"attachShadow",function(e){return this.__CE_shadowRoot=dr.call(this,e)}),hr&&hr.get?t(Element.prototype,hr):Pr&&Pr.get?t(HTMLElement.prototype,Pr):Vn(a,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return or.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName,n=t?this.content:this,r=Kn.call(document,this.localName);for(r.innerHTML=e;0<n.childNodes.length;)lr.call(n,n.childNodes[0]);for(e=t?r.content:r;0<e.childNodes.length;)ar.call(n,e.childNodes[0])}})}),zn(Element.prototype,"setAttribute",function(e,t){if(1!==this.__CE_state)return fr.call(this,e,t);var n=pr.call(this,e);fr.call(this,e,t),t=pr.call(this,e),a.attributeChangedCallback(this,e,n,t,null)}),zn(Element.prototype,"setAttributeNS",function(e,t,n){if(1!==this.__CE_state)return yr.call(this,e,t,n);var r=gr.call(this,e,t);yr.call(this,e,t,n),n=gr.call(this,e,t),a.attributeChangedCallback(this,t,r,n,e)}),zn(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return vr.call(this,e);var t=pr.call(this,e);vr.call(this,e),null!==t&&a.attributeChangedCallback(this,e,t,null,null)}),zn(Element.prototype,"removeAttributeNS",function(e,t){if(1!==this.__CE_state)return mr.call(this,e,t);var n=gr.call(this,e,t);mr.call(this,e,t);var r=gr.call(this,e,t);n!==r&&a.attributeChangedCallback(this,t,n,r,e)}),Tr?e(HTMLElement.prototype,Tr):_r?e(Element.prototype,_r):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Or?n(HTMLElement.prototype,Or):Ar?n(Element.prototype,Ar):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Ir(a,Element.prototype,{fa:br,append:wr}),function(s){var e=Element.prototype;function t(a){return function(e){for(var t=[],n=0;n<arguments.length;++n)t[n-0]=arguments[n];n=[];for(var r=[],i=0;i<t.length;i++){var o=t[i];if(o instanceof Element&&Ln(o)&&r.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)n.push(o);else n.push(o)}for(a.apply(this,t),t=0;t<r.length;t++)$n(s,r[t]);if(Ln(this))for(t=0;t<n.length;t++)(r=n[t])instanceof Element&&Qn(s,r)}}void 0!==kr&&(e.before=t(kr)),void 0!==kr&&(e.after=t(Cr)),void 0!==Er&&zn(e,"replaceWith",function(e){for(var t=[],n=0;n<arguments.length;++n)t[n-0]=arguments[n];n=[];for(var r=[],i=0;i<t.length;i++){var o=t[i];if(o instanceof Element&&Ln(o)&&r.push(o),o instanceof DocumentFragment)for(o=o.firstChild;o;o=o.nextSibling)n.push(o);else n.push(o)}for(i=Ln(this),Er.apply(this,t),t=0;t<r.length;t++)$n(s,r[t]);if(i)for($n(s,this),t=0;t<n.length;t++)(r=n[t])instanceof Element&&Qn(s,r)}),void 0!==xr&&zn(e,"remove",function(){var e=Ln(this);xr.call(this),e&&$n(s,this)})}(a)}(),document.__CE_hasRegistry=!0;var Lr=new Xn(Rr);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:Lr})}function Br(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function jr(e){var t=zr,n=e=e.replace(Ur,"").replace(Yr,""),r=new Br;r.start=0,r.end=n.length;for(var i=r,o=0,a=n.length;o<a;o++)if("{"===n[o]){i.rules||(i.rules=[]);var s=i,l=s.rules[s.rules.length-1]||null;(i=new Br).start=o+1,i.parent=s,i.previous=l,s.rules.push(i)}else"}"===n[o]&&(i.end=o+1,i=i.parent||r);return t(r,e)}function zr(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=(n=(n=(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1)).replace(/\\([0-9a-f]{1,6})\s/gi,function(e,t){for(t=6-(e=t).length;t--;)e="0"+e;return"\\"+e})).replace(Zr," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=Qr:n.match(Kr)&&(e.type=Wr,e.keyframesName=e.selector.split(Zr).pop()):e.type=0===n.indexOf("--")?$r:Vr),n=e.rules)for(var r,i=0,o=n.length;i<o&&(r=n[i]);i++)zr(r,t);return e}var Hr,Vr=1,Wr=7,Qr=4,$r=1e3,Ur=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Yr=/@import[^;]*;/gim,qr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Jr=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Gr=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Xr=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Kr=/^@[^\s]*keyframes/,Zr=/\s+/g,ei=!(window.ShadyDOM&&window.ShadyDOM.inUse);function ti(e){Hr=(!e||!e.shimcssproperties)&&(ei||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Hr=window.ShadyCSS.nativeCss:window.ShadyCSS?(ti(window.ShadyCSS),window.ShadyCSS=void 0):ti(window.WebComponents&&window.WebComponents.flags);var ni=Hr,ri=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,ii=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,oi=/(--[\w-]+)\s*([:,;)]|$)/gi,ai=/(animation\s*:)|(animation-name\s*:)/,si=/@media\s(.*)/,li=/\{[^}]*\}/g,ci=new Set;function ui(e,t){return e?("string"==typeof e&&(e=jr(e)),t&&pi(e,t),function e(t,n,r){r=void 0===r?"":r;var i="";if(t.cssText||t.rules){var o,a=t.rules;if((o=a)&&(o=!((o=a[0])&&o.selector&&0===o.selector.indexOf("--"))),o){o=0;for(var s,l=a.length;o<l&&(s=a[o]);o++)i=e(s,n,i)}else(i=(n=n?t.cssText:(n=(n=t.cssText).replace(qr,"").replace(Jr,"")).replace(Gr,"").replace(Xr,"")).trim())&&(i=" "+i+"\n")}return i&&(t.selector&&(r+=t.selector+" {\n"),r+=i,t.selector&&(r+="}\n\n")),r}(e,ni)):""}function di(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=jr(e.textContent)),e.__cssRules||null}function hi(e){return!!e.parent&&e.parent.type===Wr}function pi(e,t,n,r){if(e){var i=!1,o=e.type;if(r&&o===Qr){var a=e.selector.match(si);a&&(window.matchMedia(a[1]).matches||(i=!0))}if(o===Vr?t(e):n&&o===Wr?n(e):o===$r&&(i=!0),(e=e.rules)&&!i){i=0,o=e.length;for(var s;i<o&&(s=e[i]);i++)pi(s,t,n,r)}}}function fi(e,t,n,r){var i=document.createElement("style");return t&&i.setAttribute("scope",t),i.textContent=e,gi(i,n,r),i}var vi=null;function gi(e,t,n){(t=t||document.head).insertBefore(e,n&&n.nextSibling||t.firstChild),vi?e.compareDocumentPosition(vi)===Node.DOCUMENT_POSITION_PRECEDING&&(vi=e):vi=e}function yi(e,t){ei?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}function mi(e){var t=e.localName,n="";return t?-1<t.indexOf("-")||(n=t,t=e.getAttribute&&e.getAttribute("is")||""):(t=e.is,n=e.extends),{is:t,X:n}}function _i(){}function Ai(e,t,n){var r=Qi;e.__styleScoped?e.__styleScoped=null:function e(t,n,r,i){if(n.nodeType===Node.ELEMENT_NODE&&bi(n,r,i),n="template"===n.localName?(n.content||n.jb).childNodes:n.children||n.childNodes)for(var o=0;o<n.length;o++)e(t,n[o],r,i)}(r,e,t||"",n)}function bi(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(Vi);n?r&&yi(e,t=r.replace("style-scope","").replace(t,"")):yi(e,(r?r+" ":"")+"style-scope "+t)}}function wi(e,t,n){var r,i,o,a,s,l,c=Qi,u=e.__cssBuild;return(t=ei||"shady"===u?ui(t,n):(r=c,i=t,o=(e=mi(e)).is,a=e.X,s=n,l=ki(o,a),o=o?zi+o:"",ui(i,function(e){e.c||(e.selector=e.G=Ci(r,e,r.b,o,l),e.c=!0),s&&s(e,o,l)})+"\n\n")).trim()}function ki(e,t){return t?"[is="+e+"]":e}function Ci(e,t,n,r,i){var o=t.selector.split(Oi);if(!hi(t)){t=0;for(var a,s=o.length;t<s&&(a=o[t]);t++)o[t]=n.call(e,a,r,i)}return o.join(Oi)}function Ei(e){return e.replace(Pi,function(e,t,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+t+"("+n+")"})}function xi(e,t){return(e=e.split(Hi))[0]+=t,e.join(Hi)}function Si(e){e.selector===Fi&&(e.selector="html")}_i.prototype.b=function(e,r,i){var o=!1;e=e.trim();var t=Pi.test(e);return t&&(e=Ei(e=e.replace(Pi,function(e,t,n){return":"+t+"("+n.replace(/\s/g,"")+")"}))),e=(e=e.replace(Ri,Ni+" $1")).replace(Di,function(e,t,n){return o||(e=function(e,t,n,r){var i,o,a,s=e.indexOf(Mi);if(0<=e.indexOf(Ni)?(o=r,e=(a=(a=(i=e).match(Li))&&a[2].trim()||"")?a[0].match(Ii)?i.replace(Li,function(e,t,n){return o+n}):a.split(Ii)[0]===o?a:Wi:i.replace(Ni,o)):0!==s&&(e=n?xi(e,n):e),n=!1,0<=s&&(n=!(t="")),n){var l=!0;n&&(e=e.replace(Bi,function(e,t){return" > "+t}))}return{value:e=e.replace(ji,function(e,t,n){return'[dir="'+n+'"] '+t+", "+t+'[dir="'+n+'"]'}),Sa:t,stop:l}}(n,t,r,i),o=o||e.stop,t=e.Sa,n=e.value),t+n}),t&&(e=Ei(e)),e},_i.prototype.c=function(e){return e.match(Mi)?this.b(e,Ti):xi(e.trim(),Ti)},r.Object.defineProperties(_i.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var Pi=/:(nth[-\w]+)\(([^)]+)\)/,Ti=":not(.style-scope)",Oi=",",Di=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Ii=/[[.:#*]/,Ni=":host",Fi=":root",Mi="::slotted",Ri=new RegExp("^("+Mi+")"),Li=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Bi=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ji=/(.*):dir\((?:(ltr|rtl))\)/,zi=".",Hi=":",Vi="class",Wi="should_not_match",Qi=new _i;function $i(e,t,n,r){this.K=e||null,this.b=t||null,this.sa=n||[],this.T=null,this.X=r||"",this.a=this.H=this.O=null}function Ui(e){return e?e.__styleInfo:null}function Yi(e,t){return e.__styleInfo=t}function qi(e){var t=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return t&&t.call(this,e)}$i.prototype._getStyleRules=$i.prototype.c=function(){return this.K};var Ji=navigator.userAgent.match("Trident");function Gi(){}function Xi(e){if(!e.B){var t={},n={};Ki(e,n)&&(t.J=n,e.rules=null),t.cssText=e.parsedCssText.replace(li,"").replace(ri,""),e.B=t}}function Ki(e,t){var n=e.B;if(!n){n=e.parsedCssText;for(var r;e=ri.exec(n);)"inherit"===(r=(e[2]||e[3]).trim())&&"unset"===r||(t[e[1].trim()]=r),r=!0;return r}if(n.J)return Object.assign(t,n.J),!0}function Zi(i,e,o){return e&&(e=0<=e.indexOf(";")?eo(i,e,o):function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");e:{for(var i=0,o=r+3,a=t.length;o<a;o++)if("("===t[o])i++;else if(")"===t[o]&&0==--i)break e;o=-1}return i=t.substring(r+4,o),r=t.substring(0,r),t=e(t.substring(o+1),n),-1===(o=i.indexOf(","))?n(r,i.trim(),"",t):n(r,i.substring(0,o).trim(),i.substring(o+1).trim(),t)}(e,function(e,t,n,r){return t?((t=Zi(i,o[t],o))&&"initial"!==t?"apply-shim-inherit"===t&&(t="inherit"):t=Zi(i,o[n]||n,o)||n,e+(t||"")+r):e+r})),e&&e.trim()||""}function eo(e,t,n){t=t.split(";");for(var r,i,o=0;o<t.length;o++)if(r=t[o]){if(ii.lastIndex=0,i=ii.exec(r))r=Zi(e,n[i[1]],n);else if(-1!==(i=r.indexOf(":"))){var a=r.substring(i);a=Zi(e,a=a.trim(),n)||a,r=r.substring(0,i)+a}t[o]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return t.join(";")}function to(u,e){var d={},h={},t=e&&e.__cssBuild;return pi(e,function(c){!function(e,t,n,r){if(t.B||Xi(t),t.B.J){var i=mi(e);e=i.is,i=i.X,i=e?ki(e,i):"html";var o=t.parsedSelector,a=":host > *"===o||"html"===o,s=0===o.indexOf(":host")&&!a;"shady"===n&&(s=!(a=o===i+" > *."+i||-1!==o.indexOf("html"))&&0===o.indexOf(i)),"shadow"===n&&(a=":host > *"===o||"html"===o,s=s&&!a),(a||s)&&(n=i,s&&(t.G||(t.G=Ci(Qi,t,Qi.b,e?zi+e:"",i)),n=t.G||i),l={Za:n,Wa:s,wb:a},qi.call(u.kb||u,l.Za)&&(l.Wa?Ki(c,d):Ki(c,h)))}var l}(u,c,t)},null,!0),{Ya:h,Va:d}}function no(t){return function(e){return e.replace(t.F,t.a)}}function ro(e,n){var r=io,t=di(e);e.textContent=ui(t,function(e){var t=e.cssText=e.parsedCssText;e.B&&e.B.cssText&&(t=t.replace(qr,"").replace(Jr,""),e.cssText=eo(r,t,n))})}r.Object.defineProperties(Gi.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var io=new Gi,oo={},ao=window.customElements;if(ao&&!ei){var so=ao.define;ao.define=function(e,t,n){var r=document.createComment(" Shady DOM styles for "+e+" "),i=document.head;i.insertBefore(r,(vi?vi.nextSibling:null)||i.firstChild),vi=r,oo[e]=r,so.call(ao,e,t,n)}}function lo(){this.cache={}}function co(){}function uo(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var i=n.addedNodes[r];if(i.nodeType===Node.ELEMENT_NODE){var o=i.getRootNode(),a=i,s=[];if(a.classList?s=Array.from(a.classList):a instanceof window.SVGElement&&a.hasAttribute("class")&&(s=a.getAttribute("class").split(/\s+/)),(a=-1<(s=(a=s).indexOf(Qi.a))?a[s+1]:"")&&o===i.ownerDocument)Ai(i,a,!0);else if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(o=o.host))if(a===(o=mi(o).is))for(i=window.ShadyDOM.nativeMethods.querySelectorAll.call(i,":not(."+Qi.a+")"),o=0;o<i.length;o++)bi(i[o],a);else a&&Ai(i,a,!0),Ai(i,o)}}}}if(lo.prototype.store=function(e,t,n,r){var i=this.cache[e]||[];i.push({J:t,styleElement:n,H:r}),100<i.length&&i.shift(),this.cache[e]=i},lo.prototype.fetch=function(e,t,n){if(e=this.cache[e])for(var r=e.length-1;0<=r;r--){var i,o=e[r];e:{for(i=0;i<n.length;i++){var a=n[i];if(o.J[a]!==t[a]){i=!1;break e}}i=!0}if(i)return o}},!ei){var ho=new MutationObserver(uo),po=function(e){ho.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)po(document);else{var fo=function(){po(document.body)};window.HTMLImports?window.HTMLImports.whenReady(fo):requestAnimationFrame(function(){if("loading"===document.readyState){var e=function(){fo(),document.removeEventListener("readystatechange",e)};document.addEventListener("readystatechange",e)}else fo()})}co=function(){uo(ho.takeRecords())}}var vo=co,go={},yo=Promise.resolve();function mo(e){(e=go[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function _o(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var Ao=new lo;function bo(){this.Aa={},this.c=document.documentElement;var e=new Br;e.rules=[],this.F=Yi(this.c,new $i(e)),this.M=!1,this.b=this.a=null}function wo(e){var t;!e.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(e.a=window.ShadyCSS.ApplyShim,e.a.invalidCallback=mo),!(t=e).b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.b=window.ShadyCSS.CustomStyleInterface,t.b.transformCallback=function(e){t.Ea(e)},t.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.M)&&t.flushCustomStyles()})})}function ko(e,t){return(t=t.getRootNode().host)?Ui(t)?t:ko(e,t):e.c}function Co(e,t,n){var r=Ui(e=ko(e,t));e=Object.create(r.O||null);var i=to(t,n.K);for(var o in t=function(e,n){var r={},i=[];return pi(e,function(e){e.B||Xi(e);var t=e.G||e.parsedSelector;n&&e.B.J&&t&&qi.call(n,t)&&(Ki(e,r),e=e.index,t=parseInt(e/32,10),i[t]=(i[t]||0)|1<<e%32)},null,!0),{J:r,key:i}}(r.K,t).J,Object.assign(e,i.Va,t,i.Ya),t=n.T)((i=t[o])||0===i)&&(e[o]=i);for(o=io,t=Object.getOwnPropertyNames(e),i=0;i<t.length;i++)e[r=t[i]]=Zi(o,e[r],e);n.O=e}(e=bo.prototype).Ga=function(){vo()},e.Ta=function(e){return di(e)},e.ab=function(e){return ui(e)},e.prepareTemplate=function(e,t,n){if(!e.F){e.F=!0,e.name=t,e.extends=n;for(var r=(r=(go[t]=e).content.querySelector("style"))&&r.getAttribute("css-build")||"",i=[],o=e.content.querySelectorAll("style"),a=0;a<o.length;a++){var s=o[a];if(s.hasAttribute("shady-unscoped")){if(!ei){var l=s.textContent;ci.has(l)||(ci.add(l),l=s.cloneNode(!0),document.head.appendChild(l)),s.parentNode.removeChild(s)}}else i.push(s.textContent),s.parentNode.removeChild(s)}i=i.join("").trim(),n={is:t,extends:n,hb:r},ei||Ai(e.content,t),wo(this),o=ii.test(i)||ri.test(i),ii.lastIndex=0,ri.lastIndex=0,i=jr(i),o&&ni&&this.a&&this.a.transformRules(i,t),e._styleAst=i,e.M=r,r=[],ni||(r=function(e){var r={},t=[],i=0;for(var n in pi(e,function(e){Xi(e),e.index=i++,e=e.B.cssText;for(var t;t=oi.exec(e);){var n=t[1];":"!==t[2]&&(r[n]=!0)}},function(e){t.push(e)}),e.b=t,e=[],r)e.push(n);return e}(e._styleAst)),r.length&&!ni||(i=ei?e.content:null,t=oo[t],t=(o=wi(n,e._styleAst)).length?fi(o,n.is,i,t):void 0,e.a=t),e.c=r}},e.flushCustomStyles=function(){if(wo(this),this.b){var e=this.b.processStyles();if(this.b.enqueued){if(ni)for(var t=0;t<e.length;t++){var n=this.b.getStyleForCustomStyle(e[t]);if(n&&ni&&this.a){var r=di(n);wo(this),this.a.transformRules(r),n.textContent=ui(r)}}else for(Co(this,this.c,this.F),t=0;t<e.length;t++)(n=this.b.getStyleForCustomStyle(e[t]))&&ro(n,this.F.O);this.b.enqueued=!1,this.M&&!ni&&this.styleDocument()}}},e.styleElement=function(e,t){var a,n,s,l,r,c,u,d,i,o=mi(e).is,h=Ui(e);if(!h){var p=mi(e);h=p.is,p=p.X;var f=oo[h];if(h=go[h])var v=h._styleAst,g=h.c;h=Yi(e,new $i(v,f,g,p))}if(e!==this.c&&(this.M=!0),t&&(h.T=h.T||{},Object.assign(h.T,t)),ni){if(h.T)for(var y in t=h.T)null===y?e.style.removeProperty(y):e.style.setProperty(y,t[y]);((y=go[o])||e===this.c)&&y&&y.a&&!_o(y)&&((_o(y)||y._applyShimValidatingVersion!==y._applyShimNextVersion)&&(wo(this),this.a&&this.a.transformRules(y._styleAst,o),y.a.textContent=wi(e,h.K),(i=y)._applyShimValidatingVersion=i._applyShimNextVersion,i.b||(i.b=!0,yo.then(function(){i._applyShimCurrentVersion=i._applyShimNextVersion,i.b=!1}))),ei&&(o=e.shadowRoot)&&(o.querySelector("style").textContent=wi(e,h.K)),h.K=y._styleAst)}else if(Co(this,e,h),h.sa&&h.sa.length){o=h,y=mi(e).is,h=(t=Ao.fetch(y,o.O,o.sa))?t.styleElement:null,v=o.H,(g=t&&t.H)||(g=y+"-"+(g=this.Aa[y]=(this.Aa[y]||0)+1)),o.H=g,g=o.H,p=io,p=h?h.textContent||"":(a=p,n=e,s=o.O,l=g,r=mi(n),c=ki(r.is,r.X),u=new RegExp("(?:^|[^.#[:])"+(n.extends?"\\"+c.slice(0,-1)+"\\]":c)+"($|[.:[\\s>+~])"),d=function(e,t){e=e.b;var n={};if(!ei&&e)for(var r=0,i=e[r];r<e.length;i=e[++r]){var o=i,a=t;o.F=new RegExp("\\b"+o.keyframesName+"(?!\\B|-)","g"),o.a=o.keyframesName+"-"+a,o.G=o.G||o.selector,o.selector=o.G.replace(o.keyframesName,o.a),n[i.keyframesName]=no(i)}return n}(r=Ui(n).K,l),wi(n,r,function(e){var t="";if(e.B||Xi(e),e.B.cssText&&(t=eo(a,e.B.cssText,s)),e.cssText=t,!ei&&!hi(e)&&e.cssText){var n=t=e.cssText;if(null==e.za&&(e.za=ai.test(t)),e.za)if(null==e.ea)for(var r in e.ea=[],d)t!==(n=(n=d[r])(t))&&(t=n,e.ea.push(r));else{for(r=0;r<e.ea.length;++r)t=(n=d[e.ea[r]])(t);n=t}e.cssText=n,e.G=e.G||e.selector,t="."+l,n=0;for(var i,o=(r=e.G.split(",")).length;n<o&&(i=r[n]);n++)r[n]=i.match(u)?i.replace(c,t):t+" "+i;e.selector=r.join(",")}}));var m=(f=Ui(e)).a;m&&!ei&&m!==h&&(m._useCount--,m._useCount<=0&&m.parentNode&&m.parentNode.removeChild(m)),ei?f.a?(f.a.textContent=p,h=f.a):p&&(h=fi(p,g,e.shadowRoot,f.b)):h?h.parentNode||(Ji&&-1<p.indexOf("@media")&&(h.textContent=p),gi(h,null,f.b)):p&&(h=fi(p,g,null,f.b)),h&&(h._useCount=h._useCount||0,f.a!=h&&h._useCount++,f.a=h),g=h,ei||(h=o.H,f=p=e.getAttribute("class")||"",v&&(f=p.replace(new RegExp("\\s*x-scope\\s*"+v+"\\s*","g")," ")),p!==(f+=(f?" ":"")+"x-scope "+h)&&yi(e,f)),t||Ao.store(y,o.O,g,o.H)}},e.styleDocument=function(e){this.styleSubtree(this.c,e)},e.styleSubtree=function(e,t){var n=e.shadowRoot;if((n||e===this.c)&&this.styleElement(e,t),t=n&&(n.children||n.childNodes))for(e=0;e<t.length;e++)this.styleSubtree(t[e]);else if(e=e.children||e.childNodes)for(t=0;t<e.length;t++)this.styleSubtree(e[t])},e.Ea=function(e){var n=this,t=di(e);pi(t,function(e){if(ei)Si(e);else{var t=Qi;e.selector=e.parsedSelector,Si(e),e.selector=e.G=Ci(t,e,t.c,void 0,void 0)}ni&&(wo(n),n.a&&n.a.transformRule(e))}),ni?e.textContent=ui(t):this.F.K.rules.push(t)},e.getComputedStyleValue=function(e,t){var n;return ni||(n=(Ui(e)||Ui(ko(this,e))).O[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""},e.$a=function(e,t){var n=e.getRootNode();if(t=t?t.split(/\s/):[],!(n=n.host&&n.host.localName)){var r=e.getAttribute("class");if(r){r=r.split(/\s/);for(var i=0;i<r.length;i++)if(r[i]===Qi.a){n=r[i+1];break}}}n&&t.push(Qi.a,n),ni||(n=Ui(e))&&n.H&&t.push(io.a,n.H),yi(e,t.join(" "))},e.Qa=function(e){return Ui(e)},bo.prototype.flush=bo.prototype.Ga,bo.prototype.prepareTemplate=bo.prototype.prepareTemplate,bo.prototype.styleElement=bo.prototype.styleElement,bo.prototype.styleDocument=bo.prototype.styleDocument,bo.prototype.styleSubtree=bo.prototype.styleSubtree,bo.prototype.getComputedStyleValue=bo.prototype.getComputedStyleValue,bo.prototype.setElementClass=bo.prototype.$a,bo.prototype._styleInfoForNode=bo.prototype.Qa,bo.prototype.transformCustomStyleForDocument=bo.prototype.Ea,bo.prototype.getStyleAst=bo.prototype.Ta,bo.prototype.styleAstToString=bo.prototype.ab,bo.prototype.flushCustomStyles=bo.prototype.flushCustomStyles,Object.defineProperties(bo.prototype,{nativeShadow:{get:function(){return ei}},nativeCss:{get:function(){return ni}}});var Eo,xo,So=new bo;window.ShadyCSS&&(Eo=window.ShadyCSS.ApplyShim,xo=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:So,prepareTemplate:function(e,t,n){So.flushCustomStyles(),So.prepareTemplate(e,t,n)},styleSubtree:function(e,t){So.flushCustomStyles(),So.styleSubtree(e,t)},styleElement:function(e){So.flushCustomStyles(),So.styleElement(e)},styleDocument:function(e){So.flushCustomStyles(),So.styleDocument(e)},flushCustomStyles:function(){So.flushCustomStyles()},getComputedStyleValue:function(e,t){return So.getComputedStyleValue(e,t)},nativeCss:ni,nativeShadow:ei},Eo&&(window.ShadyCSS.ApplyShim=Eo),xo&&(window.ShadyCSS.CustomStyleInterface=xo),function(e){function h(e){return""==e&&(f.call(this),this.h=!0),e.toLowerCase()}function p(e){var t=e.charCodeAt(0);return 32<t&&t<127&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function n(e,t,n){var r,i,o=t||"scheme start",a=0,s="",l=!1,c=!1;e:for(;(null!=e[a-1]||0==a)&&!this.h;){var u=e[a];switch(o){case"scheme start":if(!u||!y.test(u)){if(t)break e;s="",o="no scheme";continue}s+=u.toLowerCase(),o="scheme";break;case"scheme":if(u&&m.test(u))s+=u.toLowerCase();else{if(":"!=u){if(t)break e;s="",a=0,o="no scheme";continue}if(this.g=s,s="",t)break e;void 0!==v[this.g]&&(this.D=!0),o="file"==this.g?"relative":this.D&&n&&n.g==this.g?"relative or authority":this.D?"authority first slash":"scheme data"}break;case"scheme data":"?"==u?(this.u="?",o="query"):"#"==u?(this.C="#",o="fragment"):null!=u&&"\t"!=u&&"\n"!=u&&"\r"!=u&&(this.qa+=p(u));break;case"no scheme":if(n&&void 0!==v[n.g]){o="relative";continue}f.call(this),this.h=!0;break;case"relative or authority":if("/"!=u||"/"!=e[a+1]){o="relative";continue}o="authority ignore slashes";break;case"relative":if(this.D=!0,"file"!=this.g&&(this.g=n.g),null==u){this.i=n.i,this.s=n.s,this.j=n.j.slice(),this.u=n.u,this.v=n.v,this.f=n.f;break e}if("/"==u||"\\"==u)o="relative slash";else if("?"==u)this.i=n.i,this.s=n.s,this.j=n.j.slice(),this.u="?",this.v=n.v,this.f=n.f,o="query";else{if("#"!=u){o=e[a+1];var d=e[a+2];("file"!=this.g||!y.test(u)||":"!=o&&"|"!=o||null!=d&&"/"!=d&&"\\"!=d&&"?"!=d&&"#"!=d)&&(this.i=n.i,this.s=n.s,this.v=n.v,this.f=n.f,this.j=n.j.slice(),this.j.pop()),o="relative path";continue}this.i=n.i,this.s=n.s,this.j=n.j.slice(),this.u=n.u,this.C="#",this.v=n.v,this.f=n.f,o="fragment"}break;case"relative slash":if("/"!=u&&"\\"!=u){"file"!=this.g&&(this.i=n.i,this.s=n.s,this.v=n.v,this.f=n.f),o="relative path";continue}o="file"==this.g?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=u){o="authority ignore slashes";continue}o="authority second slash";break;case"authority second slash":if(o="authority ignore slashes","/"!=u)continue;break;case"authority ignore slashes":if("/"==u||"\\"==u)break;o="authority";continue;case"authority":if("@"==u){for(l&&(s+="%40"),l=!0,u=0;u<s.length;u++)"\t"==(d=s[u])||"\n"==d||"\r"==d||(":"==d&&null===this.f?this.f="":(d=p(d),null!==this.f?this.f+=d:this.v+=d));s=""}else{if(null==u||"/"==u||"\\"==u||"?"==u||"#"==u){a-=s.length,s="",o="host";continue}s+=u}break;case"file host":if(null==u||"/"==u||"\\"==u||"?"==u||"#"==u){o=2!=s.length||!y.test(s[0])||":"!=s[1]&&"|"!=s[1]?(0!=s.length&&(this.i=h.call(this,s),s=""),"relative path start"):"relative path";continue}"\t"==u||"\n"==u||"\r"==u||(s+=u);break;case"host":case"hostname":if(":"!=u||c){if(null==u||"/"==u||"\\"==u||"?"==u||"#"==u){if(this.i=h.call(this,s),s="",o="relative path start",t)break e;continue}"\t"!=u&&"\n"!=u&&"\r"!=u&&("["==u?c=!0:"]"==u&&(c=!1),s+=u)}else if(this.i=h.call(this,s),s="",o="port","hostname"==t)break e;break;case"port":if(/[0-9]/.test(u))s+=u;else{if(null==u||"/"==u||"\\"==u||"?"==u||"#"==u||t){if(""!=s&&((s=parseInt(s,10))!=v[this.g]&&(this.s=s+""),s=""),t)break e;o="relative path start";continue}"\t"==u||"\n"==u||"\r"==u||(f.call(this),this.h=!0)}break;case"relative path start":if(o="relative path","/"!=u&&"\\"!=u)continue;break;case"relative path":null!=u&&"/"!=u&&"\\"!=u&&(t||"?"!=u&&"#"!=u)?"\t"!=u&&"\n"!=u&&"\r"!=u&&(s+=p(u)):((d=g[s.toLowerCase()])&&(s=d),".."==s?(this.j.pop(),"/"!=u&&"\\"!=u&&this.j.push("")):"."==s&&"/"!=u&&"\\"!=u?this.j.push(""):"."!=s&&("file"==this.g&&0==this.j.length&&2==s.length&&y.test(s[0])&&"|"==s[1]&&(s=s[0]+":"),this.j.push(s)),s="","?"==u?(this.u="?",o="query"):"#"==u&&(this.C="#",o="fragment"));break;case"query":t||"#"!=u?null!=u&&"\t"!=u&&"\n"!=u&&"\r"!=u&&(this.u+=(void 0,32<(i=(r=u).charCodeAt(0))&&i<127&&-1==[34,35,60,62,96].indexOf(i)?r:encodeURIComponent(r))):(this.C="#",o="fragment");break;case"fragment":null!=u&&"\t"!=u&&"\n"!=u&&"\r"!=u&&(this.C+=u)}a++}}function f(){this.v=this.qa=this.g="",this.f=null,this.s=this.i="",this.j=[],this.C=this.u="",this.D=this.h=!1}function r(e,t){void 0===t||t instanceof r||(t=new r(String(t))),this.Ra=e,f.call(this),e=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),n.call(this,e,null,t)}var t=!1;if(!e.qb)try{var i=new URL("b","http://a");i.pathname="c%20d",t="http://a/c%20d"===i.href}catch(e){}if(!t){var v=Object.create(null);v.ftp=21,v.file=0,v.gopher=70,v.http=80,v.https=443,v.ws=80,v.wss=443;var g=Object.create(null);g["%2e"]=".",g[".%2e"]="..",g["%2e."]="..",g["%2e%2e"]="..";var y=/[a-zA-Z]/,m=/[a-zA-Z0-9\+\-\.]/;r.prototype={toString:function(){return this.href},get href(){if(this.h)return this.Ra;var e="";return""==this.v&&null==this.f||(e=this.v+(null!=this.f?":"+this.f:"")+"@"),this.protocol+(this.D?"//"+e+this.host:"")+this.pathname+this.u+this.C},set href(e){f.call(this),n.call(this,e)},get protocol(){return this.g+":"},set protocol(e){this.h||n.call(this,e+":","scheme start")},get host(){return this.h?"":this.s?this.i+":"+this.s:this.i},set host(e){!this.h&&this.D&&n.call(this,e,"host")},get hostname(){return this.i},set hostname(e){!this.h&&this.D&&n.call(this,e,"hostname")},get port(){return this.s},set port(e){!this.h&&this.D&&n.call(this,e,"port")},get pathname(){return this.h?"":this.D?"/"+this.j.join("/"):this.qa},set pathname(e){!this.h&&this.D&&(this.j=[],n.call(this,e,"relative path start"))},get search(){return this.h||!this.u||"?"==this.u?"":this.u},set search(e){!this.h&&this.D&&((this.u="?")==e[0]&&(e=e.slice(1)),n.call(this,e,"query"))},get hash(){return this.h||!this.C||"#"==this.C?"":this.C},set hash(e){this.h||((this.C="#")==e[0]&&(e=e.slice(1)),n.call(this,e,"fragment"))},get origin(){var e;if(this.h||!this.g)return"";switch(this.g){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this.g+"://"+e:""}};var o=e.URL;o&&(r.createObjectURL=function(e){return o.createObjectURL.apply(o,arguments)},r.revokeObjectURL=function(e){o.revokeObjectURL(e)}),e.URL=r}}(window);var Po={},To=Object.create,Oo=Object.defineProperties,Do=Object.defineProperty;function Io(e,t){return{value:e,configurable:!!(t=void 0===t?{}:t).ya,writable:!!t.cb,enumerable:!!t.e}}var No=void 0;try{No=1===Do({},"y",{get:function(){return 1}}).y}catch(i){No=!1}var Fo={},Mo=To(null);function Ro(e){if(this instanceof Ro)throw new TypeError("Symbol is not a constructor");var t=function(e){e=String(e);for(var t="",n=0;Fo[e+t];)t=n+=1;Fo[e+t]=1;var r="Symbol("+e+t+")";return No&&Do(Object.prototype,r,{get:void 0,set:function(e){Do(this,r,Io(e,{ya:!0,cb:!0}))},configurable:!0,enumerable:!1}),r}(e=void 0===e?"":String(e));return No?To(Mo,{ua:Io(e),Ka:Io(t)}):t}Oo(Ro,{for:Io(function(e){if(e=String(e),Po[e])return Po[e];var t=Ro(e);return Po[e]=t}),keyFor:Io(function(e){if(No&&(!e||"Symbol"!==e[Ro.toStringTag]))throw new TypeError(e+" is not a symbol");for(var t in Po)if(Po[t]===e)return No?Po[t].ua:Po[t].substr(7,Po[t].length-8)})}),Oo(Ro,{ub:Io(Ro("hasInstance")),vb:Io(Ro("isConcatSpreadable")),iterator:Io(Ro("iterator")),match:Io(Ro("match")),replace:Io(Ro("replace")),search:Io(Ro("search")),Ab:Io(Ro("species")),split:Io(Ro("split")),Bb:Io(Ro("toPrimitive")),toStringTag:Io(Ro("toStringTag")),unscopables:Io(Ro("unscopables"))}),Oo(Mo,{constructor:Io(Ro),toString:Io(function(){return this.Ka}),valueOf:Io(function(){return"Symbol("+this.ua+")"})}),No&&Do(Mo,Ro.toStringTag,Io("Symbol",{ya:!0}));var Lo="function"==typeof Symbol?Symbol:Ro;window.Symbol||(window.Symbol=Lo,Array.prototype[Lo.iterator]=function(){function t(e,t,n){for(;;)switch(i){case 0:r=0;case 1:if(r<o.length)return i=4,{value:o[r],done:!1};i=3;break;case 4:if(1==e)throw i=-1,n;i=5;break;case 5:case 2:r++,i=1;break;case 3:i=-1;default:return{value:void 0,done:!0}}}var r,i=0,o=this,e={next:function(e){return t(0,0,void 0)},throw:function(e){return t(1,0,e)},return:function(){throw Error("Not yet implemented")}};return l(),e[Symbol.iterator]=function(){return this},e},Set.prototype[Lo.iterator]=function(){function t(e,t,n){for(;;)switch(o){case 0:i=[],a.forEach(function(e){i.push(e)}),r=0;case 1:if(r<i.length)return o=4,{value:i[r],done:!1};o=3;break;case 4:if(1==e)throw o=-1,n;o=5;break;case 5:case 2:r++,o=1;break;case 3:o=-1;default:return{value:void 0,done:!0}}}var r,i,o=0,a=this,e={next:function(e){return t(0,0,void 0)},throw:function(e){return t(1,0,e)},return:function(){throw Error("Not yet implemented")}};return l(),e[Symbol.iterator]=function(){return this},e},Map.prototype[Lo.iterator]=function(){function t(e,t,n){for(;;)switch(o){case 0:i=[],a.forEach(function(e,t){i.push([t,e])}),r=0;case 1:if(r<i.length)return o=4,{value:i[r],done:!1};o=3;break;case 4:if(1==e)throw o=-1,n;o=5;break;case 5:case 2:r++,o=1;break;case 3:o=-1;default:return{value:void 0,done:!0}}}var r,i,o=0,a=this,e={next:function(e){return t(0,0,void 0)},throw:function(e){return t(1,0,e)},return:function(){throw Error("Not yet implemented")}};return l(),e[Symbol.iterator]=function(){return this},e},String.prototype[Lo.iterator]=function(){function t(e,t,n){for(;;)switch(i){case 0:r=0;case 1:if(r<o.length)return i=4,{value:o[r],done:!1};i=3;break;case 4:if(1==e)throw i=-1,n;i=5;break;case 5:case 2:r++,i=1;break;case 3:i=-1;default:return{value:void 0,done:!0}}}var r,i=0,o=this,e={next:function(e){return t(0,0,void 0)},throw:function(e){return t(1,0,e)},return:function(){throw Error("Not yet implemented")}};return l(),e[Symbol.iterator]=function(){return this},e});var Bo=document.createElement("style");Bo.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var jo=document.querySelector("head");jo.insertBefore(Bo,jo.firstChild);var zo=window.customElements,Ho=!1,Vo=null;function Wo(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),Vo&&Vo(),Ho=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}zo.polyfillWrapFlushCallback&&zo.polyfillWrapFlushCallback(function(e){Vo=e,Ho&&e()}),"complete"!==document.readyState?(window.addEventListener("load",Wo),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",Wo),Wo()})):Wo()}.call(Qo),function(){window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,window.requestAnimationFrame||(window.requestAnimationFrame=function(e){"function"==typeof e&&setTimeout(function(){e()},17)});var v={selector:{tagName:"tt-selector-picker",eventName:"showPickerView",get:e},multiSelector:{tagName:"tt-selector-picker",eventName:"showMultiPickerView",get:e},date:{tagName:"tt-data-picker",eventName:"showDatePickerView",get:function(t,n,r){var i,o,a,s,l,c,u,d;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return i=g().document,e.next=3,regeneratorRuntime.awrap(window.__LARK_PC_SDK_HOOK__.getSystemInfo());case 3:return o=e.sent,a=o.language,s=i.documentElement.scrollTop,u=!(c=l=void 0),d=void 0,(d=i.createElement("tt-data-picker")).language=a,d.start=t.range.start,d.end=t.range.end,d.mode=t.mode,d.fields=t.fields,"Invalid Date"!==(l=new Date(t.current)).toString()&&(d.selectYear=l.getFullYear(),d.selectMonth=l.getMonth()+1,d.selectDay=l.getDate()),d.style.position="absolute",d.style.zIndex=9999,(c=window.innerHeight-t.bottom)<320&&(u=!1),u?d.style.top=t.bottom+s+2+"px":d.style.bottom=t.bottom-t.top+c-s+2+"px",window.innerWidth-t.left<282?d.style.right=window.innerWidth-t.right+"px":d.style.left=t.left+"px",d.addEventListener("daySelect",function(e){var t=e.detail;r(),n({errMsg:"showDatePickerView:ok",value:t.year+"-"+t.month+"-"+t.day})}),e.abrupt("return",d);case 26:case"end":return e.stop()}},null,this)}},time:{tagName:"tt-time-picker",eventName:"showDatePickerView",get:function(n,r,i){var e=g().document,t=e.documentElement.scrollTop,o=void 0,a=!0,s=void 0;(s=e.createElement("tt-time-picker")).start=n.range.start,s.end=n.range.end,s.value=n.current,s.style.position="absolute",s.style.zIndex=9999,(o=window.innerHeight-n.bottom)<194&&(a=!1);a?s.style.top=n.bottom+t+2+"px":s.style.bottom=n.bottom-n.top+o-t+2+"px";window.innerWidth-n.left<112?s.style.right=window.innerWidth-n.right+"px":s.style.left=n.left+"px";return s.addEventListener("itemSelect",function(e){var t=e.detail.value;i(),r({errMsg:v[n.mode].eventName+":ok",value:t})}),s}},year:{tagName:"tt-year-picker",eventName:"showDatePickerView",get:function(n,r,i){var e=g().document,t=e.documentElement.scrollTop,o=void 0,a=!0,s=void 0;(s=e.createElement("tt-year-picker")).start=Number(n.range.start)||1900,s.end=Number(n.range.end)||2099,s.value=Number(n.current),s.style.position="absolute",s.style.zIndex=9999,(o=window.innerHeight-n.bottom)<194&&(a=!1);a?s.style.top=n.bottom+t+2+"px":s.style.bottom=n.bottom-n.top+o-t+2+"px";window.innerWidth-n.left<112?s.style.right=window.innerWidth-n.right+"px":s.style.left=n.left+"px";return s.addEventListener("itemSelect",function(e){var t=e.detail.value;i(),r({errMsg:v[n.mode].eventName+":ok",value:t})}),s}},month:{tagName:"tt-month-picker",eventName:"showDatePickerView",get:function(t,n,r){var i,o,a,s,l,c,u,d;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return i=g().document,e.next=3,regeneratorRuntime.awrap(window.__LARK_PC_SDK_HOOK__.getSystemInfo());case 3:return o=e.sent,a=o.language,s=i.documentElement.scrollTop,u=!(c=l=void 0),d=void 0,(d=i.createElement("tt-month-picker")).language=a,d.start=t.range.start,d.end=t.range.end,"Invalid Date"!==(l=new Date(t.current)).toString()&&(d.selectYear=l.getFullYear(),d.selectMonth=l.getMonth()+1),d.style.position="absolute",d.style.zIndex=9999,(c=window.innerHeight-t.bottom)<290&&(u=!1),u?d.style.top=t.bottom+s+2+"px":d.style.bottom=t.bottom-t.top+c-s+2+"px",window.innerWidth-t.left<282?d.style.right=window.innerWidth-t.right+"px":d.style.left=t.left+"px",d.addEventListener("monthSelect",function(e){var t=e.detail;r(),n({errMsg:"showDatePickerView:ok",value:t.year+"-"+t.month})}),e.abrupt("return",d);case 24:case"end":return e.stop()}},null,this)}}},h=void 0;function e(e,s,l){var t,c=g(),n=c.document,u=e.mode,r=n.documentElement.scrollTop,i=!0,d=void 0;(d=n.createElement("tt-selector-picker")).style.position="absolute",d.style.zIndex=9999,d.mode=u,d.value=e.current,d.range=e.array||[],d.width=e.right-e.left,d.left=e.left,d.right=e.right,d.columnContainerMaxHeight=-1,"multiSelector"===u&&(window.innerWidth-e.left<=200||"right"===e.hPosition)?(d.style.right=window.innerWidth-e.right+"px",d.hPosition="right"):(d.hPosition="left",d.style.left=e.left+"px");var o=void 0;if("multiSelector"===u){var a=0;e.array.forEach(function(e){a<e.length&&(a=e.length)}),o=36*Math.min(a,5)+10}else o=36*Math.min(e.array.length,5)+10;var h=e.top,p=window.innerHeight-e.bottom,f=p;return p<Math.min(o,190)&&(p<h&&(i=!1,f=h),d.columnContainerMaxHeight=Math.min(f,190)+"px"),t=window.innerHeight-e.bottom,i?d.style.top=e.bottom+r+2+"px":d.style.bottom=e.bottom-e.top+t-r+2+"px",d.addEventListener("itemSelect",function(e){var t=e.detail,n=t.row,r=t.col,i=t.isLastCol;n=Number(n);var o={column:r=Number(r),current:n};if("multiSelector"===u&&window.bridgeWorker.bridgeToView("onMultiPickerViewChange",o,c.__webviewId__),i)if(l(),"multiSelector"===u){var a=d.value;a[a.length-1]=n,s({errMsg:v[u].eventName+":ok",current:a})}else s({errMsg:v[u].eventName+":ok",index:n})}),d}function g(){var e=document.querySelectorAll("iframe"),t=void 0;return e.forEach(function(e){null!=e.getAttribute("webview-id")&&"hidden"!==e.style.visibility&&(t=e.contentWindow)}),t||window}function t(d){var e=this;return new Promise(function(t){var n,r,i,o,a,s,l,c,u;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.mode,r=d.fields,i=g().document,"date"===n&&"year"===r&&(n="year"),"date"===n&&"month"===r&&(n="month"),o=v[n].tagName,a=v[n].eventName,s=i.getElementById("$mini-popupContainer$"),l=function(){i.body.removeEventListener("touchend",u,!0),i.body.removeEventListener("click",u,!0),i.removeEventListener("onRouteChange",l);var e=i.getElementById("$mini-popupContainer$");e&&i.body.removeChild(e),h=null},e.next=11,regeneratorRuntime.awrap(v[n].get(d,t,l));case 11:c=e.sent,h=c,u=function(e){e.target.tagName.toLowerCase()!==o&&(l(),t({errMsg:a+":cancel"}))},s?(s.innerHTML="",s.appendChild(c)):((s=i.createElement("div")).id="$mini-popupContainer$",s.appendChild(c),i.body.appendChild(s)),requestAnimationFrame(function(){i.body.addEventListener("touchend",u,!0),i.body.addEventListener("click",u,!0)});case 16:case"end":return e.stop()}},null,e)})}var n,r,i=Object.freeze({checkSession:function(){return{errMsg:"checkSession:ok"}},showDatePickerView:function(e){return t(e)},showPickerView:function(e){return t(e)},showMultiPickerView:function(e){return t(e)},updateMultiPickerView:function(e){if(!h)return{errMsg:"updateMultiPickerView:ok"};var t=h.range,n=h.value,r=[].concat(t),i=[].concat(n),o=e.column,a=e.current,s=e.array;return r[o]=s,i[o]=a,h.range=r,h.value=i,{errMsg:"updateMultiPickerView:ok"}}}),u=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}}(),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},f=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},y=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},o=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},m=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},s=new(function(){function e(){u(this,e)}return a(e,[{key:"reg",value:function(e,i){if(!e)throw"name is null";if("reg"===e||"regAll"===e)throw"name can not be reg or regAll";var t=this,n=e;if(-1<e.indexOf("."))for(var r=e.split("."),o=0,a=r.length;o<a;o++)n=r[o],o!==a-1&&(t=t[n]||(t[n]={}));if(t[n])throw'The keyword "'+n+'" has been registered';t[n]=function(t,n){var r;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(i(t));case 2:r=e.sent,n&&n(r);case 4:case"end":return e.stop()}},null,this)}}},{key:"regAll",value:function(e){if(!e)throw"funs is null";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];this.reg(t,n)}}}]),e}());function l(e,t,n){s.hasOwnProperty(e)&&"function"==typeof s[e]?s[e](t,n):n&&n({errMsg:e+":fail api not implemented"})}window.plus=s,n=window.__LARK_PC_SDK_HOOK__||{},r=Object.assign({},n,i),s.regAll(r);var c=window.__PC_WIDGET_SDK_PATH__||"/lib",_=new Map,A=function(){function n(e,t){u(this,n),this.worker=new Worker(c+"/tma-core.js"),this.worker.onmessage=this.handleMessage.bind(this),this.worker.onerror=this.onError.bind(this),this.ttJSCore=e,this.widgetInstanceID=t}return a(n,[{key:"log",value:function(e){l("logManager",{cardInstanceID:this.widgetInstanceID,msg:"from woker: "+e,type:"info"})}},{key:"onError",value:function(e){this.log(e.message),e.preventDefault&&e.preventDefault()}},{key:"postMessage",value:function(e){"string"!=typeof e&&(e=JSON.stringify(e)),this.worker.postMessage(e)}},{key:"handleMessage",value:function(e){var t=e.data;try{"ready"===(t=JSON.parse(t)).type?this.ttJSCore.onWorkerReady({widgetInstanceID:this.widgetInstanceID}):"publish"===t.type?this._publishMsgHandler(t):"invoke"===t.type?this._invokeMsgHandler(t):"log"===t.type&&this.log(t.log)}catch(e){this.log(""+e)}}},{key:"_publishMsgHandler",value:function(e){if("custom_event_sendToContainer"===e.ev){var t=JSON.parse(e.paramString).data;l("sendToContainer",d({},t,{cardInstanceID:this.widgetInstanceID}))}else ttJSBridge.subscribeHandler(e.ev,e.paramString,this.widgetInstanceID)}},{key:"_errorInvokeHandler",value:function(e,t){e.data.errMsg=t+":fail params parse error",this.postMessage(e)}},{key:"_invokeMsgHandler",value:function(e){var t=this,n=e.ev,r={cid:e.cid,data:{},type:"invoke"};try{var i=JSON.parse(e.paramString);i.cardInstanceID=this.widgetInstanceID,l(n,i,function(e){r.data=e,t.postMessage(r)})}catch(e){this._errorInvokeHandler(r,n)}}}]),n}();function b(e,t){_.has(e)?_.get(e).postMessage(t):console.warn("WidgetServiceWorker not found with instanceID: ",e)}window.workerSubscribeHandler=function(e,t){var n={ev:e,data:t,type:"on"};b(t.widgetInstanceID,n)};var w=function(e){return"object"==typeof e&&null!==e},k=function(e){return w(e)&&"[object Array]"===Object.prototype.toString.call(e)},C=function(e){return e.hasBehavior&&e.hasBehavior("base")},E=function(e){return e&&"VirtualNode"===e.type},x=function(e){return e&&"VirtualText"===e.type},S=function(e){return e&&"VirtualComment"===e.type},P=function(e){return w(e)&&e.hasOwnProperty("__origin")},T=function(e,t){var n=e[t];k(n)?e[t]=Array.from(n):w(n)&&(e[t]=Object.assign({},n))};var O={},D=[];function I(e,t,n,r){this.tagName=e,this.properties=t||O,this.children=n||D,this.key=null!=r?String(r):void 0;for(var i=n&&n.length||0,o=0,a=0;a<i;a++){var s=n[a];E(s)&&(o+=s.count||0)}this.count=i+o}function N(e){this.text=String(e)}function F(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this.text=e}function M(e,t){for(var n=arguments.length,r=Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[],s={},l=function(e,t){if(E(e)){if(e.key){var n=e.key;if(s.hasOwnProperty(n)){var r="";e.properties.id&&(r+='id="'+e.properties.id+'"'),e.properties.className&&(r+='class="'+e.properties.className+'"'),logger.warn("Duplicated key "+n+" found on child: <"+e.tagName+" "+r+"/>. Ignoring the key on this element.Make sure each tt-for item has a unique key. See also: https://developer.toutiao.com/docs/framework/ttml_list_render.html#tt-key"),e.key=void 0}else s[n]=1}t.push(e)}else if(k(e))for(var i=0;i<e.length;i++){var o=e[i];l(o,t)}else if(S(e))t.push(e);else{if(null==e)return;var a=e.toString().replace(/\\r/g,"").replace(/\\n/g,"\n");t.push(new N(a))}};l(r,o);var a=void 0;return t&&t.hasOwnProperty("key")&&(a=t.key,delete t.key),new I(e,t,o,a)}I.prototype.type="VirtualNode",N.prototype.type="VirtualText",F.prototype.type="VirtualComment";var R=/iPhone OS/.test(navigator.userAgent);function L(e){if(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push({identifier:r.identifier,pageX:r.pageX,pageY:r.pageY,clientX:r.clientX,clientY:r.clientY,force:r.force||0})}return t}}var B="string"==typeof document.head.style.touchAction,j=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){j=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();var z=350,H=5,V=["TT-BUTTON","TT-CHECKBOX","TT-RADIO"];function W(i){var o=void 0,a=void 0,s=void 0,l=void 0,e=/iPhone OS (\d{2})/.exec(navigator.userAgent);e&&10<parseInt(e[1])&&tt.subscribe("onHide",function(e){s=!0,clearTimeout(o)});var t=function(e){e.__handledTap||(l=s=!1,a={x:e.touches[0].pageX,y:e.touches[0].pageY},clearTimeout(o),o=setTimeout(function(){var e=new Event("tt-longpress",{bubbles:!0,composed:!0});e.detail=a,i.dispatchEvent(e),l=!0},z),e.__handledTap=!0)},n=function(e){if(!s&&a){var t=Math.abs(e.changedTouches[0].pageX-a.x),n=Math.abs(e.changedTouches[0].pageY-a.y);(H<t||H<n)&&(s=!0,clearTimeout(o))}};B&&j?(i.addEventListener("touchstart",t,{passive:!0}),i.addEventListener("touchmove",n,{passive:!0})):(i.addEventListener("touchstart",t),i.addEventListener("touchmove",n)),i.addEventListener("touchend",function(e){if(!s&&a){s=!0,clearTimeout(o);var t=Math.abs(e.changedTouches[0].pageX-a.x),n=Math.abs(e.changedTouches[0].pageY-a.y);if(!(H<t||H<n||-1!==V.indexOf(i.tagName)&&i.disabled)){var r=new Event("tt-tap",{bubbles:!0,composed:!0});r.detail={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,sourceEndEvent:e,longpressFired:l},i.dispatchEvent(r)}}}),i.addEventListener("touchcancel",function(e){s=!0,clearTimeout(o)})}var Q=["click"];function $(n,e,r){switch(e){case"tap":return n.__hasTapEvent||(n.__hasTapEvent=!0,W(n)),void n.addEventListener("tt-tap",function(e){if(!e.detail.longpressFired||!n.__hasPressHandler)return r.call(n,{touches:e.detail.sourceEndEvent.changedTouches,changedTouches:e.detail.sourceEndEvent.changedTouches,detail:{x:e.detail.x,y:e.detail.y},target:e.detail.sourceEndEvent.target,timeStamp:e.timeStamp,preventDefault:function(){return e.detail.sourceEndEvent.preventDefault()},stopPropagation:function(){e.stopPropagation(),e.detail.sourceEndEvent.__catchedTap=!0}})});case"touchstart":case"touchend":case"touchmove":case"touchcancel":return void n.addEventListener(e,function(e){if(!e.__frozenBySwipeBack){var t={x:e.pageX,y:e.pageY};return Object.defineProperty(e,"detail",{get:function(){return t}}),r.call(n,e)}});case"longtap":case"longpress":return n.__hasTapEvent||(n.__hasTapEvent=!0,W(n)),n.__hasPressHandler=!0,void n.addEventListener("tt-longpress",r)}-1===Q.indexOf(e)&&n.addEventListener(e,r)}function U(e){var t=e.text;if(!t||-1===t.indexOf("transition"))return{transformOrigin:"",transform:"",transition:""};var n=e.option||{};return{style:(t=t.split(";").map(function(e){return e.trim()}).filter(function(e){return""!==e}).reduce(function(e,t){return"transform-origin"===(t=t.split(":"))[0]||"transition"===t[0]||("transform"===t[0]?e.transform=t[1]:(e.style||(e.style={}),e.style[t[0]]=t[1])),e},{})).style,transformOrigin:n.transformOrigin,transform:t.transform,transitionProperty:["transform"].concat(Object.keys(t.style||{})).join(","),transition:n.duration+"ms "+n.timingFunction+" "+n.delay+"ms"}}function Y(y,m){var _=!!m["event-triggered-by"],A=_&&-1<m["event-triggered-by"].indexOf("component"),b=_?m["event-triggered-by"].split("__")[1]:"";Object.keys(m).forEach(function(t){var n=m[t],e=void 0,r=void 0;if(P(n)&&(n=n.__origin),r=/^data-(.+)/.exec(t)){var i=r[1].toLowerCase().replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}).replace(/-/g,"");y.$$data[i]=n}else if(e=/(bind|catch):?(.+)/.exec(t)){var l=e[2],o=n,c="catch"===e[1];n=n||"",y.$$eventHandleNames||Object.defineProperty(y,"$$eventHandleNames",{configurable:!0,value:Object.create(null)}),void 0===y.$$eventHandleNames[l]&&(c&&"touchmove"===l&&!R&&(y.addEventListener("touchstart",function(){ttJSBridge.invoke("disableScrollBounce",{disable:!0})}),y.addEventListener("touchend",function(){ttJSBridge.invoke("disableScrollBounce",{disable:!1})})),$(y,l,function(e){var t,n,r,i,o,a=y.$$eventHandleNames[l];if(a){var s=(t=y,r=l,i=(n=e).target.__eventTargetRef||n.target,o={id:i.id||"",offsetLeft:i.offsetLeft||0,offsetTop:i.offsetTop||0,dataset:i.$$data||{}},{type:r,timeStamp:n.timeStamp||performance.now(),target:o,currentTarget:{id:t.id||"",offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0,dataset:t.$$data||{}},detail:n.detail||{},touches:L(n.touches),changedTouches:L(n.changedTouches)});if(_?A?y.dispatchEvent(new CustomEvent("custom-component-event",{detail:Object.assign({},s,{__name:a,__child_method:!0,__trigger_targets:b}),bubbles:!0,composed:!0})):tt.publishPageEvent(a,s):(tt.publishPageEvent(a,s),y.dispatchEvent(new CustomEvent("custom-component-event",{detail:Object.assign({},s,{__name:a,__child_method:!0}),bubbles:!0,composed:!0}))),c)return e.preventDefault(),e.stopPropagation(),!1}})),y.$$eventHandleNames[l]=o,""===n?y.removeAttribute(t):y.setAttribute(t,n)}else if("animation"===t){var a=null;try{n="string"==typeof n?n:"null",a=JSON.parse(n)}catch(e){n&&logger.warn("Wrong animation property: "+n)}if(!a||!a.steps||!a.steps.length)return;var u=a.steps.map(U),d=0,h=u.length,s=function(){if(d<h){var e=u[d],t=e.transition,n=e.transitionProperty,r=e.transform,i=e.transformOrigin,o=e.style,a=void 0===o?{}:o;for(var s in y.style.transition=t,y.style.transitionProperty=n,y.animationStyle={transition:t,transitionProperty:n,transform:r,transformOrigin:i},y.style.transform=r,y.style.transformOrigin=i,a)y.style[s]=tt.transformRpx(":"+a[s]).slice(1)}};y.removeEventListener("transitionend",y.__transitionEndId),y.__transitionEndId=function(){d+=1,s()},y.addEventListener("transitionend",y.__transitionEndId),s()}else if("style"===t){if("string"!=typeof n){if(!0!==n&&void 0!==n)return void logger.warn("TypeError when apply style, value is not `String`: "+n);n=""}var p=y.animationStyle||{},f=Object.keys(p).filter(function(e){return!(/transform|transition/i.test(e)&&""===p[e]||""===e.trim()||void 0===p[e]||""===p[e]||!isNaN(parseInt(e)))}).map(function(e){return e.replace(/([A-Z]{1})/g,function(e){return"-"+e.toLowerCase()})+":"+p[e]}).join(";");""!==f&&(f+=";"),y.style.cssText=tt.transformRpx(f+n)}else if("className"===t)!0!==n&&null!=n||(n=""),y.className=n;else{if(t=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),window.customElements){var v=window.customElements.get(y.tagName.toLowerCase());if(v&&C(y)&&!w(n)){var g=v.__properties[t];g&&g.type&&(n=y._deserializeValue(n,g.type))}}try{y[t]=n}catch(e){"TT-CUSTOM-COMPONENT"===y.tagName?Object.defineProperty(y,t,{configurable:!0,value:n,writable:!0}):console.error("TypeError applyProperties: ",e)}}})}function q(e){if(x(e))return document.createTextNode(e.text);if(S(e))return document.createComment(e.text);if(!E(e))return null;for(var t,n,r,i=(n=(t=e).properties,r=document.createElement(t.tagName),Object.defineProperty(r,"$$data",{configurable:!0,value:Object.create(null)}),void 0!==t.key&&r.setAttribute(":key",t.key),n["custom-component-name"]&&r.setAttribute("custom-component-name",n["custom-component-name"]),"SLOT"===r.tagName&&n.hasOwnProperty("name")&&(r.setAttribute("name",n.name),delete n.name),n.hasOwnProperty("slot")&&(r.setAttribute("slot",n.slot),delete n.slot),Y(r,n),r),o=e.children,a=document.createDocumentFragment(),s=0;s<o.length;s++){var l=q(o[s]);l&&a.appendChild(l)}return i.appendChild(a),i}if(R){var J=void 0,G=void 0;document.addEventListener("touchstart",function(e){G=!1,J=e.pageX<=43&&!window.TMAConfig.disableSwipeBack?e:null},!0),document.addEventListener("touchmove",function(e){G?e.__frozenBySwipeBack=!0:J&&e.pageX-J.pageX>Math.abs(e.pageY-J.pageY)&&(e.__frozenBySwipeBack=G=!0)},!0)}function X(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}function K(e,t,n){return e.splice(t,1),{from:t,key:n}}function Z(e){for(var t={},n=[],r=e.length,i=0;i<r;i++){var o=e[i];o.key?t[o.key]=i:n.push(i)}return{keys:t,free:n}}function ee(e,t){return e?(k(e)?e.push(t):e=[e,t],e):t}function te(e,t,n){if(0===e.length)return!1;for(var r=0,i=e.length-1,o=void 0,a=void 0;r<=i;){if(a=e[o=(i+r)/2>>0],r===i)return t<=a&&a<=n;if(a<t)r=o+1;else{if(!(n<a))return!0;i=o-1}}return!1}function ne(e,t){var n,r,i,o,a,s,l,c,u,d,h;e.type===X.PROPS?Y(t,e.patch,e.vNode.properties):e.type===X.VTEXT?(d=t,h=e.patch.text,d.parentNode.replaceChild(document.createTextNode(h),d)):e.type===X.ORDER?function(e,t){for(var n={},r=void 0,i=void 0,o=void 0,a=0;a<t.removes.length;a++)i=t.removes[a],r=e.childNodes[i.from],i.key&&(n[i.key]=r),e.removeChild(r);for(var s=e.childNodes.length,l=0;l<t.inserts.length;l++)(r=(o=t.inserts[l]).__needCreate?q(o.vnode):n[o.key])&&e.insertBefore(r,o.to>=s++?null:e.childNodes[o.to])}(t,e.patch):e.type===X.REMOVE?(u=(c=t).parentNode)&&u.removeChild(c):e.type===X.INSERT?(s=t,l=e.patch,s&&s.appendChild(q(l))):e.type===X.VNODE?(i=t,o=e.patch,(a=i.parentNode)&&a.replaceChild(q(o),i)):e.type===X.COMMENT?(n=t,r=e.patch.text,n.textContent=r):console.error("TypeError when apply patch with unknown type: "+e.type)}function re(e,n){var t=[];for(var r in n)"a"!==r&&t.push(Number(r));if(0!==t.length){var i=function e(t,n,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0;te(r,o,o)&&(i[o]=t);var a=n.children;if(a&&a.length)for(var s=Array.from(t.childNodes),l=0;l<a.length;l++){o+=1;var c=a[l],u=o+(c.count||0);te(r,o,u)&&e(s[l],c,r,i,o),o=u}return i}(e,n.a,t);t.forEach(function(t){[].concat(n[t]).forEach(function(e){ne(e,i[t])})})}}function ie(e,t,a,s,l){for(var c=e.children,u=function(e,t){var n=Z(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var o=Z(e),a=o.keys;if(o.free.length===e.length)return{children:t,moves:null};for(var s=[],l=0,c=i.length,u=0,d=0;d<e.length;d++){var h=e[d],p=void 0;h.key?r.hasOwnProperty(h.key)?(p=r[h.key],s.push(t[p])):(u++,s.push(null)):l<c?(p=i[l++],s.push(t[p])):(u++,s.push(null))}for(var f=l>=i.length?t.length:i[l],v=0;v<t.length;v++){var g=t[v];g.key?a.hasOwnProperty(g.key)||s.push(g):f<=v&&s.push(g)}for(var y=s.slice(),m=0,_=[],A=[],b=void 0,w=0;w<t.length;){var k=t[w];for(b=y[m];null===b&&y.length;)_.push(K(y,m,null)),b=y[m];b&&b.key===k.key?(m++,w++):k.key?(b&&b.key&&r[b.key]!==w+1?(_.push(K(y,m,b.key)),(b=y[m])&&b.key===k.key?m++:A.push({key:k.key,to:w})):A.push({key:k.key,to:w}),w++):b&&b.key&&_.push(K(y,m,b.key))}for(;m<y.length;)b=y[m],_.push(K(y,m,b&&b.key));return _.length!==u||A.length?{children:s,moves:{removes:_,inserts:A}}:{children:s,moves:null}}(c,t.children),d=u.children,n=c.length,r=d.length,i=r<n?n:r,o=function(e){var t=c[e],n=d[e];if(l++,t)oe(t,n,a,l);else if(n){var r=void 0;if(n.key&&u.moves&&(r=u.moves.removes.findIndex(function(e){return e.key===n.key})),0<=r){u.moves.removes.splice(r,1);var i=u.moves.inserts.findIndex(function(e){return e.key===n.key});if(-1!==i){var o=u.moves.inserts[i];o.__needCreate=!0,o.vnode=n}}else s=ee(s,new X(X.INSERT,null,n))}E(t)&&t.count&&(l+=t.count)},h=0;h<i;h++)o(h);return u.moves&&(s=ee(s,new X(X.ORDER,e,u.moves))),s}function oe(e,t,n,r){if(e!==t){var i=n[r];if(null==t)i=ee(i,new X(X.REMOVE,e,t));else if(E(t))if(E(e))if(e.tagName===t.tagName&&e.key===t.key){var o=function(e,t){var n=void 0;for(var r in e){r in t||((n=n||{})[r]=void 0);var i=e[r],o=t[r];P(i)&&(e[r]=i=i.__origin),i!==o&&((n=n||{})[r]=o)}for(var a in t)a in e||((n=n||{})[a]=t[a]);return n}(e.properties,t.properties);o&&(i=ee(i,new X(X.PROPS,e,o))),i=ie(e,t,n,i,r)}else i=ee(i,new X(X.VNODE,e,t));else i=ee(i,new X(X.VNODE,e,t));else x(t)?x(e)?e.text!==t.text&&(i=ee(i,new X(X.VTEXT,e,t))):i=ee(i,new X(X.VTEXT,e,t)):S(t)&&(S(e)?e.text!==t.text&&(i=ee(i,new X(X.COMMENT,e,t))):i=ee(i,new X(X.VNODE,e,t)));i&&(n[r]=i)}}X.VTEXT=1,X.VNODE=2,X.PROPS=3,X.ORDER=4,X.INSERT=5,X.REMOVE=6,X.COMMENT=7;var ae=function(e,t){var n={a:e};return oe(e,t,n,0),n};var se=void 0,le={};function ce(){se=void 0,le={}}function ue(e,t){if(w(e))return e;if(!t||!t.length)return e;var n,r,i=t.join("-");return le.hasOwnProperty(i)||(t.forEach(function(e){return se.observe(e,function(){le[i]=!0})}),le[i]=!1),le[i]&&(n=e,r=Object.create({toString:function(){return n+""},valueOf:function(){return null!=n?n.valueOf():n}}),Object.defineProperty(r,"__origin",{value:n}),e=r),e}function de(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"body",r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{id:"app"};se?se.merge(t):se=function(t){if(!w(t)||k(t))throw new Error("Page data must be a plain object");var d={},n=Object.create({observe:function(e,t){d[e]=t},merge:function(c){var u=this;Object.keys(c).forEach(function(e){for(var t=function(e){for(var t=!1,n=e.length,r=[],i="",o=0,a=0;a<n;a++){var s=e[a];"\\"===s?a+1<n&&("."===e[a+1]||"["===e[a+1]||"]"===e[a+1])?(i+=e[a+1],a++):i+="\\":"."===s?i&&(r.push(i),i=""):"["===s?(i&&(r.push(i),i=""),t=!0):"]"===s?(t=!1,r.push(o),o=0):t?o=10*o+s.charCodeAt(0)-48:i+=s}return i&&r.push(i),r}(e),n=t.join("."),r=u.data,i={},o=0,a=t.length;o<a;o++){var s=t[o];if(Number(s)===s&&s%1==0?Array.isArray(r)||(r=i[t[o-1]]=[]):w(r)||(r=i[t[o-1]]={}),o+1===a){var l=r[s];r[s]=c[e],"function"==typeof d[n]&&d[n](r[s],l)}else T(r,s),r=(i=r)[s]}})}});return n.data={},Object.keys(t).forEach(function(e){n.data[e]=t[e]}),n}(t);var i=M(n,r,e.render.call(e,se.data));return function(){for(var e in le)le[e]=!1}(),i}function he(){return new F(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"")}var pe=Object.freeze({h:M,createEmptyNode:he,resetVdomStates:ce,checkDirtyProps:ue,createVirtualTree:de,diffVirtualTree:ae,applyVirtualPatch:re,addListener:$,createElement:q});!function(e){function n(e){u(this,n);var t=y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,"Webview-SDK:"+e));return t.type="WebviewSdkKnownError",t}f(n,e)}(Error);function fe(){}var ve=function(){function e(){u(this,e),this.queues={}}return a(e,[{key:"register",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:fe,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fe,r=this.queues[e]||(this.queues[e]={});r.positive=t,r.negative=n,r.count=0}},{key:"get",value:function(e){return this.queues[e]||{}}},{key:"add",value:function(e){this.queues[e]||this.register(e),this.queues[e].count++}},{key:"remove",value:function(e){this.queues[e]||this.register(e),this.queues[e].count--}},{key:"clear",value:function(){this.queues={}}},{key:"trigger",value:function(e){if(this.queues[e]){var t=this.queues[e],n=t.count,r=t.positive,i=t.negative;if(0<n)for(;0<n--;)r();else if(n<0)for(;n++<0;)i()}}},{key:"triggerAll",value:function(){var t=this;Object.keys(this.queues).forEach(function(e){t.trigger(e)})}}]),e}();function ge(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function ye(e){return e&&e.tagName&&"TT-CUSTOM-COMPONENT"===e.tagName.toUpperCase()}function me(e,t,n){if(!n){for(var r=0;r<t.path.length;){var i=t.path[r];if("SLOT"!==i.tagName&&11!==i.nodeType){n=i;break}r++}n||(n=t.target)}var o,a,s,l,c,u,d,h,p,f,v;s=t,l=((a=n)&&a.tagName||"").toLowerCase(),c=document.activeElement,u=(c&&c.tagName||"").toLowerCase(),d=a&&a.style&&a.style.userSelect,h="span"===l&&d,p=!("scroll"!==s.type||!a.closest||!a.closest("tt-scroll-view")),f=!("scroll"!==s.type||"#document"!==s.target.nodeName),v=(v=("inputWrapper"===a.id||"normal-text"===a.className)&&a.contentEditable)||"inputContainer"===a.id||a.className.startsWith("reminder-block"),"tt-input"===l||"input"===l||"tt-textarea"===l||"textarea"===l||h||p||f||v||"tt-input"===u||"input"===u||"tt-textarea"===u||"textarea"===u||"tt-custom-component"===u||((o=t).preventDefault(),o.stopPropagation());var g=[function(e){var t=(e.target.tagName||"").toLowerCase(),n=e.pageX,r=e.pageY;if("tt-canvas"===t){var i=e.target.getBoundingClientRect();n=e.clientX-i.left,r=e.clientY-i.top}return new Touch({pageX:n,pageY:r,identifier:0,target:e.target,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY})}(t)],y="touchend"===e?[]:g,m=new TouchEvent(e,{bubbles:!0,cancelable:!0,changedTouches:g,touches:y,targetTouches:y,altKey:t.altKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey,composed:!0});return n.dispatchEvent(m),n}Object.defineProperty(window.screen,"width",{get:function(){return window.innerWidth},set:function(){},enumerable:!0,configurable:!0});var _e="LAUNCH",Ae=new Map,be=function(){function r(e,t){u(this,r);var n=e.widget;this.ttJSCore=t,this.window=e,this.widgetInstanceID=n.instanceID,this.widgetID=n.widgetID,this.widgetPath=e.cardIDToPath[this.widgetID],this.window.__SideEffectFnQueues=[],this.docRoot=n.docRoot,this.firstRendered=!1,this.initEvents()}return a(r,null,[{key:"instance",value:function(e){return Ae.has(e)?Ae.get(e):null}}]),a(r,[{key:"initEvents",value:function(){!function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:window,t=void 0,n=void 0;e.addEventListener("mousedown",function(e){t=me("touchstart",e,null)},!0),e.addEventListener("mouseup",function(e){me("touchend",e,t=null)},!0),e.addEventListener("mousemove",function(e){t&&me("touchmove",e,t)},!0),e.addEventListener("mouseover",function(e){n=e.target},!0),e.addEventListener("scroll",function(e){n&&me("touchmove",e,n)},!0)}(this.window)}},{key:"requestWidgetViewUpdate",value:function(e){this.ttJSCore.publish("requestWidgetViewUpdate",{widgetInstanceID:this.widgetInstanceID,widgetID:this.widgetID,widgetPath:this.widgetPath,type:e})}},{key:"attachWidgetInstanceIdToVTree",value:function(e){var t=this;return e&&"VirtualNode"===e.type&&(e.properties["data-widget-instance-id"]=this.widgetInstanceID,e.properties.__widgetDirBase=this.window.widget.bundleBase,e.properties.__widgetRoute=this.widgetPath,e.children.forEach(function(e){return t.attachWidgetInstanceIdToVTree(e)})),e}},{key:"updateView",value:function(e,t){var n=this,r={className:"pc-widget",style:"height: 100%;"},i=this.window.app[this.widgetPath],o=(t||{}).customComponents;if(o&&(this.window.__componentconfig__=o),this.firstRendered){this.window.__SideEffectFnQueues.push(new ve);var a=this.attachWidgetInstanceIdToVTree(de(i,e,"div",r)),s=ae(this.vTree,a);if(re(this.domTree,s),this.vTree=a,0<this.window.__SideEffectFnQueues.length){var l=this.window.__SideEffectFnQueues.pop();l.triggerAll(),l=null}}else document.dispatchEvent(new CustomEvent("customComponentsRender",{detail:{context:this.window}})),ce(),this.vTree=de(i,e,"div",r),this.vTree=this.attachWidgetInstanceIdToVTree(this.vTree),this.domTree=q(this.vTree),this.firstRendered=!0,setTimeout(function(){n.docRoot.querySelector("#__root__").appendChild(n.domTree),tt_w.publishPageEvent("__DOMReady",{currentTarget:{dataset:{widgetInstanceId:n.widgetInstanceID}}})});document.dispatchEvent(new CustomEvent("pageReRender",{detail:{source:"windgetUpdateView"}}))}}]),r}();function we(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).split("."),n=e,r=t.length,i=0;i<r;i++){var o=t[i];if(!n)break;n=n[o]}return n}window.applyWidgetStyle=function(e,t){var n=document.createElement("style");n.textContent=Ee(t);var r=e.querySelector(ke);r||(r=e);r.appendChild(n)},window.putCSSToDomModule=function(e,t,n){if(e.querySelector("#"+n))return;var r=Ee(t),i=document.createElement("div");i.style.display="none",i.innerHTML='<dom-module id="'+n+'"><template><style>'+r+"</style></template></dom-module>",e.querySelector(ke).appendChild(i)};var ke="#__style_node__",Ce=window.ttJSCore={invoke:function(t,e,n){try{l(t,JSON.parse(e),function(e){ttJSBridge.invokeHandler(n,e)})}catch(e){ttJSBridge.invokeHandler(n,{errMsg:t+": api call occor error."})}},publish:function(e,t){var n;b(we(n="string"==typeof(n=t)?JSON.parse(n):n,"widgetInstanceID")||we(n,"data.widgetInstanceID")||we(n,"data.args.widgetInstanceID")||we(n,"data.data.currentTarget.dataset.widgetInstanceId")||we(n,"data.data.target.dataset.widgetInstanceId"),{ev:e,paramString:t,type:"publish"})},onDocumentReady:function(e){!function(e){console.info("Widget domReady",e);var t=e.detail.context;a=t.widget,a.widgetID=a.cardId,a.appID=a.appId,a.instanceID=a.contextId,n=t,r=Ce,i=n.widget.instanceID,o=new be(n,r),Ae.set(i,o),function(t,n){var r,i,o,a,s;regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:r=t.widget,i=r.instanceID,o=r.widgetID,a=r.bundleBase,s=new A(n,i),_.set(i,s),s.postMessage({type:"init",data:{widgetInstanceID:i,widgetID:o,bundleBase:a}});case 4:case"end":return e.stop()}},null,this)}(t,Ce);var n,r,i,o;var a}(e)},onWorkerReady:function(e){var t,n;t=e.widgetInstanceID,(n=be.instance(t))?n.requestWidgetViewUpdate(_e):console.warn("Widget view not found with instanceID: ",t)}};function Ee(e){var n="";return"string"==typeof e&&(e=[e]),e.forEach(function(e){var t;"number"==typeof e&&(e=(0===(t=e)?0:~~(t/2)||1)+"px"),n+=e}),n}document.addEventListener("onToWorkerCustomEvent",function(e){var t=e.detail,n=t.eventName,r=t.instanceId,i=t.payload;window.workerSubscribeHandler(n,d({widgetInstanceID:r},i))}),document.addEventListener("widgetDataChange",function(e){(function(e,t){var n=e.data,r=e.widgetInstanceID,i=e.ext;o=r,a=n,s=i,l=be.instance(o),l?l.updateView(a,s):console.warn("Widget view not found with instanceID: ",o),"function"==typeof t&&t();var o,a,s,l}).apply(null,e.detail)}),document.addEventListener("onDestroy",function(e){!function(e){if(!e)return;var t=(e||{}).instanceId;(function(t){var n;regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=_.get(t),console.info("terminateServiceWorker: "+t),n){e.next=4;break}return e.abrupt("return");case 4:n.ttJSCore.publish("widgetDestroy",{data:{widgetInstanceID:t}}),_.delete(t);case 6:case"end":return e.stop()}},null,this)})(t),n=t,Ae.has(n)&&Ae.delete(n);var n}(e.detail)}),function(Re){Re.jsRuntime="webview";var e=function(e){function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}function l(e){function r(){if(I.__FORCE_LOG__||r.enabled){var i=r,e=+new Date,t=e-(s||e);i.diff=t,i.prev=s,i.curr=e,s=e;for(var o=new Array(arguments.length),n=0;n<o.length;n++)o[n]=arguments[n];o[0]=l.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var a=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(e,t){if("%%"===e)return e;a++;var n=l.formatters[t];if("function"==typeof n){var r=o[a];e=n.call(i,r),o.splice(a,1),a--}return e}),l.formatArgs.call(i,o),(r.log||l.log||console.log.bind(console)).apply(i,o)}}var s;return r.namespace=e,r.enabled=l.enabled(e),r.useColors=l.useColors(),r.color=function(e){var t,n=0;for(t in e)n=(n<<5)-n+e.charCodeAt(t),n|=0;return l.colors[Math.abs(n)%l.colors.length]}(e),r.destroy=t,"function"==typeof l.init&&l.init(r),l.instances.push(r),r}function t(){var e=l.instances.indexOf(this);return-1!==e&&(l.instances.splice(e,1),!0)}function a(e){return{base64:function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t+=String.fromCharCode(n[i]);return H(t)}(e)}}function s(e){if(null!=e)return e.base64?function(e){for(var t=V(e),n=t.length,r=new Uint8Array(n),i=0;i<n;i++)r[i]=t.charCodeAt(i);return r.buffer}(e.base64):void 0}function c(t){return function(e){return Object.prototype.toString.call(e).toLowerCase()===("[object "+t+"]").toLowerCase()}}function u(t,e,n){if(Z&&logger.log("invoke客户端方法",t,e,n),J&&K.needCache.find(function(e){return e===t}))q.push([t,e,n]);else if(N)!function(e,t){if(void 0!==e&&"function"==typeof Q[t]&&""!==e&&null!==e){try{e=JSON.parse(e),e=W.unpack(e)}catch(t){e={}}Q[t](e),delete Q[t]}}(N.invoke(t,e,n,I.jsRuntime),n);else{var r={event:t,paramsString:e,callbackId:n};F.messageHandlers.invoke.postMessage(r)}}function n(e,t){Z&&logger.log("invokeHandler客户端执行回调",e,t),"string"==typeof t&&(t=JSON.parse(t)),t=W.unpack(t);var n=Q[e];"function"==typeof n&&n(t),-1===G.indexOf(e)&&delete Q[e]}function r(t,e,n,r){if(Z&&logger.log("subscribeHandler事件触发",t,e,n,r),t===X.onAppEnterBackground)J=!0;else if(t===X.onAppEnterForeground)for(J=!1;q.length;)u.apply(null,q.shift());if(!J||!K.needDisabled.find(function(e){return e===t})){"string"==typeof e&&(e=JSON.parse(e)),e=W.unpack(e);var i=-1<t.indexOf("custom_event_")?Y[t]:U[t];"function"==typeof i&&i(e,n,r)}}function d(){this._events={},this._conf&&i.call(this,this._conf)}function i(e){e?((this._conf=e).delimiter&&(this.delimiter=e.delimiter),this._maxListeners=void 0!==e.maxListeners?e.maxListeners:ne,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this._newListener=e.newListener),e.removeListener&&(this._removeListener=e.removeListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=ne}function h(e,t){var n="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(n+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var r=new Error(n);r.name="MaxListenersExceededWarning",r.emitter=this,r.count=e,process.emitWarning(r)}else logger.error(n),logger.trace&&logger.trace()}function p(e){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,i.call(this,e)}function v(e,t,n,r){if(!n)return[];var i,o,a,s,l,c,u,d=[],h=t.length,p=t[r],f=t[r+1];if(r===h&&n._listeners){if("function"==typeof n._listeners)return e&&e.push(n._listeners),[n];for(i=0,o=n._listeners.length;i<o;i++)e&&e.push(n._listeners[i]);return[n]}if("*"===p||"**"===p||n[p]){if("*"===p){for(a in n)"_listeners"!==a&&n.hasOwnProperty(a)&&(d=d.concat(v(e,t,n[a],r+1)));return d}if("**"===p){for(a in(u=r+1===h||r+2===h&&"*"===f)&&n._listeners&&(d=d.concat(v(e,t,n,h))),n)"_listeners"!==a&&n.hasOwnProperty(a)&&(d="*"===a||"**"===a?(n[a]._listeners&&!u&&(d=d.concat(v(e,t,n[a],h))),d.concat(v(e,t,n[a],r))):a===f?d.concat(v(e,t,n[a],r+2)):d.concat(v(e,t,n[a],r)));return d}d=d.concat(v(e,t,n[p],r+1))}if((s=n["*"])&&v(e,t,s,r+1),l=n["**"])if(r<h)for(a in l._listeners&&v(e,t,l,h),l)"_listeners"!==a&&l.hasOwnProperty(a)&&(a===f?v(e,t,l[a],r+2):a===p?v(e,t,l[a],r+1):((c={})[a]=l[a],v(e,t,{"**":c},r+1)));else l._listeners?v(e,t,l,h):l["*"]&&l["*"]._listeners&&v(e,t,l["*"],h);return d}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){var e,t=arguments;e=function(){ee.invoke.apply(ee,t)},void 0!==ee?e():document.addEventListener("ttJSBridgeReady",e,!1)}function y(){return function(e){var t=[];for(var n in e)t.push(n);return t.length}(he)||g("getSystemInfoSync",{},function(e){0===e.errMsg.indexOf("getSystemInfoSync:ok")&&(he=e)}),he}function m(e){void 0!==ee?e():document.addEventListener("ttJSBridgeReady",e,!1)}function _(){var e=arguments;m(function(){ee.invoke.apply(ee,e)})}function A(e){_("sentryReport",{url:e.url,method:e.method,header:e.header,data:e.data})}function b(e){var t=y(),n={tag:e.tag||"",data:{mp_id:"object"===("undefined"==typeof TMAConfig?"undefined":M(TMAConfig))&&null!==TMAConfig&&TMAConfig.appId||"",lib_version:t.SDKUpdateVersion||"1.0.0.0",_param_for_special:be.getRunType()}};Object.assign(n.data,e.data),"mp_api_analysis"!==e.tag?_("systemLog",n,function(){"function"==typeof e.cb&&e.cb()}):_("apiCallLog",n,function(){"function"==typeof e.cb&&e.cb()})}function w(o,a){var e=Object.keys(a).filter(function(e){return se[e]||le[e]}).map(function(i){return Object.keys(a[i]).map(function(e){var t=a[i][e],n=t.length,r=t.reduce(function(e,t){return e+t},0)/n;return(se[i]||le[i])+"|"+o+"|"+n+"|"+r+"|"+e.replace(i,"")})});return[].concat.apply([],e)}function k(){ke={},Ce={},Ee={}}function C(){var e=w(1,ke),t=w(2,Ce),n=w(3,Ee),r=[].concat(e,t,n);0<r.length&&be.customReport({tag:"mp_api_analysis",data:{api_data_array:r},cb:k})}function E(e){e()}function x(){var e=arguments;E(function(){ee.invoke.apply(ee,e)})}function S(){var e=arguments;E(function(){ee.on.apply(ee,e)})}function P(){var e=Array.prototype.slice.call(arguments);e[1]={data:e[1],options:{timestamp:Date.now()}},E(function(){ee.publish.apply(ee,e)})}function T(){var e=Array.prototype.slice.call(arguments),r=e[1];e[1]=function(e,t){"string"==typeof e&&(e=JSON.parse(e));var n=e.data;e.options,"function"==typeof r&&r(n,t)},E(function(){ee.subscribe.apply(ee,e)})}function O(d){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},p=Date.now(),f={};for(var t in e)"function"==typeof e[t]&&(f[t]=e[t],delete e[t]);x(d,e,function(e){var t=Date.now();e.errMsg=e.errMsg||d+":ok";var n,r,i,o,a,s,l=0===e.errMsg.indexOf(d+":ok"),c=0===e.errMsg.indexOf(d+":cancel"),u=0===e.errMsg.indexOf(d+":fail");"function"==typeof h.beforeAll&&h.beforeAll(e),l?("function"==typeof h.beforeSuccess&&h.beforeSuccess(e),"function"==typeof f.success&&f.success(e),"function"==typeof h.afterSuccess&&h.afterSuccess(e)):c?("function"==typeof f.cancel&&f.cancel(e),"function"==typeof h.cancel&&h.cancel(e)):u&&("function"==typeof h.beforeFail&&h.beforeFail(e),"function"==typeof f.fail&&f.fail(e),"function"==typeof h.afterFail&&h.afterFail(e)),"function"==typeof f.complete&&f.complete(e),"function"==typeof h.afterAll&&h.afterAll(e),n=d,r=l,i=u,o=e.errMsg,a=t-p,(s=r?ke:i?Ce:Ee)[n]=s[n]||{},s[n][o]=(s[n][o]||[]).concat(a),3e4<=Date.now()-xe&&(xe=Date.now(),setTimeout(C,3e4))})}function D(e){var t=e.name,n=void 0===e.type?"sdk":e.type,r=void 0===e.args?{}:e.args,i=void 0===e.ext?{}:e.ext;Oe[Te]={success:r.success||Ie,fail:r.fail||Ie,complete:r.complete||Ie},De[Te]={beforeAll:i.beforeAll||Ie,beforeSuccess:i.beforeSuccess||Ie,afterSuccess:i.afterSuccess||Ie,beforeFail:i.beforeFail||Ie,afterFail:i.afterFail||Ie,afterAll:i.afterAll||Ie},P("invokeAppServiceMethod",{name:t,type:n,args:r,callbackId:Te}),Te+=1}Re.__JSSDK_VERSION__={SDKVersion:"",SDKUpdateVersion:"",CommitHash:""};var I=new Function("return this;")(),N=I.ttJSCore,F=I.webkit;I.loadScript,I.ttJSCore&&(I.ttJSCore={onDocumentReady:N.onDocumentReady.bind(N)}),I.webkit&&(I.webkit={messageHandlers:{onDocumentReady:{postMessage:function(){return F.messageHandlers.onDocumentReady.postMessage("")}}}});var M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R=[];"object"===M(I.TMAConfig)&&null!==I.TMAConfig&&(I.TMAConfig.onReady=function(e){e(I.TMAConfig)},I.TMAConfig.onRealReady=function(e){"function"==typeof e&&R.push(e)},I.TMAConfig.ready=function(){R.forEach(function(e){e(I.TMAConfig)})});(l.debug=l).coerce=function(e){return e instanceof Error?e.stack||e.message:e},l.disable=function(){l.enable("")},l.enable=function(e){l.save(e),l.names=[],l.skips=[];var t,n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?l.skips.push(new RegExp("^"+e.substr(1)+"$")):l.names.push(new RegExp("^"+e+"$")));for(t=0;t<l.instances.length;t++){var i=l.instances[t];i.enabled=l.enabled(i.namespace)}},l.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=l.skips.length;t<n;t++)if(l.skips[t].test(e))return!1;for(t=0,n=l.names.length;t<n;t++)if(l.names[t].test(e))return!0;return!1},l.humanize=function(e,t){t=t||{};var n,r,i=void 0===e?"undefined":M(e);if("string"===i&&0<e.length)return function(e){if(!(100<(e=String(e)).length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===i&&!1===isNaN(e))return t.long?o(r=e,864e5,"day")||o(r,36e5,"hour")||o(r,6e4,"minute")||o(r,1e3,"second")||r+" ms":864e5<=(n=e)?Math.round(n/864e5)+"d":36e5<=n?Math.round(n/36e5)+"h":6e4<=n?Math.round(n/6e4)+"m":1e3<=n?Math.round(n/1e3)+"s":n+"ms";throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))},l.instances=[],l.names=[],l.skips=[],l.formatters={},l.log=function(){return"object"===("undefined"==typeof console?"undefined":M(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},l.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+l.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))}),e.splice(i,0,n)}},l.save=function(e){try{l.storage.debug=null==e?"":e}catch(e){}},l.load=function(){return"*WARN*,*ERROR*"},l.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},l.storage=function(){var e="undefined"==typeof window?I:window;try{return e.__DEBUG_NAMESPACE?e.__DEBUG_NAMESPACE:e.__DEBUG_NAMESPACE={}}catch(e){}}(),l.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],l.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},l.enable("*WARN*,*ERROR*");var L=[];for(var B in console)L.push(B);var j={};L.filter(function(e){return"function"==typeof console[e]}).forEach(function(e){j[e]=l("[TMA]["+e.toUpperCase()+"][RUNTIME]"),j[e].log=console[e].bind(console)});var z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",H=H||function(e){for(var t,n,r=String(e),i="",o=0,a=z;r.charAt(0|o)||(a="=",o%1);i+=a.charAt(63&t>>8-o%1*8)){if(255<(n=r.charCodeAt(o+=.75)))throw new Error('"btoa" failed');t=t<<8|n}return i},V=V||function(e){var t=String(e).replace(/=+$/,""),n="";if(t.length%4==1)throw new Error('"atob" failed');for(var r,i,o=0,a=0;i=t.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?n+=String.fromCharCode(255&r>>(-2*o&6)):0)i=z.indexOf(i);return n},W={new:a,get:s,pack:function(e){if(!1===c("Object")(e))return e;var t=[];for(var n in e){var r=e[n];if(void 0!==r&&r instanceof ArrayBuffer&&void 0!==r.byteLength){var i=a(r);i.key=n,t.push(i)}}if(0<t.length){for(var o=0;o<t.length;o++)delete e[t[o].key];e.__nativeBuffers__=t}return e},unpack:function(e){if(!1===c("Object")(e)||null==e.__nativeBuffers__)return e;var t=e.__nativeBuffers__;delete e.__nativeBuffers__;for(var n=0;n<t.length;n++){var r=t[n];if(null!=r){var i=s(r);void 0!==i&&i instanceof ArrayBuffer&&(e[r.key]=i)}}return e}},Q={},$=0,U={},Y={},q=[],J=!1,G=[],X={onAppEnterBackground:"onAppEnterBackground",onAppEnterForeground:"onAppEnterForeground"},K={needCache:["showModal","showToast","showActionSheet","hideToast"],needDisabled:["onAccelerometerChange","onCompassChange"]},Z=!1,ee={on:function(e,t){U[e]=t},publish:function(e,t,n){var r,i,o;n=n||[],n=JSON.stringify(n),r="custom_event_"+e,i=JSON.stringify(t),o=n,Z&&logger.log("publish到对岸",r,i,o),N?N.publish(r,i,o,I.jsRuntime):F.messageHandlers.publish.postMessage({event:r,paramsString:i,webviewIds:o})},invoke:function(e,t,n){t=W.pack(t);var r=JSON.stringify(t||{}),i=++$;Q[i]=n,"openSchema"===e&&G.push(i),u(e,r,i)},subscribe:function(e,t){Y["custom_event_"+e]=t}};I.ttJSBridge={get invokeHandler(){return n},get subscribeHandler(){return r}};var te=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},ne=100;(p.EventEmitter2=p).prototype.delimiter=".",p.prototype.setMaxListeners=function(e){void 0!==e&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},p.prototype.event="",p.prototype.once=function(e,t){return this._once(e,t,!1)},p.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},p.prototype._once=function(e,t,n){return this._many(e,1,t,n),this},p.prototype.many=function(e,t,n){return this._many(e,t,n,!1)},p.prototype.prependMany=function(e,t,n){return this._many(e,t,n,!0)},p.prototype._many=function(e,t,n,r){function i(){return 0==--t&&o.off(e,i),n.apply(this,arguments)}var o=this;if("function"!=typeof n)throw new Error("many only accepts instances of Function");return i._origin=n,this._on(e,i,r),o},p.prototype.emit=function(){this._events||d.call(this);var e=arguments[0];if("newListener"===e&&!this._newListener&&!this._events.newListener)return!1;var t,n,r,i,o,a=arguments.length;if(this._all&&this._all.length){if(o=this._all.slice(),3<a)for(t=new Array(a),i=0;i<a;i++)t[i]=arguments[i];for(r=0,n=o.length;r<n;r++)switch(this.event=e,a){case 1:o[r].call(this,e);break;case 2:o[r].call(this,e,arguments[1]);break;case 3:o[r].call(this,e,arguments[1],arguments[2]);break;default:o[r].apply(this,t)}}if(this.wildcard){o=[];var s="string"==typeof e?e.split(this.delimiter):e.slice();v.call(this,o,s,this.listenerTree,0)}else{if("function"==typeof(o=this._events[e])){switch(this.event=e,a){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(a-1),i=1;i<a;i++)t[i-1]=arguments[i];o.apply(this,t)}return!0}o&&(o=o.slice())}if(o&&o.length){if(3<a)for(t=new Array(a-1),i=1;i<a;i++)t[i-1]=arguments[i];for(r=0,n=o.length;r<n;r++)switch(this.event=e,a){case 1:o[r].call(this);break;case 2:o[r].call(this,arguments[1]);break;case 3:o[r].call(this,arguments[1],arguments[2]);break;default:o[r].apply(this,t)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},p.prototype.emitAsync=function(){this._events||d.call(this);var e=arguments[0];if("newListener"===e&&!this._newListener&&!this._events.newListener)return Promise.resolve([!1]);var t,n,r,i,o,a=[],s=arguments.length;if(this._all){if(3<s)for(t=new Array(s),i=1;i<s;i++)t[i]=arguments[i];for(r=0,n=this._all.length;r<n;r++)switch(this.event=e,s){case 1:a.push(this._all[r].call(this,e));break;case 2:a.push(this._all[r].call(this,e,arguments[1]));break;case 3:a.push(this._all[r].call(this,e,arguments[1],arguments[2]));break;default:a.push(this._all[r].apply(this,t))}}if(this.wildcard){o=[];var l="string"==typeof e?e.split(this.delimiter):e.slice();v.call(this,o,l,this.listenerTree,0)}else o=this._events[e];if("function"==typeof o)switch(this.event=e,s){case 1:a.push(o.call(this));break;case 2:a.push(o.call(this,arguments[1]));break;case 3:a.push(o.call(this,arguments[1],arguments[2]));break;default:for(t=new Array(s-1),i=1;i<s;i++)t[i-1]=arguments[i];a.push(o.apply(this,t))}else if(o&&o.length){if(o=o.slice(),3<s)for(t=new Array(s-1),i=1;i<s;i++)t[i-1]=arguments[i];for(r=0,n=o.length;r<n;r++)switch(this.event=e,s){case 1:a.push(o[r].call(this));break;case 2:a.push(o[r].call(this,arguments[1]));break;case 3:a.push(o[r].call(this,arguments[1],arguments[2]));break;default:a.push(o[r].apply(this,t))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(a)},p.prototype.on=function(e,t){return this._on(e,t,!1)},p.prototype.prependListener=function(e,t){return this._on(e,t,!0)},p.prototype.onAny=function(e){return this._onAny(e,!1)},p.prototype.prependAny=function(e){return this._onAny(e,!0)},p.prototype.addListener=p.prototype.on,p.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},p.prototype._on=function(e,t,n){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||d.call(this),this._newListener&&this.emit("newListener",e,t),this.wildcard?function(e,t){for(var n=0,r=(e="string"==typeof e?e.split(this.delimiter):e.slice()).length;n+1<r;n++)if("**"===e[n]&&"**"===e[n+1])return;for(var i=this.listenerTree,o=e.shift();void 0!==o;){if(i[o]||(i[o]={}),i=i[o],0===e.length)return i._listeners?("function"==typeof i._listeners&&(i._listeners=[i._listeners]),i._listeners.push(t),!i._listeners.warned&&0<this._maxListeners&&i._listeners.length>this._maxListeners&&(i._listeners.warned=!0,h.call(this,i._listeners.length,o))):i._listeners=t,!0;o=e.shift()}return!0}.call(this,e,t):this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),n?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&0<this._maxListeners&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,h.call(this,this._events[e].length,e))):this._events[e]=t,this},p.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var n,r=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();r=v.call(this,null,i,this.listenerTree,0)}else{if(!this._events[e])return this;n=this._events[e],r.push({_listeners:n})}for(var o=0;o<r.length;o++){var a=r[o];if(n=a._listeners,te(n)){for(var s=-1,l=0,c=n.length;l<c;l++)if(n[l]===t||n[l].listener&&n[l].listener===t||n[l]._origin&&n[l]._origin===t){s=l;break}if(s<0)continue;return this.wildcard?a._listeners.splice(s,1):this._events[e].splice(s,1),0===n.length&&(this.wildcard?delete a._listeners:delete this._events[e]),this._removeListener&&this.emit("removeListener",e,t),this}(n===t||n.listener&&n.listener===t||n._origin&&n._origin===t)&&(this.wildcard?delete a._listeners:delete this._events[e],this._removeListener&&this.emit("removeListener",e,t))}return function e(t){if(void 0!==t){var n=Object.keys(t);for(var r in n){var i=n[r],o=t[i];o instanceof Function||"object"!==(void 0===o?"undefined":M(o))||null===o||(0<Object.keys(o).length&&e(t[i]),0===Object.keys(o).length&&delete t[i])}}}(this.listenerTree),this},p.prototype.offAny=function(e){var t,n=0,r=0;if(e&&this._all&&0<this._all.length){for(n=0,r=(t=this._all).length;n<r;n++)if(e===t[n])return t.splice(n,1),this._removeListener&&this.emit("removeListenerAny",e),this}else{if(t=this._all,this._removeListener)for(n=0,r=t.length;n<r;n++)this.emit("removeListenerAny",t[n]);this._all=[]}return this},p.prototype.removeListener=p.prototype.off,p.prototype.removeAllListeners=function(e){if(void 0===e)return!this._events||d.call(this),this;if(this.wildcard)for(var t="string"==typeof e?e.split(this.delimiter):e.slice(),n=v.call(this,null,t,this.listenerTree,0),r=0;r<n.length;r++)n[r]._listeners=null;else this._events&&(this._events[e]=null);return this},p.prototype.listeners=function(e){if(this.wildcard){var t=[],n="string"==typeof e?e.split(this.delimiter):e.slice();return v.call(this,t,n,this.listenerTree,0),t}return this._events||d.call(this),this._events[e]||(this._events[e]=[]),te(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},p.prototype.eventNames=function(){return Object.keys(this._events)},p.prototype.listenerCount=function(e){return this.listeners(e).length},p.prototype.listenersAny=function(){return this._all?this._all:[]};var re="micro_app",ie="micro_game",oe="ide",ae={};f(ae,re,"thirdScriptError"),f(ae,ie,"gameThirdScriptError");var se={createRequestTask:1,operateRequestTask:2,createUploadTask:3,operateUploadTask:4,createDownloadTask:5,operateDownloadTask:6,setAudioState:7,getAudioState:8,operateAudio:9,createAudioInstance:10,destroyAudioInstance:11,operateRecorder:12,chooseVideo:13,saveVideoToPhotosAlbum:14,saveFile:15,getStorage:16,setStorage:17,removeStorage:18,removeStorageSync:19,clearStorage:20,getStorageInfo:21,getStorageInfoSync:22,openLocation:23,getSystemInfo:24,getSystemInfoSync:25,getNetworkType:26,getConnectedWifi:27,getClipboardData:28,setClipboardData:29,setKeepScreenOn:30,enableAccelerometer:31,vibrateShort:32,vibrateLong:33,showModal:34,showToast:35,hideToast:36,showActionSheet:37,redirectTo:38,reLaunch:39,navigateTo:40,switchTab:41,navigateBack:42,protocolPathToAbsPath:43,base64ToTempFilePath:44,makePhoneCall:45,login:46,checkSession:47,getUserInfo:48,getUseDuration:49,dealUserRelation:50,requestPayment:51,chooseAddress:52,setKeyboardValue:53,hideKeyboard:54,getCurrentRoute:55,getPhoneNumber:56,initReady:57,showKeyboard:58,showDatePickerView:59,insertVideoPlayer:60,removeVideoPlayer:61,webViewReadyToTerminate:62,getFileInfo:63,getSavedFileList:64,removeSavedFile:65,saveFileSync:66,readFile:67,readFileSync:68,writeFileSync:69,mkdirSync:70,readdirSync:71,rmdirSync:72,accessSync:73,unlinkSync:74,statSync:75,renameSync:76,copyFile:77,copyFileSync:78,unzip:79,getMenuButtonBoundingClientRect:80,updateKeyboard:81,exitMiniProgram:82,getLaunchOptionsSync:83,showShareMenu:84,hideShareMenu:85,getShareInfo:86,shareAppMessageDirectly:87,updateShareMenu:88,shareVideo:89,startCompass:90,stopCompass:91,startGameRecord:92,stopGameRecord:93,chooseImage:94,previewImage:95,getImageInfo:96,saveImageToPhotosAlbum:97,authorize:98,insertContainer:99,updateContainer:100,removeContainer:101,updateInput:102,showPickerView:104,showMultiPickerView:105,updateMultiPickerView:106,disableScrollBounce:107,removeTextArea:108,insertTextArea:109,updateTextArea:110,insertHTMLWebView:111,removeHTMLWebView:112,updateHTMLWebView:113,createSocketTask:114,operateSocketTask:115,getLocation:116,scanCode:117,startPullDownRefresh:118,stopPullDownRefresh:119,getSetting:120,openSetting:121,resumeGameRecord:122,getCloudStorageByRelation:123,getUserCloudStorage:124,removeUserCloudStorage:125,setUserCloudStorage:126,openUserProfile:127,pauseGameRecord:128,operateVideoAd:129,createVideoAd:130,getGeneralInfo:131,tma_login:132,openSchema:133,getVideoManager:134,createFaceDetector:135,requestCamera:136,createOffscreenVideo:137,reportAnalytics:138,requestGamePayment:139,operateScreenRecorder:140,_webviewGetPhoneNumber:141,_serviceGetPhoneNumber:142},le={tt_checkIsFollowUser:5e3,tt_requestFollowUser:5001,aweme_addFriend:6e3},ce={webview2AppService:1,appService2Webview:2,funcReady:3,firstGetData:4,firstRenderTime:5,reRenderTime:6,forceUpdateRenderTime:7,appRoute2newPage:8,newPage2pageReady:9,thirdScriptRunTime:10,pageframe:11,WAWebview:12,WAWidget:13,widgetCanvasReady:14,widgetFirstDataPush:15},ue={appServiceSDKScriptError:1,webviewSDKScriptError:2,jsEngineScriptError:3,thirdScriptError:4,webviewScriptError:5,parserScriptError:6},de=[1,2,3,4,5,6],he={},pe=0,fe="",ve="",ge="",ye=null,me=function(){},_e=re,Ae={surroundThirdByTryCatch:function(r,i){var o="";return ve&&(o="at "+ve+" "+ge+" function;"),function(){var e;try{var t=Date.now();e=r.apply(r,arguments);var n=Date.now()-t;1e3<n&&Ae.slowReport({key:"apiCallBack",cost:n,extend:o+i})}catch(e){Ae.thirdErrorReport({error:e,extend:o+i})}return e}},slowReport:function(e){},speedReport:function(e){var t=e.key,n=e.data,r=e.timeMark,i=e.force,o=e.eventName,a=r.startTime,s=r.endTime,l=ce[t],c=Date.now(),u=0;l&&a&&s&&(i||500<=c-pe)&&(n&&(u=JSON.stringify(n).length),pe=c,b({tag:"mp_speed_analysis",data:{speed_value_type:t,total_duration:s-a,param_length:u||0,event_name:o||""}}))},thirdErrorReport:function(e){var t=e.error,n=e.extend;Ae.errorReport({key:"thirdScriptError",error:t,extend:n})},errorReport:function(e){var t=e.key,n=e.error,r=e.extend,i=ue[t];if(i&&n){var o=t+"\n"+(r?n.message+";"+r:n.message)+"\n"+n.stack;if(logger.error(o),"undefined"!=typeof window&&window.__webviewId__?function(){var e=arguments;m(function(){ee.publish.apply(ee,e)})}("WEBVIEW_ERROR_MSG",{data:{msg:o},options:{timestamp:Date.now()}}):Ae.triggerErrorMessage(o),!(-1<de.indexOf(i)))return;if(I.Sentry){ye||(ye=new Sentry({transportCallback:A}));var a=y();ye.report(n,{error_type:t,mp_id:"object"===("undefined"==typeof TMAConfig?"undefined":M(TMAConfig))&&null!==TMAConfig&&TMAConfig.appId||"",lib_version:I.__JSSDK_VERSION__&&I.__JSSDK_VERSION__.SDKUpdateVersion,version_code:a.version,run_type:Ae.getRunType()})}else logger.error(o)}},registerErrorListener:function(e){"function"==typeof e&&(me=e)},triggerErrorMessage:function(e){fe!=e&&(fe=e,setTimeout(function(){try{me(e)}catch(e){logger.error(e.message+" at onError callback function")}},0))},unRegisterErrorListener:function(){me=function(){}},customReport:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"":t,r=e.data;b({tag:n,data:void 0===r?{}:r,cb:e.cb})},setAsGame:function(){_e=ie},saveAsDevtools:function(){_e=oe},getRunType:function(){return _e}},be={};for(var we in Ae)!function(t){be.__defineGetter__(t,function(){return e=Ae[t],function(){try{return e.apply(e,arguments)}catch(e){logger.error("reporter error: "+(e&&e.message))}};var e})}(we);be.__defineSetter__("__route__",function(e){ve=e}),be.__defineSetter__("__method__",function(e){ge=e}),"undefined"!=typeof window&&(window.Reporter=be),"undefined"!=typeof window&&(window.onbeforeunload=function(){});var ke={},Ce={},Ee={},xe=0;Object.assign(window.ttJSBridge,ee),window.ttJSBridge_w=Object.assign({},window.ttJSBridge);var Se,Pe=new p,Te=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,Se.call(this,"Webview-SDK:"+t));return n.type="WebviewSdkKnownError",n},Se=Error),0),Oe=[],De=[],Ie=function(){};T("callbackAppServiceMethod",function(e){var t=e.res,n=e.isSuccess,r=e.callbackId,i=Oe[r],o=De[r];o.beforeAll(t),n?(o.beforeSuccess(t),i.success(t),o.afterSuccess(t)):(o.beforeFail(t),i.fail(t),o.afterFail(t)),i.complete(t),o.afterAll(t)}),Pe.setMaxListeners(0),T("invokeWebviewMethod",function(n){Pe.emit(n.name,n.args,function(e,t){P("callbackWebviewMethod",{res:e,isSuccess:t,callbackId:n.callbackId,widgetInstanceID:n.args.widgetInstanceID})})});var Ne=!1;T("vconsole_synchronize_logs",function(e){new VConsole({defaultPlugins:["system"]});var t=e.logs;Ne||(Ne=!0,t.forEach(function(e){var t,n=e.method,r=e.args;(t=console)[n].apply(t,r)}))}),["log","warn","error","info","debug"].forEach(function(n){T("vconsole_"+n,function(e){var t;(t=console)[n].apply(t,e.log)})}),document.addEventListener("generateFuncReady",function(){setTimeout(function(){P("GenerateFuncReady",{})},20)});var Fe={invoke:x,invokeMethod:O,on:S,publish:P,subscribe:T,transformRpx:function(e){if("string"!=typeof e)return e;for(var t=0,n="",r="",i=0,o=e.length;i<o;i++){var a=e[i];if(1===t){if("\n"===a||"\r"===a||" "===a&&" "===n.slice(-1))continue;if("("===a&&"url"===n.slice(-4,-1)&&(t=2),";"===a&&(t=0),/[\d.]/.test(a)&&i<o-1){t=3,r+=a;continue}n+=a}else if(2===t)")"===a&&(t=1),n+=a;else if(3===t){if(!/[\d.]/.test(a)){var s=Number(r);e.slice(i,i+4).match(/rpx([\s;),}]|$)/)&&!isNaN(s)?(n+=window.rpx2px(s)+"px",i+=2):(n+=r,n+=a),t=1,r="";continue}r+=a,i===o-1&&(n+=r)}else":"===a&&(t=1),n+=a}return n},getPlatform:function(){var e=window.navigator.userAgent.toLowerCase();return/(iphone|ipad)/.test(e)?"ios":/android/.test(e)?"android":void 0},getRealRoute:function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(0===n.indexOf("/"))return n.substr(1);if(0===n.indexOf("./"))return e(t,n.substr(2));var r,i,o=n.split("/");for(r=0,i=o.length;r<i&&".."===o[r];r++);o.splice(0,r),n=o.join("/");var a=0<t.length?t.split("/"):[];return a.splice(a.length-r-1,r+1),a.concat(o).join("/")},showKeyboard:function(e){O("showKeyboard",e)},showDatePickerView:function(e){O("showDatePickerView",e)},hideKeyboard:function(e){O("hideKeyboard",e)},insertVideoPlayer:function(e){O("insertVideoPlayer",e)},removeVideoPlayer:function(e){O("removeVideoPlayer",e)},webViewReadyToTerminate:function(e){O("webViewReadyToTerminate",e)},redirectTo:function(e){D({name:"redirectTo",args:e})},navigateTo:function(e){D({name:"navigateTo",args:e})},switchTab:function(e){D({name:"switchTab",args:e})},reLaunch:function(e){D({name:"reLaunch",args:e})},navigateBack:function(e){D({name:"navigateBack",args:e})},clearStorage:function(e){D({name:"clearStorage",args:e})},getSystemInfo:function(e){D({name:"getSystemInfo",args:e})},getHTMLLength:function(){return document.body.innerHTML.length},getCurrentRoute:function(e){O("getCurrentRoute",e,{beforeSuccess:function(e){e.route=e.route.split("?")[0]}})},onRequestComponentInfo:function(e){T("requestComponentInfo",e)},sendComponentInfo:function(e){P("responseComponentInfo",e)},onRequestComponentObserver:function(e){T("requestComponentObserver",e)},sendComponentObserver:function(e){P("responseComponentObserver",e)},onWebViewWillManuallyTerminate:function(e){S("onWebViewWillManuallyTerminate",e)},onAppDataChange:function(n){Pe.on("appDataChange",function(e,t){n(e,t)})},onWidgetDataChange:function(n){Pe.on("widgetDataChange",function(e,t){n(e,t)})},onComponentDataChange:function(n){Pe.on("componentDataChange",function(e,t){n(e,t)})},onTriggerComponentEvent:function(n){Pe.on("triggerComponentEvent",function(e,t){n(e,t)})},onSelectComponent:function(n){Pe.on("selectComponent",function(e,t){n(e,t)})},onSelectComponentInPage:function(n){Pe.on("selectComponentInPage",function(e,t){n(e,t)})},onGetRelationNodes:function(n){Pe.on("getRelationNodes",function(e,t){n(e,t)})},onPageScrollTo:function(n){Pe.on("pageScrollTo",function(e,t){n(e,t)})},clearLog:function(){P("webviewClearLog")},publishPageEvent:function(e,t,n){P("PAGE_EVENT",{eventName:e,data:t,nodeId:n})},publishComentEvent:function(e,t,n,r,i,o){P("COMPONENT_EVENT",{eventName:e,data:t,nodeId:n,islifetime:r,route:i,widgetInstanceID:o||""})},publishComponentDataChange:function(e,t,n,r){P("COMPONENT_DATA_CHANGE",{datatype:e,data:t,nodeId:n,widgetInstanceID:r})},publishComponentRelationChange:function(e,t){P("COMPONENT_RELATION_CHANGE",{data:e,widgetInstanceID:t})},dosomething:function(){},getProtocolXPath:function(e,t,n){O("protocolPathToAbsPath",{protocolPath:e,widgetInstanceID:n},{beforeAll:function(e){t(e.absPath)}})},addTimingDots:function(e){P("addTimingDots",{timingMap:e})},setPerformance:function(){P("setPerformance")}};for(var Me in Fe)"function"==typeof Fe[Me]&&(Fe[Me]=function(e,t){return function(){try{return e.apply(e,arguments)}catch(e){if("[object Error]"===Object.prototype.toString.apply(e)){if("WebviewSdkKnownError"==e.type)throw e;Reporter.errorReport({key:"webviewSDKScriptError",error:e,extend:t})}}}}(Fe[Me],"at tt."+Me));return e.logger=j,e.tt=Fe,e}({});Re.tt=Re.tt_w=Re.wx=e.tt,Re.logger=e.logger}(window),window.JSCompiler_renameProperty=function(e){return e};var xe=/(url\()([^)]*)(\))/g,Se=/(^\/)|(^#)|(^[\w-\d]*:)/,Pe=void 0,Te=void 0;function Oe(e,t){if(e&&Se.test(e))return e;if(void 0===Pe){Pe=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",Pe="http://a/c%20d"===n.href}catch(e){}}return t||(t=document.baseURI||window.location.href),Pe?new URL(e,t).href:(Te||((Te=document.implementation.createHTMLDocument("temp")).base=Te.createElement("base"),Te.head.appendChild(Te.base),Te.anchor=Te.createElement("a"),Te.body.appendChild(Te.anchor)),Te.base.href=t,Te.anchor.href=e,Te.anchor.href||e)}function De(e,i){return e.replace(xe,function(e,t,n,r){return t+"'"+Oe(n.replace(/["']/g,""),i)+"'"+r})}function Ie(e){return e.substring(0,e.lastIndexOf("/")+1)}window.ShadyDOM,Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback;var Ne=Ie(document.baseURI||window.location.href),Fe=void 0,Me=!1,Re=0,Le=function(o){var a=o.__mixinApplications;a||(a=new WeakMap,o.__mixinApplications=a);var s=Re++;return function(e){var t=e.__mixinSet;if(t&&t[s])return e;var n=a,r=n.get(e);r||(r=o(e),n.set(e,r));var i=Object.create(r.__mixinSet||t||null);return i[s]=!0,r.__mixinSet=i,r}},Be="link[rel=import][type~=css]",je="include",ze="shady-unscoped";function He(e){var t=customElements.get("dom-module");return t?t.import(e):null}function Ve(e){var t=De((e.body?e.body:e).textContent,e.baseURI),n=document.createElement("style");return n.textContent=t,n}function We(e){for(var t=e.trim().split(/\s+/),n=[],r=0;r<t.length;r++)n.push.apply(n,m(Qe(t[r])));return n}function Qe(e){var t=He(e);if(!t)return console.warn("Could not find style data in module named",e),[];if(void 0===t._styles){var n=[];n.push.apply(n,m(Ue(t)));var r=t.querySelector("template");r&&n.push.apply(n,m($e(r,t.assetpath))),t._styles=n}return t._styles}function $e(e,t){if(!e._styles){for(var n=[],r=e.content.querySelectorAll("style"),i=0;i<r.length;i++){var o=r[i],a=o.getAttribute(je);a&&n.push.apply(n,m(We(a).filter(function(e,t,n){return n.indexOf(e)===t}))),t&&(o.textContent=De(o.textContent,t)),n.push(o)}e._styles=n}return e._styles}function Ue(e){for(var t=[],n=e.querySelectorAll(Be),r=0;r<n.length;r++){var i=n[r];if(i.import){var o=i.import,a=i.hasAttribute(ze);if(a&&!o._unscopedStyle){var s=Ve(o);s.setAttribute(ze,""),o._unscopedStyle=s}else o._style||(o._style=Ve(o));t.push(a?o._unscopedStyle:o._style)}}return t}var Ye={},qe={};var Je=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"attributeChangedCallback",value:function(e,t,n,r){t!==n&&this.register()}},{key:"register",value:function(e){var t;(e=e||this.id)&&(this.id=e,Ye[e]=this,qe[e.toLowerCase()]=this,(t=this).querySelector("style")&&console.warn("dom-module %s has style outside template",t.id))}},{key:"assetpath",get:function(){if(!this.__assetpath){var e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Oe(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ie(t)}return this.__assetpath}}],[{key:"import",value:function(e,t){if(e){var n=Ye[r=e]||qe[r.toLowerCase()];return n&&t?n.querySelector(t):n}var r;return null}},{key:"observedAttributes",get:function(){return["id"]}}]),t}(HTMLElement);function Ge(e){return 0<=e.indexOf(".")}function Xe(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Ke(e,t){return 0===e.indexOf(t+".")}function Ze(e,t){return 0===t.indexOf(e+".")}function et(e,t,n){return t+n.slice(e.length)}function nt(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].toString().split("."),i=0;i<r.length;i++)t.push(r[i]);return t.join(".")}return e}function rt(e){return Array.isArray(e)?nt(e).split("."):e.toString().split(".")}function it(e,t,n){for(var r=e,i=rt(t),o=0;o<i.length;o++){if(!r)return;r=r[i[o]]}return n&&(n.path=i.join(".")),r}function ot(e,t,n){var r=e,i=rt(t),o=i[i.length-1];if(1<i.length){for(var a=0;a<i.length-1;a++){if(!(r=r[i[a]]))return}r[o]=n}else r[t]=n;return i.join(".")}Je.prototype.modules=Ye,customElements.define("dom-module",Je);var at={},st=/-[a-z]/g,lt=/([A-Z])/g;function ct(e){return at[e]||(at[e]=e.indexOf("-")<0?e:e.replace(st,function(e){return e[1].toUpperCase()}))}function ut(e){return at[e]||(at[e]=e.replace(lt,"-$1").toLowerCase())}var dt=Object.freeze({dashToCamelCase:ct,camelToDashCase:ut}),ht=0,pt=0,ft=[],vt=0,gt=document.createTextNode("");new window.MutationObserver(function(){for(var e=ft.length,t=0;t<e;t++){var n=ft[t];if(n)try{n()}catch(e){setTimeout(function(){throw e})}}ft.splice(0,e),pt+=e}).observe(gt,{characterData:!0});for(var yt=function(t){return{run:function(e){return window.setTimeout(e,t)},cancel:function(e){window.clearTimeout(e)}}},mt={run:function(e){return gt.textContent=vt++,ft.push(e),ht++},cancel:function(e){var t=e-pt;if(0<=t){if(!ft[t])throw new Error("invalid async handle: "+e);ft[t]=null}}},_t=mt,At=Le(function(t){return function(e){function i(){u(this,i);var e=y(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.__dataEnabled=!1,e.__dataReady=!1,e.__dataInvalid=!1,e.__data={},e.__dataPending=null,e.__dataOld=null,e.__dataInstanceProps=null,e.__serializing=!1,e._initializeProperties(),e}return f(i,t),a(i,[{key:"_createPropertyAccessor",value:function(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}},{key:"_addPropertyToAttributeMap",value:function(e){if(this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes)),!this.__dataAttributes[e]){var t=this.constructor.attributeNameForProperty(e);this.__dataAttributes[t]=e}}},{key:"_definePropertyAccessor",value:function(t,e){Object.defineProperty(this,t,{get:function(){return this._getProperty(t)},set:e?function(){}:function(e){this._setProperty(t,e)}})}}],[{key:"createProperties",value:function(e){var t=this.prototype;for(var n in e)n in t||t._createPropertyAccessor(n)}},{key:"attributeNameForProperty",value:function(e){return e.toLowerCase()}},{key:"typeForProperty",value:function(e){}}]),a(i,[{key:"ready",value:function(){this.__dataReady=!0,this._flushProperties()}},{key:"_initializeProperties",value:function(){for(var e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}},{key:"_initializeInstanceProperties",value:function(e){Object.assign(this,e)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}},{key:"_getProperty",value:function(e){return this.__data[e]}},{key:"_setPendingProperty",value:function(e,t,n){var r=this.__data[e],i=this._shouldPropertyChange(e,t,r);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||e in this.__dataOld||(this.__dataOld[e]=r),this.__data[e]=t,this.__dataPending[e]=t),i}},{key:"_invalidateProperties",value:function(){var e=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,_t.run(function(){e.__dataInvalid&&(e.__dataInvalid=!1,e._flushProperties())}))}},{key:"_enableProperties",value:function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}},{key:"_flushProperties",value:function(){var e=this.__data,t=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(e,t,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,n))}},{key:"_shouldPropertiesChange",value:function(e,t,n){return Boolean(t)}},{key:"_propertiesChanged",value:function(e,t,n){}},{key:"_shouldPropertyChange",value:function(e,t,n){return n!==t&&(n==n||t==t)}},{key:"attributeChangedCallback",value:function(e,t,n,r){t!==n&&this._attributeToProperty(e,n),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this)&&p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,e,t,n,r)}},{key:"_attributeToProperty",value:function(e,t,n){if(!this.__serializing){var r=this.__dataAttributes,i=r&&r[e]||e;this[i]=this._deserializeValue(t,n||this.constructor.typeForProperty(i))}}},{key:"_propertyToAttribute",value:function(e,t,n){this.__serializing=!0,n=arguments.length<3?this[e]:n,this._valueToNodeAttribute(this,n,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}},{key:"_valueToNodeAttribute",value:function(e,t,n){var r=this._serializeValue(t);void 0===r?e.removeAttribute(n):e.setAttribute(n,r)}},{key:"_serializeValue",value:function(e){switch(typeof e){case"boolean":return e?"":void 0;default:return null!=e?e.toString():void 0}}},{key:"_deserializeValue",value:function(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}}]),i}()}),bt=dt,wt={},kt=HTMLElement.prototype;kt;){for(var Ct=Object.getOwnPropertyNames(kt),Et=0;Et<Ct.length;Et++){if(!/^\$t_/.test(Ct[Et])){wt[Ct[Et]]=!0;}}kt=Object.getPrototypeOf(kt)}var xt=Le(function(e){var t=At(e);return function(e){function r(){return u(this,r),y(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return f(r,t),a(r,[{key:"_initializeProperties",value:function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_initializeProperties",this).call(this)}},{key:"_initializeProtoProperties",value:function(e){for(var t in e)this._setProperty(t,e[t])}},{key:"_ensureAttribute",value:function(e,t){this.hasAttribute(e)||this._valueToNodeAttribute(this,t,e)}},{key:"_serializeValue",value:function(e){switch(typeof e){case"object":if(e instanceof Date)return e.toString();if(e)try{return JSON.stringify(e)}catch(e){return""}default:return p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_serializeValue",this).call(this,e)}}},{key:"_deserializeValue",value:function(t,e){var n=void 0;switch(e){case Object:try{n=JSON.parse(t)}catch(e){n=t}break;case Array:try{n=JSON.parse(t)}catch(e){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+t)}break;case Date:n=isNaN(t)?String(t):Number(t),n=new Date(n);break;default:n=p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_deserializeValue",this).call(this,t,e)}return n}},{key:"_definePropertyAccessor",value:function(e,t){!function(e,t){if(!wt[t]){var n=e[t];void 0!==n&&(e.__data?e._setPendingProperty(t,n):(e.__dataProto?e.hasOwnProperty(JSCompiler_renameProperty("__dataProto",e))||(e.__dataProto=Object.create(e.__dataProto)):e.__dataProto={},e.__dataProto[t]=n))}}(this,e),p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_definePropertyAccessor",this).call(this,e,t)}},{key:"_hasAccessor",value:function(e){return this.__dataHasAccessor&&this.__dataHasAccessor[e]}},{key:"_isPropertyPending",value:function(e){return Boolean(this.__dataPending&&e in this.__dataPending)}}],[{key:"createPropertiesForAttributes",value:function(){for(var e=this.observedAttributes,t=0;t<e.length;t++)this.prototype._createPropertyAccessor(bt.dashToCamelCase(e[t]))}},{key:"attributeNameForProperty",value:function(e){return bt.camelToDashCase(e)}}]),r}()}),St={"dom-if":!0,"dom-repeat":!0};function Pt(e){var t=e.getAttribute("is");if(t&&St[t]){var n=e;for(n.removeAttribute("is"),e=n.ownerDocument.createElement(t),n.parentNode.replaceChild(e,n),e.appendChild(n);n.attributes.length;)e.setAttribute(n.attributes[0].name,n.attributes[0].value),n.removeAttribute(n.attributes[0].name)}return e}function Tt(e,t){var n=t.parentInfo&&Tt(e,t.parentInfo);if(!n)return e;for(var r=n.firstChild,i=0;r;r=r.nextSibling)if(t.parentIndex===i++)return r}function Ot(e,t,n){if(n.events&&n.events.length)for(var r,i=0,o=n.events;i<o.length&&(r=o[i]);i++)e._addMethodEventListenerToNode(t,r.name,r.value,e)}var Dt=Le(function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"_stampTemplate",value:function(e){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);var t=this.constructor._parseTemplate(e),n=t.nodeInfoList,r=t.content||e.content,i=document.importNode(r,!0);i.__noInsertionPoint=!t.hasInsertionPoint;var o,a,s,l,c,u=i.nodeList=new Array(n.length);i.$={};for(var d,h=0,p=n.length;h<p&&(d=n[h]);h++){var f=u[h]=Tt(i,d);s=i.$,l=f,(c=d).id&&(s[c.id]=l),o=f,(a=d).templateInfo&&(o._templateInfo=a.templateInfo),Ot(this,f,d)}return i=i}},{key:"_addMethodEventListenerToNode",value:function(e,t,n,r){var i,o,a=(o=n,i=(i=r=r||e)._methodHost||i,function(e){i[o]?i[o](e,e.detail):console.warn("listener method `"+o+"` not defined")});return this._addEventListenerToNode(e,t,a),a}},{key:"_addEventListenerToNode",value:function(e,t,n){e.addEventListener(t,n)}},{key:"_removeEventListenerFromNode",value:function(e,t,n){e.removeEventListener(t,n)}}],[{key:"_parseTemplate",value:function(e,t){if(!e._templateInfo){var n=e._templateInfo={};n.nodeInfoList=[],n.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,n,{parent:null})}return e._templateInfo}},{key:"_parseTemplateContent",value:function(e,t,n){return this._parseTemplateNode(e.content,t,n)}},{key:"_parseTemplateNode",value:function(e,t,n){var r=void 0,i=e;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(t.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(i,t,n)||r,i.firstChild&&(r=this._parseTemplateChildNodes(i,t,n)||r),i.hasAttributes&&i.hasAttributes()&&(r=this._parseTemplateNodeAttributes(i,t,n)||r),r}},{key:"_parseTemplateChildNodes",value:function(e,t,n){if("script"!==e.localName&&"style"!==e.localName)for(var r,i=e.firstChild,o=0;i;i=r){if("template"==i.localName&&(i=Pt(i)),r=i.nextSibling,i.nodeType===Node.TEXT_NODE){for(var a=r;a&&a.nodeType===Node.TEXT_NODE;)i.textContent+=a.textContent,r=a.nextSibling,e.removeChild(a),a=r;if(t.stripWhiteSpace&&!i.textContent.trim()){e.removeChild(i);continue}}var s={parentIndex:o,parentInfo:n};this._parseTemplateNode(i,t,s)&&(s.infoIndex=t.nodeInfoList.push(s)-1),i.parentNode&&o++}}},{key:"_parseTemplateNestedTemplate",value:function(e,t,n){var r=this._parseTemplate(e,t);return(r.content=e.content.ownerDocument.createDocumentFragment()).appendChild(e.content),n.templateInfo=r,!0}},{key:"_parseTemplateNodeAttributes",value:function(e,t,n){for(var r,i=!1,o=Array.from(e.attributes),a=o.length-1;r=o[a];a--)i=this._parseTemplateNodeAttribute(e,t,n,r.name,r.value)||i;return i}},{key:"_parseTemplateNodeAttribute",value:function(e,t,n,r,i){return"on-"===r.slice(0,3)?(e.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:i}),!0):"id"===r&&(n.id=i,!0)}},{key:"_contentForTemplate",value:function(e){var t=e._templateInfo;return t&&t.content||e.content}}]),t}()}),It=dt,Nt=0,Ft={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Mt=/[A-Z]/;function Rt(e,t){var n=e[t];if(n){if(!e.hasOwnProperty(t))for(var r in n=e[t]=Object.create(e[t]))for(var i=n[r],o=n[r]=Array(i.length),a=0;a<i.length;a++)o[a]=i[a]}else n=e[t]={};return n}function Lt(e,t,n,r,i,o){if(t){var a=!1,s=Nt++;for(var l in n)Bt(e,t,s,l,n,r,i,o)&&(a=!0);return a}return!1}function Bt(e,t,n,r,i,o,a,s){var l=!1,c=t[a?Xe(r):r];if(c)for(var u,d=0,h=c.length;d<h&&(u=c[d]);d++)u.info&&u.info.lastRun===n||a&&!jt(r,u.trigger)||(u.info&&(u.info.lastRun=n),u.fn(e,r,i,o,u.info,a,s),l=!0);return l}function jt(e,t){if(t){var n=t.name;return n==e||t.structured&&Ke(n,e)||t.wildcard&&Ze(n,e)}return!0}function zt(e,t,n,r,i){var o="string"==typeof i.method?e[i.method]:i.method,a=i.property;o?o.call(e,e.__data[a],r[a]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function Ht(e,t,n,r){var i={value:n,queueProperty:!0};r&&(i.path=r),e.dispatchEvent(new CustomEvent(t,{detail:i}))}function Vt(e,t,n,r,i,o){var a=(o?Xe(t):t)!=t?t:null,s=a?it(e,a):e.__data[t];a&&void 0===s&&(s=n[t]),Ht(e,i.eventName,s,a)}function Wt(e,t,n,r,i){var o=e.__data[t];Fe&&(o=Fe(o,i.attrName,"attribute",e)),e._propertyToAttribute(t,i.attrName,o)}function Qt(e,t,n,r,i){var o=Xt(e,t,n,r,i),a=i.methodInfo;e.__dataHasAccessor&&e.__dataHasAccessor[a]?e._setPendingProperty(a,o,!0):e[a]=o}function $t(e,t,n,r,i,o,a){n.bindings=n.bindings||[];var s,l={kind:r,target:i,parts:o,literal:a,isCompound:1!==o.length};if(n.bindings.push(l),s=l,Boolean(s.target)&&"attribute"!=s.kind&&"text"!=s.kind&&!s.isCompound&&"{"===s.parts[0].mode){var c=l.parts[0],u=c.event,d=c.negate;l.listenerEvent=u||It.camelToDashCase(i)+"-changed",l.listenerNegate=d}for(var h=t.nodeInfoList.length,p=0;p<l.parts.length;p++){var f=l.parts[p];f.compoundIndex=p,Ut(e,t,l,f,h)}}function Ut(e,t,n,r,i){if(!r.literal)if("attribute"===n.kind&&"-"===n.target[0])console.warn("Cannot set attribute "+n.target+' because "-" is not a valid attribute starting character');else for(var o=r.dependencies,a={index:i,binding:n,part:r,evaluator:e},s=0;s<o.length;s++){var l=o[s];"string"==typeof l&&((l=nn(l)).wildcard=!0),e._addTemplatePropertyEffect(t,l.rootProperty,{fn:Yt,info:a,trigger:l})}}function Yt(e,t,n,r,i,o,a){var s=a[i.index],l=i.binding,c=i.part;if(o&&c.source&&t.length>c.source.length&&"property"==l.kind&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){var u=n[t];t=et(c.source,l.target,t),s._setPendingPropertyOrPath(t,u,!1,!0)&&e._enqueueClient(s)}else{!function(e,t,n,r,i){i=function(e,t,n,r){if(n.isCompound){var i=e.__dataCompoundStorage[n.target];i[r.compoundIndex]=t,t=i.join("")}return"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}(t,i,n,r),Fe&&(i=Fe(i,n.target,n.kind,t));if("attribute"==n.kind)e._valueToNodeAttribute(t,i,n.target);else{var o=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?t[Ft.READ_ONLY]&&t[Ft.READ_ONLY][o]||t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}(e,s,l,c,i.evaluator._evaluateBinding(e,c,t,n,r,o))}}function qt(e,t){if(t.isCompound){for(var n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=t.parts,i=new Array(r.length),o=0;o<r.length;o++)i[o]=r[o].literal;var a=t.target;n[a]=i,t.literal&&"property"==t.kind&&(e[a]=t.literal)}}function Jt(e,c,u){if(u.listenerEvent){var d=u.parts[0];e.addEventListener(u.listenerEvent,function(e){var t,n,r,i,o,a,s,l;t=e,n=c,r=u.target,i=d.source,o=d.negate,a=void 0,s=t.detail,l=s&&s.path,a=l?(i=et(r,i,l),s&&s.value):t.target[r],a=o?!a:a,n[Ft.READ_ONLY]&&n[Ft.READ_ONLY][i]||!n._setPendingPropertyOrPath(i,a,!0,Boolean(l))||s&&s.queueProperty||n._invalidateProperties()})}}function Gt(e,t,n,r,i,o){o=t.static||o&&("object"!=typeof o||o[t.methodName]);for(var a,s={methodName:t.methodName,args:t.args,methodInfo:i,dynamicFn:o},l=0;l<t.args.length&&(a=t.args[l]);l++)a.literal||e._addPropertyEffect(a.rootProperty,n,{fn:r,info:s,trigger:a});o&&e._addPropertyEffect(t.methodName,n,{fn:r,info:s})}function Xt(e,t,n,r,i){var o=e._methodHost||e,a=o[i.methodName];if(a){var s=function(e,t,n,r){for(var i=[],o=0,a=t.length;o<a;o++){var s=t[o],l=s.name,c=void 0;if(s.literal?c=s.value:s.structured?void 0===(c=it(e,l))&&(c=r[l]):c=e[l],s.wildcard){var u=0===l.indexOf(n+"."),d=0===n.indexOf(l)&&!u;i[o]={path:d?n:l,value:d?r[n]:c,base:c}}else i[o]=c}return i}(e.__data,i.args,t,n);return a.apply(o,s)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}var Kt=[],Zt=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function en(e){for(var t="",n=0;n<e.length;n++){t+=e[n].literal||""}return t}function tn(e){var t=e.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){var n={methodName:t[1],static:!0,args:Kt};return t[2].trim()?function(e,n){return n.args=e.map(function(e){var t=nn(e);return t.literal||(n.static=!1),t},this),n}(t[2].replace(/\\,/g,"&comma;").split(","),n):n}return null}function nn(e){var t=e.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),n={name:t,value:"",literal:!1},r=t[0];switch("-"===r&&(r=t[1]),"0"<=r&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Xe(t),n.structured=Ge(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function rn(e,t,n,r){var i=n+".splices";e.notifyPath(i,{indexSplices:r}),e.notifyPath(n+".length",t.length),e.__data[i]={indexSplices:null}}function on(e,t,n,r,i,o){rn(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}var an=Le(function(e){var t=Dt(xt(e));return function(e){function c(){u(this,c);var e=y(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return e.__isPropertyEffectsClient=!0,e.__dataCounter=0,e.__dataClientsReady,e.__dataPendingClients,e.__dataToNotify,e.__dataLinkedPaths,e.__dataHasPaths,e.__dataCompoundStorage,e.__dataHost,e.__dataTemp,e.__dataClientsInitialized,e.__data,e.__dataPending,e.__dataOld,e.__computeEffects,e.__reflectEffects,e.__notifyEffects,e.__propagateEffects,e.__observeEffects,e.__readOnly,e.__templateInfo,e}return f(c,t),a(c,[{key:"_initializeProperties",value:function(){p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"_initializeProperties",this).call(this),sn.registerHost(this),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}},{key:"_initializeProtoProperties",value:function(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}},{key:"_initializeInstanceProperties",value:function(e){var t=this[Ft.READ_ONLY];for(var n in e)t&&t[n]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=e[n])}},{key:"_addPropertyEffect",value:function(e,t,n){this._createPropertyAccessor(e,t==Ft.READ_ONLY);var r=Rt(this,t)[e];r||(r=this[t][e]=[]),r.push(n)}},{key:"_removePropertyEffect",value:function(e,t,n){var r=Rt(this,t)[e],i=r.indexOf(n);0<=i&&r.splice(i,1)}},{key:"_hasPropertyEffect",value:function(e,t){var n=this[t];return Boolean(n&&n[e])}},{key:"_hasReadOnlyEffect",value:function(e){return this._hasPropertyEffect(e,Ft.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(e){return this._hasPropertyEffect(e,Ft.NOTIFY)}},{key:"_hasReflectEffect",value:function(e){return this._hasPropertyEffect(e,Ft.REFLECT)}},{key:"_hasComputedEffect",value:function(e){return this._hasPropertyEffect(e,Ft.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(e,t,n,r){if(r||Xe(Array.isArray(e)?e[0]:e)!==e){if(!r){var i=it(this,e);if(!(e=ot(this,e,t))||!p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"_shouldPropertyChange",this).call(this,e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,n))return function(e,t,n){var r=e.__dataLinkedPaths;if(r){var i=void 0;for(var o in r){var a=r[o];Ze(o,t)?(i=et(o,a,t),e._setPendingPropertyOrPath(i,n,!0,!0)):Ze(a,t)&&(i=et(a,o,t),e._setPendingPropertyOrPath(i,n,!0,!0))}}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,n);this[e]=t}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,n){n===e[t]&&"object"!=typeof n||(e[t]=n)}},{key:"_setPendingProperty",value:function(e,t,n){var r=this.__dataHasPaths&&Ge(e),i=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[Ft.NOTIFY]&&this[Ft.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!0)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}},{key:"_flushProperties",value:function(){this.__dataCounter++,p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"_flushProperties",this).call(this),this.__dataCounter--}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var t=0;t<e.length;t++){var n=e[t];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}},{key:"_readyClients",value:function(){this.__enableOrFlushClients()}},{key:"setProperties",value:function(e,t){for(var n in e)!t&&this[Ft.READ_ONLY]&&this[Ft.READ_ONLY][n]||this._setPendingPropertyOrPath(n,e[n],!0);this._invalidateProperties()}},{key:"ready",value:function(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}},{key:"_propertiesChanged",value:function(e,t,n){var r=this.__dataHasPaths;this.__dataHasPaths=!1,function(e,t,n,r){var i=e[Ft.COMPUTE];if(i)for(var o=t;Lt(e,i,o,n,r);)Object.assign(n,e.__dataOld),Object.assign(t,e.__dataPending),o=e.__dataPending,e.__dataPending=null}(this,t,n,r);var i=this.__dataToNotify;this.__dataToNotify=null,this._propagatePropertyChanges(t,n,r),this._flushClients(),Lt(this,this[Ft.REFLECT],t,n,r),Lt(this,this[Ft.OBSERVE],t,n,r),i&&function(e,t,n,r,i){var o=e[Ft.NOTIFY],a=void 0,s=Nt++;for(var l in t)t[l]&&(o&&Bt(e,o,s,l,n,r,i)?a=!0:i&&(c=e,u=l,d=n,void 0,h=Xe(u),h!==u&&(Ht(c,ut(h)+"-changed",d[u],u),1))&&(a=!0));var c,u,d,h;var p=void 0;a&&(p=e.__dataHost)&&p._invalidateProperties&&p._invalidateProperties()}(this,i,t,n,r),1==this.__dataCounter&&(this.__dataTemp={})}},{key:"_propagatePropertyChanges",value:function(e,t,n){this[Ft.PROPAGATE]&&Lt(this,this[Ft.PROPAGATE],e,t,n);for(var r=this.__templateInfo;r;)Lt(this,r.propertyEffects,e,t,n,r.nodeList),r=r.nextTemplateInfo}},{key:"linkPaths",value:function(e,t){e=nt(e),t=nt(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}},{key:"unlinkPaths",value:function(e){e=nt(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}},{key:"notifySplices",value:function(e,t){var n={path:""};rn(this,it(this,e,n),n.path,t)}},{key:"get",value:function(e,t){return it(t||this,e)}},{key:"set",value:function(e,t,n){n?ot(n,e,t):this[Ft.READ_ONLY]&&this[Ft.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}},{key:"push",value:function(e){for(var t={path:""},n=it(this,e,t),r=n.length,i=arguments.length,o=Array(1<i?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];var s=n.push.apply(n,o);return o.length&&on(this,n,t.path,r,o.length,[]),s}},{key:"pop",value:function(e){var t={path:""},n=it(this,e,t),r=Boolean(n.length),i=n.pop();return r&&on(this,n,t.path,n.length,0,[i]),i}},{key:"splice",value:function(e,t,n){for(var r=arguments.length,i=Array(3<r?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a={path:""},s=it(this,e,a);t<0?t=s.length-Math.floor(-t):t&&(t=Math.floor(t));var l=void 0;return l=2===arguments.length?s.splice(t):s.splice.apply(s,[t,n].concat(i)),(i.length||l.length)&&on(this,s,a.path,t,i.length,l),l}},{key:"shift",value:function(e){var t={path:""},n=it(this,e,t),r=Boolean(n.length),i=n.shift();return r&&on(this,n,t.path,0,0,[i]),i}},{key:"unshift",value:function(e){for(var t={path:""},n=it(this,e,t),r=arguments.length,i=Array(1<r?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=n.unshift.apply(n,i);return i.length&&on(this,n,t.path,0,i.length,[]),a}},{key:"notifyPath",value:function(e,t){var n=void 0;if(1==arguments.length){var r={path:""};t=it(this,e,r),n=r.path}else n=Array.isArray(e)?nt(e):e;this._setPendingPropertyOrPath(n,t,!0,!0)&&this._invalidateProperties()}},{key:"_createReadOnlyProperty",value:function(t,e){var n;this._addPropertyEffect(t,Ft.READ_ONLY),e&&(this["_set"+(n=t,n[0].toUpperCase()+n.substring(1))]=function(e){this._setProperty(t,e)})}},{key:"_createPropertyObserver",value:function(e,t,n){var r={property:e,method:t,dynamicFn:Boolean(n)};this._addPropertyEffect(e,Ft.OBSERVE,{fn:zt,info:r,trigger:{name:e}}),n&&this._addPropertyEffect(t,Ft.OBSERVE,{fn:zt,info:r,trigger:{name:t}})}},{key:"_createMethodObserver",value:function(e,t){var n=tn(e);if(!n)throw new Error("Malformed observer expression '"+e+"'");Gt(this,n,Ft.OBSERVE,Xt,null,t)}},{key:"_createNotifyingProperty",value:function(e){this._addPropertyEffect(e,Ft.NOTIFY,{fn:Vt,info:{eventName:It.camelToDashCase(e)+"-changed",property:e}})}},{key:"_createReflectedProperty",value:function(e){var t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,Ft.REFLECT,{fn:Wt,info:{attrName:t}})}},{key:"_createComputedProperty",value:function(e,t,n){var r=tn(t);if(!r)throw new Error("Malformed computed expression '"+t+"'");Gt(this,r,Ft.COMPUTE,Qt,e,n)}},{key:"_bindTemplate",value:function(e,t){var n=this.constructor._parseTemplate(e),r=this.__templateInfo==n;if(!r)for(var i in n.propertyEffects)this._createPropertyAccessor(i);if(t&&!((n=Object.create(n)).wasPreBound=r)&&this.__templateInfo){var o=this.__templateInfoLast||this.__templateInfo;return this.__templateInfoLast=o.nextTemplateInfo=n,n.previousTemplateInfo=o,n}return this.__templateInfo=n}},{key:"_stampTemplate",value:function(e){sn.beginHosting(this);var t=p(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"_stampTemplate",this).call(this,e);sn.endHosting(this);var n=this._bindTemplate(e,!0);if(n.nodeList=t.nodeList,!n.wasPreBound)for(var r=n.childNodes=[],i=t.firstChild;i;i=i.nextSibling)r.push(i);return function(e,t){var n=t.nodeList,r=t.nodeInfoList;if(r.length)for(var i=0;i<r.length;i++){var o=r[i],a=n[i],s=o.bindings;if(s)for(var l=0;l<s.length;l++){var c=s[l];qt(a,c),Jt(a,e,c)}a.__dataHost=e}}(this,t.templateInfo=n),this.__dataReady&&Lt(this,n.propertyEffects,this.__data,null,!1,n.nodeList),t}},{key:"_removeBoundDom",value:function(e){var t=e.templateInfo;t.previousTemplateInfo&&(t.previousTemplateInfo.nextTemplateInfo=t.nextTemplateInfo),t.nextTemplateInfo&&(t.nextTemplateInfo.previousTemplateInfo=t.previousTemplateInfo),this.__templateInfoLast==t&&(this.__templateInfoLast=t.previousTemplateInfo),t.previousTemplateInfo=t.nextTemplateInfo=null;for(var n=t.childNodes,r=0;r<n.length;r++){var i=n[r];i.parentNode.removeChild(i)}}},{key:"PROPERTY_EFFECT_TYPES",get:function(){return Ft}}],[{key:"addPropertyEffect",value:function(e,t,n){this.prototype._addPropertyEffect(e,t,n)}},{key:"createPropertyObserver",value:function(e,t,n){this.prototype._createPropertyObserver(e,t,n)}},{key:"createMethodObserver",value:function(e,t){this.prototype._createMethodObserver(e,t)}},{key:"createNotifyingProperty",value:function(e){this.prototype._createNotifyingProperty(e)}},{key:"createReadOnlyProperty",value:function(e,t){this.prototype._createReadOnlyProperty(e,t)}},{key:"createReflectedProperty",value:function(e){this.prototype._createReflectedProperty(e)}},{key:"createComputedProperty",value:function(e,t,n){this.prototype._createComputedProperty(e,t,n)}},{key:"bindTemplate",value:function(e){return this.prototype._bindTemplate(e)}},{key:"_addTemplatePropertyEffect",value:function(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;var r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}},{key:"_parseTemplateNode",value:function(e,t,n){var r=p(c.__proto__||Object.getPrototypeOf(c),"_parseTemplateNode",this).call(this,e,t,n);if(e.nodeType===Node.TEXT_NODE){var i=this._parseBindings(e.textContent,t);i&&(e.textContent=en(i)||" ",$t(this,t,n,"text","textContent",i),r=!0)}return r}},{key:"_parseTemplateNodeAttribute",value:function(e,t,n,r,i){var o=this._parseBindings(i,t);if(o){var a=r,s="property";Mt.test(r)?s="attribute":"$"==r[r.length-1]&&(r=r.slice(0,-1),s="attribute");var l=en(o);return l&&"attribute"==s&&e.setAttribute(r,l),"input"===e.localName&&"value"===a&&e.setAttribute(a,""),e.removeAttribute(a),"property"===s&&(r=ct(r)),$t(this,t,n,s,r,o,l),!0}return p(c.__proto__||Object.getPrototypeOf(c),"_parseTemplateNodeAttribute",this).call(this,e,t,n,r,i)}},{key:"_parseTemplateNestedTemplate",value:function(e,t,n){var r=p(c.__proto__||Object.getPrototypeOf(c),"_parseTemplateNestedTemplate",this).call(this,e,t,n),i=n.templateInfo.hostProps;for(var o in i){$t(this,t,n,"property","_host_"+o,[{mode:"{",source:o,dependencies:[o]}])}return r}},{key:"_parseBindings",value:function(e,t){for(var n=[],r=0,i=void 0;null!==(i=Zt.exec(e));){i.index>r&&n.push({literal:e.slice(r,i.index)});var o=i[1][0],a=Boolean(i[2]),s=i[3].trim(),l=!1,c="",u=-1;"{"==o&&0<(u=s.indexOf("::"))&&(c=s.substring(u+2),s=s.substring(0,u),l=!0);var d=tn(s),h=[];if(d){for(var p=d.args,f=d.methodName,v=0;v<p.length;v++){var g=p[v];g.literal||h.push(g)}var y=t.dynamicFns;(y&&y[f]||d.static)&&(h.push(f),d.dynamicFn=!0)}else h.push(s);n.push({source:s,mode:o,negate:a,customEvent:l,signature:d,dependencies:h,event:c}),r=Zt.lastIndex}if(r&&r<e.length){var m=e.substring(r);m&&n.push({literal:m})}return n.length?n:null}},{key:"_evaluateBinding",value:function(e,t,n,r,i,o){var a=void 0;return a=t.signature?Xt(e,n,r,0,t.signature):n!=t.source?it(e,t.source):o&&Ge(n)?it(e,n):e.__data[n],t.negate&&(a=!a),a}}]),c}()}),sn={stack:[],registerHost:function(e){this.stack.length&&this.stack[this.stack.length-1]._enqueueClient(e)},beginHosting:function(e){this.stack.push(e)},endHosting:function(e){var t=this.stack.length;t&&this.stack[t-1]==e&&this.stack.pop()}};var ln=Le(function(e){var n=At(e);function r(e){var t=Object.getPrototypeOf(e);return t.prototype instanceof o?t:null}function i(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){var t=null;e.hasOwnProperty(JSCompiler_renameProperty("properties",e))&&e.properties&&(t=function(e){var t={};for(var n in e){var r=e[n];t[n]="function"==typeof r?{type:r}:r}return t}(e.properties)),e.__ownProperties=t}return e.__ownProperties}var o=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"_initializeProperties",value:function(){this.constructor.finalize(),p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_initializeProperties",this).call(this)}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this)&&p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._enableProperties()}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this)&&p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this)}}],[{key:"finalize",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){var e=r(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}},{key:"_finalizeClass",value:function(){var e=i(this);e&&this.createProperties(e)}},{key:"typeForProperty",value:function(e){var t=this._properties[e];return t&&t.type}},{key:"observedAttributes",get:function(){var t=this,e=this._properties;return e?Object.keys(e).map(function(e){return t.attributeNameForProperty(e)}):[]}},{key:"_properties",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){var e=r(this);this.__properties=Object.assign({},e&&e._properties,i(this))}return this.__properties}}]),t}();return o}),cn=Le(function(e){var t=ln(an(e));function r(e,t,n,r){for(var i,o=t.content.querySelectorAll("style"),a=$e(t),s=(i=He(n))?Ue(i):[],l=t.content.firstElementChild,c=0;c<s.length;c++){var u=s[c];u.textContent=e._processStyleText(u.textContent,r),t.content.insertBefore(u,l)}for(var d=0,h=0;h<a.length;h++){var p=a[h],f=o[d];f!==p?(p=p.cloneNode(!0),f.parentNode.insertBefore(p,f)):d++,p.textContent=e._processStyleText(p.textContent,r)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,n)}return function(e){function i(){u(this,i);var e=y(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e._template,e._importPath,e.rootPath,e.importPath,e.root,e.$,e}return f(i,t),a(i,null,[{key:"_finalizeClass",value:function(){p(i.__proto__||Object.getPrototypeOf(i),"_finalizeClass",this).call(this),this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&this.is&&this.prototype;var e,t=((e=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",e))||(e.__ownObservers=e.hasOwnProperty(JSCompiler_renameProperty("observers",e))?e.observers:null),e.__ownObservers);t&&this.createObservers(t,this._properties);var n=this.template;n&&(n="string"==typeof n?(console.error("template getter must return HTMLTemplateElement"),null):n.cloneNode(!0)),this.prototype._template=n}},{key:"createProperties",value:function(e){for(var t in e)n=this.prototype,i=e[r=t],o=e,i.computed&&(i.readOnly=!0),i.computed&&!n._hasReadOnlyEffect(r)&&n._createComputedProperty(r,i.computed,o),i.readOnly&&!n._hasReadOnlyEffect(r)&&n._createReadOnlyProperty(r,!i.computed),i.reflectToAttribute&&!n._hasReflectEffect(r)&&n._createReflectedProperty(r),i.notify&&!n._hasNotifyEffect(r)&&n._createNotifyingProperty(r),i.observer&&n._createPropertyObserver(r,i.observer,o[i.observer]),n._addPropertyToAttributeMap(r);var n,r,i,o}},{key:"createObservers",value:function(e,t){for(var n=this.prototype,r=0;r<e.length;r++)n._createMethodObserver(e[r],t)}},{key:"template",get:function(){return this.hasOwnProperty(JSCompiler_renameProperty("_template",this))||(this._template=Je&&Je.import(this.is,"template")||Object.getPrototypeOf(this.prototype).constructor.template),this._template}},{key:"importPath",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){var e=this.importMeta;if(e)this._importPath=Ie(e.url);else{var t=Je&&Je.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}}]),a(i,[{key:"_initializeProperties",value:function(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"_initializeProperties",this).call(this),this.rootPath=Ne,this.importPath=this.constructor.importPath;var e=function(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",e))){e.__propertyDefaults=null;var t=e._properties;for(var n in t){var r=t[n];"value"in r&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[n]=r)}}return e.__propertyDefaults}(this.constructor);if(e)for(var t in e){var n=e[t];if(!this.hasOwnProperty(t)){var r="function"==typeof n.value?n.value.call(this):n.value;this._hasAccessor(t)?this._setPendingProperty(t,r,!0):this[t]=r}}}},{key:"connectedCallback",value:function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"connectedCallback",this).call(this)}},{key:"ready",value:function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"ready",this).call(this)}},{key:"_readyClients",value:function(){this._template&&(this.root=this._attachDom(this.root)),p(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"_readyClients",this).call(this)}},{key:"_attachDom",value:function(e){if(this.attachShadow)return e?(this.shadowRoot||this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(e),this.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}},{key:"updateStyles",value:function(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)}},{key:"resolveUrl",value:function(e,t){return!t&&this.importPath&&(t=Oe(this.importPath)),Oe(e,t)}}],[{key:"_processStyleText",value:function(e,t){return De(e,t)}},{key:"_finalizeTemplate",value:function(e){var t=this.prototype._template;if(t&&!t.__polymerFinalized){t.__polymerFinalized=!0;var n=this.importPath;r(this,t,e,n?Oe(n):""),this.prototype._bindTemplate(t)}}},{key:"_parseTemplateContent",value:function(e,t,n){return t.dynamicFns=t.dynamicFns||this._properties,p(i.__proto__||Object.getPrototypeOf(i),"_parseTemplateContent",this).call(this,e,t,n)}}]),i}()});var un=function(){function t(e){u(this,t),this.value=e.toString()}return a(t,[{key:"toString",value:function(){return this.value}}]),t}();function dn(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof un)return function(e){if(e instanceof un)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: "+e)}(e);throw new Error("non-template value passed to Polymer's html function: "+e)}var hn=function(r){for(var e=document.createElement("template"),t=arguments.length,n=Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.innerHTML=n.reduce(function(e,t,n){return e+dn(t)+r[n+1]},r[0]),e},pn=cn(HTMLElement);function fn(){}var vn=function(t){return function(e){function r(){return u(this,r),y(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return f(r,t),a(r,[{key:"ready",value:function(){var s=this;if(p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"ready",this).call(this),this.getAttribute("bindtap")&&(this.style.cursor="pointer"),this.listeners){this.listeners.tap&&(this.style.cursor="pointer");for(var l=Object.keys(this.listeners),e=function(e,t){var n=l[e],r=s.listeners[n],i=n.split("."),o=1<i.length?i[0]:null,a=o?i[1]:i[0];window.__addListenerToElement(o?s.$[o]:s,a,function(e){return s[r].call(s,e)})},t=0,n=l.length;t<n;t++)e(t)}}},{key:"hasBehavior",value:function(e){return"base"==e}},{key:"sendMessage",value:function(e){var t=e.type,n=e.event;tt_w.publishPageEvent(t,n)}},{key:"sendDetail",value:function(e,t){this.sendMessage({type:e,event:{detail:t,currentTarget:{id:this.id||"",offsetLeft:this.offsetLeft||0,offsetTop:this.offsetTop||0,dataset:this.$$data||{}},target:{id:this.id||"",offsetLeft:this.offsetLeft||0,offsetTop:this.offsetTop||0,dataset:this.$$data||{}}}})}},{key:"invoke",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fn;ttJSBridge_w.invoke(e,t,n)}},{key:"triggerEvent",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=new CustomEvent(e,{detail:t,bubbles:!1,composed:!1});this.dispatchEvent(n)}},{key:"triggerReRender",value:function(){document.dispatchEvent(new CustomEvent("pageReRender",{detail:{source:"_base"}}))}},{key:"parentCustomComponent",value:function(){if(!(this.eventTriggeredBy&&-1<this.eventTriggeredBy.indexOf("component")))return null;var t=void 0;return this.dispatchEvent(new CustomEvent("get-custom-component-uid",{detail:{templateId:this.eventTriggeredBy.split("__")[1],callback:function(e){t=e}},bubbles:!0,composed:!0})),t}},{key:"_deserializeValue",value:function(e,t){return t===Boolean?!!e:t===String?null==e?"":"boolean"==typeof e&&e?"":e.toString():p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_deserializeValue",this).call(this,e,t)}}],[{key:"properties",get:function(){return{hidden:{type:Boolean,reflectToAttribute:!0},__widgetDirBase:{type:String}}}},{key:"isMobileMode",get:function(){return"mobile"===window.PC_RUN_MODE}}]),r}()},gn=window.navigator.userAgent.toLowerCase(),yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function mn(e){return{devtool:!1,mobile:!0,iphone:/iphone/.test(gn),android:/android/.test(gn),file:!!e&&/^file:\/\//.test(e),http:!!e&&/^(http|https):\/\//.test(e),dataImage:!!e&&/^\s*data:image\//.test(e),ttfile:!!e&&/^ttfile:\/\//.test(e)}}function _n(){var e="ios";if(tt_w)try{e=tt_w.getPlatform()}catch(e){}return e}var An="string"==typeof document.head.style.touchAction,bn=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){bn=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();var wn=An&&bn?{passive:!0}:void 0,kn=function(n){return function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._hoverClass=[],e}return f(t,n),a(t,[{key:"hasBehavior",value:function(e){return"hover"==e||(p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"hasBehavior",this)?p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"hasBehavior",this).call(this,e):void 0)}}],[{key:"properties",get:function(){return{hoverStartTime:{type:Number,value:50},hoverStayTime:{type:Number,value:400},hoverClass:{type:String,observer:"_hoverClassChange"},hoverStopPropagation:{type:Boolean,observer:"_hoverStopChange"}}}}]),a(t,[{key:"bindHover",value:function(){this._bindHover||(this._bindHover=!0,this._hoverTouchStartId=this.hoverTouchStart.bind(this),this._hoverTouchEndId=this.hoverTouchEnd.bind(this),this._hoverCancelId=this.hoverCancel.bind(this),this.addEventListener("touchstart",this._hoverTouchStartId,wn),this.addEventListener("touchend",this._hoverTouchEndId),this.addEventListener("touchcancel",this._hoverCancelId),this.addEventListener("touchmove",this._hoverCancelId,wn))}},{key:"unbindHover",value:function(){this._bindHover&&(this._bindHover=!1,this.removeEventListener("touchstart",this._hoverTouchStartId),this.removeEventListener("touchend",this._hoverTouchEndId),this.removeEventListener("touchcancel",this._hoverCancelId),this.removeEventListener("touchmove",this._hoverCancelId))}},{key:"hoverTouchStart",value:function(e){var t=this;if(!e._hoverPropagationStopped){if(this.hoverStopPropagation&&(e._hoverPropagationStopped=!0),this._hoverTouch&&1<e.touches.length&&!this._hovering)return void this.hoverCancel();if(this._hoverTouch=!0,"none"===this.hoverClass||this.disabled)return;this._hoverStyleTimeId=setTimeout(function(){if(t._hovering=!0,0<t._hoverClass.length)for(var e=0;e<t._hoverClass.length;e++)t.classList.toggle(t._hoverClass[e],!0);t._hoverTouch||window.requestAnimationFrame(function(){clearTimeout(t._hoverStayTimeId),t._hoverStayTimeId=setTimeout(function(){t._hoverReset()},t.hoverStayTime)})},this.hoverStartTime)}}},{key:"hoverTouchEnd",value:function(){var e=this;this._hoverTouch=!1,this._hovering&&window.requestAnimationFrame(function(){clearTimeout(e._hoverStayTimeId),e._hoverStayTimeId=setTimeout(function(){e._hoverReset()},e.hoverStayTime)})}},{key:"hoverCancel",value:function(){this._hoverTouch=!1,clearTimeout(this._hoverStyleTimeId),this._hoverReset()}},{key:"_hoverClassChange",value:function(e){if(e){var t=e.split(/\s/);if(this._hoverClass=[],"none"===e&&!this.hoverStopPropagation)return this.unbindHover();for(var n=0;n<t.length;n++)t[n]&&this._hoverClass.push(t[n]);this.bindHover()}}},{key:"_hoverStopChange",value:function(e){if("none"===this.hoverClass&&!e)return this.unbindHover();this.bindHover()}},{key:"_hoverReset",value:function(){if(this._hovering&&(this._hovering=!1,"none"!==this.hoverClass&&0<this._hoverClass.length))for(var e=0;e<this._hoverClass.length;e++)this.classList.contains(this._hoverClass[e])&&this.classList.toggle(this._hoverClass[e],!1)}}]),t}()},Cn=o(['<style>\n :host {\n display: block;\n white-space: normal;\n }\n\n :host([ hidden ]) {\n display: none!important;\n }\n\n #main {\n /* ios12 special */\n text-decoration: inherit;\n }\n </style><slot id="main"></slot>'],['<style>\n :host {\n display: block;\n white-space: normal;\n }\n\n :host([ hidden ]) {\n display: none!important;\n }\n\n #main {\n /* ios12 special */\n text-decoration: inherit;\n }\n </style><slot id="main"></slot>']),En=window.navigator.userAgent.match(/iPhone OS 11_[34]/),xn=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),En&&(this.$.main.style.textDecoration="inherit")}}],[{key:"template",get:function(){return hn(Cn)}},{key:"is",get:function(){return"card-tt-view"}}]),t}(kn(vn(pn)));window.customElements.define(xn.is,xn);var Sn=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"touchtrack",value:function(e,i,n){var o=this,a=0,s=0,l=0,c=0,r=function(e,t,n,r){if(!1===o[i].call(o,{target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:t,x:n,y:r,dx:n-a,dy:r-s,ddx:n-l,ddy:r-c,timeStamp:e.timeStamp}}))return!1},u=null;e.addEventListener("touchstart",function(e){1!==e.touches.length||u||(a=l=(u=e).touches[0].pageX,s=c=e.touches[0].pageY,r(e,"start",a,s))}),e.addEventListener("touchmove",function(e){if(1===e.touches.length&&u){var t=r(e,"move",e.touches[0].pageX,e.touches[0].pageY);return l=e.touches[0].pageX,c=e.touches[0].pageY,t}}),e.addEventListener("touchend",function(e){if(0===e.touches.length&&u)return u=null,r(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}),e.addEventListener("touchcancel",function(e){if(u){var t=u;return u=null,r(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}})}}]),t}()},Pn=function(){function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function o(e){return 3*e}function l(e,t,n){return((r(t,n)*e+i(t,n))*e+o(t))*e}function c(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+o(t)}return function(o,t,a,n){if(0<=o&&o<=1&&0<=a&&a<=1){var s=new Float32Array(11);if(o!==t||a!==n)for(var e=0;e<11;++e)s[e]=l(.1*e,o,a);return function(e){return o===t&&a===n?e:0===e?0:1===e?1:l(r(e),t,n)}}function r(e){for(var t=0,n=1;10!==n&&s[n]<=e;++n)t+=.1;var r=t+(e-s[--n])/(s[n+1]-s[n])*.1,i=c(r,o,a);return.001<=i?function(e,t,n,r){for(var i=0;i<4;++i){var o=c(t,n,r);if(0===o)return t;t-=(l(t,n,r)-e)/o}return t}(e,r,o,a):0===i?r:function(e,t,n,r,i){for(var o=void 0,a=void 0,s=0;0<(o=l(a=t+(n-t)/2,r,i)-e)?n=a:t=a,1e-7<Math.abs(o)&&++s<10;);return a}(e,t,t+.1,o,a)}}}(),Tn=o(['\n <style>\n :host {\n display: block;\n width: 100%;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n .scroll {\n position: relative;\n -webkit-overflow-scrolling: touch;\n height: 100%;\n /* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */\n width: 100%;\n max-height: inherit;\n }\n\n .scroll::-webkit-scrollbar {\n display: none;\n }\n\n </style>\n\n <div id="wrap" class="scroll">\n <div id="main" style="overflow-x: hidden; overflow-y: hidden;" class="scroll">\n <div id="content" style="white-space: nowrap;">\n <slot></slot>\n </div>\n </div>\n </div>\n '],['\n <style>\n :host {\n display: block;\n width: 100%;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n .scroll {\n position: relative;\n -webkit-overflow-scrolling: touch;\n height: 100%;\n /* display: flex; 时在安卓下会导致scrollWidth和offsetWidth一样 */\n width: 100%;\n max-height: inherit;\n }\n\n .scroll::-webkit-scrollbar {\n display: none;\n }\n\n </style>\n\n <div id="wrap" class="scroll">\n <div id="main" style="overflow-x: hidden; overflow-y: hidden;" class="scroll">\n <div id="content" style="white-space: nowrap;">\n <slot></slot>\n </div>\n </div>\n </div>\n ']),On=Pn(0,0,.58,1),Dn=_n(),In=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){var e=this;p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),mn().iphone&&document.addEventListener("onKeyboardShow",function(){e.__hasKeyboard=!0}),this.touchtrack(this.$.main,"_handleTrack"),this.__pageRerender=this._pageRerender.bind(this)}},{key:"connectedCallback",value:function(){var n=this;if(p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._attached=!0,this._lastScrollTop=this.scrollTop||0,this._lastScrollLeft=this.scrollLeft||0,this._lastScrollToUpperTime=0,this._lastScrollToLowerTime=0,this._scrollXChanged(this.scrollX),this._scrollYChanged(this.scrollY),this._scrollTopChanged(this.scrollTop),this._scrollLeftChanged(this.scrollLeft),this._scrollIntoViewChanged(this.scrollIntoView),this.__handleTouchMove=function(e){n.__rafId&&(n.__currentAnimCanceled=!0,setTimeout(function(){n.__currentAnimCanceled=!1},50))},this.__handleTouchStart=function(e){var t=n.$.main;t.scrollHeight>t.offsetHeight&&n.invoke("disableScrollBounce",{disable:!0})},this.__handleTouchEnd=function(){n.invoke("disableScrollBounce",{disable:!1})},this.__handleScroll=function(e){e.preventDefault(),e.stopPropagation(),n._handleScroll(e),document.dispatchEvent(new CustomEvent("tt-scroll-view")),n.__hasKeyboard&&(n.__hasKeyboard=!1,n.invoke("endEditing"))},this.$.main.addEventListener("touchstart",this.__handleTouchStart),this.$.main.addEventListener("touchmove",this.__handleTouchMove),this.$.main.addEventListener("touchend",this.__handleTouchEnd),this.$.main.addEventListener("scroll",this.__handleScroll),mn().iphone){var e=document.getElementById("__scroll_view_hack");e&&e.parentNode.removeChild(e),(e=document.createElement("div")).setAttribute("style","position: fixed; left: 0; bottom: 0; line-height: 1; font-size: 1px; z-index: 10000; border-radius: 4px; box-shadow: 0 0 8px rgba(0,0,0,.4); width: 1px; height: 1px; overflow: hidden;"),e.innerText=".",e.id="__scroll_view_hack",document.documentElement.appendChild(e)}}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this.$.main.removeEventListener("scroll",this.__handleScroll),this.$.main.removeEventListener("touchstart",this.__handleTouchStart),this.$.main.removeEventListener("touchmove",this.__handleTouchMove),this.$.main.removeEventListener("touchend",this.__handleTouchEnd)}},{key:"scrollTo",value:function(t,n){var r,i,o,a;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.__rafId)return e.abrupt("return");e.next=2;break;case 2:if(r=this.$.main,i=this.$.content,t<0?t=0:"x"===n&&t>r.scrollWidth-r.offsetWidth?t=r.scrollWidth-r.offsetWidth:"y"===n&&t>r.scrollHeight-r.offsetHeight&&(t=r.scrollHeight-r.offsetHeight),o=0,"x"===n?o=r.scrollLeft-t:"y"===n&&(o=r.scrollTop-t),0!==o)return a=function(){return""},"x"===n?a=function(e){return"translateX("+e+"px) translateZ(0)"}:"y"===n&&(a=function(e){return"translateY("+e+"px) translateZ(0)"}),this.__transitionEnd=this._transitionEnd.bind(this,t,n),"x"===n?"ios"!=Dn&&(r.style.overflowX="hidden"):"y"===n&&(r.style.overflowY="hidden"),e.next=14,regeneratorRuntime.awrap(this._doScrollTopChangeAnimate(i,o,a));e.next=15;break;case 14:this.__transitionEnd();case 15:case"end":return e.stop()}},null,this)}},{key:"_doScrollTopChangeAnimate",value:function(s,l,c){var u=this;return new Promise(function(i){u.__rafId=null;var o=void 0,a=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=e-(o=o||e),n=Math.min(t/300,1),r=c(On(n)*l);s.style.transform=r,s.style.webkitTransform=r,300<=t||u.__currentAnimCanceled?(window.cancelAnimationFrame(u.__rafId),u.__rafId=null,i()):u.__rafId=window.requestAnimationFrame(a)};a()})}},{key:"_getStyle",value:function(e,t){return"overflow-x: "+(e?"auto":"hidden")+"; overflow-y: "+(t?"auto":"hidden")+";"}},{key:"_handleTrack",value:function(e){"start"!==e.detail.state?("end"===e.detail.state&&(this._noBubble=!1),null===this._noBubble&&this.scrollY&&(1<Math.abs(e.detail.ddy)/Math.abs(e.detail.ddx)?this._noBubble=!0:this._noBubble=!1),null===this._noBubble&&this.scrollX&&(1<Math.abs(e.detail.ddx)/Math.abs(e.detail.ddy)?this._noBubble=!0:this._noBubble=!1),this._noBubble&&(e.stopPropagation(),this.dispatchEvent(new CustomEvent("tt-touchmove",{detail:{srcMoveEvent:e},bubbles:!0,composed:!0})))):this._noBubble=null}},{key:"_handleScroll",value:function(e){if(!(e.timeStamp-this._lastScrollTime<20)){this._lastScrollTime=e.timeStamp;var t=e.target,n=t.scrollTop,r=t.scrollHeight,i=t.scrollWidth,o=t.scrollLeft,a=t.offsetHeight,s=t.offsetWidth;if(this.triggerEvent("scroll",{scrollLeft:o,scrollTop:n,scrollHeight:r,scrollWidth:i,deltaX:this._lastScrollLeft-o,deltaY:this._lastScrollTop-n}),this.scrollY){var l=0<this._lastScrollTop-n,c=this._lastScrollTop-n<0;n<=this.upperThreshold&&l&&200<e.timeStamp-this._lastScrollToUpperTime&&(this.triggerEvent("scrolltoupper",{direction:"top"}),this._lastScrollToUpperTime=e.timeStamp),n+a+this.lowerThreshold>=r&&c&&200<e.timeStamp-this._lastScrollToLowerTime&&(this.triggerEvent("scrolltolower",{direction:"bottom"}),this._lastScrollToLowerTime=e.timeStamp)}if(this.scrollX){var u=0<this._lastScrollLeft-o,d=this._lastScrollLeft-o<0;o<=this.upperThreshold&&u&&200<e.timeStamp-this._lastScrollToUpperTime&&(this.triggerEvent("scrolltoupper",{direction:"top"}),this._lastScrollToUpperTime=e.timeStamp),o+s+this.lowerThreshold>=i&&d&&200<e.timeStamp-this._lastScrollToLowerTime&&(this.triggerEvent("scrolltolower",{direction:"bottom"}),this._lastScrollToLowerTime=e.timeStamp)}this._lastScrollTop=n,this._lastScrollLeft=o}}},{key:"_scrollXChanged",value:function(e){var t=window.navigator.userAgent.toLowerCase();if(e){if(this.scrollY||/android/.test(t))return document.removeEventListener("pageReRender",this.__pageRerender),this.$.main.style.overflowX="auto",this.$.main.style.paddingBottom="",this.$.wrap.style.overflowY="",this.$.wrap.style.height="",void(this.$.content.style.height="100%");void 0===this._isAutoHeight&&this._checkIsAutoHeight(),this.$.main.style.overflowX="auto",this.$.main.style.paddingBottom="20px",this.$.wrap.style.overflowY="hidden",this._isAutoHeight?(this.$.wrap.style.height=this.$.content.offsetHeight+"px",this.$.content.style.height=""):(this.$.wrap.style.height="",this.$.content.style.height=this.offsetHeight+"px"),document.addEventListener("pageReRender",this.__pageRerender)}else document.removeEventListener("pageReRender",this.__pageRerender),this.$.main.style.overflowX="hidden",this.$.main.style.paddingBottom="",this.$.wrap.style.overflowY="",this.$.wrap.style.height="",this.$.content.style.height="100%"}},{key:"_scrollYChanged",value:function(e){this.$.main.style.overflowY=e?"auto":"hidden"}},{key:"_checkIsAutoHeight",value:function(){this.$.wrap.style.height=0;var e=getComputedStyle(this),t=parseFloat(e.borderBottomWidth)||0,n=parseFloat(e.borderTopWidth)||0,r=parseFloat(e.paddingTop)||0,i=parseFloat(e.paddingBottom)||0;this._isAutoHeight=this.offsetHeight===t+n+r+i;var o=1e4*Math.random()|0;this.$.wrap.style.height=o+"px",e=getComputedStyle(this),t=parseFloat(e.borderBottomWidth)||0,n=parseFloat(e.borderTopWidth)||0,r=parseFloat(e.paddingTop)||0,i=parseFloat(e.paddingBottom)||0,this._isAutoHeight=this._isAutoHeight||this.offsetHeight===t+n+r+i+o}},{key:"_scrollTopChanged",value:function(e){var t=this;isNaN(e)&&(e=0),this.scrollY&&setTimeout(function(){t.scrollWithAnimation?t.scrollTo(e,"y"):t.$.main.scrollTop=e},10)}},{key:"_scrollLeftChanged",value:function(e){var t=this;isNaN(e)&&(e=0),this.scrollX&&setTimeout(function(){t.scrollWithAnimation?t.scrollTo(e,"x"):t.$.main.scrollLeft=e},10)}},{key:"_scrollIntoViewChanged",value:function(s){var l=this;if(s)return/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(s)?void setTimeout(function(){var e=l.querySelector("#"+s);if(e){var t=l.$.main.getBoundingClientRect(),n=e.getBoundingClientRect();if(l.scrollX){var r=n.left-t.left,i=l.$.main.scrollLeft+r;l.scrollWithAnimation?l.scrollTo(i,"x"):l.$.main.scrollLeft=i}if(l.scrollY){var o=n.top-t.top,a=l.$.main.scrollTop+o;l.scrollWithAnimation?l.scrollTo(a,"y"):l.$.main.scrollTop=a}}},10):(logger.group('scroll-into-view="'+s+'" 有误'),logger.error("target id 属性值格式错误"),logger.groupEnd())}},{key:"getScrollPosition",value:function(){var e=this.$.main;return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}},{key:"_transitionEnd",value:function(e,t){var n=this.$.main,r=this.$.content;r.style.transform="",r.style.webkitTransform="","x"===t?(n.style.overflowX=this.scrollX?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=this.scrollY?"auto":"hidden",n.scrollTop=e)}},{key:"_pageRerender",value:function(){var e=this;window.requestAnimationFrame(function(){e.offsetHeight===e._lastOutterHeight&&e.$.content.offsetHeight===e._lastContenHeight||(e._checkIsAutoHeight(),e._isAutoHeight?(e.$.wrap.style.height=e.$.content.offsetHeight+"px",e.$.content.style.height=""):(e.$.wrap.style.height="",e.$.content.style.height=e.offsetHeight+"px"),e._lastOutterHeight=e.offsetHeight,e._lastContenHeight=e.$.content.offsetHeight)})}},{key:"scrollTop",get:function(){return this.$$scrollTop},set:function(e){var t=this.$$scrollTop;this.$$scrollTop=this._deserializeValue(e,Number),this._attached&&this._scrollTopChanged(this.$$scrollTop,t)}},{key:"scrollLeft",get:function(){return this.$$scrollLeft},set:function(e){var t=this.$$scrollLeft;this.$$scrollLeft=this._deserializeValue(e,Number),this._attached&&this._scrollLeftChanged(this.$$scrollLeft,t)}},{key:"scrollIntoView",get:function(){return this.$$scrollIntoView},set:function(e){var t=this.$$scrollIntoView;this.$$scrollIntoView=this._deserializeValue(e,String),this._attached&&this._scrollIntoViewChanged(this.$$scrollIntoView,t)}}],[{key:"template",get:function(){return hn(Tn)}},{key:"is",get:function(){return"card-tt-scroll-view"}},{key:"properties",get:function(){return{scrollX:{type:Boolean,value:!1,observer:"_scrollXChanged",reflectToAttribute:!0},scrollY:{type:Boolean,value:!1,observer:"_scrollYChanged",reflectToAttribute:!0},upperThreshold:{type:Number,value:50},lowerThreshold:{type:Number,value:50},scrollWithAnimation:{type:Boolean,value:!1,reflectToAttribute:!0}}}}]),t}(Sn(vn(pn)));window.customElements.define(In.is,In);var Nn=!1,Fn=function(e){function r(){u(this,r);var t=y(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));if(!Nn){var e=document.createElement("span"),i=document.createElement("span");i.style.display="none";var n=t.appendChild.bind(t);t._readyCallback=function(){n(e),n(i)},["append","prepend","appendChild","replaceChild","removeChild","insertBefore"].forEach(function(n){var r=t;t[n]=function(){var e,t=void 0;"removeChild"!==n&&(t=arguments[0]),t&&Object.defineProperty(t,"parentElement",{get:function(){return r}}),(e=i[n]).call.apply(e,[i].concat(Array.prototype.slice.call(arguments)))}}),["childNodes","children"].forEach(function(e){Object.defineProperty(t,e,{get:function(){return i[e]}})}),(e.__eventTargetRef=t).$={main:e,slot:i}}return t}return f(r,e),a(r,[{key:"selectable",get:function(){return void 0===this.__selectable&&(this.__selectable=!1),this.__selectable},set:function(e){this.__selectable=e,this.$.main.style.userSelect=e?"text":"",this.$.main.style.webkitUserSelect=e?"text":""}}],[{key:"is",get:function(){return"card-tt-text"}}]),a(r,[{key:"connectedCallback",value:function(){this._readyCallback&&(this._readyCallback(),this._readyCallback=null),this.$&&(this._update(),this._observer=new MutationObserver(this._update.bind(this)),this._observer.observe(this.$.slot,{childList:!0,subtree:!0}))}},{key:"disconnectedCallback",value:function(){this._observer&&this._observer.disconnect()}},{key:"_update",value:function(){var o=this,a=document.createDocumentFragment(),e=this.$.slot;Array.from(e.childNodes).forEach(function(e){if(e.nodeType===e.TEXT_NODE)for(var t=o._decode(e.textContent).split("\n"),n=0;n<t.length;n++)n&&a.appendChild(document.createElement("br")),a.appendChild(document.createTextNode(t[n]));else if(1===e.nodeType&&"CARD-TT-TEXT"===e.tagName){var r=Node.prototype.cloneNode||Element.prototype.cloneNode,i=function(e){Nn=!0;var t=r.call(e);Nn=!1,t.$$data=e.$$data;var n=e.$?e.$.main.childNodes:e.childNodes;return Array.from(n).forEach(function(e){1===e.nodeType&&"CARD-TT-TEXT"===e.tagName?t.appendChild(i(e)):t.appendChild(e.cloneNode())}),t};a.appendChild(i(e))}}),this.$.main.innerHTML="",this.$.main.appendChild(a)}},{key:"_decode",value:function(e){return this.space&&("nbsp"===this.space?e=e.replace(/ /g," "):"ensp"===this.space?e=e.replace(/ /g,""):"emsp"===this.space&&(e=e.replace(/ /g,""))),this.decode&&(e=e.replace(/&nbsp;/g," ").replace(/&ensp;/g,"").replace(/&emsp;/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")),e}}]),r}(HTMLElement);function Mn(e,t,n,r,i){var o=void 0;i&&(o="object"==typeof n&&null!==n)&&(r=e.__dataTemp[t]);var a=r!==n&&(r==r||n==n);return o&&a&&(e.__dataTemp[t]=n),a}window.customElements.define(Fn.is,Fn);var Rn=Le(function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"_shouldPropertyChange",value:function(e,t,n){return Mn(this,e,t,n,!0)}}]),t}()}),Ln=Le(function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"_shouldPropertyChange",value:function(e,t,n){return Mn(this,e,t,n,this.mutableData)}}],[{key:"properties",get:function(){return{mutableData:Boolean}}}]),t}()});Rn._mutablePropertyChange=Mn;var Bn=null;function jn(){return Bn}jn.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:jn,writable:!0}});var zn=an(jn),Hn=Rn(zn);var Vn=an(function e(){u(this,e)}),Wn=function(e){function o(e){u(this,o);var t=y(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));t._configureProperties(e),t.root=t._stampTemplate(t.__dataHost);for(var n=t.children=[],r=t.root.firstChild;r;r=r.nextSibling)n.push(r),r.__templatizeInstance=t;t.__templatizeOwner&&t.__templatizeOwner.__hideTemplateChildren__&&t._showHideChildren(!0);var i=t.__templatizeOptions;return(e&&i.instanceProps||!i.instanceProps)&&t._enableProperties(),t}return f(o,Vn),a(o,[{key:"_configureProperties",value:function(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}},{key:"forwardHostProp",value:function(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}},{key:"_addEventListenerToNode",value:function(e,t,n){var r=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,function(e){e.model=r,n(e)});else{var i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,n)}}},{key:"_showHideChildren",value:function(e){for(var t=this.children,n=0;n<t.length;n++){var r=t[n];if(Boolean(e)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)r.textContent=e?(r.__polymerTextContent__=r.textContent,""):r.__polymerTextContent__;else if("slot"===r.localName)if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),r.parentNode.replaceChild(r.__polymerReplaced__,r);else{var i=r.__polymerReplaced__;i&&i.parentNode.replaceChild(r,i)}else r.style&&(r.style.display=e?(r.__polymerDisplay__=r.style.display,"none"):r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,n){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==t?e.__polymerTextContent__=n:p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_setUnmanagedPropertyToNode",this).call(this,e,t,n)}},{key:"dispatchEvent",value:function(e){return!0}},{key:"parentModel",get:function(){var e=this.__parentModel;if(!e){var t=void 0;for(e=this;(t=(e=e.__dataHost.__dataHost).__templatizeOptions)&&!t.parentModel;);this.__parentModel=e}return e}}]),o}(),Qn=Rn(Wn);function $n(e,t,n){var r=n.mutableData?Qn:Wn,i=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,r),t}();return i.prototype.__templatizeOptions=n,i.prototype._bindTemplate(e),function(e,t,n,r){var i=n.hostProps||{};for(var o in r.instanceProps){delete i[o];var a=r.notifyInstanceProp;a&&e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:qn(o,a)})}if(r.forwardHostProp&&t.__dataHost)for(var s in i)e.prototype._addPropertyEffect(s,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}})}(i,e,t,n),i}function Un(e,t,n){var r,i,o=n.forwardHostProp;if(o){var a=t.templatizeTemplateClass;if(!a){var s=n.mutableData?Hn:zn;a=t.templatizeTemplateClass=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,s),t}();var l=t.hostProps;for(var c in l)a.prototype._addPropertyEffect("_host_"+c,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Yn(c,o)}),a.prototype._createNotifyingProperty("_host_"+c)}i=a,Bn=r=e,Object.setPrototypeOf(r,i.prototype),new i,Bn=null,e.__dataProto&&Object.assign(e.__data,e.__dataProto),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties()}}function Yn(e,r){return function(e,t,n){r.call(e.__templatizeOwner,t.substring("_host_".length),n[t])}}function qn(e,r){return function(e,t,n){r.call(e.__templatizeOwner,e,t,n[t])}}function Jn(e,t,n){if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");var r=((e.__templatizeOwner=t)?t.constructor:Wn)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=$n(e,r,n),r.templatizeInstanceClass=i),Un(e,r,n);var o,a=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,i),t}();return a.prototype._methodHost=(o=e.__dataHost)&&o._methodHost||o,a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=r.hostProps,a=a}var Gn=function(){function r(){u(this,r),this._asyncModule=null,this._callback=null,this._timer=null}return a(r,[{key:"setConfig",value:function(e,t){var n=this;this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(function(){n._timer=null,n._callback()})}},{key:"cancel",value:function(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}},{key:"flush",value:function(){this.isActive()&&(this.cancel(),this._callback())}},{key:"isActive",value:function(){return null!=this._timer}}],[{key:"debounce",value:function(e,t,n){return e instanceof r?e.cancel():e=new r,e.setConfig(t,n),e}}]),r}(),Xn=[],Kn=function(e){Xn.push(e)};function Zn(){for(var e=Boolean(Xn.length);Xn.length;)try{Xn.shift().flush()}catch(e){setTimeout(function(){throw e})}return e}var er=function(){for(var e=void 0,t=void 0;e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Zn(),e||t;);},tr=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.__renderDebouncer=null,e.__invalidProps=null,e.__instance=null,e._lastIf=!1,e.__ctor=null,e}return f(t,pn),a(t,null,[{key:"is",get:function(){return"dom-if"}},{key:"template",get:function(){return null}},{key:"properties",get:function(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"}}}}]),a(t,[{key:"__debounceRender",value:function(){var e=this;this.__renderDebouncer=Gn.debounce(this.__renderDebouncer,mt,function(){return e.__render()}),Kn(this.__renderDebouncer)}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this.parentNode&&(this.parentNode.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||this.parentNode.host)||this.__teardownInstance()}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.style.display="none",this.if&&this.__debounceRender()}},{key:"render",value:function(){er()}},{key:"__render",value:function(){if(this.if){if(!this.__ensureInstance())return;this._showHideChildren()}else this.restamp&&this.__teardownInstance();!this.restamp&&this.__instance&&this._showHideChildren(),this.if!=this._lastIf&&(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}},{key:"__ensureInstance",value:function(){var e=this,t=this.parentNode;if(t){if(!this.__ctor){var n=this.querySelector("template");if(!n){var r=new MutationObserver(function(){if(!e.querySelector("template"))throw new Error("dom-if requires a <template> child");r.disconnect(),e.__render()});return r.observe(this,{childList:!0}),!1}this.__ctor=Jn(n,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Xe(e)]=!0))}})}if(this.__instance){this.__syncHostProperties();var i=this.__instance.children;if(i&&i.length)if(this.previousSibling!==i[i.length-1])for(var o,a=0;a<i.length&&(o=i[a]);a++)t.insertBefore(o,this)}else this.__instance=new this.__ctor,t.insertBefore(this.__instance.root,this)}return!0}},{key:"__syncHostProperties",value:function(){var e=this.__invalidProps;if(e){for(var t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__invalidProps=null,this.__instance._flushProperties()}}},{key:"__teardownInstance",value:function(){if(this.__instance){var e=this.__instance.children;if(e&&e.length)for(var t,n=e[0].parentNode,r=0;r<e.length&&(t=e[r]);r++)n.removeChild(t);this.__instance=null,this.__invalidProps=null}}},{key:"_showHideChildren",value:function(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&this.__instance._showHideChildren(e)}}]),t}();customElements.define(tr.is,tr);var nr=document.createElement("div");nr.setAttribute("style","display: none;"),nr.innerHTML='<dom-module id="card-tt-button-style">\n <template>\n <style>\n ::slotted(*) {\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host {\n position: relative;\n display: block;\n margin-left: auto;\n margin-right: auto;\n padding-left: 14px;\n padding-right: 14px;\n box-sizing: border-box;\n font-size: 18px;\n text-align: center;\n text-decoration: none;\n line-height: 2.55555556;\n border-radius: 5px;\n color: rgba(0,0,0,1);\n background-color: rgba(244,245,246,1);\n border-color: rgba(216,216,216,1);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host([ hidden ]) {\n display: none !important;\n }\n\n :host:after {\n content: " ";\n width: 200%;\n height: 200%;\n position: absolute;\n top: 0;\n left: 0;\n border: 1px solid rgba(0, 0, 0, 0.2);\n -webkit-transform: scale(0.5) translateZ(0);\n transform: scale(0.5) translateZ(0);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n box-sizing: border-box;\n border-radius: 10px;\n }\n\n :host([type=primary]) {\n color: rgba(255,255,255,1);\n border-color: rgba(248,89,89,1);\n background-color: rgba(248,89,89,1);\n }\n /*\n :host([type=warn]) {\n color: #FFFFFF;\n background-color: #E64340;\n }\n\n host[disabled][type=default] */\n :host([disabled]:not([type])) {\n opacity: 0.6;\n background-color: rgba(244,245,246,1);\n color: rgba(0, 0, 0, 0.3);\n }\n\n :host([disabled][type=primary]) {\n background-color: rgba(252,192,193,1);\n color: rgba(255,255,255,0.4)\n }\n\n :host([disabled][type=warn]) {\n background-color: #EC8B89;\n }\n \n :host([type=primary][plain]) {\n color: rgba(248,89,89,1);\n border: 1px solid rgba(248,89,89,1);\n background-color: transparent;\n }\n\n :host([type=primary][plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n }\n\n :host([type=primary][plain]):after {\n border-width: 0;\n }\n\n :host([type=default][plain]) {\n color: rgba(0,0,0,1);\n border: 1px solid rgba(0, 0, 0, 0.2);\n background-color: transparent;\n }\n\n :host([type=default][plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n }\n\n\n :host([type=default][plain]):after {\n border-width: 0;\n }\n\n :host([plain]) {\n color: #353535;\n border: 1px solid #353535;\n background-color: transparent;\n }\n\n :host([plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n }\n\n :host([plain]):after {\n border-width: 0;\n }\n /*\n :host([type=warn][plain]) {\n color: #e64340;\n border: 1px solid #e64340;\n background-color: transparent;\n }\n\n :host([type=warn][plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: rgba(0, 0, 0, 0.2);\n }\n\n :host([type=warn][plain]):after {\n border-width: 0;\n }\n */\n :host([size=mini]) {\n display: inline-block;\n line-height: 2.3;\n font-size: 14px;\n padding: 0 1.34em;\n }\n\n :host([loading][type=primary]) {\n color: rgba(255, 255, 255, 0.6);\n background-color: rgba(222,79,79,1);\n }\n :host([loading][type=primary][plain]) {\n color: rgba(248,89,89,1);\n background-color: transparent;\n }\n\n :host([loading][type=default]) {\n color: rgba(34,34,34,0.6);\n background-color: rgba(219,220,220,1);\n border-color: rgba(216,216,216,1);\n }\n \n :host([loading][type=default][plain]) {\n color: #353535;\n background-color: transparent;\n }\n /*\n :host([loading][type=warn]) {\n color: rgba(255, 255, 255, 0.6);\n background-color: #CE3C39;\n }\n\n :host([loading][type=warn][plain]) {\n color: #e64340;\n background-color: transparent;\n }\n */\n @-webkit-keyframes card-tt-button-loading-animate {\n 0% {\n -webkit-transform: rotate3d(0, 0, 1, 0deg);\n transform: rotate3d(0, 0, 1, 0deg);\n }\n\n 100% {\n -webkit-transform: rotate3d(0, 0, 1, 360deg);\n transform: rotate3d(0, 0, 1, 360deg);\n }\n }\n\n @keyframes card-tt-button-loading-animate {\n 0% {\n -webkit-transform: rotate3d(0, 0, 1, 0deg);\n transform: rotate3d(0, 0, 1, 0deg);\n }\n\n 100% {\n -webkit-transform: rotate3d(0, 0, 1, 360deg);\n transform: rotate3d(0, 0, 1, 360deg);\n }\n }\n\n :host(.button-hover) {\n color: rgba(34,34,34,0.6);\n background-color: rgba(219,220,220,1);\n border-color: rgba(216,216,216,1);\n }\n \n :host(.button-hover[plain]) {\n color: rgba(53, 53, 53, 0.6);\n border-color: rgba(53, 53, 53, 0.6);\n background-color: transparent;\n }\n \n\n :host(.button-hover[type=primary]) {\n color: rgba(255, 255, 255, 0.6);\n background-color: rgba(222,79,79,1);\n }\n\n :host(.button-hover[type=primary][plain]) {\n color: rgba(248,89,89,0.6);\n border-color: rgba(248,89,89,0.6);\n background-color: transparent;\n }\n\n :host(.button-hover[loading][type=primary][plain]) {\n color: rgba(248,89,89,1);\n }\n\n :host(.button-hover[type=default][plain]) {\n color: rgba(34,34,34,0.6);\n border: 1px solid rgba(0, 0, 0, 0.1);\n background-color: transparent;\n }\n\n :host(.button-hover[loading][type=default][plain]) {\n color: rgba(34,34,34,1);\n }\n /*\n :host(.button-hover[type=warn]) {\n color: rgba(255, 255, 255, 0.6);\n background-color: #CE3C39;\n }\n\n :host(.button-hover[type=warn][plain]) {\n color: rgba(230, 67, 64, 0.6);\n border-color: rgba(230, 67, 64, 0.6);\n background-color: transparent;\n }\n */\n\n :host([loading]) #icon {\n display: inline-block;\n width: 18px;\n height: 18px;\n vertical-align: middle;\n -webkit-animation: card-tt-button-loading-animate 1s steps(12, end) infinite;\n animation: card-tt-button-loading-animate 1s steps(12, end) infinite;\n background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQ9JREFUWAntmF2IVVUUx+9k5ViJn1MWJpMoioMyZRYYFEVCWVFPvQmCpeiLr74HvYojKUSPPkovvYiiGNijVA8SxkRphR/5nVpO5fT7Xc46s+/cc+7HjPdeH1zwn33O3vus9TvrrLP3uVOpPLDOZqBvuu7Hx8efxsdLaDlagAbQQvQQuoKuocvoR3Sir6/vd9op25SAgZxDxLfRy2gQ6UdA24cbnDvnDPoaHQTeG2rLDNCyAdrP5HfRe8jjRoAzJo3HebRjjB9QgN+mbclaBgZ2HR43o3nI65plVDDnBGBZ5i2ZT4E+StvUmgID6pz30QfI4wAIYLoqp9BJ9Cu6iqxZzZq2ngfRq+hF9CjSzyNZ67H6HO0DfJy21JxYasDq/CNkdjXnmyntJvoS+SK19Ejx9zjz30L6XIQCNvwepm8X/v6mLbRS4CyzH3NVwMYj/Y++r9ChRo4Lo2Wd+J7F4Sak/3gX4skJvbMs042AfblUPHod/on24myUdtoG+Bqc7EWxDMpjHGOM0NZZITCOhpm5FcW47Xk0gqO2lyKuKzViWRrW70oUwM7fQaxDHqRm9moMBzPp+BBZ/HezwRu0e+41rL7xaSJMTryoQsv1CSzWfI3VATP6OnoMWatqDO3HsW9/RyyD3oHzSJBx3EG3eZBaDTB3NJtBgTUvNsu+XD/b0Ukjxrf4/wyZ4dB2mKzv3GqA6X0FuRqYWWEthWOoW/YFgdxIZJDNBG5BuU0GHmJE0JDZvZPP7vABsVzPd6OU6500bD5A6t2VBtC/mQQ9ibptbkY+YXdCMz0E23O0VcuBOVuFIrMOjnLHpTuOEzphxHSt/wZFHdtujFgpsOuh2fVl8w5PoV7ZEQLL5iainkdVM+VhFnia4Ysx0IP2NDEjmWb4mWBIgV2kza7SXCF6ZW4mwSbw4gCJTs8jwzHWS+BzQAiqlWb4n2wwnVi9ogd/ZEiTGeVR0+nbOR9Zx9oTqGtrcDXixB93t7MTp5Vf4ji9C0tgbjYgtMCXs/NuN9bwm0nQfHlNgc1wZNe5biRnPOiBCVgYO68NJljorsPWshpEvTJ3uZBJzTnzAzpHM7pYixezJc7M+rrWENMXTskWx7HUTpCzJfqVdAEJHBNWcNxtM6NmV2B3OdAmfkmnGWas8hMSNrK8jjv24q5Yll1/oBZmV4jJwN/TZ8Fby0pYfyh2y1JYY5ttv2tyqwEm9X6P+uUfGbZ9gTt/Kr+iQwfZk/TzIOrXSHdgivKsRq4BrvZUKt/R3kIB7R2+gUOddcTwba36LzB5zKoSvG7jqgPmjlzSTqC0ll0tNnQCGp/C+cMhWGyFvZ2+bJxXzYFCw5HfoMMoMu0N/IWO4+gS7bSNGP04CdioVd+dm8TwX2F11gjYsdfQIBJah7Y+AT/uT+NU520boGbRElD60G88UcvxWlF26a+m3rbQsse1nsElKBw71wBm4Af0G869iaaGP2t1DjKrJkQ/4VdgYS+VwTLWGNgJBNHxahS/+XSsCWlAM/8Hcmv3JlwW/eeLY/730+XJ5cqPqfiRENelrR9a1xvBMt4c2Eka4M/SrEXxcsQjNEMex3l6I/alpZQCxjyvvwBoYc0yVmNmr2UD2mwtQ8uR4AJE4KkA+/JeAdZrW7K2gMMj4C5zS5Ebio9b8MnAnqvIcNSqm5PfLdaqfW3ZlIDTCMBbl08ifxNas75YtsK68AtoTfvIrwJZtxnQ/8Dumwz8D1o3mfMxYRE2AAAAAElFTkSuQmCC) no-repeat; background-size: 100%;\n }\n\n :host([loading][plain]) #icon {\n background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAACChJREFUWAntmVtsVVUax/fal9Me2tMDnnMqmmIYkmGSNl4GbaVIx2g0UQejT8YXk0lUiIWmJRCYN0hMjAED2NKakHmYB5/IxBdfiEaDBNNwadQHIEwwM15I6c1TSm+nZ1/m96127zmHnpZy6eHFle6z9l6X7/uvb323tWoYv5fllYC6W/IdHR0P5X2/Sfn+H6GV8g0jYwRBWpmmaSj1W+C6o7SPGKb57wrHOX348OGrd8PzjgDv3bs3OT4+/jKMn/aDYK2SYhgm3yowDJtHmUr+lPJc19bdLCAIApPGnxj7jeM4/wL8b7cL/rYA79+/v3JwcHALbF+Fe6UAcYPAVkEgAhVACqnaSFi6LPnxfF8DZoylF0S79DNuhhV+mk6nP4Xu5FKBLxlwa3t7o+F5f4PwKgEGMy1BVwCJREsABpTp+74GDmBbL4hxc4BtWQBzR1GXD7o7O79aCuhbAhYmra2tr5mW9bpsNcyswi1HJYTPBQD1IdBfeLK2bY9Io+u6Kc+y0qbrruXzL+j3UzCM8S6q4+idEJo89B3rOXq0h/maIG0ly6KA2aoYKvAOMxuVxY4CngWIZESk41D+zM3lTh87dmxJW7p79+6q6enpl1CYdwLfXw04oSdS1roP/S9qa2v/Dt/pkmiF70IdQqitre1d6kYZA7hZYzJND6l+PpVOn/jnIoQXoivtO3fujOfz+beg+S4qo20B5dC6zRq+ONrV1b6QpBcEvH379i3Q3uJh2SIJfizA30AKXT09PVcWA7TUvvb29sfyrtsF8DT0Z43WMCxAdXV3d3eWoiOWO6+0dnQ8wZa9KSYhK8XAxOyvxmKxA11dXXflRwuZnTlzZqCxsfEEYDfDoJY+E7CCaWNzc/Nl+ucJRnxnUUENKpTrviFA6fANH3MwjDGvuvrjO/GbRcRLfLBb19i5rXRpQxVV5DFRu/dF52+eMg+w53nPId0VzPL0Y1kzKh7/5JMPP8zePPlefQtofF8rQvLFuDFow/e8h6amprbdzKMI8J49exK4yedkkEymkuWeOPrRR/+5eeK9/kbVvoNpN/x0iBQA8Hhv165d6UJeRYAJt89gZDb65FEHIB5j3teFE5bzPZNK/QO2o3gOwWDyJHCDbxfyLAJMRwPLIm5qIwvYphOsPFc4YTnf50L0YYwHpZj1uYD+ayHPCDBuLEVnBrCuPAzKEef7CgeX472qquozdlU22OGRsN+wY8eOP4S8I8BsQz36g6UpUQUpVxaLOLND7v3vgQMHbqC/3yJlcVMCSZ5XQk4RYCsWW21Zlkt08Gn0UIcL4aCy177/pQQSpAsMnfX9OcSg8wL5IAFPsBJd5JvEZVDq+1HwVJdJS7UwUVOR9MMhjggwSKtQBd+wba0RnuOMhYPKXYPxGjxnkyzfR9BGXYjh/4BxIeQJwVxkMx5OJO4bYHa3n+ChHTERT/xyJOFIh1lBnocDRCAW6o2MjMjK7kuprq4WQ7MBa2OAFlse4YwkzDbcAN0DsyqDbvh+Nd9l88GFkpmcnEyD4+eoTan/hu8RYBCOkUOsFAUW0CxJAOuEJBxcrpoD6jXyiBdCfhhhlNBHgEXCAjTUA/QjxYSfwknlrA8dOjQNlpK8o3y4qampBr15BAX3AO07BMezZ89eKifQkBdgY5lMxmpoaLA2b95srlu3zrh48SLerVCZbfsKeiuOQhfe6yQ3DomUq4a5EoMfGhoyScZUNptVx48f1662CPCRI0dGOe0OkI9y7WD6HhJ2TfNP5QIa8uFAa5OTO+vXrzfXrFljtbS0IHB9mNBDInchX6zuR3EPImIdxD2vcevWrU5IbLlrYXvq1Kn49evXTYxOyVNRURFJV/gXAeYk+4Ov1DThUPyxi9I4lZWVjy030JD+tm3b4uiuWVdXx0ZbTjwet/v7+72wX+rI6OSjr68v39TcLEmHRBYdxjmqrN60adNVDoQTMma5iuwkAqtZuXJlMDY2pgBtJBKJHBmjBLSoFElYWh+vr/+exgluHZGxK6DJQ/znSx0IIyp3+YJRWTU1Nat4zIGBAXt4eNjmpKH27ds3L3DNA8y2cFXgnhbDE2XnJ8h7XsXExMSLywEaCdonT57MEN00FlTBTKVSCn6ThcYWyqRIJcLG8+fPZ5/cuDEg5NWSdgZijUSfGAtZ+0RLy2Bfb++SrqZCegvVgJXb0AcB5sxYlspzbxfjEpTvCS5SpkrNQ11LF7HY99ransVrrBWPwSgOI0RCpfJGLHYhk0xehqEcpW67MM/Ez8ot6CouZ1x0N5jk4IB0A8d1Jzj2jwqvUoQXBCyDIWwPZbObMLxHuEdyhQi37TrXgNq4o9SlmZmZX/GdRYZRipG0ia729vYm0c8Mvpb7GjfA97sClOKzixOdnZ3DC4EVGosClgEQkuvWR9HpeiGEjwn9Yl4cNsmIuJ0hGPczZjyZTEqiMlNfXx8ALuYmk46ZzcYx3Gr6q3K5nJYkUuVy3g1wm7pesWLFCDdL1xcDK3huCVgGSQH0GvA9CUFtHCIRAEhUFJ8tiwAT+k5eLe1IUF9tIDXxMlE7ILkylitmA1v2tISpB1CDcdpuWUoaXalZ586dG9uwYcOPgBGg+hYeRpyobAEmZ0DRb5kq3kXnJLwHc9sdtQt45utvAsMIfrf/4MGD89yXDChVlizhwsmSFAF2HcwfBLBsd4D1aTeIXudlW1mAaIzopZYwY0hNzABVmGTOKBfXw3ditHcEuBD83K16LQtIoJwx/pFhASwGMAGcwwtM0jfDnHGknS3nTVIhzt/flyqB/wF0ZB0uacxUuQAAAABJRU5ErkJggg==) no-repeat; background-size: 100%;\n }\n\n :host #mask {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(255,255,255,.775);\n }\n \n </style>\n </template>\n</dom-module>',document.head.appendChild(nr);var rr=o(['\n <style include="card-tt-button-style">\n </style>\n <i id="icon" if="[[loading]]"></i>\n <slot></slot>\n <template is="dom-if" if="[[showMask(disabled, type)]]">\n <div id="mask"></div>\n </template>\n '],['\n <style include="card-tt-button-style">\n </style>\n <i id="icon" if="[[loading]]"></i>\n <slot></slot>\n <template is="dom-if" if="[[showMask(disabled, type)]]">\n <div id="mask"></div>\n </template>\n ']),ir=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"connectedCallback",value:function(e){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._defaultHoverClass="button-hover"}},{key:"_onButtonTap",value:function(){var e=this;this.disabled||(this.formType&&("submit"===this.formType&&this.dispatchEvent(new CustomEvent("formSubmit",{bubbles:!0,composed:!0})),"reset"===this.formType&&this.dispatchEvent(new CustomEvent("formReset",{bubbles:!0,composed:!0}))),!this._lock&&this.openType&&(this._lock=!0,setTimeout(function(){e._lock=!1},1e3),"share"===this.openType?ttJSBridge_w.publish("tapShareButton",{target:{id:this.id,dataset:this.$$data},channel:this.$$data.channel}):"getPhoneNumber"===this.openType&&ttJSBridge_w.publish("_webviewGetPhoneNumber",{target:{id:this.id,dataset:this.$$data},_funcName:this.$$eventHandleNames.getphonenumber})))}},{key:"showMask",value:function(e,t){return e&&"default"==t}},{key:"listeners",get:function(){return{tap:"_onButtonTap"}}}],[{key:"template",get:function(){return hn(rr)}},{key:"is",get:function(){return"card-tt-button"}},{key:"properties",get:function(){return{type:{type:String,value:"default",reflectToAttribute:!0},size:{type:String,value:"default",reflectToAttribute:!0},shape:{type:String,value:"default",reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},plain:{type:Boolean,reflectToAttribute:!0},loading:{type:Boolean,reflectToAttribute:!0},formType:{type:String},openType:{type:String,value:""},hoverStartTime:{type:Number,value:20},hoverStayTime:{type:Number,value:70},hoverClass:{type:String,value:"button-hover",observer:"_hoverClassChange"}}}}]),t}(kn(vn(pn)));window.customElements.define(ir.is,ir);var or=document.createElement("div");or.setAttribute("style","display: none;"),or.innerHTML='<dom-module id="card-tt-icon-style">\n <template>\n <style>\n :host {\n display: inline-block;\n font-size: 0;\n }\n \n :host([hidden]) {\n display: none;\n }\n \n #icon {\n font: normal normal normal 14px/1 "larkui";\n }\n \n #icon[class^="card-tt-icon-"]:before,\n #icon[class*=" card-tt-icon-"]:before {\n margin: 0;\n box-sizing: border-box;\n }\n \n .card-tt-icon-waiting { color: #14C0FF;}\n .card-tt-icon-waiting:before { content: "\\e612";}\n .card-tt-icon-success {\n color: #34c724;\n }\n .card-tt-icon-success:before {\n content: "\\e613";\n }\n .card-tt-icon-success_no_circle {\n color: #1f2329;\n }\n .card-tt-icon-success_no_circle:before {\n content: "\\e610";\n }\n .card-tt-icon-info {\n color: #3370ff;\n }\n .card-tt-icon-info:before {\n content: "\\e60d";\n }\n .card-tt-icon-warn {\n color: #ffc60a;\n }\n .card-tt-icon-warn:before {\n content: "\\e614";\n }\n .card-tt-icon-clear,\n .card-tt-icon-error {\n color: #f54a45;\n }\n .card-tt-icon-clear:before,\n .card-tt-icon-error:before {\n content: "\\e615";\n }\n .card-tt-icon-cancel {\n color: #1f2329;\n }\n .card-tt-icon-cancel:before {\n content: "\\e611";\n }\n .card-tt-icon-download {\n color: #1f2329;\n }\n .card-tt-icon-download:before {\n content: "\\e60f";\n }\n .card-tt-icon-search {\n color: #1f2329;\n }\n .card-tt-icon-search:before {\n content: "\\e60e";\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(or);var ar=o(['<style include="card-tt-icon-style"></style><i id="icon" class$="card-tt-icon-[[ type ]]" style$="color: [[ color ]]; font-size: [[ size ]]px"></i>'],['<style include="card-tt-icon-style"></style><i id="icon" class\\$="card-tt-icon-[[ type ]]" style\\$="color: [[ color ]]; font-size: [[ size ]]px"></i>']),sr=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,null,[{key:"template",get:function(){return hn(ar)}},{key:"is",get:function(){return"card-tt-icon"}},{key:"properties",get:function(){return{type:{type:String},color:{type:String},size:{type:Number,value:24}}}}]),t}(vn(pn));window.customElements.define(sr.is,sr);var lr=o(["\n <style>\n :host {\n display: block;\n }\n </style>\n <slot></slot>\n "],["\n <style>\n :host {\n display: block;\n }\n </style>\n <slot></slot>\n "]),cr=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){this.__submitHandler=this.submitHandler.bind(this),this.__resetHandler=this.resetHandler.bind(this)}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.addEventListener("formSubmit",this.__submitHandler),this.addEventListener("formReset",this.__resetHandler)}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this.removeEventListener("formSubmit",this.__submitHandler),this.removeEventListener("formReset",this.__resetHandler)}},{key:"submitHandler",value:function(t){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=this,e.t1={id:"",dataset:Object.assign({},t.target.$$data),offsetLeft:t.target.offsetLeft,offsetTop:t.target.offsetTop},e.next=4,regeneratorRuntime.awrap(this.collectInput());case 4:e.t2=e.sent,e.t3={target:e.t1,value:e.t2},e.t0.triggerEvent.call(e.t0,"submit",e.t3);case 7:case"end":return e.stop()}},null,this)}},{key:"resetHandler",value:function(e){this._dfs(this).forEach(function(e){e.resetFormData()}),this.triggerEvent("reset",{target:{id:"",dataset:Object.assign({},e.target.$$data),offsetLeft:e.target.offsetLeft,offsetTop:e.target.offsetTop}})}},{key:"_dfs",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return e?("function"==typeof e.getFormData&&n.push(e),e.children&&e.children.length&&Array.from(e.children).forEach(function(e){t._dfs(e,n)}),n):n}},{key:"collectInput",value:function(){var o,a,t,n,r,s=this;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:o=this._dfs(this),a={},t=function(t,e){var n,r,i;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=o[t],r=n.name)return e.next=5,regeneratorRuntime.awrap(new Promise(function(e){n.getFormData(e)}));e.next=7;break;case 5:i=e.sent,a[r]?a[r]=[].concat(a[r],i):a[r]=i;case 7:case"end":return e.stop()}},null,s)},n=0,r=o.length;case 4:if(n<r)return e.next=7,regeneratorRuntime.awrap(t(n,r));e.next=10;break;case 7:n++,e.next=4;break;case 10:return e.abrupt("return",a);case 11:case"end":return e.stop()}},null,this)}}],[{key:"template",get:function(){return hn(lr)}},{key:"is",get:function(){return"card-tt-form"}}]),t}(vn(pn));window.customElements.define(cr.is,cr);var ur=o(['\n <style>\n :host{\n display: inline-block;\n width: 100%; \n min-height: 300px;\n } \n :host .larkpc-editor{\n height: 100%;\n width: 100%;\n border: none;\n border-bottom: 1px solid #efeff4;\n } \n </style> \n <iframe id="larkpc-editor-container" class="larkpc-editor" src=\'[[editorFrameSrc]]\'></iframe> \n '],['\n <style>\n :host{\n display: inline-block;\n width: 100%; \n min-height: 300px;\n } \n :host .larkpc-editor{\n height: 100%;\n width: 100%;\n border: none;\n border-bottom: 1px solid #efeff4;\n } \n </style> \n <iframe id="larkpc-editor-container" class="larkpc-editor" src=\'[[editorFrameSrc]]\'></iframe> \n ']),dr=0,hr=function(e){function r(){u(this,r);var n=y(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return tt_w.subscribe("pcEditorInsertImagesCallback",function(e){var t=e.images;n.adit&&(t||[]).forEach(function(e){n.adit.format("image",{src:e.hasOwnProperty("src")?e.src:e.filePath})})}),n}return f(r,e),a(r,null,[{key:"is",get:function(){return"card-tt-editor"}}]),a(r,[{key:"isOverseaChanged",value:function(e,t){this.connected&&this.editorLoaded?this.editorFrameContainer.contentWindow.postMessage({isOversea:e}):this.connected&&(this.editorFrameContainer.contentWindow.editorInitConfig.isOversea=e)}},{key:"attrChangedForContents",value:function(e,t){this.connected&&this.editorLoaded&&this.editorFrameContainer.contentWindow.postMessage({contents:e})}},{key:"attrChangedForReadOnly",value:function(e,t){this.connected&&this.editorLoaded&&this.editorFrameContainer.contentWindow.postMessage({readOnly:e})}},{key:"getInitConfig",value:function(){return{isOversea:this.isOversea,readOnly:this.readOnly,plugins:this.plugins,placeholder:this.placeholder,placeholderStyle:this.placeholderStyle,contents:this.contents,mentionSeach:function(e,r){tt_w.invokeMethod("getMentionSearchResult",{keyword:e.content,success:function(e){var t=JSON.parse(e&&e.data&&e.data.data||[]),n={};t.forEach(function(e){e.content=e.name,e.url=e.avatar_url,e.token=e.id,n[e.id]=e}),r({code:0,data:{entities:{users:n},result_list:t}})},fail:function(e){}})}.bind(this),ready:function(e){this.adit=e;var t=/editorFlag=([\d+])/i.exec(this.editorFrameSrc);this.editorId=t&&1<t.length&&t[1]||null,this.editorId?this.triggerEvent("ready",{editorId:this.editorId}):console.log("未获取editorId")}.bind(this),insertimages:function(e){tt_w.publish("pcEditorInsertImages",{eventName:this.$$eventHandleNames.insertimage,data:{images:e.images}})}.bind(this),contentChange:function(e){this.triggerEvent("input",e)}.bind(this),mentionselect:function(e){this.userInfo=e||{},this.triggerEvent("mentionselect",{editorId:this.editorId,name:e.cn_name,openId:e.id})}.bind(this),mentionclick:function(){this.triggerEvent("mentionclick",{editorId:this.editorId,openId:this.userInfo.id})}.bind(this)}}},{key:"connectedCallback",value:function(){var t=this;p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"connectedCallback",this).call(this),this.editorFrameContainer=this.$["larkpc-editor-container"],this.editorFrameContainer.contentWindow.editorInitConfig=this.getInitConfig(),this.editorFrameContainer.onload=function(){t.editorLoaded=!0},this.connected=!0,this.isOversea||tt_w.invokeMethod("getOverseaFlag",{success:function(e){t.isOversea=Boolean(e.isOversea)},fail:function(e){console.log(e)}})}},{key:"disconnectedCallback",value:function(){p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"disconnectedCallback",this).call(this)}},{key:"ready",value:function(){p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"ready",this).call(this)}}],[{key:"template",get:function(){return hn(ur)}},{key:"properties",get:function(){return{isOversea:{type:void 0|Boolean,value:void 0,observer:"isOverseaChanged"},editorFrameSrc:{type:String,value:"../../__larkpc_editor__/index.html?editorFlag="+dr++},readOnly:{type:Boolean,value:!1,observer:"attrChangedForReadOnly"},placeholder:{type:String,value:""},contents:{type:Object,observer:"attrChangedForContents",value:{text:"",html:"",json:""}},placeholderStyle:{type:Object,value:{}},plugins:{type:Array,value:["attribution","insertImage","undo","redo"]}}}}]),r}(vn(pn));window.customElements.define(hr.is,hr);var pr=document.createElement("div");pr.setAttribute("style","display: none;"),pr.innerHTML='<dom-module id="card-tt-image-style">\n <template>\n <style>\n #imageWrapper {\n height: 100%;\n width: 100%;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(pr);var fr=o(['\n <style include="card-tt-image-style">\n :host {\n width: 300px;\n height: 225px;\n display: inline-block;\n overflow: hidden;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n </style>\n <div style="background-size:100% 100%;background-repeat: no-repeat;" id="imageWrapper"></div>\n '],['\n <style include="card-tt-image-style">\n :host {\n width: 300px;\n height: 225px;\n display: inline-block;\n overflow: hidden;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n </style>\n <div style="background-size:100% 100%;background-repeat: no-repeat;" id="imageWrapper"></div>\n ']),vr=function(){var n={},r=0,e=function(n,r){var i=void 0,o=void 0,a=void 0,s=null,l=0,c=function(){l=Date.now(),a=n.apply(i,o),s=i=o=null};return function(){var e=Date.now(),t=r-(e-l);return i=this,o=arguments,t<=0||r<t?(s&&(clearTimeout(s),s=null),l=e,a=n.apply(i,o),i=o=null):s||(s=setTimeout(c,t)),a}},t=e(function(){for(var e in n){var t=n[e];o(t)&&t._showImage(t._changeId)}},200);document.addEventListener("tt-scroll-view",e(function(){for(var e in n){var t=n[e];i(t)&&o(t)&&t._showImage(t._changeId)}},200)),document.addEventListener("scroll",t);var i=function(e){var t=e.parentNode;return!!t&&("CARD-TT-SCROLL-VIEW"==t.tagName||i(t))},o=function(e){var t,n,r=2*document.documentElement.clientWidth,i=2*document.documentElement.clientHeight;return t=e.getBoundingClientRect(),n={top:-i,right:document.documentElement.clientWidth+r,bottom:document.documentElement.clientHeight+i,left:-r},!(t.left>n.right||t.top>n.bottom||n.left>t.right||n.top>t.bottom)};return{registerInstance:function(e){if(!e._imageInstanceId){var t=e._imageInstanceId=function(){for(var e=r++;n[e];)e=r++;return e}();n[t]=e}},deregisterInstance:function(e){e._imageInstanceId&&(delete n[e._imageInstanceId],e._imageInstanceId=void 0)},hasScrollViewParent:i,isNodeVisible:o,checkUnloadedImages:t}}(),gr=function(e){function n(){u(this,n);var e=y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e._attached=!1,e._changeId=0,e.__pageReRenderCallback=e._pageReRenderCallback.bind(e),e._widgetInstanceID="",e}return f(n,e),a(n,null,[{key:"template",get:function(){return hn(fr)}},{key:"is",get:function(){return"card-tt-image"}},{key:"properties",get:function(){return{src:{type:String,observer:"srcChanged"},mode:{type:String,observer:"modeChanged"},backgroundSize:{type:String,observer:"backgroundSizeChanged"},backgroundPosition:{type:String,observer:"backgroundPositionChanged"},backgroundRepeat:{type:String,observer:"backgroundRepeatChanged"},_disableSizePositionRepeat:{type:Boolean},width:{type:String,observer:"__widthChanged"},height:{type:String,observer:"__heightChanged"},lazyLoad:{type:Boolean,observer:"lazyLoadChanged"}}}}]),a(n,[{key:"connectedCallback",value:function(e){var t=this;p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this._attached=!0,this._originalHeight=this.style.height||"",this.src&&setTimeout(function(){return t._initialize(t.lazyLoad)})}},{key:"disconnectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),this._attached=!1,this.lazyLoad&&vr.deregisterInstance(this),document.removeEventListener("pageReRender",this.__pageReRenderCallback)}},{key:"srcChanged",value:function(e,t){var n=this;this._attached&&e!==t&&setTimeout(function(){n._changeId++,document.removeEventListener("pageReRender",n.__pageReRenderCallback),n._showImage(n._changeId)})}},{key:"modeChanged",value:function(e,t){if(this._checkMode(e))switch("widthFix"===t&&(this.style.height=this._originalHeight),this._disableSizePositionRepeat=!0,this.$.imageWrapper.style.backgroundSize="auto auto",this.$.imageWrapper.style.backgroundPosition="0% 0%",this.$.imageWrapper.style.backgroundRepeat="no-repeat",e){case"scaleToFill":this.$.imageWrapper.style.backgroundSize="100% 100%";break;case"aspectFit":this.$.imageWrapper.style.backgroundSize="contain",this.$.imageWrapper.style.backgroundPosition="center center";break;case"aspectFill":this.$.imageWrapper.style.backgroundSize="cover",this.$.imageWrapper.style.backgroundPosition="center center";break;case"widthFix":this.$.imageWrapper.style.backgroundSize="100% 100%";break;case"top":this.$.imageWrapper.style.backgroundPosition="top center";break;case"bottom":this.$.imageWrapper.style.backgroundPosition="bottom center";break;case"center":this.$.imageWrapper.style.backgroundPosition="center center";break;case"left":this.$.imageWrapper.style.backgroundPosition="center left";break;case"right":this.$.imageWrapper.style.backgroundPosition="center right";break;case"top left":this.$.imageWrapper.style.backgroundPosition="top left";break;case"top right":this.$.imageWrapper.style.backgroundPosition="top right";break;case"bottom left":this.$.imageWrapper.style.backgroundPosition="bottom left";break;case"bottom right":this.$.imageWrapper.style.backgroundPosition="bottom right"}else this._disableSizePositionRepeat=!1}},{key:"getWidth",value:function(){var e=this.$.imageWrapper.offsetWidth,t=window.getComputedStyle(this.$.imageWrapper);return e-((parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0))-((parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0))}},{key:"backgroundSizeChanged",value:function(e,t){this._disableSizePositionRepeat||(this.$.imageWrapper.style.backgroundSize=e)}},{key:"backgroundPositionChanged",value:function(e,t){this._disableSizePositionRepeat||(this.$.imageWrapper.style.backgroundPosition=e)}},{key:"backgroundRepeatChanged",value:function(e,t){this._disableSizePositionRepeat||(this.$.imageWrapper.style.backgroundRepeat=e)}},{key:"lazyLoadChanged",value:function(e,t){e!==t&&t&&this._initialize(e)}},{key:"_checkMode",value:function(t){return!!["scaleToFill","aspectFit","aspectFill","top","bottom","center","left","right","top left","top right","bottom left","bottom right"].filter(function(e){return e===t}).length}},{key:"_initialize",value:function(e){this._widgetInstanceID=this.$$data&&this.$$data.widgetInstanceId||"",!e||vr.isNodeVisible(this)?this._showImage(this._changeId):vr.registerInstance(this)}},{key:"_showImage",value:function(r){var i=this;this._getImagePath(this.src,function(t){t=t.replace(/\\/g,"/"),i.$.imageWrapper.style.backgroundImage="url('"+t+"')";var n=new Image;n.onerror=function(e){e.stopPropagation(),r===i._changeId&&(n=null,i.triggerEvent("error",{errMsg:"GET "+t+" 404 (Not Found)"}))},n.onload=function(e){if(e.stopPropagation(),r===i._changeId){var t=i.ratio=n.naturalWidth/n.naturalHeight;"widthFix"===i.mode&&(i.style.height=i.getWidth()/t+"px",i.triggerReRender()),document.addEventListener("pageReRender",i.__pageReRenderCallback),window.requestAnimationFrame(function(){i.$.imageWrapper.style.transform="translateZ(0)",window.requestAnimationFrame(function(){i.$.imageWrapper.style.transform=""})}),i.triggerEvent("load",{width:n.naturalWidth,height:n.naturalHeight})}},vr.deregisterInstance(i),n.src=t})}},{key:"_pageReRenderCallback",value:function(){"widthFix"===this.mode&&null!==this.ratio&&(this.style.height=this.getWidth()/this.ratio+"px"),vr.checkUnloadedImages()}},{key:"_getImagePath",value:function(e,t){var n=mn().devtool,r=this.__dirname_abs;r&&(r=r.slice(1,r.lastIndexOf(".")));var i=this.__widgetDirBase,o=r||this.__widgetRoute||window.__route__;if(null!==(null===e?"undefined":yn(e))&&"function"==typeof t)if("//"===(e=e?e.toString().trim():"").slice(0,2)&&(e="http:"+e),mn(e).file||mn(e).http||mn(e).dataImage)t(e);else if(mn(e).ttfile)tt_w.getProtocolXPath(e,t,this._widgetInstanceID);else if(n){var a=window.dirName,s="http://127.0.0.1:"+staticPort+"/static/dist/public/"+a+"/tmp";t(e=tt_w.getRealRoute(s,tt_w.getRealRoute(o,e)))}else t([i,tt_w.getRealRoute(o,e)].join("/"))}},{key:"__widthChanged",value:function(e){e&&(Number(e)&&(e+="px"),this.style.width=e)}},{key:"__heightChanged",value:function(e){e&&(Number(e)&&(e+="px"),this.style.height=e)}}]),n}(vn(pn));window.customElements.define(gr.is,gr);var yr,mr,_r,Ar,br,wr,kr,Cr=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"connectedCallback",value:function(){if(p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._classPrefix="",this.shadowRoot){var e=this.classList._prefix;e&&(this._classPrefix=e+"--")}}},{key:"getClassPrefix",value:function(){return this._classPrefix}}]),t}()},Er={rules:{a:"nA",abbr:"nA",b:"nA",blockquote:"nA",br:"nA",code:"nA",col:"fA",colgroup:"fA",dd:"nA",del:"nA",div:"nA",dl:"nA",dt:"nA",em:"nA",fieldset:"nA",h1:"nA",h2:"nA",h3:"nA",h4:"nA",h5:"nA",h6:"nA",hr:"nA",i:"nA",img:"fA",ins:"nA",label:"nA",legend:"nA",li:"nA",ol:"fA",p:"nA",q:"nA",span:"nA",strong:"nA",sub:"nA",sup:"nA",table:"fA",tbody:"nA",td:"fA",tfoot:"nA",th:"fA",thead:"nA",tr:"nA",ul:"nA"},fA:function(e,t,n,r){var i={col:{span:"nF",width:"nF"},colgroup:{span:"nF",width:"nF"},img:{alt:"nF",src:"fL",height:"nF",width:"nF"},ol:{start:"nF",type:"nF"},table:{width:"nF"},td:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"},th:{colspan:"nF",height:"nF",rowspan:"nF",width:"nF"}},o=i[n][e];if(i.hasOwnProperty(n)&&i[n].hasOwnProperty(e))switch(o){case void 0:break;case"nF":r.setAttribute(e,t);break;default:return Er[o]&&Er[o](e,t,n,r)}},fL:function(e,t,n,r){r.setAttribute(e,t)},parse:function(e,l,c){return e.map(function(e){if("object"===(void 0===e?"undefined":yn(e)))if(void 0===e.type||"node"===e.type||""===e.type){if("string"==typeof e.name&&""!==e.name){var t=e.name.toLowerCase();if(Er.rules.hasOwnProperty(t)){var n=Er.rules[t],r=document.createElement(t);if(r){if("object"===yn(e.attrs))for(var i in e.attrs){var o=i.toLowerCase(),a=xr.decodeEntities(e.attrs[i]);if("class"===o){var s=c?a.replace(/\S+/g,function(e){return c+e}):a;r.setAttribute("class",s)}else"style"===o?r.setAttribute("style",a):"nA"!==n&&Er[n]&&Er[n](o,a,t,r)}"object"===yn(e.children)&&e.children instanceof Array&&e.children.length&&Er.parse(e.children,r,c),l.appendChild(r)}}}}else"text"===e.type&&"string"==typeof e.text&&""!==e.text&&l.appendChild(document.createTextNode(xr.decodeEntities(e.text)))}),l}},xr=(yr=function(){var _=function(){};_.prototype=Object.create(Object.prototype,{constructor:{value:_,writable:!0,configurable:!0}});var A=function(e,t){var n=t-30+1;return n<0&&(n=0),"L"+((e.slice(0,t).match(/(\r|\n|\r\n)/g)||[]).length+1)+": "+e.slice(n,t+1)};_.create=function(l,e){var t=Object.create(_.prototype);t._cbs=e;var c=t._stateTable={},n=t._stateRecTable={},r={},i={},o=function(e,t,n,r,i){if(Object.prototype.hasOwnProperty.call(l,n))if(i[n]){if(!i[n].overwrite)throw new Error('State "'+e+'" has multiple possible rules on symbol "'+n+'".')}else i[n]=t;else if("ALL"!==n&&"NULL"!==n&&1<n.length)if(r[n]){if(!r[n].overwrite)throw new Error('State "'+e+'" has multiple possible rules on symbol "'+n+'".')}else for(var o=0;o<n.length;o++)if("-"===n[o+1]&&n[o+2]){for(var a=n.charCodeAt(o+2),s=n.charCodeAt(o);s<=a;s++)r[String.fromCharCode(s)]=t;o+=2}else r[n[o]]=t;else if(r[n]){if(!r[n].overwrite)throw new Error('State "'+e+'" has multiple possible rules on symbol "'+n+'".')}else r[n]=t},a="";for(a in l)for(var s=l[a],u=c[a]={},d=n[a]={},h=r[a]={},p=i[a]={},f=0;f<s.length;f++){var v=s[f],g=v.states[0];g===a?o(a,v,g=v.states[1],d,p):o(a,v,g,u,h)}var y=null,m=function e(t,n,r){if(2!==y[t]){if(1===y[t])throw new Error('State "'+t+'" has illegal recursive rule definition.');y[t]=1;var i=n[t],o=r[t];for(var a in i){e(a,n,r);var s=c[a];for(var l in s)if(o[l]){if(!o[l].overwrite)throw new Error('State "'+t+'" has multiple possible rules on symbol "'+l+'".')}else o[l]=i[a]}y[t]=2}};for(a in y={},r)m(a,r,c);for(a in y={},i)m(a,i,n);return t},_.prototype.parse=function(e,t,n){var r={str:t,pos:0},i=o(this._stateTable,this._stateRecTable,e,r,this._cbs,n);if(r.str.length>r.pos)throw new Error('Unexpected character "'+r.str[r.pos]+'" in position '+A(r.str,r.pos)+r.pos+", near ");return i};var o=function h(p,f,v,g,y,m){var e=p[v],t=null;if(g.str.length>g.pos&&(t=e[g.str[g.pos]]),!t&&(g.str.length>g.pos&&(t=e.ALL),!t)){if(!(t=e.NULL))throw new Error('Unexpected character "'+g.str[g.pos]+'" in position '+g.pos+' (in state "'+v+'"), near '+A(g.str,g.pos));if("NULL"===t.states[0])return y[t.id]?y[t.id]([],m):{r:t.id,c:[]}}for(var n=function(e,t,n){var r=e.states,i=[];t&&i.push(n);for(var o=t?1:0;o<r.length;o++){var a=r[o];if(Object.prototype.hasOwnProperty.call(p,a))i.push(h(p,f,a,g,y,m));else if("ALL"===a)i.push(g.str[g.pos]),g.pos++;else{for(var s=g.str[g.pos],l=g.str.charCodeAt(g.pos),c=0;c<a.length;c++)if("-"===a[c+1]&&a[c+2]){var u=a.charCodeAt(c),d=a.charCodeAt(c+2);if(u<=l&&l<=d)break;c+=2}else if(s===a[c])break;if(c===a.length)throw new Error('Unexpected character "'+s+'" in position '+g.pos+' (expect "'+a+'" in state "'+v+'"), near '+A(g.str,g.pos));i.push(s),g.pos++}}return y[e.id]?y[e.id](i,m):{r:e.id,c:i}},r=n(t);g.str.length>g.pos&&((t=f[v][g.str[g.pos]])||(t=f[v].ALL));)r=n(t,!0,r);return r};return _}(),_r=-(mr=1),Ar=3,br=8,wr={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'"},kr=null,{parse:function(e){return kr||(kr=yr.create({TEXT:[{id:"tag",states:["TEXT","TAG"]},{id:"text",states:["TEXT","ALL"]},{id:"tag1",states:["TAG"]},{id:"text1",states:["ALL"]},{id:"_null",states:["NULL"],overwrite:!0}],TAG:[{id:"_blank",states:["<","TAG_START"]}],TAG_END:[{id:"_concat",states:["/",">"]},{id:"_jump",states:[">"]}],TAG_START:[{id:"comment",states:["!","-","-","COMMENT_CONTENT"]},{id:"endTag",states:["/","TAG_NAME",">"]},{id:"startTag",states:["TAG_NAME","ATTRS","TAG_END"]}],TAG_NAME:[{id:"_concat",states:["TAG_NAME","-_a-zA-Z0-9.:"]},{id:"_jump",states:["a-zA-Z"]}],ATTRS:[{id:"_blank",states:[" \n\r\t\f","ATTRS"]},{id:"_jump",states:["ATTRS"," \n\r\t\f"]},{id:"attrs",states:["ATTR","ATTRS"]},{id:"_null",states:["NULL"],overwrite:!0}],ATTR:[{id:"attr",states:["ATTR_NAME","ATTR_NAME_AFTER"]}],ATTR_NAME:[{id:"_concat",states:["ATTR_NAME","-_a-zA-Z0-9.:$&"]},{id:"_jump",states:["-_a-zA-Z0-9.:$&"]}],ATTR_NAME_AFTER:[{id:"_blank",states:["=","ATTR_VALUE"]},{id:"_empty",states:["NULL"]}],ATTR_VALUE:[{id:"_blank",states:['"',"ATTR_VALUE_INNER_1"]},{id:"_blank",states:["'","ATTR_VALUE_INNER_2"]}],ATTR_VALUE_INNER_1:[{id:"_empty",states:['"']},{id:"_concat",states:["ALL","ATTR_VALUE_INNER_1"]}],ATTR_VALUE_INNER_2:[{id:"_empty",states:["'"]},{id:"_concat",states:["ALL","ATTR_VALUE_INNER_2"]}],COMMENT_CONTENT:[{id:"_concat",states:["ALL","COMMENT_CONTENT"]},{id:"_concat",states:["-","COMMENT_CONTENT_DASH_1"]}],COMMENT_CONTENT_DASH_1:[{id:"_concat",states:["ALL","COMMENT_CONTENT"]},{id:"_concat",states:["-","COMMENT_CONTENT_DASH_2"]}],COMMENT_CONTENT_DASH_2:[{id:"_concat",states:["ALL","COMMENT_CONTENT"]},{id:"_concat",states:["-","COMMENT_CONTENT_DASH_2"]},{id:"_jump",states:[">"]}]},{_null:function(){},_empty:function(){return""},_jump:function(e){return e[0]},_concat:function(e){return e[0]+e[1]},_blank:function(e){return e[1]},attr:function(e){return{n:e[0],v:e[1]}},attrs:function(e){var t=e[1]||{};return t[e[0].n]=e[0].v,t},startTag:function(e){var t=e[0].toLowerCase();return{t:mr,n:t,a:e[1]||{},selfClose:"/>"===e[2]||function(e){switch(e){case"area":case"base":case"basefont":case"br":case"col":case"frame":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":return!0;default:return!1}}(t)}},endTag:function(e){return{t:_r,n:e[1].toLowerCase()}},comment:function(e){return{t:br,c:e[3].slice(0,-3)}},tag1:function(e){return[e[0]]},text1:function(e){return[{t:Ar,c:e[0]}]},tag:function(e){return e[0].push(e[1]),e[0]},text:function(e){var t=e[0];return t[t.length-1].t===Ar?t[t.length-1].c+=e[1]:t.push({t:Ar,c:e[1]}),t}})),function(e){for(var t={children:[]},n=t,r=[],i=null,o=0;o<e.length;o++){var a=e[o];if(a.t===mr)i={name:a.n,attrs:a.a,children:[]},n.children.push(i),a.selfClose||(r.push(n),n=i);else if(a.t===_r){for(;a.n!==n.name;)if(!(n=r.pop()))throw new Error('No matching start tag found for "</'+a.n+'>"');n=r.pop()}else a.t===Ar&&a.c&&n.children.push({type:"text",text:a.c})}return t}(kr.parse("TEXT",e)||[]).children},decodeEntities:function(e){return e.replace(/&([a-zA-Z]*?);/g,function(e,t){if(wr.hasOwnProperty(t)&&wr[t])return wr[t];if(/^#[0-9]{1,4}$/.test(t))return String.fromCharCode(t.slice(1));if(/^#x[0-9a-f]{1,4}$/i.test(t))return String.fromCharCode("0"+t.slice(1));throw new Error('HTML Entity "'+e+'" is not supported.')})}}),Sr=o(['\n <div id="richText"><slot></slot></div>\n '],['\n <div id="richText"><slot></slot></div>\n ']),Pr=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._ready=!1,e._cachedVal=null,e}return f(t,e),a(t,null,[{key:"template",get:function(){return hn(Sr)}},{key:"is",get:function(){return"card-tt-rich-text"}},{key:"properties",get:function(){return{nodes:{type:Object,value:[],observer:"_nodesObserver"}}}}]),a(t,[{key:"connectedCallback",value:function(){if(p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._ready=!0,this._cachedVal){var e=this._cachedVal;this._cachedVal=null,this._nodesObserver(e)}}},{key:"_nodesObserver",value:function(e){if(this._ready){if("string"==typeof e)try{e=xr.parse(e)}catch(e){return void logger.error(e)}this.$.richText.innerHTML="",e&&"object"==typeof e&&e instanceof Array?this.$.richText.appendChild(Er.parse(e,document.createDocumentFragment(),this.getClassPrefix())):(logger.group(new Date+" nodes属性只支持 String 和 Array 类型"),logger.warn("For developer:nodes属性只支持 String 和 Array 类型,请检查输入的值。"),logger.groupEnd())}else this._cachedVal=e}}]),t}(Cr(vn(pn)));window.customElements.define(Pr.is,Pr);var Tr=o(['\n <style>\n :host {\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n }\n </style>\n <style include="card-tt-label-style">\n </style>\n <slot></slot>\n '],['\n <style>\n :host {\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n }\n </style>\n <style include="card-tt-label-style">\n </style>\n <slot></slot>\n ']),Or=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"_dfs",value:function(e){if(e.isLabelTarget)return e;for(var t=Array.from(e.children),n=0;n<t.length;n++){var r=this._dfs(t[n]);if(r)return r}}},{key:"onTap",value:function(e){var t=void 0,n=this.htmlFor;(t=n?this.querySelector("#"+n)||document.getElementById(n):this._dfs(this))&&t.handleLabelTap&&e.target!==t&&t.handleLabelTap(e)}},{key:"listeners",get:function(){return{tap:"onTap"}}}],[{key:"template",get:function(){return hn(Tr)}},{key:"is",get:function(){return"card-tt-label"}},{key:"properties",get:function(){return{}}}]),t}(vn(pn));window.customElements.define(Or.is,Or);var Dr=o(['\n <style>\n :host {\n z-index: 1000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.6);\n }\n\n .card-tt-mask {\n position: fixed;\n z-index: inherit;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: background-color 0.3s;\n background-color: inherit;\n }\n\n .card-tt-mask-transparent {\n background-color: rgba(0, 0, 0, 0);\n }\n </style>\n <div id="mask" class="card-tt-mask" style="display:none;">\n </div>\n '],['\n <style>\n :host {\n z-index: 1000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.6);\n }\n\n .card-tt-mask {\n position: fixed;\n z-index: inherit;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: background-color 0.3s;\n background-color: inherit;\n }\n\n .card-tt-mask-transparent {\n background-color: rgba(0, 0, 0, 0);\n }\n </style>\n <div id="mask" class="card-tt-mask" style="display:none;">\n </div>\n ']),Ir=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"hiddenChange",value:function(e){var t=this.$.mask;!0===e?(setTimeout(function(){t.style.display="none"},300),t.classList.add("card-tt-mask-transparent")):(t.style.display="block",t.focus(),t.classList.remove("card-tt-mask-transparent"))}}],[{key:"template",get:function(){return hn(Dr)}},{key:"is",get:function(){return"card-tt-mask"}},{key:"properties",get:function(){return{hidden:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"hiddenChange"}}}}]),t}(vn(pn));window.customElements.define(Ir.is,Ir);var Nr=document.createElement("div");Nr.setAttribute("style","display: none;"),Nr.innerHTML='<dom-module id="card-tt-checkbox-style">\n <template>\n <style>\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n }\n :host([ hidden ]) {\n display: none;\n }\n :host .card-tt-checkbox-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n\n :host .card-tt-checkbox-input {\n margin-right: 5px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n background-color: #FFF;\n border: 1px solid #E8E8E8;\n border-radius: 100%;\n width: 22px;\n height: 22px;\n position: relative;\n }\n\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked:before {\n font: normal normal normal 14px/1 "ttui";\n content: "\\e601";\n font-size: 28px;\n color: #FFFFFF;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n -webkit-transform: translate(-50%, -48%) scale(0.73);\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Nr);var Fr=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"handleLabelTap",value:function(e){}},{key:"isLabelTarget",get:function(){return!0}}]),t}()},Mr=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"hasBehavior",value:function(e){return"card-tt-item"==e||p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"hasBehavior",this).call(this,e)}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.dispatchEvent(new CustomEvent("itemAdded",{detail:{item:this},bubbles:!0}))}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this._relatedGroup&&(this._relatedGroup.dispatchEvent(new CustomEvent("itemRemoved",{detail:{item:this}})),this._relatedGroup=null)}},{key:"moved",value:function(){this._relatedGroup&&(this._relatedGroup.dispatchEvent(new CustomEvent("itemRemoved")),this._relatedGroup=null),this.dispatchEvent(new CustomEvent("itemAdded",{detail:{item:this},bubbles:!0}))}},{key:"valueChange",value:function(e,t){this._relatedGroup&&this._relatedGroup.dispatchEvent(new CustomEvent("itemValueChanged",{detail:{item:this,newVal:e,oldVal:t}}))}},{key:"checkedChange",value:function(e,t){void 0!==t&&e!==t&&this._relatedGroup&&this._relatedGroup.dispatchEvent(new CustomEvent("itemCheckedChanged",{detail:{item:this}}))}},{key:"changedByTap",value:function(){this._relatedGroup&&this._relatedGroup.dispatchEvent(new CustomEvent("itemChangedByTap"))}},{key:"resetFormData",value:function(){this.checked=!1}}],[{key:"properties",get:function(){return{value:{type:String,observer:"valueChange"},checked:{type:Boolean,value:!1,observer:"checkedChange"}}}}]),t}()},Rr=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,null,[{key:"properties",get:function(){return{disabled:{type:Boolean,value:!1}}}}]),t}()},Lr=o(['\n <style include="card-tt-checkbox-style">\n </style>\n <div class="card-tt-checkbox-wrapper" tabindex="0">\n <div id="input" class$="card-tt-checkbox-input [[hasCheckedClass(checked)]] [[hasDisabledClass(disabled)]]" style$="border-color: [[borderColor]];background-color: [[judgeDisableColor(checkedColor)]];">\n </div>\n <slot></slot>\n </div>\n '],['\n <style include="card-tt-checkbox-style">\n </style>\n <div class="card-tt-checkbox-wrapper" tabindex="0">\n <div id="input" class\\$="card-tt-checkbox-input [[hasCheckedClass(checked)]] [[hasDisabledClass(disabled)]]" style\\$="border-color: [[borderColor]];background-color: [[judgeDisableColor(checkedColor)]];">\n </div>\n <slot></slot>\n </div>\n ']),Br="mobile"===window.PC_RUN_MODE,jr=Br?"#3388FF":"#3370FF",zr=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"handleBoxTap",value:function(){this.disabled||(this.checked=!this.checked,this.changedByTap())}},{key:"handleLabelTap",value:function(){this.handleBoxTap()}},{key:"hasCheckedClass",value:function(e){return e?"card-tt-checkbox-input-checked":""}},{key:"hasDisabledClass",value:function(e){return e?"card-tt-checkbox-input-disabled":""}},{key:"_getColor",value:function(e,t){return e?t:""}},{key:"judgeDisableColor",value:function(e){return this.disabled?this.checked?"#BBBFC4":"#EFF0F1":e}},{key:"_getBorderColor",value:function(e,t,n){var r=t?n:"#8F959E";return r=e?"#BBBFC4":r}},{key:"listeners",get:function(){return{tap:"handleBoxTap"}}}],[{key:"template",get:function(){return hn(Lr)}},{key:"is",get:function(){return"card-tt-checkbox"}},{key:"properties",get:function(){return{color:{type:String,value:jr},borderColor:{type:String,computed:"_getBorderColor(disabled, checked, color)"},checkedColor:{type:String,computed:"_getColor(checked, color)"},tabindex:{type:String,value:"0",reflectToAttribute:!Br}}}}]),t}(Rr(Mr(Fr(vn(pn)))));window.customElements.define(zr.is,zr);var Hr=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"getFormData",value:function(e){e(this.value||"")}},{key:"resetFormData",value:function(){}},{key:"hasBehavior",value:function(e){return"card-tt-data"==e||p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"hasBehavior",this).call(this,e)}}],[{key:"properties",get:function(){return{name:{type:String}}}}]),t}()},Vr=function(n){return function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,n),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.addEventListener("itemValueChanged",this._handleItemValueChanged),this.addEventListener("itemAdded",this._handleItemAdded),this.addEventListener("itemCheckedChanged",this._handleItemCheckedChanged),this.addEventListener("itemRemoved",this._handleItemRemoved),this.addEventListener("itemChangedByTap",this._handleChangedByTap)}},{key:"_handleItemValueChanged",value:function(e){this.renameItem(e.detail.item,e.detail.newVal,e.detail.oldVal)}},{key:"_handleItemCheckedChanged",value:function(e){this.changed(e.detail.item)}},{key:"_handleItemAdded",value:function(e){return(e.detail.item._relatedGroup=this).addItem(e.detail.item),!1}},{key:"_handleItemRemoved",value:function(e){return this.removeItem(e.detail.item),!1}},{key:"_handleChangedByTap",value:function(){this.triggerEvent("change",{value:this.value})}},{key:"resetFormData",value:function(){this.hasBehavior("card-tt-data")&&function t(e){e.childNodes&&Array.from(e.childNodes).forEach(function(e){if(e.hasBehavior){if(e.hasBehavior("card-tt-group"))return;if(e.hasBehavior("card-tt-item"))return e.resetFormData()}t(e)})}(this)}},{key:"addItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"renameItem",value:function(){}},{key:"changed",value:function(){}},{key:"hasBehavior",value:function(e){return"card-tt-group"==e||p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"hasBehavior",this).call(this,e)}}]),t}()},Wr=o(["\n <style>\n :host {\n display: block;\n }\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <slot></slot>\n "],["\n <style>\n :host {\n display: block;\n }\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <slot></slot>\n "]),Qr=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.value=[],e}return f(t,e),a(t,[{key:"addItem",value:function(e){e.checked&&this.value.push(e.value)}},{key:"removeItem",value:function(e){if(e.checked){var t=this.value.indexOf(e.value);0<=t&&this.value.splice(t,1)}}},{key:"renameItem",value:function(e,t,n){if(e.checked){var r=this.value.indexOf(n);0<=r&&(this.value[r]=t)}}},{key:"changed",value:function(e){if(e.checked)this.value.push(e.value);else{var t=this.value.indexOf(e.value);0<=t&&this.value.splice(t,1)}}},{key:"childItemType",get:function(){return"card-tt-checkbox"}}],[{key:"template",get:function(){return hn(Wr)}},{key:"is",get:function(){return"card-tt-checkbox-group"}}]),t}(Vr(Hr(vn(pn))));window.customElements.define(Qr.is,Qr);var $r=document.createElement("div");$r.setAttribute("style","display: none;"),$r.innerHTML='<dom-module id="card-tt-radio-style">\n <template>\n <style>\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n }\n :host([ hidden ]) {\n display: none;\n }\n :host .card-tt-radio-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n :host .card-tt-radio-input {\n -webkit-appearance: none;\n appearance: none;\n margin-right: 5px;\n outline: 0;\n border: 1px solid #E8E8E8;\n border-radius: 50%;\n background-color: #FFFFFF;\n width: 22px;\n height: 22px;\n position: relative;\n }\n \n :host .card-tt-radio-input.card-tt-radio-input-checked:before {\n font: normal normal normal 14px/1 "ttui";\n content: "\\e601";\n color: #ffffff;\n font-size: 28px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n -webkit-transform: translate(-50%, -48%) scale(0.73);\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild($r);var Ur=o(['\n <style include="card-tt-radio-style">\n </style>\n <div class="card-tt-radio-wrapper">\n <div id="input" class$="card-tt-radio-input [[hasCheckedClass(checked)]] [[hasDisabledClass(disabled)]]" style$="background-color: [[judgeDisableColor(checkedColor)]]; border-color: [[borderColor]]">\n </div>\n <slot></slot>\n </div>\n '],['\n <style include="card-tt-radio-style">\n </style>\n <div class="card-tt-radio-wrapper">\n <div id="input" class\\$="card-tt-radio-input [[hasCheckedClass(checked)]] [[hasDisabledClass(disabled)]]" style\\$="background-color: [[judgeDisableColor(checkedColor)]]; border-color: [[borderColor]]">\n </div>\n <slot></slot>\n </div>\n ']),Yr="mobile"===window.PC_RUN_MODE?"#3388FF":"#3370FF",qr=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"onInputTap",value:function(){this.disabled||this.checked||(this.checked=!0,this.changedByTap())}},{key:"handleLabelTap",value:function(){this.onInputTap()}},{key:"hasCheckedClass",value:function(e){return e?"card-tt-radio-input-checked":""}},{key:"hasDisabledClass",value:function(e){return e?"card-tt-radio-input-disabled":""}},{key:"_getColor",value:function(e,t){return e?t:""}},{key:"judgeDisableColor",value:function(e){return this.disabled?this.checked?"#BBBFC4":"#EFF0F1":e}},{key:"_getBorderColor",value:function(e,t,n){var r=t?n:"#8F959E";return r=e?"#BBBFC4":r}},{key:"listeners",get:function(){return{tap:"onInputTap"}}}],[{key:"template",get:function(){return hn(Ur)}},{key:"is",get:function(){return"card-tt-radio"}},{key:"properties",get:function(){return{color:{type:String,value:Yr},borderColor:{type:String,computed:"_getBorderColor(disabled, checked, color)"},checkedColor:{type:String,computed:"_getColor(checked, color)"}}}}]),t}(Rr(Mr(Fr(vn(pn)))));window.customElements.define(qr.is,qr);var Jr=o(["\n <style>\n :host {\n display: block;\n }\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <slot></slot>\n "],["\n <style>\n :host {\n display: block;\n }\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <slot></slot>\n "]),Gr=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._selectedItem=null,e}return f(t,e),a(t,[{key:"childItemType",get:function(){return"card-tt-radio"}}],[{key:"template",get:function(){return hn(Jr)}},{key:"is",get:function(){return"card-tt-radio-group"}},{key:"properties",get:function(){return{value:{type:String}}}}]),a(t,[{key:"addItem",value:function(e){e.checked&&(this._selectedItem&&(this._selectedItem.checked=!1),this.value=e.value,this._selectedItem=e)}},{key:"removeItem",value:function(e){this._selectedItem===e&&(this.value="",this._selectedItem=null)}},{key:"renameItem",value:function(e,t){this._selectedItem===e&&(this.value=t)}},{key:"changed",value:function(e){this._selectedItem===e?this.removeItem(e):this.addItem(e)}}]),t}(Vr(Hr(vn(pn))));window.customElements.define(Gr.is,Gr);var Xr=document.createElement("div");Xr.setAttribute("style","display: none;"),Xr.innerHTML='<dom-module id="card-tt-switch-style">\n <template>\n <style>\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n :host .card-tt-switch-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n :host .card-tt-switch-input {\n -webkit-appearance: none;\n appearance: none;\n position: relative;\n width: 52px;\n height: 32px;\n margin-right: 5px;\n border: 1px solid #DFDFDF;\n outline: 0;\n border-radius: 16px;\n box-sizing: border-box;\n background-color: #DFDFDF;\n transition: background-color 0.1s, border 0.1s;\n }\n :host .card-tt-switch-input .before {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 50px;\n height: 30px;\n border-radius: 15px;\n background-color: #FDFDFD;\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n }\n :host .card-tt-switch-input:after {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 30px;\n height: 30px;\n border-radius: 15px;\n background-color: #FFFFFF;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked {\n border-color: #F85959;\n background-color: #F85959;\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked .before {\n -webkit-transform: scale(0);\n transform: scale(0);\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked:after {\n -webkit-transform: translateX(20px);\n transform: translateX(20px);\n }\n :host .card-tt-checkbox-input {\n margin-right: 5px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n border: 1px solid #D1D1D1;\n background-color: #FFFFFF;\n border-radius: 3px;\n width: 22px;\n height: 22px;\n position: relative;\n color: #09BB07;\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked:before {\n font: normal normal normal 14px/1 "ttui";\n content: "\\e601";\n color: inherit;\n font-size: 28px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n -webkit-transform: translate(-50%, -48%) scale(0.73);\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled {\n background-color: #E1E1E1;\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled:before {\n color: #ADADAD;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Xr);var Kr=o(['\n <style include="card-tt-switch-style">\n </style>\n <div class="card-tt-switch-wrapper">\n <template is="dom-if" if="[[isSwitch]]">\n <div id="switchInput"\n class$="card-tt-switch-input [[checkedClsSwitch(checked)]] [[disabledClsSwitch(disabled)]]"\n style$="background-color: [[color]]; border-color: [[checkedColor]]"><i class="before"/></div>\n <slot></slot>\n </template>\n <template is="dom-if" if="[[!isSwitch]]">\n <div id="checkboxInput" class$="card-tt-checkbox-input [[checkedClsBox(checked)]] [[disabledClsBox(disabled)]]" style$="color: [[color]]"></div>\n <slot></slot>\n </template>\n </div>\n'],['\n <style include="card-tt-switch-style">\n </style>\n <div class="card-tt-switch-wrapper">\n <template is="dom-if" if="[[isSwitch]]">\n <div id="switchInput"\n class\\$="card-tt-switch-input [[checkedClsSwitch(checked)]] [[disabledClsSwitch(disabled)]]"\n style\\$="background-color: [[color]]; border-color: [[checkedColor]]"><i class="before"/></div>\n <slot></slot>\n </template>\n <template is="dom-if" if="[[!isSwitch]]">\n <div id="checkboxInput" class\\$="card-tt-checkbox-input [[checkedClsBox(checked)]] [[disabledClsBox(disabled)]]" style\\$="color: [[color]]"></div>\n <slot></slot>\n </template>\n </div>\n']),Zr="mobile"===window.PC_RUN_MODE?"#3388FF":"#3370FF",ei=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"_isSwitch",value:function(e){return"checkbox"!==e}},{key:"_getSwitchBorderColor",value:function(e,t){return e?t:""}},{key:"handleLabelTap",value:function(){this.onInputChange()}},{key:"onInputChange",value:function(e){if(!this.disabled){this.checked=!this.checked;try{"switch"===this.type&&window.tt_w&&"ios"===window.tt_w.getPlatform()&&"function"==typeof window.tt_w.vibrateShort&&window.tt_w.vibrateShort()}catch(e){}this.triggerEvent("change",{value:this.checked})}}},{key:"getFormData",value:function(e){e(this.checked)}},{key:"resetFormData",value:function(){this.checked=!1}},{key:"checkedClsSwitch",value:function(e){return this.isSwitch&&e?"card-tt-switch-input-checked":""}},{key:"disabledClsSwitch",value:function(e){return this.isSwitch&&e?"card-tt-switch-input-disabled":""}},{key:"checkedClsBox",value:function(e){return this.isSwitch?"":e?"card-tt-checkbox-input-checked":""}},{key:"disabledClsBox",value:function(e){return this.isSwitch?"":e?"card-tt-checkbox-input-disabled":""}},{key:"listeners",get:function(){return{tap:"onInputChange"}}}],[{key:"template",get:function(){return hn(Kr)}},{key:"is",get:function(){return"card-tt-switch"}},{key:"properties",get:function(){return{checked:{type:Boolean,value:!1},type:{type:String,value:"switch"},color:{type:String,value:Zr},checkedColor:{type:String,computed:"_getSwitchBorderColor(checked, color)"},isSwitch:{type:String,computed:"_isSwitch(type)"}}}}]),t}(Hr(Rr(Fr(vn(pn)))));window.customElements.define(ei.is,ei);var ti=document.createElement("div");ti.setAttribute("style","display: none;"),ti.innerHTML='<dom-module id="card-tt-slider-style">\n <template>\n <style>\n :host {\n margin: 10px 18px;\n padding: 0;\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host * {\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n }\n\n :host .card-tt-slider-wrapper {\n display: -webkit-flex;\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n min-height: 16px;\n }\n :host .card-tt-slider-tap-area {\n -webkit-flex: 1;\n flex: 1;\n padding: 8px 0;\n }\n :host .card-tt-slider-handle-wrapper {\n position: relative;\n height: 2px;\n border-radius: 5px;\n background-color: #e9e9e9;\n cursor: pointer;\n transition: background-color 0.3s ease;\n -webkit-tap-highlight-color: transparent;\n }\n :host .card-tt-slider-track {\n height: 100%;\n border-radius: 6px;\n background-color: #1aad19;\n transition: background-color 0.3s ease;\n }\n :host .card-tt-slider-handle,\n :host .card-tt-slider-thumb {\n position: absolute;\n left: 50%;\n top: 50%;\n cursor: pointer;\n border-radius: 50%;\n transition: border-color 0.3s ease;\n }\n :host .card-tt-slider-handle {\n width: 28px;\n height: 28px;\n margin-top: -14px;\n margin-left: -14px;\n background-color: transparent;\n z-index: 3;\n border: 0 solid rgba(0,0,0,0.04);\n /*box-shadow: 0 3px 8px 0 rgba(0,0,0,0.15);*/\n }\n :host .card-tt-slider-thumb {\n z-index: 2;\n /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);*/\n box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);\n }\n :host .card-tt-slider-step {\n position: absolute;\n width: 100%;\n height: 2px;\n background: transparent;\n z-index: 1;\n }\n :host .card-tt-slider-value {\n color: #888;\n font-size: 14px;\n margin-left: 1em;\n }\n :host .card-tt-slider-disabled .card-tt-slider-track {\n background-color: #ccc;\n }\n :host .card-tt-slider-disabled .card-tt-slider-thumb {\n background-color: #FFF;\n border-color: #ccc;\n }\n :host * {\n margin: 0;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ti);var ni=o(['\n <style include="card-tt-slider-style"></style>\n\n <div class$="card-tt-slider-wrapper [[disabledClass(disabled)]]">\n <div id="wrapper" class="card-tt-slider-tap-area">\n <div class="card-tt-slider-handle-wrapper" style$="background-color: [[_getBackgroundColor(color, backgroundColor)]];">\n <div id="handle" class="card-tt-slider-handle" style$="left: [[_getValueWidth(_filteredValue, min, max)]];">\n </div>\n <div class="card-tt-slider-thumb" data-filteredValue$="[[_filteredValue]]" style$="[[_getThumbStyles(_filteredValue)]]">\n </div>\n <div class="card-tt-slider-track" style$="width: [[_getValueWidth(_filteredValue, min, max)]];background-color: [[_getActiveColor(selectedColor, activeColor)]];">\n </div>\n <div id="step" class="card-tt-slider-step"></div>\n </div>\n </div>\n <template is="dom-if" if="{{showValue}}">\n <span class="card-tt-slider-value">[[_filteredValue]]</span>\n </template>\n </div>\n'],['\n <style include="card-tt-slider-style"></style>\n\n <div class\\$="card-tt-slider-wrapper [[disabledClass(disabled)]]">\n <div id="wrapper" class="card-tt-slider-tap-area">\n <div class="card-tt-slider-handle-wrapper" style\\$="background-color: [[_getBackgroundColor(color, backgroundColor)]];">\n <div id="handle" class="card-tt-slider-handle" style\\$="left: [[_getValueWidth(_filteredValue, min, max)]];">\n </div>\n <div class="card-tt-slider-thumb" data-filteredValue\\$="[[_filteredValue]]" style\\$="[[_getThumbStyles(_filteredValue)]]">\n </div>\n <div class="card-tt-slider-track" style\\$="width: [[_getValueWidth(_filteredValue, min, max)]];background-color: [[_getActiveColor(selectedColor, activeColor)]];">\n </div>\n <div id="step" class="card-tt-slider-step"></div>\n </div>\n </div>\n <template is="dom-if" if="{{showValue}}">\n <span class="card-tt-slider-value">[[_filteredValue]]</span>\n </template>\n </div>\n']),ri="mobile"===window.PC_RUN_MODE,ii=ri?"#E8E8E8":"#EFF0F1",oi=ri?"#006AFF":"#3370FF",ai=ri?"28":"14",si=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.touchtrack(this.$.handle,"_onTrack")}},{key:"_filterValue",value:function(e){return e<this.min?this.min:e>this.max?this.max:Math.round((e-this.min)/this.step)*this.step+this.min}},{key:"_revalicateRange",value:function(){var e=this._filterValue(this.value);if(li(this.min)||li(this.max)||li(this.step)){var t=Math.max(ci(this.min),ci(this.max),ci(this.step));e=+e.toFixed(t)}this._filteredValue=e}},{key:"_getValueWidth",value:function(e,t,n){return e=e||0,n==t?e-t?"100%":"0%":100*(e-t)/(n-t)+"%"}},{key:"_getBlockSize",value:function(e){return r=28,(t=e)<(n=12)?n:r<t?r:t;var t,n,r}},{key:"_getBackgroundColor",value:function(e,t){return"#FFFFFF"!==t?t:"#FFFFFF"!==e?e:"#FFFFFF"}},{key:"_getActiveColor",value:function(e,t){return"#F85959"!==t?t:"#F85959"!==e?e:"#F85959"}},{key:"_getThumbStyles",value:function(e){var t=this._getBlockSize(this.blockSize);return"width: "+t+"px;height: "+t+"px;margin-left: "+-t/2+"px;margin-top: "+-t/2+"px;left: "+this._getValueWidth(e,this.min,this.max)+";background-color: "+this.blockColor+";"}},{key:"_onUserChangedValue",value:function(e){var t=this.$.step.offsetWidth,n=this.$.step.getBoundingClientRect().left,r=(e.detail.x-n)*(this.max-this.min)/t+this.min;r=this._filterValue(r),this.value=r}},{key:"_onTrack",value:function(e){if(!this.disabled){if("move"===e.detail.state)return e.preventDefault(),this._onUserChangedValue(e),this.triggerEvent("changing",{value:this.value}),!1;"end"===e.detail.state&&this.triggerEvent("change",{value:this.value})}}},{key:"_onTap",value:function(e){this.disabled||(this._onUserChangedValue(e),this.triggerEvent("change",{value:this.value}))}},{key:"resetFormData",value:function(){this.value=this.min}},{key:"disabledClass",value:function(e){return e?"card-tt-slider-disabled":""}},{key:"listeners",get:function(){return{"wrapper.tap":"_onTap"}}}],[{key:"template",get:function(){return hn(ni)}},{key:"is",get:function(){return"card-tt-slider"}},{key:"properties",get:function(){return{min:{type:Number,value:0,observer:"_revalicateRange"},max:{type:Number,value:100,observer:"_revalicateRange"},step:{type:Number,value:1},value:{type:Number,value:0,observer:"_revalicateRange"},showValue:{type:Boolean,value:!1},activeColor:{type:String,value:oi},backgroundColor:{type:String,value:ii},blockSize:{type:Number,value:ai},blockColor:{type:String,value:"#FFFFFF"},selectedColor:{type:String,value:oi},color:{type:String,value:ii},_filteredValue:{type:Number}}}}]),t}(Sn(Rr(Hr(vn(pn)))));function li(e){return e%1!=0}function ci(e){return e=+e,isNaN(e)||!li(e)?0:e.toString().split(".")[1].length}window.customElements.define(si.is,si);var ui=o(['\n <style>\n :host {\n display: block;\n }\n :host .wrapper {\n display: -webkit-flex;\n display: flex;\n position: relative;\n overflow: hidden;\n }\n :host([hidden]) {\n display: none;\n }\n </style>\n <div id="wrapper" class="wrapper">\n <slot></slot>\n </div>\n '],['\n <style>\n :host {\n display: block;\n }\n :host .wrapper {\n display: -webkit-flex;\n display: flex;\n position: relative;\n overflow: hidden;\n }\n :host([hidden]) {\n display: none;\n }\n </style>\n <div id="wrapper" class="wrapper">\n <slot></slot>\n </div>\n ']),di=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.addEventListener("pickerColumnValueChanged",this._columnValueChanged),this.addEventListener("pickerColumnChanged",this._initColumns)}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.__updateColumns=this._updateColumns.bind(this),document.addEventListener("pageReRender",this.__updateColumns)}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("pageReRender",this.__updateColumns)}},{key:"_initColumns",value:function(e){var t=e.detail.col,n=e.detail.add;this._columns=this._columns||[],this._height=this.offsetHeight;var r="[object Array]"===Object.prototype.toString.call(this.value)?this.value:[];if(n){var i=this._columns.length;this._columns.push(t),t._setStyle(this.indicatorStyle,this.maskStyle),t._setClass(this.indicatorClass,this.maskClass),t._setHeight(this._height),t._setCurrent(r[i]||0),t._init()}else{var o=this._columns.indexOf(t);-1!=o&&this._columns.splice(o,1)}this._valueChanged(this.value)}},{key:"_updateColumns",value:function(){var t=this;if(this._columns&&0!==this._columns.length){var n=!1;this._columns.forEach(function(e){e._height!==e.offsetHeight&&(n=!0)}),!n&&this._height===this.offsetHeight||0==this.offsetHeight||(this._height=this.offsetHeight,this._columns.forEach(function(e){e._setHeight(t._height),e._update()}))}}},{key:"_columnValueChanged",value:function(){var e=this._columns.map(function(e){return e._getCurrent()});this.triggerEvent("change",{value:e})}},{key:"_valueChanged",value:function(n,e){n&&e&&n.toString()===e.toString()||(n=n||[],(this._columns||[]).forEach(function(e,t){e._setCurrent(n[t]||0),setTimeout(function(){e._update()},0)}))}},{key:"_updateStyle",value:function(e,t){var n=this;if(e!==t){var r=this._columns;r&&r.forEach(function(e){e._setStyle(n.indicatorStyle,n.maskStyle),e._setHeight(n._height)})}}}],[{key:"template",get:function(){return hn(ui)}},{key:"is",get:function(){return"card-tt-picker-view"}},{key:"properties",get:function(){return{value:{type:Array,value:[],observer:"_valueChanged"},indicatorStyle:{type:String,value:"",observer:"_updateStyle"},indicatorClass:{type:String,value:""},maskStyle:{type:String,value:"",observer:"_updateStyle"},maskClass:{type:String,value:""}}}}]),t}(Hr(Cr(vn(pn))));window.customElements.define(di.is,di);var hi=document.createElement("div");function pi(e,t){e&&!e.stoped&&(e.stop(t),e.stoped=!0)}function fi(){Ci&&window.tt_w&&window.tt_w.vibrateShort&&window.tt_w.vibrateShort()}function vi(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}function gi(e,t,n){return t-n<e&&e<t+n}function yi(e,t){return gi(e,0,t)}function mi(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function _i(e){this._extent=e,this._friction=new vi(.01),this._spring=new mi(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}hi.setAttribute("style","display: none;"),hi.innerHTML='<dom-module id="card-tt-picker-style">\n <template>\n <style>\n :host {\n -webkit-flex: 1;\n flex: 1;\n position: relative;\n height: 100%;\n overflow: hidden;\n text-align: center;\n }\n :host .card-tt-picker__mask {\n transform: translateZ(0);\n -webkit-transform: translateZ(0);\n }\n :host .card-tt-picker__indicator,\n :host .card-tt-picker__mask {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 3;\n }\n :host .card-tt-picker__mask {\n top: 0;\n height: 100%;\n margin: 0 auto;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)), linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));\n background-position: top,bottom;\n background-size: 100% 102px;\n background-repeat: no-repeat;\n }\n :host .card-tt-picker__indicator {\n height: 34px;\n top: 102px;\n }\n :host .card-tt-picker__indicator,\n :host .card-tt-picker__mask {\n position: absolute;\n left: 0;\n width: 100%;\n z-index: 3;\n pointer-events: none;\n }\n :host .card-tt-picker__content {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n will-change: transform;\n }\n :host ::slotted(*) {\n white-space: nowrap;\n }\n :host .card-tt-picker__indicator:after,\n :host .card-tt-picker__indicator:before {\n content: " ";\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n color: #e5e5e5;\n }\n :host .card-tt-picker__indicator:before {\n top: 0;\n border-top: 1px solid #e5e5e5;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n -webkit-transform: scaleY(0.5);\n transform: scaleY(0.5);\n }\n :host .card-tt-picker__indicator:after {\n bottom: 0;\n border-bottom: 1px solid #e5e5e5;\n -webkit-transform-origin: 0 100%;\n transform-origin: 0 100%;\n -webkit-transform: scaleY(0.5);\n transform: scaleY(0.5);\n }\n :host .card-tt-picker__indicator:after,\n :host .card-tt-picker__indicator:before {\n content: " ";\n position: absolute;\n left: 0;\n right: 0;\n height: 1px;\n color: #e5e5e5;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(hi);var Ai,bi,wi=(window.AudioContext||window.webkitAudioContext)&&window.atob&&window.Uint8Array,ki=!1,Ci="ios"===(window.tt_w?window.tt_w.getPlatform():"ios");function Ei(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new _i(this._extent),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition(),wi&&!bi&&function(){if(!ki){for(var e,t=(e=Ci?window.atob("UklGRl4RAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YToRAAABAAAAAgD9/wQA9f88ACIA3P/M/63/kP+p/xIAFAAfABYAIQAfACAAIgAdACMAFwAiAAsALAAr/yf+T/5V/nv+jf6y/s3+7f4U/yv/kP8+Ac4BxAHUAcgBzAG1AbkBlQGcAV4BgAH7/2n+mf6c/sr+2f76/hP/Lf9P/2X/jv+b/8b/yv+CADsCiAJlAlICLgIRAuoBwQGZAR0A/f0a/dT9o/7d/gD/DP8p/zX/UP9k/3v/j//x/54BKAL/AfABzAGyAYwBawE/ARoB6ADAAJQAYAAE/679Ev31/E79DP4u/mz+2P4lANsAyQDQALwAtwCkAJsAjAB8AGgAWQBGADQAJQAOAPb/y/7u/er99f0b/kP+Zf6Z/sH+CP91/1wAKgExAUEBNwE8ATEBKwEgAQ4B8ADn/y3/CP8M/x3/Nf9I/2T/dv+N/6f/uf/V/+b/AAAcAEoAkgAEAZYB+wEEAuYBuwEgAX8ADADB/5v/e/9y/2v/c/99/4r/mf+q/8T/6v86ANsAjgGWAXoBYgFDASEBBQHdAL8AmAB2AE4AMwAHAPD/wv+o/1b/Iv8M/zb/Sf9E/zv/M/8n/yj/Gv8h/xX/Hf8Z/x3/JP8i/zL/MP8+/0P/S/85/9T+of6V/qb+wv7r/hb/UP+I/8v/FABdAKcA4QADARABFgH/ANEAnwBzAFIAPgA0ADIANgA8AEYATgBYAGIAbAB0AIIAiQCZAKkAuQDTAOYA+gAKAQ4BBgH1ANUAswCKAGQAQQAfAAsA8v/r/+H/4//t//7/HgBIAIIAnwCLAHYAXwBCAC8AEAD7/+T//v8DAP3/AgD+/wIA/v8CAP7/AQAAAAAAAAAAAP//AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA/v8CAP3/AwD+/wIA/f8DAP3/AgAAAP//AQD//wAAAQAAAP//AQD+/wMA/f8DAP3/AgD//wAAAQD+/wMA/f8DAP7/AAABAAAA//8BAP//AAACAP3/AgD/////AwD8/wQA/P8EAPz/BAD8/wMA/v8CAP//AAAAAP//AgD//wAAAAAAAP//AwD8/wQA/f8BAAAA//8CAP//AAD//wEA//8CAP7/AQD//wIA/f8EAPv/BAD/////AgD+/wEA//8CAP7/AgD+/wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA/v8CAP7/AwD9/wIA//8AAAEA//8BAP//AQD//wEA//8CAP3/AwD+/wEA//8CAP3/BAD8/wMA/v8BAAAAAAD//wIA/f8DAP7/AAACAP3/AwD9/wIA//8BAP//AQAAAP7/BAD7/wYA+v8FAPz/BAD8/wMA/v8BAAAAAAD+/wQA/P8DAP7/AQAAAAAAAQD+/wEAAQD9/wUA+/8DAP////8DAP3/AgD+/wEAAQD//wAAAQD9/wQA/f8BAAEA/v8BAAAAAAAAAAAA//8BAAAAAAD//wEAAAD//wIA/f8DAP7/AgD+/wEAAAAAAAAAAAD//wIA/v8CAP7/AgD+/wIA//8AAAAAAQD//wAAAQD+/wIA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8BAAAA//8BAP//AQD//wEA//8AAAEA/v8CAP//AAABAP7/AgD//wAAAQD//wEA//8BAP//AQAAAP7/BAD7/wUA/P8CAP//AAABAP//AAAAAAAAAAABAP7/AgD+/wIA/v8CAP7/AgD+/wIA/f8EAPz/AwD/////AgD/////AgD+/wEAAAAAAAAA//8CAP3/BAD8/wMA/v8CAP3/BAD8/wMA/////wEAAAAAAP//AgD9/wQA/P8DAP7/AgD+/wIA/v8BAAEA/f8DAP7/AAABAP7/AgD+/wIA//8AAAEA/v8DAP7/AAABAAAA//8DAPv/BQD8/wIAAAAAAAAAAAD//wEAAAD//wEAAAD//wIA/f8DAP7/AQAAAAAA//8CAP7/AQAAAP//AgD+/wEAAAAAAAAAAAD//wIA/v8CAP7/AQABAP7/AQAAAP//AwD9/wIA/v8CAP7/AwD9/wIA/////wMA/P8EAP3/AQABAP7/AgAAAP//AAABAP//AQAAAP//AQAAAP//AQD//wIA/f8EAPv/BQD9/wEAAAAAAAAAAQD+/wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA/v8CAP//AAABAP//AAACAPz/BgD5/wYA/f8AAAIA/f8DAP7/AQAAAP//AgD9/wMA/v8BAAAA/v8DAP3/AwD9/wIA//8AAAAAAAABAP//AAABAP3/BQD7/wQA/f8CAP7/AwD9/wIA//8AAAEA//8BAP//AQD//wIA/f8CAP//AAABAAAA/v8DAPz/AwD//wAAAQD+/wIA/v8CAP7/AgD+/wMA/P8EAP3/AgD//wAAAQD//wEA//8BAP7/AwD8/wUA/P8CAP//AAACAP3/AwD9/wMA/v8BAP//AQD//wEA//8BAAAA//8BAP//AgD+/wIA/v8BAAEA/v8CAP7/AQABAP7/AgD/////AgD+/wIA//8AAP//AwD9/wIA/////wIA//8BAP//AAABAP//AAABAP7/AwD9/wIA/v8CAP//AAABAP//AAAAAAEA//8BAP7/AgD+/wMA/f8CAP7/AgD+/wMA/P8EAPz/BAD8/wMA//8AAAEA/f8DAP7/AwD8/wQA+/8FAP3/AQAAAAAAAAAAAAAA//8CAP7/AgD+/wIA/v8CAP3/AwD//wAAAAD//wEAAAAAAP//AgD+/wIA/v8CAP7/AgD//wAAAQD+/wIA/v8CAP7/AgD+/wEAAQD9/wQA/P8DAP7/AgD+/wEAAAAAAAAAAQD+/wIA/v8CAP//AQD+/wIA/v8CAP//AAAAAAEA/v8DAPz/BAD9/wIA//8AAAAAAQD+/wMA/f8CAP//AAABAAAA/v8DAP3/AgAAAP7/AwD9/wIA//8BAP//AQD+/wMA/f8DAP3/AgAAAP//AQD//wEA//8BAAAA/v8DAPz/BAD9/wIA//8AAAAAAAAAAAAAAQD+/wIA//8AAAAAAQD+/wMA/f8CAP//AAABAP//AQD//wAAAQD//wIA/f8DAP7/AQAAAAAA//8CAP7/AgD+/wEAAAAAAAAAAAAAAAAA//8CAP7/AwD8/wMA/v8CAP//AAAAAP//AgD+/wIA/////wIA/f8DAP7/AgD+/wEA//8CAP3/AwD+/wIA/v8BAP//AgD+/wEAAAD//wEAAAD//wEAAAD//wEAAAD//wEA//8BAAAAAAD//wIA/v8BAAEA/f8EAP3/AQAAAAAA//8CAP7/AgD+/wIA/f8EAPz/AwD//wAAAAAAAP//AQABAP7/AgD+/wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wIA/v8BAAAA//8CAP7/AQAAAAAAAAAAAP//AgD/////AgD9/wMA/v8BAAAA//8BAAAA//8BAAAA//8CAP7/AQAAAAAAAAD//wIA/v8CAP7/AgD+/wIA/v8CAP//AQD+/wIA/v8DAP3/AgD+/wIA/v8CAP7/AgD//wAAAQD9/wUA+/8EAP3/AQAAAAAAAAAAAP//AgD+/wIA/////wMA/f8CAP//AAABAP//AAABAP//AAABAP7/AwD9/wIA/v8DAPz/BQD6/wYA+/8EAP3/AQABAP7/AgD+/wEAAAAAAP//AgD9/wMA/v8BAAAA//8BAAAAAAAAAAAAAAD//wIA/v8CAP////8CAP7/AQAAAP//AQD//wEAAAD//wEA//8BAP//AgD+/wEA//8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wEAAAD//wIA/v8AAAMA+/8FAPz/AwD/////AgD9/wQA/P8EAPz/AwD+/wIA//8AAAAAAAAAAAEA/v8DAPz/BAD9/wIA//8AAAAAAQD//wAAAAAAAAAAAQD//wAAAAAAAAAAAAABAP7/AgD/////AgD+/wIA//8AAAAAAAAAAAEA//8AAAEA/v8DAP7/AQD//wEA//8CAP3/AwD9/wMA/v8AAAEA/v8DAP3/AgD//wAAAQD+/wMA/P8FAPz/AgAAAP7/AwD+/wEAAAD//wEA//8BAP//AQD//wAAAAABAP//AQD+/wIA/v8CAP//AAAAAP//AQAAAAAAAAD//wEAAAAAAAEA/v8CAP7/AgD//wEA/v8DAPz/BQD7/wQA/f8CAP//AAABAP//AQD//wAAAQD//wEAAAD+/wMA/f8DAP7/AAACAP3/AwD///7/BAD8/wQA/P8EAPz/AwD/////AgD+/wEAAAAAAAAAAAAAAP//AwD9/wMA/P8EAPz/BQD8/wIA//8AAAEA//8BAP//AQD//wAAAAABAP//AQD+/wIA/v8DAP3/AgD//wAAAgD9/wMA/f8DAP3/AwD+/wEAAAD//wEA//8BAP//AQD//wEA//8AAAAAAAABAP//AAAAAAAAAQD//wAAAQD+/wIA//8AAAEA/v8CAP//AAAAAAEA/v8DAP3/AgAAAP7/AwD9/wMA/v8BAP//AQD//wEAAAD//wEA//8BAP//AQD//wEA//8BAP//AQD//wEA//8CAP7/AgD9/wMA//8BAP//AAAAAAEAAAD//wAAAQD//wEA//8BAP7/AwD9/wIAAAD+/wMA/f8CAP//AQD//wAAAQD//wEAAAD//wEAAAD//wIA/v8BAP//AQAAAAAA//8BAP7/BAD8/wMA/f8DAP7/AgD+/wEAAAAAAAEA/v8DAP3/AgD+/wIA//8BAP7/AQAAAAAA//8CAP3/AwD+/wEAAAAAAP//AgD9/wQA/P8DAP7/AQD//wEA//8BAP7/AwD9/wIA//8AAAAAAQD+/wIA/v8CAP7/AwD8/wMA//8AAAEA/v8BAAEA/v8CAP7/AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA/v8DAPz/AwD+/wIA//8AAP//AQAAAP//AgD9/wMA/v8BAAAA//8BAAAA//8BAP//AQD//wIA/f8DAP3/AwD+/wEAAAD//wEA//8AAAIA/P8FAPv/AwD/////AwD9/wEAAQD+/wIA/////wMA/f8CAP//AAAAAAEA/v8DAP3/AgD//wAAAAABAP//AAAAAP//AwD8/wQA/P8DAP7/AQAAAAAA//8BAP//AQABAP7/AQAAAP//AwD9/wIA//8AAAEA//8BAP//AQD//wEAAAD//wEA//8BAP//AQD//wEA//8BAP//AQAAAP7/BAD8/wMA/v8BAP//AgD+/wIA/v8CAP////8DAPz/BAD+////AgD/////AgD+/wEAAQD+/wEA//8CAP7/AgD9/wMA/f8DAP7/AQAAAP//AAABAP//AQD//wEA//8BAP//AQD//wEAAAD//wIA/v8BAP//AQAAAAAAAAAAAP//AgD+/wIA/v8CAP7/AgD//wAAAAABAP7/AwD9/wIA//8AAAAAAQD+/wIA/v8CAP7/AQAAAAAAAAD//wIA/f8EAPz/AwD+/wIA/f8DAP////8CAP7/AQABAP3/AwD+/wEAAQD9/wMA/v8BAAAAAAD//wIA/////wIA/f8DAP////8BAP//AAACAP3/AgD//wAAAQD//wEA//8BAP//AQD//wEAAAAAAAAA//8BAAAAAAAAAAAA//8CAP7/AQABAP3/AwD+/wIA/v8BAP//AAACAP3/AwD+/wAAAgD8/wYA+v8FAPz/AwD//wAAAAAAAAAAAQD+/wMA/P8EAP3/AQACAPz/AwD/////AwD9/wEAAQD+/wIA//8AAAEA/v8DAPz/BAD8/wQA/P8FAPr/BQD9/wEAAQD+/wIA//8AAAAAAAABAP//AQA="):window.atob("UklGRl4RAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YToRAAAPAPX/IQDT/z0AgP9mAkgBnf72/b/8qPuZ/KwA1gAXAQUBJgFNATYBWwEeAWEB2ABpAVwAxAGn94ftHO9P78DwmPHi8g/0SfWq9tT3hvtxDBoSjxFgEsAR/REWETQR1g8REL0N8g7f/wHwDvIS8uXzfvTC9bH21vcC+Qb6evsg/KP9/v3/BGAWQhn4FzMXzxWoFCUTiRH5DyIB7ev04lzqQfLB9OX1jvaF9xv4Ivnl+dH6hvt+/xwQoRXmE2kT7hH/EHUPKQ6CDO4KIAmFB7oFyAMn9srouuKT4fXkn+yx7UTwbvRsAZUI2wcbCFoHKgdgBhQGbwXeBBkEaQPGAgUCdwGIAKH/5/NY6x7riesp7XfuJPDM8aLzUfZ++r0DegsMDG4MQwxDDPQLqgs6C6MKRQkf/6H3dPZW9j/38/f2+MD5svqA+3b8Vv05/gj///8fAdgCuwUsCtAP6RMBFCETMRFWC+0EdgCU/ff76vpi+jX6fvrb+m777fu3/I39S/8cAqQIjA/ND9oOxw2ZDGALEArFCGAH/wWHBC0D0gF2AC//yP1f/I75Fveu9v736vig+E/48vem92T3OfcS9wb39vYP9yb3UPeC98H3A/hd+Jf4Avki+GD0NfLj8WvyoPMf9fj2BPlb++79xQCsA38GywgZCqgK2Ar3CSoINAZ9BDcDawIHAvcBGAJdArMCDwN1A9EDNQSWBPcEdAXuBZcGTgclCAUJzAlcCowKRAqFCV8I8QZrBecDgQJOAUwAlf8T/9j+4f48//H/JgHQAh4FKgZ1BZ8EowOxArEBwADG/9/+/P8CAAAA//8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wEAAQD9/wMA/v8BAAAAAAD//wIA/v8CAP3/BAD8/wQA/P8CAAAA//8CAPz/BQD7/wUA+/8EAP3/AwD9/wMA/f8DAP3/AgD//wAAAQD//wAAAAAAAAAAAAABAP7/AgD+/wEAAAABAP////8CAP7/AgD+/wIA/f8FAPr/BgD6/wUA/P8EAP3/AgD+/wEAAAD//wIA/v8BAAAA//8BAAAA//8CAP3/AwD+/wIA/v8BAP//AQAAAAAA//8CAP3/AwD/////AgD+/wEAAAAAAAAAAAAAAP//AgD//wAAAAABAP7/AwD9/wIA//8BAP7/AwD9/wEAAQD+/wIA/v8BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8BAP//AgD+/wEAAAD//wEAAQD+/wMA/f8CAP//AQD//wIA/f8DAP7/AQD//wEAAAD//wEA//8AAAEAAAD//wAAAQD+/wQA+/8EAP3/AgD//wEA//8AAAAAAAAAAAEA/v8CAP3/AwD+/wEAAAD+/wMA/f8CAP//AAABAP//AAAAAAAAAQD+/wIA//8AAAAAAAAAAAAAAQD9/wMA//8AAAAAAAAAAAAAAQD+/wIAAAD+/wMA/P8DAP7/AgD/////AQD//wEAAAAAAP//AgD9/wMA/v8BAAAAAAD//wIA/f8DAP7/AgD/////AQD//wIA/v8CAP7/AQAAAAAAAAAAAAAA//8CAP7/AQD//wEA//8BAP//AQD//wEA//8CAP7/AgD+/wEAAAD//wIA/v8BAP//AAABAP//AQD//wAAAQD//wAAAQD+/wMA/f8BAAEA/v8CAAAA/f8FAPr/BgD7/wQA/f8CAP//AAABAP//AQD//wAAAQD//wEA//8AAAAAAAAAAAEA//8AAAAAAQD+/wMA/f8CAP//AQD+/wMA/f8CAP//AAABAP7/AwD8/wQA/f8CAP7/AgD+/wIAAAD+/wIA/v8CAP//AQD/////AwD8/wUA+/8EAP3/AgD//wEA/v8CAP//AQD//wEA/v8CAAAA/v8EAPv/BAD+/wEAAAD//wEA//8CAP3/BAD8/wMA/f8DAP7/AgD9/wQA+/8FAPz/AwD+/wEA//8AAAIA/f8CAP//AAABAP//AQD+/wIA/v8CAAAA//8AAAEA//8BAAAA//8CAP7/AgD9/wMA/v8BAAAAAAD//wEA//8BAAEA/v8AAAEAAAD//wEA//8AAAEA//8AAAEA/v8BAAEA/v8CAP//AAAAAAAAAAAAAAEA/v8CAP7/AgD+/wIA/v8CAP//AAAAAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8CAP7/AQAAAAAA//8CAP7/AgD+/wIA/v8CAP7/AQABAP7/AQD//wIA/f8EAPv/BAD+/wEAAAD//wEA//8BAAAA//8BAP//AQD//wIA/f8CAP//AAABAP//AAABAP7/AgD/////AgD+/wIA/v8BAP7/BAD8/wIAAAD+/wMA/v8AAAIA/f8CAP//AAACAP3/AgD/////AgD+/wEAAQD9/wQA+/8EAP7/AQAAAAAA//8BAP//AQAAAAAAAAD+/wMA/f8DAP////8BAAAA//8CAP7/AgD+/wIA/v8CAP7/AgD9/wMA//8AAAAAAAD//wMA/P8EAP3/AgD//wAAAAABAP//AQD+/wMA/P8FAPv/BAD+////AwD8/wQA/f8BAAEA/v8CAP//AAABAP//AAABAP//AQD//wEA/v8CAP//AAABAP7/AgD//wAAAAABAP7/AwD8/wQA/f8CAP//AAABAP//AQD//wEA//8CAP3/BAD7/wUA/P8DAP7/AAACAPz/BQD7/wQA/f8CAP//AQD//wAAAQD//wEA//8BAP//AQD//wAAAgD9/wQA+/8EAP7/AQAAAAAA//8BAP//AgD9/wQA/P8EAP3/AQAAAAAAAAACAPz/BAD8/wQA/P8EAPz/AwD+/wIA/v8CAP7/AQAAAAAAAAABAP7/AQAAAP//AwD8/wQA/f8BAAEA//8AAAIA/P8EAP7/AAABAP//AAABAP//AAABAP//AQD//wAAAQD//wEA//8BAAAA//8BAP//AQABAP7/AQAAAAAAAAABAP3/AwD//wAAAAD//wEAAAAAAP//AQD+/wQA/P8DAP7/AAABAAAAAAAAAAAA//8CAP////8CAP7/AgD/////AQAAAAAAAAAAAP//AgD9/wQA+/8FAPz/AwD9/wIAAAD+/wMA/P8EAP7/AAABAP//AAABAP7/AwD9/wMA/f8DAP7/AQAAAAAAAAAAAAEA//8AAAEA/f8EAP3/AgD//wAAAAAAAAAAAQD+/wIA//8BAP////8CAAAA//8CAPz/BAD+/wEAAAD//wAAAQD//wIA/f8CAP//AQD//wEA/v8DAP3/AwD9/wEAAQD//wEA//8AAAAAAQD//wAAAQD+/wIA//8AAAAAAAD//wMA/f8CAP7/AQAAAAAAAQD+/wIA/v8BAAEA/v8CAP//AAABAP7/AwD9/wMA/f8CAP//AQD+/wMA/P8EAP3/AQABAP7/AgD9/wQA/f8BAAAA/v8EAPz/AwD+/wAAAQAAAAAAAAD//wEAAAAAAAEA/f8EAPz/BAD9/wEAAQD9/wQA/P8DAP////8BAP//AQD//wEA//8BAAAA//8BAAAA//8BAP//AQAAAP7/BAD6/wcA+f8HAPr/BQD8/wMA//8AAAAAAQD9/wQA+/8GAPv/AwD+/wEAAAAAAAAAAAABAP//AQD+/wMA/f8DAP7/AAABAAAA/v8DAP3/AgAAAP7/AwD9/wMA/v8AAAEA//8BAAAA//8AAAEA/v8DAPz/BAD9/wIA//8AAAAAAAABAP//AQD//wAAAQAAAP//AQAAAAAAAAAAAAAAAAABAP//AAAAAAEA//8AAAAAAAABAP//AAAAAAEA//8BAP//AQD//wIA/v8BAAAA/v8EAPz/AwD///7/BAD7/wUA/P8DAP7/AAABAAAA//8BAP//AAACAP3/AwD9/wIA//8AAAEA//8AAAEA/v8BAAEA/v8DAPz/AwD//wAAAAAAAAAAAQD+/wIA/v8CAP7/AgD+/wIA/v8BAAAAAAAAAAAAAAAAAAAAAAD//wIA/v8CAP3/AwD9/wMA/v8BAAAA/v8DAP3/AwD+/wAAAQD+/wIA/v8DAPz/AwD+/wEAAQD+/wEA//8CAP3/BQD6/wUA/f8AAAIA/////wIA/v8BAAEA/v8CAP3/BAD8/wQA/f8AAAIA/f8DAP7/AAACAPz/BQD7/wQA/f8DAP7/AQD//wEA//8BAAAA//8CAP3/AgD//wIA/v8CAP7/AQABAP7/AgD+/wEAAQD+/wIA/v8AAAIA/v8CAP7/AQAAAP//AgD+/wEAAQD9/wQA/P8DAP////8CAP7/AgD+/wEAAAD//wMA/P8DAP7/AQAAAAAAAAD//wIA/v8BAAEA/f8EAPz/AwD+/wIA/v8CAP7/AQAAAAAA//8DAPz/BAD8/wMA/v8CAP7/AgD+/wIA/v8BAAEA/v8DAPz/BAD9/wMA/f8CAP7/AgAAAP7/AwD8/wMA//8AAAAAAAAAAP//AgD+/wEAAAD//wEAAAD//wEA//8BAP//AQD+/wIA//8BAP//AQD+/wIA//8BAP//AQD//wAAAgD9/wIA//8BAAAA//8BAP7/AwD9/wMA/f8DAP3/AgAAAP//AAABAP//AQAAAP//AAAAAAIA/P8FAPv/BAD+/wAAAQD//wEAAAD//wEAAAD//wIA/f8DAP7/AQABAPz/BgD6/wUA/f8BAAAA//8CAP7/AwD8/wMA/////wMA/P8EAP3/AQABAP7/AwD8/wQA/f8DAP3/AgD+/wIA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8CAP7/AgD+/wEAAAD//wIA/v8BAP//AgD+/wEAAAD//wEAAAAAAAAAAAAAAP//AwD8/wMA/////wEAAQD+/wIA/v8CAP3/BQD5/wcA/P8AAAIA/f8DAP7/AgD9/wMA/f8CAAAA/v8DAP3/AQAAAAAAAQD+/wIA/f8FAPv/AwD/////BAD7/wQA/v8AAAEA//8AAAIA/P8FAPv/BQD8/wIA//8BAAAA//8BAAAA//8BAP//AQAAAAAA//8BAP//AQAAAP//AAAAAAEA//8BAP7/AgD+/wIA//8BAP//AAABAP7/AwD9/wIA//8AAAAAAQD+/wIA/v8BAAEA/v8CAP////8DAPz/BAD9/wIA//8AAAAAAAAAAAEA/v8CAP7/AgD+/wMA/P8EAP3/AQABAP7/AgD+/wIA/v8CAP////8DAP3/AQACAPz/BAD9/wIA//8BAP//AAAAAAEA//8BAP//AQD//wIA/f8CAAAA//8BAP//AAABAP//AAAAAAAAAQD//wAAAAABAP//AQD//wEA//8BAP//AQAAAP//AAABAP//AQD//wAAAAABAP7/AgD+/wIA/v8BAP//AgD9/wQA+/8EAP7/AQAAAP//AAACAP7/AgD+/wEAAQD+/wIA//8AAAEA/f8EAP3/AQABAP7/AQABAP3/BAD9/wIA//8AAAAAAAAAAAEA/f8FAPr/BQD9/wEAAQD+/wIA/v8CAP//AAAAAAAAAAAAAAEA/v8CAP7/AgD+/wIA//8AAAAA//8CAP7/AgD9/wQA/P8EAPz/AwD+/wIA/v8CAP7/AQAAAAAAAAD//wEAAAAAAAAA//8BAAAAAQD+/wIA/v8DAP3/AgD//wAAAQD//wAAAAAAAAEA/v8CAP//AAABAP7/AwD+/wAAAgD8/wUA/P8CAAAA//8BAP//AQD+/wQA+v8GAPv/AwD//wAAAAAAAAAAAAABAP//AAAAAAAAAQD//wAAAQD+/wMA/f8CAP//AQD//wEAAAD+/wMA/f8CAAAA/v8DAP3/AgD//wAAAQD+/wMA/f8CAP//AAACAP3/AgD//wAAAQD//wAAAQD+/wMA/f8BAAEA//8AAAEA/v8=")).length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);ki=!0,(Ai=new(window.AudioContext||window.webkitAudioContext)).decodeAudioData(n.buffer,function(e){bi=e})}}()}vi.prototype.set=function(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()},vi.prototype.setVelocityByEnd=function(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)},vi.prototype.x=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog},vi.prototype.dx=function(e){var t;return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e),this._dt=e,this._v*t},vi.prototype.done=function(){return Math.abs(this.dx())<3},vi.prototype.reconfigure=function(e){var t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)},vi.prototype.configuration=function(){var t=this;return[{label:"Friction",read:function(){return t._drag},write:function(e){t.reconfigure(e)},min:.001,max:.1,step:.001}]},mi.prototype._solve=function(e,t){var n=this._c,r=this._m,i=this._k,o=n*n-4*r*i;if(0==o){var a=e,s=t/((u=-n/(2*r))*e);return{x:function(e){return(a+s*e)*Math.pow(Math.E,u*e)},dx:function(e){var t=Math.pow(Math.E,u*e);return u*(a+s*e)*t+s*t}}}if(0<o){var l=(-n-Math.sqrt(o))/(2*r),c=(-n+Math.sqrt(o))/(2*r);a=e-(s=(t-l*e)/(c-l));return{x:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,l*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),a*t+s*n},dx:function(e){var t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,l*e)),n||(n=this._powER2T=Math.pow(Math.E,c*e)),a*l*t+s*c*n}}}var u,d=Math.sqrt(4*r*i-n*n)/(2*r);a=e,s=(t-(u=-n/2*r)*e)/d;return{x:function(e){return Math.pow(Math.E,u*e)*(a*Math.cos(d*e)+s*Math.sin(d*e))},dx:function(e){var t=Math.pow(Math.E,u*e),n=Math.cos(d*e),r=Math.sin(d*e);return t*(s*d*n-a*d*r)+u*t*(s*r+a*n)}}},mi.prototype.x=function(e){return null==e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},mi.prototype.dx=function(e){return null==e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},mi.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!=this._endPosition||!yi(t,.4)){t=t||0;var r=this._endPosition;this._solution&&(yi(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),r=this._solution.x((n-this._startTime)/1e3),yi(t,.4)&&(t=0),yi(r,.4)&&(r=0),r+=this._endPosition),this._solution&&yi(r-e,.4)&&yi(t,.4)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,t),this._startTime=n)}},mi.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},mi.prototype.done=function(e){return e||(e=(new Date).getTime()),gi(this.x(),this._endPosition,.4)&&yi(this.dx(),.4)},mi.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},mi.prototype.springConstant=function(){return this._k},mi.prototype.damping=function(){return this._c},mi.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},_i.prototype.snap=function(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)},_i.prototype.set=function(e,t){this._friction.set(e,t),0<e&&0<=t?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()},_i.prototype.x=function(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;var t=this._friction.x(e),n=this.dx(e);return(0<t&&0<=n||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t},_i.prototype.dx=function(e){var t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t},_i.prototype.done=function(){return this._springing?this._spring.done():this._friction.done()},_i.prototype.setVelocityByEnd=function(e){this._friction.setVelocityByEnd(e)},_i.prototype.configuration=function(){var e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e},Ei.prototype.onTouchStart=function(){if(this._startPosition=this._position,this._lastChangePos=this._startPosition,0<this._startPosition?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition(),bi){this._sound&&(clearInterval(this._vibrateTimer),this._sound.loop=!1,pi(this._sound,.04),this._sound=null);var e=Ai.createBufferSource();e.buffer=bi,e.connect(Ai.destination),e.start(0),e.stop(0)}},Ei.prototype.onTouchMove=function(e,t){var n=this,r=this._startPosition;if(this._position,this._enableX?r+=e:this._enableY&&(r+=t),0<r?r*=.5:r<-this._extent&&(r=.5*(r+this._extent)-this._extent),this._position=r,this.updatePosition(),this.dispatchScroll(),bi&&r<0&&r>-this._extent){var i=Math.floor(Math.abs(r/this._itemSize));Math.abs(r-this._lastChangePos)>this._itemSize/2&&"number"==typeof this._lastIdx&&this._lastIdx!==i&&(fi(),setTimeout(function(){pi(n._sound,.04);var e=n._sound=Ai.createBufferSource();e.buffer=bi,e.connect(Ai.destination),e.start(0)}),this._lastChangePos=r),this._lastIdx=i}},Ei.prototype.onTouchEnd=function(e,t,n){var a,r,i,s=this;if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){var o=this._scroll._friction.x(100),l=o%this._itemSize,c=Math.abs(l)>this._itemSize/2?o-(this._itemSize-Math.abs(l)):o-l;c<=0&&c>=-this._extent&&this._scroll.setVelocityByEnd(c)}if(this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),bi&&800<Math.abs(n.y)){fi();var u=this._vibrateTimer=setInterval(function(){fi()},30),d=this._sound=Ai.createBufferSource();d.buffer=bi,d.connect(Ai.destination),d.loopStart=0,d.loopEnd=.04,d.loop=!0,d.start(0)}this._animation=(a=this._scroll,function e(t,n,r,i){if(!t||!t.cancelled){r(n);var o=a.done();o||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,r,i))),o&&i&&i(n)}}(i={id:0,cancelled:!(r=function(){s._enableSnap&&(c<=0&&c>=-s._extent&&(s._position=c,s.updatePosition()),"function"==typeof s._options.onSnap&&s._options.onSnap(Math.floor(Math.abs(s._position)/s._itemSize))),s._shouldDispatchScrollEvent&&s.dispatchScroll(),s._scrolling=!1})},a,function(){var e=Date.now(),t=(e-s._scroll._startTime)/1e3,n=s._scroll.x(t);s._position=n,s.updatePosition();var r=s._scroll.dx(t),i=s._scroll._springing;if((Math.abs(r)<=800||i)&&d&&(clearInterval(u),d.loop=!1,pi(d,.04),d=s._sound=null,s._lastIdx=Math.floor(Math.abs(n/s._itemSize))),!i&&!d&&bi){var o=Math.floor(Math.abs(n/s._itemSize)),a=Math.abs(n%s._itemSize);Math.abs(n-s._lastChangePos)>s._itemSize/2&&(s._lastIdx!==o||r<5&&(a<1||s._itemSize-a<1))&&(fi(),setTimeout(function(){pi(s._sound,.04);var e=s._sound=Ai.createBufferSource();e.buffer=bi,e.connect(Ai.destination),e.start(0)}),s._lastChangePos=n),s._lastIdx=o}s._shouldDispatchScrollEvent&&e-s._lastTime>s._lastDelay&&(s.dispatchScroll(),s._lastDelay=Math.abs(2e3/r),s._lastTime=e)},r),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),model:a})},Ei.prototype.onTransitionEnd=function(){this._element.style.transition="",this._element.style.webkitTransition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._element.removeEventListener("webkitTransitionEnd",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()},Ei.prototype.snap=function(){var e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(bi&&this._startPosition!==n&&setTimeout(function(){fi();var e=Ai.createBufferSource();e.buffer=bi,e.connect(Ai.destination),e.start(0)},200),this._snapping=!0,this.scrollTo(-n),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))},Ei.prototype.scrollTo=function(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:0<this._position&&(this._position=0),this._element.style.transition="transform "+(t||.2)+"s ease-out",this._element.style.webkitTransition="-webkit-transform "+(t||.2)+"s ease-out",this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd),this._element.addEventListener("webkitTransitionEnd",this._onTransitionEnd)},Ei.prototype.dispatchScroll=function(){if("function"==typeof this._options.onScroll&&Math.round(this._lastPos)!==Math.round(this._position)){this._lastPos=this._position;var e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}},Ei.prototype.update=function(e,t,n){var r=0,i=this._position;this._enableX?(r=this._element.children.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(this._element.children.length&&(r=(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight),this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-r?this._position=-r:0<this._position&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),"function"==typeof this._options.onSnap&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=r,this._scroll._extent=r},Ei.prototype.updatePosition=function(){var e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e},Ei.prototype.isScrolling=function(){return this._scrolling||this._snapping};var xi,Si=o(['\n <style include="card-tt-picker-style">\n </style>\n <div id="main" class="card-tt-picker__group">\n <div id="mask" class="card-tt-picker__mask"></div>\n <div id="indicator" class="card-tt-picker__indicator"></div>\n <div id="content" class="card-tt-picker__content">\n <slot id="slot"></slot>\n </div>\n </div>\n '],['\n <style include="card-tt-picker-style">\n </style>\n <div id="main" class="card-tt-picker__group">\n <div id="mask" class="card-tt-picker__mask"></div>\n <div id="indicator" class="card-tt-picker__indicator"></div>\n <div id="content" class="card-tt-picker__content">\n <slot id="slot"></slot>\n </div>\n </div>\n ']),Pi=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.touchtrack(this.$.main,"_handleTrack",!0),this.__pageRerender=this._pageRerender.bind(this)}},{key:"connectedCallback",value:function(){var e=this;p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._attached=!0,this._subtreeModified=!1,this._observer=new MutationObserver(function(){e._subtreeModified=!0}),this._observer.observe(this,{childList:!0,subtree:!0}),document.addEventListener("pageReRender",this.__pageRerender),this.dispatchEvent(new CustomEvent("pickerColumnChanged",{detail:{add:!0,col:this},bubbles:!0,composed:!0}))}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this._attached=!1,this.dispatchEvent(new CustomEvent("pickerColumnChanged",{detail:{add:!1,col:this},bubbles:!0,composed:!0})),this._observer.disconnect(),document.removeEventListener("pageReRender",this.__pageRerender)}},{key:"_pageRerender",value:function(){if(this._subtreeModified){for(var e=this.$.indicator.offsetHeight,t=this.children,n=0,r=t.length;n<r;n++){var i=t.item(n);i.style.height=e+"px",i.style.overflow="hidden"}this._itemHeight=e,this._scroller.update(),this._subtreeModified=!1}}},{key:"_handleTrack",value:function(e){if(this._scroller)switch(e.detail.state){case"start":this._handleTouchStart(e);break;case"move":this._handleTouchMove(e);break;case"end":case"cancel":this._handleTouchEnd(e)}}},{key:"_handleTap",value:function(e){if(e.target!==e.currentTarget&&!this._scroller.isScrolling()){var t=e.touches&&e.touches[0]&&e.touches[0].clientY,n=("number"==typeof t?t:e.detail.y-document.body.scrollTop)-this.getBoundingClientRect().top-this._height/2,r=this._itemHeight/2;if(!(Math.abs(n)<=r)){var i=Math.ceil((Math.abs(n)-r)/this._itemHeight),o=n<0?-i:i;this._current+=o,this._scroller.scrollTo(this._current*this._itemHeight),this.dispatchEvent(new CustomEvent("pickerColumnValueChanged",{detail:{idx:this._current},bubbles:!0,composed:!0}))}}}},{key:"_getCurrent",value:function(){return this._current||0}},{key:"_setCurrent",value:function(e){var t=Math.max(this.children.length-1,0);this._current=Math.min(e,t)}},{key:"_setStyle",value:function(e,t){this.$.indicator.setAttribute("style",tt_w.transformRpx(e)),this.$.mask.setAttribute("style",tt_w.transformRpx(t))}},{key:"_setClass",value:function(e,t){e=this.getClassPrefix()+e,t=this.getClassPrefix()+t,this.$.indicator.setAttribute("class","card-tt-picker__indicator "+e),this.$.mask.setAttribute("class","card-tt-picker__mask "+t)}},{key:"_setHeight",value:function(e){for(var t=this.$.indicator.offsetHeight,n=this.children,r=0,i=n.length;r<i;r++){var o=n[r];o.style.height=t+"px",o.style.overflow="hidden"}this._itemHeight=t,this.$.main.style.height=e+"px";var a=(e-t)/2;this.$.mask.style.backgroundSize="100% "+a+"px",this.$.indicator.style.top=a+"px",this.$.content.style.padding=a+"px 0",this._height=this.offsetHeight}},{key:"_init",value:function(){var t=this;this.initScroller(this.$.content,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:this._itemHeight,onSnap:function(e){t._attached&&e!==t._current&&(t._current=e,t.dispatchEvent(new CustomEvent("pickerColumnValueChanged",{detail:{idx:e},bubbles:!0,composed:!0})))}})}},{key:"_update",value:function(){this._scroller.update(this._current*this._itemHeight,void 0,this._itemHeight)}},{key:"listeners",get:function(){return{tap:"_handleTap"}}}],[{key:"template",get:function(){return hn(Si)}},{key:"is",get:function(){return"card-tt-picker-view-column"}}]),t}((xi=Cr(Sn(vn(pn))),function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,xi),a(t,[{key:"initScroller",value:function(e,t){this._touchInfo={trackingID:-1,maxDy:0,maxDx:0},this._scroller=new Ei(e,t),this.__handleTouchStart=this._handleTouchStart.bind(this),this.__handleTouchMove=this._handleTouchMove.bind(this),this.__handleTouchEnd=this._handleTouchEnd.bind(this),this._initedScroller=!0}},{key:"_findDelta",value:function(e){var t=this._touchInfo;return"move"==e.detail.state||"end"==e.detail.state?{x:e.detail.dx,y:e.detail.dy}:{x:e.screenX-t.x,y:e.screenY-t.y}}},{key:"_handleTouchStart",value:function(e){var t=this._touchInfo,n=this._scroller;n&&("start"==e.detail.state?(t.trackingID="touch",t.x=e.detail.x,t.y=e.detail.y):(t.trackingID="mouse",t.x=e.screenX,t.y=e.screenY),t.maxDx=0,t.maxDy=0,t.historyX=[0],t.historyY=[0],t.historyTime=[e.detail.timeStamp],(t.listener=n).onTouchStart&&n.onTouchStart())}},{key:"_handleTouchMove",value:function(e){var t=this._touchInfo;if(-1!=t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){for(t.maxDy=Math.max(t.maxDy,Math.abs(n.y)),t.maxDx=Math.max(t.maxDx,Math.abs(n.x)),t.historyX.push(n.x),t.historyY.push(n.y),t.historyTime.push(e.detail.timeStamp);10<t.historyTime.length;)t.historyTime.shift(),t.historyX.shift(),t.historyY.shift();t.listener&&t.listener.onTouchMove&&t.listener.onTouchMove(n.x,n.y,e.detail.timeStamp)}}}},{key:"_handleTouchEnd",value:function(e){var t=this._touchInfo;if(-1!=t.trackingID){e.preventDefault();var n=this._findDelta(e);if(n){var r=t.listener;t.trackingID=-1,t.listener=null;var i={x:0,y:0};if(2<t.historyTime.length)for(var o=t.historyTime.length-1,a=t.historyTime[o],s=t.historyX[o],l=t.historyY[o];0<o;){o--;var c=a-t.historyTime[o];if(30<c&&c<50){i.x=(s-t.historyX[o])/(c/1e3),i.y=(l-t.historyY[o])/(c/1e3);break}}t.historyTime=[],t.historyX=[],t.historyY=[],r&&r.onTouchEnd&&r.onTouchEnd(n.x,n.y,i)}}}}]),t}()));window.customElements.define(Pi.is,Pi);var Ti=document.createElement("div");Ti.setAttribute("style","display: none;"),Ti.innerHTML='<dom-module id="card-tt-swiper-style">\n <template>\n <style>\n ::slotted(*) {\n -webkit-user-select: none;\n user-select: none;\n }\n :host {\n display: block;\n height: 150px;\n -webkit-user-select: none;\n user-select: none;\n }\n :host([hidden]) {\n display: none;\n }\n :host .card-tt-swiper-wrapper {\n overflow: hidden;\n position: relative;\n width: 100%;\n height: 100%;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n }\n :host .card-tt-swiper-slides {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n }\n :host .card-tt-swiper-slide-frame {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n will-change: transform;\n }\n :host .card-tt-swiper-dots {\n position: absolute;\n font-size: 0;\n }\n :host .card-tt-swiper-dots-horizontal {\n left: 50%;\n bottom: 10px;\n text-align: center;\n white-space: nowrap;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n }\n :host .card-tt-swiper-dots-horizontal .card-tt-swiper-dot {\n margin-right: 8px;\n }\n :host .card-tt-swiper-dots-horizontal .card-tt-swiper-dot:last-child {\n margin-right: 0;\n }\n :host .card-tt-swiper-dots-vertical {\n right: 10px;\n top: 50%;\n text-align: right;\n -webkit-transform: translate(0, -50%);\n transform: translate(0, -50%);\n }\n :host .card-tt-swiper-dots-vertical .card-tt-swiper-dot {\n display: block;\n margin-bottom: 9px;\n }\n :host .card-tt-swiper-dots-vertical .card-tt-swiper-dot:last-child {\n margin-bottom: 0;\n }\n :host .card-tt-swiper-dot {\n display: inline-block;\n width: 8px;\n height: 8px;\n cursor: pointer;\n transition-property: background-color;\n transition-timing-function: ease;\n background: rgba(0, 0, 0, 0.3);\n border-radius: 50%;\n }\n :host .card-tt-swiper-dot-active {\n background-color: #000000;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Ti);var Oi=o(['\n <style include="card-tt-swiper-style">\n </style>\n <div id="slidesWrapper" class="card-tt-swiper-wrapper">\n\n <div id="slides" class="card-tt-swiper-slides">\n <div id="slideFrame" class="card-tt-swiper-slide-frame">\n <slot></slot>\n </div>\n </div>\n\n <div id="slidesDots" style$="display: [[showDots(indicatorDots)]]" class$="card-tt-swiper-dots [[dotsClassIfVertical(vertical)]]"></div>\n </div>\n '],['\n <style include="card-tt-swiper-style">\n </style>\n <div id="slidesWrapper" class="card-tt-swiper-wrapper">\n\n <div id="slides" class="card-tt-swiper-slides">\n <div id="slideFrame" class="card-tt-swiper-slide-frame">\n <slot></slot>\n </div>\n </div>\n\n <div id="slidesDots" style\\$="display: [[showDots(indicatorDots)]]" class\\$="card-tt-swiper-dots [[dotsClassIfVertical(vertical)]]"></div>\n </div>\n ']),Di=_n(),Ii=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._attached=!1,e._invalid=!0,e._circularEnabled=!1,e._currentChangeSource="",e._viewportPosition=0,e._marginSpecified=!1,e._viewportMoveRatio=1,e._scheduleTimeoutObj=null,e._animating=null,e._requestedAnimation=!1,e._animateFrameFunc=e._animateFrameFuncProto.bind(e),e._itemIdItemMap={},e._items=[],e._itemListDirty=!1,e._userTracking=!1,e._userDirectionChecked=!1,e._contentTrackViewport=0,e._contentTrackSpeed=0,e._contentTrackT=0,e._skipHiddenItemLayoutModified=!1,e.__resetLayout_defer_id=null,e.__resetLayout=function(){clearTimeout(e.__resetLayout_defer_id),e.__resetLayout_defer_id=setTimeout(e._resetLayout.bind(e),0)},e}return f(t,e),a(t,null,[{key:"template",get:function(){return hn(Oi)}},{key:"is",get:function(){return"card-tt-swiper"}},{key:"properties",get:function(){return{indicatorDots:{type:Boolean,value:!1},vertical:{type:Boolean,value:!1,observer:"_updateLayout"},autoplay:{type:Boolean,value:!1,observer:"_autoplayChanged"},circular:{type:Boolean,value:!1,observer:"_updateLayout"},interval:{type:Number,value:5e3,observer:"_autoplayChanged"},duration:{type:Number,value:500},current:{type:Number,value:0,observer:"_currentChanged"},indicatorSize:{type:Number,value:8},indicatorColor:{type:String,value:"",observer:"_updateDotsColor"},indicatorActiveColor:{type:String,value:"",observer:"_updateDotsColor"},previousMargin:{type:String,value:"",observer:"_updateMargin"},nextMargin:{type:String,value:"",observer:"_updateMargin",public:!0},currentItemId:{type:String,value:"",observer:"_currentItemIdChanged"},skipHiddenItemLayout:{type:Boolean,value:!1,observer:"_skipHiddenItemLayoutChanged"},displayMultipleItems:{type:Number,value:1,observer:"_displayMultiItemsChanged"},touchable:{type:Boolean,value:!0}}}}]),a(t,[{key:"ready",value:function(){var o=this;p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.touchable&&this.touchtrack(this.$.slidesWrapper,"_handleContentTrack",!0),this.addEventListener("swiper-item-link",function(e){e.stopPropagation(),o._itemListChanged(),o.__resetLayout()}),this.addEventListener("swiper-item-unlink",function(e){e.stopPropagation(),o._itemListChanged(),o._getPositionFromCurrent()<0&&(o._currentChangeSource="__none__",o.current=0),o.__resetLayout()}),this.addEventListener("swiper-item-idupdate",function(e){e.stopPropagation();var t=e.detail,n=t.el,r=t.value,i=t.oldValue;o._itemIdUpdated(n,r,i)})}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._attached=!0}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this._attached=!1,this._cancelSchedule()}},{key:"_itemIdUpdated",value:function(e,t,n){t!==n&&(this._itemListChanged(),this.currentItemId&&this._currentItemIdChanged())}},{key:"_currentItemIdChanged",value:function(e){"__none__"!==this._currentChangeSource?""!==e&&(this.current=this._getPositionFromCurrent()):this._currentChangeSource=""}},{key:"_currentChanged",value:function(e,t){if("__none__"!==this._currentChangeSource){var n=this._currentChangeSource;if(this._currentChangeSource="",this._isCurrentValueLegal(e))if(this._isCurrentValueLegal(t)){if(n||this._animateViewport(e,"",0),e!=t){var r=this._getItems()[e];r&&(this.currentItemId=r.itemId,this.triggerEvent("change",{current:this.current,currentItemId:r.itemId,source:n})),this._updateDots(e)}}else this.__resetLayout();else this.__resetLayout()}else this._currentChangeSource=""}},{key:"_updateMargin",value:function(){this._marginSpecified=!0,this.__resetLayout()}},{key:"_skipHiddenItemLayoutChanged",value:function(){this._skipHiddenItemLayoutModified=!0,this._updateLayout()}},{key:"_updateLayout",value:function(){this.__resetLayout()}},{key:"_displayMultiItemsChanged",value:function(){var e=this._getItems();e.length>=this.displayMultipleItems&&e.length-this.displayMultipleItems<this.current&&(this.current=e.length-this.displayMultipleItems,this.currentItemId&&(this.currentItemId=e[this.current].itemId),this._currentChangeSource="__none__"),this.__resetLayout()}},{key:"_autoplayChanged",value:function(e){e?this._scheduleAutoplay():this._cancelSchedule()}},{key:"_itemListChanged",value:function(){this._itemListDirty=!0}},{key:"_updateItemList",value:function(){var t=this;this._itemListDirty=!1;var e=Array.prototype.slice.call(this.querySelectorAll("card-tt-swiper-item"));this._items=e.filter(function(e){return t._isThatMyItem(e)}),this._items.forEach(function(e){e.itemId&&!t._itemIdItemMap[e.itemId]&&(t._itemIdItemMap[e.itemId]=e)})}},{key:"_getItems",value:function(){return this._itemListDirty&&this._updateItemList(),this._items}},{key:"_getItemByItemId",value:function(e){return this._itemListDirty&&this._updateItemList(),this._itemIdItemMap[e]}},{key:"_isThatMyItem",value:function(e){var t=this,n=function(e){return"CARD-TT-SWIPER"===e.tagName.toUpperCase()?e===t:!!e.parentElement&&n(e.parentElement)};return n(e.parentElement)}},{key:"_scheduleAutoplay",value:function(){var e=this;if(this._cancelSchedule(),!(!this._attached||this._invalid||this._getItems().length<=this.displayMultipleItems)){var t=function(){e._currentChangeSource="autoplay",e._circularEnabled?e.current=e._normalizeCurrentValue(e.current+1):e.current=e.current+e.displayMultipleItems<e._getItems().length?e.current+1:0,e._animateViewport(e.current,"autoplay",e._circularEnabled?1:0),e._scheduleTimeoutObj=setTimeout(t,e.interval)};this._scheduleTimeoutObj=setTimeout(t,this.interval)}}},{key:"_cancelSchedule",value:function(){this._scheduleTimeoutObj&&(clearTimeout(this._scheduleTimeoutObj),this._scheduleTimeoutObj=null)}},{key:"_updateDots",value:function(e){var t=!this._invalid,n=this.$.slidesDots;n.innerHTML="";for(var r=0,i=this._getItems().length;r<i;r++){var o=document.createElement("div"),a=0<this.indicatorSize?this.indicatorSize:4;o.setAttribute("data-dot-index",r),o.style.width=o.style.height=o.style.marginRight=a+"px",n.appendChild(o),t&&e<=r&&r<e+this.displayMultipleItems||r<e+this.displayMultipleItems-i?(o.setAttribute("class","card-tt-swiper-dot card-tt-swiper-dot-active"),this.indicatorActiveColor&&(o.style.backgroundColor=this.indicatorActiveColor)):(o.setAttribute("class","card-tt-swiper-dot"),this.indicatorColor&&(o.style.backgroundColor=this.indicatorColor))}}},{key:"_updateDotsColor",value:function(){for(var e=this.$.slidesDots,t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];0<=n.getAttribute("class").indexOf("card-tt-swiper-dot-active")?this.indicatorActiveColor&&(n.style.backgroundColor=this.indicatorActiveColor):this.indicatorColor&&(n.style.backgroundColor=this.indicatorColor)}}},{key:"_normalizeCurrentValue",value:function(e){var t=this._getItems().length;if(!t)return-1;var n=(Math.round(e)%t+t)%t;if(this._circularEnabled){if(t<=this.displayMultipleItems)return 0}else if(n>t-this.displayMultipleItems)return t-this.displayMultipleItems;return n}},{key:"_isCurrentValueLegal",value:function(e){return!!this._getItems().length&&e===this._normalizeCurrentValue(e)}},{key:"_transformPropRpx",value:function(e){return/^\s*[+-]?\d+(\.\d+)?(px)?\s*$/i.test(e)?"px"!==e.slice(-2)?e+"px":e:/^\s*[+-]?\d+(\.\d+)?rpx\s*$/i.test(e)?void tt_w.transformRpx(e):""}},{key:"_getPositionFromCurrent",value:function(){return this.currentItemId?this._getItems().indexOf(this._getItemByItemId(this.currentItemId)):this._isCurrentValueLegal(this.current)?this.current:-2}},{key:"_updateHiddenItemDisplay",value:function(e){if(this._skipHiddenItemLayoutModified)for(var t=this._getItems(),n=0;n<t.length;n++){var r=t[n],i=r._position<=e-2||r._position>=e+this.displayMultipleItems+1;r.style.display=i?"none":r._originalDisplay}}},{key:"_resetLayout",value:function(){if(this._attached){this._cancelSchedule(),this._endViewportAnimation();var e=this._getItems();this.currentItemId&&(this.current=this._getPositionFromCurrent(),"__none__"===this._currentChangeSource&&(this._currentChangeSource=""));var t=this.$.slides,n=this.$.slideFrame;this.vertical?(this._marginSpecified&&(t.style.left=0,t.style.right=0,t.style.top=this._transformPropRpx(this.previousMargin),t.style.bottom=this._transformPropRpx(this.nextMargin)),n.style.width="100%",n.style.height=Math.abs(100/this.displayMultipleItems)+"%"):(this._marginSpecified&&(t.style.top=0,t.style.bottom=0,t.style.left=this._transformPropRpx(this.previousMargin),t.style.right=this._transformPropRpx(this.nextMargin)),n.style.height="100%",n.style.width=Math.abs(100/this.displayMultipleItems)+"%"),this._itemPos=[];for(var r=0;r<e.length;r++)this._skipHiddenItemLayoutModified&&(e[r].style.display=e[r]._originalDisplay),this._updateItemPos(r,r);if((this._viewportMoveRatio=1)===this.displayMultipleItems&&e.length){var i=e[0].getBoundingClientRect(),o=this.$.slideFrame.getBoundingClientRect();this._viewportMoveRatio=i.width/o.width,1<this._viewportMoveRatio&&(this._viewportMoveRatio=1)}this._circularEnabled=this.circular&&e.length>this.displayMultipleItems;var a=this._viewportPosition;this._viewportPosition=-2;var s=this._getPositionFromCurrent();0<=s?(this._invalid=!1,this._userTracking?(this._updateViewport(a+s-this._contentTrackViewport),this._contentTrackViewport=s):this._updateViewport(s),this.autoplay&&this._scheduleAutoplay()):(this._invalid=!0,this._updateViewport(-this.displayMultipleItems-1)),this._updateDots(s)}}},{key:"_checkCircularLayout",value:function(e){if(!this._invalid)for(var t=this._getItems(),n=t.length,r=e+this.displayMultipleItems,i=0;i<n;i++){var o=t[i]._position,a=Math.floor(e/n)*n+i,s=a+n,l=a-n,c=Math.max(e-(a+1),a-r,0),u=Math.max(e-(s+1),s-r,0),d=Math.max(e-(l+1),l-r,0),h=Math.min(c,u,d),p=[a,s,l][[c,u,d].indexOf(h)];o!==p&&this._updateItemPos(i,p)}}},{key:"_updateItemPos",value:function(e,t){var n="translate("+(this.vertical?"0":100*t+"%")+", "+(this.vertical?100*t+"%":"0")+") translateZ(0)",r=this._getItems()[e];r.style["-webkit-transform"]=n,r.style.transform=n,r.style.position="absolute",r.style.width="100%",r.style.height="100%",r._position=t}},{key:"_updateViewport",value:function(e){Math.floor(2*this._viewportPosition)===Math.floor(2*e)&&Math.ceil(2*this._viewportPosition)!==Math.ceil(2*e)||(this._circularEnabled&&this._checkCircularLayout(e),this.skipHiddenItemLayout&&this._updateHiddenItemDisplay(e));var t="translate("+(this.vertical?"0":100*-e*this._viewportMoveRatio+"%")+", "+(this.vertical?100*-e*this._viewportMoveRatio+"%":"0")+") translateZ(0)";this.$.slideFrame.style["-webkit-transform"]=t,this.$.slideFrame.style.transform=t,this._viewportPosition=e,window.__scheduleIntersectionUpdate()}},{key:"_animateFrameFuncProto",value:function(){if(this._animating){var e=this._animating,t=e.toPos,n=e.acc,r=e.endTime,i=e.source,o=r-Date.now();if(o<=0){this._updateViewport(t),this._animating=null,this._requestedAnimation=!1;var a=this._getItems()[this.current];a&&this.triggerEvent("animationfinish",{current:this.current,currentItemId:a.itemId,source:i})}else{var s=t+n*o*o/2;this._updateViewport(s),window.requestAnimationFrame(this._animateFrameFunc)}}else this._requestedAnimation=!1}},{key:"_animateViewport",value:function(e,t,n){this._cancelViewportAnimation();var r=this.duration,i=this._getItems().length,o=this._viewportPosition;if(n<0){for(;o<e;)o+=i;for(;e<o-i;)o-=i}else if(0<n){for(;e<o;)o-=i;for(;o+i<e;)o+=i}else{for(;o+i<e;)o+=i;for(;e<o-i;)o-=i;o+i-e<e-o&&(o+=i)}this._animating={toPos:e,acc:2*(o-e)/(r*r),endTime:Date.now()+r,source:t},this._requestedAnimation||(this._requestedAnimation=!0,window.requestAnimationFrame(this._animateFrameFunc))}},{key:"_cancelViewportAnimation",value:function(){this._animating=null}},{key:"_endViewportAnimation",value:function(){this._animating&&(this._updateViewport(this._animating.toPos),this._animating=null)}},{key:"_handleTrackStart",value:function(e){this._inDangerArea=e.x<=53&&"ios"===Di,this._cancelSchedule(),this._contentTrackViewport=this._viewportPosition,this._contentTrackSpeed=0,this._contentTrackT=Date.now(),this._cancelViewportAnimation()}},{key:"_handleTrackMove",value:function(e){var r=this,t=this._contentTrackT;this._contentTrackT=Date.now();var n=this._contentTrackT-t;if(!this._frozen)if(e.x<0||e.y<0)this._frozen=!0;else if(e.x<=55&&0<e.ddx&&this._inDangerArea)this._frozen=!0;else if(0!==n){var i=this._getItems().length-this.displayMultipleItems,o=function(e){return.5-.25/(e+.5)},a=function(e,t){var n=r._contentTrackViewport+e;r._contentTrackSpeed=.6*r._contentTrackSpeed+.4*t,!r._circularEnabled&&(n<0||i<n)&&(n<0?n=-o(-n):i<n&&(n=i+o(n-i)),r._contentTrackSpeed=0),r._updateViewport(n)};this.vertical?a(-e.dy/this.$.slideFrame.offsetHeight,-e.ddy/n):a(-e.dx/this.$.slideFrame.offsetWidth,-e.ddx/n)}}},{key:"_handleTrackEnd",value:function(e){this.autoplay&&this._scheduleAutoplay(),this._userTracking=!1,this._frozen=!1;var t=this._contentTrackSpeed/Math.abs(this._contentTrackSpeed),n=0;!e&&.2<Math.abs(this._contentTrackSpeed)&&(n=.5*t);var r=this._normalizeCurrentValue(this._viewportPosition+n);if(e)this._updateViewport(this._contentTrackViewport);else if(this.current!==r){var i=this.current<this._viewportPosition?1:-1;this._currentChangeSource="touch",this.current=r,this._circularEnabled&&(n=i),this._animateViewport(r,"touch",n)}else this._animateViewport(r,"touch",n)}},{key:"_handleContentTrack",value:function(e){if(!this._invalid){if("start"===e.detail.state)return this._userTracking=!0,this._userDirectionChecked=!1,this._handleTrackStart(e.detail);if("end"===e.detail.state)return this._handleTrackEnd(!1);if("cancel"===e.detail.state)return this._handleTrackEnd(!0);if(this._userTracking){if(!this._userDirectionChecked){this._userDirectionChecked=!0;var t=Math.abs(e.detail.dx),n=Math.abs(e.detail.dy);if(n<=t&&this.vertical?this._userTracking=!1:t<=n&&!this.vertical&&(this._userTracking=!1),!this._userTracking)return void(this.autoplay&&this._scheduleAutoplay())}return e.stopPropagation(),this.dispatchEvent(new CustomEvent("tt-touchmove",{detail:{srcMoveEvent:e},bubbles:!0,composed:!0})),e.preventDefault(),this._handleTrackMove(e.detail),!1}}}},{key:"getScrollPosition",value:function(){return{scrollLeft:0,scrollTop:0}}},{key:"dotsClassIfVertical",value:function(e){return e?"card-tt-swiper-dots-vertical":"card-tt-swiper-dots-horizontal"}},{key:"showDots",value:function(e){return e?"block":"none"}}]),t}(Sn(vn(pn)));window.customElements.define(Ii.is,Ii);var Ni=o(["\n <style>\n :host {\n display: block;\n overflow: hidden;\n will-change: 'transform';\n }\n\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <slot></slot>\n "],["\n <style>\n :host {\n display: block;\n overflow: hidden;\n will-change: 'transform';\n }\n\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <slot></slot>\n "]),Fi=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){if(p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this._relatedSwiper=this._findSwiper(this.parentElement),!this._relatedSwiper)throw new Error("<swiper-item> can only be used as child of <swiper>")}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._originalDisplay=this.style.display,this._relatedSwiper.dispatchEvent(new CustomEvent("swiper-item-link",{detail:{el:this},bubbles:!0}))}},{key:"disconnectedCallback",value:function(){this._relatedSwiper.dispatchEvent(new CustomEvent("swiper-item-unlink",{detail:{el:this},bubbles:!0})),p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this)}},{key:"_findSwiper",value:function(e){if("CARD-TT-SWIPER"===e.tagName)return e;var t=e.parentElement;return t?this._findSwiper(t):null}},{key:"_updateId",value:function(e,t){this.dispatchEvent(new CustomEvent("swiper-item-idupdate",{detail:{value:e,oldValue:t},bubbles:!0}))}}],[{key:"template",get:function(){return hn(Ni)}},{key:"is",get:function(){return"card-tt-swiper-item"}},{key:"properties",get:function(){return{itemId:{type:String,value:"",observer:"_updateId"}}}}]),t}(vn(pn));window.customElements.define(Fi.is,Fi);var Mi=o(['<style>\n :host {\n display: inline-block;\n font-size: 0;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <canvas width="0" height="0" id="mainCanvas"></canvas>'],['<style>\n :host {\n display: inline-block;\n font-size: 0;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n </style>\n <canvas width="0" height="0" id="mainCanvas"></canvas>']),Ri=null,Li=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){var e=this;p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this._actionsDefer=[],this._actionsWaiting=!1,this._images={},this.ctx=this.$.mainCanvas.getContext("2d"),Ri=Promise.resolve().then(function(){Ri=null,e._updateWidth(e.width),e._updateHeight(e.height)})}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.__pageRerender=this._pageRerender.bind(this),document.addEventListener("pageReRender",this.__pageRerender)}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("pageReRender",this.__pageRerender)}},{key:"_widgetInstanceId",value:function(){return this.$$data&&this.$$data.widgetInstanceId}},{key:"_updateCanvasId",value:function(e,t){e?e!==t&&this.init():(this.hidden=!0,this.triggerEvent("error",{errMsg:"canvas-id attribute is undefined"}),console.error("canvas-id attribute is undefined"))}},{key:"_pageRerender",value:function(){var e=parseFloat(window.getComputedStyle(this).width),t=parseFloat(window.getComputedStyle(this).height);e==this._width&&t==this._height||(e!=this._width&&this._updateWidth(),t!=this._height&&this._updateHeight(),this.draw(this._lastReserve,this._lastActions,this._lastRandid))}},{key:"_updateWidth",value:function(e){var t=e||parseFloat(window.getComputedStyle(this).width)||300;t||(t=e||300),this._width=t,this.$.mainCanvas.style.width=t+"px",this.$.mainCanvas.width=t*devicePixelRatio}},{key:"_updateHeight",value:function(e){var t=e||parseFloat(window.getComputedStyle(this).height)||225;this._height=t,this.$.mainCanvas.style.height=t+"px",this.$.mainCanvas.height=t*devicePixelRatio}},{key:"init",value:function(){var c=this;ttJSBridge_w.subscribe("canvas"+this.canvasId+"Draw",function(e){var t=e.actions,n={reserve:e.reserve,actions:t,randid:e.randid,ts:Date.now()};c._queue?c._queue.push(n):(c._queue=[n],c._drain())}),ttJSBridge_w.subscribe("canvas"+this.canvasId+"ToBase64",function(e){var t=e.data,n=t.x,r=t.y,i=t.width,o=t.height,a=t.destWidth,s=t.destHeight;c._box=c._getBox(),r=r||0,((n=n||0)<0||n>c._box.width)&&(n=0),(r<0||r>c._box.height)&&(r=0),i=i?Math.min(i,c._box.width-n):c._box.width-n,o=o?Math.min(o,c._box.height-r):c._box.height-r,a=a||i,s=s||o;var l=document.createElement("canvas");l.width=a,l.height=s,l.getContext("2d").drawImage(c.$.mainCanvas,n*devicePixelRatio,r*devicePixelRatio,i*devicePixelRatio,o*devicePixelRatio,0,0,a,s),ttJSBridge_w.publish("canvas"+c.canvasId+"ToBase64Done",{dataUrl:l.toDataURL().replace(/^data:image\/(jpg|png);base64,/,""),widgetInstanceID:c._widgetInstanceId()})}),tt_w.publish("canvasInsert",{canvasId:this.canvasId,widgetInstanceID:this._widgetInstanceId()})}},{key:"_drain",value:function(){if(this._queue.length){for(var e=void 0;this._queue.length&&(e=this._queue.shift(),!(Date.now()-e.ts<20)););var t=e,n=t.reserve,r=t.actions,i=t.randid;this._lastActions=[].concat(m(r)),this._lastReserve=n,this._lastRandid=i,this.draw(n,r,i),window.requestAnimationFrame(this._drain.bind(this))}else this._queue=null}},{key:"draw",value:function(){var t,n,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,a=this,i=arguments[1],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==Ri)return e.next=3,regeneratorRuntime.awrap(Ri);e.next=3;break;case 3:if(t=this.ctx,n=this.$.mainCanvas,Array.isArray(i)&&this.ctx){e.next=7;break}return e.abrupt("return");case 7:t.setTransform(devicePixelRatio,0,0,devicePixelRatio,0,0),!1===r&&(t.fillStyle="#000000",t.strokeStyle="#000000",t.shadowColor="#000000",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0,t.clearRect(0,0,n.width,n.height)),function(e,t){return Array.isArray(e)?e.reduce(function(e,t){return e.then(t)},Promise.resolve(t)):Promise.reject(new TypeError("promise.series only accepts an array of functions"))}(i.map(function(e){var t=e.method,n=e.data;if("drawImage"!==t)return function(){return a.drawMethod(t,n)};var r=Bi(n);r[0]=a.getRealPath(r[0]);var i,o=r[0];return a._images[o]||(i=a.preloadImage(o)),function(){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(a._images[o].ready){e.next=3;break}return e.next=3,regeneratorRuntime.awrap(i);case 3:return e.abrupt("return",a.drawMethod(t,r));case 4:case"end":return e.stop()}},null,a)}})).then(function(){ttJSBridge_w.publish("canvas"+a.canvasId+"DrawDone"+o,{widgetInstanceID:a._widgetInstanceId()})}).catch(function(){});case 11:case"end":return e.stop()}},null,this)}},{key:"getRealPath",value:function(t){return mn(t).file||mn(t).http||mn(t).dataImage||(mn(t).ttfile?tt_w.getProtocolXPath(t,function(e){t=e}):t=tt_w.getRealRoute(window.__route__,t)),t}},{key:"preloadImage",value:function(n){var r=this;return new Promise(function(e,t){r._images[n]=new Image,r._images[n].crossOrigin="anonymous",r._images[n].queue=[],r._images[n].onload=function(){r._images[n].ready=!0,e()},r._images[n].onerror=function(){console.error("Failed to load image "+n+" \n the server responded with a status of 404 (HTTP/1.1 404 Not Found)"),e()},r._images[n].src=n+"?zhangxuefeng=zhangxuefeng"})}},{key:"drawMethod",value:function(f,v){var g=this;return new Promise(function(e,t){var n=g.ctx;if(0===f.indexOf("set")&&"setTransform"!==f){var r=(u=f.substr(3)).charAt(0).toLowerCase()+u.substr(1),i=null;if("fillStyle"===r||"strokeStyle"===r){if("normal"===v[0])i=ji(v[1]),n[r]=i;else if("linear"===v[0]){var o=n.createLinearGradient.apply(n,v[1]);v[2].forEach(function(e){var t=e[0],n=ji(e[1]);o.addColorStop(t,n)}),n[r]=o}else if("radial"===v[0]){var a=v[1][0],s=v[1][1],l=[a,s,0,a,s,v[1][2]];o=n.createRadialGradient.apply(n,l);v[2].forEach(function(e){var t=e[0],n=ji(e[1]);o.addColorStop(t,n)}),n[r]=o}return e()}if("globalAlpha"===r)return n[r]=v[0]/255,e();if("shadow"!==r)return"fontSize"===r?n.font=n.font.replace(/\d+\.?\d*px/,v[0]+"px"):"lineDash"===r?(n.setLineDash(v[0]),n.lineDashOffset=v[1]||0):"textBaseline"===r?("normal"===v[0]&&(v[0]="alphabetic"),n.textBaseline=v[0]):n[r]=v[0],e();var c=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];return v.forEach(function(e,t){n[c[t]]="shadowColor"===c[t]?ji(e):e}),e()}if("fillPath"===f||"strokePath"===f)return f=f.replace(/Path/,""),n.beginPath(),v.forEach(function(e){n[e.method].apply(n,e.data)}),n[f](),e();if("drawImage"!==f)return"clip"===f?(v.forEach(function(e){return n[e.method].apply(n,e.data)}),n.clip()):n[f]&&n[f].apply(n,v),e();var u,d=Bi(v),h=d[0],p=d.slice(1);return g._images[h].ready?n.drawImage.apply(n,[g._images[h]].concat(m(p))):g._images[h].queue.push(p),e()})}},{key:"_getBox",value:function(e,t){var n=this.getBoundingClientRect(),r={left:n.left+window.scrollX,top:n.top+window.scrollY,width:this.$.mainCanvas.offsetWidth,height:this.$.mainCanvas.offsetHeight};if(t)return r;var i=e||window.getComputedStyle(this),o=parseFloat(i.getPropertyValue("border-top-width"))||0,a=(parseFloat(i.getPropertyValue("border-bottom-width")),parseFloat(i.getPropertyValue("border-left-width"))||0);parseFloat(i.getPropertyValue("border-right-width"));return r.left+=a,r.top+=o,r}}],[{key:"template",get:function(){return hn(Mi)}},{key:"is",get:function(){return"card-tt-canvas"}},{key:"properties",get:function(){return{canvasId:{type:String,observer:"_updateCanvasId",value:""},width:{type:Number,observer:"_updateWidth"},height:{type:Number,observer:"_updateHeight"}}}}]),t}(vn(pn));function Bi(e){return Array.isArray(e)?e:Array.from(e)}function ji(e){var t=e.slice(0);return t[3]=t[3]/255,"rgba("+t.join(",")+")"}window.customElements.define(Li.is,Li);var zi=o(["\n <style>\n :host {\n height: auto;\n width: auto;\n display: block;\n }\n\n :host(.navigator-hover) {\n background-color: rgba(0, 0, 0, 0.1);\n opacity: .7;\n }\n\n :host([hidden]) {\n display: none;\n }\n </style>\n <slot></slot>\n "],["\n <style>\n :host {\n height: auto;\n width: auto;\n display: block;\n }\n\n :host(.navigator-hover) {\n background-color: rgba(0, 0, 0, 0.1);\n opacity: .7;\n }\n\n :host([hidden]) {\n display: none;\n }\n </style>\n <slot></slot>\n "]),Hi=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"connectCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this._lock=!1}},{key:"navigateTo",value:function(){var e=this;if("navigateBack"===this.openType||this.url){if(!this._lock){if(this._lock=!0,setTimeout(function(){e._lock=!1},1e3),this.redirect)return void tt_w.redirectTo({url:this.url});switch(this.openType){case"navigate":case"navigateTo":return void tt_w.navigateTo({url:this.url});case"redirect":case"redirectTo":return void tt_w.redirectTo({url:this.url});case"switchTab":return void tt_w.switchTab({url:this.url});case"navigateBack":return void tt_w.navigateBack({delta:this.delta});case"reLaunch":return void tt_w.reLaunch({url:this.url});default:return void logger.error("<navigator/> with invalid openType "+this.openType)}}}else logger.error("<navigator/> should have url attribute when using navigateTo, redirectTo or switchTab")}},{key:"listeners",get:function(){return{tap:"navigateTo"}}}],[{key:"template",get:function(){return hn(zi)}},{key:"is",get:function(){return"card-tt-navigator"}},{key:"properties",get:function(){return{url:{type:String},delta:{type:Number,value:1},redirect:{type:Boolean,value:!1},openType:{type:String,value:"navigate"},hoverClass:{type:String,value:"navigator-hover",observer:"_hoverClassChange"}}}}]),t}(kn(vn(pn)));window.customElements.define(Hi.is,Hi);var Vi,Wi=o(['\n <style>\n :host {\n display: block;\n }\n </style>\n <div id="main"></div>\n '],['\n <style>\n :host {\n display: block;\n }\n </style>\n <div id="main"></div>\n ']),Qi=function(e){function n(){return u(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return f(n,e),a(n,[{key:"connectedCallback",value:function(){var i=this;if(p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.createdTimestamp=Date.now(),this.exist)return logger.error("一个页面只能插入一个 '<web-view />'");tt_w.getSystemInfo({success:function(e){var t=e.windowHeight,n=e.windowWidth,r=document.body;i.$.main.style.width=n+"px",i.$.main.style.height=t+"px",r.style.height=t+"px",r.style.overflowY="hidden",i.invoke("insertHTMLWebView",{position:{left:0,top:0,width:n,height:t}},function(e){var t=e.errMsg,n=e.htmlId;/ok/.test(t)?(i.htmlId=n,i._ready(),i.exist=!0,tt_w.publish("webViewInserted",{bindmessage:i.bindmessage,target:{dataset:i.$$data,id:i.id,offsetTop:i.offsetTop,offsetLeft:i.offsetLeft},createdTimestamp:i.createdTimestamp})):i.triggerEvent("error",{errMsg:t})})}})}},{key:"disconnectedCallback",value:function(e){var t=this;p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),this.invoke("removeHTMLWebView",{htmlId:this.htmlId},function(e){document.body.style.height="",document.body.style.overflowY="",t.exist=!1}),tt_w.publish("webViewRemoved",{})}},{key:"srcChanged",value:function(e,t){if(this._isReady)return this.invoke("updateHTMLWebView",{htmlId:this.htmlId,src:(e||"").trim()});this._deferred.push({callback:"srcChanged",args:[e,t]})}}],[{key:"template",get:function(){return hn(Wi)}},{key:"is",get:function(){return"card-tt-web-view"}},{key:"properties",get:function(){return{src:{type:String,observer:"srcChanged"},bindmessage:{type:String}}}}]),n}((Vi=vn(pn),function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._deferred=[],e._isReady=!1,e._box={left:0,top:0,width:0,height:0},e}return f(t,Vi),a(t,null,[{key:"properties",get:function(){return{hidden:{type:Boolean,reflectToAttribute:!0,observer:"hiddenChanged"}}}}]),a(t,[{key:"hiddenChanged",value:function(e,t){this._isReady?this._hiddenChanged&&this._hiddenChanged(e,t):this._deferred.push({callback:"hiddenChanged",args:[e,t]})}},{key:"_getBox",value:function(e,t){var n=this.getBoundingClientRect(),r={left:n.left+window.scrollX,top:n.top+window.scrollY,width:this.offsetWidth,height:this.offsetHeight};if(t)return r;var i=e||window.getComputedStyle(this),o=parseFloat(i.getPropertyValue("border-top-width"))||0,a=parseFloat(i.getPropertyValue("border-bottom-width"))||0,s=parseFloat(i.getPropertyValue("border-left-width"))||0,l=parseFloat(i.getPropertyValue("border-right-width"))||0;return r.left+=s,r.top+=o,r.width-=s+l,r.height-=o+a,r}},{key:"_diff",value:function(){var e=this._getBox();for(var t in e)if(e[t]!==this._box[t])return e;return!1}},{key:"push2defferd",value:function(e){var t=e.callback,n=e.args;this._deferred.push({callback:t,args:n})}},{key:"_ready",value:function(){this._isReady=!0,this._deferred.forEach(function(e){this[e.callback].apply(this,e.args)},this),this._deferred=[]}}]),t}()));window.customElements.define(Qi.is,Qi);var $i=document.createElement("div");$i.setAttribute("style","display: none;"),$i.innerHTML='<dom-module id="card-tt-progress-style">\n <template>\n <style>\n :host {\n display: block;\n width: 100%;\n }\n :host .card-tt-progress-inner{\n width: 0;\n height: 100%;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild($i);var Ui=o(['\n <style include="card-tt-progress-style">\n </style>\n <div class="card-tt-progress-wrapper" style$="background-color: [[backgroundColor]]; height: [[strokeWidth]]px;">\n <div class="card-tt-progress-inner" style$="width: [[currentPercent]]%; background-color: [[activeColor]]; ">\n </div>\n </div>\n '],['\n <style include="card-tt-progress-style">\n </style>\n <div class="card-tt-progress-wrapper" style\\$="background-color: [[backgroundColor]]; height: [[strokeWidth]]px;">\n <div class="card-tt-progress-inner" style\\$="width: [[currentPercent]]%; background-color: [[activeColor]]; ">\n </div>\n </div>\n ']),Yi="mobile"===window.PC_RUN_MODE,qi=Yi?"#EBEBEB":"#EFF0F1",Ji=Yi?"#F85959":"#3370FF",Gi=Yi?6:4,Xi=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"percentChange",value:function(e,t){e<0&&(this.percent=0),100<e&&(this.percent=100),this.timerid&&clearInterval(this.timerid),this.lastPercent=void 0===t?this.percent:t,this.activeChange(this.active)}},{key:"activeChange",value:function(e){if(e){var t=function(){this.percent<=this.currentPercent+1?(this.currentPercent=this.percent,clearInterval(this.timerid)):++this.currentPercent};this.currentPercent="forwards"===this.activeMode?this.lastPercent:0,this.timerid=setInterval(t.bind(this),30),t.call(this)}else this.currentPercent=this.percent}},{key:"connectedCallback",value:function(e){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.lastPercent=this.percent||0}},{key:"disconnectedCallback",value:function(e){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this.timerid&&clearInterval(this.timerid)}}],[{key:"template",get:function(){return hn(Ui)}},{key:"is",get:function(){return"card-tt-progress"}},{key:"properties",get:function(){return{percent:{type:Number,value:0,observer:"percentChange"},currentPercent:{type:Number},strokeWidth:{type:Number,value:Gi},showInfo:{type:Boolean,value:!1},color:{type:String,value:Ji},activeColor:{type:String,value:Ji},backgroundColor:{type:String,value:qi},active:{type:Boolean,value:!1,observer:"activeChange"},activeMode:{type:String,value:"backwards"}}}}]),t}(vn(pn));function Ki(r){return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];try{r.apply(null,t)}catch(e){e&&console.error(e.stack),Reporter&&Reporter.errorReport({key:"parserScriptError",error:e})}}}window.customElements.define(Xi.is,Xi),function(){try{WebviewRuntime.addGlobalErrorListener(function(e,t){var n=t.message;Reporter&&Reporter.errorReport({key:"webviewScriptError",error:e,extend:n})})}catch(e){}}();var Zi={};function eo(n,r){var i={};if(r.id&&(i.id=n.id||""),r.dataset&&(i.dataset=n.$$data||{}),r.rect||r.size){var e=n.getBoundingClientRect();r.rect&&(i.left=e.left,i.right=e.right,i.top=e.top,i.bottom=e.bottom),r.size&&(i.width=e.width,i.height=e.height)}if(r.properties&&r.properties.forEach(function(e){var t=r.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});i[t]=n[t]}),r.scrollOffset)if(n.getScrollPosition&&"function"==typeof n.getScrollPosition){var t=n.getScrollPosition();i.scrollLeft=t.scrollLeft,i.scrollTop=t.scrollTop}else i.scrollLeft=0,i.scrollTop=0;return i}var to=1,no={},ro=function(e){return e?no[e]:window};function io(e,t){var n=e[t];Array.isArray(n)?e[t]=Array.from(n):"object"==typeof n&&(e[t]=Object.assign({},n))}function oo(e,t,n){var r=n[e].type;if("null"===r)return t;if(r===ge(t))return t;switch(r){case"string":return null===t?"":"object"!=typeof t||Array.isArray(t)?t.toString():"[object Object]";case"number":var i=+t;return isNaN(i)?0:i;case"boolean":return!!t;case"array":return[];case"object":return Array.isArray(t)?t:null===t?t:"object"==typeof t?{}:null}}document.addEventListener("customComponentsRender",Ki(function(e){var n=e.detail.context;if(n.__componentconfig__&&0!==Object.keys(n.__componentconfig__).length&&n.customComponents&&0!==Object.keys(n.customComponents).length){n.widget&&n.widget.instanceID&&(no[n.widget.instanceID]=n);var t=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._id=to++,e}return f(t,e),a(t,null,[{key:"is",get:function(){var e=n.widget;return e&&e.widgetID?("card-tt-custom-component-"+e.widgetID).toLowerCase():"card-tt-custom-component"}},{key:"reservedAttrs",get:function(){return["id","__template__"]}}]),a(t,[{key:"connectedCallback",value:function(e){var t=this;this.instanceId=this.$$data.widgetInstanceId;var n=ro(this.instanceId),r=function(){t._init(),t._trigger("created",{},!0),t._syncInitPropsAndDataset(),t._observes(),t._listenComponentDataChange(),t._listenComponentCustomEvents(),t._render(function(){t._trigger("attached",e,!0),t._bindEvents(),t._initRelationQueue(),t._relationHandler("attached"),document.dispatchEvent(new CustomEvent("pageReRender",{detail:{source:"componentInit"}}))}),t._trigger("ready",e,!0)},i=n.__SideEffectFnQueues[n.__SideEffectFnQueues.length-1];if(i){var o=i.get(this._id),a=o.positive,s=o.negative;a||i.register(this._id,r,s),i.add(this._id)}else r()}},{key:"disconnectedCallback",value:function(t){var e,n=this,r=ro(this.instanceId);(e=this.instanceId)&&delete no[e];var i=function(){var e;n._trigger("detached",t,!0),e=n._id,Zi[e]=null,n._relationHandler("detached")},o=r.__SideEffectFnQueues[r.__SideEffectFnQueues.length-1];if(o){var a=o.get(this._id),s=a.positive;a.negative||o.register(this._id,s,i),o.remove(this._id)}else i()}},{key:"adoptedCallback",value:function(e){this._trigger("moved",e,!0),this._relationHandler("attached")}},{key:"_init",value:function(e){if(this.__template__&&!this.__inited){var t=ro(this.instanceId);this.config=t.customComponents[this.__template__],this.uuid=this.config.abs.substr(1),this._config=function(e,t){var n=t.__componentconfig__,r={};try{r="object"==typeof n[e]?n[e]:JSON.parse(n[e])}catch(e){}var i=r.properties||{};return{raw:r,properties:i}}(this.uuid,t),this._data=this._fetchInitData(),this.__inited=1,"function"==typeof e&&e()}}},{key:"_syncInitPropsAndDataset",value:function(){var n=this,e=this._config.properties||{},t=Object.keys(e);t.length&&this._syncData("properties",t.reduce(function(e,t){return void 0!==n[t]&&(e[t]=n._data[t]),e},{}));var r=this._datasets;this._syncData("dataset",r),this._syncData("instance",{id:this.id})}},{key:"_initRelationQueue",value:function(){var t=this,e=this._config.raw;this.relationQueue=[],this.ancestors=e.ancestors;var n=this.relationMap=e.relationMap;for(var r in this.relationLinks={},this.relations={},n){var i=n[r];this.relationLinks[r]=[];for(var o=0,a=i.length;o<a;o++)this.relationLinks[r].push(null),this.relations[i[o].originalKey]=i[o]}n.parent&&this.relationQueue.push(function(e){t._triggerRelations(n.parent,t.relationLinks.parent,t.ancestors,"parent","attached"===e)}),n.ancestor&&this.relationQueue.push(function(e){t._triggerRelations(n.ancestor,t.relationLinks.ancestor,t.ancestors,"ancestor","attached"===e)})}},{key:"_relationHandler",value:function(t){this.relationQueue.forEach(function(e){e(t)})}},{key:"_observes",value:function(){var r=this,i=this._config.properties||{},e=Object.keys(i);if(e.length){var o=this._data;e.forEach(function(n){Object.defineProperty(r,n,{get:function(){return o[n]},set:function(e){if(e=oo(n,e,i),o[n]=e,r.renderer){var t={};t[n]=e,r._syncData("properties",t),r._rerender()}}})});var t=Object.keys(this.$$data);this._datasets=Object.assign({},this.$$data),t.length&&t.forEach(function(n){Object.defineProperty(r.$$data,n,{get:function(){return r._datasets[n]},set:function(e){r._datasets[n]=e;var t={};t[n]=e,r._syncData("dataset",t)}})})}}},{key:"_syncData",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"properties",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};tt_w.publishComponentDataChange(e,t,this._id,this.instanceId)}},{key:"_trigger",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"created",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];tt_w.publishComentEvent(e,t,this._id,n,this.uuid,this.instanceId)}},{key:"_widgetDirBase",value:function(){return ro(this.instanceId).widget.bundleBase}},{key:"_wrapEvent",value:function(e,t){var n={id:this.id||"",offsetLeft:this.offsetLeft||0,offsetTop:this.offsetTop||0,dataset:this.$$data||{}};return{type:t||"custom-component",timeStamp:performance.now(),target:n,currentTarget:n,detail:e}}},{key:"_bindEvents",value:function(){var e,t,c=this;this.__eventInited||(this.addEventListener("custom-component-event",function(e){var t=e.detail.__name,n=e.detail.__child_method,r=c.$$eventHandleNames&&c.$$eventHandleNames[t],i=!!c.eventTriggeredBy,o=i&&-1<c.eventTriggeredBy.indexOf("component"),a=e.detail.__trigger_targets;if(n){var s=!0;a&&(s=a.split(",").some(function(e){return c.__template__===e})),s&&c._trigger(t,e.detail.__pass_by?c._wrapEvent(e.detail,e.detail.__original_event_name||t):e.detail)}else if(r)if(i)if(o){var l=c.eventTriggeredBy.split("__")[1]||"";c.dispatchEvent(new CustomEvent("custom-component-event",{detail:Object.assign({},e.detail,{__name:r,__original_event_name:t,__child_method:!0,__pass_by:!0,__trigger_targets:l}),bubbles:!0,composed:!0}))}else tt_w.publishPageEvent(r,c._wrapEvent(e.detail,t));else c.dispatchEvent(new CustomEvent("custom-component-event",{detail:Object.assign({},e.detail,{__name:r,__original_event_name:t,__child_method:!0,__pass_by:!0}),bubbles:!0,composed:!0})),tt_w.publishPageEvent(r,c._wrapEvent(e.detail,t))}),this.addEventListener("get-custom-component-uid",function(e){var t=e.detail,n=t.templateId,r=void 0===n?"":n,i=t.callback;-1<r.split(",").indexOf(c.__template__)&&"function"==typeof i&&i(c._id)}),this.shadowRoot.addEventListener("scroll",function(e){c.dispatchEvent(new CustomEvent("scroll",{bubbles:!1,passive:!0}))},{capture:!0,passive:!0}),this.__eventInited=1),e=this._id,t=this.shadowRoot,Zi[e]=t}},{key:"_triggerCustomEvent",value:function(e){var t=e.eventName,n=e.eventDetail,r=void 0===n?{}:n,i=e.eventOption,o=void 0===i?{}:i;this.dispatchEvent(new CustomEvent("custom-component-event",Object.assign({},{detail:Object.assign({},r,{__name:t,__child_method:null,__pass_by:null})},o)))}},{key:"_triggerRelations",value:function(e,t,n,r,i){for(var o="parent"===r,a=[],s=0,l=e.length;s<l;s++){var c=e[s],u=null,d=t[s];if(i)for(var h=this.parentNode;h;h=h.parentNode){if(h.ancestors&&-1<h.ancestors.indexOf(c.target))for(var p=o?h.relationMap.child:h.relationMap.descendant,f=0,v=p.length;f<v;f++){var g=p[f];if(-1<n.indexOf(g.target)){u={parent:h,relation:g};break}}if(o||u)break}t[s]=u,!d||u&&d.parent===u.parent||a.push({nodeid:d.parent._id,originalKey:d.relation.originalKey,type:"unlinked",target:this._id},{nodeid:this._id,originalKey:c.originalKey,type:"unlinked",target:d.parent._id}),!u||d&&d.parent===u.parent||a.push({nodeid:u.parent._id,originalKey:u.relation.originalKey,type:"linked",target:this._id},{nodeid:this._id,originalKey:c.originalKey,type:"linked",target:u.parent._id}),u&&d&&u.parent===d.parent&&a.push({nodeid:u.parent._id,originalKey:u.relation.originalKey,type:"linkChanged",target:this._id},{nodeid:this._id,originalKey:c.originalKey,type:"linkChanged",target:u.parent._id})}0<a.length&&tt_w.publishComponentRelationChange(a,this.instanceId)}},{key:"_renderTree",value:function(){var r=this,e=ro(this.instanceId).__h("div",{id:"custom-component",style:"display: inline;"},this.renderer.call(null,this._data)),i=function(e){if(e&&"VirtualNode"===e.type){r.shadyCssScope&&(e.properties.className&&-1===e.properties.className.indexOf(r.shadyCssScope)?e.properties.className+=" "+r.shadyCssScope:e.properties.className=r.shadyCssScope),e.properties["data-widget-instance-id"]=r.instanceId,e.properties.__widgetDirBase=r._widgetDirBase();for(var t=0,n=e.children.length;t<n;t++)i(e.children[t])}};return i(e),e}},{key:"_render",value:function(e){var t=ro(this.instanceId);if(this.__template__&&!this.__rendered){var n=this.uuid.split("/").join("-")+"-style",r=t.document.getElementById(n),i=this.attachShadow({mode:"open"});if(this._addGlobalClass(),r){var o=r.querySelector("template");if(t.ShadyCSS&&!t.ShadyCSS.nativeShadow){var a=n.replace("-style","");t.ShadyCSS.prepareTemplate(o,a),this.shadyCssScope=a}else i.appendChild(document.importNode(o.content,!0))}this.renderer=this.config.render,this.vtree=this._renderTree(),i.appendChild(t.__render(this.vtree)),this.__rendered=1,e&&e()}}},{key:"_rerender",value:function(e){var t=ro(this.instanceId),n=this.shadowRoot.getElementById("custom-component");if(n){var r=this._renderTree(),i=t.__diff(this.vtree,r);if(t.__SideEffectFnQueues.push(new ve),t.__apply(n,i),0<t.__SideEffectFnQueues.length){var o=t.__SideEffectFnQueues.pop();o.triggerAll(),o=null}this.vtree=r,document.dispatchEvent(new CustomEvent("pageReRender",{detail:{source:"componentDataChange"}}))}e&&e()}},{key:"_listenComponentDataChange",value:function(){var l=this;this._componentDataChangedListened||(tt_w.onComponentDataChange(Ki(function(e,t){if(e.nodeid&&e.nodeid==l._id){var s=e.data;Object.keys(s).forEach(function(e){for(var t=function(e){for(var t=!1,n=e.length,r=[],i="",o=0,a=0;a<n;a++){var s=e[a];"\\"===s?a+1<n&&("."===e[a+1]||"["===e[a+1]||"]"===e[a+1])?(i+=e[a+1],a++):i+="\\":"."===s?i&&(r.push(i),i=""):"["===s?(i&&(r.push(i),i=""),t=!0):"]"===s?(t=!1,r.push(o),o=0):t?o=10*o+s.charCodeAt(0)-48:i+=s}return i&&r.push(i),r}(e),n=l._data,r={},i=0,o=t.length;i<o;i++){var a=t[i];Number(a)===a&&a%1==0?Array.isArray(n)||(n=r[t[i-1]]=[]):"object"!==ge(n)&&(n=r[t[i-1]]={}),i+1===o?n[a]=s[e]:(io(n,a),n=(r=n)[a])}}),l._rerender(t)}})),this._componentDataChangedListened=1)}},{key:"_listenComponentCustomEvents",value:function(){var h=this;this._componentCustomEventsListened||(tt_w.onTriggerComponentEvent(Ki(function(e,t){e.nodeid&&e.nodeid==h._id&&h._triggerCustomEvent(e)})),tt_w.onSelectComponent(Ki(function(e,t){if(e.nodeid&&e.nodeid==h._id){var n=e.selector;if(e.single){var r=h.shadowRoot.querySelector(n);t(ye(r)?r._id:null)}else{t(Array.from(h.shadowRoot.querySelectorAll(n)).reduce(function(e,t){return ye(t)&&e.push(t._id),e},[]))}}})),tt_w.onGetRelationNodes(Ki(function(e,t){var n=e.relation,r=e.nodeid;if(r&&r==h._id){var i=h.relations[n];if(!i)return t(null);var o=i.type;if("parent"!==o&&"ancestor"!==o){var a=[];return function o(e,a,s,l){var c=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[];var t=function(e,t,n){var r=t[e];if(ye(r)){if(r.relationLinks){var i=s?r.relationLinks.parent:r.relationLinks.ancestor;i&&i.some(function(e){return!(!e||e.parent!==a||e.relation.originalKey!==l)&&(c.push(r._id),!0)})}s||o(r,a,s,l,c)}};for(var n=0,r=e.childNodes,i=r.length;n<i;n++)t(n,r,i)}(h,h,"child"===o,n,a),t(a)}for(var s=h.relationLinks[o],l=h.relationMap[o],c=0,u=s.length;c<u;c++){var d=s[c];if(d&&l[c].originalKey===n)return t([d.parent._id])}return t([])}})),this._componentCustomEventsListened=1)}},{key:"_fetchInitData",value:function(){var t=this;if(this.config){var e=this._config.raw,n=this._config.properties,r=Object.assign({},e?e.data:{});return Object.keys(n).forEach(function(e){void 0!==t[e]?r[e]=oo(e,t[e],n):r[e]=n[e].value}),r}}},{key:"_addGlobalClass",value:function(){var e=ro(this.instanceId),t=(this._config.raw||{}).options;if((void 0===t?{}:t).addGlobalClass&&e.ShadyCSS.nativeShadow){var n=this.shadowRoot,r=document.createDocumentFragment();document.querySelectorAll("style").forEach(function(e){r.appendChild(document.importNode(e,!0))}),n.appendChild(r)}}}]),t}(HTMLElement);window.customElements.get(t.is)||window.customElements.define(t.is,t)}}));var ao="string"==typeof document.head.style.touchAction,so="__polymerGestures",lo="__polymerGesturesHandled",co="__polymerGesturesTouchAction",uo=["mousedown","mousemove","mouseup","click"],ho=[0,1,4,2],po=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(e){return!1}}();function fo(e){return-1<uo.indexOf(e)}var vo=!1;function go(e){if(!fo(e)&&"touchend"!==e)return ao&&vo&&Me?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get:function(){vo=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();var yo=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),mo=[],_o={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0};function Ao(e){var t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];var n=e.getRootNode();if(e.id)for(var r=n.querySelectorAll("label[for = "+e.id+"]"),i=0;i<r.length;i++)t.push(r[i])}return t}var bo=function(e){var t,n=e.sourceCapabilities;if((!n||n.firesTouchEvents)&&(e[lo]={skip:!0},"click"===e.type)){var r=!1,i=e.composedPath&&e.composedPath();if(i)for(var o=0;o<i.length;o++){if(i[o].nodeType===Node.ELEMENT_NODE)if("label"===i[o].localName)mo.push(i[o]);else if(t=i[o],_o[t.localName])for(var a=Ao(i[o]),s=0;s<a.length;s++)r=r||-1<mo.indexOf(a[s]);if(i[o]===Co.mouse.target)return}if(r)return;e.preventDefault(),e.stopPropagation()}};function wo(e){for(var t,n=yo?["click"]:uo,r=0;r<n.length;r++)t=n[r],e?(mo.length=0,document.addEventListener(t,bo,!0)):document.removeEventListener(t,bo,!0)}function ko(e){var t=e.type;if(!fo(t))return!1;if("mousemove"!==t)return 0===(void 0===e.button?0:e.button);var n=void 0===e.buttons?1:e.buttons;return e instanceof window.MouseEvent&&!po&&(n=ho[e.which]||0),Boolean(1&n)}var Co={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Eo(e,t,n){e.movefn=t,e.upfn=n,document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)}function xo(e){document.removeEventListener("mousemove",e.movefn),document.removeEventListener("mouseup",e.upfn),e.movefn=null,e.upfn=null}document.addEventListener("touchend",function(e){Co.mouse.mouseIgnoreJob||wo(!0),Co.mouse.target=e.composedPath()[0],Co.mouse.mouseIgnoreJob=Gn.debounce(Co.mouse.mouseIgnoreJob,yt(2500),function(){wo(),Co.mouse.target=null,Co.mouse.mouseIgnoreJob=null})},!!vo&&{passive:!0});var So={},Po=[];function To(e,t){for(var n=document.elementFromPoint(e,t),r=n;r&&r.shadowRoot&&!window.ShadyDOM;){if(r===(r=r.shadowRoot.elementFromPoint(e,t)))break;r&&(n=r)}return n}function Oo(e){if(e.composedPath){var t=e.composedPath();return 0<t.length?t[0]:e.target}return e.target}function Do(e){var t=void 0,n=e.type,r=e.currentTarget[so];if(r){var i=r[n];if(i){if(!e[lo]&&(e[lo]={},"touch"===n.slice(0,5))){var o=(e=e).changedTouches[0];if("touchstart"===n&&1===e.touches.length&&(Co.touch.id=o.identifier),Co.touch.id!==o.identifier)return;ao||"touchstart"!==n&&"touchmove"!==n||function(e){var t=e.changedTouches[0],n=e.type;if("touchstart"===n)Co.touch.x=t.clientX,Co.touch.y=t.clientY,Co.touch.scrollDecided=!1;else if("touchmove"===n){if(Co.touch.scrollDecided)return;Co.touch.scrollDecided=!0;var r=function(e){var t="auto",n=e.composedPath&&e.composedPath();if(n)for(var r,i=0;i<n.length;i++)if((r=n[i])[co]){t=r[co];break}return t}(e),i=!1,o=Math.abs(Co.touch.x-t.clientX),a=Math.abs(Co.touch.y-t.clientY);e.cancelable&&("none"===r?i=!0:"pan-x"===r?i=o<a:"pan-y"===r&&(i=a<o)),i?e.preventDefault():i("track")}}(e)}if(!(t=e[lo]).skip){for(var a,s=0;s<Po.length;s++)i[(a=Po[s]).name]&&!t[a.name]&&a.flow&&-1<a.flow.start.indexOf(e.type)&&a.reset&&a.reset();for(var l,c=0;c<Po.length;c++)i[(l=Po[c]).name]&&!t[l.name]&&(t[l.name]=!0,l[n](e))}}}}function Io(e,t,n){return!!So[t]&&(function(e,t,n){var r=So[t],i=r.deps,o=r.name,a=e[so];a||(e[so]=a={});for(var s,l,c=0;c<i.length;c++)s=i[c],yo&&fo(s)&&"click"!==s||((l=a[s])||(a[s]=l={_count:0}),0===l._count&&e.addEventListener(s,Do,go(s)),l[o]=(l[o]||0)+1,l._count=(l._count||0)+1);e.addEventListener(t,n),r.touchAction&&Mo(e,r.touchAction)}(e,t,n),!0)}function No(e,t,n){return!!So[t]&&(function(e,t,n){var r=So[t],i=r.deps,o=r.name,a=e[so];if(a)for(var s,l,c=0;c<i.length;c++)s=i[c],(l=a[s])&&l[o]&&(l[o]=(l[o]||1)-1,l._count=(l._count||1)-1,0===l._count&&e.removeEventListener(s,Do,go(s)));e.removeEventListener(t,n)}(e,t,n),!0)}function Fo(e){Po.push(e);for(var t=0;t<e.emits.length;t++)So[e.emits[t]]=e}function Mo(e,t){ao&&mt.run(function(){e.style.touchAction=t}),e[co]=t}function Ro(e,t,n){var r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=n,e.dispatchEvent(r),r.defaultPrevented){var i=n.preventer||n.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function Lo(e){var t=function(e){for(var t,n=0;n<Po.length;n++){t=Po[n];for(var r=0;r<t.emits.length;r++)if(t.emits[r]===e)return t}return null}(e);t.info&&(t.info.prevent=!0)}Fo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){xo(this.info)},mousedown:function(e){if(ko(e)){var t=Oo(e),n=this;Eo(this.info,function(e){ko(e)||(n._fire("up",t,e),xo(n.info))},function(e){ko(e)&&n._fire("up",t,e),xo(n.info)}),this._fire("down",t,e)}},touchstart:function(e){this._fire("down",Oo(e),e.changedTouches[0],e)},touchend:function(e){this._fire("up",Oo(e),e.changedTouches[0],e)},_fire:function(e,t,n,r){Ro(t,e,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:r,prevent:function(e){return Lo(e)}})}}),Fo({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){2<this.moves.length&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,xo(this.info)},hasMovedEnough:function(e,t){if(this.info.prevent)return!1;if(this.info.started)return!0;var n=Math.abs(this.info.x-e),r=Math.abs(this.info.y-t);return 5<=n||5<=r},mousedown:function(e){if(ko(e)){var r=Oo(e),i=this,t=function(e){var t=e.clientX,n=e.clientY;i.hasMovedEnough(t,n)&&(i.info.state=i.info.started?"mouseup"===e.type?"end":"track":"start","start"===i.info.state&&Lo("tap"),i.info.addMove({x:t,y:n}),ko(e)||(i.info.state="end",xo(i.info)),i._fire(r,e),i.info.started=!0)};Eo(this.info,t,function(e){i.info.started&&t(e),xo(i.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=Oo(e),n=e.changedTouches[0],r=n.clientX,i=n.clientY;this.hasMovedEnough(r,i)&&("start"===this.info.state&&Lo("tap"),this.info.addMove({x:r,y:i}),this._fire(t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=Oo(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),this._fire(t,n,e))},_fire:function(e,t){var n=this.info.moves[this.info.moves.length-2],r=this.info.moves[this.info.moves.length-1],i=r.x-this.info.x,o=r.y-this.info.y,a=void 0,s=0;n&&(a=r.x-n.x,s=r.y-n.y),Ro(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:i,dy:o,ddx:a,ddy:s,sourceEvent:t,hover:function(){return To(t.clientX,t.clientY)}})}}),Fo({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},save:function(e){this.info.x=e.clientX,this.info.y=e.clientY},mousedown:function(e){ko(e)&&this.save(e)},click:function(e){ko(e)&&this.forward(e)},touchstart:function(e){this.save(e.changedTouches[0],e)},touchend:function(e){this.forward(e.changedTouches[0],e)},forward:function(e,t){var n=Math.abs(e.clientX-this.info.x),r=Math.abs(e.clientY-this.info.y),i=Oo(t||e);i&&!i.disabled&&(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(e){if("click"!==e.type)return!1;if(0===e.detail)return!0;var t=Oo(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;var n=t.getBoundingClientRect(),r=e.pageX,i=e.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}(e))&&(this.info.prevent||Ro(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var Bo=Oo,jo=Io,zo=No,Ho=Object.freeze({gestures:So,recognizers:Po,deepTargetFind:To,addListener:Io,removeListener:No,register:Fo,setTouchAction:Mo,prevent:Lo,resetMouseCanceller:function(){Co.mouse.mouseIgnoreJob&&Co.mouse.mouseIgnoreJob.flush()},findOriginalTarget:Bo,add:jo,remove:zo}),Vo=Le(function(t){return function(e){function r(){return u(this,r),y(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return f(r,t),a(r,[{key:"_addEventListenerToNode",value:function(e,t,n){Ho.addListener(e,t,n)||p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_addEventListenerToNode",this).call(this,e,t,n)}},{key:"_removeEventListenerFromNode",value:function(e,t,n){Ho.removeListener(e,t,n)||p(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"_removeEventListenerFromNode",this).call(this,e,t,n)}}]),r}()}),Wo=document.createElement("div");Wo.setAttribute("style","display: none;");var Qo="mobile"!==window.PC_RUN_MODE?"\n:host {\n display: inline-block;\n width: 100%;\n height: 32px;\n min-height: 32px;\n border: 1px solid #DEE0E3;\n border-radius: 4px;\n color: #39424e;\n font-size: 14px;\n background-color: #ffffff;\n background-image: none;\n font-family: PingFang SC, -apple-system, helvetica, sans-serif;\n box-sizing: border-box;\n}\n:host > div {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n background-color: transparent;\n font-size: inherit;\n border-radius: inherit;\n}\n:host input {\n position: relative;\n display: inherit;\n width: 100%;\n height: 100%;\n padding: 6px 12px;\n font-size: inherit;\n background-color: transparent;\n border: 0;\n border-radius: inherit;\n outline: none;\n cursor: text;\n box-sizing: border-box;\n}\n:host input::-webkit-input-placeholder {\n color: #8F959E;\n}\n:host input:focus:not([disabled]) {\n outline: none;\n}\n:host input::-webkit-outer-spin-button,\n:host input::-webkit-inner-spin-button {\n -webkit-appearance: none !important;\n margin: 0;\n}\n:host input[disabled] {\n background-color: #f5f6f7;\n cursor: not-allowed;\n}\n:host input[disabled]::-webkit-input-placeholder {\n color: #babec4;\n}\n:host input[hidden] {\n display: none;\n}\n:host input.has-suffix {\n padding-right: 24px;\n}\n:host .suffix-icon {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%)\n}\n":"\n:host {\n display: block;\n height: 1.4rem;\n text-overflow: clip;\n overflow: hidden;\n white-space: nowrap;\n font-family: PingFang SC, -apple-system, helvetica, sans-serif;;\n min-height: 1.4rem;\n -webkit-tap-highlight-color: transparent;\n}\n\n:host input {\n position: relative;\n min-height: 1.4rem;\n border: none;\n height: inherit;\n width: 100%;\n font-size: inherit;\n font-weight: inherit;\n color: inherit;\n background: transparent;\n display: inherit;\n padding: 0;\n margin: 0;\n outline: none;\n vertical-align: middle;\n text-align: inherit;\n overflow: inherit;\n white-space: inherit;\n text-overflow: inherit;\n -webkit-tap-highlight-color: transparent;\n z-index: 2;\n}\n\n:host input::-webkit-outer-spin-button,\n:host input::-webkit-inner-spin-button {\n -webkit-appearance: none !important;\n margin: 0;\n}\n\n:host([ hidden ]) {\n display: none;\n}\n\n:host div {\n position: relative;\n min-height: 1.4rem;\n text-overflow: inherit;\n border: none;\n height: 100%;\n font-size: inherit;\n font-weight: inherit;\n font-family: PingFang SC, -apple-system, helvetica, sans-serif;;\n color: inherit;\n /*background: inherit;*/\n padding: 0;\n margin: 0;\n outline: none;\n text-align: inherit;\n -webkit-tap-highlight-color: transparent;\n padding-right: 10px;\n white-space: nowrap;\n overflow: hidden;\n}\n\n:host div.input-placeholder {\n color: #CACACA;\n}\n\n:host div[type=password] div {\n color: black;\n}\n\n:host div div {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n line-height: 100%;\n height: inherit;\n min-height: 1.4rem;\n white-space: pre;\n text-align: inherit;\n overflow: hidden;\n vertical-align: middle;\n z-index: 1;\n}";Wo.innerHTML='<dom-module id="card-tt-input-style">\n <template>\n <style>\n '+Qo+"\n </style>\n </template>\n</dom-module>",document.head.appendChild(Wo);var $o=o(['\n <style include="card-tt-input-style">\n </style>\n <div id="wrapper"">\n <input id="inputElement"\n disabled$="[[ disabled ]]"\n class$="[[_computeInputClass(hasSuffix)]]"\n on-focus="_onFocus"\n on-blur="_onBlur"\n on-keyDown="_onKeyDown"\n on-keyUp="_onKeyUp"\n on-mouseover="_onMouseover"\n on-mouseout="_onMouseout"\n placeholder$="[[placeholder]]"\n maxlength="[[maxlength]]"\n type$="[[type]]"\n value="[[value]]"\n style="[[styles]]"\n readonly$="[[readonly]]"\n >\n <template is="dom-if" if="[[hasSuffix]]">\n <card-tt-icon on-click="_handleClear" class="suffix-icon" type="clear" size="14" color="#939aa3"></card-tt-icon>\n </template>\n </div>\n'],['\n <style include="card-tt-input-style">\n </style>\n <div id="wrapper"">\n <input id="inputElement"\n disabled\\$="[[ disabled ]]"\n class\\$="[[_computeInputClass(hasSuffix)]]"\n on-focus="_onFocus"\n on-blur="_onBlur"\n on-keyDown="_onKeyDown"\n on-keyUp="_onKeyUp"\n on-mouseover="_onMouseover"\n on-mouseout="_onMouseout"\n placeholder\\$="[[placeholder]]"\n maxlength="[[maxlength]]"\n type\\$="[[type]]"\n value="[[value]]"\n style="[[styles]]"\n readonly$="[[readonly]]"\n >\n <template is="dom-if" if="[[hasSuffix]]">\n <card-tt-icon on-click="_handleClear" class="suffix-icon" type="clear" size="14" color="#939aa3"></card-tt-icon>\n </template>\n </div>\n']),Uo=function(e){function n(){return u(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return f(n,e),a(n,[{key:"ready",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"ready",this).call(this),void 0===this.$$focus&&(this.$$focus=!1),void 0===this.$$hover&&(this.$$hover=!1)}},{key:"getFormData",value:function(e){"function"==typeof e&&e(this.filteredValue)}},{key:"resetFormData",value:function(){this.value=""}},{key:"_event",value:function(e){var t={id:this.id||"",offsetLeft:this.offsetLeft,offsetTop:this.offsetTop,dataset:this.$$data};return{type:e,currentTarget:t,target:t,timsStamp:0}}},{key:"connectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this._attached=!0,this._checkAutoFocus(),this._blurred=!0,this.styles=this.getComputedStyleString(),this.$.inputElement.addEventListener("input",this._onChange.bind(this)),this.$.inputElement.addEventListener("compositionend",this._onCompositionEnd.bind(this))}},{key:"_computeHasSuffix",value:function(e){return e}},{key:"_computeInputClass",value:function(e){return e?"has-suffix":""}},{key:"getComputedStyleString",value:function(){var n=window.getComputedStyle(this);return Object.keys(n).filter(function(e){return-1<["fontFamily","fontSize","color","backgroundColor"].indexOf(e)}).reduce(function(e,t){return t&&n[t]?e+(t+": ")+n[t]+";":e},this.style)}},{key:"maxlengthChanged",value:function(e,t){(this.maxlength=e)&&0<e&&this.$.inputElement.setAttribute("maxlength",this.maxlength),isNaN(e)&&this.$.inputElement.setAttribute("maxlength","")}},{key:"typeChange",value:function(){this.$.inputElement.setAttribute("type",this._getType())}},{key:"filterValue",value:function(e,t){return e?0<t?e.slice(0,t):e:""}},{key:"_getType",value:function(){return this.password?"password":"digit"===this.type?"number":"idcard"===this.type?"text":this.type}},{key:"_onChange",value:function(e){e.stopPropagation();var t=this.$.inputElement,n=this.value=t.value;n.length>this.maxlength?this.value=n.slice(0,this.maxlength):this.triggerEvent("input",{value:n,cursor:t.selectionEnd})}},{key:"_onKeyDown",value:function(e){if((this.value=this.$.inputElement.value).length>this.maxlength)return!1}},{key:"_checkKeyDown",value:function(e){}},{key:"_onKeyUp",value:function(e){if(13==e.keyCode){var t=this.value=this.$.inputElement.value;this.triggerEvent("confirm",{value:t}),this.$.inputElement.blur()}}},{key:"_onFocus",value:function(e){n.isMobileMode||this.disabled||(this.style.borderColor=this._focusColor,this._blurred=!1),e.stopPropagation(),this.focus=!0;var t=this.value=this.$.inputElement.value;this.triggerEvent("focus",{value:t})}},{key:"_onBlur",value:function(e){n.isMobileMode||this.disabled||(this.style.borderColor="",this._blurred=!0),e.stopPropagation(),this.focus=!1;var t=this.value=this.$.inputElement.value;this.triggerEvent("blur",{value:t})}},{key:"_onMouseover",value:function(e){n.isMobileMode||this.disabled||(this.hover=!0),e.stopPropagation()}},{key:"_onMouseout",value:function(e){n.isMobileMode||this.disabled||!this._blurred||(this.hover=!1),e.stopPropagation()}},{key:"_checkPlaceholderStyle",value:function(){this.$.inputElement.classList.remove("input-placeholder")}},{key:"_checkAutoFocus",value:function(){(this.autoFocus||this.focus)&&this._couldFocus(!0)}},{key:"_couldFocus",value:function(e){this._attached&&(e?this.$.inputElement.focus():this.$.inputElement.blur())}},{key:"_placeholderStyleChange",value:function(e,t){if(e&&e!==t){var n=this.shadowRoot.querySelectorAll("style"),r=n[n.length-1];r.innerHTML||(r.innerHTML=""),r.innerHTML+="\n:host input::placeholder {"+e+"}\n:host input::-webkit-input-placeholder {"+e+"}"}}},{key:"_onCompositionEnd",value:function(){this._fixCursorAfterComposition()}},{key:"_fixCursorAfterComposition",value:function(){"number"===this._getType()&&["right","end","center"].includes(window.getComputedStyle(this.$.inputElement).textAlign)&&""===this.$.inputElement.value&&(this.$.inputElement.value="0",this.$.inputElement.value="")}},{key:"_inputSelect",value:function(){this.$.inputElement.select()}},{key:"_handleClear",value:function(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0})),this.value=""}},{key:"defaultValueChange",value:function(e,t){e=e||"",0<this.maxlength&&(e=e.slice(0,this.maxlength),this.setAttribute("value",e)),this._checkPlaceholderStyle()}},{key:"destoryEvents",value:function(){this.$.inputElement.removeEventListener("input",this._onChange.bind(this))}},{key:"disconnectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),this.destoryEvents()}},{key:"focus",get:function(){return this.$$focus},set:function(e){this.$$focus=this._deserializeValue(e,Boolean),this._couldFocus(this.$$focus)}},{key:"hover",get:function(){return this.$$hover},set:function(e){this.$$hover=this._deserializeValue(e,Boolean),e?!this.focus&&(this.style.borderColor=this._hoverColor):!this.focus&&(this.style.borderColor="")}}],[{key:"template",get:function(){return hn($o)}},{key:"is",get:function(){return"card-tt-input"}},{key:"properties",get:function(){return{autoFocus:{type:Boolean,value:!1},placeholder:{type:String,value:""},placeholderStyle:{type:String,value:"",observer:"_placeholderStyleChange"},placeholderClass:{type:String,value:""},dropdownStyle:{type:Object,value:{}},value:{type:String,default:"",observer:"defaultValueChange",reflectToAttribute:!0,notify:!0},filteredValue:{type:String,computed:"filterValue(value, maxlength)"},showValue:{type:String,value:""},maxlength:{type:Number,value:140,reflectToAttribute:!0,observer:"maxlengthChanged"},type:{type:String,value:"text"},password:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1},cursorSpacing:{type:Number,value:0},cursor:{type:null,value:-1},style:{type:String,defaultValue:""},readonly:{type:Boolean,value:!1},clearable:{type:Boolean,value:!1},hasSuffix:{type:Boolean,computed:"_computeHasSuffix(clearable)"},_hoverColor:{type:String,value:"#3370FF"},_focusColor:{type:String,value:"#3370FF"}}}},{key:"observers",get:function(){return["typeChange(type, password)"]}}]),n}(Hr(Vo(vn(pn))));window.customElements.define(Uo.is,Uo);var Yo=o(['\n <style include="card-tt-textarea-style">\n </style>\n <div id="wrapper">\n <textarea id="textarea"\n class$="textarea-placeholder [[ _prefixedPlaceholderClass ]]"\n value="[[ value ]]"\n style="[[ styles ]]"\n placeholder="[[placeholder]]"\n disabled="[[ disabled ]]"\n ></textarea>\n <div id="compute" class="compute"></div>\n </div>\n '],['\n <style include="card-tt-textarea-style">\n </style>\n <div id="wrapper">\n <textarea id="textarea"\n class\\$="textarea-placeholder [[ _prefixedPlaceholderClass ]]"\n value="[[ value ]]"\n style="[[ styles ]]"\n placeholder="[[placeholder]]"\n disabled="[[ disabled ]]"\n ></textarea>\n <div id="compute" class="compute"></div>\n </div>\n ']),qo=function(e){function n(){return u(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return f(n,e),a(n,[{key:"ready",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"ready",this).call(this),void 0===this.$$focus&&(this.$$focus=!1)}},{key:"connectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.tttextarea=this.$.textarea,this.__scale=750/window.innerWidth,this.lineCount=0,this._attached=!0,this.checkRows(this.value),this._blurred=!0,this.styles=this.getComputedStyleString(),this.__updateTextArea=this.__updateTextArea.bind(this),document.addEventListener("pageReRender",this.__updateTextArea),this.__onInput=this.__onInput.bind(this),this.tttextarea.addEventListener("input",this.__onInput),this.__onFocus=this.__onFocus.bind(this),this.tttextarea.addEventListener("focus",this.__onFocus),this.__onBlur=this.__onBlur.bind(this),this.tttextarea.addEventListener("blur",this.__onBlur),this.__onMouseover=this.__onMouseover.bind(this),this.tttextarea.addEventListener("mouseover",this.__onMouseover),this.__onMouseout=this.__onMouseout.bind(this),this.tttextarea.addEventListener("mouseout",this.__onMouseout)}},{key:"getComputedStyleString",value:function(){var n=window.getComputedStyle(this);return Object.keys(n).filter(function(e){return-1<["fontFamily","fontSize","color","backgroundColor"].indexOf(e)}).reduce(function(e,t){return t&&n[t]?e+(t+": ")+n[t]+";":e},this.style)}},{key:"defaultValueChange",value:function(e){0<this.safeMaxlength&&e.length>this.safeMaxlength&&(e=e.slice(0,this.safeMaxlength)),this._attached&&(this.tttextarea.value=e),this._attached&&this.checkRows(e)}},{key:"checkPlaceholderStyle",value:function(e){this.$.placeholder.style.display=e?"none":(this._getComputePlaceholderStyle(),"")}},{key:"getComputedStyle",value:function(){var o=this;window.requestAnimationFrame(function(){var t=window.getComputedStyle(o),e=o.getBoundingClientRect(),n=["Left","Right"].map(function(e){return parseFloat(t["border"+e+"Width"])+parseFloat(t["padding"+e])}),r=["Top","Bottom"].map(function(e){return parseFloat(t["border"+e+"Width"])+parseFloat(t["padding"+e])}),i=o.tttextarea;i.style.width=e.width-n[0]-n[1]+"px",i.style.height=e.height-r[0]-r[1]+"px",i.style.fontWeight=t.fontWeight,i.style.fontSize=t.fontSize||"16px",i.style.color=t.color,i.style.lineHeight=Math.max(1.2*parseFloat(t.fontSize),parseFloat(t.lineHeight))+"px",i.style.textAlign=t.textAlign,o.$.compute.style.fontSize=t.fontSize||"16px",o.$.compute.style.width=i.style.width,o._styleMaxHeight=parseFloat(t.maxHeight.replace("px")),o.autoHeight&&o._lineHeight&&o._lineHeight>o._styleMaxHeight&&(o.style.maxHeight=o._lineHeight+"px"),o.disabled?i.setAttribute("disabled",!0):i.removeAttribute("disabled")})}},{key:"autoHeightChanged",value:function(e){var n=this;e&&this.getCurrentRows(this.value,function(e){var t=e.height<e.lineHeight?e.lineHeight:e.height;n.tttextarea.style.height=t+"px",n.getComputedStyle()})}},{key:"getCurrentRows",value:function(n,r){var i=this;window.requestAnimationFrame(function(){var e=window.getComputedStyle(i.$.compute),t=1.2*(parseFloat(e.fontSize)||16);i.$.compute.innerText=n,i.$.compute.appendChild(document.createElement("br")),r({height:Math.max(i.$.compute.scrollHeight,t),heightRpx:i.__scale*i.$.compute.scrollHeight,lineHeight:t,lineCount:Math.ceil(i.$.compute.scrollHeight/t)})})}},{key:"checkRows",value:function(e){var a=this;this.getCurrentRows(e,function(e){if(a.lastRows!=e.lineCount){if(a.lastRows=e.lineCount,a.autoHeight){var t=window.getComputedStyle(a),n=t.getPropertyValue("box-sizing")||t.getPropertyValue("-webkit-box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=e.height<e.lineHeight?e.lineHeight:e.height;"border-box"===n&&(o=o+r+i),a._lineHeight=o/(e.lineCount||1),a.style.height=o+"px",a.getComputedStyle()}a.triggerEvent("linechange",e)}})}},{key:"__updateTextArea",value:function(){this.checkAutoFocus(),this.getComputedStyle(),this.autoHeightChanged(this.autoHeight)}},{key:"__onInput",value:function(e){e.stopPropagation();var t=this.tttextarea.value;this.defaultValueChange(t),this.triggerEvent("input",{value:t,cursor:t.length})}},{key:"__onFocus",value:function(e){n.isMobileMode||this.disabled||(this.style.borderColor="#3370FF",this._blurred=!1),e.stopPropagation();var t=this.tttextarea.value;this.triggerEvent("focus",{value:t,height:"100px"})}},{key:"__onBlur",value:function(e){n.isMobileMode||this.disabled||(this.style.borderColor="",this._blurred=!0),e.stopPropagation();var t=this.tttextarea.value;this.triggerEvent("blur",{value:t,cursor:t.length}),this.triggerEvent("confirm",{value:t})}},{key:"__onMouseover",value:function(e){n.isMobileMode||this.disabled||(this.style.borderColor="#3370ff"),e.stopPropagation()}},{key:"__onMouseout",value:function(e){n.isMobileMode||this.disabled||!this._blurred||(this.style.borderColor=""),e.stopPropagation()}},{key:"getFormData",value:function(e){"function"==typeof e&&e(this.tttextarea.value)}},{key:"_placeholderStyleChange",value:function(e,t){if(e&&e!==t){var n=this.shadowRoot.querySelectorAll("style"),r=n[n.length-1];r.innerHTML||(r.innerHTML=""),r.innerHTML+="\n:host textarea::placeholder {"+e+"}\n:host textarea::-webkit-input-placeholder {"+e+"}"}}},{key:"checkAutoFocus",value:function(){(this.autoFocus||this.focus)&&this._couldFocus(!0)}},{key:"_couldFocus",value:function(e){this._attached&&(e?this.tttextarea.focus():this.tttextarea.blur())}},{key:"_getSafeMaxlength",value:function(e){return this.checkNumber(e,140)}},{key:"checkNumber",value:function(e,t){return"[object Number]"!==Object.prototype.toString.call(e)||isNaN(e)?t||0:e}},{key:"disconnectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("pageReRender",this.__updateTextArea),this.tttextarea.removeEventListener("input",this.__onInput),this.tttextarea.removeEventListener("focus",this.__onFocus),this.tttextarea.removeEventListener("blur",this.__onBlur),this.tttextarea.removeEventListener("mouseover",this.__onMouseover),this.tttextarea.removeEventListener("mouseout",this.__onMouseout)}},{key:"focus",get:function(){return this.$$focus},set:function(e){this.$$focus=this._deserializeValue(e,Boolean),this._couldFocus(this.$$focus)}}],[{key:"template",get:function(){return hn(Yo)}},{key:"is",get:function(){return"card-tt-textarea"}},{key:"properties",get:function(){return{value:{type:String,value:""},maxlength:{type:Number,value:140},safeMaxlength:{type:Number,value:140,computed:"_getSafeMaxlength(maxlength)"},placeholder:{type:String,value:""},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},hidden:{type:Boolean,value:!1},focus:{type:Boolean,value:!1},autoFocus:{type:Boolean,value:!1},placeholderStyle:{type:String,value:"",observer:"_placeholderStyleChange"},placeholderClass:{type:String,value:"textarea-placeholder"},autoHeight:{type:Boolean,value:!1,observer:"autoHeightChanged"},confirm:{type:Boolean,value:!0},bindinput:{type:String,value:""},bindfocus:{type:String},bindblur:{type:String},bindlinechange:{type:String},bindconfirm:{type:String},cursorSpacing:{type:Number,value:0},cursor:{type:null,value:-1},selectionStart:{type:null,value:-1},selectionEnd:{type:null,value:-1},style:{type:String,defaultValue:""}}}}]),n}(vn(pn));window.customElements.define(qo.is,qo);var Jo=document.createElement("div");Jo.setAttribute("style","display: none;"),Jo.innerHTML='<dom-module id="card-tt-video-style">\n <template>\n <style>\n :host {\n width: 300px;\n height: 225px;\n display: inline-block;\n line-height: 0;\n overflow: hidden;\n position: relative;\n z-index: 1;\n cursor: pointer;\n background: black;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n :host .mask {\n display: none;\n position: absolute;\n top: 0px;\n bottom: 0px;\n width: 100%;\n background: rgba(0,0,0,0.2);\n }\n\n :host .icon {\n top: 50%;\n position: absolute;\n width: 40px;\n height: 40px;\n left: 50%;\n margin-top: -20px;\n background-size: contain;\n margin-left: -20px;\n z-index: 2;\n }\n :host .play.icon {\n display: none;\n background: url(data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAABZVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8N/mJiAAAAdnRSTlMAAQIDBAULDBAREhMVGRscHTU2Ok1OUFFSU1RVVllaW1xhY2hpamtsb3BxcnN0dnd4eXp7hIaHiImLjI2Oj5CRk5SVlpeYm6eoq6yutLe4uby9v8HCw8TKzM7Q0dLU3d/h4uPk5ebo6err7O3u8fL3+Pn6+/3+4fTN4AAAAAFiS0dEdjFjyUEAAAGuSURBVDjLjZVnU8JAGIRPBMWucEFRERUroKjYUUERK9ixgV0pFkww7u+XMsIRkpD9uPPM3Lx77+0Rwkpncu/FP3OK7bq6dERJHcsvYPS81C6LNQV4IHW0Omm32exO31Ea4P3Gaq4/BTE6y9GSuLmoiGSvBDOEgCsHlWgkDgQNLNd4DH6NVosLCYg0lDl9BF9OKitXBmF9CdzC1xhV0HgG/tIcENxUUVMCrEWu9R1+qqIAUi0FcAfXVFU3COW5TkEcUQdHRT5/R4s4ozV0jvlcNAlUJDMX9lukoBuv9cSMV9Zz/ABPXmnuCXQRL8Kst1ZYnIuhSjICDznECmttFFdMOOhjXR/2yR0mZEAgvc64TsTJBwZkQeC0PNQg0kRAtwKIhZLbA55kYdEGKh99Unm00jAPM5Jh5OPJbFqk8UgC9ykGbsYbaw1n5a4wCRPRPWKaNT0H1UvhwX2d9jUj7XytxR0Tv9vyKx5ATJXj4lgvvJnmFIJqYAhJo6bnmv1/rtoLQHul5EtKCHIyc2xXllSx9m411J58kV7+ImFVq2aOU6tm7WVf/j6Az9ie9Pv4A40S42fNEfy1AAAAAElFTkSuQmCC);\n }\n :host .pause.icon {\n display: none;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAABR1BMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////86aXtaAAAAbHRSTlMAAQIDBAULDBAREhMVGRscHTU2Ok1OUFFSU1RWWVpbXGhpamtsb3BxcnN0dnd5enuEh4iJi4yNjo+Rk5WWl5ibp6irrK2utLe4ub/Bw8TKzM7Q0dLU3eHj5OXm6Onq6+zt7vHy9/j5+vv8/f5IDEQnAAAAAWJLR0RszAEwOwAAAYdJREFUOMuNlVdTwkAUhY8IYsW2sWLBhti7gogdsCvYATVqgsbz/599QGFFSPZ7uTOZb2bn3tw9C8i4OkK7aV3X9dTOZLsL1WhdvqfE3ZKvotYQMchccnVi0O8fDK4ln0gjXP/f68/ROp3VRBFt7tRitq9M88TI82FRRiBNRj2y5z2isS7+o8VMJupKnjvB16CoyOQb4+6iuMnXUVGFsTeGi33QDImqTJnsLXjNzwwLGyLMNQEAtnkhbLlkDADaTCtgL45Yhg/AIo9L3w5Mc1+uBU64ALgzlCbzQeblWiDEh1p08kE6hSTl+jP3DNsxz7ijKBKcwSFXnMU17uGa485ikGm8cMBZHOITTHY7iz00kGeXmqh8tHIzyuNRHngnH51/YZYdcN1y2mkpZnhTU75mn5/7cpXWDD7DaXFHrfcWAIgwZetpaW4AABpzjNqJMWbrla5r/ve6qgeAeqTAe0QzqlXoY+tvSBVi70oh9ioH6dkXM7120axpdtGsHval54PUU7vlz8c3FUfcIg+VN9YAAAAASUVORK5CYII=);\n }\n :host .replay.icon {\n display: none;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAABblBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+DpEQuAAAAeXRSTlMAAQIDBAULDBAREhMVGRscHTU2Ok1OUFFSU1RVVllaW1xoaWprbG1ub3BxcnN0dnd5enuEh4iJi4yNjo+Rk5WWl5iboaeoqaqrrrCxsrO0tre4ub/Bw8TKzM7P0NHS1N3g4eLj5OXm6Onq6+zt7vHy9vf4+fr7/P3+tbEvCgAAAAFiS0dEeaHc1NAAAAICSURBVDjLjZX7VxJBHMVHwrLykbojWJL5Klwo0p4mhKT0QONRmlpsKqmAD7RdbLz/fSzo7szswtn7057vfs6Z+d75zh1CePmGomnttKHiSmTQR9pp4PU+OP151e+K3U7oQLXwdnY8FBpXFwpHgB7vcXJjVbCN51SxROc2GCr3Jaw7BWxOKJImNSDZzXO3vkF/pzhFUwbyN23On0dNVVwVOUPWb4HvUZtW2mjmDHGrDxhRpa2eGhhtcb3HiCsdlED1bhP8gC3xzxOJ3EbK5O4ZbFKof2ISOMV084xe4rtQXgXkxdfxomFNGYIzGTjBKA5ukGEc8LVlcxxquxnBLlrGIJlH1gE2xL6OcNU8YuQL3gjLpBtUKFL4h+2AXVzAZ/IbYXFDH5t7VE+Qs2sqNHKCh9LWW/aE62zKKj3CETEQkJtsGb6GjFUJQid1jLifXBS7AsgvrRU5cAznwtJ8MwwP3EGzGd6eEiLceGFPsIc3fI03P8c1Yxo+jEN7mi/rj6+/wxe2PbSCIeLbwzOLLOD4aseC4THsdIljFviJi5waDEpH2Bwz0q9zgxvIMudQTLO/feaIJ8DbN7NaMowSP2ZUw2LzztypItnpcqVQ6fF0XevX19V7AHiPFDOkjCR1CaklMaRasffLQ+y5B+mPS5RHO0UzpZ2i2XvY288HcFpMy8/Hf0el4H/dtA1gAAAAAElFTkSuQmCC);\n }\n @-webkit-keyframes animal {\n 0%{\n transform: rotate(0deg);\n -ms-transform: rotate(0deg);\n -webkit-transform: rotate(0deg);\n }\n 100%{\n transform: rotate(-360deg);\n -ms-transform: rotate(-360deg);\n -webkit-transform: rotate(-360deg);\n }\n }\n :host .wait.icon {\n display: none;\n background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAB71BMVEUAAAD///////+/v/////////+q1f+fv/+ZzP////////////////////////+ixf////////////////+fv/elwfigvvr////////////////////8/P/8///////////////////////w9v////////////////+cufqauvrg6/zd5v3////b5/3////////////////////////////////////////////////////////G1/3H2P3////E1/3///////////+Vtvn///+UtPr///++0vv///////+90fv///+60Pv///+70Pz///////////////////+1zPz///////////////+MsPn///+Jr/mkwfulwfv///////////+hvvv///////+du/v///+GrPr///+Fqvr///////+Cqfn///////////+BqPn///9/qPn///96o/n///+Grfl4o/mGrPn///////////////////91oPh/p/r///////90oPh+pvr///////////////////92ofn///9zn/lnl/j///////////////91oPlckPhekfhgkvhZjfhajfhajvhfkfh5ovn///9XjPhYjfj///9MhPdNhfdOhfdRh/dSiPd3ofl5o/n////ndYVfAAAAnXRSTlMAAQIEBAUGCAoLDBAREhUWGRscHSAlMzU2Ok1OT09QUVJTVldZWltcX2BkaGhpaWtsb3BxcnN0dnd5enuBg4SFh4iJi4uMjI2Njo+PkZGTk5WWl5ibm6irrrG0tra2t7i5vb/Bw8PExMfKzNDQ0dLU1NXd4eHi4+Pj5OXm6Onp6err6+vs7e7x8vL09/f4+fr7/Pz8/f39/f39/v7+kY8i9gAAAAFiS0dEpFm+erkAAAHJSURBVDjLjZXpW4xRGMZvYyJCCi3nlRpL9sKU0qIIZZkyIoSppCxpyNJOQzQt5s3OlIeJ+w/1IdeoWd7z/r6e33Wd8zzXc+4HWIojp7TFP/F+bm7m6fU9K5GMzJNDJMnfIiIiH+9lJdTWNYXIQNuZI4U79+2vvzXwTSTSszne2x5guOuYoaJsvfz6p3w9HaOlNJP3D6gYqqZFHqUu9da2M3RWxZN3Z0Fepf/3nD4G3Soh5+blxeqoeJHBYpWEmnnpidZBs1QlpXFB6ha9DW/oURZ0yJctAIArfKAsmZQ+ANhkhousxepfkSwAtbytNLyUbsA5SrdOvCAfViGXwzpP5X2Svahkq1ZUz+UGrvGUXrwp/XjMw3qxXmbwlrv04kH5DJP5enGHRDDLbXqx4M93e1fv5ri9Ytz022tPA6/aa7iP5cjliNYzxpgDxzOW6cRyPllha8w6eRxARkg3uMXhdxsBoIm91i/08zwAYH2AXiuxmWNpdr7r0Vm67ATAoSl67ERKyRRbnctCyvQaCeq4ZNK3Jjb2HsbFXpGf9KbogtSouPuDoy6raDaMQndD2zgZ8qRZhv0/Bk9kJN0Li+uDnOhtKcl2LDv6C7QD+COqKDnTAAAAAElFTkSuQmCC);\n -webkit-animation: animal 1s infinite linear ;\n -webkit-transform-origin: center center;\n -ms-transform-origin: center center;\n transform-origin: center center;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(Jo);var Go=o(['\n <style include="card-tt-video-style">\n </style>\n <span id="playIcon" class="play icon"></span>\n <span id="pauseIcon" class="pause icon"></span>\n <span id="replayIcon" class="replay icon"></span>\n <span id="waitIcon" class="wait icon"></span>\n <div id="mask" class="mask"></div>\n <video \n id="video" \n poster="[[poster]]"\n autoplay="[[autoplay]]"\n controls="[[controls]]"\n muted="[[muted]]"\n style="width: 100%; height: 100%;"\n on-loadstart = "_handleLoadstart"\n on-play="_handlePlay"\n on-pause="_handlePause"\n on-ended="_handleEnd"\n on-canplay=\'_handleCanplay\'\n on-waiting="_handleWaiting"\n on-playing="_handlePlaying"\n ></video>\n '],['\n <style include="card-tt-video-style">\n </style>\n <span id="playIcon" class="play icon"></span>\n <span id="pauseIcon" class="pause icon"></span>\n <span id="replayIcon" class="replay icon"></span>\n <span id="waitIcon" class="wait icon"></span>\n <div id="mask" class="mask"></div>\n <video \n id="video" \n poster="[[poster]]"\n autoplay="[[autoplay]]"\n controls="[[controls]]"\n muted="[[muted]]"\n style="width: 100%; height: 100%;"\n on-loadstart = "_handleLoadstart"\n on-play="_handlePlay"\n on-pause="_handlePause"\n on-ended="_handleEnd"\n on-canplay=\'_handleCanplay\'\n on-waiting="_handleWaiting"\n on-playing="_handlePlaying"\n ></video>\n ']),Xo=function(e){function n(){return u(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return f(n,e),a(n,[{key:"connectedCallback",value:function(){var t=this;p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.init(),this.__onRouteChange=function(e){return t.onRouteChange(e)},document.addEventListener("onRouteChange",this.__onRouteChange)}},{key:"disconnectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("onRouteChange",this.__onRouteChange)}},{key:"init",value:function(){this._changeStatus("waiting"),this._isHover=!1,this._loopCount=0,this._waitInLoopCount=0,this._pausedInLoopCount=0}},{key:"srcChange",value:function(e,t){var n=this,r=this.__dirname_abs;r&&(r=r.slice(1,r.lastIndexOf(".")));var i=this.__widgetDirBase,o=r||this.__widgetRoute||window.__route__,a=function(e){n.$.video.src=e};if(e&&e!==t){var s=e;"//"===(s=s?s.toString().trim():"").slice(0,2)&&(s="http:"+s),mn(s).file||mn(s).http?a(s):mn(s).ttfile?tt_w.getProtocolXPath(s,a):a([i,tt_w.getRealRoute(o,s)].join("/"))}}},{key:"autoplayChange",value:function(e){e&&this._changeIcon("playIcon","none")}},{key:"onRouteChange",value:function(){var e=this.$.video;e.paused||e.pause()}},{key:"_handle",value:function(e){this.triggerEvent(e.type)}},{key:"_handleLoadstart",value:function(e){this._changeStatus("waiting"),this._handle(e)}},{key:"_handlePlay",value:function(e){this._handle(e)}},{key:"_handleCanplay",value:function(e){this._changeStatus("canplay"),this._handleCanplay=function(){}}},{key:"_handleWaiting",value:function(e){this._waitInLoopCount++,this._changeStatus("waiting"),this._handle(e)}},{key:"_handlePlaying",value:function(e){this._changeStatus("playing"),this._handle(e)}},{key:"_handleEnd",value:function(e){this._changeStatus("isEnd"),this._handle(e),this.loop&&(this._loopCount++,this._waitInLoopCount=0,this._pausedInLoopCount=0,this.$.video.play())}},{key:"_handlePause",value:function(e){this._pausedInLoopCount++,this._changeStatus("paused"),this._handle(e)}},{key:"_handlerClick",value:function(e){if(!this.controls)switch(this.status){case"paused":case"canplay":case"isEnd":this._changeStatus("playing"),this.$.video.play();break;case"playing":this._changeStatus("paused"),this.$.video.pause();break;default:return}}},{key:"_handlerMouseenter",value:function(e){this._isHover=!0;var t=this.$.video;t.paused||t.isEnd||this._changeIcon("pauseIcon","block")}},{key:"_handlerMouseleave",value:function(e){this._isHover=!1,this._changeIcon("pauseIcon","none")}},{key:"_changeStatus",value:function(e){switch(e){case"waiting":this._showIcon("waitIcon");break;case"canplay":this._showIcon("playIcon");break;case"playing":this._showIcon("pauseIcon");break;case"isEnd":this._showIcon("replayIcon");break;case"paused":this._showIcon("playIcon")}this.status=e}},{key:"_showIcon",value:function(t){var n=this;["playIcon","pauseIcon","replayIcon","waitIcon"].filter(function(e){return e!==t}).forEach(function(e){return n._changeIcon(e,"none")});var e=0===this._loopCount,r=1===this._waitInLoopCount,i=1===this._pausedInLoopCount;("pauseIcon"!==t||this._isHover&&(e||!i))&&("waitIcon"===t&&!e&&r||"replayIcon"===t&&this.loop||t&&this._changeIcon(t,"block"))}},{key:"_changeIcon",value:function(e,t){var n=this.$.video;this.controls||n.waiting||(this.$[e].style.display=t,this._changeMask())}},{key:"_changeMask",value:function(){var e=this.$.playIcon,t=this.$.pauseIcon,n=this.$.replayIcon,r=this.$.waitIcon,i=this.$.mask,o=function(e){return"block"===e.style.display};o(e)||o(t)||o(n)||o(r)?i.style.display="block":i.style.display="none"}},{key:"listeners",get:function(){return{tap:"_handlerClick",mouseenter:"_handlerMouseenter",mouseleave:"_handlerMouseleave"}}}],[{key:"template",get:function(){return hn(Go)}},{key:"is",get:function(){return"card-tt-video"}},{key:"properties",get:function(){return{src:{type:String,observer:"srcChange"},controls:{type:Boolean,value:!1},loop:{type:Boolean,value:!1},muted:{type:Boolean,value:!1},initialTime:{type:Number,value:0},autoplay:{type:Boolean,value:!1,observer:"autoplayChange"},poster:{type:String}}}}]),n}(vn(Vo(pn)));window.customElements.define(Xo.is,Xo);var Ko=o(['\n <style>\n :host {\n display: block;\n -webkit-user-select: none;\n user-select: none;\n }\n #wrapper {\n -webkit-tap-highlight-color: transparent;\n }\n ::slotted(*) {\n -webkit-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n }\n </style>\n <div id="wrapper">\n <slot></slot>\n </div>\n '],['\n <style>\n :host {\n display: block;\n -webkit-user-select: none;\n user-select: none;\n }\n #wrapper {\n -webkit-tap-highlight-color: transparent;\n }\n ::slotted(*) {\n -webkit-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n }\n </style>\n <div id="wrapper">\n <slot></slot>\n </div>\n ']),Zo=function(e){return e=parseInt(e),isNaN(e)?"":e<10?"0"+e:e.toString()},ea=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){var e=this;p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),document.addEventListener("onKeyboardShow",function(){e.__hasKeyboard=!0}),document.addEventListener("onKeyboardComplete",function(){e.__hasKeyboard=!1,"function"==typeof e.__whenKeyboardComplete&&(e.__whenKeyboardComplete(),e.__whenKeyboardComplete=null)})}},{key:"resetFormData",value:function(){"selector"==this.mode?this.value=-1:"region"===this.mode||"multiSelector"===this.mode?this.value=[]:this.value=""}},{key:"getFormData",value:function(e){if(this.__pickerShow)this.__formCallback=e;else if("function"==typeof e){e("region"===this.mode||"multiSelector"===this.mode?Array.isArray(this.value)?this.value:[]:this.value)}}},{key:"formGetDataCallback",value:function(){"function"==typeof this.__formCallback&&this.__formCallback(this.value),this.__formCallback=void 0}},{key:"showPickerView",value:function(){this.__hasKeyboard?this.__whenKeyboardComplete=this._showPickerView:this._showPickerView()}},{key:"_showPickerView",value:function(){this.__pickerShow||("date"==this.mode||"time"==this.mode?this.showDatePickerView():"multiSelector"===this.mode?this.showMultiPickerView():"region"===this.mode?this.showRegionView():"selector"===this.mode&&this.showSelector())}},{key:"showSelector",value:function(e){var t=this;if(!this.disabled){var n=parseInt(this.value);(isNaN(n)||n>=this.range.length)&&(n=0);var r=[];if(this.rangeKey)for(var i=0;i<this.range.length;i++){var o=this.range[i];r.push(o[this.rangeKey]+"")}else for(var a=0;a<this.range.length;a++)r.push(this.range[a]+"");ttJSBridge_w.invoke("showPickerView",d({array:r,current:n,mode:this.mode},this._getPosition()),function(e){/:ok/.test(e.errMsg)?(t.value=e.index.toString(),t.triggerEvent("change",{value:t.value})):t.triggerEvent("cancel",{}),t.resetPickerState(),t.formGetDataCallback()}),this.__pickerShow=!0}}},{key:"showDatePickerView",value:function(){var t=this;if(!this.disabled){var e=this.value;if(!e){var n=new Date,r=n.getFullYear(),i=Zo(n.getMonth()+1),o=Zo(n.getDate()),a=Zo(n.getHours()),s=Zo(n.getMinutes());e="date"==this.mode?r+"-"+i+"-"+o:a+":"+s}ttJSBridge_w.invoke("showDatePickerView",d({range:{start:this.start,end:this.end},mode:this.mode,current:e,fields:this.fields},this._getPosition()),function(e){/:ok/.test(e.errMsg)?(t.value=e.value,t.triggerEvent("change",{value:t.value})):t.triggerEvent("cancel",{}),t.resetPickerState(),t.formGetDataCallback()}),this.__pickerShow=!0}}},{key:"showMultiPickerView",value:function(e,t,n){var r=this;if(!this.disabled){var i=[],o=[];if(void 0!==e)this.value=i=e.current,this.range=o=e.array;else{for(var a=0;a<this.range.length;a++){this.value&&Array.isArray(this.value)?(i.push(parseInt(this.value[a])),(isNaN(i[a])||i[a]>=this.range[a].length)&&(i[a]=0)):i.push(0);var s=[];if(this.rangeKey)for(var l=0;l<this.range[a].length;l++){var c=this.range[a][l];s.push(c[this.rangeKey]+"")}else for(var u=0;u<this.range[a].length;u++)s.push(this.range[a][u]+"");o.push(s)}this.value&&Array.isArray(this.value)||(this.value=i)}5<o.length&&(console.error("showMultiPickerView"),o=o.slice(0,5),i=i.slice(0,5)),ttJSBridge_w.invoke("showMultiPickerView",d({array:o,current:i,mode:this.mode,hPosition:this.hPosition,vPosition:this.vPosition},this._getPosition()),function(e){/:ok/.test(e.errMsg)?(r.value=e.current,r.triggerEvent("change",{value:"function"==typeof n?n(r.value):r.value})):r.triggerEvent("cancel",{}),r.resetPickerState(),r.formGetDataCallback()}),this.__pickerShow=!0,this.__multi_picker_watching=!0,ttJSBridge_w.on("onMultiPickerViewChange",function(e){r.__pickerShow&&r.value[e.column]!==e.current&&(r.value[e.column]=e.current,"function"==typeof t?t(e):r.triggerEvent("columnchange",{column:e.column,value:e.current}))})}}},{key:"showRegionView",value:function(){if(!this.disabled){var e=this.value;e&&Array.isArray(e)||(e=[]);var t=this;ttJSBridge_w.invoke("showRegionPickerView",{current:e,customItem:this.customItem},function(e){/:ok/.test(e.errMsg)?(t.value=e.value,t.triggerEvent("change",{value:t.value})):t.triggerEvent("cancel",{}),t.resetPickerState(),t.formGetDataCallback()}),this.__pickerShow=!0}}},{key:"resetPickerState",value:function(){this.__pickerShow=!1}},{key:"valueChanged",value:function(l,c){var u=this;this.__pickerShow&&this.__multi_picker_watching&&function t(n,r){if(n<r)if(l[n]!==c[n]){var i=l[n]>=u.range[n].length?0:l[n],e=[];if(u.rangeKey)for(var o=0;o<u.range[n].length;o++){var a=u.range[n][o];e.push(a[u.rangeKey]+"")}else for(var s=0;s<u.range[n].length;s++)e.push(u.range[n][s]+"");ttJSBridge_w.invoke("updateMultiPickerView",{column:n,array:e,current:i},function(e){/:ok/.test(e.errMsg)&&(u.value[n]=i,t(n+1,r))})}else t(n+1,r)}(0,l.length)}},{key:"rangeChanged",value:function(l,c){var u=this;this.__pickerShow&&this.__multi_picker_watching&&function t(n,r){if(n<r)if(u._diffArray(l[n],c[n]))t(n+1,r);else{var i=u.value[n]>=l[n].length?0:u.value[n],e=[];if(u.rangeKey)for(var o=0;o<l[n].length;o++){var a=l[n][o];e.push(a[u.rangeKey]+"")}else for(var s=0;s<l[n].length;s++)e.push(l[n][s]+"");ttJSBridge_w.invoke("updateMultiPickerView",{column:n,array:e,current:i},function(e){/:ok/.test(e.errMsg)&&(u.value[n]=i,t(n+1,r))})}}(0,l.length)}},{key:"_diffArray",value:function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if("object"===yn(e[n])&&"object"===yn(t[n])){if(e[n][this.rangeKey]!==t[n][this.rangeKey])return!1}else if(yn(e[n])!==yn(t[n])||e[n]!==t[n])return!1;return!0}},{key:"_getPosition",value:function(){var e=this.getBoundingClientRect();return{top:e.top,left:e.left,bottom:e.bottom,right:e.right}}},{key:"listeners",get:function(){return{tap:"showPickerView"}}}],[{key:"template",get:function(){return hn(Ko)}},{key:"is",get:function(){return"card-tt-picker"}},{key:"properties",get:function(){return{range:{type:Array,value:[],observer:"rangeChanged"},value:{type:Object,observer:"valueChanged"},mode:{type:String,value:"selector"},fields:{type:String,value:"day"},start:{type:String,value:""},end:{type:String,value:""},disabled:{type:Boolean,value:!1},rangeKey:{type:String,value:""},customItem:{type:String},hPosition:{type:String,value:"left"}}}}]),t}(Hr(vn(pn)));window.customElements.define(ea.is,ea);var ta=document.createElement("div");ta.setAttribute("style","display: none;"),ta.innerHTML='<dom-module id="card-tt-data-picker-style">\n <template>\n <style>\n :host {\n display: block;\n width: 280px;\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);\n border: solid 1px #e4e5e7;\n background-color: #ffffff;\n -webkit-user-select: none;\n user-select: none;\n overflow: hidden;\n }\n .header {\n display: flex;\n height: 39px;\n width: 100%;\n box-sizing: border-box;\n line-height: 39px;\n font-size: 14px;\n font-weight: 500;\n padding-left: 18px;\n padding-right: 18px;\n color: #1f2329;\n }\n .header .time {\n flex: 1;\n -webkit-flex: 1;\n text-align: center;\n }\n .header .icon-container {\n display: flex;\n align-items: center;\n }\n .header .icon-container .icon {\n display: inline-block;\n width: 16px;\n height: 16px;\n background-size: cover;\n cursor: pointer;\n }\n .header .icon-container .icon.margin {\n margin-left:10px;\n }\n .header .icon-container .icon.rotate {\n transform: rotate(180deg);\n }\n .header .icon-container .icon.month {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAfxJREFUWAntlElLw0AUx9/LorZR0ZML4gJF/QIieFHQqDfRQ0BaKMV60Pop/ApFRIIUtCjYk0dB0JML7nfB5e6CCk03xxlqoNaSTmJuJpeZzHt5/9/830wAvMdz4L87gH81QNe3WgwgMQHljVhUu7VbT7L7QWn+SmKn1chlDwBIP8FsnsaWS+M8c4EnqVIOE//8FqfxG5D9K5Xyqq05Aljb3GwzxRHxGmuV0aXwzFM1sUpx2y1g4jkDme19gHBVhzVj0fDMc6XiPGu2AExxQkgfAl5ScTUa1RyLM0DuWxBf327Hz/wBIdDLxAUFxxaDwReeXVrlcAH8EEe8EPyouiHOwKq2QNeTHZnizgOIcK5IihoJTr9a7cpOzPIW0F4LGYB9anuA2n6mSPVqJOKeOAO1BEilUrRFRDR3lFVyxJy7NVoCaJpWECVJpXf9gQAZyL1m9pLJZKNb4qwO1yFcTWx3F/KFQ9qSLvrBaZMfx0Oh0JsbIJYOmAILkdl7URJHik7A4EsaXHOCywETpNQJQDxp9sHEX52wBcBASiGoI8c+oWFibm7q3YS0O9oG+AUBcOQTGyedQjgCYBC6vtNjkMwhnXbSIo4huA4hEyx/5ue1uzqsHaHrj/TnMJQufCyW5/C8OwZgxRmEJEvD9CzEZRl3eQS9HM8Bz4FyB74Ajk+++wXFC2kAAAAASUVORK5CYII=)\n }\n .header .icon-container .icon.year {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAkdJREFUWAntVEtrFEEQrpqHye5o1JMaxAcE4x8IghcDZoy3kBwGZBfCks3BxF/hXwhBwhACZjGwe/IoCMnJBz5i7oLRuyaokH2m7SYW9k56pma8ZvpS1fN9VV/N19MDkK/cgZPuAP6vAWH47EITxKKF7tPFavA52ofDie9QkiUur9UvNjvtTQBxU2C7K2sf6/UcrnMtfZMmV80P/4pL/g64xWW9jsN1rsozDbCyvn6JxBHxEw54dx/NznynphxOPD2mPgLVvNNEZfsoIGwP4qmJ6uzMD2rG4cSLxlQDUHMhxCgCfpTifrUaHBOPw6Oi+p69BUurG8N42N0UAm4occvDiYVSaY+acDjx4mLiAH3NET9YRfRjxQ14nKj+PPYIwrB2uXX05iOI8N5zPL9Smt6nYg4nHheNt0CepdUCeCltH5G2v/Oc036l8k+cwzlRHTcO0Gg05NEIm4htryMoV5HDdS6XGwcIgqBnO44v7/pXAWKss996UavVhqiZCV+p188SniUmfoRP1jau9bq9LWn5VUl8e66I98rl8k8S4HDiJUWjA1TwsPJg13bs8SMn4NbeAfQ5weHUJykmOkCF+psC4pvzBZiMc8KEUx9TTDWAKtSHkI68LlhnJufmpn5RUw4nXjSmHkAV9okAvCrYQ/djhzDgUXG1zzSAKgjD+vWmaG3J9IosPjYEh6se+kr8CHUi5fPzwZdBHBiX+2/y53D7oPd7gTAVOVznqjzzAKpIiTiuc0d+C0uui8/VM31xuM7N89yB3IE/xst93hovva0AAAAASUVORK5CYII=)\n }\n .container {\n box-sizing: border-box;\n padding: 16px 19px;\n border-top: 1px solid #e4e5e7;\n border-bottom: 1px solid #e4e5e7;\n font-size: 14px;\n }\n .container .row {\n margin-bottom: 6px;\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n }\n .container .cell.title{\n font-weight: 600;\n cursor: unset;\n }\n .container .cell:first-child {\n margin-left: 0px;\n }\n .container .cell {\n display: inline-block;\n width: 24px;\n height: 24px;\n text-align: center;\n border-radius: 12px;\n line-height: 24px;\n color: #1f2329;\n cursor: pointer;\n }\n .container .cell.select {\n background-color: #DEE0E3;\n }\n .container .cell.grey {\n color: #c3c6cb;\n }\n .container .cell.current {\n background-color: #3370ff;\n color: #ffffff;\n }\n .container .cell:hover {\n background-color: #EFF0F1;\n transition: background-color .1s linear;\n }\n .container .cell.current:hover {\n background-color: #3370ff;\n }\n .container .cell.title:hover {\n background-color: white;\n }\n .footer {\n height: 39px;\n width: 100%;\n line-height: 39px;\n text-align: center;\n font-size: 14px;\n font-weight: normal;\n font-style: normal;\n font-stretch: normal;\n letter-spacing: normal;\n color: #3370ff; \n cursor: pointer; \n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ta);var na=o(['\n <style include="card-tt-data-picker-style"></style>\n <div class="header">\n <div class="icon-container">\n <span class="icon year" on-click="_yearPre"></span>\n <span class="icon month margin" on-click="_monthPre"></span>\n </div>\n <div class="time" id="headerTime"></div>\n <div class="icon-container">\n <span class="icon month rotate" on-click="_monthNext"></span>\n <span class="icon year rotate margin" on-click="_yearNext"></span>\n </div>\n </div>\n <div class="container">\n <div class="row">\n <span class="cell title grey">[[dayNames.0]]</span>\n <span class="cell title grey">[[dayNames.1]]</span>\n <span class="cell title grey">[[dayNames.2]]</span>\n <span class="cell title grey">[[dayNames.3]]</span>\n <span class="cell title grey">[[dayNames.4]]</span>\n <span class="cell title grey">[[dayNames.5]]</span>\n <span class="cell title grey">[[dayNames.6]]</span>\n </div>\n <div id="days" on-click="_dayClick"></div>\n </div>\n <div class="footer" on-click="_todayClick">[[getTodayText()]]</div>\n '],['\n <style include="card-tt-data-picker-style"></style>\n <div class="header">\n <div class="icon-container">\n <span class="icon year" on-click="_yearPre"></span>\n <span class="icon month margin" on-click="_monthPre"></span>\n </div>\n <div class="time" id="headerTime"></div>\n <div class="icon-container">\n <span class="icon month rotate" on-click="_monthNext"></span>\n <span class="icon year rotate margin" on-click="_yearNext"></span>\n </div>\n </div>\n <div class="container">\n <div class="row">\n <span class="cell title grey">[[dayNames.0]]</span>\n <span class="cell title grey">[[dayNames.1]]</span>\n <span class="cell title grey">[[dayNames.2]]</span>\n <span class="cell title grey">[[dayNames.3]]</span>\n <span class="cell title grey">[[dayNames.4]]</span>\n <span class="cell title grey">[[dayNames.5]]</span>\n <span class="cell title grey">[[dayNames.6]]</span>\n </div>\n <div id="days" on-click="_dayClick"></div>\n </div>\n <div class="footer" on-click="_todayClick">[[getTodayText()]]</div>\n ']),ra={getDaysInMonth:function(e,t){return new Date(e,t,0).getDate()},monthDayWeek:function(e,t,n){return new Date(e,t-1,n).getDay()},getZeroString:function(e){return e<10?"0"+e:String(e)},getLastMonth:function(e){var t=e;return 1===e?t=12:t-=1,t},getLastYear:function(e,t){return 1===t?e-1:e},getNextMonth:function(e){var t=e;return 12===t?t=1:t+=1,t},getNextYear:function(e,t){return 12===t?e+1:e},getLastMonthDays:function(e,t){var n=this.getLastMonth(t),r=this.getLastYear(e,t);return this.getDaysInMonth(r,n)},getDays:function(e,t){var n=[],r=this.getDaysInMonth(e,t),i=this.getLastMonth(t),o=this.getLastYear(e,t),a=this.getNextMonth(t),s=this.getNextYear(e,t),l=this.getLastMonthDays(e,t),c=this.monthDayWeek(e,t,1),u=this.monthDayWeek(e,t,r),d=void 0;for(d=1;d<=r;)n.push({year:e,month:this.getZeroString(t),day:this.getZeroString(d)}),d+=1;for(d=0;d<c;)n.unshift({year:o,month:this.getZeroString(i),day:this.getZeroString(l-d),grey:!0}),d+=1;for(d=1;d<7-u;)n.push({year:s,month:this.getZeroString(a),day:this.getZeroString(d),grey:!0}),d+=1;return n},checkEqual:function(e,t){return parseInt(e.year,10)===parseInt(t.year,10)&&(parseInt(e.month,10)===parseInt(t.month,10)&&parseInt(e.day,10)===parseInt(t.day,10))},getMonthEn:function(e){return["January","February","March","April","May","June","July","August","September","October","November","December"][e-1]}},ia=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"computeDayNames",value:function(e){return"zh_CN"===e?["日","一","二","三","四","五","六"]:["Su","Mo","Tu","We","Th","Fr","Sa"]}},{key:"getTodayText",value:function(){return"zh_CN"===this.language?"今天":"Today"}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this);var e=new Date;this.selectYear&&this.selectMonth&&this.selectDay||this.setProperties({selectYear:e.getFullYear(),selectMonth:e.getMonth()+1,selectDay:e.getDate()}),this._currentTime={year:this.selectYear,month:this.selectMonth,day:this.selectDay},this._startDate=null,this._renderDays(this.selectYear,this.selectMonth,this.selectDay)}},{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.addEventListener("click",function(e){e.stopPropagation()})}},{key:"_yearPre",value:function(e){this._currentTime.year-=1,this._renderDays(this._currentTime.year,this._currentTime.month,this._currentTime.day),e.stopPropagation()}},{key:"_monthPre",value:function(e){var t=this._currentTime,n=t.year,r=t.month;1===r?(r=12,n-=1):r-=1,this._currentTime.year=n,this._currentTime.month=r,this._renderDays(n,r,this._currentTime.day),e.stopPropagation()}},{key:"_yearNext",value:function(e){this._currentTime.year+=1,this._renderDays(this._currentTime.year,this._currentTime.month,this._currentTime.day),e.stopPropagation()}},{key:"_monthNext",value:function(e){var t=this._currentTime,n=t.year,r=t.month;12===r?n+=r=1:r+=1,this._currentTime.year=n,this._currentTime.month=r,this._renderDays(n,r,this._currentTime.day),e.stopPropagation()}},{key:"_dayClick",value:function(e,t){var n=e.target;if(!0===t){var r=new Date;this.selectYear=r.getFullYear(),this.selectMonth=ra.getZeroString(r.getMonth()+1),this.selectDay=ra.getZeroString(r.getDate())}else"span"===n.tagName.toLowerCase()&&(this.selectYear=n.dataset.year,this.selectMonth=n.dataset.month,this.selectDay=n.dataset.day);this.dispatchEvent(new CustomEvent("daySelect",{detail:{year:this.selectYear,month:this.selectMonth,day:this.selectDay}})),e.stopPropagation()}},{key:"_todayClick",value:function(e){this._dayClick(e,!0)}},{key:"_renderDays",value:function(e,t){var i=this,n=new Date,o=n.getFullYear(),a=n.getMonth()+1,s=n.getDate(),r=ra.getDays(e,t),l=this.$.days,c=this.$.headerTime,u="";r.forEach(function(e,t){var n,r;t%7==0&&(u+='<div class="row">'),u+="<span \n data-year="+e.year+" \n data-month="+e.month+" \n data-day="+e.day+' \n class="'+(n=e,r="cell ",ra.checkEqual(n,{year:o,month:a,day:s})?r+="current ":ra.checkEqual(n,{year:i.selectYear,month:i.selectMonth,day:i.selectDay})&&(r+="select "),n.grey&&(r+="grey "),r)+'">'+e.day+"</span>",0!==t&&(t+1)%7==0&&(u+="</div>")}),l.innerHTML=u,"zh_CN"===this.language?c.innerText=e+"年 "+t+"月":c.innerText=ra.getMonthEn(t)+" "+e}}],[{key:"template",get:function(){return hn(na)}},{key:"properties",get:function(){return{start:{type:String},end:{type:String},mode:{type:String},fields:{type:String,default:"day"},selectYear:{type:String},selectMonth:{type:String},selectDay:{type:String},language:{type:String,default:"zh_CN"},dayNames:{type:Array,computed:"computeDayNames(language)"}}}},{key:"is",get:function(){return"card-tt-data-picker"}}]),t}(vn(pn));window.customElements.define(ia.is,ia);var oa=/["'&<>]/,aa=function(e){var t,n=""+e,r=oa.exec(n);if(!r)return n;var i="",o=0,a=0;for(o=r.index;o<n.length;o++){switch(n.charCodeAt(o)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==o&&(i+=n.substring(a,o)),a=o+1,i+=t}return a!==o?i+n.substring(a,o):i};var sa=document.createElement("div");sa.setAttribute("style","display: none;"),sa.innerHTML='<dom-module id="card-tt-selector-picker-style">\n <template>\n <style>\n :host {\n display: inline-block;\n }\n #container .column::-webkit-scrollbar {\n width: 3px;\n }\n #container .column::-webkit-scrollbar-thumb {\n border-radius: 1.5px;\n background-color: #c2c6cc;\n border-bottom: none;\n border-top: none;\n }\n #container {\n display: flex;\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);\n border: solid 1px #e4e5e7;\n background-color: #ffffff;\n -webkit-user-select: none;\n user-select: none;\n font-size: 14px;\n color: #39424e;\n overflow: hidden;\n }\n #container .column {\n overflow-y: overlay;\n padding-top: 5px;\n padding-bottom: 5px;\n box-sizing: border-box;\n border-right: 1px solid #e4e5e7; \n max-height: 190px;\n overflow-y: auto;\n }\n #container .column:last-child {\n border: none;\n }\n #container .column .row {\n display: flex;\n height: 36px;\n align-items: center;\n padding-left: 16px;\n padding-right: 10px;\n cursor: pointer;\n }\n #container .column .row.select,\n #container .column .row:hover {\n background-color: #EFF0F1;\n color: #3370ff;\n font-weight: 500;\n }\n #container .column .row.select {\n background-color: #DEE0E3;\n }\n #container .column .row span {\n display: inline-block;\n }\n #container .column .row .text {\n flex: 1;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n #container .column .row .icon {\n width: 16px;\n height: 16px;\n margin-left: 14px;\n background-size: cover;\n transform: rotate(180deg);\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAfxJREFUWAntlElLw0AUx9/LorZR0ZML4gJF/QIieFHQqDfRQ0BaKMV60Pop/ApFRIIUtCjYk0dB0JML7nfB5e6CCk03xxlqoNaSTmJuJpeZzHt5/9/830wAvMdz4L87gH81QNe3WgwgMQHljVhUu7VbT7L7QWn+SmKn1chlDwBIP8FsnsaWS+M8c4EnqVIOE//8FqfxG5D9K5Xyqq05Aljb3GwzxRHxGmuV0aXwzFM1sUpx2y1g4jkDme19gHBVhzVj0fDMc6XiPGu2AExxQkgfAl5ScTUa1RyLM0DuWxBf327Hz/wBIdDLxAUFxxaDwReeXVrlcAH8EEe8EPyouiHOwKq2QNeTHZnizgOIcK5IihoJTr9a7cpOzPIW0F4LGYB9anuA2n6mSPVqJOKeOAO1BEilUrRFRDR3lFVyxJy7NVoCaJpWECVJpXf9gQAZyL1m9pLJZKNb4qwO1yFcTWx3F/KFQ9qSLvrBaZMfx0Oh0JsbIJYOmAILkdl7URJHik7A4EsaXHOCywETpNQJQDxp9sHEX52wBcBASiGoI8c+oWFibm7q3YS0O9oG+AUBcOQTGyedQjgCYBC6vtNjkMwhnXbSIo4huA4hEyx/5ue1uzqsHaHrj/TnMJQufCyW5/C8OwZgxRmEJEvD9CzEZRl3eQS9HM8Bz4FyB74Ajk+++wXFC2kAAAAASUVORK5CYII=)\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(sa);var la=o(['\n <style include="card-tt-selector-picker-style"></style>\n <div on-click="_itemClick" id="container"></div>\n '],['\n <style include="card-tt-selector-picker-style"></style>\n <div on-click="_itemClick" id="container"></div>\n ']),ca=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this)}},{key:"_computeColumnMinWidth",value:function(e,t,n){var r=t.length;return"selector"===n?e-2:parseInt((e-2)/r,10)}},{key:"_computeColumnMaxWidth",value:function(e,t,n){if("selector"===n)return e-2;var r=void 0;return r="left"===this.hPosition?window.innerWidth-2-this.left:this.right-2,parseInt(r/t.length,10)}},{key:"_render",value:function(){var r=this,i="";"selector"===this.mode?i+=this._createColumn(this.range,0,!0):this.range.forEach(function(e,t,n){i+=r._createColumn(e,t,t===n.length-1)}),this.$.container.innerHTML=i,this._setScroll()}},{key:"_setScroll",value:function(){var i=this._recordedScrollTops||[],e=this.$.container.querySelectorAll(".column"),o=[].concat(this.value);e.forEach(function(e,t){var n=Number(o[t])||0,r=Math.max(36*(n-2),0);i[t]&&(r=i[t]),e.scrollTop=r})}},{key:"_recordScrollTop",value:function(n){var r=this;this._recordedScrollTops=[],this.$.container.querySelectorAll(".column").forEach(function(e,t){t<=n&&r._recordedScrollTops.push(e.scrollTop)})}},{key:"_createColumn",value:function(e,n,r){var i=this,o="";return e.forEach(function(e,t){o+=i._createRow(e,t,n,r)}),-1===this.columnContainerMaxHeight?"\n <div class='column' style='min-width: "+this.columnMinWidth+"px; max-width: "+this.columnMaxWidth+"px'>\n "+o+"\n </div>\n ":"\n <div class='column' style='max-height:"+this.columnContainerMaxHeight+";min-width: "+this.columnMinWidth+"px; max-width: "+this.columnMaxWidth+"px'>\n "+o+"\n </div>\n "}},{key:"_createRow",value:function(e,t,n,r){return e=aa(e),"\n <div data-col="+n+" data-row="+t+" \n class='row "+(this._isRowSelect(t,n,r)?"select":"")+'\'>\n <span class="text">'+e+'</span>\n <span class="icon" style="display: '+this._getIconDisplay(e,t,r)+'"></span>\n </div>\n '}},{key:"_isRowSelect",value:function(e,t,n){var r=[].concat(this.value),i=Number(r[t]);return(!n||!isNaN(i))&&(i=i||0)===e}},{key:"_getIconDisplay",value:function(e,t,n){return n?"none":"inline-block"}},{key:"_itemClick",value:function(e){var t=e.target;"span"===t.tagName.toLowerCase()&&(t=t.parentElement);var n=t.dataset,r=n.col,i=n.row;if(void 0!==r){r=Number(r),i=Number(i);var o=r===this.range.length-1||"selector"===this.mode;if(o||!(-1<t.className.indexOf("select"))){if(!o){for(var a=t.parentElement.children,s=0;s<a.length;){var l=a[s];if(l!==t&&-1<l.className.indexOf("select")){l.className=l.className.replace("select","");break}s+=1}t.className+="select",this.value[r]=i,this._recordScrollTop(r)}this.dispatchEvent(new CustomEvent("itemSelect",{detail:{col:r,row:i,isLastCol:o}})),e.stopPropagation()}}}}],[{key:"template",get:function(){return hn(la)}},{key:"properties",get:function(){return{mode:{type:String},range:{type:Array},value:{type:Array},left:{type:Number},right:{type:Number},hPosition:{type:String},width:{type:Number},columnContainerMaxHeight:{type:String},columnMinWidth:{type:String,computed:"_computeColumnMinWidth(width, range, mode)"},columnMaxWidth:{type:String,computed:"_computeColumnMaxWidth(width, range, mode)"}}}},{key:"is",get:function(){return"card-tt-selector-picker"}},{key:"observers",get:function(){return["_render(range, value)"]}}]),t}(vn(pn));window.customElements.define(ca.is,ca);var ua=document.createElement("div");ua.setAttribute("style","display: none;"),ua.innerHTML='<dom-module id="card-tt-time-picker-style">\n <template>\n <style>\n :host {\n display: inline-block;\n }\n #container .column::-webkit-scrollbar {\n width: 3px;\n }\n #container .column::-webkit-scrollbar-thumb {\n border-radius: 1.5px;\n background-color: #c2c6cc;\n border-bottom: none;\n border-top: none;\n }\n #container {\n display: flex;\n justify-content: space-between;\n width: 112px;\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);\n border: solid 1px #e4e5e7;\n background-color: #ffffff;\n -webkit-user-select: none;\n user-select: none;\n font-size: 14px;\n color: #39424e;\n }\n #container .column {\n flex: 1;\n max-height: 191px;\n overflow-y: overlay;\n padding-top: 5px;\n padding-bottom: 5px;\n box-sizing: border-box;\n border-right: 1px solid #e4e5e7; \n }\n #container .column:last-child{\n border-right: 1px solid transparent;\n }\n #container .column .row {\n display: block;\n height: 32px;\n line-height: 32px;\n text-align: center;\n cursor: pointer;\n }\n #container .column .row.select,\n #container .column .row:not(.disable):hover {\n background-color: #EFF0F1;\n color: #3370ff;\n font-weight: bold;\n }\n #container .column .row:not(.disable).select {\n background-color: #DEE0E3;\n }\n #container .column .row.disable {\n color: #BBBFC4;\n cursor: initial;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ua);var da=o(['\n <style include="card-tt-time-picker-style"></style>\n <div id="container">\n <div class="column" id="hour" on-click=\'_hourClick\'>\n </div>\n <div class="column" id="minute" on-click=\'_minuteClick\'>\n </div>\n </div>\n '],['\n <style include="card-tt-time-picker-style"></style>\n <div id="container">\n <div class="column" id="hour" on-click=\'_hourClick\'>\n </div>\n <div class="column" id="minute" on-click=\'_minuteClick\'>\n </div>\n </div>\n ']),ha=function(e){function o(){return u(this,o),y(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return f(o,e),a(o,[{key:"connectedCallback",value:function(){p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"connectedCallback",this).call(this);var e=this._getSplit(this.value)||[0,0],t=this._getSplit(this.start)||[0,23],n=this._getSplit(this.end)||[0,59];(e[0]<t[0]||e[0]>n[0])&&(e[0]=t[0]),t[0]===n[0]&&(e[1]<t[1]||e[1]>n[1])&&(e[1]=t[1]),e[0]===t[0]&&e[1]<t[1]&&(e[1]=t[1]),e[0]===n[0]&&e[1]>n[1]&&(e[1]=0),this.$.hour.innerHTML=this._getDom(23,e[0]),this.$.minute.innerHTML=this._getDom(59,e[1]),this.$.hour.scrollTop=this._getScrollTop(e[0]),this.$.minute.scrollTop=this._getScrollTop(e[1]);for(var r=0;r<t[0];)this.$.hour.childNodes[r].className+="disable",r+=1;for(var i=n[0]+1;i<24;)this.$.hour.childNodes[i].className+="disable",i+=1;this._selectH=e[0],t[0]===n[0]?this._changeMinute(t[1],n[1]):e[0]===t[0]?this._changeMinute(t[1],59):e[0]===n[0]?this._changeMinute(0,n[1]):this._changeMinute(-1,60),this.$.minute.childNodes[e[1]].className="row select"}},{key:"_getSplit",value:function(e){if(!e)return null;var t=e.split(":");return[Number(t[0]),Number(t[1])]}},{key:"_getScrollTop",value:function(e){return Math.max(32*(e-2),0)}},{key:"_getDom",value:function(e,t){for(var n="",r=0;r<=e;)n+='<span data-i="'+r+'" class="row '+(r===Number(t)?"select":"")+'">'+(r<10?"0"+r:r)+"</span>",r+=1;return n}},{key:"_hourClick",value:function(e){var t=e.target;if("span"===t.tagName.toLowerCase()){var n=t.className;if(!(-1<n.indexOf("disable")||-1<n.indexOf("select"))){var r=t.dataset.i;r=Number(r);for(var i=this._getSplit(this.start)||[0,23],o=this._getSplit(this.end)||[0,59],a=t.parentElement.children,s=0;s<a.length;){var l=a[s];if(-1<l.className.indexOf("select")){l.className=l.className.replace("select","");break}s+=1}t.className+="select",this._selectH=r,i[0]===o[0]?this._changeMinute(i[1],o[1]):r===i[0]?this._changeMinute(i[1],59):r===o[0]?this._changeMinute(0,o[1]):this._changeMinute(-1,60),e.stopPropagation()}}}},{key:"_changeMinute",value:function(e,t){for(var n=this.$.minute.childNodes,r=0;r<n.length;)n[r].className=r<e||t<r?"row disable":"row",r+=1}},{key:"_minuteClick",value:function(e){var t=e.target;if("span"===t.tagName.toLowerCase()&&!(-1<t.className.indexOf("disable"))){var n=t.dataset.i;n=Number(n);var r=(this._selectH<10?"0"+this._selectH:this._selectH)+":"+(n<10?"0"+n:n);this.dispatchEvent(new CustomEvent("itemSelect",{detail:{value:r}})),e.stopPropagation()}}}],[{key:"template",get:function(){return hn(da)}},{key:"properties",get:function(){return{value:{type:String},start:{type:String},end:{type:String}}}},{key:"is",get:function(){return"card-tt-time-picker"}}]),o}(vn(pn));window.customElements.define(ha.is,ha);var pa=o(['\n <style include="card-tt-time-picker-style"></style>\n <div id="container">\n <div class="column" id="year" on-click=\'_yearClick\'>\n </div>\n </div>\n '],['\n <style include="card-tt-time-picker-style"></style>\n <div id="container">\n <div class="column" id="year" on-click=\'_yearClick\'>\n </div>\n </div>\n ']),fa=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this);var e=new Date;!this.value&&(this.value=e.getFullYear()),!this.start&&(this.start=1900),!this.end&&(this.end=2099),this.$.year.innerHTML=this._getDom(),this.$.year.scrollTop=this._getScrollTop()}},{key:"_getScrollTop",value:function(){for(var e=0,t=this.value,n=this.start,r=this.end,i=n;i<=r&&i!==t;)e+=1,i+=1;return Math.max(32*(e-2),0)}},{key:"_getDom",value:function(){for(var e=this.value,t=this.start,n=this.end,r="",i=t;i<=n;)r+='<span data-i="'+i+'" class="row '+(i===e?"select":"")+'">'+i+"</span>",i+=1;return r}},{key:"_yearClick",value:function(e){var t=e.target;if("span"===t.tagName.toLowerCase()){var n=t.dataset.i;n=Number(n),this.dispatchEvent(new CustomEvent("itemSelect",{detail:{value:n}})),e.stopPropagation()}}}],[{key:"template",get:function(){return hn(pa)}},{key:"properties",get:function(){return{value:{type:Number},start:{type:Number},end:{type:Number}}}},{key:"is",get:function(){return"card-tt-year-picker"}}]),t}(vn(pn));window.customElements.define(fa.is,fa);var va=Ln(pn),ga=function(e){function n(){u(this,n);var e=y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return e.__instances=[],e.__limit=1/0,e.__pool=[],e.__renderDebouncer=null,e.__itemsIdxToInstIdx={},e.__chunkCount=null,e.__lastChunkTime=null,e.__sortFn=null,e.__filterFn=null,e.__observePaths=null,e.__ctor=null,e.__isDetached=!0,e.template=null,e}return f(n,va),a(n,null,[{key:"is",get:function(){return"dom-repeat"}},{key:"template",get:function(){return null}},{key:"properties",get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!0,readOnly:!0},initialCount:{type:Number,observer:"__initializeChunking"},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"}}}},{key:"observers",get:function(){return["__itemsChanged(items.*)"]}}]),a(n,[{key:"disconnectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),this.__isDetached=!0;for(var e=0;e<this.__instances.length;e++)this.__detachInstance(e)}},{key:"connectedCallback",value:function(){if(p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.style.display="none",this.__isDetached){this.__isDetached=!1;for(var e=this.parentNode,t=0;t<this.__instances.length;t++)this.__attachInstance(t,e)}}},{key:"__ensureTemplatized",value:function(){var e=this;if(!this.__ctor){var t=this.template=this.querySelector("template");if(!t){var n=new MutationObserver(function(){if(!e.querySelector("template"))throw new Error("dom-repeat requires a <template> child");n.disconnect(),e.__render()});return n.observe(this,{childList:!0}),!1}var r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Jn(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(e,t){for(var n,r=this.__instances,i=0;i<r.length&&(n=r[i]);i++)n.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,n){if((o=this.as)===(a=t)||Ke(o,a)||Ze(o,a)){var r=e[this.itemsIndexAs];t==this.as&&(this.items[r]=n);var i=et(this.as,"items."+r,t);this.notifyPath(i,n)}var o,a}})}return!0}},{key:"__getMethodHost",value:function(){return this.__dataHost._methodHost||this.__dataHost}},{key:"__functionFromPropertyValue",value:function(e){if("string"!=typeof e)return e;var t=e,n=this.__getMethodHost();return function(){return n[t].apply(n,arguments)}}},{key:"__sortChanged",value:function(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}},{key:"__filterChanged",value:function(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}},{key:"__computeFrameTime",value:function(e){return Math.ceil(1e3/e)}},{key:"__initializeChunking",value:function(){this.initialCount&&(this.__limit=this.initialCount,this.__chunkCount=this.initialCount,this.__lastChunkTime=performance.now())}},{key:"__tryRenderChunk",value:function(){this.items&&this.__limit<this.items.length&&this.__debounceRender(this.__requestRenderChunk)}},{key:"__requestRenderChunk",value:function(){var e=this;requestAnimationFrame(function(){return e.__renderChunk()})}},{key:"__renderChunk",value:function(){var e=performance.now(),t=this._targetFrameTime/(e-this.__lastChunkTime);this.__chunkCount=Math.round(this.__chunkCount*t)||1,this.__limit+=this.__chunkCount,this.__lastChunkTime=e,this.__debounceRender(this.__render)}},{key:"__observeChanged",value:function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}},{key:"__itemsChanged",value:function(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(this.__initializeChunking(),this.__debounceRender(this.__render))}},{key:"__handleObservedPaths",value:function(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths)for(var t=this.__observePaths,n=0;n<t.length;n++)0===e.indexOf(t[n])&&this.__debounceRender(this.__render,this.delay)}else this.__debounceRender(this.__render,this.delay)}},{key:"__debounceRender",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=Gn.debounce(this.__renderDebouncer,0<t?yt(t):mt,e.bind(this)),Kn(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),er()}},{key:"__render",value:function(){this.__ensureTemplatized()&&(this.__applyFullRefresh(),this.__pool.length=0,this._setRenderedItemCount(this.__instances.length),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this.__tryRenderChunk())}},{key:"__applyFullRefresh",value:function(){for(var r=this,i=this.items||[],e=new Array(i.length),t=0;t<i.length;t++)e[t]=t;this.__filterFn&&(e=e.filter(function(e,t,n){return r.__filterFn(i[e],t,n)})),this.__sortFn&&e.sort(function(e,t){return r.__sortFn(i[e],i[t])});for(var n=this.__itemsIdxToInstIdx={},o=0,a=Math.min(e.length,this.__limit);o<a;o++){var s=this.__instances[o],l=e[o],c=i[l];n[l]=o,s?(s._setPendingProperty(this.as,c),s._setPendingProperty(this.indexAs,o),s._setPendingProperty(this.itemsIndexAs,l),s._flushProperties()):this.__insertInstance(c,o,l)}for(var u=this.__instances.length-1;o<=u;u--)this.__detachAndRemoveInstance(u)}},{key:"__detachInstance",value:function(e){for(var t=this.__instances[e],n=0;n<t.children.length;n++){var r=t.children[n];t.root.appendChild(r)}return t}},{key:"__attachInstance",value:function(e,t){var n=this.__instances[e];t.insertBefore(n.root,this)}},{key:"__detachAndRemoveInstance",value:function(e){var t=this.__detachInstance(e);t&&this.__pool.push(t),this.__instances.splice(e,1)}},{key:"__stampInstance",value:function(e,t,n){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}},{key:"__insertInstance",value:function(e,t,n){var r=this.__pool.pop();r?(r._setPendingProperty(this.as,e),r._setPendingProperty(this.indexAs,t),r._setPendingProperty(this.itemsIndexAs,n),r._flushProperties()):r=this.__stampInstance(e,t,n);var i=this.__instances[t+1],o=i?i.children[0]:this;return this.parentNode.insertBefore(r.root,o),this.__instances[t]=r}},{key:"_showHideChildren",value:function(e){for(var t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}},{key:"__handleItemPath",value:function(e,t){var n=e.slice(6),r=n.indexOf("."),i=r<0?n:n.substring(0,r);if(i==parseInt(i,10)){var o=r<0?"":n.substring(r+1);this.__handleObservedPaths(o);var a=this.__itemsIdxToInstIdx[i],s=this.__instances[a];if(s){var l=this.as+(o?"."+o:"");s._setPendingPropertyOrPath(l,t,!1,!0),s._flushProperties()}return!0}}},{key:"itemForElement",value:function(e){var t=this.modelForElement(e);return t&&t[this.as]}},{key:"indexForElement",value:function(e){var t=this.modelForElement(e);return t&&t[this.indexAs]}},{key:"modelForElement",value:function(e){return function(e,t){for(var n=void 0;t;)if(n=t.__templatizeInstance){if(n.__dataHost==e)return n;t=n.__dataHost}else t=t.parentNode;return null}(this.template,e)}}]),n}();customElements.define(ga.is,ga);var ya=!1,ma=[],_a=[];function Aa(){ya=!0,requestAnimationFrame(function(){ya=!1,function(e){for(;e.length;)ba(e.shift())}(ma),setTimeout(function(){!function(e){for(var t=0,n=e.length;t<n;t++)ba(e.shift())}(_a)})})}function ba(e){var t=e[0],n=e[1],r=e[2];try{n.apply(t,r)}catch(e){setTimeout(function(){throw e})}}var wa=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=e[Symbol.iterator]();!(t=(i=o.next()).done);t=!0){var a=i.value.target.__resizeListeners__||[];a.length&&a.forEach(function(e){e()})}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}};function ka(e,t){for(var n=(t=t||"").split("."),r=e,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i}function Ca(n,r){var i=void 0,o=void 0,a=void 0,s=null,l=0,c=function(){l=Date.now(),a=r.apply(i,o),s=i=o=null};return function(){var e=Date.now(),t=n-(e-l);return i=this,o=arguments,t<=0||n<t?(s&&(clearTimeout(s),s=null),l=e,a=r.apply(i,o),i=o=null):s||(s=setTimeout(c,t)),a}}var Ea=function(e){return"[object object]"===Object.prototype.toString.call(e).toLowerCase()},xa=o(['\n <style include="card-tt-select-option-style">\n </style>\n <li id="wrapper" \n on-mouseenter="hoverItem"\n on-click="selectOptionClick"\n class$="[[_computeClass(itemSelected, disabled, limitReached, hover)]]"\n >\n <template is="dom-if" if="[[created]]">\n <span>[[currentLabel]]</span>\n </template>\n <slot id="option"></slot>\n </li>\n '],['\n <style include="card-tt-select-option-style">\n </style>\n <li id="wrapper" \n on-mouseenter="hoverItem"\n on-click="selectOptionClick"\n class$="[[_computeClass(itemSelected, disabled, limitReached, hover)]]"\n >\n <template is="dom-if" if="[[created]]">\n <span>[[currentLabel]]</span>\n </template>\n <slot id="option"></slot>\n </li>\n ']),Sa=function(e){function t(){u(this,t);var e=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._visible=!0,e}return f(t,e),a(t,null,[{key:"template",get:function(){return hn(xa)}},{key:"is",get:function(){return"card-tt-select-option"}},{key:"properties",get:function(){return{disabled:{type:Boolean,value:!1},value:{type:String,value:function(){return""},observer:"_observeValue"},label:{type:String,value:""},created:{type:Boolean,value:!1},index:{type:Number,value:-1},hitState:{type:Boolean,value:!1},hover:{type:Boolean,value:!1},select:{type:Object},isObject:{type:Boolean,computed:"_computeIsObject(value)"},currentLabel:{type:String,computed:"_computeCurrentLabel(label, isObject, value)",observer:"_observeCurrentLabel"},currentValue:{type:String,computed:"_computeCurrentValue(value, label)"},itemSelected:{type:Boolean,value:!1},limitReached:{type:Boolean,value:!1},selected:{type:Boolean,computed:"_computeSelected(itemSelected)",reflectToAttribute:!0}}}},{key:"observers",get:function(){}}]),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.select=this.select||this.findParentSelect()}},{key:"findParentSelect",value:function(){for(var e=this.parentNode,t=!1;e;){if("CARD-TT-SELECT"===e.tagName){t=!0;break}e=11===e.nodeType?e.host:e.parentNode}return t&&e||null}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.select&&this.select.push("options",this),this.select&&this.select.push("cachedOptions",this),this.select&&this.select.optionsCount++,this.select&&this.select.filteredOptionsCount++,this.visible=!0}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this);var e=this.select.cachedOptions.indexOf(this);-1<e&&this.select.cachedOptions.splice(e,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},{key:"selectOptionClick",value:function(e){e.stopPropagation(),this.disabled||this.dispatchEvent(new CustomEvent("click-option",{detail:{byClick:!0},bubbles:!0}))}},{key:"_computeClass",value:function(e,t,n,r){var i={selected:e,"is-disabled":t||n,hover:r},o=" ";return Object.keys(i).forEach(function(e){i[e]&&(o+=e)}),"card-tt-select-dropdown__item"+o}},{key:"_computeStyle",value:function(e){return e?"":"display: none;"}},{key:"_computeIsObject",value:function(e){return"[object object]"===Object.prototype.toString.call(e).toLowerCase()}},{key:"_computeCurrentLabel",value:function(e,t,n){return console.log("_computeCurrentLabel",e,t,n),e||(t?"":n)}},{key:"_computeCurrentValue",value:function(e,t){return e||t||""}},{key:"_computeItemSelected",value:function(e,t,n){return!!this.select&&(t?this.contains(n,e):this.isEqual(e,n))}},{key:"_computeLimitReached",value:function(e,t,n,r){return!!e&&(r&&(t||[]).length>=n&&0<n)}},{key:"_computeSelected",value:function(e){return e}},{key:"_observeCurrentLabel",value:function(){this.created||this.dispatchEvent(new CustomEvent("setSelected",{bubbles:!0}))}},{key:"_observeValue",value:function(e,t){if(this.select){var n=this.select.valueKey;if(!this.created){if(n&&"object"==typeof e&&"object"==typeof t&&e[n]===t[n])return;this.dispatchEvent(new CustomEvent("setSelected",{bubbles:!0}))}}}},{key:"isEqual",value:function(e,t){if(this.isObject){var n=this.select.valueKey;return ka(e,n)===ka(t,n)}return e===t}},{key:"contains",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some(function(e){return ka(e,n)===ka(t,n)})}return e&&-1<e.indexOf(t)}},{key:"hoverItem",value:function(){this.disabled||(this.select.hoverIndex=this.select.options.indexOf(this))}},{key:"setVisible",value:function(e){this.$.wrapper.style.display=e?"block":"none",this._visible=e}},{key:"getVisible",value:function(){return this._visible}},{key:"queryChange",value:function(e){this.setVisible(new RegExp(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}(e),"i").test(this.currentLabel)||this.created),this.getVisible()||this.select.filteredOptionsCount--}},{key:"_observeSelect",value:function(e,t,n){this.itemSelected=this._computeItemSelected(this.value,e,t),this.limitReached=this._computeLimitReached(e,t,n,this.itemSelected)}}]),t}(vn(pn));function Pa(e,t,n){return{index:e,removed:t,addedCount:n}}window.customElements.define(Sa.is,Sa);var Ta=0,Oa=1,Da=2,Ia=3;function Na(e,t,n,r,i,o){var a=0,s=0,l=void 0,c=Math.min(n-t,o-i);if(0==t&&0==i&&(a=function(e,t,n){for(var r=0;r<n;r++)if(!Fa(e[r],t[r]))return r;return n}(e,r,c)),n==e.length&&o==r.length&&(s=function(e,t,n){var r=e.length,i=t.length,o=0;for(;o<n&&Fa(e[--r],t[--i]);)o++;return o}(e,r,c-a)),i+=a,o-=s,(n-=s)-(t+=a)==0&&o-i==0)return[];if(t==n){for(l=Pa(t,[],0);i<o;)l.removed.push(r[i++]);return[l]}if(i==o)return[Pa(t,[],n-t)];var u=function(e){for(var t=e.length-1,n=e[0].length-1,r=e[t][n],i=[];0<t||0<n;)if(0!=t)if(0!=n){var o=e[t-1][n-1],a=e[t-1][n],s=e[t][n-1],l=void 0;(l=a<s?a<o?a:o:s<o?s:o)==o?(o==r?i.push(Ta):(i.push(Oa),r=o),t--,n--):r=l==a?(i.push(Ia),t--,a):(i.push(Da),n--,s)}else i.push(Ia),t--;else i.push(Da),n--;return i.reverse(),i}(function(e,t,n,r,i,o){for(var a=o-i+1,s=n-t+1,l=new Array(a),c=0;c<a;c++)l[c]=new Array(s),l[c][0]=c;for(var u=0;u<s;u++)l[0][u]=u;for(var d=1;d<a;d++)for(var h=1;h<s;h++)if(Fa(e[t+h-1],r[i+d-1]))l[d][h]=l[d-1][h-1];else{var p=l[d-1][h]+1,f=l[d][h-1]+1;l[d][h]=p<f?p:f}return l}(e,t,n,r,i,o));l=void 0;for(var d=[],h=t,p=i,f=0;f<u.length;f++)switch(u[f]){case Ta:l&&(d.push(l),l=void 0),h++,p++;break;case Oa:l||(l=Pa(h,[],0)),l.addedCount++,h++,l.removed.push(r[p]),p++;break;case Da:l||(l=Pa(h,[],0)),l.addedCount++,h++;break;case Ia:l||(l=Pa(h,[],0)),l.removed.push(r[p]),p++}return l&&d.push(l),d}function Fa(e,t){return e===t}function Ma(e){return"slot"===e.localName}!function(){function r(e,t){var n=this;u(this,r),this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=function(){n._schedule()},this.connect(),this._schedule()}a(r,null,[{key:"getFlattenedNodes",value:function(e){return Ma(e)?(e=e).assignedNodes({flatten:!0}):Array.from(e.childNodes).map(function(e){return Ma(e)?(e=e).assignedNodes({flatten:!0}):[e]}).reduce(function(e,t){return e.concat(t)},[])}}]),a(r,[{key:"connect",value:function(){var t=this;Ma(this._target)?this._listenSlots([this._target]):this._target.children&&(this._listenSlots(this._target.children),window.ShadyDOM?this._shadyChildrenObserver=ShadyDOM.observeChildren(this._target,function(e){t._processMutations(e)}):(this._nativeChildrenObserver=new MutationObserver(function(e){t._processMutations(e)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}},{key:"disconnect",value:function(){Ma(this._target)?this._unlistenSlots([this._target]):this._target.children&&(this._unlistenSlots(this._target.children),window.ShadyDOM&&this._shadyChildrenObserver?(ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}},{key:"_schedule",value:function(){var e=this;this._scheduled||(this._scheduled=!0,mt.run(function(){return e.flush()}))}},{key:"_processMutations",value:function(e){this._processSlotMutations(e),this.flush()}},{key:"_processSlotMutations",value:function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}},{key:"flush",value:function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;for(var e,t,n,r={target:this._target,addedNodes:[],removedNodes:[]},i=this.constructor.getFlattenedNodes(this._target),o=(e=i,t=this._effectiveNodes,Na(e,0,e.length,t,0,t.length)),a=0;a<o.length&&(n=o[a]);a++)for(var s,l=0;l<n.removed.length&&(s=n.removed[l]);l++)r.removedNodes.push(s);for(var c,u=0;u<o.length&&(c=o[u]);u++)for(var d=c.index;d<c.index+c.addedCount;d++)r.addedNodes.push(i[d]);this._effectiveNodes=i;var h=!1;return(r.addedNodes.length||r.removedNodes.length)&&(h=!0,this.callback.call(this._target,r)),h}},{key:"_listenSlots",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];Ma(n)&&n.addEventListener("slotchange",this._boundSchedule)}}},{key:"_unlistenSlots",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];Ma(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}}])}();var Ra=o(['\n <style>\n :host {\n position: absolute;\n }\n\n #wrapper {\n overflow-y: scroll;\n }\n </style>\n <style include="card-tt-select-menu-style">\n </style>\n <div\n id="wrapper"\n class$="[[_computeClass(select.multiple)]]"\n style$="[[_computeStyle(minWidth)]]">\n <slot></slot>\n </div>\n '],['\n <style>\n :host {\n position: absolute;\n }\n\n #wrapper {\n overflow-y: scroll;\n }\n </style>\n <style include="card-tt-select-menu-style">\n </style>\n <div\n id="wrapper"\n class$="[[_computeClass(select.multiple)]]"\n style$="[[_computeStyle(minWidth)]]">\n <slot></slot>\n </div>\n ']),La=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.select=this.findParentSelect(),this.resetMaxHeight(this.maxHeight)}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this)}},{key:"findParentSelect",value:function(){for(var e=this.parentNode;e&&"CARD-TT-SELECT"!==e.tagName;)e=11===e.nodeType?e.host:e.parentNode;return e}},{key:"_observeSelect",value:function(e){this.minWidth=this.select.getBoundingClientRect().width+"px"}},{key:"_computeClass",value:function(e){return"card-tt-select-dropdown card-tt-popper"+(e?" is-multiple":"")}},{key:"_computeStyle",value:function(e){return"min-width: "+e}},{key:"resetMaxHeight",value:function(e){e=34*Math.floor(e/34),this.$.wrapper.style.maxHeight=e+"px"}},{key:"updatePopper",value:function(){var e=this._height,t=this.select.$.reference.getBoundingClientRect(),n=t.height,r=t.top,i=t.bottom,o=r,a=window.innerHeight-i;this.isAfter=!0,a<e&&a<o&&(this.maxHeight=o,this.isAfter=!1),this.isAfter?(this.resetMaxHeight(Math.min(this.maxHeight,a)),this.$.wrapper.style.top="0px"):(this.resetMaxHeight(Math.min(this.maxHeight,o)),this.$.wrapper.style.top="-"+(this._height+n+10)+"px")}},{key:"_height",get:function(){return this.$.wrapper.getBoundingClientRect().height}},{key:"_referenceHeight",get:function(){return this.select.$.reference.getBoundingClientRect().height}}],[{key:"template",get:function(){return hn(Ra)}},{key:"is",get:function(){return"card-tt-select-menu"}},{key:"properties",get:function(){return{select:{type:Object},placement:{type:String,value:"bottom-start"},boundariesPadding:{type:Number,value:0},visibleArrow:{type:Boolean,value:!0},appendToBody:{type:Boolean,value:!0},minWidth:{type:String,value:""},maxHeight:{type:Number,value:274},isAfter:{type:Boolean,value:!0}}}},{key:"observers",get:function(){return["_observeSelect(select.inputWidth)"]}}]),t}(vn(pn));window.customElements.define(La.is,La);var Ba=o(['\n <style include="card-tt-select-tag-style">\n </style>\n <span\n class$="[[classes]]"\n style$="[[styles]]"\n on-click=\'handleClick\'>\n <slot></slot>\n <template is="dom-if" if="[[closable]]">\n <card-tt-icon type="cancel" size="10" color="[[closeColor]]" class="card-tt-tag__close card-tt-icon-close" on-click=\'handleClose\'></card-tt-icon>\n </template>\n </span>\n '],['\n <style include="card-tt-select-tag-style">\n </style>\n <span\n class$="[[classes]]"\n style$="[[styles]]"\n on-click=\'handleClick\'>\n <slot></slot>\n <template is="dom-if" if="[[closable]]">\n <card-tt-icon type="cancel" size="10" color="[[closeColor]]" class="card-tt-tag__close card-tt-icon-close" on-click=\'handleClose\'></card-tt-icon>\n </template>\n </span>\n ']),ja=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this)}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this)}},{key:"disconnectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this)}},{key:"_computeClasses",value:function(e,t,n){return["card-tt-tag",e?"card-tt-tag--"+e:"",t?"card-tt-tag--"+t:"",n&&"is-hit"].join(" ")}},{key:"_computeStyles",value:function(e,t){return"color: "+t+"; background-color: "+e}},{key:"handleClose",value:function(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("close-tag",{detail:{},bubbles:!0}))}},{key:"handleClick",value:function(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("click-tag",{bubbles:!0}))}},{key:"_computeCloseColor",value:function(e){var t=e.replace(/^rgba?\(|\s+|\)$/g,"").split(",");return 3!==t.length&&4!==t.length?"#111111":.5<(.299*Number(t[0])+.587*Number(t[1])+.114*Number(t[2]))/255?"#111111":"#e3e3e3"}}],[{key:"template",get:function(){return hn(Ba)}},{key:"is",get:function(){return"card-tt-select-tag"}},{key:"properties",get:function(){return{text:{type:String,value:""},closeable:{type:Boolean,value:!0},type:{type:String,value:""},hit:{type:Boolean,value:!1},disableTransitions:{type:Boolean,value:!1},color:{type:String,value:"#909399"},backgroundColor:{type:String,value:"#f4f4f5"},closeColor:{type:String,computed:"_computeCloseColor(backgroundColor)"},size:{type:String,value:""},classes:{type:String,computed:"_computeClasses(type, size, hit)"},styles:{type:String,computed:"_computeStyles(backgroundColor, color)"}}}}]),t}(vn(pn));window.customElements.define(ja.is,ja);var za,Ha=o(['\n <style>\n :host {\n display: inline-block;\n width: 240px;\n }\n ul {\n margin:0;\n padding:0;\n list-style:none;\n }\n *:focus { outline: none; }\n #wrapper {\n font-size: 14px;\n }\n #wrapper, #reference {\n width: 100%;\n }\n #reference {\n height: 40px;\n }\n </style>\n <style include="card-tt-select-style">\n </style>\n <div id="wrapper" class="card-tt-select" tabindex="-1" on-mouseover="setReferenceHover" on-mouseout="removeReferenceHover" on-click="toggleMenuWrapper">\n <template is="dom-if" if="[[multiple]]">\n <div id="tags"\n class="card-tt-select__tags" \n style$="[[_computeTagsStyle(inputWidth)]]">\n <template is="dom-repeat" items="{{selected}}">\n <card-tt-select-tag class="tag"\n closable="[[!selectDisabled]]"\n size="[[collapseTagSize]]"\n hit="[[_computeTagHit(item.hitState)]]"\n type="info"\n color="[[tagColor]]"\n background-color="[[tagBackgroundColor]]"\n data-index$="[[index]]"\n data-value$="[[item.value]]"\n >\n <span class="card-tt-select__tags-text">[[item.currentLabel]]</span>\n </card-tt-select-tag>\n </template>\n <template is="dom-if" if="[[filterable]]">\n <input id="input"\n type="text"\n class="card-tt-select__input"\n autocomplete="[[autocomplete]]"\n disabled="[[selectDisable]]"\n value="{{query::input}}"\n on-focus="handleFocus"\n on-blur="_setSoftFocusFalse"\n on-input="debouncedQueryChange"\n on-keydown="handleKeydownInput"\n style$="[[_computeInputStyle(inputLength, inputWidth)]]"\n >\n </input>\n </template>\n </div>\n </template>\n <card-tt-input id="reference"\n type="text"\n class$="[[_computeReferenceClass(visible)]]"\n tabindex="[[_computeReferenceTabindex(multiple, filterable)]]"\n value="{{selectedLabel}}"\n placeholder="[[currentPlaceholder]]"\n autocomplete="[[autocomplete]]"\n readonly="[[readonly]]"\n disabled="[[disabled]]"\n on-keyup="debouncedOnInputChange"\n on-focus="handleFocus"\n on-blur="handleBlur"\n on-paste="debouncedOnInputChange"\n on-keydown="handleKeydownReference"\n on-mouseenter="setInputHovering"\n on-mouseleave="removeInputHovering"\n on-clear="handleClearClick"\n clearable="[[showClose]]"\n _hoverColor="[[hoverColor]]"\n >\n </card-tt-input>\n <card-tt-select-menu \n id="popper"\n style$="[[_computePopperStyle(visible, emptyText)]]"\n >\n <ul id="scrollbar"\n style$="[[_computeScollbarStyle(options.length, loading)]]"\n class$="[[_computeScrollbarClass(allowCreate, query, filteredOptionsCount)]]"\n >\n <template is="dom-if" if="[[showNewOption]]" on-dom-change="resetCreated">\n <card-tt-select-option\n id="createdOption"\n value=[[query]]\n created="[[trueValue]]"\n >\n </card-tt-select-option>\n </template>\n <slot></slot>\n </ul>\n <template is="dom-if" if="[[_computeShowEmptyText(options.length, emptyText, allowCreate, loading)]]">\n <p class="card-tt-select-dropdown__empty">\n [[emptyText]]\n </p>\n </template>\n </card-tt-select-menu>\n </div>\n '],['\n <style>\n :host {\n display: inline-block;\n width: 240px;\n }\n ul {\n margin:0;\n padding:0;\n list-style:none;\n }\n *:focus { outline: none; }\n #wrapper {\n font-size: 14px;\n }\n #wrapper, #reference {\n width: 100%;\n }\n #reference {\n height: 40px;\n }\n </style>\n <style include="card-tt-select-style">\n </style>\n <div id="wrapper" class="card-tt-select" tabindex="-1" on-mouseover="setReferenceHover" on-mouseout="removeReferenceHover" on-click="toggleMenuWrapper">\n <template is="dom-if" if="[[multiple]]">\n <div id="tags"\n class="card-tt-select__tags" \n style$="[[_computeTagsStyle(inputWidth)]]">\n <template is="dom-repeat" items="{{selected}}">\n <card-tt-select-tag class="tag"\n closable="[[!selectDisabled]]"\n size="[[collapseTagSize]]"\n hit="[[_computeTagHit(item.hitState)]]"\n type="info"\n color="[[tagColor]]"\n background-color="[[tagBackgroundColor]]"\n data-index$="[[index]]"\n data-value$="[[item.value]]"\n >\n <span class="card-tt-select__tags-text">[[item.currentLabel]]</span>\n </card-tt-select-tag>\n </template>\n <template is="dom-if" if="[[filterable]]">\n <input id="input"\n type="text"\n class="card-tt-select__input"\n autocomplete="[[autocomplete]]"\n disabled="[[selectDisable]]"\n value="{{query::input}}"\n on-focus="handleFocus"\n on-blur="_setSoftFocusFalse"\n on-input="debouncedQueryChange"\n on-keydown="handleKeydownInput"\n style$="[[_computeInputStyle(inputLength, inputWidth)]]"\n >\n </input>\n </template>\n </div>\n </template>\n <card-tt-input id="reference"\n type="text"\n class$="[[_computeReferenceClass(visible)]]"\n tabindex="[[_computeReferenceTabindex(multiple, filterable)]]"\n value="{{selectedLabel}}"\n placeholder="[[currentPlaceholder]]"\n autocomplete="[[autocomplete]]"\n readonly="[[readonly]]"\n disabled="[[disabled]]"\n on-keyup="debouncedOnInputChange"\n on-focus="handleFocus"\n on-blur="handleBlur"\n on-paste="debouncedOnInputChange"\n on-keydown="handleKeydownReference"\n on-mouseenter="setInputHovering"\n on-mouseleave="removeInputHovering"\n on-clear="handleClearClick"\n clearable="[[showClose]]"\n _hoverColor="[[hoverColor]]"\n >\n </card-tt-input>\n <card-tt-select-menu \n id="popper"\n style$="[[_computePopperStyle(visible, emptyText)]]"\n >\n <ul id="scrollbar"\n style$="[[_computeScollbarStyle(options.length, loading)]]"\n class$="[[_computeScrollbarClass(allowCreate, query, filteredOptionsCount)]]"\n >\n <template is="dom-if" if="[[showNewOption]]" on-dom-change="resetCreated">\n <card-tt-select-option\n id="createdOption"\n value=[[query]]\n created="[[trueValue]]"\n >\n </card-tt-select-option>\n </template>\n <slot></slot>\n </ul>\n <template is="dom-if" if="[[_computeShowEmptyText(options.length, emptyText, allowCreate, loading)]]">\n <p class="card-tt-select-dropdown__empty">\n [[emptyText]]\n </p>\n </template>\n </card-tt-select-menu>\n </div>\n ']),Va=function(){function e(){u(this,e)}return a(e,null,[{key:"types",get:function(){return[Array,Object,String]}}]),e}(),Wa=function(){function e(){u(this,e)}return a(e,null,[{key:"types",get:function(){return[Array,Object]}}]),e}(),Qa=function(e){function o(){u(this,o);var e=y(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return e._boundMouseDownListener=e._mouseDownListener.bind(e),e._boundMouseUpListener=e._mouseUpListener.bind(e),e._boundOutsideClickListener=e._outsideClickListener.bind(e),e._addGlobalEventListener(),e}return f(o,e),a(o,[{key:"_deserializeValue",value:function(e,t){if(t!==Va&&t!==Wa)return p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_deserializeValue",this).call(this,e,t);for(var n=e,r=t.types,i=0;i<r.length;i++)try{if(n=p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"_deserializeValue",this).call(this,e,r[i]))break}catch(e){}return n}}],[{key:"template",get:function(){return hn(Ha)}},{key:"is",get:function(){return"card-tt-select"}},{key:"properties",get:function(){return{value:{type:Va,notify:!0,value:function(){return[]},observer:"_observeValue"},automaticDropdown:{type:Boolean,value:!1},size:{type:String,value:"medium"},disabled:{type:Boolean,value:!1},clearable:{type:Boolean,value:!1},filterable:{type:Boolean,value:!1},allowCreate:{type:Boolean,value:!1},loading:{type:Boolean,value:!1},loadingText:{type:String,value:""},noMatchText:{type:String,value:""},noDataText:{type:String,value:""},multiple:{type:Boolean,value:!1},multipleLimit:{type:Number,value:0},placeholder:{type:String,value:"",observer:"_observePlaceholder"},defaultFirstOption:{type:Boolean,value:!1},reserveKeyword:{type:Boolean,value:!1},valueKey:{type:String,value:"value"},collapseTags:{type:Boolean,value:!1},popperAppendToBody:{type:Boolean,value:!0},tagColor:{type:String,value:"#909399"},tagBackgroundColor:{type:String,value:"#f4f4f5"},options:{type:Array,value:function(){return[]},observer:"_observeOptions"},cachedOptions:{type:Array,value:function(){return[]}},createdLabel:{type:String,value:""},createdSelected:{type:Boolean,value:!1},selected:{type:Wa,value:function(){return[]}},inputWidth:{type:Number,value:0},inputLength:{type:Number,value:20},initialInputHeight:{type:Number,value:0},cachedPlaceHolder:{type:String,value:""},optionsCount:{type:Number,value:0},filteredOptionsCount:{type:Number,value:0},visible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_observeVisible"},softFocus:{type:Boolean,value:!1},selectedLabel:{type:String,value:""},hoverIndex:{type:Number,value:-1},query:{type:String,value:""},previousQuery:{type:Object,value:null},inputHovering:{type:Boolean,value:!1},currentPlaceholder:{type:String,value:""},menuVisibleOnFocus:{type:Boolean,value:!1},isOnComposition:{type:Boolean,value:!1},isSilentBlur:{type:Boolean,value:!1},hoverColor:{type:String,value:"#dcdfe6"},readonly:{type:Boolean,computed:"_computeReadonly(filterable, multiple, visible)"},showClose:{type:Boolean,computed:"_computeShowClose(multiple, value, clearable, selectDisabled, inputHovering)"},showNewOption:{type:Boolean,computed:"_computeShowNewOption(options, query, filterable, allowCreate)"},iconClass:{type:String,computed:"_computeIconClass(filterable, visible)"},emptyText:{type:String,computed:"_computeEmptyText(options.length, loading, loadingText, filterable, query, filteredOptionsCount, noMatchText, noDataText)"},selectSize:{type:String,computed:"_computeSelectSize(size)"},selectDisabled:{type:Boolean,computed:"_computeSelectDisabled(disabled)",observer:"_observeSelectDisabled"},debounce:{type:Number,value:0},trueValue:{value:!0}}}},{key:"observers",get:function(){return["_observeOptions(options, options.splices)","_notifyOptionsRecompute(multiple, value, multipleLimit)"]}}]),a(o,[{key:"ready",value:function(){var t=this;p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"ready",this).call(this),this.cachedPlaceHolder=this.currentPlaceholder=this.placeholder,this.multiple&&!Array.isArray(this.value)&&this.emitChange([]),!this.multiple&&Array.isArray(this.value)&&this.emitChange(""),this.debouncedOnInputChange=Ca(this.debounce,function(e){e.stopPropagation(),t.onInputChange()}),this.debouncedQueryChange=Ca(this.debounce,function(e){e.stopPropagation(),t.handleQueryChange(e.target.value)}),this._boundDebouncedOnInputChange=this.debouncedOnInputChange.bind(this),this._boundDebouncedQueryChange=this.debouncedQueryChange.bind(this),this._boundHandleResize=this.handleResize.bind(this),this._boundOnClickOption=this.onClickOption.bind(this),this._boundOnSetSelected=this.onSetSelected.bind(this),this._boundDeleteTag=this.deleteTag.bind(this),this._boundHandleComposition=this.handleComposition.bind(this),this.shadowRoot.addEventListener("click-option",this._boundOnClickOption),this.shadowRoot.addEventListener("close-tag",this._boundDeleteTag),this.$nativeInput.addEventListener("compositionstart",this._boundHandleComposition),this.$nativeInput.addEventListener("compositionupdate",this._boundHandleComposition),this.$nativeInput.addEventListener("compositionend",this._boundHandleComposition)}},{key:"connectedCallback",value:function(){var e=this;p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"connectedCallback",this).call(this),this.addResizeListener(this._boundHandleResize);var t=this.$reference;if(t){var n=t.shadowRoot.querySelector("input");this.initialInputHeight=n.getBoundingClientRect().height||{medium:36,small:32,mini:28}[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.nextTick(function(){t&&(e.inputWidth=t.getBoundingClientRect().width)}),this.setSelected()}},{key:"disconnectedCallback",value:function(){p(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"disconnectedCallback",this).call(this),this.handleResize&&this.removeResizeListener(this._boundHandleResize)}},{key:"_addGlobalEventListener",value:function(){document.addEventListener("touchstart",this._boundMouseDownListener,!0),document.addEventListener("touchend",this._boundMouseUpListener,!0),document.addEventListener("click",this._boundOutsideClickListener,!0)}},{key:"_mouseDownListener",value:function(e){this._mouseDownInside=0<=e.composedPath().indexOf(this)}},{key:"_mouseUpListener",value:function(e){this._mouseUpInside=0<=e.composedPath().indexOf(this)}},{key:"_outsideClickListener",value:function(e){if(-1!==e.composedPath().indexOf(this)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);this.shadowRoot.activeElement&&this.shadowRoot.activeElement.blur(),this.visible=!1}},{key:"_computeTagsStyle",value:function(e){return"max-width: "+(e-32)+"px; width: 100%"}},{key:"_computeTagHit",value:function(e){return e}},{key:"_computeInputStyle",value:function(e,t){return"flex-grow: 1; width: "+e/(t-32)+"%; max-width: "+(t-42)+"px"}},{key:"_computeReferenceClass",value:function(e){return e?"is-focus":""}},{key:"_computeReferenceTabindex",value:function(e,t){return e&&t?"-1":null}},{key:"_computeScrollbarClass",value:function(e,t,n){return!e&&t&&0===n?"is-empty":""}},{key:"_computePopperStyle",value:function(e,t){return e&&!1!==t?"":"display: none;"}},{key:"_computeReadonly",value:function(e,t,n){return!e||t||!n}},{key:"_computeShowClose",value:function(e,t,n,r,i){var o=e?Array.isArray(t)&&0<t.length:null!=t&&""!==t;return n&&!r&&i&&o}},{key:"_computeIconClass",value:function(e,t){return e?"":t?"arrow-up is-reverse":"arrow-up"}},{key:"_computeShowNewOption",value:function(e,t,n,r){var i=e.filter(function(e){return!e.created}).some(function(e){return e.currentLabel===t});return n&&r&&""!==t&&!i}},{key:"_computeScollbarStyle",value:function(e,t){return 0<e&&!t?"":"display: none;"}},{key:"_computeShowEmptyText",value:function(e,t,n,r){return t&&(!n||r||n&&0===e)}},{key:"_computeEmptyText",value:function(e,t,n,r,i,o,a,s){return t?n||this.t("tt.select.loading"):r&&i&&0<e&&0===o?a||this.t("tt.select.noMatch"):0===e?s||this.t("tt.select.noData"):""}},{key:"_computeSelectSize",value:function(e){return e||"medium"}},{key:"_computeSelectDisabled",value:function(e){return e}},{key:"_computeCaretStyle",value:function(e){return e?"display: none;":""}},{key:"_computeCaretClass",value:function(e){return"card-tt-select__caret card-tt-input__icon"+(e?" card-tt-icon-"+e:"")}},{key:"_computeCreatedOptionStyle",value:function(e){return e?"":"display: none;"}},{key:"_observeSelectDisabled",value:function(){var e=this;this.nextTick(function(){e.resetInputHeight()})}},{key:"_observePlaceholder",value:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e}},{key:"_observeOptions",value:function(e,t){this.multiple&&this.resetInputHeight();var n=this.shadowRoot.querySelectorAll("input");-1===[].indexOf.call(n,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&this.filterable&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}},{key:"_observeValue",value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&0<e.length||this.$input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20)}},{key:"_observeVisible",value:function(e){var t=this;e?(this.broadcast("card-tt-select-menu","updatePopper"),this.filterable&&(this.query=this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$input&&this.$input.focus():(this.broadcastOption("queryChange",""),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("card-tt-select-menu","destroyPopper"),this.$input&&this.$input.blur(),this.query="",this.handleQueryChange(this.query),this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.nextTick(function(){t.$input&&""===t.$input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)}),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdOption?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.triggerEvent("visiblechange",{value:e})}},{key:"handleComposition",value:function(e){}},{key:"setInputHovering",value:function(e){this.inputHovering=!0}},{key:"removeInputHovering",value:function(e){this.inputHovering=!1}},{key:"onClickOption",value:function(e){e.stopPropagation(),e.preventDefault();var t=e.target,n=e.detail&&e.detail.byClick;this.handleOptionSelect(t,n)}},{key:"onSetSelected",value:function(e){e.stopPropagation(),this.setSelected()}},{key:"handleKeyup",value:function(e){}},{key:"handleKeydownReference",value:function(e){switch(e.keyCode){case 13:e.preventDefault(),this.selectOption()}}},{key:"handleKeydownInput",value:function(e){switch(e.keyCode){case 13:e.preventDefault(),this.selectOption();break;case 8:this.deletePrevTag(e)}}},{key:"broadcastOption",value:function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.options&&this.options.forEach(function(e){"function"==typeof e[t]&&e[t].apply(e,n)})}},{key:"broadcast",value:function(e,t){for(var n=arguments.length,r=Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];this.shadowRoot.querySelectorAll(e).forEach(function(e){"function"==typeof e[t]&&e[t].apply(e,r)})}},{key:"deletePrevTag",value:function(e){if(e.target.value.length<=0){var t=this.value.slice();t.pop(),this.emitChange(t)}}},{key:"onOptionDestroy",value:function(e){-1<e&&(this.optionsCount--,this.filteredOptionsCount--,this.splice("options",e,1))}},{key:"handleQueryChange",value:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!=typeof this.filterMethod&&"function"!=typeof this.remoteMethod?(this.previousQuery=e,this.nextTick(function(){t.triggerEvent("input",{value:e}),t.visible&&t.broadcast("card-tt-select-menu","updatePopper")}),this.hoverIndex=-1,this.multiple&&this.filterable&&this.nextTick(function(){var e=15*t.$input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()}),this.remote&&"function"==typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"==typeof this.filterMethod?this.filterMethod(e):(this.filteredOptionsCount=this.optionsCount,this.broadcastOption("queryChange",e)),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)}},{key:"checkDefaultFirstOption",value:function(){for(var e=!(this.hoverIndex=-1),t=this.options.length-1;0<=t;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}}},{key:"managePlaceholder",value:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$input.value?"":this.cachedPlaceHolder)}},{key:"getOption",value:function(e){for(var t,n,r=void 0,i=Ea(e),o=(t=e,"[object null]"===Object.prototype.toString.call(t).toLowerCase()),a=(n=e,"[object undefined]"===Object.prototype.toString.call(n).toLowerCase()),s=this.cachedOptions.length-1;0<=s;s--){var l=this.cachedOptions[s];if(i?ka(l.value,this.valueKey)===ka(e,this.valueKey):l.value===e){r=l;break}}if(r)return r;var c={value:e,currentLabel:i||o||a?"":e};return this.multiple&&(c.hitState=!1),c}},{key:"setSelected",value:function(){var t=this;if(!this.multiple){var e=this.getOption(this.value);return e.created?(this.createdLabel=e.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=e.currentLabel,this.selected=e,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach(function(e){n.push(t.getOption(e))}),this.selected=n,this.nextTick(function(){t.resetInputHeight()})}},{key:"handleFocus",value:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&this.filterable&&(this.menuVisibleOnFocus=!0),this.triggerEvent("focus"))}},{key:"blur",value:function(){this.visible=!1,this.$reference.blur=!0}},{key:"_setSoftFocusFalse",value:function(){this.softFocus=!1}},{key:"setSoftFocus",value:function(){this.softFocus=!0;var e=this.$input||this.$reference;e&&("function"==typeof e.focus?e.focus():e.focus=!0)}},{key:"handleBlur",value:function(e){var t=this;setTimeout(function(){t.isSilentBlur?t.isSilentBlur=!1:t.triggerEvent("blur")},50),this.softFocus=!1}},{key:"handleClearClick",value:function(e){this.deleteSelected(e)}},{key:"deleteSelected",value:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.emitChange(t),this.visible=!1,this.triggerEvent("clear")}},{key:"deleteTag",value:function(e){var t=e.target.dataset,n=t.index,r=t.value;if(-1<n&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.emitChange(i),this.triggerEvent("removetag",{value:r})}e.stopPropagation()}},{key:"onInputChange",value:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))}},{key:"scrollToOption",value:function(e){}},{key:"handleMenuEnter",value:function(){var e=this;this.nextTick(function(){return e.scrollToOption(e.selected)})}},{key:"selectOption",value:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()}},{key:"handleOptionSelect",value:function(e,t){var n=this;if(this.multiple){var r=this.value.slice(),i=this.getValueIndex(r,e.value);-1<i?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$input.focus()}else this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||setTimeout(function(){n.scrollToOption(e)})}},{key:"emitChange",value:function(e){(function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0})(this.value,e)||this.triggerEvent("change",{value:e})}},{key:"getValueIndex",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],n=arguments[1];if(Ea(n)){var r=this.valueKey,i=-1;return e.some(function(e,t){return ka(e,r)===ka(n,r)&&(i=t,!0)}),i}return e.indexOf(n)}},{key:"toggleMenu",value:function(e){if(e&&e.stopPropagation(),!this.disabled&&(this.visible=!this.visible,this.visible)){if(this.$input)return void this.$input.focus();this.$reference&&(this.$reference.focus=!0)}}},{key:"resetHoverIndex",value:function(){var t=this;setTimeout(function(){t.multiple?0<t.selected.length?t.hoverIndex=Math.min.apply(null,t.selected.map(function(e){return t.options.indexOf(e)})):t.hoverIndex=-1:t.hoverIndex=t.options.indexOf(t.selected)},300)}},{key:"resetInputHeight",value:function(){if((!this.collapseTags||this.filterable)&&this.$reference){var e=this.$reference,t=this.$tags,n=this.initialInputHeight||40;e.style.height=0===this.selected.length?n+"px":Math.max(t?t.clientHeight+(t.clientHeight>n?8:0):0,n)+"px",this.visible&&!1!==this.emptyText&&this.broadcast("card-tt-select-menu","updatePopper")}}},{key:"resetInputWidth",value:function(){this.inputWidth=this.$reference.getBoundingClientRect().width}},{key:"handleResize",value:function(){}},{key:"getValueKey",value:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:ka(e.value,this.valueKey)}},{key:"_notifyOptionsRecompute",value:function(e,t,n){this.broadcastOption("_observeSelect",e,t,n)}},{key:"t",value:function(e){switch(e){case"tt.select.loading":return"Loading";case"tt.select.noMatch":return"No Match";case"tt.select.noData":return"No Data"}return e}},{key:"nextTick",value:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o,a;i=this,o=e,a=n,ya||Aa(),ma.push([i,o,a])}},{key:"setReferenceHover",value:function(e){this.$popper&&e.path.includes(this.$popper)||(this.$reference.hover=!0,this.setInputHovering())}},{key:"removeReferenceHover",value:function(e){this.$popper&&e.path.includes(this.$popper)||(this.$reference.hover=!1,this.removeInputHovering())}},{key:"toggleMenuWrapper",value:function(e){this.$popper&&!e.composedPath().includes(this.$popper)&&this.toggleMenu()}},{key:"resetCreated",value:function(e){this.shadowRoot.querySelector("#createdOption").select=this}},{key:"$input",get:function(){return this.shadowRoot.querySelector("#input")}},{key:"$nativeInput",get:function(){return this.$reference.$.inputElement||null}},{key:"$reference",get:function(){return this.$.reference}},{key:"$tags",get:function(){return this.shadowRoot.querySelector("#tags")}},{key:"$popper",get:function(){return this.$.popper||this.shadowRoot.querySelector("#popper")}}]),o}((za=vn(pn),function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,za),a(t,[{key:"addResizeListener",value:function(e){this.__resizeListeners__||(this.__resizeListeners__=[],this.__ro__=new ResizeObserver(wa),this.__ro__.observe(this)),this.__resizeListeners__.push(e)}},{key:"removeResizeListener",value:function(e){this.__resizeListeners__&&(this.__resizeListeners__.splice(this.__resizeListeners__.indexOf(e),1),this.__resizeListeners__.length||this.__ro__.disconnect())}}]),t}()));window.customElements.define(Qa.is,Qa);var $a=document.createElement("div");$a.setAttribute("style","display: none;");$a.innerHTML='<dom-module id="card-tt-larkpc-customizedInput-style">\n <template>\n <style>\n \n#inputContainer {\n border: 0;\n cursor:text;\n width: 100%;\n position: relative;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n background-color: inherit;\n height: auto;\n}\n\n#inputContainer([hidden]) {\n display: none;\n}\n\n#inputWrapper {\n cursor:text;\n display: inline-block;\n}\n\n#inputWrapper span, #computeDiv span {\n outline: none;\n display: inline;\n user-select: text;\n}\n\n#inputWrapper span:empty {\n display: inline-block;\n}\n\n#inputWrapper span[class^="reminder-block"], #computeDiv span[class^="reminder-block"] {\n display: inline-block;\n cursor: pointer;\n padding: 0 .4em 0 .4em;\n color: white;\n border-radius: .6875em;\n height: 1.375em;\n line-height: 1.375em;\n background-color: #3370ff;\n}\n\n.placeholder {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n#inputWrapper, .placeholder {\n padding: 0;\n margin: 0;\n width: 100%;\n outline: none;\n line-height: 1.68;\n height: auto;\n}\n\n#inputContainer .placeholder {\n color: #8f959e;\n z-index: 2;\n pointer-events: none;\n}\n\n#slot {\n display: inline-block;\n user-select: none;\n}\n\n#inputWrapper .reminder-with-avatar {\n color:#3370ff !important;\n background-color: inherit !important;\n}\n\nspan[class^="reminder-block"] img {\n width: 1em;\n height: 1em;\n border: solid .0625em rgba(0,0,0,0.05);\n border-radius: .5625em;\n margin-right: .25em;\n position: relative;\n top: -0.125em;\n vertical-align: middle;\n}\n\n </style>\n </template>\n</dom-module>',document.head.appendChild($a);var Ua=o(['\n <style include="card-tt-larkpc-customizedInput-style"></style>\n <div id="inputContainer">\n <div id="inputWrapper" contenteditable>\n <slot id="slot"></slot>\n </div>\n <div style$="[[ _getPlaceholderStyle(placeholderStyle) ]]" id="placeholder" class="placeholder">[[ placeholder ]]</div>\n </div>\n '],['\n <style include="card-tt-larkpc-customizedInput-style"></style>\n <div id="inputContainer">\n <div id="inputWrapper" contenteditable>\n <slot id="slot"></slot>\n </div>\n <div style\\$="[[ _getPlaceholderStyle(placeholderStyle) ]]" id="placeholder" class="placeholder">[[ placeholder ]]</div>\n </div>\n ']),Ya="inputWrapper",qa="normal-text",Ja="reminder-block",Ga=1,Xa=function(e){function n(){return u(this,n),y(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return f(n,e),a(n,[{key:"ready",value:function(){var t=this;p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"ready",this).call(this),this.inputId=Ga,this.preSlotElements=[],Ga++,this.$.slot.addEventListener("slotchange",function(e){t._handleSlotChange()})}},{key:"connectedCallback",value:function(){var t=this;p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"connectedCallback",this).call(this),this.__onKeyPress=function(e){return t.onKeyPress(e)},this.$.inputWrapper.addEventListener("keypress",this.__onKeyPress),this.__onKeyDown=function(e){return t.onKeyDown(e)},this.$.inputWrapper.addEventListener("keydown",this.__onKeyDown),this.__onCompositionStart=function(e){return t.onCompositionStart(e)},this.$.inputWrapper.addEventListener("compositionstart",this.__onCompositionStart),this.__onCompositionEnd=function(e){return t.onCompositionEnd(e)},this.$.inputWrapper.addEventListener("compositionend",this.__onCompositionEnd),this.__onPaste=function(e){return t.onPaste(e)},this.$.inputWrapper.addEventListener("paste",this.__onPaste),this.__onInput=function(e){return t.onInput(e)},this.$.inputWrapper.addEventListener("input",this.__onInput)}},{key:"disconnectedCallback",value:function(){p(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"disconnectedCallback",this).call(this),this.$.inputWrapper.removeEventListener("keypress",this.__onKeyPress),this.$.inputWrapper.removeEventListener("keydown",this.__onKeyDown),this.$.inputWrapper.removeEventListener("compositionstart",this.__onCompositionStart),this.$.inputWrapper.removeEventListener("compositionend",this.__onCompositionEnd),this.$.inputWrapper.removeEventListener("paste",this.__onPaste),this.$.inputWrapper.removeEventListener("input",this.__onInput)}},{key:"_getPlaceholderStyle",value:function(e){return e+";"+(0<this.$.inputWrapper.innerText.length?"display: none;":"display: inline-block;")}},{key:"_contentChanged",value:function(e,t){var i=this;if(this._updatePlaceholderStyle(),e&&0!==this._deleteZeroWidthChar(e).length||t&&0!==this._deleteZeroWidthChar(e).length){var o="",a=[];Array.from(this.$.inputWrapper.children).forEach(function(e,t){if(e.className===qa){var n=e.innerText;n=i._deleteZeroWidthChar(n),o+=n}else if(e.className.startsWith(Ja)){var r=e.className.split(" ")[0].substring(Ja.length+1);a.push({id:r,offset:o.length})}}),this.triggerEvent("input",{text:o,reminders:a})}}},{key:"_dataChanged",value:function(e,t){if(e&&"string"==typeof e.text){var n=e.text,r=e.reminders,i=void 0===r?[]:r,o=this._getRangeOffset(this._getRange());this.$.inputWrapper.innerText="",this._insertSlotElement();var a=0;if(i&&0!==i.length){for(var s=!1,l=0;l<i.length;l++){var c=i[l];if(!c.id||!c.name){s=!0,console.error("required id or name should not be null");break}var u=c.id,d=void 0===u?"":u,h=c.name,p=void 0===h?"":h,f=c.offset,v=void 0===f?"":f,g=c.avatar,y=void 0===g?"":g,m=n.substring(a,v);m=this._deleteZeroWidthChar(m),m=0===l?this._createNormalTextElement(m+""):this._createNormalTextElement(""+m+"");var _=this._createBlockElement(d,p,y);if(this.$.inputWrapper.insertBefore(m,this.$.slot),this.$.inputWrapper.insertBefore(_,this.$.slot),l===i.length-1){var A=n.substring(v,n.length);A=this._deleteZeroWidthChar(A),A=this._createNormalTextElement(""+A),this.$.inputWrapper.insertBefore(A,this.$.slot)}a=v}s?this._insertNormalTextAfterDataChange(n,o):(this._setRangeAfterDataChange(o),this._updatePlaceholderStyle())}else this._insertNormalTextAfterDataChange(n,o)}}},{key:"_insertNormalTextAfterDataChange",value:function(e,t){var n=this._deleteZeroWidthChar(e),r=this._createNormalTextElement(n);this.$.inputWrapper.insertBefore(r,this.$.slot),this._setRangeAfterDataChange(t),this._updatePlaceholderStyle()}},{key:"_getRangeOffset",value:function(e){if(e){for(var t=e.endContainer,n=0,r=this._getChildIndex(t.parentElement),i=Array.from(this.$.inputWrapper.children),o=0;o<r;o++){var a=i[o];n+=this._deleteZeroWidthChar(a.innerText).length}return n+=this._deleteZeroWidthChar(t.textContent.substring(0,e.endOffset)).length}}},{key:"_setRangeAfterDataChange",value:function(e){if("number"==typeof e){var t=this._deleteZeroWidthChar(this.$.inputWrapper.innerText),n=Array.from(this.$.inputWrapper.children);if(e>=t.length){var r=n[n.length-2];this._isNormalText(r)?this._changeRange(this._getTextNode(r),r.innerText.length):this._changeRange(this.$.inputWrapper,n.length-1)}else for(var i=0;i<n.length;i++){var o=n[i],a=e-this._deleteZeroWidthChar(o.innerText).length;if(a<=0){if(this._isNormalText(o)){for(var s=0,l=0,c=0;c<o.innerText.length;c++){var u=o.innerText[c];if(0!==this._deleteZeroWidthChar(u).length&&++s===e){l=c+1;break}}this._changeRange(this._getTextNode(o),l)}else this._isReminderBlock(o)&&this._changeRange(this._getTextNode(o.nextElementSibling),0);break}e=a}}}},{key:"_isInReminderChanged",value:function(e,t){e||(this.currentRange=null)}},{key:"_isDisabledChanged",value:function(e,t){this.$.inputWrapper.setAttribute("contenteditable",""+!e)}},{key:"_isFocusChanged",value:function(e,t){e?this.$.inputWrapper.focus():this.$.inputWrapper.blur()}},{key:"_isShowReminderChanged",value:function(e,t){var i=this;if(e){var n=this._insertNormalTextIfNeeded("@");if(-1===n)return;var r=this._getRange(),o=r.endContainer;if(1===n){var a=r.endOffset;o.textContent=o.textContent.slice(0,a)+"@"+o.textContent.slice(a),this._changeRange(o,a+1)}requestAnimationFrame(function(){var e=i._getCaretLocation(),t=e.x,n=e.y,r=e.height;i.currentRange=i._getRange().cloneRange(),i.popoverLocation={left:t,top:n,height:r},i._showReminder()})}}},{key:"onInput",value:function(e){var i=this;if(""===this.$.inputWrapper.innerHTML.replace(/<br>/g,""))return this.$.inputWrapper.innerHTML="",void this._updateContent();if(this.isInReminder){var t=this.currentRange,n=t.endContainer.textContent;return n=n.substring(t.endOffset,this._getRange().endOffset),/^.*[\s]{2}$/.test(n)?void this._hideReminder():void this._search(n)}if(this.isInputing)this._updateContent();else if(e.data){if(this._insertNormalTextIfNeeded(e.data),"@"===e.data)return this._updatePlaceholderStyle(),requestAnimationFrame(function(){var e=i._getCaretLocation(),t=e.x,n=e.y,r=e.height;i.currentRange=i._getRange().cloneRange(),i.popoverLocation={left:t,top:n,height:r},i._showReminder()}),void e.stopPropagation();this._updateContent()}else this._updateContent()}},{key:"onKeyPress",value:function(e){if("Enter"===e.key){if(this.isInReminder)return this._onReminderKeyEvent(e.key),void e.preventDefault();this.triggerEvent("confirm",{}),this.$.inputWrapper.blur(),e.preventDefault()}}},{key:"onKeyDown",value:function(e){var t=this,n=this._getRange(),r=n.endContainer;if(n){if("Backspace"===e.key){if(e.metaKey){r.textContent=r.textContent.substring(n.endOffset);for(var i=this._getChildIndex(r.parentElement),o=Array.from(this.$.inputWrapper.children),a=0;a<i;a++){var s=o[a];this.$.inputWrapper.removeChild(s)}return this.$.inputWrapper.insertBefore(this._createNormalTextElement(""),r.parentElement),this._updateContent(),void e.preventDefault()}if(0===this._deleteZeroWidthChar(this.$.inputWrapper.innerText).length&&(Array.from(this.$.inputWrapper.children).forEach(function(e){e!==t.$.slot&&t.$.inputWrapper.removeChild(e)}),this.$.inputWrapper.insertBefore(this._createNormalTextElement(""),this.$.slot),this.triggerEvent("delete",{}),e.preventDefault()),this._isNormalText(r)){if(this.isInReminder){var l=n.endContainer.textContent;if("@"===(l=l.slice(this.currentRange.endOffset-1,n.endOffset)))return this._hideReminder(),void this._updateContent()}var c=n.startContainer.parentElement,u=n.endContainer.parentElement;if(!c.previousElementSibling&&u.nextElementSibling===this.$.slot&&0===n.startOffset&&n.endOffset===u.textContent.length)return this.$.inputWrapper.innerText="",this._insertSlotElement(),this._updateContent(),void e.preventDefault();if(1===this.$.inputWrapper.innerText.length)return this.$.inputWrapper.innerText="",this._insertSlotElement(),this._updateContent(),void e.preventDefault();var d=r.textContent.substring(n.endOffset-1,n.endOffset),h=r.textContent.substring(n.endOffset,n.endOffset+1);if(""===d||""===h){var p=r.parentElement.previousElementSibling;if(!p&&n.endOffset<=1)return r.textContent="",this._updateContent(),void e.preventDefault();if(""===d){if(1<n.endOffset)return r.textContent=r.textContent.substring(0,n.endOffset-2),requestAnimationFrame(function(){t._changeRange(r,r.textContent.length)}),e.preventDefault(),void this._updateContent();r.textContent=r.textContent.substring(n.endOffset)}else if(""===h){if(1<n.endOffset)return void this._updateContent();r.textContent=r.textContent.substring(n.endOffset+1)}if(0===r.textContent.length&&this.$.inputWrapper.removeChild(r.parentElement),!this._isReminderBlock(p))return console.error("delete zero width char error"),void this._updateContent();var f=p.previousElementSibling;if(this.$.inputWrapper.removeChild(p),f&&this._isNormalText(f))if(""===f.textContent.substring(f.textContent.length-1)&&1<this.$.inputWrapper.innerText.length){if(f.textContent=f.textContent.substring(0,f.textContent.length-1),0===f.textContent.length)return this.$.inputWrapper.removeChild(f),e.preventDefault(),void requestAnimationFrame(function(){t._updateContent()});requestAnimationFrame(function(){t._changeRange(t._getTextNode(f),f.textContent.length)})}return this._updateContent(),void e.preventDefault()}}else this._isParentContainer(r)&&(this._updateContent(),e.preventDefault())}else if("Escape"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key){if(!this.isInReminder)return;this._onReminderKeyEvent(e.key),e.preventDefault()}else if("ArrowLeft"===e.key){if(this.isInReminder)return void e.preventDefault();if(""===r.textContent.substring(n.endOffset-1,n.endOffset)&&1===n.endOffset){var v=r.parentElement.previousElementSibling;if(!v||!this._isReminderBlock(v))return;var g=v.previousElementSibling;if(g&&this._isNormalText(g))if(""===g.textContent.substring(g.textContent.length-1)){var y=Array.from(g.childNodes).find(function(e){return e.nodeType===Node.TEXT_NODE});this._changeRange(y,y.textContent.length-1),e.preventDefault()}}}else if("ArrowRight"===e.key){if(this.isInReminder)return void e.preventDefault();if(""===r.textContent.substring(n.endOffset,n.endOffset+1)&&n.endOffset===r.textContent.length-1){var m=r.parentElement.nextElementSibling;if(!m||!this._isReminderBlock(m))return;var _=m.nextElementSibling;if(_&&this._isNormalText(_))if(""===_.textContent.substring(0,1)){var A=Array.from(_.childNodes).find(function(e){return e.nodeType===Node.TEXT_NODE});this._changeRange(A,1),e.preventDefault()}}}}else this._updateContent()}},{key:"onCompositionStart",value:function(e){this.isInputing=!0}},{key:"onCompositionEnd",value:function(e){this.isInputing=!1,this._insertNormalTextIfNeeded(e.data),this._updateContent()}},{key:"onPaste",value:function(e){var t=(e.clipboardData||window.clipboardData).getData("text"),n=this._getRange();n&&(n.endContainer.textContent+=t,this._changeRange(n.endContainer,n.endContainer.textContent.length),e.preventDefault())}},{key:"_handleUserSelect",value:function(e,t,n,r){var i=this,o=this.$.inputWrapper,a=this.currentRange.endContainer,s=a.textContent,l=this.currentRange.endOffset,c=[l<=s.length?s.substring(0,l-1):"",l+r.length<=s.length?s.substring(l+r.length,s.length):""];c=c.map(function(e,t){var n=i._createNormalTextElement(e),r=n.innerText;return 0!==t||""===r.substring(r.length-1)&&""!==r?1!==t||""===r.substring(0,1)&&""!==r||(n.innerText=""+r):n.innerText=r+"",n});var u=this._createBlockElement(e,t,n);a.nodeType===Node.ELEMENT_NODE&&a.className===qa?(a.after(c[0],u,c[1]),o.removeChild(a)):a.nodeType===Node.TEXT_NODE&&a.parentElement.className===qa?(a.parentElement.after(c[0],u,c[1]),o.removeChild(a.parentElement)):console.error("insert block error",this.currentRange.endContainer),this._updateContent(),requestAnimationFrame(function(){i._changeRange(i._getTextNode(c[1]),1)})}},{key:"_getRange",value:function(){var e=this.root.getSelection();return 0<e.rangeCount&&e.getRangeAt(0)}},{key:"_changeRange",value:function(e,t){if(e&&(e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE)){var n=document.createRange(),r=this.root.getSelection();n.setStart(e,t),n.collapse(!0),r.removeAllRanges(),r.addRange(n),this.$.inputWrapper.focus()}}},{key:"_getNormalText",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=document.createElement("span");return t.innerText=e,t.className=qa,t}},{key:"_getChildIndex",value:function(t){return Array.from(this.$.inputWrapper.children).findIndex(function(e){return e===t})}},{key:"_getChild",value:function(n){return Array.from(this.$.inputWrapper.children).find(function(e,t){return n===t})}},{key:"_getTextNode",value:function(e){return Array.from(e.childNodes).find(function(e){return e.nodeType===Node.TEXT_NODE})}},{key:"_insertNormalTextIfNeeded",value:function(e){var t=this,n=this._getRange();if(!n)return-1;var r=n.endContainer,i=this.$.inputWrapper;if(0===i.children.length){i.innerText="";var o=this._getNormalText(e);return i.append(o),requestAnimationFrame(function(){t._changeRange(t._getTextNode(o),e.length)}),0}if(this._isParentContainer(r)){var a=this._getNormalText(e);return r.nextElementSibling?r.previousElementSibling||r.nextElementSibling.before(a):r.previousElementSibling.after(a),r.textContent="",requestAnimationFrame(function(){t._changeRange(t._getTextNode(a),e.length)}),0}return 1}},{key:"_createBlockElement",value:function(i,e,t){var n=document.createElement("span");if(n.setAttribute("contenteditable","false"),n.className=Ja+"-"+i,this.showReminderAvatar&&t){n.innerText=e;var r=document.createElement("img");r.src=t,n.insertAdjacentElement("afterbegin",r),n.classList.add("reminder-with-avatar")}else n.innerText="@"+e;var o=this;return n.onclick=function(e){var t=e.currentTarget,n=window.getComputedStyle(o.$.inputWrapper).lineHeight.replace("px","");n=Number(n);var r=Math.floor(t.offsetTop/n)*n+o.offsetTop;ttJSBridge_w.invoke("enterProfile",{openid:i,left:t.offsetLeft+t.clientWidth,top:r},function(e){})},n}},{key:"_createNormalTextElement",value:function(e){var t=document.createElement("span");return t.innerText=e,t.className=qa,t.innerHTML=this._delHtmlTag(t.innerHTML),t}},{key:"_getCaretLocation",value:function(){var e=0,t=0,n=0,r=this.root.getSelection();if(r.rangeCount){var i=r.getRangeAt(0).cloneRange();if(i.getClientRects()){i.collapse(!0);var o=i.getClientRects()[0];o&&(t=o.top,e=o.left,n=o.height)}}return{x:e,y:t,height:n}}},{key:"_delHtmlTag",value:function(e){return e.replace(/<[^>]+>/g,"")}},{key:"_deleteZeroWidthChar",value:function(e){return e.replace(/\u200B/g,"")}},{key:"_showReminder",value:function(t){var s=this,l=this.inputId;ttJSBridge_w.invoke("showReminder",Object.assign(this.popoverLocation,{inputId:l,chatId:this.chatId}),function(e){e&&e.data&&e.data.inputId&&e.data.inputId===l&&(s._setIsInReminder(0===e.data.code),t&&t(e),ttJSBridge_w.on("onReminderUserSelect",function(e){if(e&&e.inputId&&e.userInfo&&e.inputId===l){var t=e.userInfo,n=e.keyword;if(t.id&&t.name){var r=t.id,i=t.name,o=t.avatar_url,a=void 0===o?"":o;s._handleUserSelect(r,i,a,n||""),s._setIsInReminder(!1)}}}),ttJSBridge_w.on("onReminderHideCard",function(e){e&&e.inputId&&e.inputId===l&&s._setIsInReminder(!1)}))})}},{key:"_hideReminder",value:function(t){var n=this,r=this.inputId;ttJSBridge_w.invoke("hideReminder",{inputId:r},function(e){e&&e.data&&e.data.inputId&&e.data.inputId===r&&(n._setIsInReminder(!1),t&&t(e))})}},{key:"_search",value:function(e,t){var n=this.inputId;ttJSBridge_w.invoke("searchReminder",{keyword:e,inputId:n},function(e){e&&e.data&&e.data.inputId&&e.data.inputId===n&&t&&t(e)})}},{key:"_onReminderKeyEvent",value:function(e,t){var n=this.inputId;ttJSBridge_w.invoke("onReminderKeyEvent",{inputId:n,key:e},function(e){e&&e.data&&e.data.inputId&&e.data.inputId===n&&t&&t(e)})}},{key:"_isNormalText",value:function(e){return e.nodeType===Node.TEXT_NODE&&e.parentElement.className===qa||e.className===qa}},{key:"_isReminderBlock",value:function(e){return e.className.startsWith(Ja)}},{key:"_isParentContainer",value:function(e){return e.nodeType===Node.TEXT_NODE&&e.parentElement.id===Ya||e.id===Ya}},{key:"_updateContent",value:function(){this._setContent(this.$.inputWrapper.innerText)}},{key:"_computedStyle",value:function(){var t=this,n=window.getComputedStyle(this);Object.keys(n).filter(function(e){return-1<["fontFamily","fontSize","color","backgroundColor"].indexOf(e)}).forEach(function(e){t.$.inputContainer.style[e]=n[e]})}},{key:"_handleSlotChange",value:function(){var e=this.$.slot.assignedNodes({flatten:!0});this.preSlotElements&&this.preSlotElements.length===e.length||(this.preSlotElements=e,this._updatePlaceholderStyle(e))}},{key:"_updatePlaceholderStyle",value:function(e){e||(e=this.$.slot.assignedNodes({flatten:!0})),this.$.placeholder.style=this.placeholderStyle+";display: none;",0===e.length&&0===this._deleteZeroWidthChar(this.$.inputWrapper.innerText).length&&(this.$.placeholder.style=this.placeholderStyle+";display: inline-block;")}},{key:"_insertSlotElement",value:function(){if(""===this.$.inputWrapper.innerText){var e=this._createNormalTextElement("");this.$.inputWrapper.append(e,this.$.slot)}else this.$.inputWrapper.append(this.$.slot)}}],[{key:"template",get:function(){return hn(Ua)}},{key:"is",get:function(){return"card-tt-customized-input"}},{key:"properties",get:function(){return{placeholderStyle:{type:String,value:""},placeholder:{type:String,value:""},content:{type:String,observer:"_contentChanged",readOnly:!0},data:{type:Object,value:{text:"",reminders:[]},observer:"_dataChanged"},isInReminder:{type:Boolean,value:!1,readOnly:!0,observer:"_isInReminderChanged"},showReminderAvatar:{type:Boolean,value:!1},chatId:{type:String,defaultValue:"",readOnly:!0},disabled:{type:Boolean,defaultValue:!1,observer:"_isDisabledChanged"},focus:{type:Boolean,defaultValue:!1,observer:"_isFocusChanged"},showReminder:{type:Boolean,defaultValue:!1,observer:"_isShowReminderChanged"}}}}]),n}(vn(pn));window.customElements.define(Xa.is,Xa);var Ka=document.getElementById("card-tt-button-style");if(Ka){var Za="mobile"!==window.PC_RUN_MODE?'\n ::slotted(*) {\n -webkit-user-select: none;\n user-select: none;\n }\n :host {\n position: relative;\n display: inline-block;\n padding-left: 16px;\n padding-right: 16px;\n box-sizing: border-box;\n font-size: 14px;\n text-align: center;\n text-decoration: none;\n line-height: 2.286;\n border-radius: 4px;\n color: #39424E;\n background-color: #FFFFFF;\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n user-select: none;\n cursor: pointer;\n }\n :host([hidden]) {\n display: none !important;\n }\n :host([disabled]) {\n cursor: not-allowed !important;\n }\n :host:after {\n content: " ";\n width: 200%;\n height: 200%;\n position: absolute;\n top: 0;\n left: 0;\n border: 1px solid #DEE0E3;\n -webkit-transform: scale(0.5) translateZ(0);\n transform: scale(0.5) translateZ(0);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n box-sizing: border-box;\n border-radius: 8px;\n }\n :host([type=dashed]):after {\n border-style: dashed;\n }\n :host([size=default]) {\n padding-left: 1.15em;\n padding-right: 1.15em;\n font-size: 14px;\n line-height: 2.28642857;\n }\n :host([size=huge]) {\n padding-left: 1.50625em;\n padding-right: 1.50625em;\n font-size: 16px;\n line-height: 2.500625;\n }\n :host([size=large]) {\n padding-left: 1.43571429em;\n padding-right: 1.43571429em;\n font-size: 14px;\n line-height: 2.57214286;\n }\n :host([size=mini]) {\n padding-left: 1.00833333em;\n padding-right: 1.00833333em;\n font-size: 12px;\n line-height: 2.00083333;\n }\n :host([type=default]) {\n color: #39424e;\n background-color: #FFFFFF;\n }\n :host([type=default]):after {\n border-color: #DEE0E3;\n }\n :host([type=default]:hover) {\n color: #3370FF;\n background-color: #FFFFFF;\n }\n :host([type=default]:hover):after {\n border-color: #3370FF;\n }\n :host([type=default]:active) {\n color: #2152d9;\n background-color: #FFFFFF;\n }\n :host([type=default]:active):after {\n border-color: #2152d9;\n }\n :host([type=default][disabled]) {\n color: #BABEC4;\n background-color: #F5F5F6;\n }\n :host([type=default][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=default][plain]) {\n background-color: transparent;\n color: #FFFFFF;\n }\n :host([type=default][plain]):after {\n border-color: #FAFBFC;\n }\n :host([type=default][plain]:hover) {\n color: #5C92FF;\n }\n :host([type=default][plain]:hover):after {\n border-color: #5C92FF;\n }\n :host([type=default][plain]:active) {\n color: #2152d9;\n }\n :host([type=default][plain]:active):after {\n border-color: #2152d9;\n }\n :host([type=default][plain][disabled]) {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n }\n :host([type=default][plain][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=primary]) {\n color: #ffffff;\n background-color: #3370ff;\n }\n :host([type=primary]):after {\n border-color: transparent;\n }\n :host([type=primary]:hover) {\n color: #ffffff;\n background-color: #5C92FF;\n }\n :host([type=primary]:hover):after {\n border-color: transparent;\n }\n :host([type=primary]:active) {\n color: #ffffff;\n background-color: #2152d9;\n }\n :host([type=primary]:active):after {\n border-color: #2152d9;\n }\n :host([type=primary][disabled]) {\n color: #FFFFFF;\n background-color: #82A7FC;\n }\n :host([type=primary][disabled]):after {\n border-color: transparent;\n }\n :host([type=primary][plain]) {\n background-color: transparent;\n color: #3370ff;\n }\n :host([type=primary][plain]):after {\n border-color: #3370ff;\n }\n :host([type=primary][plain]:hover) {\n color: #5C92FF;\n }\n :host([type=primary][plain]:hover):after {\n border-color: #5C92FF;\n }\n :host([type=primary][plain]:active) {\n color: #2152d9;\n }\n :host([type=primary][plain]:active):after {\n border-color: #2152d9;\n }\n :host([type=primary][plain][disabled]) {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n }\n :host([type=primary][plain][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=dashed]) {\n color: #39424e;\n background-color: #FFFFFF;\n }\n :host([type=dashed]):after {\n border-color: #DEE0E3;\n }\n :host([type=dashed]:hover) {\n color: #3370FF;\n background-color: #FFFFFF;\n }\n :host([type=dashed]:hover):after {\n border-color: #3370FF;\n }\n :host([type=dashed]:active) {\n color: #2152d9;\n background-color: #FFFFFF;\n }\n :host([type=dashed]:active):after {\n border-color: #2152d9;\n }\n :host([type=dashed][disabled]) {\n color: #BABEC4;\n background-color: #F5F5F6;\n }\n :host([type=dashed][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=dashed][plain]) {\n background-color: transparent;\n color: #FAFBFC;\n }\n :host([type=dashed][plain]):after {\n border-color: #FAFBFC;\n }\n :host([type=dashed][plain]:hover) {\n color: #5C92FF;\n }\n :host([type=dashed][plain]:hover):after {\n border-color: #5C92FF;\n }\n :host([type=dashed][plain]:active) {\n color: #2152d9;\n }\n :host([type=dashed][plain]:active):after {\n border-color: #2152d9;\n }\n :host([type=dashed][plain][disabled]) {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n }\n :host([type=dashed][plain][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=warn]) {\n color: #f54a45;\n background-color: #FFFFFF;\n }\n :host([type=warn]):after {\n border-color: #f54a45;\n }\n :host([type=warn]:hover) {\n color: #f76964;\n background-color: #FFFFFF;\n }\n :host([type=warn]:hover):after {\n border-color: #f76964;\n }\n :host([type=warn]:active) {\n color: #d83931;\n background-color: #FFFFFF;\n }\n :host([type=warn]:active):after {\n border-color: #d83931;\n }\n :host([type=warn][disabled]) {\n color: #BABEC4;\n background-color: #F5F5F6;\n }\n :host([type=warn][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=warn][plain]) {\n background-color: transparent;\n color: #f54a45;\n }\n :host([type=warn][plain]):after {\n border-color: #f54a45;\n }\n :host([type=warn][plain]:hover) {\n color: #f76964;\n }\n :host([type=warn][plain]:hover):after {\n border-color: #f76964;\n }\n :host([type=warn][plain]:active) {\n color: #d83931;\n }\n :host([type=warn][plain]:active):after {\n border-color: #d83931;\n }\n :host([type=warn][plain][disabled]) {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n }\n :host([type=warn][plain][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=danger]) {\n color: #ffffff;\n background-color: #f54a45;\n }\n :host([type=danger]):after {\n border-color: transparent;\n }\n :host([type=danger]:hover) {\n color: #ffffff;\n background-color: #f76964;\n }\n :host([type=danger]:hover):after {\n border-color: transparent;\n }\n :host([type=danger]:active) {\n color: #ffffff;\n background-color: #d83931;\n }\n :host([type=danger]:active):after {\n border-color: #d83931;\n }\n :host([type=danger][disabled]) {\n color: #FFFFFF;\n background-color: #F98E8B;\n }\n :host([type=danger][disabled]):after {\n border-color: transparent;\n }\n :host([type=danger][plain]) {\n background-color: transparent;\n color: #f54a45;\n }\n :host([type=danger][plain]):after {\n border-color: #f54a45;\n }\n :host([type=danger][plain]:hover) {\n color: #f76964;\n }\n :host([type=danger][plain]:hover):after {\n border-color: #f76964;\n }\n :host([type=danger][plain]:active) {\n color: #d83931;\n }\n :host([type=danger][plain]:active):after {\n border-color: #d83931;\n }\n :host([type=danger][plain][disabled]) {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n }\n :host([type=danger][plain][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([type=text]) {\n color: #3370ff;\n background-color: transparent;\n }\n :host([type=text]):after {\n border-color: transparent;\n }\n :host([type=text]:hover) {\n color: #5c92ff;\n background-color: transparent;\n }\n :host([type=text]:hover):after {\n border-color: transparent;\n }\n :host([type=text]:active) {\n color: #2152d9;\n background-color: transparent;\n }\n :host([type=text]:active):after {\n border-color: transparent;\n }\n :host([type=text][disabled]) {\n color: #BABEC4;\n background-color: transparent;\n }\n :host([type=text][disabled]):after {\n border-color: transparent;\n }\n :host([type=text][plain]) {\n background-color: transparent;\n color: #fafbfc;\n }\n :host([type=text][plain]):after {\n border-color: transparent;\n }\n :host([type=text][plain]:hover) {\n color: #5C92FF;\n }\n :host([type=text][plain]:hover):after {\n border-color: transparent;\n }\n :host([type=text][plain]:active) {\n color: #2152d9;\n }\n :host([type=text][plain]:active):after {\n border-color: transparent;\n }\n :host([type=text][plain][disabled]) {\n background-color: transparent;\n color: rgba(0, 0, 0, 0.25);\n }\n :host([type=text][plain][disabled]):after {\n border-color: #DEE0E3;\n }\n :host([shape=rectangle]) {\n border-radius: 0;\n }\n :host([shape=round]) {\n border-radius: 32px;\n }\n :host([shape=round]):after {\n border-radius: 64px;\n }\n :host([shape=round][size=huge]) {\n border-radius: 40px;\n }\n :host([shape=round][size=huge]):after {\n border-radius: 80px;\n }\n :host([shape=round][size=large]) {\n border-radius: 36px;\n }\n :host([shape=round][size=large]):after {\n border-radius: 72px;\n }\n :host([shape=round][size=mini]) {\n border-radius: 24px;\n }\n :host([shape=round][size=mini]):after {\n border-radius: 48px;\n }\n @-webkit-keyframes card-tt-button-loading-animate {\n 0% {\n -webkit-transform: rotate3d(0, 0, 1, 0deg);\n transform: rotate3d(0, 0, 1, 0deg);\n }\n 100% {\n -webkit-transform: rotate3d(0, 0, 1, 360deg);\n transform: rotate3d(0, 0, 1, 360deg);\n }\n }\n @keyframes card-tt-button-loading-animate {\n 0% {\n -webkit-transform: rotate3d(0, 0, 1, 0deg);\n transform: rotate3d(0, 0, 1, 0deg);\n }\n 100% {\n -webkit-transform: rotate3d(0, 0, 1, 360deg);\n transform: rotate3d(0, 0, 1, 360deg);\n }\n }\n :host([loading]) #icon {\n display: inline-block;\n width: 12px;\n height: 12px;\n line-height: 12px;\n vertical-align: middle;\n text-align: center;\n font: normal normal normal 14px/1 "larkui";\n -webkit-animation: card-tt-button-loading-animate 1s steps(12, end) infinite;\n animation: card-tt-button-loading-animate 1s steps(12, end) infinite;\n }\n :host([loading]) #icon:after {\n content: \'\\e900\';\n display: block;\n height: 100%;\n width: 100%;\n font-size: 12px;\n }\n :host #mask {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: transparent;\n }\n ':'\n ::slotted(*) {\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host {\n position: relative;\n display: block;\n margin-left: auto;\n margin-right: auto;\n padding-left: 14px;\n padding-right: 14px;\n box-sizing: border-box;\n font-size: 18px;\n text-align: center;\n text-decoration: none;\n line-height: 2.55555556;\n border-radius: 5px;\n border:0.5px solid #DEE0E3;\n color: #006AFF;\n background-color: #FFFFFF;\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host([ hidden ]) {\n display: none !important;\n }\n\n :host:after {\n content: " ";\n width: 200%;\n height: 200%;\n position: absolute;\n top: 0;\n left: 0;\n border: 1px solid #DEE0E3;\n -webkit-transform: scale(0.5) translateZ(0);\n transform: scale(0.5) translateZ(0);\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n box-sizing: border-box;\n border-radius: 10px;\n }\n\n :host([type=primary]) {\n color: #FFFFFF;\n background-color: #006AFF;\n }\n :host([type=warn]) {\n color: #FFFFFF;\n background-color: #FF6661;\n }\n\n /* host[disabled][type=default] */\n :host([disabled]:not([type])) {\n background-color: #D7DAE0;\n border:0.5px solid #DEE0E3;\n color: #FFFFFF;\n }\n\n :host([disabled][type=primary]) {\n background-color: rgba(0,106,255,0.4);\n color: #FFFFFF;\n }\n\n :host([disabled][type=warn]) {\n background-color: rgba(255,102,97,0.4);\n color: #FFFFFF;\n }\n \n :host([type=primary][plain]) {\n color: rgba(248,89,89,1);\n border: 1px solid rgba(248,89,89,1);\n background-color: transparent;\n }\n\n :host([type=primary][plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: #DEE0E3;\n }\n\n :host([type=primary][plain]):after {\n border-width: 0;\n }\n\n :host([type=default][plain]) {\n color: rgba(0,0,0,1);\n border: 1px solid #DEE0E3;\n background-color: transparent;\n }\n\n :host([type=default][plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: #DEE0E3;\n }\n\n\n :host([type=default][plain]):after {\n border-width: 0;\n }\n\n :host([plain]) {\n color: #353535;\n border: 1px solid #353535;\n background-color: transparent;\n }\n\n :host([plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: #DEE0E3;\n }\n\n :host([plain]):after {\n border-width: 0;\n }\n /*\n :host([type=warn][plain]) {\n color: #e64340;\n border: 1px solid #e64340;\n background-color: transparent;\n }\n\n :host([type=warn][plain][disabled]) {\n color: rgba(0, 0, 0, 0.2);\n border-color: #DEE0E3;\n }\n\n :host([type=warn][plain]):after {\n border-width: 0;\n }\n */\n :host([size=mini]) {\n display: inline-block;\n line-height: 2.3;\n font-size: 14px;\n padding: 0 1.34em;\n }\n /*\n :host([loading][type=primary][plain]) {\n color: rgba(248,89,89,1);\n background-color: transparent;\n }\n\n :host([loading][type=primary]),:host(.button-hover[type=primary]) {\n color: #FFFFFF;\n background:#2E7CEA;\n }\n\n :host([loading][type=default]),:host(.button-hover[type=default]) {\n color: #006AFF;\n background-color: rgba(0,0,0,0.05);\n border-color: rgba(0,0,0,0.05);\n }\n :host([loading][type=warn]),:host(.button-hover[type=warn]) {\n color: #FFFFFF;\n background-color: #EA5D59;\n }\n \n :host([loading][type=default][plain]) {\n color: #353535;\n background-color: transparent;\n }\n /*\n :host([loading][type=warn]) {\n color: rgba(255, 255, 255, 0.6);\n background-color: #CE3C39;\n }\n\n :host([loading][type=warn][plain]) {\n color: #e64340;\n background-color: transparent;\n }\n */\n @-webkit-keyframes card-tt-button-loading-animate {\n 0% {\n -webkit-transform: rotate3d(0, 0, 1, 0deg);\n transform: rotate3d(0, 0, 1, 0deg);\n }\n\n 100% {\n -webkit-transform: rotate3d(0, 0, 1, 360deg);\n transform: rotate3d(0, 0, 1, 360deg);\n }\n }\n\n @keyframes card-tt-button-loading-animate {\n 0% {\n -webkit-transform: rotate3d(0, 0, 1, 0deg);\n transform: rotate3d(0, 0, 1, 0deg);\n }\n\n 100% {\n -webkit-transform: rotate3d(0, 0, 1, 360deg);\n transform: rotate3d(0, 0, 1, 360deg);\n }\n }\n\n /*\n :host(.button-hover[plain]) {\n color: rgba(53, 53, 53, 0.6);\n border-color: rgba(53, 53, 53, 0.6);\n background-color: transparent;\n }\n \n\n /*\n :host(.button-hover[type=primary][plain]) {\n color: rgba(248,89,89,0.6);\n border-color: rgba(248,89,89,0.6);\n background-color: transparent;\n }\n\n :host(.button-hover[loading][type=primary][plain]) {\n color: rgba(248,89,89,1);\n }\n\n :host(.button-hover[type=default][plain]) {\n color: rgba(34,34,34,0.6);\n border: 1px solid rgba(0, 0, 0, 0.1);\n background-color: transparent;\n }\n\n :host(.button-hover[loading][type=default][plain]) {\n color: rgba(34,34,34,1);\n }\n /*\n :host(.button-hover[type=warn]) {\n color: rgba(255, 255, 255, 0.6);\n background-color: #CE3C39;\n }\n\n :host(.button-hover[type=warn][plain]) {\n color: rgba(230, 67, 64, 0.6);\n border-color: rgba(230, 67, 64, 0.6);\n background-color: transparent;\n }\n */\n\n :host([loading]) #icon {\n display: inline-block;\n width: 18px;\n height: 18px;\n vertical-align: middle;\n -webkit-animation: card-tt-button-loading-animate 1s steps(12, end) infinite;\n animation: card-tt-button-loading-animate 1s steps(12, end) infinite;\n background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABQ9JREFUWAntmF2IVVUUx+9k5ViJn1MWJpMoioMyZRYYFEVCWVFPvQmCpeiLr74HvYojKUSPPkovvYiiGNijVA8SxkRphR/5nVpO5fT7Xc46s+/cc+7HjPdeH1zwn33O3vus9TvrrLP3uVOpPLDOZqBvuu7Hx8efxsdLaDlagAbQQvQQuoKuocvoR3Sir6/vd9op25SAgZxDxLfRy2gQ6UdA24cbnDvnDPoaHQTeG2rLDNCyAdrP5HfRe8jjRoAzJo3HebRjjB9QgN+mbclaBgZ2HR43o3nI65plVDDnBGBZ5i2ZT4E+StvUmgID6pz30QfI4wAIYLoqp9BJ9Cu6iqxZzZq2ngfRq+hF9CjSzyNZ67H6HO0DfJy21JxYasDq/CNkdjXnmyntJvoS+SK19Ejx9zjz30L6XIQCNvwepm8X/v6mLbRS4CyzH3NVwMYj/Y++r9ChRo4Lo2Wd+J7F4Sak/3gX4skJvbMs042AfblUPHod/on24myUdtoG+Bqc7EWxDMpjHGOM0NZZITCOhpm5FcW47Xk0gqO2lyKuKzViWRrW70oUwM7fQaxDHqRm9moMBzPp+BBZ/HezwRu0e+41rL7xaSJMTryoQsv1CSzWfI3VATP6OnoMWatqDO3HsW9/RyyD3oHzSJBx3EG3eZBaDTB3NJtBgTUvNsu+XD/b0Ukjxrf4/wyZ4dB2mKzv3GqA6X0FuRqYWWEthWOoW/YFgdxIZJDNBG5BuU0GHmJE0JDZvZPP7vABsVzPd6OU6500bD5A6t2VBtC/mQQ9ibptbkY+YXdCMz0E23O0VcuBOVuFIrMOjnLHpTuOEzphxHSt/wZFHdtujFgpsOuh2fVl8w5PoV7ZEQLL5iainkdVM+VhFnia4Ysx0IP2NDEjmWb4mWBIgV2kza7SXCF6ZW4mwSbw4gCJTs8jwzHWS+BzQAiqlWb4n2wwnVi9ogd/ZEiTGeVR0+nbOR9Zx9oTqGtrcDXixB93t7MTp5Vf4ji9C0tgbjYgtMCXs/NuN9bwm0nQfHlNgc1wZNe5biRnPOiBCVgYO68NJljorsPWshpEvTJ3uZBJzTnzAzpHM7pYixezJc7M+rrWENMXTskWx7HUTpCzJfqVdAEJHBNWcNxtM6NmV2B3OdAmfkmnGWas8hMSNrK8jjv24q5Yll1/oBZmV4jJwN/TZ8Fby0pYfyh2y1JYY5ttv2tyqwEm9X6P+uUfGbZ9gTt/Kr+iQwfZk/TzIOrXSHdgivKsRq4BrvZUKt/R3kIB7R2+gUOddcTwba36LzB5zKoSvG7jqgPmjlzSTqC0ll0tNnQCGp/C+cMhWGyFvZ2+bJxXzYFCw5HfoMMoMu0N/IWO4+gS7bSNGP04CdioVd+dm8TwX2F11gjYsdfQIBJah7Y+AT/uT+NU520boGbRElD60G88UcvxWlF26a+m3rbQsse1nsElKBw71wBm4Af0G869iaaGP2t1DjKrJkQ/4VdgYS+VwTLWGNgJBNHxahS/+XSsCWlAM/8Hcmv3JlwW/eeLY/730+XJ5cqPqfiRENelrR9a1xvBMt4c2Eka4M/SrEXxcsQjNEMex3l6I/alpZQCxjyvvwBoYc0yVmNmr2UD2mwtQ8uR4AJE4KkA+/JeAdZrW7K2gMMj4C5zS5Ebio9b8MnAnqvIcNSqm5PfLdaqfW3ZlIDTCMBbl08ifxNas75YtsK68AtoTfvIrwJZtxnQ/8Dumwz8D1o3mfMxYRE2AAAAAElFTkSuQmCC) no-repeat; background-size: 100%;\n }\n\n :host([loading][plain]) #icon {\n background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAACChJREFUWAntmVtsVVUax/fal9Me2tMDnnMqmmIYkmGSNl4GbaVIx2g0UQejT8YXk0lUiIWmJRCYN0hMjAED2NKakHmYB5/IxBdfiEaDBNNwadQHIEwwM15I6c1TSm+nZ1/m96127zmHnpZy6eHFle6z9l6X7/uvb323tWoYv5fllYC6W/IdHR0P5X2/Sfn+H6GV8g0jYwRBWpmmaSj1W+C6o7SPGKb57wrHOX348OGrd8PzjgDv3bs3OT4+/jKMn/aDYK2SYhgm3yowDJtHmUr+lPJc19bdLCAIApPGnxj7jeM4/wL8b7cL/rYA79+/v3JwcHALbF+Fe6UAcYPAVkEgAhVACqnaSFi6LPnxfF8DZoylF0S79DNuhhV+mk6nP4Xu5FKBLxlwa3t7o+F5f4PwKgEGMy1BVwCJREsABpTp+74GDmBbL4hxc4BtWQBzR1GXD7o7O79aCuhbAhYmra2tr5mW9bpsNcyswi1HJYTPBQD1IdBfeLK2bY9Io+u6Kc+y0qbrruXzL+j3UzCM8S6q4+idEJo89B3rOXq0h/maIG0ly6KA2aoYKvAOMxuVxY4CngWIZESk41D+zM3lTh87dmxJW7p79+6q6enpl1CYdwLfXw04oSdS1roP/S9qa2v/Dt/pkmiF70IdQqitre1d6kYZA7hZYzJND6l+PpVOn/jnIoQXoivtO3fujOfz+beg+S4qo20B5dC6zRq+ONrV1b6QpBcEvH379i3Q3uJh2SIJfizA30AKXT09PVcWA7TUvvb29sfyrtsF8DT0Z43WMCxAdXV3d3eWoiOWO6+0dnQ8wZa9KSYhK8XAxOyvxmKxA11dXXflRwuZnTlzZqCxsfEEYDfDoJY+E7CCaWNzc/Nl+ucJRnxnUUENKpTrviFA6fANH3MwjDGvuvrjO/GbRcRLfLBb19i5rXRpQxVV5DFRu/dF52+eMg+w53nPId0VzPL0Y1kzKh7/5JMPP8zePPlefQtofF8rQvLFuDFow/e8h6amprbdzKMI8J49exK4yedkkEymkuWeOPrRR/+5eeK9/kbVvoNpN/x0iBQA8Hhv165d6UJeRYAJt89gZDb65FEHIB5j3teFE5bzPZNK/QO2o3gOwWDyJHCDbxfyLAJMRwPLIm5qIwvYphOsPFc4YTnf50L0YYwHpZj1uYD+ayHPCDBuLEVnBrCuPAzKEef7CgeX472qquozdlU22OGRsN+wY8eOP4S8I8BsQz36g6UpUQUpVxaLOLND7v3vgQMHbqC/3yJlcVMCSZ5XQk4RYCsWW21Zlkt08Gn0UIcL4aCy177/pQQSpAsMnfX9OcSg8wL5IAFPsBJd5JvEZVDq+1HwVJdJS7UwUVOR9MMhjggwSKtQBd+wba0RnuOMhYPKXYPxGjxnkyzfR9BGXYjh/4BxIeQJwVxkMx5OJO4bYHa3n+ChHTERT/xyJOFIh1lBnocDRCAW6o2MjMjK7kuprq4WQ7MBa2OAFlse4YwkzDbcAN0DsyqDbvh+Nd9l88GFkpmcnEyD4+eoTan/hu8RYBCOkUOsFAUW0CxJAOuEJBxcrpoD6jXyiBdCfhhhlNBHgEXCAjTUA/QjxYSfwknlrA8dOjQNlpK8o3y4qampBr15BAX3AO07BMezZ89eKifQkBdgY5lMxmpoaLA2b95srlu3zrh48SLerVCZbfsKeiuOQhfe6yQ3DomUq4a5EoMfGhoyScZUNptVx48f1662CPCRI0dGOe0OkI9y7WD6HhJ2TfNP5QIa8uFAa5OTO+vXrzfXrFljtbS0IHB9mNBDInchX6zuR3EPImIdxD2vcevWrU5IbLlrYXvq1Kn49evXTYxOyVNRURFJV/gXAeYk+4Ov1DThUPyxi9I4lZWVjy030JD+tm3b4uiuWVdXx0ZbTjwet/v7+72wX+rI6OSjr68v39TcLEmHRBYdxjmqrN60adNVDoQTMma5iuwkAqtZuXJlMDY2pgBtJBKJHBmjBLSoFElYWh+vr/+exgluHZGxK6DJQ/znSx0IIyp3+YJRWTU1Nat4zIGBAXt4eNjmpKH27ds3L3DNA8y2cFXgnhbDE2XnJ8h7XsXExMSLywEaCdonT57MEN00FlTBTKVSCn6ThcYWyqRIJcLG8+fPZ5/cuDEg5NWSdgZijUSfGAtZ+0RLy2Bfb++SrqZCegvVgJXb0AcB5sxYlspzbxfjEpTvCS5SpkrNQ11LF7HY99ransVrrBWPwSgOI0RCpfJGLHYhk0xehqEcpW67MM/Ez8ot6CouZ1x0N5jk4IB0A8d1Jzj2jwqvUoQXBCyDIWwPZbObMLxHuEdyhQi37TrXgNq4o9SlmZmZX/GdRYZRipG0ia729vYm0c8Mvpb7GjfA97sClOKzixOdnZ3DC4EVGosClgEQkuvWR9HpeiGEjwn9Yl4cNsmIuJ0hGPczZjyZTEqiMlNfXx8ALuYmk46ZzcYx3Gr6q3K5nJYkUuVy3g1wm7pesWLFCDdL1xcDK3huCVgGSQH0GvA9CUFtHCIRAEhUFJ8tiwAT+k5eLe1IUF9tIDXxMlE7ILkylitmA1v2tISpB1CDcdpuWUoaXalZ586dG9uwYcOPgBGg+hYeRpyobAEmZ0DRb5kq3kXnJLwHc9sdtQt45utvAsMIfrf/4MGD89yXDChVlizhwsmSFAF2HcwfBLBsd4D1aTeIXudlW1mAaIzopZYwY0hNzABVmGTOKBfXw3ditHcEuBD83K16LQtIoJwx/pFhASwGMAGcwwtM0jfDnHGknS3nTVIhzt/flyqB/wF0ZB0uacxUuQAAAABJRU5ErkJggg==) no-repeat; background-size: 100%;\n }\n\n :host #mask {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(255,255,255,.775);\n }';Ka.innerHTML="\n <template>\n <style>\n "+Za+"\n </style>\n </template>\n "}var es=document.getElementById("card-tt-icon-style");if(es){var ts="mobile"!==window.PC_RUN_MODE?'\n :host {\n display: inline-block;\n line-height: 0;\n font-size: 0;\n }\n :host[hidden] {\n display: none;\n }\n #icon {\n font: normal normal normal 14px/1 "larkui";\n }\n #icon[class^="card-tt-icon-"]:before {\n margin: 0;\n box-sizing: border-box;\n }\n .card-tt-icon-success {\n color: #34c724;\n }\n .card-tt-icon-success:before {\n content: "\\e613";\n }\n .card-tt-icon-success_no_circle {\n color: #1f2329;\n }\n .card-tt-icon-success_no_circle:before {\n content: "\\e610";\n }\n .card-tt-icon-info {\n color: #3370ff;\n }\n .card-tt-icon-info:before {\n content: "\\e60d";\n }\n .card-tt-icon-warn {\n color: #ffc60a;\n }\n .card-tt-icon-warn:before {\n content: "\\e614";\n }\n .card-tt-icon-clear,\n .card-tt-icon-error {\n color: #f54a45;\n }\n .card-tt-icon-clear:before,\n .card-tt-icon-error:before {\n content: "\\e615";\n }\n .card-tt-icon-cancel {\n color: #1f2329;\n }\n .card-tt-icon-cancel:before {\n content: "\\e611";\n }\n .card-tt-icon-download {\n color: #1f2329;\n }\n .card-tt-icon-download:before {\n content: "\\e60f";\n }\n .card-tt-icon-search {\n color: #1f2329;\n }\n .card-tt-icon-search:before {\n content: "\\e60e";\n }\n ':'\n :host {\n display: inline-block;\n font-size: 0;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n #icon {\n font: normal normal normal 14px/1 "larkui";\n }\n\n #icon[class^="card-tt-icon-"]:before,\n #icon[class*=" card-tt-icon-"]:before {\n margin: 0;\n box-sizing: border-box;\n }\n\n .card-tt-icon-waiting { color: #14C0FF;}\n .card-tt-icon-waiting:before { content: "\\e612";}\n .card-tt-icon-success {\n color: #34c724;\n }\n .card-tt-icon-success:before {\n content: "\\e613";\n }\n .card-tt-icon-success_no_circle {\n color: #1f2329;\n }\n .card-tt-icon-success_no_circle:before {\n content: "\\e610";\n }\n .card-tt-icon-info {\n color: #3370ff;\n }\n .card-tt-icon-info:before {\n content: "\\e60d";\n }\n .card-tt-icon-warn {\n color: #ffc60a;\n }\n .card-tt-icon-warn:before {\n content: "\\e614";\n }\n .card-tt-icon-clear,\n .card-tt-icon-error {\n color: #f54a45;\n }\n .card-tt-icon-clear:before,\n .card-tt-icon-error:before {\n content: "\\e615";\n }\n .card-tt-icon-cancel {\n color: #1f2329;\n }\n .card-tt-icon-cancel:before {\n content: "\\e611";\n }\n .card-tt-icon-download {\n color: #1f2329;\n }\n .card-tt-icon-download:before {\n content: "\\e60f";\n }\n .card-tt-icon-search {\n color: #1f2329;\n }\n .card-tt-icon-search:before {\n content: "\\e60e";\n }\n ';es.innerHTML="\n <template>\n <style>\n "+ts+"\n </style>\n </template>\n "}var ns=document.getElementById("card-tt-progress-style");if(ns){var rs="mobile"!==window.PC_RUN_MODE?"\n :host {\n display: inline-block;\n width: 100%;\n border-radius: 2px;\n }\n\n :host .card-tt-progress-wrapper {\n border-radius: 2px;\n } \n\n :host .card-tt-progress-inner {\n width: 0;\n height: 100%;\n border-radius: 2px;\n } \n ":"\n :host {\n display: block;\n width: 100%;\n }\n :host .card-tt-progress-inner{\n width: 0;\n height: 100%;\n }\n\n ";ns.innerHTML="\n <template>\n <style>\n "+rs+"\n </style>\n </template>\n"}var is=document.getElementById("card-tt-switch-style");if(is){var os="mobile"!==window.PC_RUN_MODE?'\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n cursor: pointer;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n :host .card-tt-switch-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n :host .card-tt-switch-input {\n -webkit-appearance: none;\n appearance: none;\n position: relative;\n width: 37px;\n height: 22px;\n margin-right: 5px;\n border: 1px solid #E5E5E5;\n outline: 0;\n border-radius: 11.3px;\n box-sizing: border-box;\n background-color: #FFFFFF;\n transition: background-color 0.1s, border 0.1s;\n }\n :host .card-tt-switch-input .before {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 35px;\n height: 20px;\n border-radius: 10.3px;\n background-color: #FFFFFF;\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n }\n :host .card-tt-switch-input:after {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 20px;\n height: 20px;\n border-radius: 15px;\n background-color: #FFFFFF;\n box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n }\n :host .card-tt-switch-input.card-tt-switch-input-disabled {\n cursor: not-allowed;\n }\n :host .card-tt-switch-input.card-tt-switch-input-disabled.card-tt-switch-input-checked {\n background-color: #82A7FC !important;\n border-color: #82A7FC !important;\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked {\n border-color: #F85959;\n background-color: #F85959;\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked .before {\n -webkit-transform: scale(0);\n transform: scale(0);\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked:after {\n -webkit-transform: translateX(15px);\n transform: translateX(15px);\n }\n :host .card-tt-checkbox-input {\n margin-right: 8px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n border: 1px solid #D7DADD;\n background-color: #FFFFFF;\n border-radius: 2px;\n width: 12px;\n height: 12px;\n position: relative;\n color: #FFFFFF;\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked:before {\n font: normal normal normal 14px/1 "larkui";\n content: "\\E80A";\n color: inherit;\n font-size: 18px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.73);\n -webkit-transform: translate(-50%, -50%) scale(0.73);\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled {\n background-color: #F5F5F6;\n cursor: not-allowed;\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled:before {\n color: #BABEC4 !important;\n }\n ':'\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n }\n\n :host([ hidden ]) {\n display: none;\n }\n\n :host .card-tt-switch-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n :host .card-tt-switch-input {\n -webkit-appearance: none;\n appearance: none;\n position: relative;\n width: 52px;\n height: 32px;\n margin-right: 5px;\n border: 1px solid #DFDFDF;\n outline: 0;\n border-radius: 16px;\n box-sizing: border-box;\n background-color: #DFDFDF;\n transition: background-color 0.1s, border 0.1s;\n }\n :host .card-tt-switch-input .before {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 50px;\n height: 30px;\n border-radius: 15px;\n background-color: #FDFDFD;\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n }\n :host .card-tt-switch-input:after {\n content: " ";\n position: absolute;\n top: 0;\n left: 0;\n width: 30px;\n height: 30px;\n border-radius: 15px;\n background-color: #FFFFFF;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n transition: -webkit-transform .3s;\n transition: transform .3s;\n transition: transform .3s, -webkit-transform .3s;\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked {\n border-color: #F85959;\n background-color: #F85959;\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked .before {\n -webkit-transform: scale(0);\n transform: scale(0);\n }\n :host .card-tt-switch-input.card-tt-switch-input-checked:after {\n -webkit-transform: translateX(20px);\n transform: translateX(20px);\n }\n :host .card-tt-checkbox-input {\n margin-right: 5px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n border: 1px solid #D1D1D1;\n background-color: #FFFFFF;\n border-radius: 3px;\n width: 22px;\n height: 22px;\n position: relative;\n color: #09BB07;\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked:before {\n font: normal normal normal 14px/1 "ttui";\n content: "\\e601";\n color: inherit;\n font-size: 28px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n -webkit-transform: translate(-50%, -48%) scale(0.73);\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled {\n background-color: #E1E1E1;\n }\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled:before {\n color: #ADADAD;\n ';is.innerHTML="\n <template>\n <style>\n "+os+"\n </style>\n </template>\n"}var as="mobile"!==window.PC_RUN_MODE?"\n :host {\n font-size: 12px;\n color: #9CA2A9;\n cursor: pointer;\n };\n":"";if(as){var ss=document.createElement("div");ss.setAttribute("style","display: none;"),ss.innerHTML='<dom-module id="card-tt-label-style">\n <template>\n <style>\n '+as+"\n </style>\n </template>\n </dom-module>",document.head.appendChild(ss)}var ls=document.getElementById("card-tt-radio-style");if(ls){var cs="mobile"!==window.PC_RUN_MODE?"\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-right: 8px;\n }\n :host([ hidden ]) {\n display: none;\n }\n :host .card-tt-radio-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n width: 100%;\n height: 100%;\n }\n :host .card-tt-radio-input {\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n border: 1px solid #8F959E;\n border-radius: 50%;\n background-color: #FFFFFF;\n width: inherit;\n height: inherit;\n position: relative;\n cursor: pointer;\n box-sizing: border-box;\n }\n\n :host .card-tt-radio-input:not(.card-tt-radio-input-disabled):hover {\n border-color: #3370FF !important;\n }\n \n :host .card-tt-radio-input.card-tt-radio-input-checked:before {\n position: absolute;\n top: 33.34%;\n left: 33.34%;\n width: 33.34%;\n height: 33.34%;\n background-color: #FFFFFF;\n border-radius: 50%;\n content: ' ';\n }\n\n :host .card-tt-radio-input.card-tt-radio-input-disabled {\n cursor: not-allowed;\n }\n ":'\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n }\n :host([ hidden ]) {\n display: none;\n }\n :host .card-tt-radio-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n :host .card-tt-radio-input {\n -webkit-appearance: none;\n appearance: none;\n margin-right: 5px;\n outline: 0;\n border: 1px solid #E8E8E8;\n border-radius: 50%;\n background-color: #FFFFFF;\n width: 22px;\n height: 22px;\n position: relative;\n }\n \n :host .card-tt-radio-input.card-tt-radio-input-checked:before {\n font: normal normal normal 14px/1 "ttui";\n content: "\\e601";\n color: #ffffff;\n font-size: 28px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n -webkit-transform: translate(-50%, -48%) scale(0.73);\n }';ls.innerHTML="\n <template>\n <style>\n "+cs+"\n </style>\n </template>\n"}var us=document.getElementById("card-tt-checkbox-style");if(us){var ds="mobile"!==window.PC_RUN_MODE?'\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-right: 8px;\n font-size: 18px;\n }\n :host([ hidden ]) {\n display: none;\n }\n\n :host .card-tt-checkbox-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n width: 100%;\n height: 100%;\n font-size: inherit;\n }\n\n :host .card-tt-checkbox-input {\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n background-color: #FFFFFF;\n border: 1px solid #8F959E;\n border-radius: 2px;\n width: inherit;\n height: inherit;\n position: relative;\n cursor: pointer;\n box-sizing: border-box;\n font-size: inherit;\n }\n\n :host .card-tt-checkbox-input:not(.card-tt-checkbox-input-disabled):hover {\n border-color: #3370FF !important;\n }\n \n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked {\n border-width: 0;\n }\n\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked:before {\n font: normal normal normal 14px/1 "larkui";\n content: "\\E80A";\n font-size: inherit;\n color: #FFFFFF;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(0.73);\n -webkit-transform: translate(-50%, -50%) scale(0.73);\n }\n\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked {\n color: #FFFFFF;\n border-width: 0;\n }\n\n :host .card-tt-checkbox-input.card-tt-checkbox-input-disabled {\n background-color: #F5F5F6;\n border-width: 1px;\n border-color: #F5F5F6;\n cursor: not-allowed;\n }\n ':'\n :host {\n -webkit-tap-highlight-color: transparent;\n display: inline-block;\n }\n :host([ hidden ]) {\n display: none;\n }\n :host .card-tt-checkbox-wrapper {\n display: -webkit-inline-flex;\n display: inline-flex;\n -webkit-align-items: center;\n align-items: center;\n vertical-align: middle;\n }\n\n :host .card-tt-checkbox-input {\n margin-right: 5px;\n -webkit-appearance: none;\n appearance: none;\n outline: 0;\n background-color: #FFF;\n border: 1px solid #E8E8E8;\n border-radius: 100%;\n width: 22px;\n height: 22px;\n position: relative;\n }\n\n :host .card-tt-checkbox-input.card-tt-checkbox-input-checked:before {\n font: normal normal normal 14px/1 "ttui";\n content: "\\e601";\n font-size: 28px;\n color: #FFFFFF;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -48%) scale(0.73);\n -webkit-transform: translate(-50%, -48%) scale(0.73);\n }';us.innerHTML="\n <template>\n <style>\n "+ds+"\n </style>\n </template>\n"}var hs=document.createElement("div");hs.setAttribute("style","display: none;");var ps="mobile"!==window.PC_RUN_MODE?"\n:host {\n display: inline-block;\n width: 100%;\n height: 50px;\n padding: 6px 12px;\n position: relative;\n font-size: 14px;\n border: 1px solid #e4e5e7;\n border-radius: 4px;\n color: #39424e;\n box-sizing: border-box;\n}\n\n:host([disabled]) {\n cursor: not-allowed;\n background-color: #f5f6f7;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host textarea::-webkit-input-placeholder {\n color: #c0c4cb;\n}\n\ndiv {\n word-break: break-all;\n line-height: 1.2;\n position: absolute;\n font-family: inherit;\n}\n.textarea-placeholder {\n color: inherit;\n width: 100%;\n padding: 0;\n background-color: transparent;\n resize: none;\n outline: none;\n border: none;\n z-index: 2;\n position: absolute;\n font-family: inherit;\n line-height: inherit;\n}\n\n.textarea-placeholder[disabled] {\n cursor: not-allowed;\n}\n\n.compute {\n color: transparent;\n top: 0;\n z-index: 0;\n}":"\n:host {\n width: 300px;\n height: 150px;\n display: block;\n position: relative;\n}\n\n:host([hidden]) {\n display: none;\n}\ndiv {\n word-break: break-all;\n line-height: 1.2;\n font-family: inherit;\n position: absolute;\n font-family: inherit;\n}\n.textarea-placeholder {\n color: grey;\n width: 100%;\n padding: 0;\n background-color: transparent;\n resize: none;\n outline: none;\n border: none;\n z-index: 2;\n position: absolute;\n font-family: inherit;\n line-height: 1.2;\n}\n.compute {\n color: transparent;\n top: 0;\n z-index: 0;\n}";hs.innerHTML='<dom-module id="card-tt-textarea-style">\n <template>\n <style>\n '+ps+"\n </style>\n </template>\n</dom-module>",document.head.appendChild(hs);var fs=document.getElementById("card-tt-slider-style");if(fs){var vs="mobile"!==window.PC_RUN_MODE?"\n :host {\n padding: 0;\n display: block;\n margin: 11px 0;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host * {\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n }\n\n :host .card-tt-slider-wrapper {\n display: -webkit-flex;\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n }\n :host .card-tt-slider-tap-area {\n -webkit-flex: 1;\n flex: 1;\n }\n :host .card-tt-slider-handle-wrapper {\n position: relative;\n height: 4px;\n border-radius: 5px;\n background-color: #eff0f1;\n cursor: pointer;\n transition: background-color 0.3s ease;\n -webkit-tap-highlight-color: transparent;\n }\n :host .card-tt-slider-track {\n height: 100%;\n border-radius: 6px;\n background-color: #1aad19;\n transition: background-color 0.3s ease;\n }\n :host .card-tt-slider-handle,\n :host .card-tt-slider-thumb {\n position: absolute;\n left: 50%;\n top: 50%;\n cursor: pointer;\n border-radius: 50%;\n transition: border-color 0.3s ease;\n box-sizing: border-box;\n }\n :host .card-tt-slider-handle {\n width: 28px;\n height: 28px;\n margin-top: -14px;\n margin-left: -14px;\n background-color: transparent;\n z-index: 3;\n border: 0 solid rgba(0,0,0,0.04);\n /*box-shadow: 0 3px 8px 0 rgba(0,0,0,0.15);*/\n }\n\n :host .card-tt-slider-thumb {\n z-index: 2;\n /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);*/\n /*box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);*/\n border: 1px solid #c0c4cb;\n }\n\n :host .card-tt-slider-handle:hover + .card-tt-slider-thumb {\n border: 2px solid #3377ff;\n box-shadow: 0 0 0 6px rgba(51, 119, 255, 0.11);\n }\n\n :host .card-tt-slider-handle:hover + .card-tt-slider-thumb:before {\n content: ' ';\n position: absolute; \n width: 7.071068px;\n height: 7.071068px;\n left: -4px;\n bottom: calc(13px - 3.535533px);\n margin-left: 50%;\n margin-bottom: calc(100% + 2px);\n background-color: transparent;\n border-style: solid;\n border-width: 4px;\n box-sizing: border-box;\n -webkit-transform: rotate(45deg);\n transform: rotate(45deg);\n cursor: default;\n }\n\n :host .card-tt-slider-handle:hover + .card-tt-slider-thumb:after {\n content: attr(data-filteredValue);\n position: absolute; \n width: 32px;\n height: 34px;\n left: -16px;\n bottom: 13px;\n margin-left: 50%;\n margin-bottom: calc(100% + 2px);\n line-height: 34px;\n text-align: center;\n color: #ffffff;\n background-color: #1d252f;\n font-size: 12px;\n border-radius: 4px;\n cursor: default;\n }\n\n :host .card-tt-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n z-index: 1;\n }\n :host .card-tt-slider-value {\n color: #888;\n font-size: 14px;\n margin-left: 1em;\n }\n :host .card-tt-slider-disabled .card-tt-slider-track {\n background-color: #ccc;\n }\n :host .card-tt-slider-disabled .card-tt-slider-thumb {\n background-color: #FFF;\n border-color: #ccc;\n }\n :host * {\n margin: 0;\n }":"\n :host {\n margin: 10px 18px;\n padding: 0;\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host * {\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n }\n\n :host .card-tt-slider-wrapper {\n display: -webkit-flex;\n display: flex;\n -webkit-align-items: center;\n align-items: center;\n min-height: 16px;\n }\n :host .card-tt-slider-tap-area {\n -webkit-flex: 1;\n flex: 1;\n padding: 8px 0;\n }\n :host .card-tt-slider-handle-wrapper {\n position: relative;\n height: 2px;\n border-radius: 5px;\n background-color: #e9e9e9;\n cursor: pointer;\n transition: background-color 0.3s ease;\n -webkit-tap-highlight-color: transparent;\n }\n :host .card-tt-slider-track {\n height: 100%;\n border-radius: 6px;\n background-color: #1aad19;\n transition: background-color 0.3s ease;\n }\n :host .card-tt-slider-handle,\n :host .card-tt-slider-thumb {\n position: absolute;\n left: 50%;\n top: 50%;\n cursor: pointer;\n border-radius: 50%;\n transition: border-color 0.3s ease;\n }\n :host .card-tt-slider-handle {\n width: 28px;\n height: 28px;\n margin-top: -14px;\n margin-left: -14px;\n background-color: transparent;\n z-index: 3;\n border: 0 solid rgba(0,0,0,0.04);\n /*box-shadow: 0 3px 8px 0 rgba(0,0,0,0.15);*/\n }\n :host .card-tt-slider-thumb {\n z-index: 2;\n /*box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);*/\n box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);\n }\n :host .card-tt-slider-step {\n position: absolute;\n width: 100%;\n height: 2px;\n background: transparent;\n z-index: 1;\n }\n :host .card-tt-slider-value {\n color: #888;\n font-size: 14px;\n margin-left: 1em;\n }\n :host .card-tt-slider-disabled .card-tt-slider-track {\n background-color: #ccc;\n }\n :host .card-tt-slider-disabled .card-tt-slider-thumb {\n background-color: #FFF;\n border-color: #ccc;\n }\n :host * {\n margin: 0;\n }";fs.innerHTML="\n <template>\n <style>\n "+vs+"\n </style>\n </template>\n"}var gs=document.createElement("div");gs.setAttribute("style","display: none;"),gs.innerHTML='<dom-module id="card-tt-month-picker-style">\n <template>\n <style>\n :host {\n display: block;\n width: 280px;\n height: 288px;\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.08);\n border: solid 1px #e4e5e7;\n background-color: #ffffff;\n -webkit-user-select: none;\n user-select: none;\n overflow: hidden;\n }\n .header {\n display: flex;\n height: 39px;\n width: 100%;\n box-sizing: border-box;\n line-height: 39px;\n font-size: 14px;\n font-weight: 500;\n padding-left: 18px;\n padding-right: 18px;\n color: #1f2329;\n }\n .header .time {\n flex: 1;\n -webkit-flex: 1;\n text-align: center;\n }\n .header .icon-container {\n display: flex;\n align-items: center;\n }\n .header .icon-container .icon {\n display: inline-block;\n width: 16px;\n height: 16px;\n background-size: cover;\n cursor: pointer;\n }\n .header .icon-container .icon.rotate {\n transform: rotate(180deg);\n }\n .header .icon-container .icon.year {\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAkdJREFUWAntVEtrFEEQrpqHye5o1JMaxAcE4x8IghcDZoy3kBwGZBfCks3BxF/hXwhBwhACZjGwe/IoCMnJBz5i7oLRuyaokH2m7SYW9k56pma8ZvpS1fN9VV/N19MDkK/cgZPuAP6vAWH47EITxKKF7tPFavA52ofDie9QkiUur9UvNjvtTQBxU2C7K2sf6/UcrnMtfZMmV80P/4pL/g64xWW9jsN1rsozDbCyvn6JxBHxEw54dx/NznynphxOPD2mPgLVvNNEZfsoIGwP4qmJ6uzMD2rG4cSLxlQDUHMhxCgCfpTifrUaHBOPw6Oi+p69BUurG8N42N0UAm4occvDiYVSaY+acDjx4mLiAH3NET9YRfRjxQ14nKj+PPYIwrB2uXX05iOI8N5zPL9Smt6nYg4nHheNt0CepdUCeCltH5G2v/Oc036l8k+cwzlRHTcO0Gg05NEIm4htryMoV5HDdS6XGwcIgqBnO44v7/pXAWKss996UavVhqiZCV+p188SniUmfoRP1jau9bq9LWn5VUl8e66I98rl8k8S4HDiJUWjA1TwsPJg13bs8SMn4NbeAfQ5weHUJykmOkCF+psC4pvzBZiMc8KEUx9TTDWAKtSHkI68LlhnJufmpn5RUw4nXjSmHkAV9okAvCrYQ/djhzDgUXG1zzSAKgjD+vWmaG3J9IosPjYEh6se+kr8CHUi5fPzwZdBHBiX+2/y53D7oPd7gTAVOVznqjzzAKpIiTiuc0d+C0uui8/VM31xuM7N89yB3IE/xst93hovva0AAAAASUVORK5CYII=)\n }\n .container {\n box-sizing: border-box;\n padding: 25px 40px;\n border-top: 1px solid #e4e5e7;\n font-size: 14px;\n font-weight: 500;\n }\n .container .row {\n margin-top: 32px;\n }\n .container .row:first-child {\n margin-top: 0px;\n }\n .container .cell{\n display: inline-block;\n margin-left: 18px;\n height: 25px;\n width: 50px;\n text-align: center;\n line-height: 25px;\n cursor: pointer;\n color: #1f2329;\n border-radius: 12.5px;\n }\n .container .cell:first-child {\n margin-left: 0px;\n }\n .container .cell.select {\n background-color: #DEE0E3;\n }\n .container .cell:hover {\n background-color: #EFF0F1;\n transition: background-color .1s linear;\n }\n .container .cell.current:hover,\n .container .cell.current.select,\n .container .cell.current {\n background-color: #3370ff;\n color: #ffffff;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(gs);var ys=o(['\n <style include="card-tt-month-picker-style"></style>\n <div class="header">\n <div class="icon-container">\n <span class="icon year" on-click="_yearPre"></span>\n </div>\n <div class="time" id="headerTime"></div>\n <div class="icon-container">\n <span class="icon year rotate margin" on-click="_yearNext"></span>\n </div>\n </div>\n <div class="container" id="container" on-click="_monthClick"></div>\n '],['\n <style include="card-tt-month-picker-style"></style>\n <div class="header">\n <div class="icon-container">\n <span class="icon year" on-click="_yearPre"></span>\n </div>\n <div class="time" id="headerTime"></div>\n <div class="icon-container">\n <span class="icon year rotate margin" on-click="_yearNext"></span>\n </div>\n </div>\n <div class="container" id="container" on-click="_monthClick"></div>\n ']),ms=function(e){function t(){return u(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),a(t,[{key:"computeMonthNames",value:function(e){return"zh_CN"===e?["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}},{key:"getYearText",value:function(){return"zh_CN"===this.language?this._currentYear+"年":this._currentYear}},{key:"connectedCallback",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.selectMonth=Number(this.selectMonth),this.selectYear=Number(this.selectYear),this._currentYear=this.selectYear,this._renderMonths()}},{key:"ready",value:function(){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"ready",this).call(this),this.addEventListener("click",function(e){e.stopPropagation()})}},{key:"_yearPre",value:function(e){this._currentYear-=1,this._renderMonths(),e.stopPropagation()}},{key:"_yearNext",value:function(e){this._currentYear+=1,this._renderMonths(),e.stopPropagation()}},{key:"_monthClick",value:function(e){var t=e.target;"span"===t.tagName.toLowerCase()&&this.dispatchEvent(new CustomEvent("monthSelect",{detail:{year:this._currentYear,month:t.dataset.i<10?"0"+t.dataset.i:t.dataset.i}})),e.stopPropagation()}},{key:"_renderMonths",value:function(){var t=this;this.$.headerTime.innerText=this.getYearText();var n='<div class="row">',r=0;this.monthNames.forEach(function(e){n+=t._getCell(r,e),3!==(r+=1)&&6!==r&&9!==r||(n+='</div><div class="row">'),12===r&&(n+="</div>")}),this.$.container.innerHTML=n}},{key:"_getCell",value:function(e,t){var n=new Date,r=n.getFullYear(),i=n.getMonth()+1;return r===this._currentYear&&e+1===i?"<span data-i='"+(e+1)+'\' class="cell current">'+t+"</span>":this.selectMonth===e+1&&this.selectYear===this._currentYear?"<span data-i='"+(e+1)+'\' class="cell select">'+t+"</span>":"<span data-i='"+(e+1)+'\' class="cell">'+t+"</span>"}}],[{key:"template",get:function(){return hn(ys)}},{key:"properties",get:function(){return{start:{type:String},end:{type:String},selectYear:{type:String},selectMonth:{type:String},language:{type:String,default:"zh_CN"},monthNames:{type:Array,computed:"computeMonthNames(language)"}}}},{key:"is",get:function(){return"card-tt-month-picker"}}]),t}(vn(pn));window.customElements.define(ms.is,ms);var _s=document.createElement("div");_s.setAttribute("style","display: none;"),_s.innerHTML='<dom-module id="card-tt-select-menu-style">\n <template>\n <style>\n .card-tt-select-dropdown {\n position : absolute;\n z-index : 1001;\n border : 1px solid #E4E7ED;\n border-radius : 4px;\n background-color : #FFF;\n box-shadow : 0 2px 12px 0 rgba(0, 0, 0, .1);\n box-sizing : border-box;\n margin : 5px 0\n }\n\n .card-tt-select-dropdown.is-multiple .card-tt-select-dropdown__item.selected {\n color : #409EFF;\n background-color: #FFF\n }\n\n .card-tt-select-dropdown.is-multiple .card-tt-select-dropdown__item.selected.hover {\n background-color: #F5F7FA\n }\n\n .card-tt-select-dropdown.is-multiple .card-tt-select-dropdown__item.selected::after {\n position : absolute;\n right : 20px;\n font-family : element-icons;\n content : "e6da";\n font-size : 12px;\n font-weight : 700;\n -webkit-font-smoothing : antialiased;\n -moz-osx-font-smoothing: grayscale\n }\n\n .card-tt-select-dropdown .card-tt-scrollbar.is-empty .card-tt-select-dropdown__list {\n padding: 0\n }\n\n .card-tt-select-dropdown__empty {\n padding : 10px 0;\n margin : 0;\n text-align: center;\n color : #999;\n font-size : 14px\n }\n\n .card-tt-select-dropdown__wrap {\n max-height: 274px\n }\n\n .card-tt-select-dropdown__list {\n list-style : none;\n padding : 6px 0;\n margin : 0;\n -webkit-box-sizing: border-box;\n box-sizing : border-box\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(_s);var As=document.createElement("div");As.setAttribute("style","display: none;"),As.innerHTML='<dom-module id="card-tt-select-tag-style">\n <template>\n <style>\n .card-tt-tag {\n border-color : rgba(0, 0, 0, 0.05);\n display : inline-block;\n height : 24px;\n padding : 0 10px;\n line-height : 22px;\n font-size : 12px;\n border-width : 1px;\n border-style : solid;\n border-radius : 4px;\n box-sizing : border-box;\n white-space : nowrap;\n box-sizing : border-box;\n margin : 2px 0 2px 6px;\n }\n\n .card-tt-tag.is-hit {\n border-color: #409EFF\n }\n\n .card-tt-tag .card-tt-tag__close {\n color: #409eff\n }\n\n .card-tt-tag .card-tt-tag__close:hover {\n color : #FFF;\n }\n\n .card-tt-tag .card-tt-icon-close {\n text-align : center;\n position : relative;\n cursor : pointer;\n font-size : 12px;\n top : -1px;\n right : -5px\n }\n\n .card-tt-tag__close {\n margin-top: -2px\n }\n\n .card-tt-tag__close.card-tt-icon-close {\n right : -7px;\n top : 0;\n color : #FFF\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(As);var bs=document.createElement("div");bs.setAttribute("style","display: none;"),bs.innerHTML='<dom-module id="card-tt-select-option-style">\n <template>\n <style>\n :host {\n display: block;\n color: #606266;\n }\n :host([selected]) {\n color: #409eff;\n }\n .card-tt-select-dropdown__item {\n font-size : 14px;\n padding : 0 20px;\n position : relative;\n white-space : nowrap;\n overflow : hidden;\n text-overflow : ellipsis;\n height : 34px!important;\n line-height : 34px!important;\n -webkit-box-sizing: border-box;\n box-sizing : border-box;\n cursor : pointer\n }\n\n .card-tt-select-dropdown__item.is-disabled {\n color : #C0C4CC;\n cursor: not-allowed\n }\n\n .card-tt-select-dropdown__item.is-disabled:hover {\n background-color: #FFF\n }\n\n .card-tt-select-dropdown__item.hover,\n .card-tt-select-dropdown__item:hover {\n background-color: #F5F7FA\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(bs);var ws=document.createElement("div");function ks(e,t,n,r){window.Reporter&&Reporter.speedReport({key:e,timeMark:{startTime:t,endTime:n},force:"reRenderTime"!==e,data:r})}ws.setAttribute("style","display: none;"),ws.innerHTML='<dom-module id="card-tt-select-style">\n <template>\n <style>\n .card-tt-select-dropdown__empty {\n padding : 10px 0;\n margin : 0;\n text-align: center;\n color : #999;\n font-size : 14px\n }\n\n .card-tt-tag {\n white-space : nowrap;\n -webkit-box-sizing: border-box\n }\n\n .card-tt-select {\n display : inline-block;\n position: relative\n }\n\n .card-tt-select__input {\n border : none;\n outline : 0;\n padding : 0;\n margin-left : 15px;\n color : #666;\n font-size : 14px;\n -webkit-appearance: none;\n -moz-appearance : none;\n appearance : none;\n height : 28px;\n background-color : transparent\n }\n\n .card-tt-select__tags {\n position : absolute;\n line-height : normal;\n white-space : normal;\n z-index : 1;\n top : 50%;\n -webkit-transform: translateY(-50%);\n transform : translateY(-50%);\n display : -webkit-box;\n display : -ms-flexbox;\n display : flex;\n -webkit-box-align: center;\n -ms-flex-align : center;\n align-items : center;\n -ms-flex-wrap : wrap;\n flex-wrap : wrap\n }\n\n .card-tt-select .card-tt-tag {\n -webkit-box-sizing: border-box;\n box-sizing : border-box;\n border-color : transparent;\n margin : 2px 0 2px 6px;\n background-color : #f0f2f5\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(ws);var Cs=!1,Es=!0;function xs(){Es&&(tt_w.publishPageEvent("onReachBottom",{}),Es=!1,setTimeout(function(){Es=!0},350))}function Ss(e){var n,r,t=e.onReachBottomDistance,i=e.enablePullUpRefresh,o=e.enablePageScroll;(o||i)&&(window.onscroll=function(){o&&tt_w.publishPageEvent("onPageScroll",{scrollTop:window.pageYOffset}),i&&Ps(t)&&xs()}),i&&(n=t,r=0,window.__DOMTree__.addEventListener("touchstart",function(e){var t=e.touches;return r=t[0].pageY}),window.__DOMTree__.addEventListener("touchmove",function(e){var t=e.touches;t[0].pageY<r&&Ps(n)&&xs()}))}function Ps(e){var t,n,r="CSS1Compat"===document.compatMode?document.documentElement.clientHeight:document.body.clientHeight,i=(n=t=0,document.body&&(t=document.body.scrollHeight),document.documentElement&&(n=document.documentElement.scrollHeight),Math.max(t,n)),o=window.scrollY,a=0<o&&r<i&&i<=o+r+e;return a&&!Cs?Cs=!0:!(a&&Cs||(Cs=!1,1))}window.__h=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return M.apply(pe,["card-"+e].concat(n))},window.__render=q,window.__diff=ae,window.__apply=re,window.__exprWrapper__=ue,window.__resetVdomStates__=ce,window.__addListenerToElement=$,window.__emptyNode=he,window.__virtualDOM__=pe,window.__SideEffectFnQueues=[],window.__DOMTree__=null,window.__VTree__=null;var Ts=window.renderStatus={funcReady:!1,dataReady:!1,firstRendered:!1},Os={webviewStartTime:Date.now(),funcReadyTs:Date.now()},Ds="body",Is={id:"app"},Ns=function(){function e(){u(this,e)}return a(e,null,[{key:"dataReady",get:function(){return Ts.dataReady},set:function(e){Ts.dataReady=e}},{key:"funcReady",get:function(){return Ts.funcReady},set:function(e){Ts.funcReady=e}},{key:"firstRendered",get:function(){return Ts.firstRendered},set:function(e){Ts.firstRendered=e}}]),e}(),Fs=function(){function e(){u(this,e)}return a(e,null,[{key:"funcReadyTs",get:function(){return Os.funcReadyTs},set:function(e){Os.funcReadyTs=e}},{key:"webviewStartTime",get:function(){return Os.webviewStartTime},set:function(e){Os.webviewStartTime=e}}]),e}();function Ms(e,t){if(Ts.firstRendered){var n=Date.now();!function(e){var t=e.data,n={};n.setDataVTreeStart=Date.now();var r=de(window.__generateFunc__,t,Ds,Is);n.setDataPatchStart=Date.now();var i=ae(window.__VTree__,r);n.setDataRenderStart=Date.now(),window.__SideEffectFnQueues.push(new ve),re(window.__DOMTree__,i),n.setDataRenderEnd=Date.now(),t&&t.needDataPerformance&&(tt_w.addTimingDots(n),tt_w.setPerformance());if(window.__VTree__=r,0<window.__SideEffectFnQueues.length){var o=window.__SideEffectFnQueues.pop();o.triggerAll(),o=null}}(e),ks("reRenderTime",n,Date.now()),document.dispatchEvent(new CustomEvent("pageReRender",{detail:{source:"appDataChange"}})),t(e)}else{var r=Date.now();ks("firstGetData",Os.funcReadyTs,Date.now()),tt_w.addTimingDots({pageRenderStart:Date.now()}),function(e){var t=e.data,n=e.ext,r=!1,i=void 0,o={};if(n){var a=n.webviewId,s=n.disableSwipeBack,l=n.enablePullUpRefresh,c=n.onReachBottomDistance,u=n.isPageReload,d=n.scene,h=n.route,p=n.lastRoute,f=n.query,v=void 0===f?{}:f,g=n.lastQuery,y=void 0===g?{}:g,m=n.customComponents;n.openType,i=n.pageScrollTop,window.__webviewId__=/iphone/i.test(navigator.userAgent)?a+1:a,window.TMAConfig.disableSwipeBack=s,l&&(window.__onReachBottomDistance__=c),m&&(window.__componentconfig__=m),document.dispatchEvent(new CustomEvent("customComponentsRender",{detail:{}})),u&&(r=u),d&&(window.__scene__=d),window.__route__=h,window.__lastRoute__=p,window.__query__=v,window.__queryString__=Object.keys(v).map(function(e){return e+"="+v[e]}).join("&"),window.__lastQueryString__=Object.keys(y).map(function(e){return e+"="+y[e]}).join("&")}o.pageVTreeStart=Date.now(),ce(),window.__VTree__=de(window.__generateFunc__,t,Ds,Is),o.pageDOMTreeStart=Date.now(),window.__DOMTree__=q(window.__VTree__),o.pageDOMTreeEnd=Date.now(),tt_w.addTimingDots(o),document.body.parentNode.replaceChild(window.__DOMTree__,document.body),window.__onAppRouteDone=!0,document.dispatchEvent(new CustomEvent("pageReRender",{})),window.requestAnimationFrame(function(){r||tt_w.publishPageEvent("__DOMReady",{}),n&&Ss(n),r&&function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(null!==e.scrollTop){var t=parseInt(e.scrollTop,10);document.body.scrollTop=t,document.documentElement.scrollTop=t}}({scrollTop:i})})}(e),ks("firstRenderTime",r,Date.now()),e.options&&e.options.firstRender||!window.Reporter||window.Reporter.errorReport({key:"webviewScriptError",error:new Error("firstRender not the data from Page.data"),extend:"firstRender not the data from Page.data"}),Ts.firstRendered=!0,t&&t(e)}}var Rs={},Ls={},Bs=!1;function js(e,r,i,o,a,s){var t,l=(t=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)})()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t();return e.length&&r.length&&(Rs[l]=e.length,e.forEach(function(e,t){var n={targetNode:e,relatives:r,thresholds:i,currentRatio:o,minWidthOrHeight:a,cb:s};Ls[l+"#"+t]=n}),Ws()),l}function zs(e){var t=e.targetNode,n=e.relatives,r=e.thresholds,i=e.minWidthOrHeight,o=e.cb,a=e.currentRatio,s=function(e){for(var t=document.documentElement.clientWidth,n=document.documentElement.clientHeight,r=null,i=0,o=e.length;i<o;i++){var a=e[i],s=a.node,l=a.margins,c=s?s.getBoundingClientRect():{left:0,top:0,right:t,bottom:n,width:t,height:n},u={left:c.left-l.left,top:c.top-l.top,right:c.right+l.right,bottom:c.bottom+l.bottom};r=r?Vs(r,u):u}return r}(n),l=Hs(t.getBoundingClientRect());l.right-l.left<i&&(l.right=l.left+i,l.width=i),l.bottom-l.top<i&&(l.bottom=l.top+i,l.height=i);var c=Vs(s,l),u=l.width*l.height,d=u?c.width*c.height/u:0;e.currentRatio=d;var h=void 0===a;d!==a&&r.forEach(function(e){if(h)return!1;d<=e&&e<=a?h=!0:e<=d&&a<=e&&(h=!0)}),h&&o.call(t,{id:t.id,dataset:t.$$data,time:Date.now(),boundingClientRect:l,intersectionRatio:d,intersectionRect:Hs(c),relativeRect:s})}function Hs(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function Vs(e,t){var n={left:Math.max(e.left,t.left),top:Math.max(e.top,t.top),right:Math.min(e.right,t.right),bottom:Math.min(e.bottom,t.bottom),width:0,height:0};return n.right>n.left?n.width=n.right-n.left:n.right=n.left=n.bottom=n.top=0,n.bottom>n.top?n.height=n.bottom-n.top:n.right=n.left=n.bottom=n.top=0,n}function Ws(){Bs||(Bs=!0,requestAnimationFrame(function(){for(var e in Bs=!1,Ls)zs(Ls[e])}))}window.__scheduleIntersectionUpdate=Ws;var Qs,$s,Us,Ys,qs=[];document.addEventListener("DOMContentLoaded",function(){var e=window.screen.width,t=document.documentElement;t.style.fontSize=e/20+"px";var n=window.getComputedStyle(t).fontSize;if(t.style.fontSize!=n){var r=parseFloat(t.style.fontSize)/parseFloat(n);t.style.fontSize=r*e/20+"px"}}),window.onerror=function(e,t,n,r,i){i&&console.error(i.stack),Reporter&&Reporter.errorReport({key:"webviewScriptError",error:i,extend:e})},Zi={},tt_w.onRequestComponentInfo(function(e){var t=e.reqs,n=e.reqId,r=e.widgetInstanceID,u=[];t.forEach(function(e){var t,n,r=e.selector,i=e.single,o=e.fields,a=e.component;if(0===a)return u.push((n={},(t=o).id&&(n.id=""),t.dataset&&(n.dataset={}),t.rect&&(n.left=0,n.right=0,n.top=0,n.bottom=0),t.size&&(n.width=document.documentElement.clientWidth,n.height=document.documentElement.clientHeight),t.scrollOffset&&(n.scrollLeft=document.documentElement.scrollLeft||document.body.scrollLeft||0,n.scrollTop=document.documentElement.scrollTop||document.body.scrollTop||0),n));var s=null,l=window.__DOMTree__;if(Zi[a]&&(l=Zi[a]),i){var c=l?l.querySelector(r):null;s=c?eo(c,o):null}else s=(l?Array.from(l.querySelectorAll(r)):[]).map(function(e){return eo(e,o)});u.push(s)}),tt_w.sendComponentInfo({widgetInstanceID:r,reqId:n,res:u})}),"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("pageReRender",function(){Ws()}),window.addEventListener("scroll",function(){Ws()},{capture:!0,passive:!0})),tt_w.onRequestComponentObserver(function(e){var t=e.req,n=e.reqId;if("addIntersectionObserver"===t.type){var r=null,i=Zi;if(!(r=t.nodeId?i[t.nodeId]:window.__DOMTree__))return;var o=function(f,e,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},r=arguments[4],i=[];if(n.observeAll)i=f.querySelectorAll(e);else{var o=f.querySelector(e);i=o?[o]:[]}i.length||logger.warn("For developer:Node "+e+" is not found. Intersection observer will not trigger.");var v=[];t.forEach(function(e){var t=e.selector,n=void 0===t?null:t,r=e.margins,i=void 0===r?{}:r,o=i.left,a=void 0===o?0:o,s=i.top,l=void 0===s?0:s,c=i.right,u=void 0===c?0:c,d=i.bottom,h=void 0===d?0:d,p=null===n?null:f.querySelector(n);null===n||p?v.push({node:p,margins:{left:a,top:l,right:u,bottom:h}}):logger.warn("For developer:Node "+n+" is not found. The relative node for intersection observer will be ignored.")}),v.length||console.warn("For developer:Intersection observer will be ignored because no relative nodes are found."),js(i,v,n.thresholds||[0],n.initialRatio||0,n.minWidthOrHeight||0,r)}(r,t.targetSelector,t.relativeInfo,t.options,function(e){tt_w.sendComponentObserver({reqId:n,res:{info:e}})});tt_w.sendComponentObserver({reqId:n,res:{observerId:o}})}else"removeIntersectionObserver"===t.type&&(function(e){var t=Rs[e];delete Rs[e];for(var n=0;n<t;n++){var r=e+"#"+n;Ls[r]&&delete Ls[r]}}(t.observerId),tt_w.sendComponentObserver({reqId:n,reqEnd:!0}))}),tt_w.onWidgetDataChange(function(){var e=Array.prototype.slice.apply(arguments);document.dispatchEvent(new CustomEvent("widgetDataChange",{detail:e}))}),tt_w.onAppDataChange(Ki(function(e,t){Ns.dataReady=!0,Ns.funcReady?Ms(e,t):qs.push({res:e,cb:t})})),tt_w.onSelectComponentInPage(Ki(function(e,t){var n=e.selector;if(e.single){var r=document.querySelector(n);t(ye(r)?r._id:null)}else{t(Array.from(document.querySelectorAll(n)).reduce(function(e,t){return ye(t)&&e.push(t._id),e},[]))}})),document.addEventListener("generateFuncReady",Ki(function(e){var t=e.detail.generateFunc;if(document.body.hasOwnProperty("scrollTop")||void 0!==document.body.scrollTop||setTimeout(function(){Object.defineProperty(document.body,"scrollTop",{get:function(){return document.documentElement.scrollTop},set:function(e){document.documentElement.scrollTop=e},configurable:!0})},100),window.__pageEnterTime__&&(Fs.webviewStartTime=window.__pageEnterTime__),Fs.funcReadyTs=Date.now(),ks("funcReady",Fs.webviewStartTime,Fs.funcReadyTs),window.__pageFrameStartTime__&&window.__pageFrameEndTime__&&ks("pageframe",window.__pageFrameStartTime__,window.__pageFrameEndTime__),window.__WAWebviewStartTime__&&window.__WAWebviewEndTime__&&ks("WAWebview",window.__WAWebviewStartTime__,window.__WAWebviewEndTime__),window.__generateFunc__=t,Ns.funcReady=!0,Ns.dataReady)for(var n in qs)Ms(qs[n].res,qs[n].cb)})),tt_w.onPageScrollTo(Ki(function(e,i){var o,a,s,l,c,u,d,t=e.duration,n=void 0===t?200:t,r=e.scrollTop;o=r,a=n,s=document.scrollingElement||document.body||document.documentElement,l=s.scrollTop,c=o-l,u=+new Date,(d=function(){var e,t,n,r=+new Date-u;s.scrollTop=parseInt((e=r,t=l,n=c,(e/=a/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t)),r<a?requestAnimationFrame(d):(s.scrollTop=o,i({errMsg:"pageScrollTo:ok"},!0))})()})),tt_w.onWebViewWillManuallyTerminate(function(e){return Ki(function(){var e,t;t=document.body.scrollTop||document.documentElement.scrollTop,ttJSBridge_w.publish("savePageState",{scrollTop:t,route:e}),tt_w.webViewReadyToTerminate()})}),Qs=null,["animationstart","animationiteration","animationend","transitionend"].forEach(function(e){window.addEventListener(e,function(){clearTimeout(Qs),Qs=setTimeout(function(){return document.dispatchEvent(new CustomEvent("pageReRender",{}))},20)},!0)}),$s=window.navigator.userAgent.toLowerCase(),Us=null,(0<=$s.indexOf("iphone")||0<=$s.indexOf("ipad"))&&document.addEventListener("touchend",function(e){var t=Date.now(),n=t-(Us=Us||t+1);if(n<500&&0<n)return e.preventDefault(),!1;Us=t},!1),Ys=window,function(e){if(ttJSBridge_w)return e();document.addEventListener("ttJSBridgeReady",e,!1)}(function(){ttJSBridge_w.subscribe("setKeyboardValue",function(e){e&&e.data&&document.dispatchEvent(new CustomEvent("setKeyboardValue",{detail:{value:e.data.value,cursor:e.data.cursor,inputId:e.data.inputId}}))}),ttJSBridge_w.subscribe("disable-scroll",function(e){ttJSBridge_w.invoke("disableScrollBounce",{disable:e.data.disable}),t=e.data.disable});var t=!1,e=!1;if("string"==typeof document.head.style.touchAction)try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(e){}var r=function(e){t&&e.preventDefault()};e?document.addEventListener("touchmove",r,{passive:!1}):document.addEventListener("touchmove",r),ttJSBridge_w.subscribe("hideKeyboard",function(e){document.dispatchEvent(new CustomEvent("hideKeyboard",{}))}),ttJSBridge_w.on("onKeyboardComplete",function(e){document.dispatchEvent(new CustomEvent("onKeyboardComplete",{detail:{value:e.value,inputId:e.inputId,cursor:"number"==typeof e.cursor?e.cursor:-1}}))}),ttJSBridge_w.on("onKeyboardConfirm",function(e){document.dispatchEvent(new CustomEvent("onKeyboardConfirm",{detail:{value:e.value,inputId:e.inputId}}))}),ttJSBridge_w.on("onTextAreaHeightChange",function(e){document.dispatchEvent(new CustomEvent("onTextAreaHeightChange",{detail:{height:e.height,lineCount:e.lineCount,inputId:e.inputId}}))}),ttJSBridge_w.on("onKeyboardShow",function(e){document.dispatchEvent(new CustomEvent("onKeyboardShow",{detail:{inputId:e.inputId,height:e.height}}))})}),Ys.addEventListener("error",function(e){document.dispatchEvent(new CustomEvent("globalError",{error:e}))},!0)}()}();