document.head.insertAdjacentHTML('afterbegin', '<link rel="stylesheet" href="https://cdn.aoscdn.com/css/api-audio-recorder.css?9b4d">');(function(){var o={lang:'de',download_launcher:'Launcher runterladen',download_launcher_please:'Bitte downloaden und installieren Sie Launcher, bevor Sie mit der Aufnahme beginnen',launching_agent:'Startend…',updating:'Aktualisierend...',update_succes:'Update erfolgreich ausgeführt!',update_failed:'Fehler beim Update!',installing:'Installierend...',install_succes:'Erfolgreich installiert!',install_failed:' Installation fehlgeschlagen!',launch_failed:'Fehler beim Start!',agent_update_failed:'Fehler beim Update von Launcher, Sie können folgendes versuchen:',start_old_version:'Die alte Version starten',download_started:'Download gestartet',after_download:'Installieren Sie es bitte nach dem Download!',launching_recorder:'Anwendung wird gestartet...',recorder_launched:'Anwendung gestartet',recorder_closed:'Anwendung abgeschlossen',power_by_apowersoft:'Von Apowersoft angetrieben',ad_free_phone_manager:'<a href="http://www.apowersoft.de/smartphone-manager">Kostenloser Smartphone Manager</a> - Mobile Dateien am PC verwalten',ad_free_screen_capture:'<a href="http://www.apowersoft.de/kostenloser-screen-capture">Kostenloses Screen Capture</a> - Alles was Sie sehen aufnehmen',ad_free_online_video_converter:'<a href="http://www.apowersoft.de/online-video-konverter-kostenlos">Kostenloser Online Video Konverter</a> - Jede Video- und Audiodatei umwandeln',ad_online_audio_recorder:'<a href="http://www.apowersoft.de/online-audio-recorder">Kostenloser Audio Recorder</a> - Jeden Ton auf Computern aufzeichnen',ad_online_screen_recorder:'<a href="http://www.apowersoft.de/kostenloser-online-bildschirm-recorder">Online Bildschirm Recorder</a> - Record anything you see on screen',ad_windows_shutdown_assistant:'<a href="http://www.apowersoft.de/windows-shutdown-assistant.html">Windows Shutdown Assistant</a> - PC zum eingestellten Zeitpunkt automatisch herunterfahren',audio_recorder:'Audio Recorder'};window.apowerTrans=window.apowerTrans||{};for(var i in o){apowerTrans[i]=o[i]}})();!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!u&&c)return c(o,!0);if(i)return i(o,!0);var a=new Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(n){var r=t[o][1][n];return s(r||n)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(t,n,r){(function(n){"use strict";function define(t,n,e){t[n]||Object[r](t,n,{writable:!0,configurable:!0,value:e})}if(t(327),t(328),t(2),n._babelPolyfill)return;n._babelPolyfill=!0;var r="defineProperty";define(String.prototype,"padLeft","".padStart),define(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(t){[][t]&&define(Array,t,Function.call.bind([][t]))})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2,327:327,328:328}],2:[function(t,n,r){t(130),n.exports=t(23).RegExp.escape},{130:130,23:23}],3:[function(t,n,r){n.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,n,r){var e=t(18);n.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},{18:18}],5:[function(t,n,r){var e=t(128)("unscopables"),i=Array.prototype;void 0==i[e]&&t(42)(i,e,{}),n.exports=function(t){i[e][t]=!0}},{128:128,42:42}],6:[function(t,n,r){n.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},{}],7:[function(t,n,r){var e=t(51);n.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},{51:51}],8:[function(t,n,r){"use strict";var e=t(119),i=t(114),o=t(118);n.exports=[].copyWithin||function copyWithin(t,n){var r=e(this),u=o(r.length),c=i(t,u),a=i(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:i(f,u))-a,u-c),l=1;for(a<c&&c<a+s&&(l=-1,a+=s-1,c+=s-1);s-- >0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},{114:114,118:118,119:119}],9:[function(t,n,r){"use strict";var e=t(119),i=t(114),o=t(118);n.exports=function fill(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:i(a,r);f>c;)n[c++]=t;return n}},{114:114,118:118,119:119}],10:[function(t,n,r){var e=t(39);n.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},{39:39}],11:[function(t,n,r){var e=t(117),i=t(118),o=t(114);n.exports=function(t){return function(n,r,u){var c,a=e(n),f=i(a.length),s=o(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},{114:114,117:117,118:118}],12:[function(t,n,r){var e=t(25),i=t(47),o=t(119),u=t(118),c=t(15);n.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,y,g=o(n),m=i(g),b=e(c,p,3),x=u(m.length),S=0,w=r?v(n,x):a?v(n,0):void 0;x>S;S++)if((h||S in m)&&(d=m[S],y=b(d,S,g),t))if(r)w[S]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return S;case 2:w.push(d)}else if(s)return!1;return l?-1:f||s?s:w}}},{118:118,119:119,15:15,25:25,47:47}],13:[function(t,n,r){var e=t(3),i=t(119),o=t(47),u=t(118);n.exports=function(t,n,r,c,a){e(n);var f=i(t),s=o(f),l=u(f.length),h=a?l-1:0,v=a?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,a?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,f));return c}},{118:118,119:119,3:3,47:47}],14:[function(t,n,r){var e=t(51),i=t(49),o=t(128)("species");n.exports=function(t){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},{128:128,49:49,51:51}],15:[function(t,n,r){var e=t(14);n.exports=function(t,n){return new(e(t))(n)}},{14:14}],16:[function(t,n,r){"use strict";var e=t(3),i=t(51),o=t(46),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)};n.exports=Function.bind||function bind(t){var n=e(this),r=u.call(arguments,1),c=function(){var e=r.concat(u.call(arguments));return this instanceof c?a(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(c.prototype=n.prototype),c}},{3:3,46:46,51:51}],17:[function(t,n,r){var e=t(18),i=t(128)("toStringTag"),o="Arguments"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(t){}};n.exports=function(t){var n,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=u(n=Object(t),i))?r:o?e(n):"Object"==(c=e(n))&&"function"==typeof n.callee?"Arguments":c}},{128:128,18:18}],18:[function(t,n,r){var e={}.toString;n.exports=function(t){return e.call(t).slice(8,-1)}},{}],19:[function(t,n,r){"use strict";var e=t(72).f,i=t(71),o=t(93),u=t(25),c=t(6),a=t(39),f=t(55),s=t(57),l=t(100),h=t(29),v=t(66).fastKey,p=t(125),d=h?"_s":"size",y=function(t,n){var r,e=v(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};n.exports={getConstructor:function(t,n,r,f){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[f],t)});return o(s.prototype,{clear:function clear(){for(var t=p(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var r=p(this,n),e=y(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[d]--}return!!e},forEach:function forEach(t){p(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function has(t){return!!y(p(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return p(this,n)[d]}}),s},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=v(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){f(t,n,function(t,r){this._t=p(t,n),this._k=r,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?s(0,r.k):"values"==n?s(0,r.v):s(0,[r.k,r.v]):(t._t=void 0,s(1))},r?"entries":"values",!r,!0),l(n)}}},{100:100,125:125,25:25,29:29,39:39,55:55,57:57,6:6,66:66,71:71,72:72,93:93}],20:[function(t,n,r){var e=t(17),i=t(10);n.exports=function(t){return function toJSON(){if(e(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},{10:10,17:17}],21:[function(t,n,r){"use strict";var e=t(93),i=t(66).getWeak,o=t(7),u=t(51),c=t(6),a=t(39),f=t(12),s=t(41),l=t(125),h=f(5),v=f(6),p=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return h(t.a,function(t){return t[0]===n})};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=v(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},n.exports={getConstructor:function(t,n,r,o){var f=t(function(t,e){c(t,f,n,"_i"),t._t=n,t._i=p++,t._l=void 0,void 0!=e&&a(e,r,t[o],t)});return e(f.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?d(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function has(t){if(!u(t))return!1;var r=i(t);return!0===r?d(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=i(o(n),!0);return!0===e?d(t).set(n,r):e[t._i]=r,t},ufstore:d}},{12:12,125:125,39:39,41:41,51:51,6:6,66:66,7:7,93:93}],22:[function(t,n,r){"use strict";var e=t(40),i=t(33),o=t(94),u=t(93),c=t(66),a=t(39),f=t(6),s=t(51),l=t(35),h=t(56),v=t(101),p=t(45);n.exports=function(t,n,r,d,y,g){var m=e[t],b=m,x=y?"set":"add",S=b&&b.prototype,w={},_=function(t){var n=S[t];o(S,t,"delete"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"has"==t?function has(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function get(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function add(t){return n.call(this,0===t?0:t),this}:function set(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof b&&(g||S.forEach&&!l(function(){(new b).entries().next()}))){var E=new b,O=E[x](g?{}:-0,1)!=E,P=l(function(){E.has(1)}),M=h(function(t){new b(t)}),F=!g&&l(function(){for(var t=new b,n=5;n--;)t[x](n,n);return!t.has(-0)});M||(b=n(function(n,r){f(n,b,t);var e=p(new m,n,b);return void 0!=r&&a(r,y,e[x],e),e}),b.prototype=S,S.constructor=b),(P||F)&&(_("delete"),_("has"),y&&_("get")),(F||O)&&_(x),g&&S.clear&&delete S.clear}else b=d.getConstructor(n,t,y,x),u(b.prototype,r),c.NEED=!0;return v(b,t),w[t]=b,i(i.G+i.W+i.F*(b!=m),w),g||d.setStrong(b,t,y),b}},{101:101,33:33,35:35,39:39,40:40,45:45,51:51,56:56,6:6,66:66,93:93,94:94}],23:[function(t,n,r){var e=n.exports={version:"2.5.0"};"number"==typeof __e&&(__e=e)},{}],24:[function(t,n,r){"use strict";var e=t(72),i=t(92);n.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},{72:72,92:92}],25:[function(t,n,r){var e=t(3);n.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},{3:3}],26:[function(t,n,r){"use strict";var e=t(35),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};n.exports=e(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!e(function(){o.call(new Date(NaN))})?function toISOString(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},{35:35}],27:[function(t,n,r){"use strict";var e=t(7),i=t(120);n.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},{120:120,7:7}],28:[function(t,n,r){n.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},{}],29:[function(t,n,r){n.exports=!t(35)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{35:35}],30:[function(t,n,r){var e=t(51),i=t(40).document,o=e(i)&&e(i.createElement);n.exports=function(t){return o?i.createElement(t):{}}},{40:40,51:51}],31:[function(t,n,r){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],32:[function(t,n,r){var e=t(81),i=t(78),o=t(82);n.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),a=o.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},{78:78,81:81,82:82}],33:[function(t,n,r){var e=t(40),i=t(23),o=t(42),u=t(94),c=t(25),a=function(t,n,r){var f,s,l,h,v=t&a.F,p=t&a.G,d=t&a.S,y=t&a.P,g=t&a.B,m=p?e:d?e[n]||(e[n]={}):(e[n]||{}).prototype,b=p?i:i[n]||(i[n]={}),x=b.prototype||(b.prototype={});p&&(r=n);for(f in r)s=!v&&m&&void 0!==m[f],l=(s?m:r)[f],h=g&&s?c(l,e):y&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),b[f]!=l&&o(b,f,h),y&&x[f]!=l&&(x[f]=l)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,n.exports=a},{23:23,25:25,40:40,42:42,94:94}],34:[function(t,n,r){var e=t(128)("match");n.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},{128:128}],35:[function(t,n,r){n.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],36:[function(t,n,r){"use strict";var e=t(42),i=t(94),o=t(35),u=t(28),c=t(128);n.exports=function(t,n,r){var a=c(t),f=r(u,a,""[t]),s=f[0],l=f[1];o(function(){var n={};return n[a]=function(){return 7},7!=""[t](n)})&&(i(String.prototype,t,s),e(RegExp.prototype,a,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},{128:128,28:28,35:35,42:42,94:94}],37:[function(t,n,r){"use strict";var e=t(7);n.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},{7:7}],38:[function(t,n,r){"use strict";function flattenIntoArray(t,n,r,a,f,s,l,h){for(var v,p,d=f,y=0,g=!!l&&u(l,h,3);y<a;){if(y in r){if(v=g?g(r[y],y,n):r[y],p=!1,i(v)&&(p=v[c],p=void 0!==p?!!p:e(v)),p&&s>0)d=flattenIntoArray(t,n,v,o(v.length),d,s-1)-1;else{if(d>=9007199254740991)throw TypeError();t[d]=v}d++}y++}return d}var e=t(49),i=t(51),o=t(118),u=t(25),c=t(128)("isConcatSpreadable");n.exports=flattenIntoArray},{118:118,128:128,25:25,49:49,51:51}],39:[function(t,n,r){var e=t(25),i=t(53),o=t(48),u=t(7),c=t(118),a=t(129),f={},s={},r=n.exports=function(t,n,r,l,h){var v,p,d,y,g=h?function(){return t}:a(t),m=e(r,l,n?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(v=c(t.length);v>b;b++)if((y=n?m(u(p=t[b])[0],p[1]):m(t[b]))===f||y===s)return y}else for(d=g.call(t);!(p=d.next()).done;)if((y=i(d,m,p.value,n))===f||y===s)return y};r.BREAK=f,r.RETURN=s},{118:118,129:129,25:25,48:48,53:53,7:7}],40:[function(t,n,r){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},{}],41:[function(t,n,r){var e={}.hasOwnProperty;n.exports=function(t,n){return e.call(t,n)}},{}],42:[function(t,n,r){var e=t(72),i=t(92);n.exports=t(29)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},{29:29,72:72,92:92}],43:[function(t,n,r){var e=t(40).document;n.exports=e&&e.documentElement},{40:40}],44:[function(t,n,r){n.exports=!t(29)&&!t(35)(function(){return 7!=Object.defineProperty(t(30)("div"),"a",{get:function(){return 7}}).a})},{29:29,30:30,35:35}],45:[function(t,n,r){var e=t(51),i=t(99).set;n.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},{51:51,99:99}],46:[function(t,n,r){n.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},{}],47:[function(t,n,r){var e=t(18);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},{18:18}],48:[function(t,n,r){var e=t(58),i=t(128)("iterator"),o=Array.prototype;n.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},{128:128,58:58}],49:[function(t,n,r){var e=t(18);n.exports=Array.isArray||function isArray(t){return"Array"==e(t)}},{18:18}],50:[function(t,n,r){var e=t(51),i=Math.floor;n.exports=function isInteger(t){return!e(t)&&isFinite(t)&&i(t)===t}},{51:51}],51:[function(t,n,r){n.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],52:[function(t,n,r){var e=t(51),i=t(18),o=t(128)("match");n.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},{128:128,18:18,51:51}],53:[function(t,n,r){var e=t(7);n.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},{7:7}],54:[function(t,n,r){"use strict";var e=t(71),i=t(92),o=t(101),u={};t(42)(u,t(128)("iterator"),function(){return this}),n.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},{101:101,128:128,42:42,71:71,92:92}],55:[function(t,n,r){"use strict";var e=t(60),i=t(33),o=t(94),u=t(42),c=t(41),a=t(58),f=t(54),s=t(101),l=t(79),h=t(128)("iterator"),v=!([].keys&&"next"in[].keys()),p=function(){return this};n.exports=function(t,n,r,d,y,g,m){f(r,n,d);var b,x,S,w=function(t){if(!v&&t in P)return P[t];switch(t){case"keys":return function keys(){return new r(this,t)};case"values":return function values(){return new r(this,t)}}return function entries(){return new r(this,t)}},_=n+" Iterator",E="values"==y,O=!1,P=t.prototype,M=P[h]||P["@@iterator"]||y&&P[y],F=M||w(y),I=y?E?w("entries"):F:void 0,A="Array"==n?P.entries||M:M;if(A&&(S=l(A.call(new t)))!==Object.prototype&&S.next&&(s(S,_,!0),e||c(S,h)||u(S,h,p)),E&&M&&"values"!==M.name&&(O=!0,F=function values(){return M.call(this)}),e&&!m||!v&&!O&&P[h]||u(P,h,F),a[n]=F,a[_]=p,y)if(b={values:E?F:w("values"),keys:g?F:w("keys"),entries:I},m)for(x in b)x in P||o(P,x,b[x]);else i(i.P+i.F*(v||O),n,b);return b}},{101:101,128:128,33:33,41:41,42:42,54:54,58:58,60:60,79:79,94:94}],56:[function(t,n,r){var e=t(128)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}n.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},{128:128}],57:[function(t,n,r){n.exports=function(t,n){return{value:n,done:!!t}}},{}],58:[function(t,n,r){n.exports={}},{}],59:[function(t,n,r){var e=t(81),i=t(117);n.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,a=0;c>a;)if(o[r=u[a++]]===n)return r}},{117:117,81:81}],60:[function(t,n,r){n.exports=!1},{}],61:[function(t,n,r){var e=Math.expm1;n.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function expm1(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},{}],62:[function(t,n,r){var e=t(65),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),a=i(2,-126),f=function(t){return t+1/o-1/o};n.exports=Math.fround||function fround(t){var n,r,i=Math.abs(t),s=e(t);return i<a?s*f(i/a/u)*a*u:(n=(1+u/o)*i,r=n-(n-i),r>c||r!=r?s*(1/0):s*r)}},{65:65}],63:[function(t,n,r){n.exports=Math.log1p||function log1p(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],64:[function(t,n,r){n.exports=Math.scale||function scale(t,n,r,e,i){return 0===arguments.length||t!=t||n!=n||r!=r||e!=e||i!=i?NaN:t===1/0||t===-1/0?t:(t-n)*(i-e)/(r-n)+e}},{}],65:[function(t,n,r){n.exports=Math.sign||function sign(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],66:[function(t,n,r){var e=t(124)("meta"),i=t(51),o=t(41),u=t(72).f,c=0,a=Object.isExtensible||function(){return!0},f=!t(35)(function(){return a(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return f&&p.NEED&&a(t)&&!o(t,e)&&s(t),t},p=n.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},{124:124,35:35,41:41,51:51,72:72}],67:[function(t,n,r){var e=t(160),i=t(33),o=t(103)("metadata"),u=o.store||(o.store=new(t(266))),c=function(t,n,r){var i=u.get(t);if(!i){if(!r)return;u.set(t,i=new e)}var o=i.get(n);if(!o){if(!r)return;i.set(n,o=new e)}return o},a=function(t,n,r){var e=c(n,r,!1);return void 0!==e&&e.has(t)},f=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},v=function(t){i(i.S,"Reflect",t)};n.exports={store:u,map:c,has:a,get:f,set:s,keys:l,key:h,exp:v}},{103:103,160:160,266:266,33:33}],68:[function(t,n,r){var e=t(40),i=t(113).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,a="process"==t(18)(u);n.exports=function(){var t,n,r,f=function(){var e,i;for(a&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){u.nextTick(f)};else if(o){var s=!0,l=document.createTextNode("");new o(f).observe(l,{characterData:!0}),r=function(){l.data=s=!s}}else if(c&&c.resolve){var h=c.resolve();r=function(){h.then(f)}}else r=function(){i.call(e,f)};return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},{113:113,18:18,40:40}],69:[function(t,n,r){"use strict";function PromiseCapability(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=e(n),this.reject=e(r)}var e=t(3);n.exports.f=function(t){return new PromiseCapability(t)}},{3:3}],70:[function(t,n,r){"use strict";var e=t(81),i=t(78),o=t(82),u=t(119),c=t(47),a=Object.assign;n.exports=!a||t(35)(function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach(function(t){n[t]=t}),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e})?function assign(t,n){for(var r=u(t),a=arguments.length,f=1,s=i.f,l=o.f;a>f;)for(var h,v=c(arguments[f++]),p=s?e(v).concat(s(v)):e(v),d=p.length,y=0;d>y;)l.call(v,h=p[y++])&&(r[h]=v[h]);return r}:a},{119:119,35:35,47:47,78:78,81:81,82:82}],71:[function(t,n,r){var e=t(7),i=t(73),o=t(31),u=t(102)("IE_PROTO"),c=function(){},a=function(){var n,r=t(30)("iframe"),e=o.length;for(r.style.display="none",t(43).appendChild(r),r.src="javascript:",n=r.contentWindow.document,n.open(),n.write("<script>document.F=Object<\/script>"),n.close(),a=n.F;e--;)delete a.prototype[o[e]];return a()};n.exports=Object.create||function create(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},{102:102,30:30,31:31,43:43,7:7,73:73}],72:[function(t,n,r){var e=t(7),i=t(44),o=t(120),u=Object.defineProperty;r.f=t(29)?Object.defineProperty:function defineProperty(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},{120:120,29:29,44:44,7:7}],73:[function(t,n,r){var e=t(72),i=t(7),o=t(81);n.exports=t(29)?Object.defineProperties:function defineProperties(t,n){i(t);for(var r,u=o(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},{29:29,7:7,72:72,81:81}],74:[function(t,n,r){"use strict";n.exports=t(60)||!t(35)(function(){var n=Math.random();__defineSetter__.call(null,n,function(){}),delete t(40)[n]})},{35:35,40:40,60:60}],75:[function(t,n,r){var e=t(82),i=t(92),o=t(117),u=t(120),c=t(41),a=t(44),f=Object.getOwnPropertyDescriptor;r.f=t(29)?f:function getOwnPropertyDescriptor(t,n){if(t=o(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},{117:117,120:120,29:29,41:41,44:44,82:82,92:92}],76:[function(t,n,r){var e=t(117),i=t(77).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(t){return u.slice()}};n.exports.f=function getOwnPropertyNames(t){return u&&"[object Window]"==o.call(t)?c(t):i(e(t))}},{117:117,77:77}],77:[function(t,n,r){var e=t(80),i=t(31).concat("length","prototype");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return e(t,i)}},{31:31,80:80}],78:[function(t,n,r){r.f=Object.getOwnPropertySymbols},{}],79:[function(t,n,r){var e=t(41),i=t(119),o=t(102)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},{102:102,119:119,41:41}],80:[function(t,n,r){var e=t(41),i=t(117),o=t(11)(!1),u=t(102)("IE_PROTO");n.exports=function(t,n){var r,c=i(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~o(f,r)||f.push(r));return f}},{102:102,11:11,117:117,41:41}],81:[function(t,n,r){var e=t(80),i=t(31);n.exports=Object.keys||function keys(t){return e(t,i)}},{31:31,80:80}],82:[function(t,n,r){r.f={}.propertyIsEnumerable},{}],83:[function(t,n,r){var e=t(33),i=t(23),o=t(35);n.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),"Object",u)}},{23:23,33:33,35:35}],84:[function(t,n,r){var e=t(81),i=t(117),o=t(82).f;n.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),a=c.length,f=0,s=[];a>f;)o.call(u,r=c[f++])&&s.push(t?[r,u[r]]:u[r]);return s}}},{117:117,81:81,82:82}],85:[function(t,n,r){var e=t(77),i=t(78),o=t(7),u=t(40).Reflect;n.exports=u&&u.ownKeys||function ownKeys(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},{40:40,7:7,77:77,78:78}],86:[function(t,n,r){var e=t(40).parseFloat,i=t(111).trim;n.exports=1/e(t(112)+"-0")!=-1/0?function parseFloat(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},{111:111,112:112,40:40}],87:[function(t,n,r){var e=t(40).parseInt,i=t(111).trim,o=t(112),u=/^[-+]?0[xX]/;n.exports=8!==e(o+"08")||22!==e(o+"0x16")?function parseInt(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},{111:111,112:112,40:40}],88:[function(t,n,r){"use strict";var e=t(89),i=t(46),o=t(3);n.exports=function(){for(var t=o(this),n=arguments.length,r=Array(n),u=0,c=e._,a=!1;n>u;)(r[u]=arguments[u++])===c&&(a=!0);return function(){var e,o=this,u=arguments.length,f=0,s=0;if(!a&&!u)return i(t,r,o);if(e=r.slice(),a)for(;n>f;f++)e[f]===c&&(e[f]=arguments[s++]);for(;u>s;)e.push(arguments[s++]);return i(t,e,o)}}},{3:3,46:46,89:89}],89:[function(t,n,r){n.exports=t(40)},{40:40}],90:[function(t,n,r){n.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],91:[function(t,n,r){var e=t(69);n.exports=function(t,n){var r=e.f(t);return(0,r.resolve)(n),r.promise}},{69:69}],92:[function(t,n,r){n.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},{}],93:[function(t,n,r){var e=t(94);n.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},{94:94}],94:[function(t,n,r){var e=t(40),i=t(42),o=t(41),u=t(124)("src"),c=Function.toString,a=(""+c).split("toString");t(23).inspectSource=function(t){return c.call(t)},(n.exports=function(t,n,r,c){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",function toString(){return"function"==typeof this&&this[u]||c.call(this)})},{124:124,23:23,40:40,41:41,42:42}],95:[function(t,n,r){n.exports=function(t,n){var r=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,r)}}},{}],96:[function(t,n,r){n.exports=Object.is||function is(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},{}],97:[function(t,n,r){"use strict";var e=t(33),i=t(3),o=t(25),u=t(39);n.exports=function(t){e(e.S,t,{from:function from(t){var n,r,e,c,a=arguments[1];return i(this),n=void 0!==a,n&&i(a),void 0==t?new this:(r=[],n?(e=0,c=o(a,arguments[2],2),u(t,!1,function(t){r.push(c(t,e++))})):u(t,!1,r.push,r),new this(r))}})}},{25:25,3:3,33:33,39:39}],98:[function(t,n,r){"use strict";var e=t(33);n.exports=function(t){e(e.S,t,{of:function of(){for(var t=arguments.length,n=Array(t);t--;)n[t]=arguments[t];return new this(n)}})}},{33:33}],99:[function(t,n,r){var e=t(51),i=t(7),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};n.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(n,r,e){try{e=t(25)(Function.call,t(75).f(Object.prototype,"__proto__").set,2),e(n,[]),r=!(n instanceof Array)}catch(t){r=!0}return function setPrototypeOf(t,n){return o(t,n),r?t.__proto__=n:e(t,n),t}}({},!1):void 0),check:o}},{25:25,51:51,7:7,75:75}],100:[function(t,n,r){"use strict";var e=t(40),i=t(72),o=t(29),u=t(128)("species");n.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},{128:128,29:29,40:40,72:72}],101:[function(t,n,r){var e=t(72).f,i=t(41),o=t(128)("toStringTag");n.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},{128:128,41:41,72:72}],102:[function(t,n,r){var e=t(103)("keys"),i=t(124);n.exports=function(t){return e[t]||(e[t]=i(t))}},{103:103,124:124}],103:[function(t,n,r){var e=t(40),i=e["__core-js_shared__"]||(e["__core-js_shared__"]={});n.exports=function(t){return i[t]||(i[t]={})}},{40:40}],104:[function(t,n,r){var e=t(7),i=t(3),o=t(128)("species");n.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},{128:128,3:3,7:7}],105:[function(t,n,r){"use strict";var e=t(35);n.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},{35:35}],106:[function(t,n,r){var e=t(116),i=t(28);n.exports=function(t){return function(n,r){var o,u,c=String(i(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(o=c.charCodeAt(a),o<55296||o>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):o:t?c.slice(a,a+2):u-56320+(o-55296<<10)+65536)}}},{116:116,28:28}],107:[function(t,n,r){var e=t(52),i=t(28);n.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},{28:28,52:52}],108:[function(t,n,r){var e=t(33),i=t(35),o=t(28),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,"&quot;")+'"'),c+">"+i+"</"+n+">"};n.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i(function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}),"String",r)}},{28:28,33:33,35:35}],109:[function(t,n,r){var e=t(118),i=t(110),o=t(28);n.exports=function(t,n,r,u){var c=String(o(t)),a=c.length,f=void 0===r?" ":String(r),s=e(n);if(s<=a||""==f)return c;var l=s-a,h=i.call(f,Math.ceil(l/f.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},{110:110,118:118,28:28}],110:[function(t,n,r){"use strict";var e=t(116),i=t(28);n.exports=function repeat(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},{116:116,28:28}],111:[function(t,n,r){var e=t(33),i=t(28),o=t(35),u=t(112),c="["+u+"]",a="​",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,r){var i={},c=o(function(){return!!u[t]()||a[t]()!=a}),f=i[t]=c?n(h):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};n.exports=l},{112:112,28:28,33:33,35:35}],112:[function(t,n,r){n.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],113:[function(t,n,r){var e,i,o,u=t(25),c=t(46),a=t(43),f=t(30),s=t(40),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,d=s.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},b=function(t){m.call(t.data)};h&&v||(h=function setImmediate(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},v=function clearImmediate(t){delete g[t]},"process"==t(18)(l)?e=function(t){l.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",b,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),n.exports={set:h,clear:v}},{18:18,25:25,30:30,40:40,43:43,46:46}],114:[function(t,n,r){var e=t(116),i=Math.max,o=Math.min;n.exports=function(t,n){return t=e(t),t<0?i(t+n,0):o(t,n)}},{116:116}],115:[function(t,n,r){var e=t(116),i=t(118);n.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},{116:116,118:118}],116:[function(t,n,r){var e=Math.ceil,i=Math.floor;n.exports=function(t){return isNaN(t=+t)?0:(t>0?i:e)(t)}},{}],117:[function(t,n,r){var e=t(47),i=t(28);n.exports=function(t){return e(i(t))}},{28:28,47:47}],118:[function(t,n,r){var e=t(116),i=Math.min;n.exports=function(t){return t>0?i(e(t),9007199254740991):0}},{116:116}],
119:[function(t,n,r){var e=t(28);n.exports=function(t){return Object(e(t))}},{28:28}],120:[function(t,n,r){var e=t(51);n.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{51:51}],121:[function(t,n,r){"use strict";if(t(29)){var e=t(60),i=t(40),o=t(35),u=t(33),c=t(123),a=t(122),f=t(25),s=t(6),l=t(92),h=t(42),v=t(93),p=t(116),d=t(118),y=t(115),g=t(114),m=t(120),b=t(41),x=t(17),S=t(51),w=t(119),_=t(48),E=t(71),O=t(79),P=t(77).f,M=t(129),F=t(124),I=t(128),A=t(12),k=t(11),N=t(104),j=t(141),T=t(58),R=t(56),L=t(100),G=t(9),D=t(8),C=t(72),W=t(75),U=C.f,B=W.f,V=i.RangeError,z=i.TypeError,q=i.Uint8Array,K=Array.prototype,Y=a.ArrayBuffer,J=a.DataView,H=A(0),X=A(2),$=A(3),Z=A(4),Q=A(5),tt=A(6),nt=k(!0),rt=k(!1),et=j.values,it=j.keys,ot=j.entries,ut=K.lastIndexOf,ct=K.reduce,at=K.reduceRight,ft=K.join,st=K.sort,lt=K.slice,ht=K.toString,vt=K.toLocaleString,pt=I("iterator"),dt=I("toStringTag"),yt=F("typed_constructor"),gt=F("def_constructor"),mt=c.CONSTR,bt=c.TYPED,xt=c.VIEW,St=A(1,function(t,n){return Pt(N(t,t[gt]),n)}),wt=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),_t=!!q&&!!q.prototype.set&&o(function(){new q(1).set({})}),Et=function(t,n){var r=p(t);if(r<0||r%n)throw V("Wrong offset!");return r},Ot=function(t){if(S(t)&&bt in t)return t;throw z(t+" is not a typed array!")},Pt=function(t,n){if(!(S(t)&&yt in t))throw z("It is not a typed array constructor!");return new t(n)},Mt=function(t,n){return Ft(N(t,t[gt]),n)},Ft=function(t,n){for(var r=0,e=n.length,i=Pt(t,e);e>r;)i[r]=n[r++];return i},It=function(t,n,r){U(t,n,{get:function(){return this._d[r]}})},At=function from(t){var n,r,e,i,o,u,c=w(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,h=M(c);if(void 0!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=d(c.length),i=Pt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},kt=function of(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!q&&o(function(){vt.call(new q(1))}),jt=function toLocaleString(){return vt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Tt={copyWithin:function copyWithin(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function every(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function fill(t){return G.apply(Ot(this),arguments)},filter:function filter(t){return Mt(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function find(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function findIndex(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function forEach(t){H(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function indexOf(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function includes(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function join(t){return ft.apply(Ot(this),arguments)},lastIndexOf:function lastIndexOf(t){return ut.apply(Ot(this),arguments)},map:function map(t){return St(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(t){return ct.apply(Ot(this),arguments)},reduceRight:function reduceRight(t){return at.apply(Ot(this),arguments)},reverse:function reverse(){for(var t,n=this,r=Ot(n).length,e=Math.floor(r/2),i=0;i<e;)t=n[i],n[i++]=n[--r],n[r]=t;return n},some:function some(t){return $(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function sort(t){return st.call(Ot(this),t)},subarray:function subarray(t,n){var r=Ot(this),e=r.length,i=g(t,e);return new(N(r,r[gt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:g(n,e))-i))}},Rt=function slice(t,n){return Mt(this,lt.call(Ot(this),t,n))},Lt=function set(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=w(t),i=d(e.length),o=0;if(i+n>r)throw V("Wrong length!");for(;o<i;)this[n+o]=e[o++]},Gt={entries:function entries(){return ot.call(Ot(this))},keys:function keys(){return it.call(Ot(this))},values:function values(){return et.call(Ot(this))}},Dt=function(t,n){return S(t)&&t[bt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Ct=function getOwnPropertyDescriptor(t,n){return Dt(t,n=m(n,!0))?l(2,t[n]):B(t,n)},Wt=function defineProperty(t,n,r){return!(Dt(t,n=m(n,!0))&&S(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?U(t,n,r):(t[n]=r.value,t)};mt||(W.f=Ct,C.f=Wt),u(u.S+u.F*!mt,"Object",{getOwnPropertyDescriptor:Ct,defineProperty:Wt}),o(function(){ht.call({})})&&(ht=vt=function toString(){return ft.call(this)});var Ut=v({},Tt);v(Ut,Gt),h(Ut,pt,Gt.values),v(Ut,{slice:Rt,set:Lt,constructor:function(){},toString:ht,toLocaleString:jt}),It(Ut,"buffer","b"),It(Ut,"byteOffset","o"),It(Ut,"byteLength","l"),It(Ut,"length","e"),U(Ut,dt,{get:function(){return this[bt]}}),n.exports=function(t,n,r,a){a=!!a;var f=t+(a?"Clamped":"")+"Array",l="get"+t,v="set"+t,p=i[f],g=p||{},m=p&&O(p),b=!p||!c.ABV,w={},_=p&&p.prototype,M=function(t,r){var e=t._d;return e.v[l](r*n+e.o,wt)},F=function(t,r,e){var i=t._d;a&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[v](r*n+i.o,e,wt)},I=function(t,n){U(t,n,{get:function(){return M(this,n)},set:function(t){return F(this,n,t)},enumerable:!0})};b?(p=r(function(t,r,e,i){s(t,p,f,"_d");var o,u,c,a,l=0,v=0;if(S(r)){if(!(r instanceof Y||"ArrayBuffer"==(a=x(r))||"SharedArrayBuffer"==a))return bt in r?Ft(p,r):At.call(p,r);o=r,v=Et(e,n);var g=r.byteLength;if(void 0===i){if(g%n)throw V("Wrong length!");if((u=g-v)<0)throw V("Wrong length!")}else if((u=d(i)*n)+v>g)throw V("Wrong length!");c=u/n}else c=y(r),u=c*n,o=new Y(u);for(h(t,"_d",{b:o,o:v,l:u,e:c,v:new J(o)});l<c;)I(t,l++)}),_=p.prototype=E(Ut),h(_,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&R(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=r(function(t,r,e,i){s(t,p,f);var o;return S(r)?r instanceof Y||"ArrayBuffer"==(o=x(r))||"SharedArrayBuffer"==o?void 0!==i?new g(r,Et(e,n),i):void 0!==e?new g(r,Et(e,n)):new g(r):bt in r?Ft(p,r):At.call(p,r):new g(y(r))}),H(m!==Function.prototype?P(g).concat(P(m)):P(g),function(t){t in p||h(p,t,g[t])}),p.prototype=_,e||(_.constructor=p));var A=_[pt],k=!!A&&("values"==A.name||void 0==A.name),N=Gt.values;h(p,yt,!0),h(_,bt,f),h(_,xt,!0),h(_,gt,p),(a?new p(1)[dt]==f:dt in _)||U(_,dt,{get:function(){return f}}),w[f]=p,u(u.G+u.W+u.F*(p!=g),w),u(u.S,f,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o(function(){g.of.call(p,1)}),f,{from:At,of:kt}),"BYTES_PER_ELEMENT"in _||h(_,"BYTES_PER_ELEMENT",n),u(u.P,f,Tt),L(f),u(u.P+u.F*_t,f,{set:Lt}),u(u.P+u.F*!k,f,Gt),e||_.toString==ht||(_.toString=ht),u(u.P+u.F*o(function(){new p(1).slice()}),f,{slice:Rt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),f,{toLocaleString:jt}),T[f]=k?A:N,e||k||h(_,pt,N)}}else n.exports=function(){}},{100:100,104:104,11:11,114:114,115:115,116:116,118:118,119:119,12:12,120:120,122:122,123:123,124:124,128:128,129:129,141:141,17:17,25:25,29:29,33:33,35:35,40:40,41:41,42:42,48:48,51:51,56:56,58:58,6:6,60:60,71:71,72:72,75:75,77:77,79:79,8:8,9:9,92:92,93:93}],122:[function(t,n,r){"use strict";function packIEEE754(t,n,r){var e,i,o,u=Array(r),c=8*r-n-1,a=(1<<c)-1,f=a>>1,s=23===n?M(2,-24)-M(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=P(t),t!=t||t===E?(i=t!=t?1:0,e=a):(e=F(I(t)/A),t*(o=M(2,-e))<1&&(e--,o*=2),t+=e+f>=1?s/o:s*M(2,1-f),t*o>=2&&(e++,o/=2),e+f>=a?(i=0,e=a):e+f>=1?(i=(t*o-1)*M(2,n),e+=f):(i=t*M(2,f-1)*M(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function unpackIEEE754(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,a=r-1,f=t[a--],s=127&f;for(f>>=7;c>0;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:f?-E:E;e+=M(2,n),s-=u}return(f?-1:1)*e*M(2,s-n)}function unpackI32(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function packI8(t){return[255&t]}function packI16(t){return[255&t,t>>8&255]}function packI32(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function packF64(t){return packIEEE754(t,52,8)}function packF32(t){return packIEEE754(t,23,4)}function addGetter(t,n,r){d(t[m],n,{get:function(){return this[r]}})}function get(t,n,r,e){var i=+r,o=v(i);if(o+n>t[N])throw _(b);var u=t[k]._b,c=o+t[j],a=u.slice(c,c+n);return e?a:a.reverse()}function set(t,n,r,e,i,o){var u=+r,c=v(u);if(c+n>t[N])throw _(b);for(var a=t[k]._b,f=c+t[j],s=e(+i),l=0;l<n;l++)a[f+l]=s[o?l:n-l-1]}var e=t(40),i=t(29),o=t(60),u=t(123),c=t(42),a=t(93),f=t(35),s=t(6),l=t(116),h=t(118),v=t(115),p=t(77).f,d=t(72).f,y=t(9),g=t(101),m="prototype",b="Wrong index!",x=e.ArrayBuffer,S=e.DataView,w=e.Math,_=e.RangeError,E=e.Infinity,O=x,P=w.abs,M=w.pow,F=w.floor,I=w.log,A=w.LN2,k=i?"_b":"buffer",N=i?"_l":"byteLength",j=i?"_o":"byteOffset";if(u.ABV){if(!f(function(){x(1)})||!f(function(){new x(-1)})||f(function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name})){x=function ArrayBuffer(t){return s(this,x),new O(v(t))};for(var T,R=x[m]=O[m],L=p(O),G=0;L.length>G;)(T=L[G++])in x||c(x,T,O[T]);o||(R.constructor=x)}var D=new S(new x(2)),C=S[m].setInt8;D.setInt8(0,2147483648),D.setInt8(1,2147483649),!D.getInt8(0)&&D.getInt8(1)||a(S[m],{setInt8:function setInt8(t,n){C.call(this,t,n<<24>>24)},setUint8:function setUint8(t,n){C.call(this,t,n<<24>>24)}},!0)}else x=function ArrayBuffer(t){s(this,x,"ArrayBuffer");var n=v(t);this._b=y.call(Array(n),0),this[N]=n},S=function DataView(t,n,r){s(this,S,"DataView"),s(t,x,"DataView");var e=t[N],i=l(n);if(i<0||i>e)throw _("Wrong offset!");if(r=void 0===r?e-i:h(r),i+r>e)throw _("Wrong length!");this[k]=t,this[j]=i,this[N]=r},i&&(addGetter(x,"byteLength","_l"),addGetter(S,"buffer","_b"),addGetter(S,"byteLength","_l"),addGetter(S,"byteOffset","_o")),a(S[m],{getInt8:function getInt8(t){return get(this,1,t)[0]<<24>>24},getUint8:function getUint8(t){return get(this,1,t)[0]},getInt16:function getInt16(t){var n=get(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function getUint16(t){var n=get(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function getInt32(t){return unpackI32(get(this,4,t,arguments[1]))},getUint32:function getUint32(t){return unpackI32(get(this,4,t,arguments[1]))>>>0},getFloat32:function getFloat32(t){return unpackIEEE754(get(this,4,t,arguments[1]),23,4)},getFloat64:function getFloat64(t){return unpackIEEE754(get(this,8,t,arguments[1]),52,8)},setInt8:function setInt8(t,n){set(this,1,t,packI8,n)},setUint8:function setUint8(t,n){set(this,1,t,packI8,n)},setInt16:function setInt16(t,n){set(this,2,t,packI16,n,arguments[2])},setUint16:function setUint16(t,n){set(this,2,t,packI16,n,arguments[2])},setInt32:function setInt32(t,n){set(this,4,t,packI32,n,arguments[2])},setUint32:function setUint32(t,n){set(this,4,t,packI32,n,arguments[2])},setFloat32:function setFloat32(t,n){set(this,4,t,packF32,n,arguments[2])},setFloat64:function setFloat64(t,n){set(this,8,t,packF64,n,arguments[2])}});g(x,"ArrayBuffer"),g(S,"DataView"),c(S[m],u.VIEW,!0),r.ArrayBuffer=x,r.DataView=S},{101:101,115:115,116:116,118:118,123:123,29:29,35:35,40:40,42:42,6:6,60:60,72:72,77:77,9:9,93:93}],123:[function(t,n,r){for(var e,i=t(40),o=t(42),u=t(124),c=u("typed_array"),a=u("view"),f=!(!i.ArrayBuffer||!i.DataView),s=f,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,a,!0)):s=!1;n.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},{124:124,40:40,42:42}],124:[function(t,n,r){var e=0,i=Math.random();n.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+i).toString(36))}},{}],125:[function(t,n,r){var e=t(51);n.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},{51:51}],126:[function(t,n,r){var e=t(40),i=t(23),o=t(60),u=t(127),c=t(72).f;n.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},{127:127,23:23,40:40,60:60,72:72}],127:[function(t,n,r){r.f=t(128)},{128:128}],128:[function(t,n,r){var e=t(103)("wks"),i=t(124),o=t(40).Symbol,u="function"==typeof o;(n.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},{103:103,124:124,40:40}],129:[function(t,n,r){var e=t(17),i=t(128)("iterator"),o=t(58);n.exports=t(23).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[e(t)]}},{128:128,17:17,23:23,58:58}],130:[function(t,n,r){var e=t(33),i=t(95)(/[\\^$*+?.()|[\]{}]/g,"\\$&");e(e.S,"RegExp",{escape:function escape(t){return i(t)}})},{33:33,95:95}],131:[function(t,n,r){var e=t(33);e(e.P,"Array",{copyWithin:t(8)}),t(5)("copyWithin")},{33:33,5:5,8:8}],132:[function(t,n,r){"use strict";var e=t(33),i=t(12)(4);e(e.P+e.F*!t(105)([].every,!0),"Array",{every:function every(t){return i(this,t,arguments[1])}})},{105:105,12:12,33:33}],133:[function(t,n,r){var e=t(33);e(e.P,"Array",{fill:t(9)}),t(5)("fill")},{33:33,5:5,9:9}],134:[function(t,n,r){"use strict";var e=t(33),i=t(12)(2);e(e.P+e.F*!t(105)([].filter,!0),"Array",{filter:function filter(t){return i(this,t,arguments[1])}})},{105:105,12:12,33:33}],135:[function(t,n,r){"use strict";var e=t(33),i=t(12)(6),o="findIndex",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,"Array",{findIndex:function findIndex(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(5)(o)},{12:12,33:33,5:5}],136:[function(t,n,r){"use strict";var e=t(33),i=t(12)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),e(e.P+e.F*o,"Array",{find:function find(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(5)("find")},{12:12,33:33,5:5}],137:[function(t,n,r){"use strict";var e=t(33),i=t(12)(0),o=t(105)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function forEach(t){return i(this,t,arguments[1])}})},{105:105,12:12,33:33}],138:[function(t,n,r){"use strict";var e=t(25),i=t(33),o=t(119),u=t(53),c=t(48),a=t(118),f=t(24),s=t(129);i(i.S+i.F*!t(56)(function(t){Array.from(t)}),"Array",{from:function from(t){var n,r,i,l,h=o(t),v="function"==typeof this?this:Array,p=arguments.length,d=p>1?arguments[1]:void 0,y=void 0!==d,g=0,m=s(h);if(y&&(d=e(d,p>2?arguments[2]:void 0,2)),void 0==m||v==Array&&c(m))for(n=a(h.length),r=new v(n);n>g;g++)f(r,g,y?d(h[g],g):h[g]);else for(l=m.call(h),r=new v;!(i=l.next()).done;g++)f(r,g,y?u(l,d,[i.value,g],!0):i.value);return r.length=g,r}})},{118:118,119:119,129:129,24:24,25:25,33:33,48:48,53:53,56:56}],139:[function(t,n,r){"use strict";var e=t(33),i=t(11)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!t(105)(o)),"Array",{indexOf:function indexOf(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},{105:105,11:11,33:33}],140:[function(t,n,r){var e=t(33);e(e.S,"Array",{isArray:t(49)})},{33:33,49:49}],141:[function(t,n,r){"use strict";var e=t(5),i=t(57),o=t(58),u=t(117);n.exports=t(55)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==n?i(0,r):"values"==n?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},{117:117,5:5,55:55,57:57,58:58}],142:[function(t,n,r){"use strict";var e=t(33),i=t(117),o=[].join;e(e.P+e.F*(t(47)!=Object||!t(105)(o)),"Array",{join:function join(t){return o.call(i(this),void 0===t?",":t)}})},{105:105,117:117,33:33,47:47}],143:[function(t,n,r){"use strict";var e=t(33),i=t(117),o=t(116),u=t(118),c=[].lastIndexOf,a=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(a||!t(105)(c)),"Array",{lastIndexOf:function lastIndexOf(t){if(a)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},{105:105,116:116,117:117,118:118,33:33}],144:[function(t,n,r){"use strict";var e=t(33),i=t(12)(1);e(e.P+e.F*!t(105)([].map,!0),"Array",{map:function map(t){return i(this,t,arguments[1])}})},{105:105,12:12,33:33}],145:[function(t,n,r){"use strict";var e=t(33),i=t(24);e(e.S+e.F*t(35)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),"Array",{of:function of(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},{24:24,33:33,35:35}],146:[function(t,n,r){"use strict";var e=t(33),i=t(13);e(e.P+e.F*!t(105)([].reduceRight,!0),"Array",{reduceRight:function reduceRight(t){return i(this,t,arguments.length,arguments[1],!0)}})},{105:105,13:13,33:33}],147:[function(t,n,r){"use strict";var e=t(33),i=t(13);e(e.P+e.F*!t(105)([].reduce,!0),"Array",{reduce:function reduce(t){return i(this,t,arguments.length,arguments[1],!1)}})},{105:105,13:13,33:33}],148:[function(t,n,r){"use strict";var e=t(33),i=t(43),o=t(18),u=t(114),c=t(118),a=[].slice;e(e.P+e.F*t(35)(function(){i&&a.call(i)}),"Array",{slice:function slice(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return a.call(this,t,n);for(var i=u(t,r),f=u(n,r),s=c(f-i),l=Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},{114:114,118:118,18:18,33:33,35:35,43:43}],149:[function(t,n,r){"use strict";var e=t(33),i=t(12)(3);e(e.P+e.F*!t(105)([].some,!0),"Array",{some:function some(t){return i(this,t,arguments[1])}})},{105:105,12:12,33:33}],150:[function(t,n,r){"use strict";var e=t(33),i=t(3),o=t(119),u=t(35),c=[].sort,a=[1,2,3];e(e.P+e.F*(u(function(){a.sort(void 0)})||!u(function(){a.sort(null)})||!t(105)(c)),"Array",{sort:function sort(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},{105:105,119:119,3:3,33:33,35:35}],151:[function(t,n,r){t(100)("Array")},{100:100}],152:[function(t,n,r){var e=t(33);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},{33:33}],153:[function(t,n,r){var e=t(33),i=t(26);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},{26:26,33:33}],154:[function(t,n,r){"use strict";var e=t(33),i=t(119),o=t(120);e(e.P+e.F*t(35)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function toJSON(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},{119:119,120:120,33:33,35:35}],155:[function(t,n,r){var e=t(128)("toPrimitive"),i=Date.prototype;e in i||t(42)(i,e,t(27))},{128:128,27:27,42:42}],156:[function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&t(94)(e,"toString",function toString(){var t=o.call(this);return t===t?i.call(this):"Invalid Date"})},{94:94}],157:[function(t,n,r){var e=t(33);e(e.P,"Function",{bind:t(16)})},{16:16,33:33}],158:[function(t,n,r){"use strict";var e=t(51),i=t(79),o=t(128)("hasInstance"),u=Function.prototype;o in u||t(72).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},{128:128,51:51,72:72,79:79}],159:[function(t,n,r){var e=t(72).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||t(29)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},{29:29,72:72}],160:[function(t,n,r){"use strict";var e=t(19),i=t(125);n.exports=t(22)("Map",function(t){return function Map(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function get(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function set(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},{125:125,19:19,22:22}],161:[function(t,n,r){var e=t(33),i=t(63),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function acosh(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},{33:33,63:63}],162:[function(t,n,r){function asinh(t){return isFinite(t=+t)&&0!=t?t<0?-asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t}var e=t(33),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:asinh})},{33:33}],163:[function(t,n,r){var e=t(33),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function atanh(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{33:33}],164:[function(t,n,r){var e=t(33),i=t(65);e(e.S,"Math",{cbrt:function cbrt(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},{33:33,65:65}],165:[function(t,n,r){var e=t(33);e(e.S,"Math",{clz32:function clz32(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{33:33}],166:[function(t,n,r){var e=t(33),i=Math.exp;e(e.S,"Math",{cosh:function cosh(t){return(i(t=+t)+i(-t))/2}})},{33:33}],167:[function(t,n,r){var e=t(33),i=t(61);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},{33:33,61:61}],168:[function(t,n,r){var e=t(33);e(e.S,"Math",{fround:t(62)})},{33:33,62:62}],169:[function(t,n,r){var e=t(33),i=Math.abs;e(e.S,"Math",{hypot:function hypot(t,n){for(var r,e,o=0,u=0,c=arguments.length,a=0;u<c;)r=i(arguments[u++]),a<r?(e=a/r,o=o*e*e+1,a=r):r>0?(e=r/a,o+=e*e):o+=r;return a===1/0?1/0:a*Math.sqrt(o)}})},{33:33}],170:[function(t,n,r){var e=t(33),i=Math.imul;e(e.S+e.F*t(35)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function imul(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},{33:33,35:35}],171:[function(t,n,r){var e=t(33);e(e.S,"Math",{log10:function log10(t){return Math.log(t)*Math.LOG10E}})},{33:33}],172:[function(t,n,r){var e=t(33);e(e.S,"Math",{log1p:t(63)})},{33:33,63:63}],173:[function(t,n,r){var e=t(33);e(e.S,"Math",{log2:function log2(t){return Math.log(t)/Math.LN2}})},{33:33}],174:[function(t,n,r){var e=t(33);e(e.S,"Math",{sign:t(65)})},{33:33,65:65}],175:[function(t,n,r){var e=t(33),i=t(61),o=Math.exp;e(e.S+e.F*t(35)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function sinh(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{33:33,35:35,61:61}],176:[function(t,n,r){var e=t(33),i=t(61),o=Math.exp;e(e.S,"Math",{tanh:function tanh(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},{33:33,61:61}],177:[function(t,n,r){var e=t(33);e(e.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{33:33}],178:[function(t,n,r){"use strict";var e=t(40),i=t(41),o=t(18),u=t(45),c=t(120),a=t(35),f=t(77).f,s=t(75).f,l=t(72).f,h=t(111).trim,v=e.Number,p=v,d=v.prototype,y="Number"==o(t(71)(d)),g="trim"in String.prototype,m=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;f<s;f++)if((u=a.charCodeAt(f))<48||u>i)return NaN;return parseInt(a,e)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function Number(t){var n=arguments.length<1?0:t,r=this;return r instanceof v&&(y?a(function(){d.valueOf.call(r)}):"Number"!=o(r))?u(new p(m(n)),r,v):m(n)};for(var b,x=t(29)?f(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;x.length>S;S++)i(p,b=x[S])&&!i(v,b)&&l(v,b,s(p,b));v.prototype=d,d.constructor=v,t(94)(e,"Number",v)}},{111:111,120:120,18:18,29:29,35:35,40:40,41:41,45:45,71:71,72:72,75:75,77:77,94:94}],179:[function(t,n,r){var e=t(33);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},{33:33}],180:[function(t,n,r){var e=t(33),i=t(40).isFinite;e(e.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&i(t)}})},{33:33,40:40}],181:[function(t,n,r){var e=t(33);e(e.S,"Number",{isInteger:t(50)})},{33:33,50:50}],182:[function(t,n,r){var e=t(33);e(e.S,"Number",{isNaN:function isNaN(t){return t!=t}})},{33:33}],183:[function(t,n,r){var e=t(33),i=t(50),o=Math.abs;e(e.S,"Number",{isSafeInteger:function isSafeInteger(t){return i(t)&&o(t)<=9007199254740991}})},{33:33,50:50}],184:[function(t,n,r){var e=t(33);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{33:33}],185:[function(t,n,r){var e=t(33);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{33:33}],186:[function(t,n,r){var e=t(33),i=t(86);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},{33:33,86:86}],187:[function(t,n,r){var e=t(33),i=t(87);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},{33:33,87:87}],188:[function(t,n,r){"use strict";var e=t(33),i=t(116),o=t(4),u=t(110),c=1..toFixed,a=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*f[r],f[r]=e%1e7,e=a(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=f[n],f[n]=a(r/t),r=r%t*1e7},v=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var r=String(f[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},p=function(t,n,r){return 0===n?r:n%2==1?p(t,n-1,r*t):p(t*t,n/2,r)},d=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!t(35)(function(){c.call({})})),"Number",{toFixed:function toFixed(t){var n,r,e,c,a=o(this,s),f=i(t),y="",g="0";if(f<0||f>20)throw RangeError(s);if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(y="-",a=-a),a>1e-21)if(n=d(a*p(2,69,1))-69,r=n<0?a*p(2,-n,1):a/p(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=f;e>=7;)l(1e7,0),e-=7;for(l(p(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<<e),l(1,1),h(2),g=v()}else l(0,r),l(1<<-n,0),g=v()+u.call("0",f);return f>0?(c=g.length,g=y+(c<=f?"0."+u.call("0",f-c)+g:g.slice(0,c-f)+"."+g.slice(c-f))):g=y+g,g}})},{110:110,116:116,33:33,35:35,4:4}],189:[function(t,n,r){"use strict";var e=t(33),i=t(35),o=t(4),u=1..toPrecision;e(e.P+e.F*(i(function(){return"1"!==u.call(1,void 0)})||!i(function(){u.call({})})),"Number",{toPrecision:function toPrecision(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},{33:33,35:35,4:4}],190:[function(t,n,r){var e=t(33);e(e.S+e.F,"Object",{assign:t(70)})},{33:33,70:70}],191:[function(t,n,r){var e=t(33);e(e.S,"Object",{create:t(71)})},{33:33,71:71}],192:[function(t,n,r){var e=t(33);e(e.S+e.F*!t(29),"Object",{defineProperties:t(73)})},{29:29,33:33,73:73}],193:[function(t,n,r){var e=t(33);e(e.S+e.F*!t(29),"Object",{defineProperty:t(72).f})},{29:29,33:33,72:72}],194:[function(t,n,r){var e=t(51),i=t(66).onFreeze;t(83)("freeze",function(t){return function freeze(n){return t&&e(n)?t(i(n)):n}})},{51:51,66:66,83:83}],195:[function(t,n,r){var e=t(117),i=t(75).f;t(83)("getOwnPropertyDescriptor",function(){return function getOwnPropertyDescriptor(t,n){return i(e(t),n)}})},{117:117,75:75,83:83}],196:[function(t,n,r){t(83)("getOwnPropertyNames",function(){return t(76).f})},{76:76,83:83}],197:[function(t,n,r){var e=t(119),i=t(79);t(83)("getPrototypeOf",function(){return function getPrototypeOf(t){return i(e(t))}})},{119:119,79:79,83:83}],198:[function(t,n,r){var e=t(51);t(83)("isExtensible",function(t){return function isExtensible(n){return!!e(n)&&(!t||t(n))}})},{51:51,83:83}],199:[function(t,n,r){var e=t(51);t(83)("isFrozen",function(t){return function isFrozen(n){return!e(n)||!!t&&t(n)}})},{51:51,83:83}],200:[function(t,n,r){var e=t(51);t(83)("isSealed",function(t){return function isSealed(n){return!e(n)||!!t&&t(n)}})},{51:51,83:83}],201:[function(t,n,r){var e=t(33);e(e.S,"Object",{is:t(96)})},{33:33,96:96}],202:[function(t,n,r){var e=t(119),i=t(81);t(83)("keys",function(){return function keys(t){return i(e(t))}})},{119:119,81:81,83:83}],203:[function(t,n,r){var e=t(51),i=t(66).onFreeze;t(83)("preventExtensions",function(t){return function preventExtensions(n){return t&&e(n)?t(i(n)):n}})},{51:51,66:66,83:83}],204:[function(t,n,r){var e=t(51),i=t(66).onFreeze;t(83)("seal",function(t){return function seal(n){return t&&e(n)?t(i(n)):n}})},{51:51,66:66,83:83}],205:[function(t,n,r){var e=t(33);e(e.S,"Object",{setPrototypeOf:t(99).set})},{33:33,99:99}],206:[function(t,n,r){"use strict";var e=t(17),i={};i[t(128)("toStringTag")]="z",i+""!="[object z]"&&t(94)(Object.prototype,"toString",function toString(){return"[object "+e(this)+"]"},!0)},{128:128,17:17,94:94}],207:[function(t,n,r){var e=t(33),i=t(86);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},{33:33,86:86}],208:[function(t,n,r){var e=t(33),i=t(87);e(e.G+e.F*(parseInt!=i),{parseInt:i})},{33:33,87:87}],209:[function(t,n,r){"use strict";var e,i,o,u,c=t(60),a=t(40),f=t(25),s=t(17),l=t(33),h=t(51),v=t(3),p=t(6),d=t(39),y=t(104),g=t(113).set,m=t(68)(),b=t(69),x=t(90),S=t(91),w=a.TypeError,_=a.process,E=a.Promise,O="process"==s(_),P=function(){},M=i=b.f,F=!!function(){try{var n=E.resolve(1),r=(n.constructor={})[t(128)("species")]=function(t){t(P,P)};return(O||"function"==typeof PromiseRejectionEvent)&&n.then(P)instanceof r}catch(t){}}(),I=c?function(t,n){return t===n||t===E&&n===u}:function(t,n){return t===n},A=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},k=function(t,n){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var e=t._v,i=1==t._s,o=0;r.length>o;)!function(n){var r,o,u=i?n.ok:n.fail,c=n.resolve,a=n.reject,f=n.domain;try{u?(i||(2==t._h&&T(t),t._h=1),!0===u?r=e:(f&&f.enter(),r=u(e),f&&f.exit()),r===n.promise?a(w("Promise-chain cycle")):(o=A(r))?o.call(r,c,a):c(r)):a(e)}catch(t){a(t)}}(r[o++]);t._c=[],t._n=!1,n&&!t._h&&N(t)})}},N=function(t){g.call(a,function(){var n,r,e,i=t._v,o=j(t);if(o&&(n=x(function(){O?_.emit("unhandledRejection",i,t):(r=a.onunhandledrejection)?r({promise:t,reason:i}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",i)}),t._h=O||j(t)?2:1),t._a=void 0,o&&n.e)throw n.v})},j=function(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,e=0;r.length>e;)if(n=r[e++],n.fail||!j(n.promise))return!1;return!0},T=function(t){g.call(a,function(){var n;O?_.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),k(n,!0))},L=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw w("Promise can't be resolved itself");(n=A(t))?m(function(){var e={_w:r,_d:!1};try{n.call(t,f(L,e,1),f(R,e,1))}catch(t){R.call(e,t)}}):(r._v=t,r._s=1,k(r,!1))}catch(t){R.call({_w:r,_d:!1},t)}}};F||(E=function Promise(t){p(this,E,"Promise","_h"),v(t),e.call(this);try{t(f(L,this,1),f(R,this,1))}catch(t){R.call(this,t)}},e=function Promise(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=t(93)(E.prototype,{then:function then(t,n){var r=M(y(this,E));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=O?_.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&k(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=f(L,t,1),this.reject=f(R,t,1)},b.f=M=function(t){return I(E,t)?new o(t):i(t)}),l(l.G+l.W+l.F*!F,{Promise:E}),t(101)(E,"Promise"),t(100)("Promise"),u=t(23).Promise,l(l.S+l.F*!F,"Promise",{reject:function reject(t){var n=M(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!F),"Promise",{resolve:function resolve(t){return t instanceof E&&I(t.constructor,this)?t:S(this,t)}}),l(l.S+l.F*!(F&&t(56)(function(t){E.all(t).catch(P)})),"Promise",{all:function all(t){var n=this,r=M(n),e=r.resolve,i=r.reject,o=x(function(){var r=[],o=0,u=1;d(t,!1,function(t){var c=o++,a=!1;r.push(void 0),u++,n.resolve(t).then(function(t){a||(a=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o.e&&i(o.v),r.promise},race:function race(t){var n=this,r=M(n),e=r.reject,i=x(function(){d(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i.e&&e(i.v),r.promise}})},{100:100,101:101,104:104,113:113,128:128,17:17,23:23,25:25,
3:3,33:33,39:39,40:40,51:51,56:56,6:6,60:60,68:68,69:69,90:90,91:91,93:93}],210:[function(t,n,r){var e=t(33),i=t(3),o=t(7),u=(t(40).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!t(35)(function(){u(function(){})}),"Reflect",{apply:function apply(t,n,r){var e=i(t),a=o(r);return u?u(e,n,a):c.call(e,n,a)}})},{3:3,33:33,35:35,40:40,7:7}],211:[function(t,n,r){var e=t(33),i=t(71),o=t(3),u=t(7),c=t(51),a=t(35),f=t(16),s=(t(40).Reflect||{}).construct,l=a(function(){function F(){}return!(s(function(){},[],F)instanceof F)}),h=!a(function(){s(function(){})});e(e.S+e.F*(l||h),"Reflect",{construct:function construct(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,v=i(c(a)?a:Object.prototype),p=Function.apply.call(t,v,n);return c(p)?p:v}})},{16:16,3:3,33:33,35:35,40:40,51:51,7:7,71:71}],212:[function(t,n,r){var e=t(72),i=t(33),o=t(7),u=t(120);i(i.S+i.F*t(35)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function defineProperty(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},{120:120,33:33,35:35,7:7,72:72}],213:[function(t,n,r){var e=t(33),i=t(75).f,o=t(7);e(e.S,"Reflect",{deleteProperty:function deleteProperty(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},{33:33,7:7,75:75}],214:[function(t,n,r){"use strict";var e=t(33),i=t(7),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};t(54)(o,"Object",function(){var t,n=this,r=n._k;do{if(n._i>=r.length)return{value:void 0,done:!0}}while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function enumerate(t){return new o(t)}})},{33:33,54:54,7:7}],215:[function(t,n,r){var e=t(75),i=t(33),o=t(7);i(i.S,"Reflect",{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(t,n){return e.f(o(t),n)}})},{33:33,7:7,75:75}],216:[function(t,n,r){var e=t(33),i=t(79),o=t(7);e(e.S,"Reflect",{getPrototypeOf:function getPrototypeOf(t){return i(o(t))}})},{33:33,7:7,79:79}],217:[function(t,n,r){function get(t,n){var r,u,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=e.f(t,n))?o(r,"value")?r.value:void 0!==r.get?r.get.call(f):void 0:c(u=i(t))?get(u,n,f):void 0}var e=t(75),i=t(79),o=t(41),u=t(33),c=t(51),a=t(7);u(u.S,"Reflect",{get:get})},{33:33,41:41,51:51,7:7,75:75,79:79}],218:[function(t,n,r){var e=t(33);e(e.S,"Reflect",{has:function has(t,n){return n in t}})},{33:33}],219:[function(t,n,r){var e=t(33),i=t(7),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function isExtensible(t){return i(t),!o||o(t)}})},{33:33,7:7}],220:[function(t,n,r){var e=t(33);e(e.S,"Reflect",{ownKeys:t(85)})},{33:33,85:85}],221:[function(t,n,r){var e=t(33),i=t(7),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function preventExtensions(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},{33:33,7:7}],222:[function(t,n,r){var e=t(33),i=t(99);i&&e(e.S,"Reflect",{setPrototypeOf:function setPrototypeOf(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},{33:33,99:99}],223:[function(t,n,r){function set(t,n,r){var c,l,h=arguments.length<4?t:arguments[3],v=i.f(f(t),n);if(!v){if(s(l=o(t)))return set(l,n,r,h);v=a(0)}return u(v,"value")?!(!1===v.writable||!s(h))&&(c=i.f(h,n)||a(0),c.value=r,e.f(h,n,c),!0):void 0!==v.set&&(v.set.call(h,r),!0)}var e=t(72),i=t(75),o=t(79),u=t(41),c=t(33),a=t(92),f=t(7),s=t(51);c(c.S,"Reflect",{set:set})},{33:33,41:41,51:51,7:7,72:72,75:75,79:79,92:92}],224:[function(t,n,r){var e=t(40),i=t(45),o=t(72).f,u=t(77).f,c=t(52),a=t(37),f=e.RegExp,s=f,l=f.prototype,h=/a/g,v=/a/g,p=new f(h)!==h;if(t(29)&&(!p||t(35)(function(){return v[t(128)("match")]=!1,f(h)!=h||f(v)==v||"/a/i"!=f(h,"i")}))){f=function RegExp(t,n){var r=this instanceof f,e=c(t),o=void 0===n;return!r&&e&&t.constructor===f&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof f)?t.source:t,e&&o?a.call(t):n),r?this:l,f)};for(var d=u(s),y=0;d.length>y;)!function(t){t in f||o(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}(d[y++]);l.constructor=f,f.prototype=l,t(94)(e,"RegExp",f)}t(100)("RegExp")},{100:100,128:128,29:29,35:35,37:37,40:40,45:45,52:52,72:72,77:77,94:94}],225:[function(t,n,r){t(29)&&"g"!=/./g.flags&&t(72).f(RegExp.prototype,"flags",{configurable:!0,get:t(37)})},{29:29,37:37,72:72}],226:[function(t,n,r){t(36)("match",1,function(t,n,r){return[function match(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{36:36}],227:[function(t,n,r){t(36)("replace",2,function(t,n,r){return[function replace(e,i){"use strict";var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},{36:36}],228:[function(t,n,r){t(36)("search",1,function(t,n,r){return[function search(r){"use strict";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{36:36}],229:[function(t,n,r){t(36)("split",2,function(n,r,e){"use strict";var i=t(52),o=e,u=[].push,c="length";if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[c]||2!="ab".split(/(?:ab)*/)[c]||4!=".".split(/(.?)(.?)/)[c]||".".split(/()()/)[c]>1||"".split(/.?/)[c]){var a=void 0===/()??/.exec("")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,f,s,l,h,v=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,y=void 0===n?4294967295:n>>>0,g=new RegExp(t.source,p+"g");for(a||(e=new RegExp("^"+g.source+"$(?!\\s)",p));(f=g.exec(r))&&!((s=f.index+f[0][c])>d&&(v.push(r.slice(d,f.index)),!a&&f[c]>1&&f[0].replace(e,function(){for(h=1;h<arguments[c]-2;h++)void 0===arguments[h]&&(f[h]=void 0)}),f[c]>1&&f.index<r[c]&&u.apply(v,f.slice(1)),l=f[0][c],d=s,v[c]>=y));)g.lastIndex===f.index&&g.lastIndex++;return d===r[c]?!l&&g.test("")||v.push(""):v.push(r.slice(d)),v[c]>y?v.slice(0,y):v}}else"0".split(void 0,0)[c]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function split(t,i){var o=n(this),u=void 0==t?void 0:t[r];return void 0!==u?u.call(t,o,i):e.call(String(o),t,i)},e]})},{36:36,52:52}],230:[function(t,n,r){"use strict";t(225);var e=t(7),i=t(37),o=t(29),u=/./.toString,c=function(n){t(94)(RegExp.prototype,"toString",n,!0)};t(35)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?c(function toString(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=u.name&&c(function toString(){return u.call(this)})},{225:225,29:29,35:35,37:37,7:7,94:94}],231:[function(t,n,r){"use strict";var e=t(19),i=t(125);n.exports=t(22)("Set",function(t){return function Set(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},{125:125,19:19,22:22}],232:[function(t,n,r){"use strict";t(108)("anchor",function(t){return function anchor(n){return t(this,"a","name",n)}})},{108:108}],233:[function(t,n,r){"use strict";t(108)("big",function(t){return function big(){return t(this,"big","","")}})},{108:108}],234:[function(t,n,r){"use strict";t(108)("blink",function(t){return function blink(){return t(this,"blink","","")}})},{108:108}],235:[function(t,n,r){"use strict";t(108)("bold",function(t){return function bold(){return t(this,"b","","")}})},{108:108}],236:[function(t,n,r){"use strict";var e=t(33),i=t(106)(!1);e(e.P,"String",{codePointAt:function codePointAt(t){return i(this,t)}})},{106:106,33:33}],237:[function(t,n,r){"use strict";var e=t(33),i=t(118),o=t(107),u="".endsWith;e(e.P+e.F*t(34)("endsWith"),"String",{endsWith:function endsWith(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},{107:107,118:118,33:33,34:34}],238:[function(t,n,r){"use strict";t(108)("fixed",function(t){return function fixed(){return t(this,"tt","","")}})},{108:108}],239:[function(t,n,r){"use strict";t(108)("fontcolor",function(t){return function fontcolor(n){return t(this,"font","color",n)}})},{108:108}],240:[function(t,n,r){"use strict";t(108)("fontsize",function(t){return function fontsize(n){return t(this,"font","size",n)}})},{108:108}],241:[function(t,n,r){var e=t(33),i=t(114),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function fromCodePoint(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},{114:114,33:33}],242:[function(t,n,r){"use strict";var e=t(33),i=t(107);e(e.P+e.F*t(34)("includes"),"String",{includes:function includes(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},{107:107,33:33,34:34}],243:[function(t,n,r){"use strict";t(108)("italics",function(t){return function italics(){return t(this,"i","","")}})},{108:108}],244:[function(t,n,r){"use strict";var e=t(106)(!0);t(55)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},{106:106,55:55}],245:[function(t,n,r){"use strict";t(108)("link",function(t){return function link(n){return t(this,"a","href",n)}})},{108:108}],246:[function(t,n,r){var e=t(33),i=t(117),o=t(118);e(e.S,"String",{raw:function raw(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},{117:117,118:118,33:33}],247:[function(t,n,r){var e=t(33);e(e.P,"String",{repeat:t(110)})},{110:110,33:33}],248:[function(t,n,r){"use strict";t(108)("small",function(t){return function small(){return t(this,"small","","")}})},{108:108}],249:[function(t,n,r){"use strict";var e=t(33),i=t(118),o=t(107),u="".startsWith;e(e.P+e.F*t(34)("startsWith"),"String",{startsWith:function startsWith(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},{107:107,118:118,33:33,34:34}],250:[function(t,n,r){"use strict";t(108)("strike",function(t){return function strike(){return t(this,"strike","","")}})},{108:108}],251:[function(t,n,r){"use strict";t(108)("sub",function(t){return function sub(){return t(this,"sub","","")}})},{108:108}],252:[function(t,n,r){"use strict";t(108)("sup",function(t){return function sup(){return t(this,"sup","","")}})},{108:108}],253:[function(t,n,r){"use strict";t(111)("trim",function(t){return function trim(){return t(this,3)}})},{111:111}],254:[function(t,n,r){"use strict";var e=t(40),i=t(41),o=t(29),u=t(33),c=t(94),a=t(66).KEY,f=t(35),s=t(103),l=t(101),h=t(124),v=t(128),p=t(127),d=t(126),y=t(59),g=t(32),m=t(49),b=t(7),x=t(117),S=t(120),w=t(92),_=t(71),E=t(76),O=t(75),P=t(72),M=t(81),F=O.f,I=P.f,A=E.f,k=e.Symbol,N=e.JSON,j=N&&N.stringify,T=v("_hidden"),R=v("toPrimitive"),L={}.propertyIsEnumerable,G=s("symbol-registry"),D=s("symbols"),C=s("op-symbols"),W=Object.prototype,U="function"==typeof k,B=e.QObject,V=!B||!B.prototype||!B.prototype.findChild,z=o&&f(function(){return 7!=_(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=F(W,n);e&&delete W[n],I(t,n,r),e&&t!==W&&I(W,n,e)}:I,q=function(t){var n=D[t]=_(k.prototype);return n._k=t,n},K=U&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},Y=function defineProperty(t,n,r){return t===W&&Y(C,n,r),b(t),n=S(n,!0),b(r),i(D,n)?(r.enumerable?(i(t,T)&&t[T][n]&&(t[T][n]=!1),r=_(r,{enumerable:w(0,!1)})):(i(t,T)||I(t,T,w(1,{})),t[T][n]=!0),z(t,n,r)):I(t,n,r)},J=function defineProperties(t,n){b(t);for(var r,e=g(n=x(n)),i=0,o=e.length;o>i;)Y(t,r=e[i++],n[r]);return t},H=function create(t,n){return void 0===n?_(t):J(_(t),n)},X=function propertyIsEnumerable(t){var n=L.call(this,t=S(t,!0));return!(this===W&&i(D,t)&&!i(C,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,T)&&this[T][t])||n)},$=function getOwnPropertyDescriptor(t,n){if(t=x(t),n=S(n,!0),t!==W||!i(D,n)||i(C,n)){var r=F(t,n);return!r||!i(D,n)||i(t,T)&&t[T][n]||(r.enumerable=!0),r}},Z=function getOwnPropertyNames(t){for(var n,r=A(x(t)),e=[],o=0;r.length>o;)i(D,n=r[o++])||n==T||n==a||e.push(n);return e},Q=function getOwnPropertySymbols(t){for(var n,r=t===W,e=A(r?C:x(t)),o=[],u=0;e.length>u;)!i(D,n=e[u++])||r&&!i(W,n)||o.push(D[n]);return o};U||(k=function Symbol(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===W&&n.call(C,r),i(this,T)&&i(this[T],t)&&(this[T][t]=!1),z(this,t,w(1,r))};return o&&V&&z(W,t,{configurable:!0,set:n}),q(t)},c(k.prototype,"toString",function toString(){return this._k}),O.f=$,P.f=Y,t(77).f=E.f=Z,t(82).f=X,t(78).f=Q,o&&!t(60)&&c(W,"propertyIsEnumerable",X,!0),p.f=function(t){return q(v(t))}),u(u.G+u.W+u.F*!U,{Symbol:k});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)v(tt[nt++]);for(var rt=M(v.store),et=0;rt.length>et;)d(rt[et++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return i(G,t+="")?G[t]:G[t]=k(t)},keyFor:function keyFor(t){if(K(t))return y(G,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!U,"Object",{create:H,defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),N&&u(u.S+u.F*(!U||f(function(){var t=k();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function stringify(t){if(void 0!==t&&!K(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return n=e[1],"function"==typeof n&&(r=n),!r&&m(n)||(n=function(t,n){if(r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,j.apply(N,e)}}}),k.prototype[R]||t(42)(k.prototype,R,k.prototype.valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},{101:101,103:103,117:117,120:120,124:124,126:126,127:127,128:128,29:29,32:32,33:33,35:35,40:40,41:41,42:42,49:49,59:59,60:60,66:66,7:7,71:71,72:72,75:75,76:76,77:77,78:78,81:81,82:82,92:92,94:94}],255:[function(t,n,r){"use strict";var e=t(33),i=t(123),o=t(122),u=t(7),c=t(114),a=t(118),f=t(51),s=t(40).ArrayBuffer,l=t(104),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,d=h.prototype.slice,y=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function isView(t){return p&&p(t)||f(t)&&y in t}}),e(e.P+e.U+e.F*t(35)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function slice(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(a(i-e)),f=new v(this),s=new v(o),p=0;e<i;)s.setUint8(p++,f.getUint8(e++));return o}}),t(100)("ArrayBuffer")},{100:100,104:104,114:114,118:118,122:122,123:123,33:33,35:35,40:40,51:51,7:7}],256:[function(t,n,r){var e=t(33);e(e.G+e.W+e.F*!t(123).ABV,{DataView:t(122).DataView})},{122:122,123:123,33:33}],257:[function(t,n,r){t(121)("Float32",4,function(t){return function Float32Array(n,r,e){return t(this,n,r,e)}})},{121:121}],258:[function(t,n,r){t(121)("Float64",8,function(t){return function Float64Array(n,r,e){return t(this,n,r,e)}})},{121:121}],259:[function(t,n,r){t(121)("Int16",2,function(t){return function Int16Array(n,r,e){return t(this,n,r,e)}})},{121:121}],260:[function(t,n,r){t(121)("Int32",4,function(t){return function Int32Array(n,r,e){return t(this,n,r,e)}})},{121:121}],261:[function(t,n,r){t(121)("Int8",1,function(t){return function Int8Array(n,r,e){return t(this,n,r,e)}})},{121:121}],262:[function(t,n,r){t(121)("Uint16",2,function(t){return function Uint16Array(n,r,e){return t(this,n,r,e)}})},{121:121}],263:[function(t,n,r){t(121)("Uint32",4,function(t){return function Uint32Array(n,r,e){return t(this,n,r,e)}})},{121:121}],264:[function(t,n,r){t(121)("Uint8",1,function(t){return function Uint8Array(n,r,e){return t(this,n,r,e)}})},{121:121}],265:[function(t,n,r){t(121)("Uint8",1,function(t){return function Uint8ClampedArray(n,r,e){return t(this,n,r,e)}},!0)},{121:121}],266:[function(t,n,r){"use strict";var e,i=t(12)(0),o=t(94),u=t(66),c=t(70),a=t(21),f=t(51),s=t(35),l=t(125),h=u.getWeak,v=Object.isExtensible,p=a.ufstore,d={},y=function(t){return function WeakMap(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function get(t){if(f(t)){var n=h(t);return!0===n?p(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function set(t,n){return a.def(l(this,"WeakMap"),t,n)}},m=n.exports=t(22)("WeakMap",y,g,a,!0,!0);s(function(){return 7!=(new m).set((Object.freeze||Object)(d),7).get(d)})&&(e=a.getConstructor(y,"WeakMap"),c(e.prototype,g),u.NEED=!0,i(["delete","has","get","set"],function(t){var n=m.prototype,r=n[t];o(n,t,function(n,i){if(f(n)&&!v(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)})}))},{12:12,125:125,21:21,22:22,35:35,51:51,66:66,70:70,94:94}],267:[function(t,n,r){"use strict";var e=t(21),i=t(125);t(22)("WeakSet",function(t){return function WeakSet(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},{125:125,21:21,22:22}],268:[function(t,n,r){"use strict";var e=t(33),i=t(38),o=t(119),u=t(118),c=t(3),a=t(15);e(e.P,"Array",{flatMap:function flatMap(t){var n,r,e=o(this);return c(t),n=u(e.length),r=a(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),t(5)("flatMap")},{118:118,119:119,15:15,3:3,33:33,38:38,5:5}],269:[function(t,n,r){"use strict";var e=t(33),i=t(38),o=t(119),u=t(118),c=t(116),a=t(15);e(e.P,"Array",{flatten:function flatten(){var t=arguments[0],n=o(this),r=u(n.length),e=a(n,0);return i(e,n,n,r,0,void 0===t?1:c(t)),e}}),t(5)("flatten")},{116:116,118:118,119:119,15:15,33:33,38:38,5:5}],270:[function(t,n,r){"use strict";var e=t(33),i=t(11)(!0);e(e.P,"Array",{includes:function includes(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(5)("includes")},{11:11,33:33,5:5}],271:[function(t,n,r){var e=t(33),i=t(68)(),o=t(40).process,u="process"==t(18)(o);e(e.G,{asap:function asap(t){var n=u&&o.domain;i(n?n.bind(t):t)}})},{18:18,33:33,40:40,68:68}],272:[function(t,n,r){var e=t(33),i=t(18);e(e.S,"Error",{isError:function isError(t){return"Error"===i(t)}})},{18:18,33:33}],273:[function(t,n,r){var e=t(33);e(e.G,{global:t(40)})},{33:33,40:40}],274:[function(t,n,r){t(97)("Map")},{97:97}],275:[function(t,n,r){t(98)("Map")},{98:98}],276:[function(t,n,r){var e=t(33);e(e.P+e.R,"Map",{toJSON:t(20)("Map")})},{20:20,33:33}],277:[function(t,n,r){var e=t(33);e(e.S,"Math",{clamp:function clamp(t,n,r){return Math.min(r,Math.max(n,t))}})},{33:33}],278:[function(t,n,r){var e=t(33);e(e.S,"Math",{DEG_PER_RAD:Math.PI/180})},{33:33}],279:[function(t,n,r){var e=t(33),i=180/Math.PI;e(e.S,"Math",{degrees:function degrees(t){return t*i}})},{33:33}],280:[function(t,n,r){var e=t(33),i=t(64),o=t(62);e(e.S,"Math",{fscale:function fscale(t,n,r,e,u){return o(i(t,n,r,e,u))}})},{33:33,62:62,64:64}],281:[function(t,n,r){var e=t(33);e(e.S,"Math",{iaddh:function iaddh(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o+(e>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},{33:33}],282:[function(t,n,r){var e=t(33);e(e.S,"Math",{imulh:function imulh(t,n){var r=+t,e=+n,i=65535&r,o=65535&e,u=r>>16,c=e>>16,a=(u*o>>>0)+(i*o>>>16);return u*c+(a>>16)+((i*c>>>0)+(65535&a)>>16)}})},{33:33}],283:[function(t,n,r){var e=t(33);e(e.S,"Math",{isubh:function isubh(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o-(e>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},{33:33}],284:[function(t,n,r){var e=t(33);e(e.S,"Math",{RAD_PER_DEG:180/Math.PI})},{33:33}],285:[function(t,n,r){var e=t(33),i=Math.PI/180;e(e.S,"Math",{radians:function radians(t){return t*i}})},{33:33}],286:[function(t,n,r){var e=t(33);e(e.S,"Math",{scale:t(64)})},{33:33,64:64}],287:[function(t,n,r){var e=t(33);e(e.S,"Math",{signbit:function signbit(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},{33:33}],288:[function(t,n,r){var e=t(33);e(e.S,"Math",{umulh:function umulh(t,n){var r=+t,e=+n,i=65535&r,o=65535&e,u=r>>>16,c=e>>>16,a=(u*o>>>0)+(i*o>>>16);return u*c+(a>>>16)+((i*c>>>0)+(65535&a)>>>16)}})},{33:33}],289:[function(t,n,r){"use strict";var e=t(33),i=t(119),o=t(3),u=t(72);t(29)&&e(e.P+t(74),"Object",{__defineGetter__:function __defineGetter__(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},{119:119,29:29,3:3,33:33,72:72,74:74}],290:[function(t,n,r){"use strict";var e=t(33),i=t(119),o=t(3),u=t(72);t(29)&&e(e.P+t(74),"Object",{__defineSetter__:function __defineSetter__(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},{119:119,29:29,3:3,33:33,72:72,74:74}],291:[function(t,n,r){var e=t(33),i=t(84)(!0);e(e.S,"Object",{entries:function entries(t){return i(t)}})},{33:33,84:84}],292:[function(t,n,r){var e=t(33),i=t(85),o=t(117),u=t(75),c=t(24);e(e.S,"Object",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(t){for(var n,r,e=o(t),a=u.f,f=i(e),s={},l=0;f.length>l;)void 0!==(r=a(e,n=f[l++]))&&c(s,n,r);return s}})},{117:117,24:24,33:33,75:75,85:85}],293:[function(t,n,r){"use strict";var e=t(33),i=t(119),o=t(120),u=t(79),c=t(75).f;t(29)&&e(e.P+t(74),"Object",{__lookupGetter__:function __lookupGetter__(t){var n,r=i(this),e=o(t,!0);do{if(n=c(r,e))return n.get}while(r=u(r))}})},{119:119,120:120,29:29,33:33,74:74,75:75,79:79}],294:[function(t,n,r){"use strict";var e=t(33),i=t(119),o=t(120),u=t(79),c=t(75).f;t(29)&&e(e.P+t(74),"Object",{__lookupSetter__:function __lookupSetter__(t){var n,r=i(this),e=o(t,!0);do{if(n=c(r,e))return n.set}while(r=u(r))}})},{119:119,120:120,29:29,33:33,74:74,75:75,79:79}],295:[function(t,n,r){var e=t(33),i=t(84)(!1);e(e.S,"Object",{values:function values(t){return i(t)}})},{33:33,84:84}],296:[function(t,n,r){"use strict";var e=t(33),i=t(40),o=t(23),u=t(68)(),c=t(128)("observable"),a=t(3),f=t(7),s=t(6),l=t(93),h=t(42),v=t(39),p=v.RETURN,d=function(t){return null==t?void 0:a(t)},y=function(t){var n=t._c;n&&(t._c=void 0,n())},g=function(t){return void 0===t._o},m=function(t){g(t)||(t._o=void 0,y(t))},b=function(t,n){f(t),this._c=void 0,this._o=t,t=new x(this);try{var r=n(t),e=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){e.unsubscribe()}:a(r),this._c=r)}catch(n){return void t.error(n)}g(this)&&y(this)};b.prototype=l({},{unsubscribe:function unsubscribe(){m(this)}});var x=function(t){this._s=t};x.prototype=l({},{next:function next(t){var n=this._s;if(!g(n)){var r=n._o;try{var e=d(r.next);if(e)return e.call(r,t)}catch(t){try{m(n)}finally{throw t}}}},error:function error(t){var n=this._s;if(g(n))throw t;var r=n._o;n._o=void 0;try{var e=d(r.error);if(!e)throw t;t=e.call(r,t)}catch(t){try{y(n)}finally{throw t}}return y(n),t},complete:function complete(t){var n=this._s;if(!g(n)){var r=n._o;n._o=void 0;try{var e=d(r.complete);t=e?e.call(r,t):void 0}catch(t){try{y(n)}finally{throw t}}return y(n),t}}});var S=function Observable(t){s(this,S,"Observable","_f")._f=a(t)};l(S.prototype,{subscribe:function subscribe(t){return new b(t,this._f)},forEach:function forEach(t){var n=this;return new(o.Promise||i.Promise)(function(r,e){a(t);var i=n.subscribe({next:function(n){try{return t(n)}catch(t){e(t),i.unsubscribe()}},error:e,complete:r})})}}),l(S,{from:function from(t){var n="function"==typeof this?this:S,r=d(f(t)[c]);if(r){var e=f(r.call(t));return e.constructor===n?e:new n(function(t){return e.subscribe(t)})}return new n(function(n){var r=!1;return u(function(){if(!r){try{if(v(t,!1,function(t){if(n.next(t),r)return p})===p)return}catch(t){if(r)throw t;return void n.error(t)}n.complete()}}),function(){r=!0}})},of:function of(){for(var t=0,n=arguments.length,r=Array(n);t<n;)r[t]=arguments[t++];return new("function"==typeof this?this:S)(function(t){var n=!1;return u(function(){if(!n){for(var e=0;e<r.length;++e)if(t.next(r[e]),n)return;t.complete()}}),function(){n=!0}})}}),h(S.prototype,c,function(){return this}),e(e.G,{Observable:S}),t(100)("Observable")},{100:100,128:128,23:23,3:3,33:33,39:39,40:40,42:42,6:6,68:68,7:7,93:93}],297:[function(t,n,r){"use strict";var e=t(33),i=t(23),o=t(40),u=t(104),c=t(91);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then(function(){return r})}:t,r?function(r){return c(n,t()).then(function(){throw r})}:t)}})},{104:104,23:23,33:33,40:40,91:91}],298:[function(t,n,r){"use strict";var e=t(33),i=t(69),o=t(90);e(e.S,"Promise",{try:function(t){var n=i.f(this),r=o(t);return(r.e?n.reject:n.resolve)(r.v),n.promise}})},{33:33,69:69,90:90}],299:[function(t,n,r){var e=t(67),i=t(7),o=e.key,u=e.set;e.exp({defineMetadata:function defineMetadata(t,n,r,e){u(t,n,i(r),o(e))}})},{67:67,7:7}],300:[function(t,n,r){var e=t(67),i=t(7),o=e.key,u=e.map,c=e.store;e.exp({deleteMetadata:function deleteMetadata(t,n){var r=arguments.length<3?void 0:o(arguments[2]),e=u(i(n),r,!1);if(void 0===e||!e.delete(t))return!1;if(e.size)return!0;var a=c.get(n);return a.delete(r),!!a.size||c.delete(n)}})},{67:67,7:7}],301:[function(t,n,r){var e=t(231),i=t(10),o=t(67),u=t(7),c=t(79),a=o.keys,f=o.key,s=function(t,n){var r=a(t,n),o=c(t);if(null===o)return r;var u=s(o,n);return u.length?r.length?i(new e(r.concat(u))):u:r};o.exp({getMetadataKeys:function getMetadataKeys(t){return s(u(t),arguments.length<2?void 0:f(arguments[1]))}})},{10:10,231:231,67:67,7:7,79:79}],302:[function(t,n,r){var e=t(67),i=t(7),o=t(79),u=e.has,c=e.get,a=e.key,f=function(t,n,r){if(u(t,n,r))return c(t,n,r);var e=o(n);return null!==e?f(t,e,r):void 0};e.exp({getMetadata:function getMetadata(t,n){return f(t,i(n),arguments.length<3?void 0:a(arguments[2]))}})},{67:67,7:7,79:79}],303:[function(t,n,r){var e=t(67),i=t(7),o=e.keys,u=e.key;e.exp({getOwnMetadataKeys:function getOwnMetadataKeys(t){return o(i(t),arguments.length<2?void 0:u(arguments[1]))}})},{67:67,7:7}],304:[function(t,n,r){var e=t(67),i=t(7),o=e.get,u=e.key;e.exp({getOwnMetadata:function getOwnMetadata(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},{67:67,7:7}],305:[function(t,n,r){var e=t(67),i=t(7),o=t(79),u=e.has,c=e.key,a=function(t,n,r){if(u(t,n,r))return!0;var e=o(n);return null!==e&&a(t,e,r)};e.exp({hasMetadata:function hasMetadata(t,n){return a(t,i(n),arguments.length<3?void 0:c(arguments[2]))}})},{67:67,7:7,79:79}],306:[function(t,n,r){var e=t(67),i=t(7),o=e.has,u=e.key;e.exp({hasOwnMetadata:function hasOwnMetadata(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},{67:67,7:7}],307:[function(t,n,r){var e=t(67),i=t(7),o=t(3),u=e.key,c=e.set;e.exp({metadata:function metadata(t,n){return function decorator(r,e){c(t,n,(void 0!==e?i:o)(r),u(e))}}})},{3:3,67:67,7:7}],308:[function(t,n,r){t(97)("Set")},{97:97}],309:[function(t,n,r){t(98)("Set")},{98:98}],310:[function(t,n,r){var e=t(33);e(e.P+e.R,"Set",{toJSON:t(20)("Set")})},{20:20,33:33}],311:[function(t,n,r){"use strict";var e=t(33),i=t(106)(!0);e(e.P,"String",{at:function at(t){return i(this,t)}})},{106:106,33:33}],312:[function(t,n,r){"use strict";var e=t(33),i=t(28),o=t(118),u=t(52),c=t(37),a=RegExp.prototype,f=function(t,n){this._r=t,this._s=n};t(54)(f,"RegExp String",function next(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),e(e.P,"String",{matchAll:function matchAll(t){if(i(this),!u(t))throw TypeError(t+" is not a regexp!");var n=String(this),r="flags"in a?String(t.flags):c.call(t),e=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return e.lastIndex=o(t.lastIndex),new f(e,n)}})},{118:118,28:28,33:33,37:37,52:52,54:54}],313:[function(t,n,r){"use strict";var e=t(33),i=t(109);e(e.P,"String",{padEnd:function padEnd(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},{109:109,33:33}],314:[function(t,n,r){"use strict";var e=t(33),i=t(109);e(e.P,"String",{padStart:function padStart(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},{109:109,33:33}],315:[function(t,n,r){"use strict";t(111)("trimLeft",function(t){return function trimLeft(){return t(this,1)}},"trimStart")},{111:111}],316:[function(t,n,r){"use strict";t(111)("trimRight",function(t){return function trimRight(){return t(this,2)}},"trimEnd")},{111:111}],317:[function(t,n,r){t(126)("asyncIterator")},{126:126}],318:[function(t,n,r){t(126)("observable")},{126:126}],319:[function(t,n,r){var e=t(33);e(e.S,"System",{global:t(40)})},{33:33,40:40}],320:[function(t,n,r){t(97)("WeakMap")},{97:97}],321:[function(t,n,r){t(98)("WeakMap")},{98:98}],322:[function(t,n,r){t(97)("WeakSet")},{97:97}],323:[function(t,n,r){t(98)("WeakSet")},{98:98}],324:[function(t,n,r){for(var e=t(141),i=t(81),o=t(94),u=t(40),c=t(42),a=t(58),f=t(128),s=f("iterator"),l=f("toStringTag"),h=a.Array,v={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},p=i(v),d=0;d<p.length;d++){var y,g=p[d],m=v[g],b=u[g],x=b&&b.prototype;if(x&&(x[s]||c(x,s,h),x[l]||c(x,l,g),a[g]=h,m))for(y in e)x[y]||o(x,y,e[y],!0)}},{128:128,141:141,40:40,42:42,58:58,81:81,94:94}],325:[function(t,n,r){var e=t(33),i=t(113);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},{113:113,33:33}],326:[function(t,n,r){var e=t(40),i=t(33),o=t(46),u=t(88),c=e.navigator,a=!!c&&/MSIE .\./.test(c.userAgent),f=function(t){return a?function(n,r){return t(o(u,[].slice.call(arguments,2),"function"==typeof n?n:Function(n)),r)}:t};i(i.G+i.B+i.F*a,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},{33:33,40:40,46:46,88:88}],327:[function(t,n,r){t(254),t(191),t(193),t(192),t(195),t(197),t(202),t(196),t(194),t(204),t(203),t(199),t(200),t(198),t(190),t(201),t(205),t(206),t(157),t(159),t(158),t(208),t(207),t(178),t(188),t(189),t(179),t(180),t(181),t(182),t(183),t(184),t(185),t(186),t(187),t(161),t(162),t(163),t(164),t(165),t(166),t(167),t(168),t(169),t(170),t(171),t(172),t(173),t(174),t(175),t(176),t(177),t(241),t(246),t(253),t(244),t(236),t(237),t(242),t(247),t(249),t(232),t(233),t(234),t(235),t(238),t(239),t(240),t(243),t(245),t(248),t(250),t(251),t(252),t(152),t(154),t(153),t(156),t(155),t(140),t(138),t(145),t(142),t(148),t(150),t(137),t(144),t(134),t(149),t(132),t(147),t(146),t(139),t(143),t(131),t(133),t(136),t(135),t(151),t(141),t(224),t(230),t(225),t(226),t(227),t(228),t(229),t(209),t(160),t(231),t(266),t(267),t(255),t(256),t(261),t(264),t(265),t(259),t(262),t(260),t(263),t(257),t(258),t(210),t(211),t(212),t(213),t(214),t(217),t(215),t(216),t(218),t(219),t(220),t(221),t(223),t(222),t(270),t(268),t(269),t(311),t(314),t(313),t(315),t(316),t(312),t(317),t(318),t(292),t(295),t(291),t(289),t(290),t(293),t(294),t(276),t(310),t(275),t(309),t(321),t(323),t(274),t(308),t(320),t(322),t(273),t(319),t(272),t(277),t(278),t(279),t(280),t(281),t(283),t(282),t(284),t(285),t(286),t(288),t(287),t(297),t(298),t(299),t(300),t(302),t(301),t(304),t(303),t(305),t(306),t(307),t(271),t(296),t(326),t(325),t(324),n.exports=t(23)},{131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,145:145,146:146,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,
186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,23:23,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,264:264,265:265,266:266,267:267,268:268,269:269,270:270,271:271,272:272,273:273,274:274,275:275,276:276,277:277,278:278,279:279,280:280,281:281,282:282,283:283,284:284,285:285,286:286,287:287,288:288,289:289,290:290,291:291,292:292,293:293,294:294,295:295,296:296,297:297,298:298,299:299,300:300,301:301,302:302,303:303,304:304,305:305,306:306,307:307,308:308,309:309,310:310,311:311,312:312,313:313,314:314,315:315,316:316,317:317,318:318,319:319,320:320,321:321,322:322,323:323,324:324,325:325,326:326}],328:[function(t,n,r){(function(t){!function(t){"use strict";function wrap(t,n,r,e){var i=n&&n.prototype instanceof Generator?n:Generator,o=Object.create(i.prototype),u=new Context(e||[]);return o._invoke=makeInvokeMethod(t,r,u),o}function tryCatch(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function AsyncIterator(n){function invoke(t,r,e,o){var u=tryCatch(n[t],n,r);if("throw"!==u.type){var c=u.arg,a=c.value;return a&&"object"==typeof a&&i.call(a,"__await")?Promise.resolve(a.__await).then(function(t){invoke("next",t,e,o)},function(t){invoke("throw",t,e,o)}):Promise.resolve(a).then(function(t){c.value=t,e(c)},o)}o(u.arg)}function enqueue(t,n){function callInvokeWithMethodAndArg(){return new Promise(function(r,e){invoke(t,n,r,e)})}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}"object"==typeof t.process&&t.process.domain&&(invoke=t.process.domain.bind(invoke));var r;this._invoke=enqueue}function makeInvokeMethod(t,n,r){var e=l;return function invoke(i,o){if(e===v)throw new Error("Generator is already running");if(e===p){if("throw"===i)throw o;return doneResult()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=maybeInvokeDelegate(u,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(e===l)throw e=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e=v;var a=tryCatch(t,n,r);if("normal"===a.type){if(e=r.done?p:h,a.arg===d)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e=p,r.method="throw",r.arg=a.arg)}}}function maybeInvokeDelegate(t,n){var e=t.iterator[n.method];if(e===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=r,maybeInvokeDelegate(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=tryCatch(e,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function pushTryEntry(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function resetTryEntry(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function next(){for(;++e<t.length;)if(i.call(t,e))return next.value=t[e],next.done=!1,next;return next.value=r,next.done=!0,next};return o.next=o}}return{next:doneResult}}function doneResult(){return{value:r,done:!0}}var r,e=Object.prototype,i=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag",f="object"==typeof n,s=t.regeneratorRuntime;if(s)return void(f&&(n.exports=s));s=t.regeneratorRuntime=f?n.exports:{},s.wrap=wrap;var l="suspendedStart",h="suspendedYield",v="executing",p="completed",d={},y={};y[u]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(values([])));m&&m!==e&&i.call(m,u)&&(y=m);var b=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(y);GeneratorFunction.prototype=b.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunctionPrototype[a]=GeneratorFunction.displayName="GeneratorFunction",s.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===GeneratorFunction||"GeneratorFunction"===(n.displayName||n.name))},s.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(b),t},s.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[c]=function(){return this},s.AsyncIterator=AsyncIterator,s.async=function(t,n,r,e){var i=new AsyncIterator(wrap(t,n,r,e));return s.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},defineIteratorMethods(b),b[a]="Generator",b[u]=function(){return this},b.toString=function(){return"[object Generator]"},s.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function next(){for(;n.length;){var r=n.pop();if(r in t)return next.value=r,next.done=!1,next}return next.done=!0,next}},s.values=values,Context.prototype={constructor:Context,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(resetTryEntry),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0],n=t.completion;if("throw"===n.type)throw n.arg;return this.rval},dispatchException:function(t){function handle(e,i){return u.type="throw",u.arg=t,n.next=e,i&&(n.method="next",n.arg=r),!!i}if(this.done)throw t;for(var n=this,e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e],u=o.completion;if("root"===o.tryLoc)return handle("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),a=i.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0);if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return handle(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return handle(o.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&i.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var o=e;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;resetTryEntry(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:values(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),d}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
"use strict";function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function asyncGeneratorStep(e,t,n,r,i,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function _asyncToGenerator(a){return function(){var e=this,s=arguments;return new Promise(function(t,n){var r=a.apply(e,s);function i(e){asyncGeneratorStep(r,t,n,i,o,"next",e)}function o(e){asyncGeneratorStep(r,t,n,i,o,"throw",e)}i(void 0)})}}function _typeof(e){return(_typeof="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})(e)}!function(e,t){"object"==("undefined"==typeof module?"undefined":_typeof(module))&&"object"==_typeof(module.exports)?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:void 0,function(w,I){function M(e,t){return t.toUpperCase()}var e=[],T=w.document,u=e.slice,R=e.concat,P=e.push,q=e.indexOf,W={},B=W.toString,d=W.hasOwnProperty,m={},_=function e(t,n){return new e.fn.init(t,n)},$=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,U=/^-ms-/,X=/-([\da-z])/gi;function z(e){var t=!!e&&"length"in e&&e.length,n=_.type(e);return"function"!==n&&!_.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}_.fn=_.prototype={jquery:"2.2.4",constructor:_,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){e=_.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e){return _.each(this,e)},map:function(n){return this.pushStack(_.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:P,sort:e.sort,splice:e.splice},_.extend=_.fn.extend=function(){var e,t,n,r,i,o=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==_typeof(o)||_.isFunction(o)||(o={}),s===a&&(o=this,s--);s<a;s++)if(null!=(e=arguments[s]))for(t in e)i=o[t],o!==(n=e[t])&&(l&&n&&(_.isPlainObject(n)||(r=_.isArray(n)))?(i=r?(r=!1,i&&_.isArray(i)?i:[]):i&&_.isPlainObject(i)?i:{},o[t]=_.extend(l,i,n)):void 0!==n&&(o[t]=n));return o},_.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===_.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!_.isArray(e)&&0<=t-parseFloat(t)+1},isPlainObject:function(e){if("object"!==_.type(e)||e.nodeType||_.isWindow(e))return!1;if(e.constructor&&!d.call(e,"constructor")&&!d.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(var t in e);return void 0===t||d.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==_typeof(e)||"function"==typeof e?W[B.call(e)]||"object":_typeof(e)},globalEval:function(e){var t,n=eval;(e=_.trim(e))&&(1===e.indexOf("use strict")?((t=T.createElement("script")).text=e,T.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(U,"ms-").replace(X,M)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(z(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace($,"")},makeArray:function(e,t){t=t||[];return null!=e&&(z(Object(e))?_.merge(t,"string"==typeof e?[e]:e):P.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:q.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!=s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(z(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return R.apply([],s)},guid:1,proxy:function(e,t){var n,r;return"string"==typeof t&&(r=e[t],t=e,e=r),_.isFunction(e)?(n=u.call(arguments,2),(r=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||_.guid++,r):void 0},now:Date.now,support:m}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=e[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){W["[object "+t+"]"]=t.toLowerCase()});function r(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&_(e).is(n))break;r.push(e)}return r}function G(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=function(I){function f(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function M(){T()}var e,d,b,o,R,m,P,q,w,l,c,T,_,t,C,v,r,i,g,E="sizzle"+ +new Date,y=I.document,S=0,W=0,B=ce(),$=ce(),x=ce(),U=function(e,t){return e===t&&(c=!0),0},X={}.hasOwnProperty,n=[],z=n.pop,G=n.push,A=n.push,V=n.slice,k=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s="[\\x20\\t\\r\\n\\f]",a="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",K="\\["+s+"*("+a+")(?:"+s+"*([*^$|!~]?=)"+s+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+s+"*\\]",J=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+K+")*)|.*)\\)|)",Q=new RegExp(s+"+","g"),D=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),Z=new RegExp("^"+s+"*,"+s+"*"),ee=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),te=new RegExp("="+s+"*([^\\]'\"]*?)"+s+"*\\]","g"),ne=new RegExp(J),re=new RegExp("^"+a+"$"),p={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+K),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},ie=/^(?:input|select|textarea|button)$/i,oe=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,se=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ae=/[+~]/,le=/'|\\/g,h=new RegExp("\\\\([\\da-f]{1,6}"+s+"?|("+s+")|.)","ig");try{A.apply(n=V.call(y.childNodes),y.childNodes),n[y.childNodes.length].nodeType}catch(e){A={apply:n.length?function(e,t){G.apply(e,V.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function N(e,t,n,r){var i,o,s,a,l,c,u,f,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:y)!==_&&T(t),t=t||_,C)){if(11!==h&&(c=se.exec(e)))if(i=c[1]){if(9===h){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&g(t,s)&&s.id===i)return n.push(s),n}else{if(c[2])return A.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&d.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(i)),n}if(d.qsa&&!x[e+" "]&&(!v||!v.test(e))){if(1!==h)p=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(le,"\\$&"):t.setAttribute("id",a=E),o=(u=m(e)).length,l=re.test(a)?"#"+a:"[id='"+a+"']";o--;)u[o]=l+" "+F(u[o]);f=u.join(","),p=ae.test(e)&&pe(t.parentNode)||t}if(f)try{return A.apply(n,p.querySelectorAll(f)),n}catch(e){}finally{a===E&&t.removeAttribute("id")}}}return q(e.replace(D,"$1"),t,n,r)}function ce(){var n=[];function r(e,t){return n.push(e+" ")>b.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function O(e){return e[E]=!0,e}function H(e){var t=_.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ue(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function L(s){return O(function(o){return o=+o,O(function(e,t){for(var n,r=s([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=N.support={},R=N.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},T=N.setDocument=function(e){var e=e?e.ownerDocument||e:y;return e!==_&&9===e.nodeType&&e.documentElement&&(t=(_=e).documentElement,C=!R(_),(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",M,!1):e.attachEvent&&e.attachEvent("onunload",M)),d.attributes=H(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=H(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=u.test(_.getElementsByClassName),d.getById=H(function(e){return t.appendChild(e).id=E,!_.getElementsByName||!_.getElementsByName(E).length}),d.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&C)return(t=t.getElementById(e))?[t]:[]},b.filter.ID=function(e){var t=e.replace(h,f);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(h,f);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=d.getElementsByClassName&&function(e,t){return void 0!==t.getElementsByClassName&&C?t.getElementsByClassName(e):void 0},r=[],v=[],(d.qsa=u.test(_.querySelectorAll))&&(H(function(e){t.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+s+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+s+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+E+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||v.push(".#.+[+~]")}),H(function(e){var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+s+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=u.test(i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&H(function(e){d.disconnectedMatch=i.call(e,"div"),i.call(e,"[s!='']:x"),r.push("!=",J)}),v=v.length&&new RegExp(v.join("|")),r=r.length&&new RegExp(r.join("|")),e=u.test(t.compareDocumentPosition),g=e||u.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=e?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===_||e.ownerDocument===y&&g(y,e)?-1:t===_||t.ownerDocument===y&&g(y,t)?1:l?k(l,e)-k(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e===_?-1:t===_?1:i?-1:o?1:l?k(l,e)-k(l,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?fe(s[r],a[r]):s[r]===y?-1:a[r]===y?1:0}),_},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if((e.ownerDocument||e)!==_&&T(e),t=t.replace(te,"='$1']"),d.matchesSelector&&C&&!x[t+" "]&&(!r||!r.test(t))&&(!v||!v.test(t)))try{var n=i.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<N(t,_,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!==_&&T(e),g(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!==_&&T(e);var n=b.attrHandle[t.toLowerCase()],n=n&&X.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==n?n:d.attributes||!C?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],r=0,i=0;if(c=!d.detectDuplicates,l=!d.sortStable&&e.slice(0),e.sort(U),c){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return l=null,e},o=N.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(b=N.selectors={cacheLength:50,createPseudo:O,match:p,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(h,f),e[3]=(e[3]||e[4]||e[5]||"").replace(h,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||N.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return p.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ne.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(h,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+s+")"+e+"("+s+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=N.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1<e.indexOf(r):"$="===n?r&&e.slice(-r.length)===r:"~="===n?-1<(" "+e.replace(Q," ")+" ").indexOf(r):"|="===n&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(d,e,t,m,v){var g="nth"!==d.slice(0,3),y="last"!==d.slice(-4),x="of-type"===e;return 1===m&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,s,a,l,c=g!=y?"nextSibling":"previousSibling",u=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,h=!1;if(u){if(g){for(;c;){for(s=e;s=s[c];)if(x?s.nodeName.toLowerCase()===f:1===s.nodeType)return!1;l=c="only"===d&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&p){for(h=(a=(r=(i=(o=(s=u)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[d]||[])[0]===S&&r[1])&&r[2],s=a&&u.childNodes[a];s=++a&&s&&s[c]||(h=a=0)||l.pop();)if(1===s.nodeType&&++h&&s===e){i[d]=[S,a,h];break}}else if(!1===(h=p?a=(r=(i=(o=(s=e)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[d]||[])[0]===S&&r[1]:h))for(;(s=++a&&s&&s[c]||(h=a=0)||l.pop())&&((x?s.nodeName.toLowerCase()!==f:1!==s.nodeType)||!++h||(p&&((i=(o=s[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[d]=[S,h]),s!==e)););return(h-=v)===m||h%m==0&&0<=h/m}}},PSEUDO:function(e,o){var t,s=b.pseudos[e]||b.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return s[E]?s(o):1<s.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?O(function(e,t){for(var n,r=s(e,o),i=r.length;i--;)e[n=k(e,r[i])]=!(t[n]=r[i])}):function(e){return s(e,0,t)}):s}},pseudos:{not:O(function(e){var r=[],i=[],a=P(e.replace(D,"$1"));return a[E]?O(function(e,t,n,r){for(var i,o=a(e,null,r,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,t,n){return r[0]=e,a(r,null,n,i),r[0]=null,!i.pop()}}),has:O(function(t){return function(e){return 0<N(t,e).length}}),contains:O(function(t){return t=t.replace(h,f),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:O(function(n){return re.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(h,f).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=I.location&&I.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===t},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return oe.test(e.nodeName)},input:function(e){return ie.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:L(function(){return[0]}),last:L(function(e,t){return[t-1]}),eq:L(function(e,t,n){return[n<0?n+t:n]}),even:L(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:L(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:L(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:L(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function he(){}function F(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function de(s,e,t){var a=e.dir,l=t&&"parentNode"===a,c=W++;return e.first?function(e,t,n){for(;e=e[a];)if(1===e.nodeType||l)return s(e,t,n)}:function(e,t,n){var r,i,o=[S,c];if(n){for(;e=e[a];)if((1===e.nodeType||l)&&s(e,t,n))return!0}else for(;e=e[a];)if(1===e.nodeType||l){if((r=(i=(i=e[E]||(e[E]={}))[e.uniqueID]||(i[e.uniqueID]={}))[a])&&r[0]===S&&r[1]===c)return o[2]=r[2];if((i[a]=o)[2]=s(e,t,n))return!0}}}function me(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function j(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)!(o=e[a])||n&&!n(o,r,i)||(s.push(o),c&&t.push(a));return s}function ve(h,d,m,v,g,e){return v&&!v[E]&&(v=ve(v)),g&&!g[E]&&(g=ve(g,e)),O(function(e,t,n,r){var i,o,s,a=[],l=[],c=t.length,u=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)N(e,t[r],n);return n}(d||"*",n.nodeType?[n]:n,[]),f=!h||!e&&d?u:j(u,a,h,n,r),p=m?g||(e?h:c||v)?[]:t:f;if(m&&m(f,p,n,r),v)for(i=j(p,l),v(i,[],n,r),o=i.length;o--;)(s=i[o])&&(p[l[o]]=!(f[l[o]]=s));if(e){if(g||h){if(g){for(i=[],o=p.length;o--;)(s=p[o])&&i.push(f[o]=s);g(null,p=[],i,r)}for(o=p.length;o--;)(s=p[o])&&-1<(i=g?k(e,s):a[o])&&(e[i]=!(t[i]=s))}}else p=j(p===t?p.splice(c,p.length):p),g?g(null,t,p,r):A.apply(t,p)})}function ge(v,g){function e(e,t,n,r,i){var o,s,a,l=0,c="0",u=e&&[],f=[],p=w,h=e||x&&b.find.TAG("*",i),d=S+=null==p?1:Math.random()||.1,m=h.length;for(i&&(w=t===_||t||i);c!==m&&null!=(o=h[c]);c++){if(x&&o){for(s=0,t||o.ownerDocument===_||(T(o),n=!C);a=v[s++];)if(a(o,t||_,n)){r.push(o);break}i&&(S=d)}y&&((o=!a&&o)&&l--,e&&u.push(o))}if(l+=c,y&&c!==l){for(s=0;a=g[s++];)a(u,f,t,n);if(e){if(0<l)for(;c--;)u[c]||f[c]||(f[c]=z.call(r));f=j(f)}A.apply(r,f),i&&!e&&0<f.length&&1<l+g.length&&N.uniqueSort(r)}return i&&(S=d,w=p),u}var y=0<g.length,x=0<v.length;return y?O(e):e}return he.prototype=b.filters=b.pseudos,b.setFilters=new he,m=N.tokenize=function(e,t){var n,r,i,o,s,a,l,c=$[e+" "];if(c)return t?0:c.slice(0);for(s=e,a=[],l=b.preFilter;s;){for(o in n&&!(r=Z.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=ee.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(D," ")}),s=s.slice(n.length)),b.filter)!(r=p[o].exec(s))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?N.error(e):$(e,a).slice(0)},P=N.compile=function(e,t){var n,r=[],i=[],o=x[e+" "];if(!o){for(n=(t=t||m(e)).length;n--;)((o=function e(t){for(var r,n,i,o=t.length,s=b.relative[t[0].type],a=s||b.relative[" "],l=s?1:0,c=de(function(e){return e===r},a,!0),u=de(function(e){return-1<k(r,e)},a,!0),f=[function(e,t,n){return e=!s&&(n||t!==w)||((r=t).nodeType?c:u)(e,t,n),r=null,e}];l<o;l++)if(n=b.relative[t[l].type])f=[de(me(f),n)];else{if((n=b.filter[t[l].type].apply(null,t[l].matches))[E]){for(i=++l;i<o&&!b.relative[t[i].type];i++);return ve(1<l&&me(f),1<l&&F(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(D,"$1"),n,l<i&&e(t.slice(l,i)),i<o&&e(t=t.slice(i)),i<o&&F(t))}f.push(n)}return me(f)}(t[n]))[E]?r:i).push(o);(o=x(e,ge(i,r))).selector=e}return o},q=N.select=function(e,t,n,r){var i,o,s,a,l,c="function"==typeof e&&e,u=!r&&m(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(s=o[0]).type&&d.getById&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(h,f),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=p.needsContext.test(e)?0:o.length;i--&&(s=o[i],!b.relative[a=s.type]);)if((l=b.find[a])&&(r=l(s.matches[0].replace(h,f),ae.test(o[0].type)&&pe(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&F(o))break;return A.apply(n,r),n}}return(c||P(e,u))(r,t,!C,n,!t||ae.test(e)&&pe(t.parentNode)||t),n},d.sortStable=E.split("").sort(U).join("")===E,d.detectDuplicates=!!c,T(),d.sortDetached=H(function(e){return 1&e.compareDocumentPosition(_.createElement("div"))}),H(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&H(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),H(function(e){return null==e.getAttribute("disabled")})||ue(Y,function(e,t,n){return n?void 0:!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),N}(w),V=(_.find=e,_.expr=e.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=e.uniqueSort,_.text=e.getText,_.isXMLDoc=e.isXML,_.contains=e.contains,_.expr.match.needsContext),Y=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,K=/^.[^:#\[\.,]*$/;function J(e,n,r){if(_.isFunction(n))return _.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return _.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(K.test(n))return _.filter(n,e,r);n=_.filter(n,e)}return _.grep(e,function(e){return-1<q.call(n,e)!==r})}_.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_.find.matchesSelector(r,e)?[r]:[]:_.find.matches(e,_.grep(t,function(e){return 1===e.nodeType}))},_.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(_(e).filter(function(){for(t=0;t<n;t++)if(_.contains(i[t],this))return!0}));for(t=0;t<n;t++)_.find(e,i[t],r);return(r=this.pushStack(1<n?_.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(J(this,e||[],!1))},not:function(e){return this.pushStack(J(this,e||[],!0))},is:function(e){return!!J(this,"string"==typeof e&&V.test(e)?_(e):e||[],!1).length}});var Q,Z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ee=((_.fn.init=function(e,t,n){if(!e)return this;if(n=n||Q,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):_.isFunction(e)?void 0!==n.ready?n.ready(e):e(_):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),_.makeArray(e,this));if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Z.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),Y.test(r[1])&&_.isPlainObject(t))for(var r in t)_.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=T.getElementById(r[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=T,this.selector=e,this}).prototype=_.fn,Q=_(T),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=V.test(e)||"string"!=typeof e?_(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&_.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?_.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?q.call(_(e),this[0]):q.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return r(e,"parentNode")},parentsUntil:function(e,t,n){return r(e,"parentNode",n)},next:function(e){return ne(e,"nextSibling")},prev:function(e){return ne(e,"previousSibling")},nextAll:function(e){return r(e,"nextSibling")},prevAll:function(e){return r(e,"previousSibling")},nextUntil:function(e,t,n){return r(e,"nextSibling",n)},prevUntil:function(e,t,n){return r(e,"previousSibling",n)},siblings:function(e){return G((e.parentNode||{}).firstChild,e)},children:function(e){return G(e.firstChild)},contents:function(e){return e.contentDocument||_.merge([],e.childNodes)}},function(r,i){_.fn[r]=function(e,t){var n=_.map(this,i,e);return(t="Until"!==r.slice(-5)?e:t)&&"string"==typeof t&&(n=_.filter(t,n)),1<this.length&&(te[r]||_.uniqueSort(n),ee.test(r)&&n.reverse()),this.pushStack(n)}});var re,C=/\S+/g;function ie(){T.removeEventListener("DOMContentLoaded",ie),w.removeEventListener("load",ie),_.ready()}_.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},_.each(e.match(C)||[],function(e,t){n[t]=!0}),n):_.extend({},r);function i(){for(a=r.once,s=o=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&r.stopOnFalse&&(u=l.length,t=!1);r.memory||(t=!1),o=!1,a&&(l=t?[]:"")}var o,t,s,a,l=[],c=[],u=-1,f={add:function(){return l&&(t&&!o&&(u=l.length-1,c.push(t)),function n(e){_.each(e,function(e,t){_.isFunction(t)?r.unique&&f.has(t)||l.push(t):t&&t.length&&"string"!==_.type(t)&&n(t)})}(arguments),t&&!o&&i()),this},remove:function(){return _.each(arguments,function(e,t){for(var n;-1<(n=_.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<_.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=c=[],t||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),o||i()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!s}};return f},_.extend({Deferred:function(e){var o=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var i=arguments;return _.Deferred(function(r){_.each(o,function(e,t){var n=_.isFunction(i[e])&&i[e];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&_.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this===s?r.promise():this,n?[e]:arguments)})}),i=null}).promise()},promise:function(e){return null!=e?_.extend(e,s):s}},a={};return s.pipe=s.then,_.each(o,function(e,t){var n=t[2],r=t[3];s[t[1]]=n.add,r&&n.add(function(){i=r},o[1^e][2].disable,o[2][2].lock),a[t[0]]=function(){return a[t[0]+"With"](this===a?s:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){function t(t,n,r){return function(e){n[t]=this,r[t]=1<arguments.length?u.call(arguments):e,r===i?c.notifyWith(n,r):--l||c.resolveWith(n,r)}}var i,n,r,o=0,s=u.call(arguments),a=s.length,l=1!==a||e&&_.isFunction(e.promise)?a:0,c=1===l?e:_.Deferred();if(1<a)for(i=new Array(a),n=new Array(a),r=new Array(a);o<a;o++)s[o]&&_.isFunction(s[o].promise)?s[o].promise().progress(t(o,n,i)).done(t(o,r,s)).fail(c.reject):--l;return l||c.resolveWith(r,s),c.promise()}}),_.fn.ready=function(e){return _.ready.promise().done(e),this},_.extend({isReady:!1,readyWait:1,holdReady:function(e){e?_.readyWait++:_.ready(!0)},ready:function(e){(!0===e?--_.readyWait:_.isReady)||((_.isReady=!0)!==e&&0<--_.readyWait||(re.resolveWith(T,[_]),_.fn.triggerHandler&&(_(T).triggerHandler("ready"),_(T).off("ready"))))}}),_.ready.promise=function(e){return re||(re=_.Deferred(),"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?w.setTimeout(_.ready):(T.addEventListener("DOMContentLoaded",ie),w.addEventListener("load",ie))),re.promise(e)},_.ready.promise();function f(e,t,n,r,i,o,s){var a=0,l=e.length,c=null==n;if("object"===_.type(n))for(a in i=!0,n)f(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,_.isFunction(r)||(s=!0),t=c?s?(t.call(e,r),null):(c=t,function(e,t,n){return c.call(_(e),n)}):t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):o}function v(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function t(){this.expando=_.expando+t.uid++}t.uid=1,t.prototype={register:function(e,t){t=t||{};return e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!v(e))return{};var t=e[this.expando];return t||(t={},v(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,_.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{n=(r=_.isArray(t)?t.concat(t.map(_.camelCase)):(i=_.camelCase(t),t in o?[t,i]:(r=i)in o?[r]:r.match(C)||[])).length;for(;n--;)delete o[r[n]]}void 0!==t&&!_.isEmptyObject(o)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var g=new t,l=new t,oe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,se=/[A-Z]/g;function ae(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(se,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:oe.test(n)?_.parseJSON(n):n)}catch(e){}l.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return l.hasData(e)||g.hasData(e)},data:function(e,t,n){return l.access(e,t,n)},removeData:function(e,t){l.remove(e,t)},_data:function(e,t,n){return g.access(e,t,n)},_removeData:function(e,t){g.remove(e,t)}}),_.fn.extend({data:function(r,e){var t,n,i,o=this[0],s=o&&o.attributes;if(void 0!==r)return"object"==_typeof(r)?this.each(function(){l.set(this,r)}):f(this,function(t){var e,n;if(o&&void 0===t)return void 0!==(e=l.get(o,r)||l.get(o,r.replace(se,"-$&").toLowerCase()))?e:(n=_.camelCase(r),void 0!==(e=l.get(o,n))?e:void 0!==(e=ae(o,n,void 0))?e:void 0);n=_.camelCase(r),this.each(function(){var e=l.get(this,n);l.set(this,n,t),-1<r.indexOf("-")&&void 0!==e&&l.set(this,r,t)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=l.get(o),1===o.nodeType&&!g.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&(0===(n=s[t].name).indexOf("data-")&&(n=_.camelCase(n.slice(5)),ae(o,n,i[n])));g.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){l.remove(this,e)})}}),_.extend({queue:function(e,t,n){var r;return e?(r=g.get(e,t=(t||"fx")+"queue"),n&&(!r||_.isArray(n)?r=g.access(e,t,_.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),r=n.length,i=n.shift(),o=_._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){_.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return g.get(e,n)||g.access(e,n,{empty:_.Callbacks("once memory").add(function(){g.remove(e,[t+"queue",n])})})}}),_.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?_.queue(this[0],t):void 0===n?this:this.each(function(){var e=_.queue(this,t,n);_._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&_.dequeue(this,t)})},dequeue:function(e){return this.each(function(){_.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--i||o.resolveWith(s,[s])}var r,i=1,o=_.Deferred(),s=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=g.get(s[a],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(t)}});function y(e,t){return"none"===_.css(e=t||e,"display")||!_.contains(e.ownerDocument,e)}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,p=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),a=["Top","Right","Bottom","Left"];function le(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return _.css(e,t,"")},l=a(),c=n&&n[3]||(_.cssNumber[t]?"":"px"),u=(_.cssNumber[t]||"px"!==c&&+l)&&p.exec(_.css(e,t));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;u/=o=o||".5",_.style(e,t,u+c),o!==(o=a()/l)&&1!==o&&--s;);return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ce=/^(?:checkbox|radio)$/i,ue=/<([\w:-]+)/,fe=/^$|\/(?:java|ecma)script/i,x={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function b(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&_.nodeName(e,t)?_.merge([e],n):n}function pe(e,t){for(var n=0,r=e.length;n<r;n++)g.set(e[n],"globalEval",!t||g.get(t[n],"globalEval"))}x.optgroup=x.option,x.tbody=x.tfoot=x.colgroup=x.caption=x.thead,x.th=x.td;var he=/<|&#?\w+;/;function de(e,t,n,r,i){for(var o,s,a,l,c,u=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===_.type(o))_.merge(f,o.nodeType?[o]:o);else if(he.test(o)){for(s=s||u.appendChild(t.createElement("div")),a=(ue.exec(o)||["",""])[1].toLowerCase(),a=x[a]||x._default,s.innerHTML=a[1]+_.htmlPrefilter(o)+a[2],c=a[0];c--;)s=s.lastChild;_.merge(f,s.childNodes),(s=u.firstChild).textContent=""}else f.push(t.createTextNode(o));for(u.textContent="",p=0;o=f[p++];)if(r&&-1<_.inArray(o,r))i&&i.push(o);else if(l=_.contains(o.ownerDocument,o),s=b(u.appendChild(o),"script"),l&&pe(s),n)for(c=0;o=s[c++];)fe.test(o.type||"")&&n.push(o);return u}N=T.createDocumentFragment().appendChild(T.createElement("div")),(D=T.createElement("input")).setAttribute("type","radio"),D.setAttribute("checked","checked"),D.setAttribute("name","t"),N.appendChild(D),m.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue;var me=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ge=/^([^.]*)(?:\.(.+)|)/;function ye(){return!0}function c(){return!1}function xe(){try{return T.activeElement}catch(e){}}function be(e,t,n,r,i,o){var s,a;if("object"==_typeof(t)){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)be(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=c;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return _().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=_.guid++)),e.each(function(){_.event.add(this,t,i,r,n)})}_.event={global:{},add:function(t,e,n,r,i){var o,s,a,l,c,u,f,p,h,d=g.get(t);if(d)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=_.guid++),(a=d.events)||(a=d.events={}),(s=d.handle)||(s=d.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(C)||[""]).length;l--;)f=h=(p=ge.exec(e[l])||[])[1],p=(p[2]||"").split(".").sort(),f&&(c=_.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=_.event.special[f]||{},h=_.extend({type:f,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},o),(u=a[f])||((u=a[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,s)||t.addEventListener&&t.addEventListener(f,s)),c.add&&(c.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),i?u.splice(u.delegateCount++,0,h):u.push(h),_.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,c,u,f,p,h,d,m,v=g.hasData(e)&&g.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(C)||[""]).length;c--;)if(h=m=(a=ge.exec(t[c])||[])[1],d=(a[2]||"").split(".").sort(),h){for(f=_.event.special[h]||{},p=l[h=(r?f.delegateType:f.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)u=p[o],!i&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,f.remove&&f.remove.call(e,u));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,d,v.handle)||_.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)_.event.remove(e,h+t[c],n,r,!0);_.isEmptyObject(l)&&g.remove(e,"handle events")}},dispatch:function(e){e=_.event.fix(e);var t,n,r,i,o,s=u.call(arguments),a=(g.get(this,"events")||{})[e.type]||[],l=_.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(o=_.event.handlers.call(this,e,a),t=0;(r=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(i=((_.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],n=0;n<a;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?-1<_(i,this).index(l):_.find(i,this,null,[l]).length),r[i]&&r.push(o);r.length&&s.push({elem:l,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i=t.button;return null==e.pageX&&null!=t.clientX&&(n=(r=e.target.ownerDocument||T).documentElement,r=r.body,e.pageX=t.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[_.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=ve.test(i)?this.mouseHooks:me.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new _.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=T),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==xe()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===xe()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&_.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return _.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){return this instanceof _.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ye:c):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||_.now(),void(this[_.expando]=!0)):new _.Event(e,t)},_.Event.prototype={constructor:_.Event,isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ye,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ye,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ye,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){_.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||_.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),_.fn.extend({on:function(e,t,n,r){return be(this,e,t,n,r)},one:function(e,t,n,r){return be(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,_(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"!=_typeof(e))return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=c),this.each(function(){_.event.remove(this,e,n,t)});for(i in e)this.off(i,t,e[i]);return this}});var we=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Te=/<script|<style|<link/i,_e=/checked\s*(?:[^=]|=\s*.checked.)/i,Ce=/^true\/(.*)/,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Se(e,t){return _.nodeName(e,"table")&&_.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ae(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ke(e){var t=Ce.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function De(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(g.hasData(e)&&(o=g.access(e),s=g.set(t,o),a=o.events))for(i in delete s.handle,s.events={},a)for(n=0,r=a[i].length;n<r;n++)_.event.add(t,i,a[i][n]);l.hasData(e)&&(o=l.access(e),s=_.extend({},o),l.set(t,s))}}function E(n,r,i,o){r=R.apply([],r);var e,t,s,a,l,c,u=0,f=n.length,p=f-1,h=r[0],d=_.isFunction(h);if(d||1<f&&"string"==typeof h&&!m.checkClone&&_e.test(h))return n.each(function(e){var t=n.eq(e);d&&(r[0]=h.call(this,e,t.html())),E(t,r,i,o)});if(f&&(t=(e=de(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(s=_.map(b(e,"script"),Ae)).length;u<f;u++)l=e,u!==p&&(l=_.clone(l,!0,!0),a&&_.merge(s,b(l,"script"))),i.call(n[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,_.map(s,ke),u=0;u<a;u++)l=s[u],fe.test(l.type||"")&&!g.access(l,"globalEval")&&_.contains(c,l)&&(l.src?_._evalUrl&&_._evalUrl(l.src):_.globalEval(l.textContent.replace(Ee,"")))}return n}function Ne(e,t,n){for(var r,i=t?_.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||_.cleanData(b(r)),r.parentNode&&(n&&_.contains(r.ownerDocument,r)&&pe(b(r,"script")),r.parentNode.removeChild(r));return e}_.extend({htmlPrefilter:function(e){return e.replace(we,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a,l,c,u=e.cloneNode(!0),f=_.contains(e.ownerDocument,e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(s=b(u),r=0,i=(o=b(e)).length;r<i;r++)a=o[r],l=s[r],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ce.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||b(e),s=s||b(u),r=0,i=o.length;r<i;r++)De(o[r],s[r]);else De(e,u);return 0<(s=b(u,"script")).length&&pe(s,!f&&b(e,"script")),u},cleanData:function(e){for(var t,n,r,i=_.event.special,o=0;void 0!==(n=e[o]);o++)if(v(n)){if(t=n[g.expando]){if(t.events)for(r in t.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[g.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),_.fn.extend({domManip:E,detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return f(this,function(e){return void 0===e?_.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return E(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Se(this,e).appendChild(e)})},prepend:function(){return E(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Se(this,e)).insertBefore(e,t.firstChild)})},before:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(b(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return _.clone(this,e,t)})},html:function(e){return f(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Te.test(e)&&!x[(ue.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(b(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return E(this,arguments,function(e){var t=this.parentNode;_.inArray(this,n)<0&&(_.cleanData(b(this)),t&&t.replaceChild(e,this))},n)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){_.fn[e]=function(e){for(var t,n=[],r=_(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),_(r[o])[s](t),P.apply(n,t.get());return this.pushStack(n)}});var Oe,He={HTML:"block",BODY:"block"};function Le(e,t){e=_(t.createElement(e)).appendTo(t.body),t=_.css(e[0],"display");return e.detach(),t}function Fe(e){var t=T,n=He[e];return n||("none"!==(n=Le(e,t))&&n||((t=(Oe=(Oe||_("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Le(e,t),Oe.detach()),He[e]=n),n}function je(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:w).getComputedStyle(e)}function Ie(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in n=n.apply(e,r||[]),t)e.style[i]=o[i];return n}var Me,n,Re,Pe,i,o,s,qe=/^margin/,We=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),h=T.documentElement;function S(e,t,n){var r,i,o=e.style;return""!==(i=(n=n||je(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==i||_.contains(e.ownerDocument,e)||(i=_.style(e,t)),n&&!m.pixelMarginRight()&&We.test(i)&&qe.test(t)&&(e=o.width,t=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=e,o.minWidth=t,o.maxWidth=r),void 0!==i?i+"":i}function Be(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}o=T.createElement("div"),(s=T.createElement("div")).style&&(i=function(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",h.appendChild(o);var e=w.getComputedStyle(s);Me="1%"!==e.top,Pe="2px"===e.marginLeft,n="4px"===e.width,s.style.marginRight="50%",Re="4px"===e.marginRight,h.removeChild(o)},s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),_.extend(m,{pixelPosition:function(){return i(),Me},boxSizingReliable:function(){return null==n&&i(),n},pixelMarginRight:function(){return null==n&&i(),Re},reliableMarginLeft:function(){return null==n&&i(),Pe},reliableMarginRight:function(){var e,t=s.appendChild(T.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",h.appendChild(o),e=!parseFloat(w.getComputedStyle(t).marginRight),h.removeChild(o),s.removeChild(t),e}}));var $e=/^(none|table(?!-c[ea]).+)/,Ue={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"},ze=["Webkit","O","Moz","ms"],Ge=T.createElement("div").style;function Ve(e){if(e in Ge)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ze.length;n--;)if((e=ze[n]+t)in Ge)return e}function Ye(e,t,n){var r=p.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=_.css(e,n+a[o],!0,i)),r?("content"===n&&(s-=_.css(e,"padding"+a[o],!0,i)),"margin"!==n&&(s-=_.css(e,"border"+a[o]+"Width",!0,i))):(s+=_.css(e,"padding"+a[o],!0,i),"padding"!==n&&(s+=_.css(e,"border"+a[o]+"Width",!0,i)));return s}function Je(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=je(e),s="border-box"===_.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=S(e,t,o))<0||null==i)&&(i=e.style[t]),We.test(i))return i;r=s&&(m.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ke(e,t,n||(s?"border":"content"),r,o)+"px"}function Qe(e,t){for(var n,r,i,o=[],s=0,a=e.length;s<a;s++)(r=e[s]).style&&(o[s]=g.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&y(r)&&(o[s]=g.access(r,"olddisplay",Fe(r.nodeName)))):(i=y(r),"none"===n&&i||g.set(r,"olddisplay",i?n:_.css(r,"display"))));for(s=0;s<a;s++)!(r=e[s]).style||t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none");return e}function A(e,t,n,r,i){return new A.prototype.init(e,t,n,r,i)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=S(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){var i,o,s,a,l;if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style)return a=_.camelCase(t),l=e.style,t=_.cssProps[a]||(_.cssProps[a]=Ve(a)||a),s=_.cssHooks[t]||_.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:l[t]:("string"===(o=_typeof(n))&&(i=p.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),void(null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(_.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l[t]=n))))},css:function(e,t,n,r){var i,o=_.camelCase(t);return t=_.cssProps[o]||(_.cssProps[o]=Ve(o)||o),"normal"===(i=void 0===(i=(o=_.cssHooks[t]||_.cssHooks[o])&&"get"in o?o.get(e,!0,n):i)?S(e,t,r):i)&&t in Xe&&(i=Xe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_.each(["height","width"],function(e,i){_.cssHooks[i]={get:function(e,t,n){return t?$e.test(_.css(e,"display"))&&0===e.offsetWidth?Ie(e,Ue,function(){return Je(e,i,n)}):Je(e,i,n):void 0},set:function(e,t,n){var r=n&&je(e),n=n&&Ke(e,i,n,"border-box"===_.css(e,"boxSizing",!1,r),r);return n&&(r=p.exec(t))&&"px"!==(r[3]||"px")&&(e.style[i]=t,t=_.css(e,i)),Ye(0,t,n)}}}),_.cssHooks.marginLeft=Be(m.reliableMarginLeft,function(e,t){return t?(parseFloat(S(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),_.cssHooks.marginRight=Be(m.reliableMarginRight,function(e,t){return t?Ie(e,{display:"inline-block"},S,[e,"marginRight"]):void 0}),_.each({margin:"",padding:"",border:"Width"},function(i,o){_.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+a[t]+o]=r[t]||r[t-2]||r[0];return n}},qe.test(i)||(_.cssHooks[i+o].set=Ye)}),_.fn.extend({css:function(e,t){return f(this,function(e,t,n){var r,i,o={},s=0;if(_.isArray(t)){for(r=je(e),i=t.length;s<i;s++)o[t[s]]=_.css(e,t[s],!1,r);return o}return void 0!==n?_.style(e,t,n):_.css(e,t)},e,t,1<arguments.length)},show:function(){return Qe(this,!0)},hide:function(){return Qe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){y(this)?_(this).show():_(this).hide()})}}),((_.Tween=A).prototype={constructor:A,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var e=A.propHooks[this.prop];return(e&&e.get?e:A.propHooks._default).get(this)},run:function(e){var t,n=A.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:A.propHooks._default).set(this),this}}).init.prototype=A.prototype,(A.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=_.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[_.cssProps[e.prop]]&&!_.cssHooks[e.prop]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=A.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=A.prototype.init,_.fx.step={};var k,Ze,D,N,et=/^(?:toggle|show|hide)$/,tt=/queueHooks$/;function nt(){return w.setTimeout(function(){k=void 0}),k=_.now()}function rt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=a[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function it(e,t,n){for(var r,i=(O.tweeners[t]||[]).concat(O.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function O(i,e,t){var n,o,r,s,a,l,c,u=0,f=O.prefilters.length,p=_.Deferred().always(function(){delete h.elem}),h=function(){if(o)return!1;for(var e=k||nt(),e=Math.max(0,d.startTime+d.duration-e),t=1-(e/d.duration||0),n=0,r=d.tweens.length;n<r;n++)d.tweens[n].run(t);return p.notifyWith(i,[d,t,e]),t<1&&r?e:(p.resolveWith(i,[d]),!1)},d=p.promise({elem:i,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},t),originalProperties:e,originalOptions:t,startTime:k||nt(),duration:t.duration,tweens:[],createTween:function(e,t){t=_.Tween(i,d.opts,e,t,d.opts.specialEasing[e]||d.opts.easing);return d.tweens.push(t),t},stop:function(e){var t=0,n=e?d.tweens.length:0;if(o)return this;for(o=!0;t<n;t++)d.tweens[t].run(1);return e?(p.notifyWith(i,[d,1,0]),p.resolveWith(i,[d,e])):p.rejectWith(i,[d,e]),this}}),m=d.props,v=m,g=d.opts.specialEasing;for(r in v)if(a=g[s=_.camelCase(r)],l=v[r],_.isArray(l)&&(a=l[1],l=v[r]=l[0]),r!==s&&(v[s]=l,delete v[r]),(c=_.cssHooks[s])&&"expand"in c)for(r in l=c.expand(l),delete v[s],l)r in v||(v[r]=l[r],g[r]=a);else g[s]=a;for(;u<f;u++)if(n=O.prefilters[u].call(d,i,m,d.opts))return _.isFunction(n.stop)&&(_._queueHooks(d.elem,d.opts.queue).stop=_.proxy(n.stop,n)),n;return _.map(m,it,d),_.isFunction(d.opts.start)&&d.opts.start.call(i,d),_.fx.timer(_.extend(h,{elem:i,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}_.Animation=_.extend(O,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,p.exec(t),n),n}]},tweener:function(e,t){for(var n,r=0,i=(e=_.isFunction(e)?(t=e,["*"]):e.match(C)).length;r<i;r++)n=e[r],O.tweeners[n]=O.tweeners[n]||[],O.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var r,i,o,s,a,l,c,u=this,f={},p=t.style,h=t.nodeType&&y(t),d=g.get(t,"fxshow");for(r in n.queue||(null==(a=_._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,_.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(c=_.css(t,"display"))?g.get(t,"olddisplay")||Fe(t.nodeName):c)&&"none"===_.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(i=e[r],et.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!d||void 0===d[r])continue;h=!0}f[r]=d&&d[r]||_.style(t,r)}else c=void 0;if(_.isEmptyObject(f))"inline"===("none"===c?Fe(t.nodeName):c)&&(p.display=c);else for(r in d?"hidden"in d&&(h=d.hidden):d=g.access(t,"fxshow",{}),o&&(d.hidden=!h),h?_(t).show():u.done(function(){_(t).hide()}),u.done(function(){for(var e in g.remove(t,"fxshow"),f)_.style(t,e,f[e])}),f)s=it(h?d[r]:0,r,u),r in d||(d[r]=s.start,h&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?O.prefilters.unshift(e):O.prefilters.push(e)}}),_.speed=function(e,t,n){var r=e&&"object"==_typeof(e)?_.extend({},e):{complete:n||!n&&t||_.isFunction(e)&&e,duration:e,easing:n&&t||t&&!_.isFunction(t)&&t};return r.duration=_.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in _.fx.speeds?_.fx.speeds[r.duration]:_.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){_.isFunction(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(e,t,n,r){return this.filter(y).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){function i(){var e=O(this,_.extend({},t),s);(o||g.get(this,"finish"))&&e.stop(!0)}var o=_.isEmptyObject(t),s=_.speed(e,n,r);return i.finish=i,o||!1===s.queue?this.each(i):this.queue(s.queue,i)},stop:function(i,e,o){function s(e){var t=e.stop;delete e.stop,t(o)}return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=_.timers,r=g.get(this);if(t)r[t]&&r[t].stop&&s(r[t]);else for(t in r)r[t]&&r[t].stop&&tt.test(t)&&s(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||_.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=g.get(this),n=t[s+"queue"],r=t[s+"queueHooks"],i=_.timers,o=n?n.length:0;for(t.finish=!0,_.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===s&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),_.each(["toggle","show","hide"],function(e,r){var i=_.fn[r];_.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(rt(r,!0),e,t,n)}}),_.each({slideDown:rt("show"),slideUp:rt("hide"),slideToggle:rt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){_.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(k=_.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),k=void 0},_.fx.timer=function(e){_.timers.push(e),e()?_.fx.start():_.timers.pop()},_.fx.interval=13,_.fx.start=function(){Ze=Ze||w.setInterval(_.fx.tick,_.fx.interval)},_.fx.stop=function(){w.clearInterval(Ze),Ze=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(r,e){return r=_.fx&&_.fx.speeds[r]||r,this.queue(e=e||"fx",function(e,t){var n=w.setTimeout(e,r);t.stop=function(){w.clearTimeout(n)}})},D=T.createElement("input"),N=T.createElement("select"),e=N.appendChild(T.createElement("option")),D.type="checkbox",m.checkOn=""!==D.value,m.optSelected=e.selected,N.disabled=!0,m.optDisabled=!e.disabled,(D=T.createElement("input")).value="t",D.type="radio",m.radioValue="t"===D.value;var ot,H=_.expr.attrHandle,st=(_.fn.extend({attr:function(e,t){return f(this,_.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){_.removeAttr(this,e)})}}),_.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?_.prop(e,t,n):(1===o&&_.isXMLDoc(e)||(t=t.toLowerCase(),i=_.attrHooks[t]||(_.expr.match.bool.test(t)?ot:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=_.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){var n;if(!m.radioValue&&"radio"===t&&_.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(C);if(o&&1===e.nodeType)for(;n=o[i++];)r=_.propFix[n]||n,_.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),ot={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),function(e,t){var o=H[t]||_.find.attr;H[t]=function(e,t,n){var r,i;return n||(i=H[t],H[t]=r,r=null!=o(e,t,n)?t.toLowerCase():null,H[t]=i),r}}),/^(?:input|select|textarea|button)$/i),at=/^(?:a|area)$/i,lt=(_.fn.extend({prop:function(e,t){return f(this,_.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[_.propFix[e]||e]})}}),_.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,i=_.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):st.test(e.nodeName)||at.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(_.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g);function L(e){return e.getAttribute&&e.getAttribute("class")||""}_.fn.extend({addClass:function(t){var e,n,r,i,o,s,a=0;if(_.isFunction(t))return this.each(function(e){_(this).addClass(t.call(this,e,L(this)))});if("string"==typeof t&&t)for(e=t.match(C)||[];n=this[a++];)if(s=L(n),r=1===n.nodeType&&(" "+s+" ").replace(lt," ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s!==(s=_.trim(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,s,a=0;if(_.isFunction(t))return this.each(function(e){_(this).removeClass(t.call(this,e,L(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(C)||[];n=this[a++];)if(s=L(n),r=1===n.nodeType&&(" "+s+" ").replace(lt," ")){for(o=0;i=e[o++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");s!==(s=_.trim(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=_typeof(i);return"boolean"==typeof t&&"string"===o?t?this.addClass(i):this.removeClass(i):_.isFunction(i)?this.each(function(e){_(this).toggleClass(i.call(this,e,L(this),t),t)}):this.each(function(){var e,t,n,r;if("string"===o)for(t=0,n=_(this),r=i.match(C)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!==o||((e=L(this))&&g.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==i&&g.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,r=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+L(t)+" ").replace(lt," ").indexOf(r))return!0;return!1}});var ct=/\r/g,ut=/[\x20\t\r\n\f]+/g,ft=(_.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=_.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,_(this).val()):t)?e="":"number"==typeof e?e+="":_.isArray(e)&&(e=_.map(e,function(e){return null==e?"":e+""})),(n=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):i?(n=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(ct,""):null==e?"":e:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:_.trim(_.text(e)).replace(ut," ")}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],s=i?r+1:n.length,a=r<0?s:i?r:0;a<s;a++)if(((t=n[a]).selected||a===r)&&(m.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!_.nodeName(t.parentNode,"optgroup"))){if(t=_(t).val(),i)return t;o.push(t)}return o},set:function(e,t){for(var n,r,i=e.options,o=_.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<_.inArray(_.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(e,t){return _.isArray(t)?e.checked=-1<_.inArray(_(e).val(),t):void 0}},m.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),/^(?:focusinfocus|focusoutblur)$/),F=(_.extend(_.event,{trigger:function(e,t,n,r){var i,o,s,a,l,c,u=[n||T],f=d.call(e,"type")?e.type:e,p=d.call(e,"namespace")?e.namespace.split("."):[],h=o=n=n||T;if(3!==n.nodeType&&8!==n.nodeType&&!ft.test(f+_.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),a=f.indexOf(":")<0&&"on"+f,(e=e[_.expando]?e:new _.Event(f,"object"==_typeof(e)&&e)).isTrigger=r?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:_.makeArray(t,[e]),c=_.event.special[f]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!_.isWindow(n)){for(s=c.delegateType||f,ft.test(s+f)||(h=h.parentNode);h;h=h.parentNode)u.push(h),o=h;o===(n.ownerDocument||T)&&u.push(o.defaultView||o.parentWindow||w)}for(i=0;(h=u[i++])&&!e.isPropagationStopped();)e.type=1<i?s:c.bindType||f,(l=(g.get(h,"events")||{})[e.type]&&g.get(h,"handle"))&&l.apply(h,t),(l=a&&h[a])&&l.apply&&v(h)&&(e.result=l.apply(h,t),!1===e.result&&e.preventDefault());return e.type=f,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!v(n)||a&&_.isFunction(n[f])&&!_.isWindow(n)&&((o=n[a])&&(n[a]=null),n[_.event.triggered=f](),_.event.triggered=void 0,o&&(n[a]=o)),e.result}},simulate:function(e,t,n){n=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(n,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each(function(){_.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?_.event.trigger(e,t,n,!0):void 0}}),_.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){_.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),_.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),m.focusin="onfocusin"in w,m.focusin||_.each({focus:"focusin",blur:"focusout"},function(n,r){function i(e){_.event.simulate(r,e.target,_.event.fix(e))}_.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=g.access(e,r);t||e.addEventListener(n,i,!0),g.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=g.access(e,r)-1;t?g.access(e,r,t):(e.removeEventListener(n,i,!0),g.remove(e,r))}}}),w.location),pt=_.now(),ht=/\?/,dt=(_.parseJSON=function(e){return JSON.parse(e+"")},_.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+e),t},/#.*$/),mt=/([?&])_=[^&]*/,vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,gt=/^(?:GET|HEAD)$/,yt=/^\/\//,xt={},bt={},wt="*/".concat("*"),Tt=T.createElement("a");function _t(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(C)||[];if(_.isFunction(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Ct(t,r,i,o){var s={},a=t===bt;function l(e){var n;return s[e]=!0,_.each(t[e]||[],function(e,t){t=t(r,i,o);return"string"!=typeof t||a||s[t]?a?!(n=t):void 0:(r.dataTypes.unshift(t),l(t),!1)}),n}return l(r.dataTypes[0])||!s["*"]&&l("*")}function Et(e,t){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r=r||{})[n]=t[n]);return r&&_.extend(!0,e,r),e}Tt.href=F.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:F.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(F.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":_.parseJSON,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Et(Et(e,_.ajaxSettings),t):Et(_.ajaxSettings,e)},ajaxPrefilter:_t(xt),ajaxTransport:_t(bt),ajax:function(e,t){"object"==_typeof(e)&&(t=e,e=void 0);var l,c,u,n,f,p,r,h=_.ajaxSetup({},t=t||{}),d=h.context||h,m=h.context&&(d.nodeType||d.jquery)?_(d):_.event,v=_.Deferred(),g=_.Callbacks("once memory"),y=h.statusCode||{},i={},o={},x=0,s="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!n)for(n={};t=vt.exec(u);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=o[n]=o[n]||e,i[e]=t),this},overrideMimeType:function(e){return x||(h.mimeType=e),this},statusCode:function(e){if(e)if(x<2)for(var t in e)y[t]=[y[t],e[t]];else b.always(e[b.status]);return this},abort:function(e){e=e||s;return l&&l.abort(e),a(0,e),this}};if(v.promise(b).complete=g.add,b.success=b.done,b.error=b.fail,h.url=((e||h.url||F.href)+"").replace(dt,"").replace(yt,F.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=_.trim(h.dataType||"*").toLowerCase().match(C)||[""],null==h.crossDomain){e=T.createElement("a");try{e.href=h.url,e.href=e.href,h.crossDomain=Tt.protocol+"//"+Tt.host!=e.protocol+"//"+e.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=_.param(h.data,h.traditional)),Ct(xt,h,t,b),2!==x){for(r in(p=_.event&&h.global)&&0==_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!gt.test(h.type),c=h.url,h.hasContent||(h.data&&(c=h.url+=(ht.test(c)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=mt.test(c)?c.replace(mt,"$1_="+pt++):c+(ht.test(c)?"&":"?")+"_="+pt++)),h.ifModified&&(_.lastModified[c]&&b.setRequestHeader("If-Modified-Since",_.lastModified[c]),_.etag[c]&&b.setRequestHeader("If-None-Match",_.etag[c])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&b.setRequestHeader("Content-Type",h.contentType),b.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+wt+"; q=0.01":""):h.accepts["*"]),h.headers)b.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(!1===h.beforeSend.call(d,b,h)||2===x))return b.abort();for(r in s="abort",{success:1,error:1,complete:1})b[r](h[r]);if(l=Ct(bt,h,t,b)){if(b.readyState=1,p&&m.trigger("ajaxSend",[b,h]),2===x)return b;h.async&&0<h.timeout&&(f=w.setTimeout(function(){b.abort("timeout")},h.timeout));try{x=1,l.send(i,a)}catch(e){if(!(x<2))throw e;a(-1,e)}}else a(-1,"No Transport")}return b;function a(e,t,n,r){var i,o,s,a=t;2!==x&&(x=2,f&&w.clearTimeout(f),l=void 0,u=r||"",b.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s=s||i}o=o||s}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}(h,b,n)),s=function(e,t,n,r){var i,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(i in c)if((a=i.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[i]:!0!==c[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,s,b,r),r?(h.ifModified&&((n=b.getResponseHeader("Last-Modified"))&&(_.lastModified[c]=n),(n=b.getResponseHeader("etag"))&&(_.etag[c]=n)),204===e||"HEAD"===h.type?a="nocontent":304===e?a="notmodified":(a=s.state,i=s.data,r=!(o=s.error))):(o=a,!e&&a||(a="error",e<0&&(e=0))),b.status=e,b.statusText=(t||a)+"",r?v.resolveWith(d,[i,a,b]):v.rejectWith(d,[b,a,o]),b.statusCode(y),y=void 0,p&&m.trigger(r?"ajaxSuccess":"ajaxError",[b,h,r?i:o]),g.fireWith(d,[b,a]),p&&(m.trigger("ajaxComplete",[b,h]),--_.active||_.event.trigger("ajaxStop")))}},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],function(e,i){_[i]=function(e,t,n,r){return _.isFunction(t)&&(r=r||n,n=t,t=void 0),_.ajax(_.extend({url:e,type:i,dataType:r,data:t,success:n},_.isPlainObject(e)&&e))}}),_._evalUrl=function(e){return _.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},_.fn.extend({wrapAll:function(t){var e;return _.isFunction(t)?this.each(function(e){_(this).wrapAll(t.call(this,e))}):(this[0]&&(e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return _.isFunction(n)?this.each(function(e){_(this).wrapInner(n.call(this,e))}):this.each(function(){var e=_(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=_.isFunction(t);return this.each(function(e){_(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){_.nodeName(this,"body")||_(this).replaceWith(this.childNodes)}).end()}}),_.expr.filters.hidden=function(e){return!_.expr.filters.visible(e)},_.expr.filters.visible=function(e){return 0<e.offsetWidth||0<e.offsetHeight||0<e.getClientRects().length};var St=/%20/g,At=/\[\]$/,kt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;_.param=function(e,t){function n(e,t){t=_.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var r,i=[];if(void 0===t&&(t=_.ajaxSettings&&_.ajaxSettings.traditional),_.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,function(){n(this.name,this.value)});else for(r in e)!function n(r,e,i,o){if(_.isArray(e))_.each(e,function(e,t){i||At.test(r)?o(r,t):n(r+"["+("object"==_typeof(t)&&null!=t?e:"")+"]",t,i,o)});else if(i||"object"!==_.type(e))o(r,e);else for(var t in e)n(r+"["+t+"]",e[t],i,o)}(r,e[r],t,n);return i.join("&").replace(St,"+")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&Nt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!ce.test(e))}).map(function(e,t){var n=_(this).val();return null==n?null:_.isArray(n)?_.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}}),_.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},j=_.ajaxSettings.xhr(),Ht=(m.cors=!!j&&"withCredentials"in j,m.ajax=j=!!j,_.ajaxTransport(function(i){var o,s;return m.cors||j&&!i.crossDomain?{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=s=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Ot[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),s=r.onerror=o("error"),void 0!==r.onabort?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&w.setTimeout(function(){o&&s()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}:void 0}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),_.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(e,t){r=_("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(r[0])},abort:function(){i&&i()}}}),[]),Lt=/(=)\?(?=&|$)|\?\?/,Ft=(_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||_.expando+"_"+pt++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,s=!1!==e.jsonp&&(Lt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Lt.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=_.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Lt,"$1"+r):!1!==e.jsonp&&(e.url+=(ht.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||_.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=w[r],w[r]=function(){o=arguments},n.always(function(){void 0===i?_(w).removeProp(r):w[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ht.push(r)),o&&_.isFunction(i)&&i(o[0]),o=i=void 0}),"script"):void 0}),_.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||T;var r=Y.exec(e),n=!n&&[];return r?[t.createElement(r[1])]:(r=de([e],t,n),n&&n.length&&_(n).remove(),_.merge([],r.childNodes))},_.fn.load);function jt(e){return _.isWindow(e)?e:9===e.nodeType&&e.defaultView}_.fn.load=function(e,t,n){if("string"!=typeof e&&Ft)return Ft.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=_.trim(e.slice(a)),e=e.slice(0,a)),_.isFunction(t)?(n=t,t=void 0):t&&"object"==_typeof(t)&&(i="POST"),0<s.length&&_.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?_("<div>").append(_.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_.fn[t]=function(e){return this.on(t,e)}}),_.expr.filters.animated=function(t){return _.grep(_.timers,function(e){return t===e.elem}).length},_.offset={setOffset:function(e,t,n){var r,i,o,s,a=_.css(e,"position"),l=_(e),c={};"static"===a&&(e.style.position="relative"),o=l.offset(),r=_.css(e,"top"),s=_.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(r+s).indexOf("auto")?(i=(a=l.position()).top,a.left):(i=parseFloat(r)||0,parseFloat(s)||0),null!=(t=_.isFunction(t)?t.call(e,n,_.extend({},o)):t).top&&(c.top=t.top-o.top+i),null!=t.left&&(c.left=t.left-o.left+a),"using"in t?t.using.call(e,c):l.css(c)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){_.offset.setOffset(this,t,e)});var e,n=this[0],r={top:0,left:0},i=n&&n.ownerDocument;return i?(e=i.documentElement,_.contains(e,n)?(r=n.getBoundingClientRect(),n=jt(i),{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r):void 0},position:function(){var e,t,n,r;if(this[0])return n=this[0],r={top:0,left:0},"fixed"===_.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(r=_.nodeName(e[0],"html")?r:e.offset()).top+=_.css(e[0],"borderTopWidth",!0),r.left+=_.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-_.css(n,"marginTop",!0),left:t.left-r.left-_.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||h})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;_.fn[t]=function(e){return f(this,function(e,t,n){var r=jt(e);return void 0===n?r?r[i]:e[t]:void(r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n)},t,e,arguments.length)}}),_.each(["top","left"],function(e,n){_.cssHooks[n]=Be(m.pixelPosition,function(e,t){return t?(t=S(e,n),We.test(t)?_(e).position()[n]+"px":t):void 0})}),_.each({Height:"height",Width:"width"},function(o,s){_.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,e){_.fn[e]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return f(this,function(e,t,n){var r;return _.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?_.css(e,t,i):_.style(e,t,n,i)},s,n?e:void 0,n,null)}})}),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),_.fn.andSelf=_.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var It=w.jQuery,Mt=w.$;return _.noConflict=function(e){return w.$===_&&(w.$=Mt),e&&w.jQuery===_&&(w.jQuery=It),_},I||(w.jQuery=w.$=_),_}),!function(u,e,t,f){for(var p,h,d,m,n=t.createElement("div").style,t="Transform",r=["O"+t,"ms"+t,"Webkit"+t,"Moz"+t],i=r.length,v=("Float32Array"in e),o=/Matrix([^)]*)/,s=/^\s*matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*(?:,\s*0(?:px)?\s*){2}\)\s*$/,a="transform",l="transformOrigin",g="translate",y="rotate",x="scale",b="skew",w="matrix";i--;)r[i]in n&&(u.support[a]=p=r[i],u.support[l]=p+"Origin");function T(e){e=e.split(")");var t,n,r,i=u.trim,o=-1,s=e.length-1,a=v?new Float32Array(6):[],l=v?new Float32Array(6):[],c=v?new Float32Array(6):[1,0,0,1,0,0];for(a[0]=a[3]=c[0]=c[3]=1,a[1]=a[2]=a[4]=a[5]=0;++o<s;){switch(n=i((t=e[o].split("("))[0]),r=t[1],l[0]=l[3]=1,l[1]=l[2]=l[4]=l[5]=0,n){case g+"X":l[4]=parseInt(r,10);break;case g+"Y":l[5]=parseInt(r,10);break;case g:r=r.split(","),l[4]=parseInt(r[0],10),l[5]=parseInt(r[1]||0,10);break;case y:r=k(r),l[0]=f.cos(r),l[1]=f.sin(r),l[2]=-f.sin(r),l[3]=f.cos(r);break;case x+"X":l[0]=+r;break;case x+"Y":l[3]=r;break;case x:r=r.split(","),l[0]=r[0],l[3]=1<r.length?r[1]:r[0];break;case b+"X":l[2]=f.tan(k(r));break;case b+"Y":l[1]=f.tan(k(r));break;case w:r=r.split(","),l[0]=r[0],l[1]=r[1],l[2]=r[2],l[3]=r[3],l[4]=parseInt(r[4],10),l[5]=parseInt(r[5],10)}c[0]=a[0]*l[0]+a[2]*l[1],c[1]=a[1]*l[0]+a[3]*l[1],c[2]=a[0]*l[2]+a[2]*l[3],c[3]=a[1]*l[2]+a[3]*l[3],c[4]=a[0]*l[4]+a[2]*l[5]+a[4],c[5]=a[1]*l[4]+a[3]*l[5]+a[5],a=[c[0],c[1],c[2],c[3],c[4],c[5]]}return c}function _(e){var t,n,r,i=e[0],o=e[1],s=e[2],a=e[3];return i*a-o*s?(r=(i/=t=f.sqrt(i*i+o*o))*s+(o/=t)*a,r/=n=f.sqrt((s-=i*r)*s+(a-=o*r)*a),i*(a/=n)<o*(s/=n)&&(i=-i,o=-o,r=-r,t=-t)):t=n=r=0,[[g,[+e[4],+e[5]]],[y,f.atan2(o,i)],[b+"X",f.atan(r)],[x,[t,n]]]}function C(e,t){var n,r=+!e.indexOf(x),i=e.replace(/e[XY]/,"e");switch(e){case g+"Y":case x+"Y":t=[r,t?parseFloat(t):r];break;case g+"X":case g:case x+"X":n=1;case x:t=t?(t=t.split(","))&&[parseFloat(t[0]),parseFloat(1<t.length?t[1]:e==x?n||t[0]:r+"")]:[r,r];break;case b+"X":case b+"Y":case y:t=t?k(t):0;break;case w:return _(t?D(t):[1,0,0,1,0,0])}return[[i,t]]}function E(e){return s.test(e)}function S(e){return e.replace(/(?:\([^)]*\))|\s/g,"")}function A(e,t,n){for(;n=t.shift();)e.push(n)}function k(e){return~e.indexOf("deg")?parseInt(e,10)*(2*f.PI/360):~e.indexOf("grad")?parseInt(e,10)*(f.PI/200):parseFloat(e)}function D(e){return[(e=/([^,]*),([^,]*),([^,]*),([^,]*),([^,p]*)(?:px)?,([^)p]*)(?:px)?/.exec(e))[1],e[2],e[3],e[4],e[5],e[6]]}p||(u.support.matrixFilter=h=""===n.filter),u.cssNumber[a]=u.cssNumber[l]=!0,p&&p!=a?(u.cssProps[a]=p,u.cssProps[l]=p+"Origin",p=="Moz"+t?d={get:function(e,t){return t?u.css(e,p).split("px").join(""):e.style[p]},set:function(e,t){e.style[p]=/matrix\([^)p]*\)/.test(t)?t.replace(/matrix((?:[^,]*,){4})([^,]*),([^)]*)/,w+"$1$2px,$3px"):t}}:/^1\.[0-5](?:\.|$)/.test(u.fn.jquery)&&(d={get:function(e,t){return t?u.css(e,p.replace(/^ms/,"Ms")):e.style[p]}})):h&&(d={get:function(e,t,n){var t=t&&e.currentStyle?e.currentStyle:e.style,r=t&&o.test(t.filter)?[(r=RegExp.$1.split(","))[0].split("=")[1],r[2].split("=")[1],r[1].split("=")[1],r[3].split("=")[1]]:[1,0,0,1];return u.cssHooks[l]?(e=u._data(e,"transformTranslate",void 0),r[4]=e?e[0]:0,r[5]=e?e[1]:0):(r[4]=t&&parseInt(t.left,10)||0,r[5]=t&&parseInt(t.top,10)||0),n?r:w+"("+r+")"},set:function(e,t,n){var r,i=e.style;n||(i.zoom=1),n=["Matrix(M11="+(t=T(t))[0],"M12="+t[2],"M21="+t[1],"M22="+t[3],"SizingMethod='auto expand'"].join(),r=(r=e.currentStyle)&&r.filter||i.filter||"",i.filter=o.test(r)?r.replace(o,n):r+" progid:DXImageTransform.Microsoft."+n+")",u.cssHooks[l]?u.cssHooks[l].set(e,t):((r=u.transform.centerOrigin)&&(i["margin"==r?"marginLeft":"left"]=-e.offsetWidth/2+e.clientWidth/2+"px",i["margin"==r?"marginTop":"top"]=-e.offsetHeight/2+e.clientHeight/2+"px"),i.left=t[4]+"px",i.top=t[5]+"px")}}),d&&(u.cssHooks[a]=d),m=d&&d.get||u.css,u.fx.step.transform=function(e){var t,n,r,i,o=e.elem,s=e.start,a=e.end,l=e.pos,c="";for(s&&"string"!=typeof s||(s=s||m(o,p),h&&(o.style.zoom=1),a=a.split("+=").join(s),u.extend(e,function(e,t){var n,r,i,o,s={start:[],end:[]},a=-1;"none"!=e&&!E(e)||(e=""),"none"!=t&&!E(t)||(t=""),e&&t&&!t.indexOf("matrix")&&D(e).join()==D(t.split(")")[0]).join()&&(s.origin=e,e="",t=t.slice(t.indexOf(")")+1));if(e||t){if(e&&t&&S(e)!=S(t))s.start=_(T(e)),s.end=_(T(t));else for((e=e&&e.split(")"))&&(n=e.length),(t=t&&t.split(")"))&&(n=t.length);++a<n-1;)e[a]&&(r=e[a].split("(")),t[a]&&(i=t[a].split("(")),o=u.trim((r||i)[0]),A(s.start,C(o,r?r[1]:0)),A(s.end,C(o,i?i[1]:0));return s}}(s,a)),s=e.start,a=e.end),t=s.length;t--;)switch(n=s[t],r=a[t],n[i=0]){case g:i="px";case x:i=i||"",c=n[0]+"("+f.round(1e5*(n[1][0]+(r[1][0]-n[1][0])*l))/1e5+i+","+f.round(1e5*(n[1][1]+(r[1][1]-n[1][1])*l))/1e5+i+")"+c;break;case b+"X":case b+"Y":case y:c=n[0]+"("+f.round(1e5*(n[1]+(r[1]-n[1])*l))/1e5+"rad)"+c}e.origin&&(c=e.origin+c),d&&d.set?d.set(o,c,1):o.style[p]=c},u.transform={centerOrigin:"margin"}}(jQuery,window,document,Math),!function(d){function e(t,n,r){if(Object.defineProperty)try{Object.defineProperty(t,n,{writable:!0,value:r})}catch(e){t[n]=r}else t[n]=r}function r(e,n){return e.replace(/\$([$&\d])/g,function(e,t){return"$"===t?"$":"&"===t?n[0]:"string"==typeof n[t]?n[t]:e})}window.HTMLCanvasElement&&!HTMLCanvasElement.prototype.toBlob&&e(HTMLCanvasElement.prototype,"toBlob",function(e,t,n){for(var r=atob(this.toDataURL(t,n).split(",")[1]),i=r.length,o=new Uint8Array(i),s=0;s<i;s++)o[s]=r.charCodeAt(s);e(new Blob([o],{type:t||"image/png"}))}),e(String.prototype,"format",function(e,r){e instanceof Object?i=e:"boolean"==typeof(i=Array.from(arguments))[i.length-1]&&(r=i.pop());var i,o=0;return this.replace(/\{(\w+)\}(?!\})/g,function(e,t){t=i[t];return null==t&&(t=r?"":e),String(t)}).replace(/(%s)/g,function(e,t){var n=i[o++];return null==n&&(n=r?"":e),String(n)})}),e(String.prototype,"select",function(e,t){var n;return e.global?(n=[],this.replace(e,function(){var e=Array.from(arguments).slice(0,-2);"string"==typeof t?n.push(r(t,e)):"number"==typeof t?n.push(e[t]||""):n.push(e[0])}),n):(e=this.match(e))?"string"==typeof t?r(t,e):"number"==typeof t?e[t]||"":e[0]:""}),e(String.prototype,"matches",function(e,t){var n=[];return e.global?(this.replace(e,function(){var e=Array.from(arguments).slice(0,-2);0<t&&(e=e.slice(t)),n.push(e)}),n):(e=Array.from(this.match(e)))?0<t?e.slice(t):e:[]}),e(Array.prototype,"add",function(e){-1===this.indexOf(e)&&this.push(e)}),e(Array.prototype,"remove",function(e){e=this.indexOf(e);-1<e&&this.splice(e,1)}),e(Array.prototype,"index",function(e){var t={};if(e)for(var n=0;n<this.length;n++){var r=e(this[n]),i=r[0],o=r[1];t[i]=o}else for(n=0;n<this.length;n++)t[o=this[n]]=!0;return t}),e(Number.prototype,"toMaxFixed",function(e){e=Math.pow(10,e);return Math.round(this*e)/e});function t(r,i,o,s){var e;if(!r&&4<=arguments.length&&"function"!=typeof o)return e=Array.from(arguments).slice(1),f.apply(this,e);if("function"!=typeof o&&console.warn('The "handler" must be specified!'),i.includes(" "))for(var t=i.split(" "),n=0;n<t.length;n++)this.on(t[n],o,s);else this.each(function(e,n){var t;n._events||(n._events={}),n._events[i]||(n._events[i]=[]),n._events[i].push({name:i,handler:o.__original||o,scope:s,bindedHandler:t=r?function(e){if(d(n).off(i,o,s),e&&e.originalEvent)for(var t in e.originalEvent)void 0===e[t]&&(e[t]=e.originalEvent[t]);d.digestAwait(o.call(s||this,e))}:function(e){if(e&&e.originalEvent)for(var t in e.originalEvent)void 0===e[t]&&(e[t]=e.originalEvent[t]);d.digestAwait(o.call(s||this,e))}}),f.call(d(n),i,t)});return this}function i(e,n,t,r,i){var o=!0,s=0;function a(){o=!0}function l(){o=!1,s=setTimeout(function(){s=0,o||(e&&c(),r.call(i))},t)}function c(){s&&clearTimeout(s);for(var e=0;e<n.length;e++){var t=d(n[e]);t.off("mouseenter",a),t.off("mouseleave",l)}}for(var u=0;u<n.length;u++){var f=d(n[u]);f.on("mouseenter",a),f.on("mouseleave",l)}return c}function n(e){return-1<navigator.userAgent.toLowerCase().indexOf(e)}var o,s,a,l,c,u=d.fn.show,f=(d.fn.show=function(){return this.css("display",""),this.removeAttr("hidden"),"none"===this.css("display")&&u.apply(this,arguments),this},d.fn.hide=function(){return this.attr("hidden","hidden"),this},d.fn.on),p=d.fn.off;d.fn.on=function(){var e=Array.from(arguments);return e.unshift(!1),t.apply(this,e)},d.fn.once=function(){var e=Array.from(arguments);return e.unshift(!0),t.apply(this,e)},d.fn.off=function(o,s,a){return this.each(function(e,t){if(t._events){var n=t._events[o];if(n)for(var r=n.length-1;0<=r;r--){var i=n[r];i.handler!==s||i.scope!==a&&(i.scope||a)||(n.splice(r,1),d(t).off(i.name,i.bindedHandler))}}}),p.apply(this,arguments)},d.fn.indexOf=function(e){e=d(e);for(var t=0;t<this.length;t++)if(this[t]===e[0])return t;return-1},d.fn.cssNum=function(e){e=this.css(e);return parseFloat(e)||0},d.fn.findNearestBehind=function(e){var t=d(e);if(!t.length)return t;for(var n=0;n<t.length;n++)if(2&t[n].compareDocumentPosition(this[0]))return t.eq(n);return t.eq(t.length-1)},d.fn.formObj=function(e){var n={};return this.find("input, textarea").each(function(e,t){t.name&&("radio"!==t.type||t.checked)&&(n[t.name]=String(t.value).trim())}),e&&d.extend(n,e),n},d.fn.formData=function(r){var i=new FormData;if(this.find("input, textarea").each(function(e,t){var n=r&&t.name in r;!t.name||n||"radio"===t.type&&!t.checked||i.append(t.name,String(t.value).trim())}),r)for(var e in r)!1!==r[e]&&i.append(e,String(r[e]).trim());return i},d.fn.checkValidity=function(){var e=this.find("input, textarea"),t=this.find("input:invalid, textarea:invalid");if(e.addClass("touched"),t.length)for(var n=0;n<t.length;n++){var r=t[n];if(d(r).is(":visible"))return r.checkValidity(),!1}return!0},d.fn.outerWidth=function(){if(!this[0])return 0;var e=parseInt(this.css("margin-left"))||0,t=parseInt(this.css("margin-right"))||0;return this[0].offsetWidth+e+t},d.fn.outerHeight=function(){if(!this[0])return 0;var e=parseInt(this.css("margin-top"))||0,t=parseInt(this.css("margin-bottom"))||0;return this[0].offsetHeight+e+t},d.fn.innerWidth=function(){if(!this[0])return 0;var e=parseInt(this.css("padding-left"))||0,t=parseInt(this.css("padding-right"))||0;return this[0].clientWidth-e-t},d.fn.innerHeight=function(){if(!this[0])return 0;var e=parseInt(this.css("padding-top"))||0,t=parseInt(this.css("padding-bottom"))||0;return this[0].clientHeight-e-t},d.fn.alignTo=function(e,t,n,r){(e=d(e)).hasFixedAncestor()&&this.css("position","fixed"),t?1===t.length&&(t+="c"):t="bc","boolean"==typeof n&&(r=n,n=null),(n="string"==typeof n?n.split(" ").map(Number):"number"==typeof n?[n]:n||[])[0]=n[0]||0,n[1]=(void 0===n[1]?n[0]:n[1])||0,r&&this.height(0);var i,o,s="fixed"===this.css("position"),a=e.is("html, body"),e=d.extend({},e[0].getBoundingClientRect()),a=(e.width=e.width||e.right-e.left,e.height=e.height||e.bottom-e.top,a&&s&&(e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight,e.top=0,e.bottom=e.height),r&&this.height("auto"),t.startsWith("t")||t.startsWith("b")),l=this.find("[class*=trangle]"),n=(l.removeClass("ap-align-top").removeClass("ap-align-bottom").removeClass("ap-align-left").removeClass("ap-align-right"),l.length&&(a?(l.addClass("ap-align-top"),n[1]+=l[0].offsetHeight,l.removeClass("ap-align-top")):(l.addClass("ap-align-left"),n[0]+=l[0].offsetWidth,l.removeClass("ap-align-left"))),e.width+=2*n[0],e.height+=2*n[1],e.left-=n[0],e.top-=n[1],e.right+=n[0],e.bottom+=n[1],d(window).width()),c=d(window).height(),u=this[0].offsetWidth,f=this[0].offsetHeight,p=0,h=0;"cc"===t?(p=e.left+e.width/2-u/2,h=e.top+e.height/2-f/2):a?(t.startsWith("b"),a=t.startsWith("t"),i=e.top,o=c-e.bottom,h=a?e.top-f:e.top+e.height,a&&h<0&&i<o?(h=e.bottom,a=!1):c<h+f&&o<i&&(h=e.top-f,a=!0),l.addClass(a?"ap-align-top":"ap-align-bottom"),r&&(h<0?this[h=0].style.height=i+"px":c<h+f&&(this[0].style.height=o+"px"),u=this[0].offsetWidth),t.includes("c")?p=e.left+e.width/2-u/2:t.includes("l")?p=e.left:t.includes("r")&&(p=e.left+e.width-u),n<p+u?p=n-u:p<0&&(p=0),l.length&&(a=u>=e.width?e.left+e.width/2-p-l[0].offsetWidth/2:u/2-l[0].offsetWidth/2,l.css("left",a))):(r=t.startsWith("l"),t.startsWith("r"),i=e.left,o=n-e.right,t.includes("c")?h=e.top+e.height/2-f/2:t.includes("l")?h=e.top:t.includes("r")&&(h=e.top+e.height-f),c<h+f?h=c-f:h<0&&(h=0),p=r?e.left-u:e.left+e.width,r&&p<0&&i<o?(p=e.right,r=!1):n<p+u&&o<i&&(p=e.left-u,r=!0),l.addClass(r?"ap-align-left":"ap-align-right"),l.length&&(a=t.endsWith("b")?e.top+e.height/2-h-l[0].offsetHeight/2:t.endsWith("t")?l[0].offsetHeight:f/2-l[0].offsetHeight/2,l.css("top",a))),s||(c=this[0].offsetParent)&&((n=d.extend({},c.getBoundingClientRect())).width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,p-=n.left+d(c).cssNum("border-left-width"),h-=n.top+d(c).cssNum("border-top-width"),t.endsWith("t")&&(h=-l[0].offsetHeight/2)),this.css({left:parseInt(p),top:parseInt(h)})},d.fn.hasFixedAncestor=function(){for(var e=this,t=e.css("position");e&&e.length&&e[0]!==document.documentElement&&"fixed"!==t;)t=(e=e.parent()).css("position");return"fixed"===t},d.fn.scrollToView=function(e,t){e=e||0,t=t||500;var n,r=this[0];if(r){for(var i=r.parentNode;i&&i!==document&&(["visible","hidden"].includes(d(i).css("overflow-y"))||i.scrollHeight<=i.clientHeight);)i=i.parentNode;if(i!==document){for(var o=r.offsetTop,s=r,a=i.scrollTop;s.offsetParent&&s.offsetParent!==i;)o+=s.offsetParent.offsetTop,s=s.offsetParent;o-e<a?n=Math.max(0,o-e):o+r.offsetHeight+e>a+i.clientHeight&&(n=Math.min(i.scrollHeight,o+r.offsetHeight+e-i.clientHeight)),0<=(n=n===a?void 0:n)&&(i===document.documentElement||i===document.body?d("html, body"):d(i)).animate({scrollTop:n},t)}}},d.fn.scrollToTop=function(e,t){e=e||0,t=t||500;var n=this[0];if(n){for(var r=n.parentNode;r&&r!==document&&(["visible","hidden"].includes(d(r).css("overflow-y"))||r.scrollHeight<=r.clientHeight);)r=r.parentNode;if(r!==document){var i=n.offsetTop,o=n;for(r.scrollTop;o.offsetParent&&o.offsetParent!==r;)i+=o.offsetParent.offsetTop,o=o.offsetParent;n=Math.max(0,i-e),(r===document.documentElement||r===document.body?d("html, body"):d(r)).animate({scrollTop:n},t)}}},d.fn.stopScroll=function(){this.each(function(e,r){var i;d(r).on("wheel",r._scrollWheelHandler=function(e){var t=r.scrollTop;e.deltaY<0?t<=0&&r.scrollHeight>r.clientHeight&&e.preventDefault():t>=r.scrollHeight-r.offsetHeight&&r.scrollHeight>r.clientHeight&&e.preventDefault()},this),d.env.isTouch&&(d(r).on("touchstart",r._scrollTouchStartHandler=function(e){e.stopPropagation(),i=e.touches[0].pageY}),d(r).on("touchmove",r._scrollTouchMoveHandler=function(e){e.stopPropagation();var t=r.scrollTop,n=e.touches[0].pageY;i<n?t<=0&&r.scrollHeight>r.clientHeight&&e.preventDefault():n<i&&t>=r.scrollHeight-r.offsetHeight&&r.scrollHeight>r.clientHeight&&e.preventDefault()}))})},d.fn.restoreScroll=function(){this.each(function(e,t){t._scrollWheelHandler&&(d(t).off("wheel",t._scrollWheelHandler),delete t._scrollWheelHandler),t._scrollTouchStartHandler&&(d(t).off("touchstart",t._scrollTouchStartHandler),delete t._scrollTouchStartHandler),t._scrollTouchMoveHandler&&(d(t).off("touchmove",t._scrollTouchMoveHandler),delete t._scrollTouchMoveHandler)})},d.fn.onPan=function(u,f){this.each(function(e,t){var c=d(t);t.addEventListener("touchstart",function(e){c.css("transition","none");var i=e.changedTouches[0].pageX,o=e.changedTouches[0].pageY,s=c.css("transform"),e=s.select(/matrix\((.+?)\)/,"$1").split(/,\s*/),t=+e[0]||0,r=+e[4]||0,a=t?" scale("+t+")":"";function l(e){var t=e.changedTouches[0].pageX,n=e.changedTouches[0].pageY,t=t-i;1<Math.abs(t/(n-o))&&(e.preventDefault(),c.css("transform","translateX("+(t+r)+"px)"+a))}document.addEventListener("touchmove",l,!1),document.addEventListener("touchend",function e(t){c.css("transition",""),c.dir("fit")?c.css("transform",s):c.css("transform",""),document.removeEventListener("touchmove",l,!1),document.removeEventListener("touchend",e,!1);var n=t.changedTouches[0].pageX,r=t.changedTouches[0].pageY,n=n-i,r=r-o;1<Math.abs(n/r)&&20<Math.abs(n)?(t.preventDefault(),0<n?u.call(f,"l"):u.call(f,"r")):Math.abs(n/r)<1&&20<Math.abs(r)&&(t.preventDefault(),0<r?u.call(f,"b"):u.call(f,"t"))},!1)},!1)})},d.fn.getTextWidth=function(){var e=d("#test-text-element"),t=((e=e.length?e:d('<div id="test-text-element" style="position: fixed; left: 0; top: -100px;"></div>').appendTo("body")).css("font-size",this.css("font-size")),e.css("font-family",this.css("font-family")),e.css("font-weight",this.css("font-weight")),e.css("letter-spacing",this.css("letter-spacing")),e.text(this.text()),e.show(),e.width());return e.hide(),t},d.fn.resetFontSizeToBeContained=function(l){this.each(function(e,t){for(var n=d(t),r=(n.css("font-size",""),n.css("overflow-x","hidden"),n.innerWidth()),i=t.scrollWidth-n.cssNum("padding-left")-n.cssNum("padding-right"),o=parseInt(n.css("font-size")),s=0;r<i&&0<r&&10<o&&s<3;){s++;var a=Math.floor(o*r/i),a=Math.max(a,l||10);n.css("font-size",a+"px"),r=n.innerWidth(),i=t.scrollWidth-n.cssNum("padding-left")-n.cssNum("padding-right"),o=a}n.css("overflow-x","")})},d.fn.resetFontSizeToBeLine=function(s){s=s||1,this.each(function(e,t){var n=d(t),r=(n.css("font-size",""),parseInt(n.css("line-height"))),i=t.scrollHeight||t.offsetHeight;if(i&&Math.round(i/r)>s)for(var o=parseInt(n.css("font-size"));10<=o&&(n.css("font-size",--o+"px"),i=t.scrollHeight||t.offsetHeight,!(Math.round(i/r)<=s)););})},d.until=function(e,t,n,r){var i=setInterval(function(){var e=t.call(r);e&&(clearInterval(i),n.call(r,e))},e)},d.parseQuery=function(e){for(var t=e.select(/\?(.+)/,1).split("&").filter(function(e){return e}).map(function(e){e=e.split("=");return e[1]=decodeURIComponent(e[1]),e}),n={},r=0;r<t.length;r++)t[r][0]&&t[r][1]&&(n[t[r][0]]=t[r][1]);return n},d.useQuery=function(e,t){var n,r=e.includes("?");if("string"==typeof t)return e+(r?"&":"?")+t;for(n in t)e+=(r?"&":"?")+n+"="+encodeURIComponent(t[n]),r=!0;return e},d.encodeHTML=function(e){var t={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&apos;"};return e.replace(/&|>|<|"|'/g,function(e){return t[e]||e})},d.formatSize=function(e){if(!(0<e))return"";var t=parseInt(Math.floor(Math.log(e)/Math.log(1024))),e=e/Math.pow(1024,t);return(e=(e=e<10?e.toFixed(2):e<100?e.toFixed(1):e.toFixed(0)).replace(/\.0+$/,""))+" "+["B","KB","MB","GB","TB"][t]},d.secondToDate=function(e){return(Math.floor(e/60%60)<10?"0"+Math.floor(e/60%60):Math.floor(e/60%60))+":"+(Math.floor(e%60)<10?"0"+Math.floor(e%60):Math.floor(e%60))},d.formatEnglishDate=function(e){var e=new Date(1e3*e),t=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Spt","Oct","Nov","Dec"),n=new Array("st","nd","rd",""),r=e.getFullYear(),t=t[e.getMonth()],e=e.getDate();return t+" "+(e+=e%10<1||3<e%10?n[3]:e%10==1?n[0]:e%10==2?n[1]:n[2])+"."+r},d.formatDate=function(n,e){var r={y:"getFullYear",M:"getMonth",d:"getDate",h:"getHours",m:"getMinutes",s:"getSeconds"};return(e=e||"yyyy-MM-dd hh:mm:ss").replace(/y+|M+|d+|h+|m+|s+/g,function(e){var t=r[e[0]],t=n[t]();return"M"===e[0]&&(t+=1),String(t).padStart(e.length,"0")})},d.getScrollBarWidth=function(e){var t;return d(e).length?t=d(e)[0].offsetWidth-d(e)[0].clientWidth:(t=(e=d('<div style="width:100px; height:100px; overflow:scroll; position:absolute; left:-100px; top:-100px;"></div>').appendTo("body"))[0].offsetWidth-e[0].clientWidth,e.remove()),t},d.onAllLeave=function(e,t,n,r){return i(!1,e,t,n,r)},d.onceAllLeave=function(e,t,n,r){return i(!0,e,t,n,r)},d.selectFile=function(n,r,i,o){return n=n||"*","function"==typeof(r=r||!1)&&(o=i,i=r,r=!1),new Promise(function(t){var e=d('<input type="file" accept="'+n+'" '+(r?"multiple":"")+' style="display: none">');e.on("change",function(e){e=r?e.target.files:e.target.files[0];i&&i.call(o,e),t(e)}),d(document).once("focus",function(){e.remove()}),d(document.body).append(e),e[0].click()})},d.selectMultipleFiles=function(e,t,n){return d.selectFile(e,!0,t,n)},d.preloadImage=function(e,s,a){return new Promise(function(n,r){function i(e){o.off("load",i),o.off("error",i);var t=!0===e||e&&"load"===e.type;o.remove(),s&&s.call(a,t?o[0]:null),"load"===e.type?n(o):r()}var o=d('<img crossorigin="anonymous" src="'+e+'" hidden>');o.appendTo("body"),o[0].naturalWidth&&o[0].naturalHeight&&o[0].complete?i(!0):o.on("load error",i)})},d.loadScript=function(r,i,o){return new Promise(function(t,n){var e=document.createElement("script");e.src=r,document.head.appendChild(e),d(e).on("load error",function(e){i&&i.call(o),("load"===e.type?t:n)()}),document.head.removeChild(e)})},d.loadSources=function(u,f,p){return new Promise(function(t,n){var r=0,i=0;if((u="string"==typeof u?[u]:u)instanceof Array){for(var e={css:[],js:[]},o=0;o<u.length;o++)("css"===u[o].select(/\.(\w+)(?:$|\?)/,1)?e.css:e.js).push(u[o]);u=e}function s(e){++r>=i&&(f&&f.call(p),("load"===e.type?t:n)())}for(o=0;o<u.css.length;o++){i++;var a=u.css[o];d('<link rel="stylesheet" href="{0}">'.format(a)).appendTo("head").on("load",s)}for(o=0;o<u.js.length;o++){i++;var l=u.js[o],c=document.createElement("script");c.async=!1,c.src=l,document.head.appendChild(c),d(c).on("load error",s)}})},d.defer=function(e,t,n){t=t&&"object"===_typeof(t)?(n=t,0):t||0,e=n?e.bind(n):e;var r=0;return r=setTimeout(function(){r=0,e()},t),{cancel:function(){r&&(clearTimeout(r),r=0),0}}},d.throttle=function(e,t){function n(){r||(e.apply(this,arguments),r=setTimeout(function(){r=0},t))}var r=0;return n.__original=e,n},d.lazyThrottle=function(e,t){function n(){s=setTimeout(function(){s=0,i&&(e.apply(o,i),n(),i=o=null)},t)}function r(){o=this,i=Array.from(arguments),s||n()}var i,o,s=0;return r.__original=e,r},d.debounce=function(t,e){function n(){o&&clearTimeout(o),i=Array.from(arguments),r=this,o=setTimeout(function(e){o=0,t.apply(r,e)},e)}var r,i,o=0;return n.__original=t,n.__cancel=function(){o&&(clearTimeout(o),o=0)},n.__flush=function(){o&&(clearTimeout(o),o=0,t.apply(r,i))},n},d.onReady=function(e,t){e=e.bind(t,d),d._domLoaded?e():d(document).once("DOMContentLoaded",e)},d(document).once("DOMContentLoaded",function(){d._domLoaded=!0}),d.onWindowLoaded=function(e,t){d._winLoaded?e.call(t):d(window).once("load",e,t)},d(window).once("load",function(){d._winLoaded=!0}),d.store={prefix:"",isSupported:function(){try{return localStorage.__supports_test=1,delete localStorage.__supports_test,!0}catch(e){return!1}},has:function(e){try{return this.prefix+e in localStorage}catch(e){return!1}},get:function(e){try{var t,n=localStorage[this.prefix+e];if(n&&"string"==typeof n)return n=JSON.parse(n),(t=localStorage[this.prefix+e+"_expire"])&&t<Date.now()?(delete localStorage[this.prefix+e],delete localStorage[this.prefix+e+"_expire"],null):n}catch(e){}return null},set:function(e,t,n){try{return localStorage[this.prefix+e]=JSON.stringify(t),n&&(localStorage[this.prefix+e+"_expire"]=Date.now()+n),!0}catch(e){return!1}},remove:function(e){try{return delete localStorage[this.prefix+e],delete localStorage[this.prefix+e+"_expires"],!0}catch(e){return!1}}};for(o in d.env={isWin:n("windows"),isMac:n("macintosh"),isMobile:n("android")||n("iphone"),isAndroid:n("android"),isIPhone:n("iphone"),isIE:n("msie")||n("trident"),isEdge:n("edge"),isFirefox:n("firefox"),isChrome:n("chrome")&&!n("edge"),isSafari:n("safari")&&!n("chrome"),isWeixin:n("micromessenger"),isTouch:"ontouchstart"in window,hasMouse:!("ontouchstart"in window)||n("touch")&&n("msie")},d.env)d.env[o]&&(s=o.replace(/^(?:is|has)/,"").toLowerCase(),d("html").addClass("env-"+s));function h(e){for(var t,n=window.innerWidth,r=a.length-1;0<=r;r--)(e=a[r]).on&&e.width<t&&e.width>=n?e.on.call(e.scope):e.un&&e.width>=t&&e.width<n&&e.un.call(e.scope)}d.Emitter=function(){this.hasOwnProperty("_events")||(this._events={})},d.Emitter.prototype={on:function(e,t,n){return t||console.warn('The "handler" must be specified!'),(this._events[e]||(this._events[e]=[])).push({handler:t,scope:n||null}),this},once:function(e,t,n){return t||console.warn('The "handler" must be specified!'),(this._events[e]||(this._events[e]=[])).push({handler:t,scope:n||null,once:!0}),this},off:function(e,t,n){var r=this._events[e];if(r)for(var i=r.length-1;0<=i;i--){var o=r[i];t&&o.handler!==t||n&&o.scope!==n||r.splice(i,1)}return this},hasListener:function(e,t,n){var r=this._events[e];if(!t)return r&&0<r.length;if(r&&t)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(s.handler===t&&(!n||s.scope===n))return!0}return!1},trigger:function(e){var t=this._events[e];if(t)for(var n=Array.from(arguments).slice(1),r=0;r<t.length;r++){var i=t[r];!0===i.once&&t.splice(r--,1),i.handler.apply(i.scope,n)}}},d.req=function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(n){var e=new XMLHttpRequest,r=e.getResponseHeader.bind(e);if(i.withCredentials)try{e.withCredentials=!0}catch(e){console.log(e)}i.onuploadprogress&&e.upload.addEventListener("progress",function(e){e.lengthComputable&&d.digestAwait(i.onuploadprogress(e))},!1),i.onprogress&&e.addEventListener("progress",function(e){e.lengthComputable&&d.digestAwait(i.onprogress(e))},!1),i.headers&&(i.beforeSend=function(e){for(var t in i.headers)e.setRequestHeader(t,i.headers[t])}),i.xhr?i.xhr=i.xhr:i.xhr=function(){return e},i.url=t,void 0===i.dataType&&(i.dataType="json"),!1===i.processData&&"object"===_typeof(i.data)?(i.data=JSON.stringify(i.data),i.processData=!1,i.contentType=!1):("string"==typeof i.data||i.data instanceof FormData)&&(i.processData=!1,i.contentType=!1),i.success=function(e,t){n({ok:!0,data:e,status:t,getHeader:r}),d.defer(d.digest)},i.error=function(e){n({ok:!1,data:e.responseJSON,status:e.status,getHeader:r}),d.defer(d.digest)},i.getAbort&&i.getAbort(function(){e.abort()}),d.ajax(i)})},d.req.extendMethods=function(i){for(var e=0,t=["HEAD","GET","POST","PUT","DELETE"];e<t.length;e++)!function(){var r=t[e];["POST","PUT"].includes(r)?i[r.toLowerCase()]=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return n.method=r,n.data=t,i(e,n)}:i[r.toLowerCase()]=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t.method=r,i(e,t)}}()},d.req.extendMethods(d.req),d.req.overwrite=function(l,c){var e=function(){var e=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t,n,r,i,o,s,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t=a.length,n=new Array(t),r=0;r<t;r++)n[r]=a[r];return o=l.apply(void 0,n),i=o.url,o=o.options,e.next=4,d.req(i,o);case 4:if(s=e.sent,c)return e.next=8,c.apply(void 0,[s].concat(n));e.next=9;break;case 8:s=e.sent;case 9:return e.abrupt("return",s);case 10:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();return d.req.extendMethods(e),e},d.fn.live=function(e,t,n){return d(this.context).on(e,this.selector,t,n),this},d.fn.die=function(e,t){return d(this.context).off(e,this.selector||"**",t),this},e(String.prototype,"padLeft",String.prototype.padStart),e(String.prototype,"padRight",String.prototype.padEnd),d.fn.$on=d.fn.on,d.fn.$once=d.fn.once,d.fn.$off=d.fn.off,d.fn.$trigger=function(o){var s=Array.from(arguments).slice(1);return this.each(function(e,t){if(t._events){var n=t._events[o];if(n)for(var r=0;r<n.length;r++){var i=n[r];i.bindedHandler.apply(null,s),i.once&&r--}}}),this},d.fn.onAllImageLoaded=function(e,t){function n(){++o===i&&s()}var r=this.find("img"),i=r.length,o=0,s=function(){e.call(t)};o===i?s():r.each(function(e,t){t.complete?n():d(t).once("load",n)})},d.fn.syncTextHeights=function(){var r=null,i=0,e=0;if(this.css("height",""),this.each(function(e,t){var t=d(t),n=t.text().length;i<n&&(i=n,r=t)}),r.is(":visible"))e=r[0].offsetHeight;else{var t=this.filter(":visible").eq(0);if(!t.length)return!1;var n=r.clone();t.after(n.show()),e=n[0].offsetHeight,n.remove()}return 0<e&&(this.css("height",e),!0)},d.fn.syncColWidths=function(){var e,t=[];this.css("width","");for(var n=0;n<this.length;n++){var r=this[n];t[n]=r.offsetWidth}return 0<(e=Math.max.apply(null,t))&&(this.css("width",e),!0)},d.fn.stopableDelay=function(e,t){return this.animate({color:"inherit"},e,t)},l=!(a=[]),c=window.innerWidth,d.onToggleWidth=function(e,t,n,r){a.push({on:t,un:n,scope:r,width:e}),c<=e&&t&&t.call(r),l||(d(window).on("resize",d.throttle(h,500)),l=!0)},d.unToggleWidth=function(e,t,n){for(var r=a.length-1;0<=r;r--){var i=a[r];if((e&&i.on===e||t&&i.un===t)&&(!n||n===i.scope)){a.splice(r,1);break}}0===a.length&&(d(window).off("resize",h),l=!1)},d.onToggleMobile=function(e,t,n){return d.onToggleWidth(768,e,t,n)},d.nocache=function(e){return e.includes("?")?e+="&nocache=1":e+="?nocache=1",e},d.ifcache=function(e){return(location.href.includes("nocache=1")||location.hostname.endsWith(".dev"))&&(e.includes("?")?e+="&nocache=1":e+="?nocache=1"),e},d.onDomCompleted=function(t,n){var e;"complete"===document.readyState?t.call(n):(e=function e(){"complete"===document.readyState&&(d(document).off("readystatechange",e),t.call(n))},d(document).on("readystatechange",e))},d.fn.findOrSelf=function(e){return this.find(e).add(this.filter(e))},d.onDomReady=d.onReady,d.onWinLoaded=d.onWindowLoaded,d.getTimeString=d.formatDate,d.htmlEncode=d.encodeHTML,d.parseParams=d.parseQuery,d.useParams=d.useQuery,d.blockFn=d.lazyThrottle}(jQuery),!function(k){var v=window.jqueryVMUtil={assign:k.extend,before:function(e,t,n){t=e.indexOf(t);return t<0?n?e:"":e.slice(0,t)},index:function(e,t){return e.index(t)},toCamelCase:function(e){return e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()})},capitalize:function(e){return e.slice(0,1).toUpperCase()+e.slice(1)},isObject:function(e){return e&&"object"===_typeof(e)},isNullOrUndefined:function(e){return null==e},createFunctionSequence:function(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}},x=(v.assign(v,{safeProperty:function(e,t,n){var r=e;if(null!=r){var i,o=_createForOfIteratorHelper(t);try{for(o.s();!(i=o.n()).done;)if(null==(r=r[i.value]))return}catch(e){o.e(e)}finally{o.f()}return n?n(r):r}},safeAssign:function(e,t,n){var r=t.pop(),e=v.safeProperty(e,t);return null!==e&&(e[r]=n),n},safeCall:function(e,t,n,r){var i=t.pop(),e=v.safeProperty(e,t);if(null!=e&&"function"==typeof e[i])return e=e[i].apply(e,_toConsumableArray(n)),r?r(e):e}}),k.lexer={EXPRESSION_REGEXP:/('(?:\\'|[^'])*?'|"(?:\\"|[^"])*?"|(?:0x\d+|\d*\.\d+|\d+)(?:e\d+)?)|(`(?:\\`|[^`])*?`)|([a-z_$][\w$]*)|(;|[.+\-~!*\/%<>=&^|?:,]+)|([\[\](){}])/gi,TEMPLATE_REGEXP:/\$\{(.+?)\}/g,FILTER_REGEXP:/\|\s*([\w-]+)(?:((?:\|\||[^|])+))?/g,FILTER_FN_REGEXP:/^\(.+?\)$/,DELIMITER_REGEXP:/\{\{([\s\S]+?)\}\}(?!\})/g,FOR_LOOP_REGEXP:/^(.+?)\s+(in|of)\s+(.+)$/,FOR_IN_LOOP_REGEXP:/^\s*(\w+)?(?:\s*,\s*(.+?))?(?:\s*,\s*(\w+))?\s*$/,FOR_OF_LOOP_REGEXP:/^\s*(.+?)?(?:\s*,\s*(\w+))?\s*$/,FOR_TO_LOOP_REGEXP:/^(\w+)\s*=\s*(.+?)\s+to\s+(.+?)(?:\s+step\s+(.+))?$/,KEYWORD_VALUE:v.index(["true","false","null","undefined","NaN","Infinity","arguments","this","debugger","function","window","jqueryVMUtil"]),KEYWORD_FUNCTION:v.index(["Object","Array","Boolean","isFinite","isNaN","JSON","Math","Number","String","parseFloat","parseInt"]),UNARY_KEYWORD_OPERATOR:v.index(["delete","new","typeof","void"]),BINARY_KEYWORD_OPERATOR:v.index(["in","instanceof"]),readerCache:{},writterCache:{},handlerCache:{},delimiterCache:{},loopCache:{},isSingleVariable:function(e){return/^\s*\w+\s*$/.test(e)},isEntireProperty:function(e){return!/[+\-~!*\/%<>=&^|:\(\)\{\}]/.test(e)},isDelimiterExpression:function(e){var t=x.DELIMITER_REGEXP;return t.lastIndex=0,t.test(e)},toStringCode:function(e){return"'"+e.replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"},bindScope:function(e){var t=x.parseToTokens(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]),n=t.types,r=t.tokens,i=t.filterIndex,o=t.lastExpressionIndex,t=t.hasSafeGetter,t=(this.addScopeToTokens(n,r),t&&this.addSafeGetterToTokens(n,r),null);return 0<i&&(t=x.parseFilters(e,i)),{previousCode:r.slice(0,o).join(""),returnedCode:r.slice(o).join(""),filters:t}},parseToTokens:function(e){for(var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=x.EXPRESSION_REGEXP,r=n.lastIndex=0,i=0,o=[],s=[],a=2,l=-1,c=0,u=!1;;){var f=n.exec(e);if(!f)break;var p,h,f=_slicedToArray(f,6),d=(f[0],f[1]),m=f[2],v=f[3],g=f[4],f=f[5],y=void 0;if(d)o.push(d),y=0,i=2;else if(m){d=n.lastIndex;o.push(this.bindScopeToTemplateString(m)),n.lastIndex=d,y=0,i=2}else if(v)3===i?(y=i,i=2,o.push(v)):9===i?(y=9,i=10,o.push(v)):x.KEYWORD_VALUE[v]||t.includes(v)?(y=4,i=2,o.push(v)):x.UNARY_KEYWORD_OPERATOR[v]?(y=6,i=2,o.push(v+" ")):x.BINARY_KEYWORD_OPERATOR[v]?(y=6,i=2,o.push(" "+v+" ")):(i=(y=x.KEYWORD_FUNCTION[v]?5:1,2),o.push(v));else if(g){if("|"===g){l=n.lastIndex-1;break}switch(g){case",":10===i&&(p=o.length-1,o.push(":"),o.push(o[p]),s.push(10),s.push(1)),i=0<r?9:0;break;case"?.":u=!0;case".":i=3;break;case";":c=o.length+1;default:i=0}y=2,o.push(g)}else{switch(f){case"(":4!==a&&6!==a||(s[s.length-1]=1),y=12,i=0;break;case"[":y=12,i=0;break;case"{":r++,y=7,i=9;break;case"}":10===i&&(h=o.length-1,o.push(":"),o.push(o[h]),s.push(10),s.push(1)),y=8,i=0<--r?11:2;break;default:y=13,i=2}o.push(f)}a=y,s.push(y)}return 6===a&&(s[s.length-1]=1),{types:s,tokens:o,filterIndex:l,lastExpressionIndex:c,hasSafeGetter:u}},addScopeToTokens:function(e,t){for(var n=-1,r=[],i=null,o="this",s=0,a=t.length;s<a;s++){var l=e[s],c=t[s];if(1===i)switch(c){case"(":case"=":t[n]="this._writeScope."+t[n];break;default:t[n]=o+"."+t[n]}switch(l){case 1:n=s;break;case 12:r.push(n),n=-1;break;case 13:n=r.pop()}i=l}1===i&&(t[n]=o+"."+t[n])},addSafeGetterToTokens:function(e,t){for(var n=[],r=-1,i=-1,o=!1,s=0,a=function(e){0<=i&&(i<e?(t[i]="],v=>v"+t[i],t[e-1]+=")"):t[e-1]+="])",i=-1)},l=0,c=t.length;l<c;l++){var u=t[l],f=e[l];if("?."===u){for(0<=i&&a(l),t[l]=",[",l++;l<c;l++)if(f=e[l],"?."===(u=t[l]))t[l]=",";else{if(3!==e[l])break;t[l]="'"+u+"'"}switch(u){case"=":t[r]="jqueryVMUtil.safeAssign("+t[r],t[l]="],",s++;break;case"(":t[r]="jqueryVMUtil.safeCall("+t[r],t[l]="],[",o=!0;break;case".":case"[":t[r]="jqueryVMUtil.safeProperty("+t[r],i=l;break;default:t[r]="jqueryVMUtil.safeProperty("+t[r],t[l-1]+="])"}}switch(f){case 1:case 4:r=l;break;case 2:0<=i&&"."!==u&&"="!==u&&a(l);break;case 12:n.push([r,i,o]),i=r=-1;break;case 13:0<=i&&(t[i]="],v=>v"+t[i],t[l-1]+=")");var p=_slicedToArray(n.pop(),3),r=p[0],i=p[1];(o=p[2])&&(t[l]="",i=l+1)}}0<s&&(t[t.length-1]+=")".repeat(s)),0<=i&&a(t.length)},bindScopeToTemplateString:function(e){return e.replace(x.TEMPLATE_REGEXP,function(e,t){return"${"+x.bindScope(t).returnedCode+"}"})},parseFilters:function(e,t){for(var n=x.FILTER_REGEXP,r=(n.lastIndex=t,x.FILTER_FN_REGEXP),i=[];;){var o=n.exec(e);if(!o)break;var o=_slicedToArray(o,3),s=o[1],o=o[2],a=void 0,a=(o=o&&o.trim())&&r.test(o)?x.bindScope(o.slice(1,-1)).returnedCode:o?o.split(/\s+/).map(function(e){return"'".concat(e.replace(/'/g,"\\"),"'")}).join(", "):"";i.push({name:s,args:a})}return i},compileReader:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e+n.map(function(e){return";"+e}),o=x.readerCache[i];if(o)return o;o=x.compileReaderToCode(e,n),e=o.previousCode,o=o.returnedCode;return x.readerCache[i]=new Function(e+"return "+o)},compileReaderToCode:function(e,t){var e=x.bindScope(e,t),t=e.previousCode,n=e.returnedCode,e=e.filters;if(e){var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;)var o=r.value,s=o.name,a=(a=o.args)?", "+a:"",n="this.filters['".concat(s,"'](").concat(n).concat(a,")")}catch(e){i.e(e)}finally{i.f()}}return{previousCode:t,returnedCode:n}},compileHandler:function(e){var t=e,n=x.handlerCache[t];return n||(e?x.isEntireProperty(e)?(n=e.match(/(?:\.\w+|\[.+?\])$/)?e.replace(/(?:\.\w+|\[.+?\])$/,""):"this._writeScope",n=x.bindScope("this."+e+".apply("+n+", arguments)").returnedCode,x.handlerCache[t]=new Function("return "+n)):(e=(n=x.bindScope(e,["event"])).previousCode,n=n.returnedCode,x.handlerCache[t]=new Function("event",e+"return "+n)):x.handlerCache[t]=new Function(""))},compileWritter:function(e){var t=e,n=x.writterCache[t];if(n)return n;if(!x.isEntireProperty(v.before(e,"|",!0)))throw new Error('Model expression "'.concat(e,'" is not a property'));var n=x.parseToTokens(e),r=n.types,i=n.tokens,o=n.filterIndex,s=n.lastExpressionIndex,n=n.hasSafeGetter,a="value";if(0<o){var l,c=_createForOfIteratorHelper(x.parseFilters(e,o));try{for(c.s();!(l=c.n()).done;)var u=l.value,f=u.name,p=(p=u.args)?", "+p:"",a="this.filters['".concat(f,"'](").concat(a).concat(p,")")}catch(e){c.e(e)}finally{c.f()}}r.push(2),i.push("="),this.addScopeToTokens(r,i),r.push(4),i.push(a),n&&this.addSafeGetterToTokens(r,i);e=i.slice(0,s).join(""),o=i.slice(s).join("");return x.writterCache[t]=new Function("value",e+o)},compileDelimiterExpression:function(e){var t=x.delimiterCache[e];if(t)return t;for(var n=x.DELIMITER_REGEXP,r=[],i=n.lastIndex=0;o=n.exec(e);){var o=_slicedToArray(o,2),s=o[0],o=o[1],s=e.slice(i,n.lastIndex-s.length),s=(s&&r.push(x.toStringCode(s)),x.compileReaderToCode(o)),o=s.previousCode,s=s.returnedCode;r.push("("+o+s+")"),i=n.lastIndex}return i<e.length&&r.push(x.toStringCode(e.slice(i))),1<r.length&&r.push("''"),x.delimiterCache[e]=new Function("return "+r.join("+"))},compileIfStatements:function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r],o=x.compileReaderToCode(o),s=o.previousCode,o=o.returnedCode;n.unshift(s),n.push((0<r?"else ":"")+"if(".concat(o,"){return ").concat(r,"}"))}t?n.push("else{return ".concat(e.length,"}")):n.push("else{return -1}");var t=n.join(""),a=x.readerCache[t];return a||(x.readerCache[t]=new Function(t))},parseForLoop:function(e){if(o=this.loopCache[e])return o;var t=e.match(x.FOR_LOOP_REGEXP);if(t){var n=_slicedToArray(t,4),r=n[1],i=n[2],o={type:i,dataKey:n[3]};if("in"===i){if(!(t=r.match(x.FOR_IN_LOOP_REGEXP)))throw new Error('"'.concat(e,'" is not a valid "for" expression'));var n=_slicedToArray(t,4),s=n[1],a=n[2],n=n[3];o.keyKey=s,o.indexKey=n,s=a}else if("of"===i){if(!(t=r.match(x.FOR_OF_LOOP_REGEXP)))throw new Error('"'.concat(e,'" is not a valid "for" expression'));n=_slicedToArray(t,3),a=n[1],i=n[2];o.indexKey=i,s=a}}else{if(!(t=e.match(x.FOR_TO_LOOP_REGEXP)))throw new Error('"'.concat(e,'" is not a valid "for" expression'));r=_slicedToArray(t,5),n=r[1],i=r[2],a=r[3],t=r[4];if(!x.isSingleVariable(n))throw new Error('"'.concat(e,'" is not a valid "for" expression'));(o={type:"to",fromKey:i,toKey:a}).stepKey=t||1,s=n}return s&&(o.valueAssigner=x.parseAssigner(s)),this.loopCache[e]=o},parseAssigner:function(e){var e=x.bindScope(e),t=e.previousCode,e=e.returnedCode;return new Function("value","("+t+e+" = value)")}});function o(e){this.isDir=!!e.scope,v.assign(this,e),this.isDir||(this.scope=this.vm,this.getter||(this.getter=x.compileReader(this.exp))),this.value=this.get()}var s={started:null,flushing:!(o.prototype={isDir:!1,get:function(){var e;o.running=this;try{e=this.getter.call(this.vm)}catch(e){return console.warn('Failed to run "'.concat(this.exp,'" - '),e.stack),this.value}return e},set:function(e){var t=this.vm;x.compileWritter(this.exp).call(t,e)},update:function(){var e=this.value,t=this.get();(t!==e||t&&"object"===_typeof(t))&&(this.value=t,this.handler.call(this.scope,t,e),this.isDir||s.update())},destroy:function(){}}),tasks:[],addTask:function(e,t){t&&(e=e.bind(t)),this.tasks.push(e),this.flushing||this.startDeferredFlushingIfNot()},update:function(){this.flushing||this.startDeferredFlushingIfNot()},startDeferredFlushingIfNot:function(){var e=this;this.started||(Promise.resolve().then(function(){e.doFlushing()}),this.started=!0)},doFlushing:function(){var e,t=this.tasks,n=(this.flushing=!0,_createForOfIteratorHelper(k.topVMs));try{for(n.s();!(e=n.n()).done;)e.value.digest()}catch(e){n.e(e)}finally{n.f()}if(0<t.length){for(var r=0;r<2&&0<t.length;r++){for(var i=0;i<t.length;i++)t[i]();t.splice(0,t.length);var o,s=_createForOfIteratorHelper(k.topVMs);try{for(s.s();!(o=s.n()).done;)o.value.digest()}catch(e){s.e(e)}finally{s.f()}}0<t.length&&console.warn("There are still some updatings not done after digest for 2 times")}this.started=!1,this.flushing=!1}};k.topVMs=[],k.nextTick=s.addTask.bind(s),k.digest=s.update.bind(s),k.digestAwait=function(e){k.digest(),e&&e.then&&e.then(k.digest)};function f(e){k.Emitter.call(this),e&&(e._inherit?(e.template=e.template||null,e.appendTo=e.appendTo||null,e.target=e.target||null):(this.init&&e.init&&(e.init=v.createFunctionSequence(this.init,e.init)),k._mergeOptions(e,this))),v.assign(this,e),this._inherit?(this._name="",this._writeScope=this.parent._writeScope,this._isCreatedByComponentDir=!1):((this._writeScope=this)._closest=this._closest||this.parent,this._initMixins(),this.init&&this.on("ready",this.init,this),this._initEvents()),this._directives=[],this._watchers=[],this._isReady=!1,this.el=k(this.el),this._name&&this.el[0]&&this._initPropsFromEl(this.el),this._initEl(this.el),this._isCreatedByComponentDir||(this._onDirsLinked(),this._onChildrenReady())}function r(e){k.Emitter.call(this),e&&v.assign(this,e);e=k(this.el);1===e[0].nodeType&&this._initPropsFromEl(e),this._initEl(e),this.applyRef(),this.init&&this.init(),this.isOld?this.bind&&this.bind():(this.prepareWatcherGetter(),this.initBind())}function i(e,t){k.Emitter.call(this),t&&v.assign(this,t),this._initMixins(),this.init&&this.on("ready",this.init,this),this._inherit||this._initEvents(this),this.trigger("created"),this.el=k(e),this.callMixinsInit(),this.applyRef(),this.isReady=!0,this.trigger("ready")}function a(e,t,n){this.vm=e,this.el=t,this.name=n,this._transitionCleaner=null}k.components={},k.directives={},k.filters={},k.mixins={},k.transitions={},k.registerComponent=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=(e&&k.components[e]&&console.warn('Component "'+e+'" has been registered'),"object"!==_typeof(t)||Array.isArray(t)||(n=t,t=""),n._name=e,n.selector=n.selector||"",n.ref=n.ref||{},n.mixins=n.mixins||n.plugins||[],{}),i=[];if(t){var o,s=_createForOfIteratorHelper(Array.isArray(t)?t:[t]);try{for(s.s();!(o=s.n()).done;){var a=o.value;i.push(k.getComponent(a).prototype)}}catch(e){s.e(e)}finally{s.f()}r.__proto__=i[0]}else r.__proto__=f.prototype;for(var l=0,c=i;l<c.length;l++){var u=c[l];k._mergeOptions(n,u),u!==r&&v.assign(r,u)}v.assign(r,n);t=new Function("\n\t\treturn function ".concat(v.capitalize(v.toCamelCase(e))," (options) {\n\t\t\treturn $.BaseComponent.call(this, options)\n\t\t}\n\t"))();return t.prototype=r,e&&(k.components[e]=t),t},k._mergeOptions=function(e,t){for(var n=0,r=["onCreated","onReady","onDestroy"];n<r.length;n++){var i=r[n];e[i]&&t[i]&&(e[i]=v.createFunctionSequence(t[i],e[i]))}e.mixins&&t.mixins&&(e.mixins=t.mixins.concat(e.mixins)),e.ref&&t.ref&&(e.ref=v.assign({},t.ref,e.ref))},k.getComponent=function(e){var t=k.components[e];if(t)return t;throw new Error('Component "'+e+'" is not registered')},k.hasComponent=function(e){return!!k.components[e]},k.registerDirective=function(e,t){t.name=e,t.__proto__=r.prototype;function n(){r.apply(this,arguments)}return n.prototype=t,k.directives[e]=n},k.getDirective=function(e){return k.directives[e]},k.registerMixin=function(e,t){k.mixins[e]&&console.warn('Mixin "'+e+'" is registered'),k.mixins[e]=t},k.registerFilter=function(e,t){k.filters[e]&&console.warn('Filder "'+e+'" is registered'),k.filters[e]=t},k.registerTransition=function(e,t){k.transitions[e]&&console.warn('Transition "'+e+'" is registered'),k.transitions[e]=t},(k.BaseComponent=f).prototype={__proto__:k.Emitter.prototype,template:"",el:null,mixins:null,target:"",onCreated:null,onReady:null,onDestroy:null,isOld:!1,selector:"",init:null,_name:"",_oldEl:null,_writeScope:null,_inherit:!1,filters:k.filters,isReady:!1,destroyed:!1,_initEvents:function(){this.onCreated&&this.on("created",this.onCreated,this),this.onReady&&this.on("ready",this.onReady,this),this.onDestroy&&this.on("destroy",this.onDestroy,this)},_initMixins:function(){if(this.mixins)for(var e=0;e<this.mixins.length;e++){var t,n=this.mixins[e],r=k.mixins[n];for(t in this._initEvents(r),r)t in this||(this[t]=r[t])}},_initPropsFromEl:function(e){for(var t=e[0].attributes,n={},r=0,i=t.length;r<i;r++){var o=t[r].name,s=t[r].value;if(!["ref"].includes(o)){if(o.startsWith("data-"))o=o.slice(5);else if(this.isOld)continue;var o=v.toCamelCase(o),a=_typeof(this[o]);"undefined"!==a&&("number"===a?s=Number(s)||0:"boolean"===a&&(s="false"!==s),n[o]=s)}}if(this.props){var l,c=_createForOfIteratorHelper(this.props);try{for(c.s();!(l=c.n()).done;){var u,f,p=l.value,h=e.attr("data-"+p);"string"==typeof h&&("number"===(f=_typeof(this[u=v.toCamelCase(p)]))?h=Number(h)||0:"boolean"===f&&(h="false"!==h),n[u]=h)}}catch(e){c.e(e)}finally{c.f()}}v.assign(this,n)},_initEl:function(e){if(this.directives=[],this.children=[],this.parent&&this.parent.children.push(this),!e.length||this._name&&!this.isOld){if(!this.template)throw new Error('"'+(this._name||"anaoymous instance")+'" must have a "template" property or an element as first argument!');this.el=this._getEl()}else if((this.el=e).com()&&this._name)throw new Error('"el" already binded to a "'+(e.com()._name||"anaoymous")+'" component!');this._name&&this.el.attr("is",this._name),this.target&&this.el.appendTo(this.target),this._oldEl=e,this.el[0]._com=this},_getEl:function(){return this._getElFromTemplate(this.template)},_getElFromTemplate:function(e){"function"==typeof e&&(e=e.call(this)),e=(e=apower.trans(e)).format(this);e=k(e);return e=e.is(".win-mask")?e.find(".win"):e},createFromHTML:function(e){e=this._getElFromTemplate(e);return this._initSubForEl(e),this.initSubBySelector(e),e},_onDirsLinked:function(){this.trigger("created"),this._initSubForEl(this.el),this.initSubBySelector(this.el);var e,t=this._oldEl;this.el[0]!==t[0]&&(e=this.el.find("slot"),t[0]?(this._copyAttributes(t[0],this.el[0]),e.length?t[0].innerHTML.trim()?e.replaceWith(t[0].childNodes):e.replaceWith(e[0].childNodes):this.el.append(t[0].childNodes),t.replaceWith(this.el)):(t.remove(),e[0]&&e.replaceWith(e[0].childNodes))),this.applyRef(),this.callMixinsInit(),this.parent||k.topVMs.push(this)},_onChildrenReady:function(){this.isReady=!0,this.trigger("ready")},_initSubForEl:function(e){var n=this;e.each(function(e,t){1===t.nodeType&&n._compileEl(t,n)})},_compileEl:function(e,t){var n=Array.from(e.childNodes),e=this._compileDirectives(e,t),r=e.com;if(t=r||t,!e.isTerminal)for(var i=0,o=n.length;i<o;i++)this._compileEl(n[i],t);r&&r._onChildrenReady()},_compileDirectives:function(e,t){var n,r=[],i=!1;if(3===e.nodeType){var o=e.textContent;x.isDelimiterExpression(o)&&r.push({name:"text",exp:o,isTextual:!0})}else if(1===e.nodeType){for(var s=0,a=e.attributes,l=a.length;s<l;s++){var c=a[s],u=c.name,c=c.value,u=this._getDirFromAttribute(e,u,c);u&&r.push(u)}var f,o=e.localName;"slot"===o?(f=this._oldEl)[0]&&f[0].innerHTML.trim()&&(e.innerHTML=""):!e._com&&k.components[o]&&r.push({name:"component",exp:o,closest:t})}r.sort(function(e,t){return k.getDirective(t.name).prototype.priority-k.getDirective(e.name).prototype.priority}),1===e.nodeType&&(i=this._checkTerminal(r),this._cleanDirAttributes(r,e));for(var p=0,h=r;p<h.length;p++){var d=h[p];d.el=e,d=this.newDirective(d.name,d),this._directives.push(d),"component"===d.name&&(e=(n=d.com).el)}return n&&n._onDirsLinked(),{com:n,isTerminal:i}},_getDirFromAttribute:function(e,t,n){if(t.startsWith("@")||t.startsWith(":")||t.startsWith("f-")||"ref"===t||"trans"===t){var r,i=this._parseNodeName(t),o=i.name,s=i.prop,i=i.mods;if(k.getDirective(o))return r={name:o,exp:n,nodeName:t},s&&(r.prop=s),i&&(r.mods=i),r;console.warn('Directive "'.concat(o,'" is not registered'))}else if(x.isDelimiterExpression(n))return{name:"bind",prop:"attr",mods:[t],exp:n,isTextual:!0};return null},_parseNodeName:function(e){var t,n,r,i;return(n=e.startsWith("f-")?(t=(n=e.replace("f-","")).match(/^[\w-]+/)[0],n.slice(t.length)):"@"===e[0]?(t="on",e):":"===e[0]?(t="bind",e):(t=e.match(/^[\w-]+/)[0],e.slice(t.length)))&&(r=(e=_toArray(n.split(".")))[0],i=e.slice(1),r=r&&r.slice(1)),{name:t,prop:r,mods:i}},_checkTerminal:function(e){var t=e.findIndex(function(e){return k.getDirective(e.name).prototype.isTerminal});return-1<t&&(e[t],e.splice(t+1,e.length-t-1),!0)},_cleanDirAttributes:function(e,t){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;!i.nodeName||"ref"===i.nodeName&&this.isOld||t.removeAttribute(i.nodeName)}}catch(e){r.e(e)}finally{r.f()}},newComponent:function(e,t){return t.parent=this,k.newComponent(e,t)},newDirective:function(e,t){var n=k.getDirective(e);if(n)return t.vm=this,t.value&&(t.exp=t.value,t.isLiteral=!0),new n(t);throw new Error('No directive named "'+e+'" existed')},_copyAttributes:function(e,t){for(var n=0,r=e.attributes.length;n<r;n++){var i=e.attributes[n],o=i.name,i=i.value,s=i,a=t.getAttribute(o);"class"!==o&&"style"!==o||!a||("style"===o?s+=/;\s*$/.test(i)?"":"; ":"class"===o&&(s+=/\s+$/.test(i)?"":" "),s+=a),t.setAttribute(o,s)}},watch:function(e,t,n){var r=null,e=new o({vm:this,exp:e="function"==typeof e?(r=e).toString():e,getter:r,handler:t});return this._watchers.push(e),n&&t.call(this,e.value),e},watchOnce:function(e,r){return this.watch(e,function(){this.unwatch(watcher);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.apply(this,t)})},watchUntil:function(e,n){return this.watch(e,function(e,t){e&&(this.unwatch(watcher),n.call(this,e,t))})},unwatch:function(t){var e=this._watchers.findIndex(function(e){return e===t});-1<e&&(this._watchers[e].destroy(),this._watchers.splice(e,1))},digest:function(e){var t,n=_createForOfIteratorHelper(this._watchers);try{for(n.s();!(t=n.n()).done;)t.value.update(e)}catch(e){n.e(e)}finally{n.f()}var r,i=_createForOfIteratorHelper(this.children);try{for(i.s();!(r=i.n()).done;)r.value.digest(e)}catch(e){i.e(e)}finally{i.f()}},closest:function(e){if(!e)return this._closest;for(var e=e.split(/\s*,\s*/),t=this._closest,n=e.map(function(e){return k.getComponent(e)});t;){if(n.some(function(e){return t instanceof e}))return t;t=t._closest}return null},destroy:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.el.remove(),this.parent?e||this.parent.children.remove(this):k.topVMs.remove(this);for(var t=0;t<this.children.length;t++)this.children[t].destroy(!0);for(var n=0;n<this.directives.length;n++)this.directives[n].destroy();delete this.el[0]._com,this.destroyed=!0,this.trigger("destroy")},initSubBySelector:function(e){var t,n,r=[];for(t in k.components){var i=k.getComponent(t).prototype.selector;if(i){for(var o=[],s=0,a=_toConsumableArray(e);s<a.length;s++){var l=a[s];o.push.apply(o,_toConsumableArray(l.querySelectorAll(i))),(l.matches?l.matches(i):k(l).is(i))&&o.unshift(l)}for(var c=0,u=o;c<u.length;c++){var f=u[c];f._com||(f._com_name=t,r.push(f))}}}for(n in k.directives){var p=k.directives[n].prototype.selector;if(p){for(var h=[],d=0,m=_toConsumableArray(e);d<m.length;d++){var v=m[d];h.push.apply(h,_toConsumableArray(v.querySelectorAll(p))),(v.matches?v.matches(p):k(v).is(p))&&h.unshift(v)}for(var g=0,y=h;g<y.length;g++){var x=y[g];x._dirs&&x._dirs[n]||(x._dir_name_map?x._dir_name_map[n]=!0:(x._dir_name_map={},x._dir_name_map[n]=!0,r.push(x)))}}}r[0]&&r[0].compareDocumentPosition&&(r.sort(function(e,t){return 2&e.compareDocumentPosition(t)?1:-1}),r=k(r));for(var b=0;b<r.length;b++){var w=r[b],T=w._com_name,T=(T&&(delete w._com_name,k.newCom(T,w,{parent:this,isOld:!0})),w._dir_name_map);if(T){delete w._dir_name_map;for(var _=Object.keys(T),C=0;C<_.length;C++){var E=_[C];k.newDirective(E,w,{isOld:!0})}}}},callMixinsInit:function(){if(this.mixins)for(var e=0;e<this.mixins.length;e++){var t=this.mixins[e],t=k.mixins[t];t.init&&t.init.call(this)}},applyRef:function(){if(this.ref){var e,t=this.el;for(e in this.ref){var n=this.ref[e];this[e]=t.find(n)}}},callSuper:function(e){k.com(e).prototype.init.call(this)}},r.prototype={__proto__:k.Emitter.prototype,el:null,vm:null,exp:"",getter:null,bind:null,unbind:null,priority:0,init:null,selector:"",destroyed:!1,_initEl:function(e){(this.el=e)[0]._dirs=e[0]._dirs||{},e[0]._dirs[this.name]=this},_initPropsFromEl:f.prototype._initPropsFromEl,camelCase:f.prototype.camelCase,applyRef:f.prototype.applyRef,destroy:function(){delete this.el[0]._dirs[this.name],this.destroyed=!0,this.unbind&&this.unbind(),this.onDestroy&&this.onDestroy()},prepareWatcherGetter:function(){var e=this.exp,t=this.name,n=this.el,r=null;if(this.isLiteral)x.isDelimiterExpression(e)&&(r=x.compileDelimiterExpression(e));else if(this.isTextual)r=x.compileDelimiterExpression(e);else if(this.isListener)r=x.compileHandler(e,"event");else if("if"===t){for(var i=[e],o=[n[0]],s=!1,a=n[0].nextElementSibling;a;){if(!a.hasAttribute("f-else-if")){if(a.hasAttribute("f-else")){o.push(a),s=!0;break}break}i.push(a.getAttribute("f-else-if")),o.push(a),a=a.nextElementSibling}this.els=o,r=x.compileIfStatements(i,s)}else"for"===t?r="to"===(n=this.loop=x.parseForLoop(e)).type?x.compileReader("[".concat(n.fromKey,", ").concat(n.toKey,", ").concat(n.stepKey,"]")):x.compileReader(n.dataKey):e&&(r=x.compileReader(e));this.getter=r},initBind:function(){var e,t,n=this.getter,r=this.exp,i=this.vm;this.isListener?e=n:this.update&&n?(t=new o({vm:i,exp:r,getter:n,handler:this.update,scope:this}),i._watchers.push(t),e=(this.watcher=t).value):n?e=n.call(i):this.isLiteral&&(e=r),this.bind&&this.bind(),this.update&&this.update(e)}},i.prototype=f.prototype,k.newComponent=function(e,t){return"string"!=typeof e&&(t=e,e=""),new(e?k.getComponent(e):f)(t)},k.newApp=function(e){if(e.el&&k(e.el).com())throw new Error("Cant call $.newApp twice on a same element");return k.newComponent(e)},k.instance=function(e,t){return"object"!==_typeof(e)||e instanceof k||(t=e,e=null),new i(e,t)},k.fn.com=function(){return this[0]?this[0]._com:null},k.fn.dir=function(e){return this[0]&&this[0]._dirs&&this[0]._dirs[e]||null},k.registerDirective("text",{update:function(e){this.el[0].textContent=v.isNullOrUndefined(e)?"":String(e)}}),k.registerDirective("html",{update:function(e){var t=this.el,e=v.isNullOrUndefined(e)?"":e;t[0].isContentEditable&&e===t[0].innerHTML||(t[0].innerHTML=e)}}),k.registerDirective("enable",{update:function(e){var t=this.el;e?t[0].removeAttribute("disabled"):t[0].setAttribute("disabled","")}}),k.registerDirective("disable",{update:function(e){var t=this.el;e?t[0].setAttribute("disabled",""):t[0].removeAttribute("disabled")}}),k.registerDirective("ref",{isLiteral:!0,update:function(e){var t=this.el,n=this.vm,r=t.com();!r||r._inherit||r===n||r.isOld?n[e]&&0<n[e].length?n[e]=n[e].add(t):n[e]=t:n[e]=r}}),k.registerDirective("cloak",{isLiteral:!0}),k.registerDirective("on",{isListener:!0,mods:[],NOT_FILTER_MODS:["native","capture","self","once","prevent","stop"],bind:function(){for(var e=[],t=this.mods,n=this.NOT_FILTER_MODS,r=0;r<t.length;r++){var i=t[r];n.includes(i)||(t.splice(r--,1),e.push(i))}this.filters=e.length?"."+e.join("."):""},update:function(e,t){var n=this.el,r=this.vm,i=this.prop,o=this.mods,s=n.com();s&&s!==r&&!o.includes("native")?(t&&s.off(i,t,r),e&&s.on(i,e,r)):(s=i+this.filters,r=o.includes("capture"),t&&n.off(s,t,r),e&&(e=this.wrapHandler(n,e),n.on(s,e,r))),this.handler=e},wrapHandler:function(n,r){var i=this.prop,o=this.mods,s=this.vm;return function e(t){o.includes("self")&&t.target!==n[0]||(o.includes("once")&&n.off(i,e,o.includes("capture")),o.includes("prevent")&&t.preventDefault(),o.includes("stop")&&t.stopPropagation(),r.call(s,t))}}}),k.registerDirective("bind",{priority:600,prop:"",mods:[],bind:function(){var e=this.el,t=this.prop,e=e.com();e&&!["class","style","attr"].includes(t)&&e!==this.vm&&(this.com=e)},update:function(e,t){var n=this.el,r=this.prop;this.com?this.updateCom(e):"attr"===r?this.updateAttr(e,t):"class"===r?this.updateClass(e,t):"style"===r?this.updateStyle(e,t):(e=v.isNullOrUndefined(e)?"":e,t="value"===r||"innerHTML"===r,k.env.isFirefox&&"img"===n[0].localName&&"src"===r?(n[0].src!==e&&(n[0].src=e),e||n[0].removeAttribute(r)):t||(n[0][r]=e))},updateCom:function(e){var t=this.com,n=this.prop;n?t[n]=e:e&&"object"===_typeof(e)&&v.assign(t,e)},updateAttr:function(e,t){var n=this.mods[0];if(n)[!1,void 0,null].includes(e)?this.removeAttribute(n):this.setAttribute(n,e);else{n=v.isObject(t)?t:{},t=v.isObject(e)?e:{},n=this.compare(n,t),t=n.add,n=n.remove;if(0<n.length){var r,i=_createForOfIteratorHelper(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;this.removeAttribute(o)}}catch(e){i.e(e)}finally{i.f()}}if(0<t.length){var s,a=_createForOfIteratorHelper(t);try{for(a.s();!(s=a.n()).done;){var l=s.value;this.setAttribute(l,e[l])}}catch(e){a.e(e)}finally{a.f()}}}},setAttribute:function(e,t){var n=this.el;e.startsWith("xlink:")?n[0].setAttributeNS("http://www.w3.org/1999/xlink",e,t):n[0].setAttribute(e,t)},removeAttribute:function(e){var t=this.el;e.startsWith("xlink:")?t[0].removeAttributeNS("http://www.w3.org/1999/xlink",e):t[0].removeAttribute(e)},compare:function(){var e,t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=[],o=[],s=[!1,void 0,null];for(e in n){var a=n[e],l=r[e];!s.includes(a)&&s.includes(l)&&o.push(e)}for(t in r)n[t]!==r[t]&&i.push(t);return{add:i,remove:o}},updateClass:function(e,t){var n=this.el,t=this.parseClass(t),e=this.parseClass(e),t=this.compare(t,e),e=t.add,t=t.remove;0<t.length&&n.removeClass(t.join(" ")),0<e.length&&n.addClass(e.join(" "))},parseClass:function(e){var t=this.mods[0],n={};if(t)e&&(n[t]=!0);else if(Array.isArray(e)){var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if("object"===_typeof(o))for(var s in o)n[s]=!!o[s];else{var a,l=_createForOfIteratorHelper(String(o).split(/\s+/));try{for(l.s();!(a=l.n()).done;)n[a.value]=!0}catch(e){l.e(e)}finally{l.f()}}}}catch(e){i.e(e)}finally{i.f()}}else if(e&&"object"===_typeof(e))for(var c in e)n[c]=!!e[c];else if("string"==typeof e)if(/\s/.test(e)){var u,f=_createForOfIteratorHelper(e.split(/\s+/));try{for(f.s();!(u=f.n()).done;)n[u.value]=!0}catch(e){f.e(e)}finally{f.f()}}else e&&(n[e]=!0);return n},updateStyle:function(e,t){var t=this.parseStyle(t),n=this.parseStyle(e),e=this.compare(t,n),t=e.add,e=e.remove,r=this.mods.includes("px"),i=this.mods.includes("percent"),o=this.mods.includes("url");if(0<t.length+e.length){var s,a={},l=_createForOfIteratorHelper(e);try{for(l.s();!(s=l.n()).done;)a[s.value]=""}catch(e){l.e(e)}finally{l.f()}var c,u=_createForOfIteratorHelper(t);try{for(u.s();!(c=u.n()).done;){var f=c.value,p=n[f];v.isNullOrUndefined(p)?p="":r?p+="px":i?p+="%":o&&(p='url("'+p+'")'),a[f]=p}}catch(e){u.e(e)}finally{u.f()}this.el.css(a)}},parseStyle:function(e){var t=this.mods[0],n={};if(t)v.isNullOrUndefined(e)||(n[t]=e);else if(Array.isArray(e)){var r,i=_createForOfIteratorHelper(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if("object"===_typeof(o))v.assign(n,o);else{var s,a=_createForOfIteratorHelper(String(o).split(/\s*;\s*/));try{for(a.s();!(s=a.n()).done;){var l=_slicedToArray(s.value.split(/\s*:\s*/),2),c=l[0],u=l[1];c&&u&&(n[c]=u)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){i.e(e)}finally{i.f()}}else if(v.isObject(e))n=e;else if(e&&!v.isNullOrUndefined(e)){var f,p=_createForOfIteratorHelper(String(e).split(/\s*;\s*/));try{for(p.s();!(f=p.n()).done;){var h=_slicedToArray(f.value.split(/\s*:\s*/),2),d=h[0],m=h[1];d&&m&&(n[d]=m)}}catch(e){p.e(e)}finally{p.f()}}return n}}),k.registerDirective("model",{priority:600,mods:[],bind:function(){var e=this.el,t=e.com(),n=e[0],r=n.type,n=n.localName,i=["input","select","textarea"].includes(n),o=this.mods.includes("lazy");this.isBoolValue="input"===n&&("checkbox"===r||"radio"===r),this.isMultiSelect="select"===n&&e[0].multiple,t?(this.prop=t._modelProperty||"value",this.eventName="change"):this.isBoolValue?(this.prop="checked",this.eventName="change"):i?(this.prop="value",this.eventName=o?"change":"input"):(this.prop="innerHTML",this.eventName=o?"blur":"input"),t&&t!==this.vm?(this.com=t).on("change",this.onComChange,this):(this.locked=!1,e.on(this.eventName,this.onInputOrChange,this),"input"===this.eventName&&(r="innerHTML"===this.prop?"blur":"change",e.on(r,this.onInputOrChange,this)))},onComChange:function(e){this.mods.includes("number")&&(e=Number(e)),this.watcher.set(e)},onInputOrChange:function(e){var t=this,n=this.el[0][this.prop];this.isBoolValue?this.setBoolValue(n):this.setInputValue(n),this.locked=!0,s.addTask(function(){t.locked=!1,"change"===e.type&&t.update(t.watcher.value)})},setBoolValue:function(e){this.vm;var t=this.watcher;this.watcher.value;t.set(!!e)},setInputValue:function(e){var t=this.el,n=(this.vm,this.watcher),r=this.mods.includes("number");this.isMultiSelect?(t=Array.from(t[0].options).filter(function(e){return e.selected}).map(function(e){return e.value}),r&&(t=t.map(Number)),n.set(t)):r?(t=Number(e),n.set(t)):n.set(e)},update:function(e){this.com?this.updateCom(e):this.locked||(this.isBoolValue?this.updateBooleanValue(e):this.updateInputValue(e))},updateCom:function(e){var t=this.prop,n=this.com;t?n[t]=e:e&&"object"===_typeof(e)&&v.assign(n,e)},updateBooleanValue:function(e){var t=this.el,n=this.prop;t[0][n]=!!e},updateInputValue:function(e){var t=this.el,n=this.prop,r=this.isMultiSelect;if(r&&!Array.isArray(e))throw new Error('"model" directive of select[multiple] requires an array as value');if(r){var i,o=_createForOfIteratorHelper(t[0].options);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.selected=e.includes(s.value)}}catch(e){o.e(e)}finally{o.f()}}else t[0][n]=v.isNullOrUndefined(e)?"":e}}),k.registerDirective("component",{priority:800,isLiteral:!0,closest:null,bind:function(){this.com=null},update:function(e){this.vm,this.com=this.createCom(e)},createCom:function(e){var t=this.el,t={parent:this.vm,el:t,_closest:this.closest,_isCreatedByComponentDir:!0};return k.newComponent(e,t)}}),k.registerDirective("if",{priority:700,mods:[],bind:function(){var e,t=_createForOfIteratorHelper(this.els);try{for(t.s();!(e=t.n()).done;){var n=e.value;k(n).hide()}}catch(e){t.e(e)}finally{t.f()}},update:function(e,t){this.els[t]&&this.hide(this.els[t]),this.els[e]&&this.show(this.els[e])},show:function(e){var t=e._transition;t?(k(e).show(),t.enterAfterUpdated()):k(e).show()},hide:function(t){var e=t._transition;e?e.leaveAfterUpdated(function(e){e&&k(t).hide()}):k(t).hide()}}),k.registerDirective("else-if",{priority:700}),k.registerDirective("else",{priority:700}),k.registerDirective("for",{priority:900,isTerminal:!0,loop:null,bind:function(){var e=this.el,t=this.exp;e.before(this.startMark=document.createComment("for "+t)),e.after(this.endMark=document.createComment("end for")),e.remove(),this.coms=[],this.map=new Map},update:function(e,t){var n,r=this.loop,i=(r.type,r.keyKey),o=r.indexKey,s=r.valueAssigner,a=this.getLoopArray(e),r=this.coms,l=this.map,c=[],u=new Map,f=[],p=new Set,h=_createForOfIteratorHelper(a);try{for(h.s();!(n=h.n()).done;){var d=_slicedToArray(n.value,1)[0],m=l.get(d);m&&p.add(m)}}catch(e){h.e(e)}finally{h.f()}var v,g=_createForOfIteratorHelper(r);try{for(g.s();!(v=g.n()).done;){var y=v.value;p.has(y)||f.push(y)}}catch(e){g.e(e)}finally{g.f()}for(var x=0,b=a.length,w=this.startMark;x<b;x++){var T=_slicedToArray(a[x],2),_=T[0],T=T[1],C=u.has(_)?null:l.get(_);(C=C||(0<f.length?f.shift():null))?(w.nextElementSibling!==C.el[0]&&k(w).after(C.el),i&&(C[i]=T),o&&(C[o]=x),s&&s.call(C,_)):C=this.createCom(w,_,T,x),w=C.el[0],c.push(C),u.set(_,C)}for(var E=0,S=f;E<S.length;E++){var A=S[E];this.removeCom(A)}this.coms=c,this.map=u},getLoopArray:function(e){var t=this.loop.type;return"to"===t?this.getLoopArrayForTypeTo(e):"of"===t?this.getLoopArrayForTypeOf(e):this.getLoopArrayForTypeIn(e)},getLoopArrayForTypeTo:function(e){var e=_slicedToArray(e,3),t=e[0],n=e[1],r=e[2],i=[];if(t<=n)for(var o=t;o<=n;o+=r)i.push([o,0]);else for(var s=t;n<=s;s-=r)i.push([s,0]);return i},getLoopArrayForTypeOf:function(e){var t=[];if(e){var n,r=0,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.push([o,r++])}}catch(e){i.e(e)}finally{i.f()}}return t},getLoopArrayForTypeIn:function(e){var t=[];if(e)if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t.push([e[n],n]);else{this.keys=Object.keys(e);var i,o=_createForOfIteratorHelper(this.keys);try{for(o.s();!(i=o.n()).done;){var s=i.value;t.push([e[s],s])}}catch(e){o.e(e)}finally{o.f()}}return t},createCom:function(e,t,n,r){var i=this.loop,o=i.valueAssigner,s=i.keyKey,i=i.indexKey,a=this.el[0].cloneNode(!0),e=(k(e).after(a),Object.create(this.vm)),a={el:a,parent:this.vm,_name:"",template:null,_inherit:!0};return s&&(a[s]=n),i&&(a[i]=r),o&&o.call(a,t),f.call(e,a),e},removeCom:function(e){var t=e.el[0]._transition;t?t.leaveAfterUpdated(function(){e.destroy()}):e.destroy()}}),k.registerDirective("skip",{isTerminal:!0,priority:1e3}),k.registerDirective("transition",{isLiteral:!0,update:function(e){var t=this.el,n=this.vm,r=t[0]._transition;r?r.updateName(e):t[0]._transition=new a(n,t,e)},unbind:function(){var e=this.el;e[0]._transition&&(e[0]._transition.clear(),delete e[0]._transition)}}),a.prototype={updateName:function(e){this.name=e},enterAfterUpdated:function(e){var t=this;s.addTask(function(){t.enter(e)})},leaveAfterUpdated:function(e){var t=this;s.addTask(function(){t.leave(e)})},enter:function(t){this.vm,this.el;function e(e){t&&t(e)}var n=this.name;this.clearLastCSSTransitionEndHandler();k.transitions[n]?this.jsEnter(e):this.classEnter(e)},leave:function(t){this.vm;function e(e){n.css("pointer-events",""),t&&t(e)}var n=this.el,r=this.name;this.clearLastCSSTransitionEndHandler(),n.css("pointer-events","none");k.transitions[r]?this.jsLeave(e):this.classLeave(e)},jsEnter:function(e){var t=k.transitions[this.name];t.enter?this._transitionCleaner=t.enter(this.el,e):e(!0)},jsLeave:function(e){var t=k.transitions[this.name];t.leave?this._transitionCleaner=t.leave(this.el,e):e(!0)},classEnter:function(t){var e=this,n=this.el,r=this.name+"-enter",i=!1;n.css("transition","none"),n.addClass(r,r+"-from"),requestAnimationFrame(function(){s.addTask(function(){i||(n.css("transition",""),n.removeClass(r+"-from"),n.addClass(r+"-to"),e.onceTransitionEnd(function(e){n.removeClass(r,r+"-to"),t(e)}))})}),this._transitionCleaner=function(){i=!0}},classLeave:function(t){var e=this,n=this.el,r=this.name+"-leave",i=!1;n.addClass(r,r+"-from"),n.css("transition","none"),requestAnimationFrame(function(){s.addTask(function(){i||(n.css("transition",""),n.removeClass(r+"-from"),n.addClass(r+"-to"),e.onceTransitionEnd(function(e){n.removeClass(r,r+"-to"),t(e)}))})}),this._transitionCleaner=function(){i=!0}},clearLastCSSTransitionEndHandler:function(){this._transitionCleaner&&this._transitionCleaner()},onceTransitionEnd:function(e){var t=this,n=this.el,r=parseFloat(n.css("transition-duration"))||0,i=parseFloat(n.css("animation-duration"))||0,o=0<r?"transitionend":"animationend",r=1e3*(r||i),s=function(){t._transitionCleaner=null,n.css("pointer-events",""),e(!0)},a=function(){l.cancel(),s()},l=(n.once(o,a),k.defer(function(){n.off(o,a),s()},50+r));this._transitionCleaner=function(){l.cancel(),n.off(o,a),e(!1)}},clear:function(){this.clearLastCSSTransitionEndHandler()}},k.registerTransition("slide",{enter:function(e,t){return e.slideDown(t),e.stop.bind(e)},leave:function(e,t){return e.slideUp(t),e.stop.bind(e)}}),k.registerDirective("show",{priority:10,update:function(e,t){var n=this.el,r=n[0]._transition;r&&void 0!==t?e?(n.show(),r.enterAfterUpdated()):r.leaveAfterUpdated(function(e){e&&n.hide()}):e?n.show():n.hide()}}),k.registerDirective("hide",{priority:10,update:function(e,t){var n=this.el,r=n[0]._transition;r&&void 0!==t?e?r.leaveAfterUpdated(function(e){e&&n.hide()}):(n.show(),r.enterAfterUpdated()):e?n.hide():n.show()}}),k.registerFilter("trans",function(e){for(var t,n=arguments.length,r=new Array(1<n?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=apower).tr.apply(t,[e].concat(r))}),k.registerDirective("focus",{isLiteral:!0,update:function(){var e=this;k.nextTick(function(){e.el[0].focus()})}}),k.registerDirective("trans",{bind:function(){var e=this.el;this.textNode=e[0].firstChild},update:function(e){this.textNode.textContent=e}}),k.register=k.registerComponent,k.registerDir=k.registerDirective,k.registerPlugin=k.registerMixin,f.prototype.createFromTemplate=f.prototype.createFromHTML,k.newDirective=function(e,t,n){var r=k.directives[e];if(r)return n.el=t,n.isOld=!0,new r(n);throw new Error('No directive named "'+e+'" existed')},k.registerOnce=function(e,t){t||(t=e,e=""),"function"==typeof t&&(t={init:t}),e&&(t.selector=e),t.init=t.init||function(){},t.mixins=t.plugins||t.mixins;var n=k.extend(Object.create(i.prototype),t);return"complete"===document.readyState?(e=k(t.selector||"body")).length&&i.call(n,e):(k.Emitter.call(n),k.onDomReady(function(){k.defer(function(){var e=k(t.selector||"body");e.length&&i.call(n,e)})})),n},k.com=function(e){return k.components[e]||k.directives[e]},k.newCom=function(e,t,n){return t instanceof k||"[object Object]"!==String(t)||(n=t,t=null),(n=n||{}).isOld=!0,n.el=t,k.components[e]?k.newComponent(e,n):k.newDirective(e,t,n)},k.applyCom=function(e){k(e).applyCom()},k.releaseCom=function(e){k(e).releaseCom()},k.fn.applyCom=function(){var e=!1;if(this[0]){if(!this.com())for(var t in k.components){var n=k.components[t].prototype.selector;if(n&&this.is(n)){k.newCom(t,this,{isOld:!0}),e=!0;break}}e||(this.com()?(this.com()._initSubForEl(this.com().el),this.com().initSubBySelector(this)):k.newApp({el:this,isOld:!0}))}return this},k.fn.releaseCom=function(){var e=this.com();if(e){for(var t=0;t<e.children.length;t++)e.children[t].destroy();for(t=0;t<e.directives.length;t++)e.directives[t].destroy()}return this.empty(),this},k.fn.newCom=function(e,t){return k.newCom(e,this,t)}}(jQuery),!function(e){var t,n,r=!1;"function"==typeof define&&define.amd&&(define(e),r=!0),"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&(module.exports=e(),r=!0),r||(t=window.Cookies,(n=window.Cookies=e()).noConflict=function(){return window.Cookies=t,n})}(function(){function m(){for(var e=0,t={};e<arguments.length;e++){var n,r=arguments[e];for(n in r)t[n]=r[n]}return t}return function e(h){function d(e,t,n){var r,i;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(n=m({path:"/"},d.defaults,n)).expires&&((i=new Date).setMilliseconds(i.getMilliseconds()+864e5*n.expires),n.expires=i),n.expires=n.expires?n.expires.toUTCString():"";try{r=JSON.stringify(t),/^[\{\[]/.test(r)&&(t=r)}catch(e){}t=h.write?h.write(t,e):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var o,s="";for(o in n)n[o]&&(s+="; "+o,!0!==n[o]&&(s+="="+n[o]));return document.cookie=e+"="+t+s}e||(r={});for(var a=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,c=0;c<a.length;c++){var u=a[c].split("="),f=u.slice(1).join("=");this.json||'"'!==f.charAt(0)||(f=f.slice(1,-1));try{var p=u[0].replace(l,decodeURIComponent),f=h.read?h.read(f,p):h(f,p)||f.replace(l,decodeURIComponent);if(this.json)try{f=JSON.parse(f)}catch(e){}if(e===p){r=f;break}e||(r[p]=f)}catch(e){}}return r}}return(d.set=d).get=function(e){return d.call(d,e)},d.getJSON=function(){return d.apply({json:!0},[].slice.call(arguments))},d.defaults={},d.remove=function(e,t){d(e,"",m(t,{expires:-1}))},d.withConverter=e,d}(function(){})});"use strict";function ownKeys(e,t){var i,s=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)),s}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,o=[],a=!0,r=!1;try{for(i=i.call(t);!(a=(s=i.next()).done)&&(o.push(s.value),!e||o.length!==e);a=!0);}catch(t){r=!0,n=t}finally{try{a||null==i.return||i.return()}finally{if(r)throw n}}return o}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var i,s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length)return s&&(t=s),i=0,{s:e=function(){},n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,a=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return o=t.done,t},e:function(t){a=!0,n=t},f:function(){try{o||null==s.return||s.return()}finally{if(a)throw n}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(i="Object"===i&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}function asyncGeneratorStep(t,e,i,s,n,o,a){try{var r=t[o](a),l=r.value}catch(t){return void i(t)}r.done?e(l):Promise.resolve(l).then(s,n)}function _asyncToGenerator(r){return function(){var t=this,a=arguments;return new Promise(function(e,i){var s=r.apply(t,a);function n(t){asyncGeneratorStep(s,e,i,n,o,"next",t)}function o(t){asyncGeneratorStep(s,e,i,n,o,"throw",t)}n(void 0)})}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(f){var t=location.host.includes("apowersoft"),e=!1,i=((t||location.host.includes("airmore")||location.host.includes("showmore")||location.host.includes("videograbber")||location.host.includes("screenshot")||location.host.includes("lightpdf")||location.host.includes("lightmake")||location.host.includes("reccloud"))&&(e=!0),!1),s=(location.hostname.includes("myaccount")&&(i=!0),window.apowerConfig||{}),n=window.apowerTrans=window.apowerTrans||{};function o(t){if("object"===_typeof(t))for(var e in t)n[e]=n[e]||t[e]}for(var a=Object.keys(window),r=0,l=a.length;r<l;r++){var c=a[r];/^trans(?:\d+|_\w+)?$/.test(c)&&o(window[c])}var h=document.documentElement.lang||f.store.get("lang")||"en",m=(e?(document.documentElement.lang=h,f.store.set("lang",h)):h=n.lang||h,window.apower=window.apower||{isApowerDomain:t,isOurDomain:e,isAccount:i,lang:h,translations:n,extendTranslation:o,pageType:s.pageType||"",productId:s.productId||"",productType:s.productType||"1",isShowBind:s.isShowBind||!1,isLetsview:s.isLetsview||!1,hash:"406b24353675aac594d2a7c5f6cc31fe",agents:{},isDev:location.hostname.endsWith(".test"),isPro:location.hostname.includes("lightpdf.com"),tr:function(t){for(var e,i=m.translations,i=(m.lang,t.includes("@@")&&(e=t.slice(0,t.indexOf("@@")),t=t.slice(t.indexOf("@@")+2)),i[t]||e||t),s=arguments.length,n=new Array(1<s?s-1:0),o=1;o<s;o++)n[o-1]=arguments[o];return i=0<n.length?i.format(n):i},trans:function(t){return t=(t=t.replace(/\{([^\{\}]*?)@{1,2}(\w*)(,.+?)?\}/g,function(t,e,i,s){return m._trans_by_matches(e,i,s)})).replace(/>\s*([^<>]*?)@@(\w*)(,.+?)?\s*</g,function(t,e,i,s){return">"+m._trans_by_matches(e,i,s)+"<"})},_trans_by_matches:function(t,e,i){var s=i||"",n=String(m.tr(t+"@@"+e));if(s){for(var s=s.slice(1).split(","),o=0;o<s.length;o++){var a=s[o].trim();a.startsWith("@")&&(a=String(m.tr(a.slice(1)))),s[o]=a}for(var n=n.format(s),r=0;r<s.length;r++){var l=s[r].trim();n.includes(l)||(n+="_"+l)}}return n},getRegionPath:function(t){if(location.hostname.includes("reccloud.cn"))return"";t=this.getShortRegion(t);return"en"===t?"":"/"+t},getShortRegion:function(t){return{cs:"cz",da:"dk",ja:"jp",sv:"se",el:"gr"}[t=t||m.lang]||t},getApowersoftDomain:function(t){if(this.isDev)return"zh"===t?"http://apowersoftcn.test":"http://apowersoft.test";t=t||m.lang;var e={pt:".com.br",en:".com",zh:".cn",tr:"-tr.com",no:"-no.com",cs:".cz",da:".dk",ja:".jp",sv:".se",el:".gr",ar:".ae"},i="fr de it nl es fi pl tw hu kr".split(" ");return"https://www.apowersoft"+(e[t=e[t]||i.includes(t)?t:"en"]||"."+t)},getDomain:function(t){if(this.isDev)return"zh"===t?"http://apowersoftcn.test":"http://apowersoft.test";t=t||m.lang;var e={pt:".com.br",en:".com",zh:".cn",tr:"-tr.com",no:"-no.com",cs:".cz",da:".dk",ja:".jp",sv:".se",el:".gr",ar:".ae"},i="fr de it nl es fi pl tw hu kr".split(" ");return"https://www.apowersoft"+(e[t=e[t]||i.includes(t)?t:"en"]||"."+t)},getCDNDomain:function(t){return this.isDev?"http://apowersoft.test/frontend":location.host.startsWith("dev")?"https://dev048.apowersoft.com":"https://cdn.aoscdn.com"},getSupportDomain:function(){return"https://support.aoscdn.com"},getAPIDomain:function(t){return this.isDev?"http://api.apowersoft.test":"zh"===m.lang?"https://api.apowersoft.cn":"https://api.apowersoft.com"},getVipDomain:function(){return this.isDev?"https://gwdev.aoscdn.com/base/vip":"https://gw.aoscdn.com/base/vip"},getWPPath:function(t){return m.isApowerDomain?"":m.getRegionPath(t)+"/wp"},getDownloadDomain:function(t){return"zh"!==(t=t||m.lang)?"https://download.apowersoft.com":"https://download.apowersoft.cn"},getMyAccountDomain:function(){return this.isDev?"http://dev050.apowersoft.com":"zh"===m.lang||location.host.endsWith("cn")?"https://myaccount.apowersoft.cn":"https://myaccount.apowersoft.com"},getMyAccountMobileDomain:function(){return this.isDev?"http://myaccountm.apowersoft.test":"zh"===m.lang||location.host.endsWith("cn")?"https://myaccountm.apowersoft.cn":"https://myaccountm.apowersoft.com"},randomString:function(t){t=t||32;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnoprstuvwxyz123456789",i=e.length,s="",n=0;n<t;n++)s+=e.charAt(Math.floor(Math.random()*i));return s}}),t={uploadFiles:function(r,l,c){var h=this;return _asyncToGenerator(regeneratorRuntime.mark(function t(){var e,i,s,n,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(c&&(l=l.bind(c)),(r=h.filterFiles(r)).length){t.next=5;break}return l&&l([]),t.abrupt("return",[]);case 5:return e=!1,f.msg.info(m.tr("Uploading {0}...@@uploading_file").format('"'+r[0].name+'"'),"0%",{buttons:["cancel"],handler:function(t){e=!0}}),t.next=9,h.getAttachmentParams(r);case 9:if(!(i=t.sent)||e)return l&&l(null),t.abrupt("return",null);t.next=13;break;case 13:s=[],n=_createForOfIteratorHelper(r),t.prev=15,n.s();case 17:if((o=n.n()).done){t.next=30;break}return o=o.value,t.next=21,h.uploadEachFile(o,i(s.length));case 21:if(!(a=t.sent)){t.next=26;break}s.push({url:a,name:o.name}),t.next=28;break;case 26:return l&&l(null),t.abrupt("return",null);case 28:t.next=17;break;case 30:t.next=35;break;case 32:t.prev=32,t.t0=t.catch(15),n.e(t.t0);case 35:return t.prev=35,n.f(),t.finish(35);case 38:return l&&l(s),t.abrupt("return",s);case 40:case"end":return t.stop()}},t,null,[[15,32,35,38]])}))()},uploadFile:function(i,s,n){var o=this;return _asyncToGenerator(regeneratorRuntime.mark(function t(){var e;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n&&(s=s.bind(n)),t.next=3,o.uploadFiles([i]);case 3:return e=t.sent,e=e?e[0]:null,s&&s(e),t.abrupt("return",e);case 7:case"end":return t.stop()}},t)}))()},filterFiles:function(t){var e;return!(t=_toConsumableArray(t).filter(function(t){return e=t.name.replace("/(w+)./",""),!t.name.match(/\.(html|htm|css|php|js)/i)})).length&&e&&f.msg.alert(m.tr("cant_upload_ext_type").format("<b>"+e+"</b>")),t},getAttachmentParams:function(o){var a=this;return _asyncToGenerator(regeneratorRuntime.mark(function t(){var e,i,s,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.map(function(t){return t.name}),e={type:"attachment",files:JSON.stringify(e)},t.next=4,a.getParams(e);case 4:if(i=t.sent){t.next=7;break}return t.abrupt("return",null);case 7:return s=i.data.storage,n={callbackUrl:s.callback_url.callbackUrl,callbackBody:s.callback_url.callbackBody},t.abrupt("return",function(t){return{type:s.type,callback_url:JSON.stringify(n),object:s.objects[t],security_token:s.security_token}});case 10:case"end":return t.stop()}},t)}))()},getParams:function(s){return _asyncToGenerator(regeneratorRuntime.mark(function t(){var e,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.req.post("https://file.aoscdn.com/api/authorize",s);case 2:if(i=t.sent,e=i.ok,i=i.data,e)return t.abrupt("return",i);t.next=9;break;case 9:return t.abrupt("return",null);case 10:case"end":return t.stop()}},t)}))()},uploadEachFile:function(l,c){return _asyncToGenerator(regeneratorRuntime.mark(function t(){var e,i,s,n,o,a,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(i in(e=new FormData).append("file",l),c)e.append(i,c[i]);return o=function(t){t=Math.round(t.loaded/t.total*100);n(t)},(n=function(t){f.msg.info(m.tr("Uploading {0}...@@uploading_file").format('"'+l.name+'"'),t+"%",{buttons:["cancel"],handler:function(t){s&&s()}})})(0),t.next=8,f.req.post("https://storage.aoscdn.com/api/files",e,{onuploadprogress:o,getAbort:function(t){s=t}});case 8:if(o=t.sent,a=o.ok,r=o.data,f.msg.hide(),a&&r)return t.abrupt("return",r.data.url);t.next=16;break;case 16:return f.msg.error(m.tr('Failed to upload "{0}"!@@failed_to_upload',l.name)),t.abrupt("return",null);case 18:case"end":return t.stop()}},t)}))()},scriptLoadPromise:null,MAX_AVATAR_SIZE:5242880,uploadAvatar:function(d,u,t){var p=this;return t&&(u=u.bind(t)),d.size>this.MAX_AVATAR_SIZE?(f.msg.alert(m.tr("cant_upload_files_larger").format(f.formatSize(this.MAX_AVATAR_SIZE))),u&&u(null),null):new Promise(function(){var e=_asyncToGenerator(regeneratorRuntime.mark(function t(e){var i,s,n,o,a,r,l,c,h;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(window.OSS){t.next=14;break}if(t.prev=1,p.scriptLoadPromise)return t.next=5,p.scriptLoadPromise;t.next=7;break;case 5:t.next=9;break;case 7:return t.next=9,p.scriptLoadPromise=f.loadScript("https://gosspublic.alicdn.com/aliyun-oss-sdk.min.js");case 9:t.next=14;break;case 11:return t.prev=11,t.t0=t.catch(1),t.abrupt("return",null);case 14:return i=m.user?m.user.getId():"",s=m.user?m.user.getToken():"",o={type:"avatar",file:d.name,user_id:i,identity_token:s},t.next=19,p.getParams(o);case 19:if(n=t.sent){t.next=22;break}return t.abrupt("return",null);case 22:o=n.data.ali,h=o.callback_url.callbackUrl,a=o.callback_url.callbackBody,r=new OSS.Wrapper({accessKeyId:o.access_id,accessKeySecret:o.access_secret,bucket:o.bucket,secure:!0,stsToken:o.security_token,endpoint:o.endpoint,region:o.region}),l=o.objects[0],c="&x:uid="+i+"&x:utoken="+encodeURI(s),h={url:h,body:a+c},r.multipartUpload(l,d,{cancelFlag:!0,callback:h}).then(function(t){u&&u(t.data.data.url),e(t.data.data.url)},function(t){u&&u(null),e(null)});case 30:case"end":return t.stop()}},t,null,[[1,11]])}));return function(t){return e.apply(this,arguments)}}())}};m.uploadFiles=t.uploadFiles.bind(t),m.uploadFile=t.uploadFile.bind(t),m.uploadAvatar=t.uploadAvatar.bind(t)}(jQuery),function(w){var r=apower.tr;w.registerDirective("render-on",{value:"",bind:function(){("mobile"===this.value&&w(window).width()<=768||"pc"===this.value&&768<w(window).width())&&this.layout()},layout:function(){this.el.replaceWith(w(this.el[0].textContent))}}),w.registerDirective("tip",{value:"",align:"t",gap:"5",tipClass:"",bind:function(){this.el.on("mouseenter",this.onMouseEnter,this)},unbind:function(){var t=this;this.el.off("mouseenter",this.onMouseEnter,this),this.el.off("mouseleave",this.onMouseLeave,this),this.layer&&this.layer.fadeOut(200,function(){t.layer.remove()})},update:function(t){this.value=t},onMouseEnter:function(){this.value&&768<=w(window).width()&&(this.showTip(),w.onceAllLeave([this.el,this.layer],200,this.onMouseLeave,this))},showTip:function(){w(".ap-tip").remove(),this.layer=w('<div class="ap-tip '+this.tipClass+'"><div class="ap-trangle"></div><div class="ap-tip-text">'+this.value+"</div></div>").appendTo("body"),this.layer.show(),this.layer.alignTo(this.el,this.align,this.gap),this.trigger("show",this.layer)},onMouseLeave:function(t){this.hideTip()},hideTip:function(){this.el.off("mouseleave",this.onMouseLeave,this),this.layer&&this.layer.fadeOut(300,function(){this.destroyed&&this.layer.remove(),this.trigger("hide",this.layer)}.bind(this))},setValue:function(t){this.value=t,this.layer&&(this.layer.find(".ap-tip-text").html(t),this.layer.alignTo(this.el,this.align,this.gap))}}),w.registerDirective("tabs",{value:"",btns:null,tabs:null,bind:function(){this.btns=this.el.children(),this.value?(t=(this.value.startsWith(".")||this.value.startsWith("#")?"":".")+this.value,this.tabs=this.el.findNearestBehind(t).children()):this.tabs=this.el.next().children(),this.btns.$on("click",this.onClickBtn,this);var t=this.btns.filter(".active").index();0<=t&&this.tabs.eq(t).addClass("active")},onClickBtn:function(t){var t=w(t.currentTarget),e=this.tabs.eq(t.index());t.addClass("active").siblings().removeClass("active"),e.addClass("active").siblings().removeClass("active"),this.trigger("change",e)}}),w.registerDirective("loading",{loadingEl:null,update:function(t){var e=this;t?(this.loadingEl=this.loadingEl||w('<div class="loading"><div><div></div></div></div>'),this.loadingEl.appendTo(this.el),"static"===this.el.css("position")&&this.el.css("position","relative"),w.nextTick(function(){e.el.height()<80&&(e.loadingEl.addClass("loading-small"),e.el.css("font-size","0"))})):this.loadingEl&&(this.loadingEl.fadeOut(200,function(){e.loadingEl.hide()}),this.el.css("font-size",""))}}),w.registerMixin("loading",{showLoading:function(){var t=this;this.loadingEl=this.loadingEl||w('<div class="loading"><div><div></div></div></div>').appendTo(this.el),w.nextTick(function(){t.loadingEl.show(),t.el.height()<80?(t.loadingEl.addClass("loading-small"),t.el.css("font-size","0")):t.loadingEl.removeClass("loading-small")})},hideLoading:function(){var t=this;this.loadingEl&&(this.loadingEl.fadeOut(200,function(){t.loadingEl.hide()}),this.el.css("font-size",""))}}),w.registerComponent("icon",{SYMBOLS:{},template:'<svg class="icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" :class="\'icon-\' + (type || \'unknown\')"></svg>',type:"",onReady:function(){this.watch("type",this.onTypeChange,!0)},onTypeChange:function(t){this.el.empty();var t=this.SYMBOLS[t],e=this.el[0];if(t)for(var t=t.matches(/<svg viewBox="(.+?)">([\s\S]+?)<\/svg>/),i=t[1],t=t[2],s=i.split(" "),n=s[2],s=s[3],i=(e.setAttribute("viewBox",i),e.setAttribute("width",n+"px"),e.setAttribute("height",s+"px"),document.createElement("div")),o=(i.innerHTML="<svg>"+t+"</svg>",Array.from(i.childNodes[0].childNodes)),a=0,r=o.length;a<r;a++)e.appendChild(o[a]);else e.setAttribute("viewBox","0 0 20 20"),e.setAttribute("width","20px"),e.setAttribute("height","20px")}}),w.getComponent("icon").extendSymbols=function(t){w.extend(w.getComponent("icon").prototype.SYMBOLS,t)},w.getComponent("icon").extendSymbols({"youtan-account":'\t\t<svg viewBox="0 0 16.64 19.22">\t\t\t<path style="fill:currentColor;opacity:1;" class="cls-1" d="M1392.36,671.08c-.58,0-1.23,0-1.94,0-8,0-8.32-2.22-8.32-2.22a7.31,7.31,0,0,1,3.86-6.45l.13-.09a5.31,5.31,0,0,1,3.33-9.46,11.78,11.78,0,0,1,2.94.37,5.31,5.31,0,0,0-1.4,9.09l-.13.09a7.31,7.31,0,0,0-3.86,6.45S1386.42,670.75,1392.36,671.08Z" transform="translate(-1381.1 -651.91)"/>\t\t\t<circle style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;" class="cls-2" cx="8.32" cy="6.32" r="5.32"/>\t\t\t<path style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;" class="cls-2" d="M1395.19,664.42a7.29,7.29,0,0,1,1.54,4.5" transform="translate(-1381.1 -651.91)"/>\t\t\t<path style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;;" class="cls-2" d="M1382.1,668.91a7.32,7.32,0,0,1,3.86-6.45" transform="translate(-1381.1 -651.91)"/>\t\t\t<path style="fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;opacity:0.1;" class="cls-3" d="M1386.59,657.66a2.4,2.4,0,0,1,1.93-2" transform="translate(-1381.1 -651.91)"/>\t\t</svg>\t',video:'\t\t<svg viewBox="0 0 20.35 15.25">\t\t\t<defs><style>.cls-1,.cls-3{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}.cls-1{stroke-width:2px;}.cls-2{fill:currentColor;opacity:0.1;}</style></defs>\t\t\t<title>矢量智能对象1</title>\t\t\t<path class="cls-1" d="M1268.58,657.48v-1.72a2.32,2.32,0,0,0-2.32-2.32h-8.64a2.32,2.32,0,0,0-2.32,2.31l0,8.61a2.32,2.32,0,0,0,2.32,2.32h8.65a2.32,2.32,0,0,0,2.32-2.31v-1.79l5.06,2.35v-7.48l-2.21.76" transform="translate(-1254.29 -652.44)"/>\t\t\t<path class="cls-2" d="M1263.91,666.68h-6.3a2.32,2.32,0,0,1-2.32-2.32l0-8.61a2.31,2.31,0,0,1,2.32-2.31h6.29a2.32,2.32,0,0,0-2.32,2.31v8.61A2.31,2.31,0,0,0,1263.91,666.68Z" transform="translate(-1254.29 -652.44)"/>\t\t\t<line class="cls-3" x1="4.71" y1="4.4" x2="4.71" y2="9.59"/>\t\t</svg>\t',down:'\t\t<svg viewBox="0 0 12 12">\t\t\t<polyline style="stroke-linecap:round;" points="1.5,3.3 6,8.3 10.5,3.3"/>\t\t</svg>\t',"down-trangle":'\t\t<svg viewBox="0 0 12 12">\t\t\t<polygon  points="6.5,0 3.2,4.2 0,0 "/>\t\t</svg>\t',search:'\t\t<svg viewBox="0 0 20 20">\t\t\t<circle style="stroke-miterlimit:10;" cx="8.5" cy="8.5" r="7"/>\t\t\t<line style="stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;" x1="15.8" y1="15.7" x2="18.5" y2="18.4"/>\t\t</svg>\t',"search-thick":'\t\t<svg viewBox="0 0 17 17">\t\t\t<circle style="stroke-width:2;stroke-linecap:round;stroke-linejoin:round;" cx="7.5" cy="7.5" r="6.5"/>\t\t\t<line style="stroke-width:2;stroke-linecap:round;stroke-linejoin:round;" x1="14" y1="14" x2="16" y2="16"/>\t\t\t<path style="stroke-linecap:round;stroke-linejoin:round;" d="M4.5,7c0-1.9,1.6-3.5,3.5-3.5"/>\t\t</svg>\t',star:'\t\t<svg viewBox="0 0 22 22">\t\t\t<path style="fill:currentColor; stroke:none;" d="M19,9.2c-0.1-0.3-0.4-0.5-0.7-0.6L13.8,8l-2-4c-0.2-0.3-0.5-0.5-0.8-0.5c-0.3,0-0.6,0.2-0.8,0.5l-2,4L3.7,8.6C3.4,8.6,3.1,8.9,3,9.2C2.9,9.5,3,9.8,3.3,10l3.2,3.1l-0.8,4.4c-0.1,0.3,0.1,0.6,0.3,0.8c0.3,0.2,0.7,0.3,1,0.1l4-2.1l4,2.1c0.1,0.1,0.3,0.1,0.4,0.1c0.2,0,0.4-0.1,0.5-0.2c0.3-0.2,0.4-0.5,0.3-0.8l-0.8-4.4l3.2-3.1C19,9.8,19.1,9.5,19,9.2z"/>\t\t</svg>\t',radio:'\t\t<svg viewBox="0 0 18 18">\t\t\t<path style="stroke:none; fill:currentColor" d="M12.7,4.3C11,6.6,8.9,9.1,8.1,12c-0.9-1-1.9-2-2.9-2.8c-0.7-0.5-1.6,0.4-0.9,1c1.3,1,2.5,2.3,3.7,3.6c0.3,0.3,1,0.2,1.1-0.3C9.6,10.3,12,7.6,13.9,5C14.4,4.3,13.2,3.6,12.7,4.3"/>\t\t</svg>\t',checkbox:'\t\t<svg viewBox="0 0 18 18">\t\t\t<path style="stroke:none; fill:currentColor" d="M12.7,4.3C11,6.6,8.9,9.1,8.1,12c-0.9-1-1.9-2-2.9-2.8c-0.7-0.5-1.6,0.4-0.9,1c1.3,1,2.5,2.3,3.7,3.6c0.3,0.3,1,0.2,1.1-0.3C9.6,10.3,12,7.6,13.9,5C14.4,4.3,13.2,3.6,12.7,4.3"/>\t\t</svg>\t',up:'\t\t<svg viewBox="0 0 10 10">\t\t\t<polyline style="stroke-linecap:round;stroke-miterlimit:10;" points="9.5,7.3 5,2.3 0.5,7.3"/>\t\t</svg>\t',close:'\t\t<svg viewBox="0 0 10 10">\t\t\t<rect x="4.5" y="-1.5" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -2.0563 4.9852)" style="fill:currentColor;stroke:none;" width="1" height="13"/>\t\t\t<rect x="-1.5" y="4.5" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -2.0919 5)" style="fill:currentColor;stroke:none;" width="13" height="1"/>\t\t</svg>\t',"close-wide":'\t\t<svg viewBox="0 0 12 12">\t\t\t<line style="stroke-width:2;stroke-linecap:round;stroke-linejoin:round;" x1="1" y1="1" x2="11" y2="11"/>\t\t\t<line style="stroke-width:2;stroke-linecap:round;stroke-linejoin:round;" x1="11" y1="1" x2="1" y2="11"/>\t\t</svg>\t'}),w.registerComponent("radio",{template:'\n\t\t<div class="radio" :class.active="checked" @click="onClick">\n\t\t\t<div class="radio-icon">\n\t\t\t\t<icon type="radio"></icon>\n\t\t\t</div>\n\t\t\t<div class="radio-label">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t</div>\n\t',checked:!1,value:"",onCreated:function(){var t=this.closest("radio-group");t&&(this.group=t,this.checked=t.value==this.value,t.register(this))},onGroupValueChange:function(){var t=this.closest("radio-group");t&&(this.group=t,this.checked=t.value==this.value)},onClick:function(){this.checked||(this.checked=!0,this.trigger("change",this.value))}}),w.registerComponent("radio-group",{template:'\n\t\t<div class="radio-group">\n\t\t\t<slot></slot>\n\t\t</div>\n\t',value:"",onCreated:function(){this.radios=[]},onReady:function(){var i=this;this.watch("value",function(){for(var t=0,e=i.radios.length;t<e;t++)i.radios[t].onGroupValueChange()})},register:function(t){this.radios.push(t),t.on("change",this.onRadioChange.bind(this,t))},onRadioChange:function(t){var e,i=_createForOfIteratorHelper(this.radios);try{for(i.s();!(e=i.n()).done;){var s=e.value;s!==t&&(s.checked=!1)}}catch(t){i.e(t)}finally{i.f()}this.value=t.value,this.trigger("change",this.value)}}),w.registerComponent("checkbox",{template:'\n\t\t<div class="checkbox" :class.active="checked" @click="onClick">\n\t\t\t<div class="checkbox-icon">\n\t\t\t\t<icon :type="checkboxicon"></icon>\n\t\t\t</div>\n\t\t\t<div class="checkbox-label">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t</div>\n\t',_modelProperty:"checked",checked:!1,value:"",data:null,checkboxicon:"checkbox",onCreated:function(){var e=this,t=this.closest("checkbox-group");t&&(this.group=t,this.checked=-1<t.value.findIndex(function(t){return t==e.value}),t.register(this))},onClick:function(){this.checked=!this.checked,this.data&&(this.checked?this.data.add(this.value):this.data.remove(this.value)),this.trigger("change",this.checked)}}),w.registerComponent("checkbox-group",{template:'\n\t\t<div class="checkbox-group">\n\t\t\t<slot></slot>\n\t\t</div>\n\t',value:null,onCreated:function(){this.value=this.value||[],this.checkboxs=[]},register:function(t){this.checkboxs.push(t),t.on("change",this.onCheckboxChange.bind(this,t))},onCheckboxChange:function(e){e.checked?this.value.push(e.value):this.value.removeWhere(function(t){return t==e.value}),this.trigger("change",this.value)}}),w.registerComponent("switch",{template:'\n\t\t<div class="switch" :class.active="value" @click="onClick">\n\t\t\t<div class="switch-ball"></div>\n\t\t\t<slot></slit>\n\t\t</div>\n\t',value:!1,onReady:function(){this.checkbox=this.el.find("[type=checkbox]"),this.checkbox.length&&(this.value=this.checkbox[0].checked)},onClick:function(){this.value=!this.value,this.checkbox.length&&(this.checkbox[0].checked=this.value),this.trigger("change",this.value)}}),w.registerComponent("form-fields",{template:"<form class=\"form-fields\" :autocomplete=\"autoComplete ? 'on' : 'off'\"><slot></slot></form>",messages:{required:apower.tr("This field is required@@field_required"),email:apower.tr("Please input a valid email address@@invalid_email"),phone:apower.tr("Please input a valid phone number@@invalid_phone"),minlength:function(t,e){return apower.tr("The minimum length should be {0}@@length_must_more",e.attr("minLength"))}},validators:{required:function(t,e){return!!t.trim()},email:function(t,e){return/^[\w-\+]+(?:\.[\w-\+]+)*@[\w-\+]+(?:\.[\w-\+]+)+$/.test(t.trim())},phone:function(t,e){return/^\d{7,14}$/.test(t.trim())},cnphone:function(t,e){return/^\d{11}$/.test(t.trim())},overseaphone:function(t,e){return/^\d{7,14}$/.test(t.trim())},minlength:function(t,e){return t.trim().length>=e.attr("minLength")||0}},onlyValidateFirst:!1,autoComplete:!0,onCreated:function(){this.fields=[]},onReady:function(){this.el.find("button").on("click",function(t){return t.preventDefault()}),this.el.find("input[type=submit]").on("click",this.onSubmit,this),this.el.find("input").on("keydown",this.onKeydown,this)},register:function(t){this.fields.push(t)},getFieldValue:function(t){return this.getField(t).getValue()},getField:function(e){return this.fields.find(function(t){return t.name===e})},setFieldValue:function(e,t){this.fields.find(function(t){return t.name===e}).setValue(t)},onKeydown:function(t){13===t.keyCode&&this.onSubmit(t)},onSubmit:function(t){t.preventDefault(),this.validate()&&this.trigger("submit",this.getData())},validate:function(){var t,e=!0,i=(this.onlyValidateFirst&&this.setUnTouched(),_createForOfIteratorHelper(this.fields));try{for(i.s();!(t=i.n()).done;){var s=t.value,n=s.validate();if(e&&!n&&s.focus(),!(e=e&&n)&&this.onlyValidateFirst)break}}catch(t){i.e(t)}finally{i.f()}return e},validateFields:function(t){var e,i=!0,s=_createForOfIteratorHelper(this.fields);try{for(s.s();!(e=s.n()).done;){var n=e.value;if(t.includes(n.name)&&!(i=i&&n.validate())&&this.onlyValidateFirst)break}}catch(t){s.e(t)}finally{s.f()}return i},setUnTouched:function(){var t,e=_createForOfIteratorHelper(this.fields);try{for(e.s();!(t=e.n()).done;)t.value.setUnTouched()}catch(t){e.e(t)}finally{e.f()}},setError:function(t){var e,i=_createForOfIteratorHelper(this.fields);try{for(i.s();!(e=i.n()).done;){var s=e.value;if(s.hasRule(t))return s.setError(t),!0}}catch(t){i.e(t)}finally{i.f()}return console.warn('No field match rule "'.concat(t,'"')),!1},getData:function(t){var e,i={},s=_createForOfIteratorHelper(this.fields);try{for(s.s();!(e=s.n()).done;){var n=e.value;n.name&&(i[n.name]=n.getValue())}}catch(t){s.e(t)}finally{s.f()}return t&&w.extend(i,t),i},getFormData:function(){var t,e=new FormData,i=_createForOfIteratorHelper(this.fields);try{for(i.s();!(t=i.n()).done;){var s=t.value;s.name&&e.append(s.name,s.getValue())}}catch(t){i.e(t)}finally{i.f()}if(overwrite){var n,o=_createForOfIteratorHelper(overwrite);try{for(o.s();!(n=o.n()).done;){var a=n.value;e.append(a,overwrite[a])}}catch(t){o.e(t)}finally{o.f()}}return e}}),w.registerComponent("field",{template:'\n\t\t<div class="field" :class.field-border-through="borderThrough" :class.touched="touched" :class.invalid="errorText" :class.valid="!errorText">\n\t\t\t<div class="field-input-wrap"><slot></slot></div>\n\t\t\t<div class="field-error-text" f-html="errorText"></div>\n\t\t</div>\n\t',messages:{},validators:{},rules:["required"],form:null,touched:!1,errorText:"",validateWhen:"change",borderThrough:!1,onCreated:function(){var t=this.closest("form-fields");if(!t)throw new Error('"field" must be contained by a "form-fields"');t.register(this),this.form=t;var e,i=_createForOfIteratorHelper(this.rules);try{for(i.s();!(e=i.n()).done;){var s=e.value;this.messages[s]||this.form.messages[s]||console.warn('"message" for rule "'.concat(s,'" is not defined'))}}catch(t){i.e(t)}finally{i.f()}},onReady:function(){var t=this;this.input=this.el.find("textarea, input"),this.input.on("input",this.onInput,this),this.name=this.input.attr("name"),["change","blur"].includes(this.validateWhen)&&this.input.on(this.validateWhen,this.validate,this),1===this.el.find(".drop-select").length&&this.el.find(".drop-select").com().on("change",function(){w.nextTick(function(){t.validate("dropChange")})})},onInput:function(){"input"===this.validateWhen||"input"===this.validatewhen?this.validate():this.input.val().trim()&&(this.errorText=""),this.input.val().trim()?this.el.addClass("inputted"):this.el.removeClass("inputted")},getValue:function(){if("file"!==this.input[0].type)return this.input.val();this.input[0].files[0]},setValue:function(t){this.input.val(t)},validate:function(){var t,e=!0,i=_createForOfIteratorHelper(this.rules);try{for(i.s();!(t=i.n()).done;){var s=t.value,n=this.messages[s]||this.form.messages[s];if(!(e=this.isRuleValid(s))){this.setErrorMessage(n);break}}}catch(t){i.e(t)}finally{i.f()}return e&&(this.errorText=""),this.setTouched(),e},isRuleValid:function(t){t=this.validators[t]||this.form.validators[t];return!t||t.call(this,this.input.val(),this.input)},focus:function(){this.input.focus()},setTouched:function(){this.touched=!0},setUnTouched:function(){this.touched=!1,this.errorText=""},hasRule:function(e){return-1<this.rules.findIndex(function(t){return t==e})},setError:function(t){var e=this.messages[t]||this.form.messages[t];e?this.setErrorMessage(e):console.warn('"message" for rule "'.concat(t,'" is not defined'))},setErrorMessage:function(t){this.setTouched(),this.errorText="function"==typeof t?t.call(this,this.input.val(),this.input):t}}),w.registerComponent("drop",{template:'\n\t\t<div class="drop">\n\t\t\t<slot></slot>\n\t\t\t<icon :type="icon"></icon>\n\t\t\t<div class="drop-menu" :class="menuClass" ref="menu">\n\t\t\t\t<div class="ap-trangle"></div>\n\t\t\t</div>\n\t\t</div>\n\t',align:"b",gap:"0",menuClass:"",open:!1,event:"hover",icon:"down",onReady:function(){var t=this.el.find("ul");t.closest(this.menu).length||this.menu.append(t),this.isOld?(this.el.css("overflow","visible"),this.menu.css("position","fixed")):this.menu.appendTo(document.body),"hover"===this.event?window.innerWidth<=768?this.el.on("click",this.onMouseEnter,this):this.el.on("mouseenter",this.onMouseEnter,this):this.el.on(this.event,this.onClick,this),"mousedown"===this.event&&this.menu.on("mousedown",this.preventMouseDown,this),this.menu.on("click",this.onClickMenu,this)},onMouseEnter:function(t){w(t.target).closest(this.menu).length||this.willShowMenu()&&(this.onBeforeMenuShow(),this.showMenu(),w.env.isTouch&&w("body").children().on("mousedown",this.onDocMouseDown,this),w.onceAllLeave([this.el,this.menu],200,this.hideMenu,this))},willShowMenu:function(){return!0},onBeforeMenuShow:function(){},showMenu:function(){this.el[0].className.includes("active")&&window.innerWidth<=768?this.hideMenu():(this.menu.stop().fadeIn(200),this.alignMenu(),this.el.addClass("active"),this.open=!0,w.nextTick(this.onAfterMenuShow,this))},alignMenu:function(){this.menu.alignTo(this.el,this.align,this.gap,!0)},onAfterMenuShow:function(){},onClickMenu:function(){this.hideMenu()},hideMenu:function(){this.menu.stop().fadeOut(200),this.el.removeClass("active"),this.open=!1,w(document).off("mousedown",this.onDocMouseDown,this)},onClick:function(t){w(t.target).closest(this.menu).length||(this.open?this.hideMenu():(this.onBeforeMenuShow(),this.showMenu(),w(document).on("mousedown",this.onDocMouseDown,this)),t.preventDefault(),t.stopPropagation())},onDocMouseDown:function(t){w(t.target).closest(this.el).length||w(t.target).closest(this.menu).length||this.hideMenu()},preventMouseDown:function(t){t.preventDefault()},onDestroy:function(){this.menu.remove()}}),w.registerComponent("drop-select","drop",{template:'\n\t\t<div class="drop drop-select">\n\t\t\t<slot>{{getDisplay()}}</slot>\n\t\t\t<icon :type="icon"></icon>\n\t\t\t<div class="drop-menu drop-select-menu" :class="menuClass" ref="menu">\n\t\t\t\t<ul>\n\t\t\t\t\t<li f-for="item of getOptionData()" @click="selectValue(item[0])" :class.active="value == item[0]">{{item[1]}}</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t',event:"click",value:"",data:null,select:null,minMenuWidth:0,onReady:function(){this.initInnerSelect(),"mousedown"===this.triggerType&&this.ul.on("mousedown",function(t){return t.preventDefault()})},initInnerSelect:function(){var i,t=this.el.find("select");t.length&&(this.select=t,this.el.append(this.select),this.value=t.val(),i=this.data=[],t.find("option").map(function(t,e){i.push([e.value,e.textContent])}),this.on("change",function(i){t.find("option").filter(function(t,e){return e.value==i}).attr("selected",!0)},this))},getDisplay:function(){var t,e=_createForOfIteratorHelper(this.getOptionData());try{for(e.s();!(t=e.n()).done;){var i=_slicedToArray(t.value,2),s=i[0],n=i[1];if(s===this.value)return n}}catch(t){e.e(t)}finally{e.f()}return this.value},getOptionData:function(){var t=this.data,e=[];if(t)if(t.length)for(var i=0;i<t.length;i++){var s=t[i],n=s;Array.isArray(s)&&(n=s[1],s=s[0]),e.push([s,n])}else if("object"===_typeof(t))for(var o in t){var a=t[o];e.push([o,a])}return e},selectValue:function(t){this.setValue(t),this.trigger("select",t)},setValue:function(t){this.hideMenu(),t!==this.value&&(this.value=t,this.setValueToInnerSelect(t),this.trigger("change",t))},setValueToInnerSelect:function(t){this.select&&(this.select.find("option").removeAttr("selected"),this.select.find("option[value="+t+"]").attr("selected","selected"))},onBeforeMenuShow:function(){this.setMenuWidth()},setMenuWidth:function(){var t=Math.max(this.minMenuWidth,this.el[0].offsetWidth);this.menu.css("min-width",t)}}),w.registerComponent("color-select","drop-select",{template:'\n\t\t<div class="drop drop-select color-select">\n\t\t\t<slot>{{value}}</slot>\n\t\t\t<icon :type="icon"></icon>\n\t\t\t<div class="drop-menu color-select-menu" :class="menuClass" ref="menu">\n\t\t\t\t<div class="ap-trangle"></div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li f-for="color of data" @click="selectValue(color)" :class.active="value == color" :style.background-color="color"></li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t',value:"#000000",data:["#000000","#424242","#626262","#9d9d95","#c7c7c7","#efefef","#f7f7f7","#ffffff","#ff0000","#ff9d00","#ffff00","#00ff00","#00ffff","#0000ff","#9d00ff","#ff00ff","#f7c7cf","#ffebcb","#ffebcb","#d7efd7","#d3dbe7","#cfe7f7","#d3dbe7","#e7d7df","#e79d9d","#ffc79d","#ffe79d","#b5d7a5","#a5c7cf","#9dc7ef","#b5a5d7","#d7a5bd","#e76262","#f7ad6a","#ffd762","#95bd7a","#72a5ad","#6aaddf","#8d7ac7","#c77aa5","#cf0000","#e79538","#efc730","#6aa54a","#4a7a8d","#3885c7","#624aa5","#a54a7a","#9d0000","#b56208","#bd9500","#387a20","#104a5a","#085295","#301872","#721842","#620000","#7a3800","#285218","#285218","#083038","#003062","#20104a","#4a1030"]}),w.registerComponent("inputable-select","drop-select",{template:'\n\t\t<div class="drop drop-select inputable-select">\n\t\t\t<slot>{{value}}</slot>\n\t\t\t<icon :type="icon"></icon>\n\t\t\t<div class="drop-menu inputable-select-menu" :class="menuClass" ref="menu" hidden>\n\t\t\t\t<div class="inputable-select-search" :class.active="suggest">\n\t\t\t\t\t<input type="text" f-model="suggest" ref="input">\n\t\t\t\t\t<icon type="search-thick"></icon>\n\t\t\t\t</div>\n\t\t\t\t<ul>\n\t\t\t\t\t<li f-for="item of getOptionData()" @click="selectValue(item[0])" :class.active="value == item[0]">{{item[1]}}</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t',align:"bl",gap:"10 -40",suggest:"",onReady:function(){var t=this;this.watch("suggest",function(){t.alignMenu()})},onAfterMenuShow:function(){this.input.focus()},getOptionData:function(){var t=this.data,e=this.suggest.toLowerCase(),i=[];if(t)if(t.length)for(var s=0;s<t.length;s++){var n=t[s],o=n;Array.isArray(n)&&(o=n[1],n=n[0]),e&&!o.toLowerCase().includes(e)||i.push([n,o])}else if("object"===_typeof(t))for(var a in t){var r=t[a];e&&!r.toLowerCase().includes(e)||i.push([a,r])}return i}}),w.registerComponent("win",{template:'\n\t\t<div class="win" f-loading="loading">\n\t\t\t<div class="win-head" ref="head"></div>\n\t\t\t<div class="win-body" ref="body"></div>\n\t\t\t<div class="win-foot" ref="foot"></div>\n\t\t</div>\n\t',autoDestroy:!1,target:"body",mask:!0,hideByDefault:!0,scrollTop:0,onReady:function(){var e=this;this.hideByDefault&&this.el.hide(),this.body&&this.body.stopScroll(),this.on("show",this.onShow,this),this.on("hide",this.onHide,this),this.mask&&(this.maskEl=w('<div class="win-mask" ref="maskEl"></div>'),this.on("show",function(t){e.el.before(e.maskEl),e.maskEl.css("z-index",e.el.css("z-index")),e.maskEl.stop().fadeIn(t)}),this.on("hide",function(){e.maskEl.stop().fadeOut(200)}),this.on("destroy",function(){e.maskEl.remove()})),this.closeEl=this.createFromTemplate('<div class="win-close" ref="closeEl"><icon type="close-wide"></icon></div>').appendTo(this.el),this.closeEl.on("click",this.whenCloseWin,this)},onDestroy:function(){w(window).off("resize",this.alignWin,this),w("body").removeClass("body-fixed"),w(document).scrollTop(-this.scrollTop),this.maskEl&&this.maskEl.remove()},show:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:200;this.el.show(),this.el.css("display","flex"),this.alignWin(),this.el.stop().fadeIn(t),this.trigger("show",t),this.scrollTop=-w(document).scrollTop(),w("body").addClass("body-fixed"),w("body").css("top",this.scrollTop+"px"),w(window).on("resize",this.alignWin,this)},alignWin:function(){this.el.alignTo(document.body,"c")},onShow:function(){},onHide:function(){},hide:function(){this.el.stop().fadeOut(200,this.onHidden.bind(this)),this.trigger("hide"),w("body").removeClass("body-fixed"),w(document).scrollTop(-this.scrollTop),w.env.isMobile&&w("body").removeClass("body-static"),w(window).off("resize",this.alignWin,this)},whenCloseWin:function(){this.hide()},onHidden:function(){this.autoDestroy&&this.destroy()},showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1}}),w.msg=w.newComponent("win",{template:'\n\t\t<div class="win msg" :class="[\'msg-\' + type, class]" f-loading="loading">\n\t\t\t<div class="win-body msg-body" ref="body">\n\t\t\t\t<div class="msg-title" f-html="title" f-show="title"></div>\n\t\t\t\t<div class="msg-text" f-html="message" f-show="message"></div>\n\t\t\t\t<div class="msg-field" f-show="type === \'prompt\'">\n\t\t\t\t\t<input class="msg-input" type="text" f-model="value" @keydown="onKeydown(\'ok\')" required :attr="inputAttributes" ref="input">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="win-foot msg-foot" ref="foot">\n\t\t\t\t<button f-for="btn, text in buttons"\n\t\t\t\t\tf-disable="type === \'prompt\' && btn === \'ok\' && !value"\n\t\t\t\t\t@click="handleButton(btn)"\n\t\t\t\t\t:attr.type="btn === \'ok\' ? \'primary\' : \'\'"\n\t\t\t\t>{{text}}</button>\n\t\t\t</div>\n\t\t</div>\n\t',type:"",target:"",onReady:function(){this.closeEl.$on("click",this.onCancelMsg,this)},onCancelMsg:function(t){this.handleButton("cancel")},onKeydown:function(t){10!==t.keyCode&&13!==t.keyCode||this.handleButton("ok")},handleButton:function(t){this.hide(),this.fn&&this.fn.call(this.scope,t,this.value),this.resolve("prompt"===this.type?"ok"===t?this.value:"":t)},showMsg:function(t,e,i,s,n,o,a){var r=this;return this.el.parent().length||this.el.appendTo("body"),"string"==typeof e&&(o=n,n=s,s=i,i=e,e=null),"string"!=typeof s&&(o=n,n=s,s=i,i=""),"function"!=typeof n&&(a=n,n=null),a=a||{},this.type=t,this.buttons=e||a.buttons,this.title=i||a.title,this.message=s,this.fn=n||a.handler,this.scope=o,this.value=a.value||"",this.class=a.class,this.inputAttributes=a.inputAttributes,this.buttons||(this.buttons=this.defaultButtons[t]),Array.isArray(this.buttons)&&(this.buttons=this.buttons.index(function(t){return[t,apower.tr(r.buttonTexts[t])]})),this.promise=new Promise(function(t){r.resolve=t}),w.digest(),w.nextTick(function(){r.show(),"prompt"===r.type&&r.input.focus()}),this.promise},buttonTexts:{ok:"OK@@001410",yes:"Yes@@yes",no:"No@@no",cancel:"Cancel@@cancel"},defaultButtons:{info:[],alert:["ok"],error:["ok"],success:["ok"],prompt:["ok"],confirm:["cancel","ok"]},info:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.showMsg.apply(this,["info"].concat(e))},alert:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.showMsg.apply(this,["alert"].concat(e))},error:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.showMsg.apply(this,["error"].concat(e))},success:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.showMsg.apply(this,["success"].concat(e))},prompt:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.showMsg.apply(this,["prompt"].concat(e))},confirm:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.showMsg.apply(this,["confirm"].concat(e))}}),w.registerComponent("light-msg",{template:'<div class="light-msg">{{message}}</div>',target:"body",message:"",elArr:[],maxNum:2,elTemplate:'<div class="light-msg">{{message}}</div>',msgPool:[],msgPoolMax:3,runingPool:[],onCreated:function(){this.elArr.push(this.el),console.log(this.elArr)},createEl:function(t){var e=this._getElFromTemplate(this.template);return e.appendTo(w(this.target)),e},getMsgEl:function(){return this.elArr.length?this.elArr.shift():this.runingPool.length<this.maxNum?this.createEl():void 0},info:function(t){this.addToMsgPool({msg:t})},showMsg:function(t){this.runingPool.push(t),t.el.text(t.msg),w.digest(),this.show(t)},addToMsgPool:function(t){this.msgPool.length<this.msgPoolMax||this.msgPool.shift(),this.msgPool.push(t),this.nextMsg()},nextMsg:function(){var t;this.msgPool.length&&this.runingPool.length<this.maxNum&&((t=this.msgPool.shift()).el=this.getMsgEl(),t.gap=5*this.runingPool.length+"",this.showMsg(t))},show:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:200;t.el.appendTo(w(this.target)),t.el.show(),this.alignWin(t.el,t.gap),t.el.css("opacity",1),t.el.stop().fadeIn(e),this.moveHide(t)},moveHide:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500,i=this;setTimeout(function(){t.el&&t.el.stop().animate({opacity:0},e,function(){t.el.remove(),i.elArr.push(t.el),i.rmMsgObj(t),t.el=null,t=null,i.nextMsg()})},1500)},rmMsgObj:function(t){t=this.runingPool.indexOf(t);-1!=t&&this.runingPool.splice(t,1)},alignWin:function(t,e){t.alignTo(document.body,"c")}}),w.lightMsg=w.newComponent("light-msg"),w.notify=w.newComponent({template:'\n\t\t<div class="notify">\n\t\t\t<div class="notify-item"\n\t\t\t\tf-for="item of stack"\n\t\t\t\tf-transition="fade"\n\t\t\t\t:class="\'notify-type-\' + item.type"\n\t\t\t>\n\t\t\t\t<div class="notify-content">\n\t\t\t\t\t<div class="notify-icon" :class="\'notify-icon-\' + item.type"></div>\n\t\t\t\t\t<div class="notify-text">{{item.message}}</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t',hideDelay:3e3,target:"body",onCreated:function(){this.stack=[]},showNotify:function(t){var e=this,i=(this.stack.push(t),Math.max(0,w(".header")[0]?w(".header")[0].getBoundingClientRect().bottom:0));this.el.css("top",i),w.digest(),w.defer(function(){e.stack.remove(t),w.digest()},t.hideDelay||this.hideDelay)},alert:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return e.type="alert",e.message=t,this.showNotify(e)},success:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return e.type="success",e.message=t,this.showNotify(e)}}),w.registerComponent("wysiwyg",{template:'\n\t\t<div class="wysiwyg">\n\t\t\t<div class="wysiwyg-toolbar" ref="toolbar" @mousedown="onToolbarMouseDown">\n\t\t\t\t<div class="wysiwyg-button" f-for="button of toolbars"\n\t\t\t\t\t:class="\'wysiwyg-button-\' + button"\n\t\t\t\t\t:class.active="activeToolbars.includes(button)" \n\t\t\t\t\t@mousedown="onButtonMouseDown(button)"\n\t\t\t\t></div>\n\t\t\t</div>\n\t\t\t<div class="wysiwyg-editor" contenteditable="true" ref="editor"\n\t\t\t\t@mouseup="onEditorMouseUp"\n\t\t\t\t@keydown="onKeyDown"\n\t\t\t\t@input="onInput"\n\t\t\t\t@blur="onBlur"\n\t\t\t\t@paste="onPaste"\n\t\t\t\t@dragenter="onDragEnter"\n\t\t\t\t@dragleave="onDragLeave"\n\t\t\t\t@dragover="onDragOver"\n\t\t\t\t@drop="onDrop"\n\t\t\t>\n\t\t\t</div>\n\t\t\t<slot></slot>\n\t\t</div>\n\t',TOOLBARS:{heading:"Heading@@heading",bold:"Bold@@bold",italic:"Italic@@italic",underline:"Underline@@underline",emoji:"Emoji@@add_an_emoji",link:"Insert Link@@insert_link",image:"Insert Image@@insert_image","align-left":"Align Left@@align_left","align-center":"Align Center@@align_center","align-right":"Align Right@@align_right","align-justify":"Align Justify@@align_justify",color:"Text Color@@text_color",background:"Background Color@@background_color",undo:"Undo@@undo",redo:"Redo@@redo"},STYLE_TOOLBARS:["bold","italic","underline","align-left","align-center","align-right","align-justify"],COMMANDS:{heading:"heading",bold:"bold",italic:"italic",underline:"underline",emoji:"emoji","align-left":"justifyLeft","align-center":"justifyCenter","align-right":"justifyRight","align-justify":"justifyFull",undo:"undo",redo:"redo"},emojis:["🙂","😀","🙁","😮","😯","😕","😎","😡","😛","😐","😉","😆","😳","😥","👿","❗","❓","💡"],toolbars:null,activeToolbars:null,name:"",textarea:null,saveAndRestore:!0,value:"",saved:!1,onCreated:function(){this.toolbars?"string"==typeof this.toolbars&&(this.toolbars=this.toolbars.split(" ")):this.toolbars=Object.keys(this.TOOLBARS),this.activeToolbars||(this.activeToolbars=["align-left"]),this.saveAndRestore&&w(window).on("unload",this.saveContentIfNotSaved,this)},saveContentIfNotSaved:function(){this.saved||this.saveContent()},saveContent:function(){this.saveContentToURL(location.href)},saveContentToURL:function(t){var e=this.getValue();e?(w.store.set("wysiwyg_content",e),w.store.set("wysiwyg_url",t)):(w.store.remove("wysiwyg_content"),w.store.remove("wysiwyg_url")),this.saved=!0},getValue:function(){return this.editor.html().replace(/<p>\s*<\/p>/g,"").trim()},setValue:function(t){this.editor.html(t),this.textarea.val(t)},clearValue:function(){this.setValue("<p></p>")},focus:function(){this.editor.focus()},onReady:function(){this.initHeading(),this.initEmojiSelect(),this.initColorSelect(),this.initBackgroundSelect(),this.initTextarea(),this.initToolbarTips(),document.execCommand("enableObjectResizing",!1,!1),document.execCommand("defaultParagraphSeparator",!1,"p"),this.value&&this.setValue(this.value)},initHeading:function(){this.headingSelect=this.newComponent("drop-select",{target:this.toolbar.find(".wysiwyg-button-heading"),event:"mousedown",menuClass:"wysiwyg-menu wysiwyg-heading-menu",icon:"",align:"bl",gap:"0",data:{h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",p:apower.tr("Paragrah@@paragrah")},value:"p"}),this.headingSelect.on("select",this.onSelectHeading,this)},onSelectHeading:function(t){this.exec("formatBlock",t)},initEmojiSelect:function(){this.emojiSelect=w.newComponent("drop-select",{target:this.toolbar.find(".wysiwyg-button-emoji"),event:"mousedown",menuClass:"wysiwyg-menu wysiwyg-emoji-menu",icon:"",align:"bl",gap:"0",data:this.emojis}),this.emojiSelect.on("select",this.onSelectEmoji,this)},onSelectEmoji:function(t){this.exec("insertText",t)},initColorSelect:function(){this.colorSelect=w.newComponent("color-select",{target:this.toolbar.find(".wysiwyg-button-color"),event:"mousedown",menuClass:"wysiwyg-menu",icon:"",align:"bl",gap:"0"}),this.colorSelect.on("select",this.onSelectColor,this)},onSelectColor:function(t){this.exec("foreColor",t)},initBackgroundSelect:function(){this.backgroundSelect=w.newComponent("color-select",{target:this.toolbar.find(".wysiwyg-button-background"),event:"mousedown",menuClass:"wysiwyg-menu",icon:"",align:"bl",gap:"0"}),this.backgroundSelect.on("select",this.onSelectBackground,this)},onSelectBackground:function(t){this.exec("backColor",t)},initTextarea:function(){var t;this.textarea||(t=this.el.find("textarea"),this.textarea=t.length?t:this.createFromHTML('<textarea :name="name" ref="textarea"></textarea>').appendTo(this.el),this.textarea.hide()),this.setValue(this.textarea.val()||this.textarea.textContent)},initToolbarTips:function(){for(var t=this.toolbars.length-1;0<=t;t--){var e=this.toolbars[t];this.newDirective("tip",{el:this.toolbar.find(".wysiwyg-button-"+e),value:apower.tr(this.TOOLBARS[e])})}},save:function(){var t=getSelection();0<t.rangeCount&&(this.range=t.getRangeAt(0))},restore:function(){var t,e;this.range?((e=0<(t=getSelection()).rangeCount?t.getRangeAt(0):document.createRange()).setStart(this.range.startContainer,this.range.startOffset),e.setEnd(this.range.endContainer,this.range.endOffset),this.range=null,0===t.rangeCount&&t.addRange(e)):this.focus()},exec:function(t,e){if(document.activeElement!=this.editor[0]&&this.restore(),document.queryCommandSupported(t))document.execCommand(t,!1,e);else if("insertText"===t&&(t="insertHTML",e=w.encodeHTML(e)),"insertHTML"===t){t=window.getSelection();if(t.rangeCount){var i=t.getRangeAt(0),s=(i.deleteContents(),document.createElement("div"));for(s.innerHTML=e;s.firstChild;)i.insertNode(s.firstChild);i.collapse(!1)}}},onToolbarMouseDown:function(t){t.preventDefault()},onButtonMouseDown:function(t){var e;this.STYLE_TOOLBARS.includes(t)?(this.activeToolbars.includes(t)?this.setButtonState(t,!1):this.setButtonState(t,!0),e=this.COMMANDS[t],this.exec(e,null)):["redo","undo"].includes(t)?(e=this.COMMANDS[t],this.exec(e,null)):"link"===t?this.addOrRemoveLink():"image"===t&&this.addImage(),this.save()},setButtonState:function(t,e){var i=this.toolbar.find(".wysiwyg-button-"+t);if(t.startsWith("align-")){for(var s=this.activeToolbars.length-1;0<=s;s--){var n=this.activeToolbars[s];n.startsWith("align-")&&(this.activeToolbars.splice(s,1),this.toolbar.find(".wysiwyg-button-"+n).removeClass("active"))}this.activeToolbars.push(t),e=!0}else this.activeToolbars.includes(t)&&!e?this.activeToolbars.remove(t):!this.activeToolbars.includes(t)&&e&&this.activeToolbars.push(t);e?i.addClass("active"):i.removeClass("active")},addOrRemoveLink:function(){var t=getSelection().focusNode;t&&w(t).closest("a").length?this.exec("unlink"):this.addLink()},addLink:function(){var s=this,t=getSelection().toString(),t=w.newComponent("win",{template:'\n\t\t\t\t<div class="win wysiwyg-win wysiwyg-link-win">\n\t\t\t\t\t<div class="win-head" ref="head">Insert link@@insert_link</div>\n\t\t\t\t\t<div class="win-body" ref="body">\n\t\t\t\t\t\t<div class="wysiwyg-field">\n\t\t\t\t\t\t\t<label class="wysiwyg-label">{{\'URL@@url\' | trans}}:</label>\n\t\t\t\t\t\t\t<input type="text" class="wysiwyg-input" f-model="url" ref="urlInput" f-focus>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="wysiwyg-field">\n\t\t\t\t\t\t\t<label class="wysiwyg-label">{{\'Text@@text\' | trans}}:</label>\n\t\t\t\t\t\t\t<input type="text" class="wysiwyg-input" f-model="text" ref="textInput" value="{text}">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="win-foot" ref="foot">\n\t\t\t\t\t\t<button @click="hide">Cancel@@cancel</button>\n\t\t\t\t\t\t<button type="primary" @click="onOK">OK@@001410</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t',autoDestroy:!0,text:t,url:"",onOK:function(){var t,e,i=this.url.trim();i?(t=this.textInput.val().trim()||i,this.hide(),s.doAddingLink(i,t)):((e=this.newDirective("tip",{el:this.urlInput,tipClass:"wysiwyg-error",value:apower.tr("This field is required@@field_required")})).showTip(),this.urlInput.once("input",function(){e.unbind()}))}});t.show(),t.on("hide",this.restore,this)},doAddingLink:function(t,e){this.exec("insertHTML",'<a href="'+w.encodeHTML(t)+'">'+w.encodeHTML(e)+"</a>");t=getSelection();t.focusNode&&t.focusNode&&((e=w(t.focusNode.parentNode).closest("a")).length&&t.extend(e[0]))},addImage:function(){w.selectFile("image/*",!1,this.onSelectImage,this)},onSelectImage:function(t){apower.uploadFile(t,this.onImageUploaded,this)},onImageUploaded:function(t){t&&this.exec("insertImage",t.url)},onEditorMouseUp:function(t){this.checkCurrentStyle()},checkCurrentStyle:function(){var t,e=getSelection();e.anchorNode&&e.focusNode&&(t=w(e.anchorNode.parentNode),e=w(e.focusNode.parentNode),this.setButtonState("bold",400<t.css("font-weight")&&400<e.css("font-weight")),this.setButtonState("italic","italic"===t.css("font-style")&&"italic"===e.css("font-style")),this.setButtonState("underline",t.css("text-decoration").includes("underline")&&e.css("text-decoration").includes("underline")),"start"===(t=e.css("text-align"))?t="left":"end"===t&&(t="right"),this.setButtonState("align-"+t,!0),e.is("h2, h3, h4, h5, h6")?this.headingSelect.setValue(e[0].localName):this.headingSelect.setValue("p"))},onKeyDown:function(t){[33,34,35,36,37,38,39,40,46].includes(t.keyCode)&&this.checkCurrentStyle()},onInput:function(){this.saved=!1,this.trigger("input")},onBlur:function(){this.semantic();var t=this.getValue();this.textarea.val(t),this.value=t,this.trigger("change",t)},semantic:function(){for(var n=this.editor[0],t=Array.from(n.childNodes),o=[],e=function(){for(;0<o.length;){var t=o[0];if(3!==t.nodeType||t.textContent.trim())break;o.shift()}for(;0<o.length;){var e=o[o.length-1];if(3!==e.nodeType||e.textContent.trim())break;o.pop()}if(0<o.length){var i=document.createElement("p");n.insertBefore(i,o[0]);for(var s=0;s<o.length;s++)i.appendChild(o[s])}o=[]},i=0;i<t.length;i++){var s=t[i],a=!1;if(3===s.nodeType)o.push(s);else if(1===s.nodeType&&(getComputedStyle(s).display.includes("inline")?o.push(s):a=!0,"div"===s.localName&&s.textContent.trim())){for(var r=document.createElement("p"),l=(n.insertBefore(r,s),Array.from(s.childNodes)),c=0;c<l.length;c++)r.appendChild(l[c]);s.remove()}a&&e()}e()},onPaste:function(t){t.clipboardData.files&&t.clipboardData.files[0]&&t.clipboardData.files[0].type.startsWith("image/")&&(t.preventDefault(),this.onSelectImage(t.clipboardData.files[0]))},onDragEnter:function(t){t.preventDefault(),this.editor.addClass("dragging")},onDragLeave:function(t){t.preventDefault(),this.editor.removeClass("dragging")},onDragOver:function(t){t.preventDefault()},onDrop:function(t){t.preventDefault(),this.editor.removeClass("dragging"),t.dataTransfer.files&&t.dataTransfer.files[0]&&t.dataTransfer.files[0].type.startsWith("image/")&&this.onSelectImage(t.dataTransfer.files[0])}}),w.registerComponent("route",{template:'\n\t\t<div class="route" :class="routeClass" @click="onClick" f-loading="loading"></div>\n\t',map:null,redirects:null,defaultURL:"",prefix:"",ignoreURLs:null,routeClass:"",path:"",rule:null,loading:!0,query:null,onCreated:function(t){this.map=this.map||{},this.oldCSSEls=null,this.cssEls=w(),this.loadedJs={},this.loadedPage={},this.query=w.parseQuery(location.search),this.initMap(),this.initURLChange()},onDestroy:function(){w(window).off("popstate",this.onStateChange,this)},onClick:function(t){var e=w(t.target).closest("a");e.length&&"_blank"!==e.attr("target")&&(e=e[0].href)&&!e.startsWith("javascript:")&&!e.endsWith("#")&&this.goto(e)&&t.preventDefault()},initMap:function(){for(var t in this.map)this.map[t]=this.initMapItem(t,this.map[t]);if(this.redirects)for(var t in this.redirects)this.redirects[t]=this.initRedirectItem(t,this.redirects[t])},setMap:function(t,e){this.map[t]=this.initMapItem(t,e)},initMapItem:function(t,e){(e="string"==typeof e?{template:e}:e).css="string"==typeof e.css?[e.css]:e.css||[],e.js="string"==typeof e.js?[e.js]:e.js||[];t=_slicedToArray(this.getURLRE(t),2);return e.re=t[0],e.keys=t[1],e},initRedirectItem:function(t,e){"object"!==_typeof(e)&&(e={url:e});t=_slicedToArray(this.getURLRE(t),1);return e.re=t[0],e},getURLRE:function(t){var s=[];return[new RegExp(t.replace(/(\/?):(\w+)/g,function(t,e,i){return i&&s.push(i),e+"?([\\w-]*?)"}).replace(/\/$/g,"/?").replace(/\//g,"\\/").replace(/\./g,"\\.").replace(/^/,"^").replace(/$/,"$"),"i"),s]},initURLChange:function(){w(window).on("popstate",this.onStateChange,this)},onStateChange:function(t){t.state&&this.redirectTo(t.state.url)},goto:function(t){return this._load(t,"goto")},redirectTo:function(t){return this._load(t,"redirect")},load:function(t){return this._load(t,"load")},loadCurrentURL:function(){return this.redirectTo(location.href)},_load:function(t,e){var i=this.getRelativePathFromURL(t),s=this.findMatchedRoute(i);if(s)return this.onRouteMatched(i,t,s,e),!0;s=this.getRedirectPath(i);return s&&s!==i?this.redirectTo(t):(this.defaultURL&&this.defaultURL!==i&&!this.willIgnore(i)&&this.redirectTo(this.defaultURL),!1)},gotoDefault:function(){this.goto(this.defaultURL)},getRelativePathFromURL:function(t){var e=location.protocol+"//"+location.hostname,t=t.replace(/[\?#].+/,"");return t.startsWith(e)&&(t=t.replace(e,"")),(t=this.prefix&&t.startsWith(this.prefix)?t.slice(this.prefix.length):t)||"/"},findMatchedRoute:function(t){for(var e in this.map){e=this.map[e];if(e.re.test(t))return e}return null},getRedirectPath:function(t){if(this.redirects)for(var e in this.redirects){e=this.redirects[e];if(e.re.test(t))return e.url}},willIgnore:function(t){if(this.ignoreURLs)for(var e=0;e<this.ignoreURLs.length;e++){var i=this.ignoreURLs[e];if(i===t||i.test&&i.test(t))return!0}return!1},onRouteMatched:function(t,e,i,s){for(var n=this,o=w.parseQuery(e),a=t.matches(i.re,1),r=0;r<i.keys.length;r++){var l=i.keys[r];o[l]=a[r]}this.oldCSSEls=this.cssEls,this.cssEls=w();var c,h=0,d=0,u=function(){++h===d&&n.onSourceLoaded(i,t,o)},p=_createForOfIteratorHelper(i.css);try{for(p.s();!(c=p.n()).done;){var f=c.value,m=w('<link rel="stylesheet" href="{0}">'.format(f));d++,this.cssEls=this.cssEls.add(m),m.appendTo("head").on("load",u)}}catch(t){p.e(t)}finally{p.f()}var g,v=_createForOfIteratorHelper(i.js);try{for(v.s();!(g=v.n()).done;)!function(){var t,e=g.value;n.loadedJs[e]||(d++,(t=document.createElement("script")).async=!1,t.src=e,document.head.appendChild(t),w(t).on("load",function(){n.loadedJs[e]=!0,u()}))}()}catch(t){v.e(t)}finally{v.f()}i.template&&(i.template=i.template.replace(/<template src="(.+?)"><\/template>/g,function(t,e){return d++,w.get(this.getPrefixedURL(e),function(t){i.template=i.template.replace('<template src="'+e+'"></template>',t),u()}.bind(this)),t}.bind(this))),"redirect"===s?this.replaceURL(e):"goto"===s&&this.pushURL(e),i.title&&(document.title=i.title),i.routeClass&&(this.routeClass=i.routeClass),0===d?this.onSourceLoaded(i,t,o):this.loadedPage[t]||(this.loading=!0,this.loadedPage[t]=!0)},onSourceLoaded:function(t,e,i){this.loading=!1;var s=this.rule;if(s&&s.com)if(s.cache){var n,o=_createForOfIteratorHelper(s.com.el);try{for(o.s();!(n=o.n()).done;){var a=n.value;a.parentNode&&a.parentNode.removeChild(a)}}catch(t){o.e(t)}finally{o.f()}}else s.com.destroy(),s.com=null;if(i)for(var r in i)"false"===i[r]&&(i[r]=!1),"true"===i[r]&&(i[r]=!0);this.rule=t,this.path=e,this.query=i,this.oldCSSEls.remove(),document.body.scrollTop=0;s=this.routeContainerEl||this.el;t.com?s.append(t.com.el):(e=_objectSpread(_objectSpread({prefix:this.prefix,target:s},this.query),{},{route:this}),t.template&&(e.template=t.template),t.com=this.newComponent(t.component||"",e),w.extend(t.com,i)),this.trigger("goto",t),w.digest()},getPrefixedURL:function(t){var e;return this.prefix&&(e=location.protocol+"//"+location.hostname,t.startsWith(e)?t=e+(t=(t=t.slice(e.length)).startsWith(this.prefix)?t:this.prefix+t):t.startsWith(this.prefix)||(t=this.prefix+t)),t},replaceURL:function(t){t=this.getPrefixedURL(t),history.replaceState({url:t},null,t)},pushURL:function(t){t=this.getPrefixedURL(t),history.pushState({url:t},null,t)},clearCache:function(t){t=this.map[t];t&&t.com&&(t.com.destroy(),t.com=null)},clearAllCache:function(){for(var t=0,e=Object.values(this.map);t<e.length;t++){var i=e[t];i.com&&(i.com.destroy(),i.com=null)}},formatHTML:function(t){var s=this;return t=this.prefix?t.replace(/href="(.+?)"/g,function(t,e){var i=s.getRelativePathFromURL(e);return s.findMatchedRoute(i)?'href="'+s.getPrefixedURL(e)+'"':t}):t}}),w.registerDirective("goto",{isLiteral:!0,value:"",route:null,bind:function(){this.route=this.vm.closest("route"),this.el.on("click",this.onClick,this)},update:function(t){this.value=t},onClick:function(t){this.route.goto(this.value)}}),w.registerComponent("search-form","drop",{template:'\n\t\t<div class="search-form">\n\t\t\t<icon type="search-thick"></icon>\n\t\t\t<form class="drop-menu search-form-menu" target="_blank" action="https://www.google.com/search" :class="menuClass" ref="menu">\n\t\t\t\t<div class="ap-trangle"></div>\n\t\t\t\t<input type="hidden" name="as_sitesearch" :value="getDomain()">\n\t\t\t\t<input type="text" :placeholder="\'Search {0}@@search_site\' | trans(getDomain())" name="as_q" ref="input">\n\t\t\t\t<input type="submit">\n\t\t\t\t<icon type="search-thick"></icon>\n\t\t\t</form>\n\t\t</div>\n\t',onAfterMenuShow:function(){this.input.focus()},onClickMenu:function(){},getDomain:function(){return apower.getDomain()}}),w.registerComponent("language-win","win",{template:'\n\t\t<nav class="win language-win">\n\t\t\t<ul class="win-body">\n\t\t\t\t<li f-for="item of data" :class="item[0]"><a :href="getURL(item[1])">{{item[3]}}</a></li>\n\t\t\t</ul>\n\t\t</nav>\n\t',data:[["us","en","USA","English"],["fr","fr","France","Français"],["de","de","Deutschland","Deutsch"],["it","it","Italia","Italiano"],["se","sv","Sverige","Svenska"],["nl","nl","Nederland","Nederlands"],["es","es","España","Español"],["br","pt","Brasil","Português"],["fi","fi","Suomi","Suomi"],["no","no","Norge","Norsk"],["dk","da","Danmark","Dansk"],["tr","tr","Türkiye","Türkçe"],["pl","pl","Polska","Polski"],["jp","ja","日本","日本語"],["tw","tw","中國台灣","繁體中文"],["cn","zh","中国","简体中文"],["hu","hu","Magyarországon","Magyar"],["cz","cs","Čeština","Čeština"],["gr","el","Ελλάδα","ελληνικά"],["pt","pt","Portugal","Português"]],autoDestroy:!0,target:"body",onCreated:function(){this.apower=apower},getURL:function(t){return apower.getDomain(t)}}),w.registerComponent("language-select",{template:'\n\t\t<div class="language-select" @click="openWin">\n\t\t\t<div class="language-select-flag"></div>\n\t\t\t<div class="language-select-name"></div>\n\t\t\t<icon type="up"></icon>\n\t\t</div>\n\t',openWin:function(){w.newComponent("language-win").show()}}),w.registerComponent("paging",{pages:0,currentPage:1,template:'\n\t\t<div class="paging" f-show="pages > 1">\n\t\t\t<ul>\n\t\t\t\t<li class="paging-prev" f-enable="currentPage > 1" @click="selectPage(currentPage - 1)">Prev@@prev</li>\n\t\t\t\t<li f-for="index of getSelectablePages()" @click="selectPage(index)" :class.active="index === currentPage">{{index}}</li>\n\t\t\t\t<li class="paging-next" f-enable="currentPage < pages" @click="selectPage(currentPage + 1)">Next@@next</li>\n\t\t\t</ul>\n\t\t</div>\n\t',getSelectablePages:function(){for(var t=this.pages,e=this.currentPage,i=e-2,s=e+2,n=(i<1&&(i=1,s=5),t<s&&(s=t,i=Math.max(1,t-4)),[]),o=i;o<=s;o++)n.push(o);return n},selectPage:function(t){this.currentPage=t,this.trigger("select",t)}}),w.getDirective("tip").prototype.selector="[data-tip]",w.getDirective("tip").prototype.setTip=w.getDirective("tip").prototype.setValue,w.getDirective("tip").prototype.init=function(){this.value=this.value||this.el.attr("data-tip")||this.tip},w.getComponent("drop").prototype.selector=".drop, [data-drop]",w.getComponent("drop").prototype.init=function(){this.isOld&&(w.newComponent("icon",{type:"down",target:this.el}),this.label=this.el.find("label"),this.menu=w('<div class="drop-menu '+this.menuClass+'"></div>').appendTo(this.el),this.menu.prepend('<div class="ap-trangle"></div>'))},w.getComponent("drop-select").prototype.selector=".drop-select",w.getComponent("drop-select").prototype.init=w.getComponent("drop").prototype.init,w.getComponent("win").prototype.selector=".win",w.getComponent("win").prototype.ref={head:".win-head",body:".win-body",foot:".win-foot"},w.getComponent("win").prototype.init=function(){var t;this.el.parent().is(".win-mask")&&((t=this.el.parent()).after(this.el),t.remove())},w.registerDir("layer",{align:"t",gap:"0",open:!1,triggerType:"hover",layer:null,hasTransformAndTransition:!1,selector:"[data-layer]",trangle:!0,time:"",init:function(){var t=this.layer||this.el.attr("data-layer");"string"==typeof t&&(t=(t.startsWith(".")?"":".")+t,this.el[0],t=this.el.find(t)[0]||this.el.findNearestBehind(t)[0],this.layer=w(t)),this.hasTransformAndTransition=this.layer.css("transition").includes("transform")||"0"==this.layer.css("transform").select(/\d+/),!this.layer.find(".ap-trangle").length&&this.trangle&&this.layer.prepend('<div class="ap-trangle"></div>'),"hover"===this.triggerType?this.el.on("mouseenter",this.onMouseEnter,this):this.el.on(this.triggerType,this.onClick,this)},unbind:function(){this.el.off("mouseenter",this.onMouseEnter,this)},onMouseEnter:function(){this.showLayer()},onClick:function(){this.open?this.hideLayer():this.showLayer()},showLayer:function(){this.open||(this.hasTransformAndTransition&&(this.layer.css("transform","none"),this.layer.css("transition","none")),this.time=this.el.attr("data-time")||300,this.time?this.layer.fadeIn(parseInt(this.time)):this.layer.fadeIn(),this.layer.alignTo(this.el,this.align,this.gap),this.hasTransformAndTransition?(this.layer.css("transform",""),this.layer[0].offsetWidth,this.layer.css("transition",""),this.layer.css("transform","none")):(this.layer.hide(),this.layer.fadeIn(300)),this.el.addClass("active"),this.open=!0,w.onceAllLeave(this.el[0].contains(this.layer[0])?[this.el]:[this.el,this.layer],200,this.hideLayer,this))},hideLayer:function(){this.hasTransformAndTransition?this.layer.css("transform",""):this.layer.fadeOut(300),this.el.removeClass("active"),this.open=!1}}),apower.sharer=w.registerOnce({callbacks:{},data:{},getShareCount:function(a,t,e){a=a||location.href.replace(/\?.+/,""),this.data[a]?t.call(e,this.data[a]):this.callbacks[a]?this.callbacks[a].push({handler:t,scope:e}):(this.callbacks[a]=[{handler:t,scope:e}],t=apower.isOurDomain?"":location.origin,w.ajax({type:"GET",url:t+"/admin-ajax?action=social_bookmark&url="+encodeURIComponent(location.href),dataType:"json",success:function(t){if(t.services){var e=t.services;for(s in delete e.twitter,e.hatena=e["b.hatena.ne.jp"]||e.hatena,delete e["b.hatena.ne.jp"],e){var i=Number(e[s])||0;1e3<=i&&(i=Math.ceil(i/100)/10+"K"),e[s]=i}this.data[a]=e;for(var s=0;s<this.callbacks[a].length;s++){var n=this.callbacks[a][s].handler,o=this.callbacks[a][s].scope;n.call(o,e)}}delete this.callbacks[a]}.bind(this)}))}}),w.registerDir("bind-share",{selector:"[data-share], .apower-counted-share",props:["share","share-url","share-title","align","gap","use-apower-qrcode"],share:"",shareUrl:"",shareTitle:"",align:"r",gap:10,init:function(){var s=new RegExp(Object.keys(this.links).join("|"));this.el.$on("click",function(t){var e,i=this.share;i||(e=w(t.target).closest("li")[0])&&(i=e.className.select(s,0)),i&&this.shareTo(i,this.shareUrl,this.shareTitle,"",e)},this),this.el.find("li").$on("mouseenter",function(t){t=w(t.target).closest("li")[0];(name=t?t.className.select(s,0):name)&&this.links[name].img&&this.shareTo(name,this.shareUrl,this.shareTitle,"",t)},this)},links:{google:{url:"https://plus.google.com/share?url={url}&t={title}",width:500,height:500},facebook:{url:"http://www.facebook.com/sharer/sharer.php?u={url}&title={title}",width:673,height:374},twitter:{url:"https://twitter.com/intent/tweet?url={url}&text={title}",width:548,height:430},pinterest:{url:"//assets.pinterest.com/js/pinmarklet.js",append:!0,width:600,height:400},hatena:{url:"http://b.hatena.ne.jp/entry/panel/?url={url}&btitle={title}",width:365,height:220},linkedin:{url:"https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}",width:600,height:600},weixin:{img:"/do.php?action=qrcode&data={url}&size=5"},douban:{url:"http://www.douban.com/share/service?href={url}&name={title}&text={text}"},qzone:{url:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}&title={title}&desc={text}&summary=&site="},weibo:{url:"http://service.weibo.com/share/share.php?url={url}&title={title}&searchPic=true"},tencent:{url:"http://share.v.t.qq.com/index.php?c=share&a=index&url={url}&title={title}"},youdao:{url:"http://note.youdao.com/memory/?url={url}&title={title}"}},getShareLink:function(t,e,i,s){var n=this.links[t].url||this.links[t].img,t=("weixin"===t&&(n=apower.getDomain("zh")+n),{url:encodeURIComponent(e),title:encodeURIComponent(i),text:encodeURIComponent(s)});return n=n.format(t)},onopenparams:null,shareTo:function(t,e,i,s,n){n=w(n);e=e||location.href,i=i||n.data("share-title")||document.title,s=s||n.data("share-text")||"","function"==typeof this.links[t]?this.links[t](e,i,s,n):(e=this.getShareLink(t,e,i,s),this.links[t].append?w("body").append('<script src="'+e+'"><\/script>'):this.links[t].url?(i=this.links[t].width,s=this.links[t].height,i=i&&s?"width="+i+",height="+s:"",this.onopenparams&&(i=this.onopenparams(i,t)),window.open(e,"share-to-"+t,i)):n.dir("layer")||w.newCom("layer",n,{align:this.align,gap:this.gap,layer:w('<div class="ap-qrcode"><img src="'+e+'"></div>').appendTo("body")}).showLayer())}}),w.register("counted-share",{selector:".apower-counted-share",ref:{items:"li",shareSpans:".apower-share-label",countSpans:".apower-share-count",twitterSpan:".apower-share-twitter .apower-share-label"},props:["share-url","share-title"],shareURL:"",shareTitle:"",countWidth:46,darkBg:!1,canClose:!1,template:function(){var t='<li class="apower-share-pinterest"><i></i><span class="apower-share-label">Pin</span><span class="apower-share-count">-</span></li>',e=("ja"===apower.lang&&(t='<li class="apower-share-hatena"><i></i><span class="apower-share-label">{@@share}</span><span class="apower-share-count">-</span></li>'),this.canClose?'<div class="apower-share-exit"></div>':"");return'<ul class="apower-counted-share" data-share-url="'+this.shareURL+'" data-share-title="'+this.shareTitle+'"><li class="apower-share-google"><i></i><span class="apower-share-label">+1</span><span class="apower-share-count">-</span></li><li class="apower-share-facebook"><i></i><span class="apower-share-label">{@@share}</span><span class="apower-share-count">-</span></li><li class="apower-share-twitter"><i></i><span class="apower-share-label">{@@share}</span><span class="apower-share-count">-</span></li>'+t+'<li class="apower-share-linkedin"><i></i><span class="apower-share-label">{@@share}</span><span class="apower-share-count">-</span></li>'+e+"</ul>"},init:function(){this.darkBg&&this.el.addClass("apower-share-darkbg");var i=this.spanWidths=[];this.shareSpans.each(function(t,e){i[t]=w(e).getTextWidth()+10}),this.items.$on("mouseenter",this.onEnterItem,this),this.el.$on("mouseleave",this.onLeaveEl,this),this.el.find(".apower-share-exit").$on("click",function(){this.destroy(!0)},this),apower.sharer.getShareCount(this.shareUrl,function(t){for(var e in t){var i=t[e];this.el.find(".apower-share-"+e).find(".apower-share-count").text(i)}},this)},onEnterItem:function(t){var t=w(t.target).closest("li"),e=this.items.indexOf(t),i=this.shareSpans.eq(e),s=this.countSpans.eq(e),e=this.spanWidths[e],t=t.is(".apower-share-twitter"),n=this.countWidth,o=t?Math.max(0,e-n):e;o&&(o=n-o/(t?this.items.length-1:this.items.length-2),i.width(e),s.width(n),this.shareSpans.not(i).not(this.twitterSpan).width(0),this.countSpans.not(s).width(o),t||this.twitterSpan.width(n))},onLeaveEl:function(){var t=this.countWidth;this.shareSpans.width(0),this.countSpans.width(t),this.twitterSpan.width(t)}}),w.registerDir("fit",{selector:"[data-fit], .article iframe",props:["fit","fit-direction"],fit:"",fitDirection:"both",ow:0,oh:0,init:function(){w(window).$on("resize",w.lazyThrottle(this.doFit.bind(this,!1),500),this),"pc"===this.fit?w.onToggleMobile(this.cancelFit,this.reFit,this):"mobile"===this.fit&&w.onToggleMobile(this.reFit,this.cancelFit,this);for(var t=this.el.parent();t[0]&&t[0]!==document.documentElement;)t=t.parent();w.defer(this.doFit.bind(this,!0))},doFit:function(t){var e,i,s,n,o,a,r,l,c,h,d,u=this.el;u[0]===(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullscreenElement||document.msFullscreenElement)?u.css("transform","none"):(this.ow||(this.ow=u[0].offsetWidth),this.oh||(this.oh=u[0].offsetHeight),e=this.ow,i=this.oh,!e||!i||"pc"===this.fit&&window.innerWidth<=768||"mobile"===this.fit&&768<window.innerWidth||(s=(n=u.parent()).innerWidth(),n=n.innerHeight(),s&&n&&(r=u.cssNum("margin-left"),d=u.cssNum("margin-right"),o=parseFloat(u[0].style.marginTop),a=parseFloat(u[0].style.marginBottom),o<0&&a===o&&(n-=o+a),0===r&&0===d||"none"!==(o=u[0].style.display)&&(u[0].style.display="none",0!==r&&"auto"!==u.css("margin-left")&&(e+=r),0!==d&&"auto"!==u.css("margin-right")&&(e+=d),u[0].style.display=o),l=1,a="h"===this.fitDirection||"both"===this.fitDirection,r="v"===this.fitDirection||"both"===this.fitDirection,c="scale("+(l=a&&s<e||r&&n<i?a&&s/e<=n/i||!r?s/e:n/i:l)+")",h=((u.css("transform-origin")||"").split(" ")[1]||"").replace(/px/,""),h=Number(h)||0,d=function(){var t,e;1===l?(u.css("margin-bottom",""),u.css("margin-top",""),u.css("transform","")):(t=h*(l-1),e=(i-h)*(l-1),u.css("margin-bottom",e),u.css("margin-top",t),u.css("transform",c)),this.trigger("fit",u)}.bind(this),t?d():w.defer(d))))},reFit:function(){this.ow=this.el[0].offsetWidth,this.oh=this.el[0].offsetHeight,this.doFit()},cancelFit:function(){this.el.css("margin-bottom",0).css("transform","none")},onDestroy:function(){w(window).$off("resize",this.doFit,this)}}),w.registerDir("tab",{selector:"[data-tab]",props:["tab"],tab:"",tabEl:null,init:function(){var t;this.tab&&((t=(t=w("."+this.tab)).length?t:w("#"+this.tab))&&(this.tabEl=t,this.el.$on("click",this.onClick,this)),this.el.is(".active")&&!t.is(".active")&&w.defer(function(){this.el.click()},this))},onClick:function(){var t=this.el,e=this.tabEl,i=e.siblings(".active");e[0]!==i[0]&&(t.siblings().removeClass("active"),t.addClass("active"),i.removeClass("active"),e.addClass("active"),0<i.length&&void 0===this.hasTransition&&(this.hasTransition=0<Number(String(i.css("transition-duration")).slice(0,-1))),this.hasTransition&&(e.show(),i.$once("transitionend",this.hideLastTab,this),this.lastTabEl=i),i.$trigger("tabinactive",i),e.$trigger("tabactive",e))},hideLastTab:function(){this.lastTabEl&&!this.lastTabEl.is(".active")&&(this.lastTabEl.hide(),this.lastTabEl=null)}}),w.registerDir("tab-wrap",{selector:"[data-tab-wrap]",props:["tab-wrap"],tabWrap:"",btnEls:"",tabEls:null,init:function(){var t,e;this.tabWrap&&(this.btnEls=this.el.children(),this.btnEls.$on("click",this.onClick,this),(t=(t=w("."+this.tabWrap)).length?t:w("#"+this.tabWrap))&&(this.tabEls=t.children()),0<=(e=this.btnEls.filter(".active").index())&&!this.tabEls.eq(e).is(".active")&&w.defer(function(){this.btnEls.eq(e).click()},this))},onClick:function(t){var t=w(t.currentTarget),e=this.tabEls.eq(this.btnEls.indexOf(t)),i=e.siblings(".active");e[0]===i[0]||e.is(".active")||(this.btnEls.removeClass("active"),t.addClass("active"),i.removeClass("active"),e.addClass("active"),0<i.length&&void 0===this.hasTransition&&(this.hasTransition=0<Number(i.css("transition-duration").slice(0,-1))),this.hasTransition&&(e.show(),i.$once("transitionend",this.hideLastTab,this),this.lastTabEl=i),i.$trigger("tabinactive",i),e.$trigger("tabactive",e))},hideLastTab:function(){this.lastTabEl&&!this.lastTabEl.is(".active")&&(this.lastTabEl.hide(),this.lastTabEl=null)}}),w.register("switcher",{selector:".switcher",ref:{btnWrap:".switcher-btn",tabWrap:".switcher-tab",btns:".switcher-btn > li",tabs:".switcher-tab > li"},props:["mobile-collapse","interval","apply-class-to","toggle-active-to","mouseenter-collapse","no-height"],index:-1,interval:0,applyClassTo:"",applyClassToEl:null,toggleActiveTo:"",mobileCollapse:!1,mouseenterCollapse:!1,noHeight:!1,intervals:null,isMouseEntered:!1,direction:-1,init:function(){this.initBtnList(),this.initActive(),this.initIntervals(),this.initApplyClass(),this.resetInterval(),this.noHeight||this.fitTabHeight(),this.btns.$on("click",this.onClickBtn,this),this.tabs.$on("click",this.onClickTab,this),this.el.attr("data-slider-index",this.index)},initBtnList:function(){if(this.btns.length<this.tabs.length){for(var t=this.btns.length;t<this.tabs.length;t++){var e=this.tabs.eq(t)[0].className.replace(/\s*(?:-?active)\s*/g,"");e?this.btnWrap.append("<li class="+(e+"-btn")+"></li>"):this.btnWrap.append("<li></li>")}this.applyRef("btns")}},initActive:function(){var t=this.tabs.filter(".active").index();-1===t&&(t=0),this.tabs.css("transition","none"),this.setIndex(t,!0),this.tabs.css("transition","")},initIntervals:function(){if(this.interval){this.intervals=[];for(var t=0;t<this.tabs.length;t++)this.intervals[t]=Number(this.tabs.eq(t).data("interval"))||this.interval;this.mouseenterCollapse||(this.el.$on("mouseenter",this.onMouseEnter,this),this.el.$on("mouseleave",this.onMouseLeave,this))}},onMouseEnter:function(t){this.isMouseEntered=!0,this.el.addClass("slider-lock"),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},onMouseLeave:function(t){this.isMouseEntered=!1,this.el.removeClass("slider-lock"),this.el.addClass("slider-before-unlock"),this.el[0].offsetWidth,this.el.removeClass("slider-before-unlock"),this.resetInterval()},initApplyClass:function(){this.applyClassTo&&(this.applyClassToEl=w(this.applyClassTo),this.applyClassToEl=this.applyClassToEl.length?this.applyClassToEl:null),this.handleClassApplying()},timeoutId:0,resetInterval:function(){this.interval&&(this.timeoutId&&clearTimeout(this.timeoutId),this.intervals&&(this.timeoutId=setTimeout(this.nextTab.bind(this),this.intervals[this.index])))},stopInterval:function(){clearTimeout(this.timeoutId),this.timeoutId=0},fitTabHeight:function(){var t=this.tabs.eq(this.index);0<t.length&&t[0].offsetHeight!==this.tabWrap.height()&&0<t[0].offsetHeight&&this.tabWrap.height(t[0].offsetHeight)},onClickBtn:function(t){t=this.btns.indexOf(t.currentTarget);this.setIndex(t)},onClickTab:function(t){t=w(t.currentTarget).index();this.setIndex(t)},nextTab:function(){var t=(this.index+1)%this.tabs.length;this.setIndex(t)},lastAppliedClass:"",setIndex:function(t,e){var i,s,n,o;t!==this.index&&(this.direction=t>this.index?1:-1,i=this.index,(s=this.tabs.eq(i)).$trigger("tabinactive",s),s=this.tabs.eq(t),n=this.tabs.length,o=((this.index=t)+1+n)%n,n=(t-1+n)%n,this.btns.removeClass("active").eq(t).addClass("active"),this.tabs.removeClass("last-active").removeClass("prev-active").removeClass("next-active"),!e&&this.el.hasClass("slider-pan")?(this.tabs.css("transition","none"),1===this.direction?this.tabs.eq(t).addClass("next-active"):this.tabs.eq(t).addClass("prev-active"),this.tabs.each(function(t,e){e.offsetWidth}),this.tabs.css("transition",""),this.tabs.eq(t).removeClass("prev-active").removeClass("next-active"),1===this.direction?this.tabs.eq(i).addClass("prev-active"):this.tabs.eq(i).addClass("next-active")):(2<this.tabs.length&&this.tabs.eq(n).addClass("prev-active"),this.tabs.eq(o).addClass("next-active")),this.tabs.eq(i).removeClass("active").addClass("last-active"),this.tabs.eq(t).addClass("active"),this.el.attr("data-slider-index",t),this.noHeight||this.fitTabHeight(),this.isMouseEntered||this.resetInterval(),this.onSetIndex(t),this.trigger("toggle",s),s.$trigger("tabactive",s),this.handleClassApplying(),this.handleActiveApplying(),n=(t-1+this.tabs.length)%this.tabs.length,o=(t+1)%this.tabs.length)},initActiveClass:function(){this.toggleActiveTo&&(this.toggleActiveToEl=w(this.toggleActiveTo),this.toggleActiveToEl=this.toggleActiveToEl.length?this.toggleActiveToEl:null),this.handleActiveApplying()},handleActiveApplying:function(){var t;this.toggleActiveToEl&&((t=this.toggleActiveToEl.children()).removeClass("active"),t.eq(this.index).addClass("active"))},handleClassApplying:function(){var t;this.applyClassToEl&&(this.lastAppliedClass&&(this.applyClassToEl.removeClass(this.lastAppliedClass),this.btnWrap.removeClass(this.lastAppliedClass),this.lastAppliedClass=""),(t=this.tabs.eq(this.index).attr("data-class-to-apply"))||(t=this.tabs[this.index].className.replace(/\s*(?:\w+-)?active/g,"").trim())&&(t+="-style"),t&&(this.lastAppliedClass=t,this.applyClassToEl.addClass(t),this.btnWrap.addClass(this.lastAppliedClass)))},onSetIndex:function(){}}),w.register("slider","switcher",{selector:".slider",props:["no-pan","slider-group"],noPan:!1,sliderGroup:!1,ref:{bodyWrap:".slider-body",btnWrap:".slider-btn",tabWrap:".slider-tab",btns:".slider-btn > li",tabs:".slider-tab > li",prevEl:".slider-prev",nextEl:".slider-next",leftEl:".slider-img-left",rightEl:".slider-img-right"},init:function(){this.sliderGroup&&this.initSliderGroup(),this.initCollapseTabs(),this.callSuper("switcher"),this.initActiveClass(),this.handlePanStyle(),this.prevEl.$on("click",this.prevTab,this),this.nextEl.$on("click",this.nextTab,this),this.leftEl.$on("click",this.prevTab,this),this.rightEl.$on("click",this.nextTab,this),this.tabWrap.onPan(this.onPan.bind(this));var t=this.tabWrap.dir("fit");t&&(t.fitDirection="h")},handlePanStyle:function(){this.el.hasClass("slider-pan")||!this.btns.length||this.noPan||w.defer(function(){w.onToggleMobile(function(){this.el.addClass("slider-pan")},function(){this.el.removeClass("slider-pan")},this)},this)},initCollapseTabs:function(){w(window).width()<768&&this.mobileCollapse&&(this.tabs.each(function(t,e){var i=(e=w(e)).children(":last");e.after(w("<li></li>").append(i))}),this.applyRef())},initSliderGroup:function(){var t=this.tabs.children(),e=t.length,i=t.width(),s=this.el.width();if(!(i*e<=s)){for(var n=Math.floor(s/i),o=Math.ceil((e-n)/n),a=0;a<o;a++){this.tabWrap.append("<li></li>");for(var r=0;r<e-n*(a+1);r++){var l=t.eq(n*(a+1)+r);this.tabWrap.find(">li:last-child").append(l)}}this.applyRef()}},prevTab:function(){var t=(this.index-1+this.tabs.length)%this.tabs.length;this.setIndex(t)},onPan:function(t){"l"===t?this.prevTab():"r"===t&&this.nextTab()}}),w.register("photo-slider","slider",{selector:".photo-slider",maxTopMoved:500,minScale:.33,minOpacity:.7,angleAvailable:260,useShade:!0,activeElBottomAlign:!0,activeElTop:0,useRoundLayout:!0,init:function(){this.useShade&&(this.tabs.each(function(t,e){w(e).append('<div class="slider-shade"></div>')}),this.shades=this.el.find(".slider-shade")),this.initBtnList(),this.initActive(),this.resetPosition(),this.prevEl.$on("click",this.prevTab,this),this.nextEl.$on("click",this.nextTab,this),this.tabWrap.onPan(this.onPan.bind(this)),this.tabs.$on("click",this.onClickTab,this),w(window).$on("resize",this.resetPosition,this)},resetPosition:function(){var t=Math.PI/180,e=this.tabs.length,i=this.index,s=this.angleAvailable/(e-2),n=(360-this.angleAvailable)/2*t,o=this.el[0].offsetWidth,a=this.tabs[0].offsetWidth;this.tabs.eq(i).css("z-index",1e3).css("transform","translateY({0}px)".format(this.activeElTop)).css("opacity",""),this.useShade&&this.shades.eq(i).css("opacity",0);for(var r=1;r<e;r++){var l=(i+r)%e,c=this.tabs.eq(l),h=n+(r-1)*s*t,d=this.useRoundLayout?1:Math.cos(4*h)/15+14/15,u=(1-this.minScale)*(1+Math.cos(h))/2+this.minScale,p=-this.maxTopMoved/2*((this.activeElBottomAlign?Math.cos(n):1)-Math.cos(h)*d),d=(o-a)*Math.sin(h)*.5*d,h=(1-this.minOpacity)*(1+Math.cos(h))/2+this.minOpacity;c.css("transform","translate({left}px, {top}px) scale({scale})".format({left:d,top:p,scale:u})),c.css("z-index",Math.floor(1e3*u)),this.useShade?this.shades.eq(l).css("opacity",1-h):c.css("opacity",h)}},onSetIndex:function(){this.resetPosition()},onClickTab:function(t){768<window.innerWidth&&(t=w(t.target).closest("li").index(),this.setIndex(t))}}),w.register("rating",{selector:".rating",template:'\t\t<div class="rating" data-rating="4.5">\t\t\t<div class="rating-count">{@@reviews} ({{this.reviewCount}})</div>\t\t\t<div class="rating-stars">\t\t\t\t<div class="rating-background-stars">\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t</div>\t\t\t\t<div class="rating-current-stars">\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t\t<icon type="star"></icon>\t\t\t\t</div>\t\t\t</div>\t\t</div>\t',ref:{starWrap:".rating-stars",backgroundEl:".rating-background-stars",currentEl:".rating-current-stars",textEl:".rating-text",valueEl:'[itemprop="ratingValue"]',countEl:'[itemprop="ratingCount"]',thanksEl:".rating-thanks"},rating:0,reviewCount:0,posturl:"",selectable:!1,size:"normal",autoSet:!1,init:function(){this.selectable&&this.el.addClass("selectable"),"small"===this.size&&this.el.addClass("rating-sml"),this.ratingLabels=r("rating_labels").split(";"),this.isOld&&(this.selectable=this.el.hasClass("selectable"),this.posturl=this.posturl||this.el.closest("[data-posturl]").data("posturl"),this.rating||(this.rating=Number(this.valueEl.text())),this.starWrap.append('<div class="rating-background-stars"><i></i><i></i><i></i><i></i><i></i></div><div class="rating-current-stars"><i class="active"></i><i class="active"></i><i class="active"></i><i class="active"></i><i class="active"></i></div>'),this.applyRef()),this.setValue(this.rating);var t=this.starWrap.find(".icon, i");t.$on("mouseenter",this.onEnterStar,this),t.$on("mouseleave",this.onLeaveStar,this),t.$on("click",this.onClickStar,this),this.initArticleRating()},initArticleRating:function(){this.posturl&&this.on("select",function(t){this.el.removeClass("selectable").attr("disabled","disabled"),this.selectable=!1,w.ajax({type:"POST",url:w.nocache(this.posturl),dataType:"json",data:{rating:t},success:function(t){1==t.state&&(this.countEl.text((parseInt(this.countEl.text())||0)+1),this.thanksEl.show())}.bind(this)})},this)},setValue:function(t){t=Number(t);var e=this.rating=t,i=t-Math.floor(t),s=Math.floor(t)+.5;this.currentEl.width(20*(e=0<i?s+22*(t-s)/32:e)+"%"),this.textEl.text(this.ratingLabels[Math.floor(t-1e-4)]),this.valueEl.text(t)},onEnterStar:function(t){var e;this.selectable&&(t=w(t.currentTarget).index(),e=this.ratingLabels[t],this.textEl.text(e),this.backgroundEl.find("i, .icon").slice(0,t+1).addClass("active"))},onLeaveStar:function(t){this.selectable&&(this.textEl.text(this.ratingLabels[Math.floor(this.rating-1e-4)]),this.backgroundEl.find("i, .icon").removeClass("active"))},onClickStar:function(t){this.selectable&&(t=w(t.currentTarget).index(),this.autoSet&&this.setValue(t+1),this.trigger("select",t+1))}}),w.register("viewer","win",{selector:".viewer",template:'<div class="viewer"><div class="viewer-body"></div></div>',target:"body",mask:!0,ref:{body:".viewer-body"},onReady:function(){this.maskEl.addClass("video-viewer-mask")},show:function(){this.el.show();var t=this.width,e=this.height,i=w(window).width()-30,s=w(window).height()-30;i<t&&(e=e*i/t,t=i),s<e&&(t=t*s/e,e=s),this.el.width(t).height(e),this.body.attr("width",t).attr("height",e),this.body.width(t).height(e),this.el.addClass("active"),w("body").addClass("body-fixed"),this.trigger("show")},hide:function(){this.el.removeClass("active"),w("body").removeClass("body-fixed"),this.trigger("hide"),setTimeout(function(){this.destroy()}.bind(this),300)}}),w.register("video-viewer","viewer",{video:"",poster:"",width:640,height:360,useIframe:!1,template:function(){return(this.useIframe?'<div class="viewer video-viewer"><iframe class="viewer-body" src="{video}" allowfullscreen></iframe></div>':'<div class="viewer video-viewer"><video class="viewer-body" autoplay controls poster="{poster}" width="100%"><source src="{video}" type="video/mp4"></source></video></div>').format(this)}}),w.registerDir("open-video",{selector:"[data-video], .fancybox-media",ref:{orgVideo:"video"},props:["video","video-width","video-height"],videoWidth:640,videoHeight:360,video:"",skipClass:"",init:function(){this.video=this.video||this.el.attr("href"),/youtube\.com\/watch\?v=[\w-]+/.test(this.video)&&(this.video=this.video.replace(/watch\?v=([\w-]+)(&?)/,function(t,e,i){return"embed/"+e+(i?"?":"")})),/youtube\.com/.test(this.video)&&(this.video.includes("?")?this.video.includes("autoplay=1")||(this.video+="&autoplay=1"):this.video+="?autoplay=1"),this.el.$on("click",this.onClickEl,this)},onClickEl:function(t){var e;t.preventDefault(),w(window).width()<=768?open(this.video):this.skipClass&&w(t.target).closest(this.skipClass).length||(t=!1,(e=this.el.find("video")).length?(this.video=this.video||e[0].currentSrc,this.poster=e[0].poster||"",e.trigger("pause")):this.video.startsWith("http")&&(t=!0),w.newCom("video-viewer",{video:this.video,poster:this.poster,width:this.videoWidth,height:this.videoHeight,useIframe:t}).show())}}),w.register("report-video-win","win",{template:function(){return'<div class="win report-win"><div class="win-head">'+(this.title||"{@@report}")+'</div><div class="win-body"><label class="report-win-label"><span>{@@email}:</span><input type="email" name="email" required pattern="^[\\w-]+(?:\\.[\\w-]+)*@[\\w-]+(?:\\.[\\w-]+)+$"></label><label class="report-win-label"><span>{@@reason}:</span><input type="text" name="reason" required></label></div><div class="win-foot"><button class="submit" type="primary">{@@submit}</button></div></div>'},id:"",email:"",title:"",target:"body",autoDestroy:!0,notUseJson:!1,ref:{emailEl:"[name=email]",submitEl:".submit"},init:function(){this.email&&this.emailEl.val(this.email),this.submitEl.$on("click",this.onSubmit,this)},getURL:function(){return w.nocache(apower.getWPPath()+"/wp-admin/admin-ajax.php?action=videograbber_video&type=report_video")},getPost:function(){return this.el.formObj({post_id:this.id})},onSubmit:function(){var t=this.getURL(),e=this.notUseJson?this.getPost():JSON.stringify(this.getPost());this.el.checkValidity()&&(w.ajax({type:"POST",url:w.nocache(t),data:e,dataType:"json",success:this.onSubmitted.bind(this),error:this.onSubmitError.bind(this)}),this.submitEl.addClass("btn-loading"))},onSubmitted:function(t){this.submitEl.removeClass("btn-loading"),t&&1==t.state?(w.msg.success(r("thanks_report")),this.hide()):w.msg.error(r("submit_failed"))},onSubmitError:function(t){this.submitEl.removeClass("btn-loading"),w.msg.error(r("submit_failed"))}}),w.registerDir("report-video",{selector:"[data-report-video]",props:["id"],init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(t){w.newCom("report-video-win",null,{id:this.id}).show()}}),w.register("image-viewer","viewer",{width:80,height:80,image:"",template:'<div class="viewer image-viewer"><img class="viewer-body"></div>',props:["image"],init:function(){this.callSuper("viewer"),w.preloadImage(this.image,function(t){t?(this.body.attr("src",this.image),this.width=t.naturalWidth,this.height=t.naturalHeight,this.show()):this.destroy()},this)}}),w.registerDir("open-image",{selector:"[data-image], .fancybox",props:["image"],init:function(){this.image=this.image||this.el.attr("href"),this.el.$on("click",this.onClickEl,this)},onClickEl:function(t){t.preventDefault(),w.newCom("image-viewer",{image:this.image}).show()}}),w.register("share-win","win",{props:["share-url"],autoDestroy:!0,template:function(){var t;return t="zh"===apower.lang?'<li title="分享到豆瓣" class="douban"></li><li title="分享到QQ空间" class="qzone"></li><li title="分享到新浪微博" class="weibo"></li><li title="复制到浏览器" class="copy-link" data-copy="'+location.href+'"></li>':'<li class="facebook"></li><li class="twitter"></li><li class="google"></li><li class="'+("ja"===apower.lang?"hatena":"pinterest")+'"></li>',apower.trans('<div class="win share-win"><h2 class="win-head">{@@share}</h2><ul class="win-body" data-share>{0}</ul></div>').format(t)},init:function(){this.callSuper("win")}}),w.registerDir("open-share",{selector:"[data-open-share]",props:["share-url"],init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(t){w.newCom("share-win",{shareURL:this.shareURL}).show()}}),w.register("fixed-share",{template:function(){var t=w.getDirective("bind-share").prototype.links,t=this.hasWeixin&&t.weixin&&t.weixin.img;return"zh"===apower.lang?'<div class="counted-share-vertical" data-share><ul>'+(t?'<li class="share-vertical-weixin"><div></div></li>':"")+'<li class="share-vertical-douban"><div></div></li><li class="share-vertical-qzone"><div></div></li><li class="share-vertical-weibo"><div></div></li><li class="share-vertical-tencent"><div></div></li><li class="share-vertical-youdao"><div></div></li></ul><div class="share-vertical-hidebar"></div></div>':'<div class="counted-share-vertical" data-share><ul><li class="share-vertical-google"><div>-</div></li><li class="share-vertical-facebook"><div>-</div></li><li class="share-vertical-twitter"><div>{@@share}</div></li><li class="share-vertical-'+("ja"===apower.lang?"hatena":"pinterest")+'"><div>-</div></li><li class="share-vertical-linkedin"><div>-</div></li></ul><div class="share-vertical-hidebar"></div></div>'},target:"body",props:["share-url"],shareURL:"",useShareCount:!0,hasWeixin:!1,init:function(){this.el.find(".share-vertical-hidebar").$on("click",function(t){this.el.toggleClass("collapsed")},this),this.useShareCount&&"zh"!==apower.lang&&apower.sharer.getShareCount(this.shareURL,function(t){for(var e in t){var i=t[e],s=this.el.find(".share-vertical-"+e+" div");0<i?s.text(i):(s.text(""),this.el.find(".share-vertical-"+e).css("background-position","center"))}},this)}}),w.register("comment-form",{selector:".comment-form",ref:{inputs:"input, textarea",submitEl:".submit",cancelEl:".cancel-reply",parentIdEl:'[name="comment_parent"]',authorEl:"[name=author]",emailEl:"[name=email]",contentEl:"[name=comment]"},init:function(){this.leaveCommentEl=this.el.closest(".leave-comment"),this.commentEl=this.leaveCommentEl.siblings(".comment"),this.initForm(),this.initValue()},initForm:function(){this.inputs.$on("input",function(t){t.target.value?w(t.target).addClass("touched"):w(t.target).removeClass("touched")}),this.inputs.$on("focus",function(t){w(t.target).parent().addClass("active")}),this.inputs.$on("blur",function(t){t=w(t.target);t.val()||t.parent().removeClass("active")}),this.contentEl.$on("keydown",function(t){13===t.keyCode&&(t.preventDefault(),this.el.checkValidity()&&this.doSubmit())},this),this.submitEl.$on("click",function(t){t.preventDefault(),this.el.checkValidity()&&this.doSubmit()},this),this.cancelEl.$on("click",function(t){t.preventDefault(),this.inputs.blur().removeClass("touched"),this.el.appendTo(this.leaveCommentEl),this.parentIdEl.val("0"),this.commentEl.find(".comment-replying").removeClass("comment-replying")},this)},initValue:function(){"Anonymous"===this.authorEl.val()&&this.authorEl.val(""),"anonymous@apowersoft.com"===this.emailEl.val()&&this.emailEl.val(""),this.contentEl.val("")},setParentId:function(t){this.parentIdEl.val(t)},doSubmit:function(){var t=this.el.attr("action");w.ajax({type:"POST",url:w.nocache(t),data:this.el.formData(),processData:!1,contentType:!1,dataType:"text",success:this.onSubmitted.bind(this),error:this.onSubmitError.bind(this)}),this.contentEl.blur().attr("disabled","disabled"),this.submitEl.addClass("btn-loading")},onSubmitted:function(i){if(this.contentEl.blur().removeAttr("disabled"),this.submitEl.removeClass("btn-loading"),"string"==typeof i){var t=i.select(/^\s*<p>(.+?)<\/p>\s*$/,1);if(t)return void w.msg.alert(t);try{i=JSON.parse(i)}catch(t){i={}}}var t=this.authorEl.val(),e=this.contentEl.val(),s=(s=this.el.closest(".comment-item")).length?s:null;i.comment_author=i.comment_author||t||r("anonymous"),i.comment_content=i.comment_content||e,i.comment_date=i.comment_date||w.formatDate(new Date),w(".comment").each(function(t,e){w(e).com().onNewComment(i,s)}),this.initValue(),this.inputs.removeClass("touched").parent().removeClass("active"),this.trigger("submitted")},onSubmitError:function(t){this.contentEl.blur().removeAttr("disabled"),this.submitEl.removeClass("btn-loading");t=(t.responseText||"").select(/<p>(.+?)<\/p>/,1);w.msg.alert(t||r("submit_failed"))},commentNumberPlus:function(){var t=Number(w(".comment-number span").eq(0).text())||0;t++,w(".comment-count").text("("+t+")"),w(".comment-number span").text(t)}}),w.register("comment",{selector:".comment",ref:{inputs:"input",listEl:" > ul",loadMoreEl:".load-more"},data:{},props:["use-ago-time"],page:0,paging:5,pageCount:1,pagingMode:!1,useAgoTime:!1,init:function(){this.loadMoreMode=!!this.loadMoreEl.length,this.form=this.el.siblings(".leave-comment").find(".comment-form"),this.pagingMode=!this.el.closest(".comment-win").length&&!this.loadMoreMode,this.initPermlink(),this.initPageInfo(),this.useAgoTime&&this.initPublishedTime(),this.pagingMode?this.initPaging():this.loadMoreMode?this.initLoadMore():this.initWin(),this.el.$on("click",this.onClickLike,this),this.el.$on("click",this.onClickReply,this)},initPermlink:function(){var t;/comment=\d+/i.test(location.search)&&(t=location.search.match(/comment=(\d+)/i)[1],w("#comment-"+t).length&&(location.hash="#comment-"+t))},onClickLike:function(t){var e=w(t.target).closest(".comment-like, .comment-dislike"),t=e.is(".comment-like"),i=e.parent().children(".comment-like, .comment-dislike");e.length&&(i.addClass("comment-liked"),t={comment_ID:e.closest("[data-id]").data("id"),vote_type:t?"1":"-1",action:"wc_vote_via_ajax"},w.ajax({type:"POST",url:w.nocache(apower.getWPPath()+"/wp-admin/admin-ajax.php"),data:t,dataType:"json",success:function(t){1==t.code?e.text((Number(e.text())||0)+1):-1==t.code&&i.removeClass("comment-liked")}}))},onClickReply:function(t){var e,i,s,t=w(t.target).closest(".comment-reply");t.length&&(e=this.form,i=t.closest("[data-id]").data("id"),s=t.closest(".comment-self"),e.com().setParentId(i),768<w(window).width()?(t.closest(".comment-actions").before(e),this.el.find(".comment-replying").removeClass("comment-replying"),s.addClass("comment-replying")):w.newCom("mobile-comment-form").show())},initPageInfo:function(){this.pagingWrap=this.el.find(".paging"),this.prevEl=this.pagingWrap.find(".prev"),this.nextEl=this.pagingWrap.find(".next"),this.page=Math.max(parseInt(this.pagingWrap.find("li.active").text())-1||0,0),this.pageCount=parseInt(this.pagingWrap.data("page-count"))||1,this.listEl.length||(this.listEl=w('<ul id="comment-list"></ul>'),this.el.find("h2").after(this.listEl)),this.data[this.page]=this.listEl.children()},initPaging:function(){this.loadEl=w('<div class="loading" hidden><div><div></div></div></div>').appendTo(this.el),this.pagingWrap.$on("click",function(t){var e,t=w(t.target).closest("li");t.length&&(e=0,e=t.is(".prev")?this.page-1:t.is(".next")?this.page+1:Number(t.text())-1,this.loadPageData(e))},this)},initPublishedTime:function(){this.el.find(".comment-time span").each(function(t,e){w(e).text(apower.getAgoTypeTime(w(e).text()))}.bind(this))},initWin:function(){this.win=this.el.closest(".comment-win").com(),this.win.on("ready",function(){this.win.maskEl.addClass("comment-win-mask"),this.loadEl=w('<div class="loading-more"><div></div></div>').appendTo(this.win.body),0!==this.page&&this.loadPageData(0),this.win.body.$on("scroll",this.onBodyScroll,this)},this)},initLoadMore:function(){1==this.pageCount&&this.loadMoreEl.hide(),this.loadMoreEl.find("> div").$on("click",this.onClickLoadMore,this)},onClickLoadMore:function(){this.loadPageData(this.page+1)},onBodyScroll:function(){var t=this.win.body;this.page<this.pageCount-1&&!this.loadEl.hasClass("active")&&t[0].scrollTop>=t[0].scrollHeight-t[0].clientHeight&&this.loadPageData(this.page+1)},loadPageData:function(e){var i;this.data[e]?(this.page=e,this.onLoadData(this.data[e])):(i={post_id:w('[name="comment_post_ID"]').val(),action:"wc_load_more_comments",offset:e*this.paging,per_page:this.paging},this.inputs.map(function(t,e){i[w(e).attr("name")]=w(e).val()}),this.pagingMode?this.loadEl.show():(this.loadMoreMode?this.loadMoreEl:this.loadEl).addClass("active"),w.ajax({type:"POST",url:apower.getWPPath()+"/wp-admin/admin-ajax.php",data:i,dataType:"json",success:function(t){this.pagingMode?this.loadEl.hide():this.loadMoreMode?(this.loadMoreEl.removeClass("active"),this.loadMoreEl.com()&&this.loadMoreEl.com().stop(),(!t.comments||t.comments.length<this.paging)&&this.loadMoreEl.hide()):this.loadEl.removeClass("active"),this.page=e,this.pageCount=Math.ceil(t.parent_count/this.paging)||this.pageCount,this.data[e]=t.comments,this.onLoadData(t.comments)}.bind(this)}))},generateHTML:function(t){if(!t)return"";for(var e=[],i=0;i<t.length;i++){var s=t[i],n=apower.user&&apower.user.getId()==s.comment_uid?apower.user.getAvatar():s.avatar||s.avatar_url,o=n?" has-portrait":"",a=this.useAgoTime?apower.getAgoTypeTime(s.comment_date||s.comment_time):s.comment_date,o=('<li class="comment-item" data-id="{comment_ID}" id="comment-{comment_ID}"><div class="comment-self" itemprop="comment" itemscope itemtype="http://schema.org/Comment"><div class="comment-portrait'+o+'"><img src="'+n+'"></div><div class="comment-author" itemprop="author">'+(s.comment_author||s.nickname)+'</div><a class="comment-time" itemprop="datePublished" href="?comment={comment_ID}">'+a+'</a><div class="comment-text" itemprop="text">{comment_content}</div><div class="comment-actions"><div class="comment-like" itemprop="upvoteCount">{like}</div><div class="comment-dislike" itemprop="downvoteCount">{dislike}</div><div class="comment-reply-count">{child_count}</div><div class="comment-reply">'+r("reply")+'</div></div></div><ul class="comment-reply-items">{child}</ul></li>').format(s).format({child:this.generateHTML(s._child),child_count:s._child?s._child.length:0});e.push(o)}return e.join("")},onLoadData:function(t){if(this.el.find(".cancel-reply").click(),this.pagingMode){this.listEl.empty();var e=this.page,i=this.paging,s=this.pageCount,n=Math.max(0,e-Math.floor((i-1)/2)),o=Math.min(s,n+i);o===s&&(n=Math.max(0,o-i)),this.pagingWrap.find("li").not(".prev, .next").remove();for(var a=n;a<o;a++){var r=w("<li>"+(a+1)+"</li>");a===e&&r.addClass("active"),this.nextEl.before(r)}0<e?this.prevEl.removeAttr("disabled"):this.prevEl.attr("disabled","disabled"),e<s-1?this.nextEl.removeAttr("disabled"):this.nextEl.attr("disabled","disabled")}(Array.isArray(t)?w(this.generateHTML(t)):t.clone()).appendTo(this.listEl)},onNewComment:function(t,e){var i="video"!==apower.pageType,s="",n=(i&&(s='<div class="comment-await">'+r("success_to_review")+"</div>"),""),o=(t.comment_id?n=apower.trans('<div class="comment-actions"><div class="comment-like" itemprop="upvoteCount">0</div><div class="comment-dislike" itemprop="downvoteCount">0</div><div class="comment-reply-count">0</div><div class="comment-reply">{@@reply}</div></div>'):t.comment_id=Date.now(),this.useAgoTime?apower.getAgoTypeTime(t.comment_date||t.comment_time):t.comment_date),a=apower.user?apower.user.getAvatar():"",a='<li class="comment-item" data-id="{comment_id}" id="comment-{comment_id}"><div class="comment-self" itemprop="comment" itemscope itemtype="http://schema.org/Comment"><div class="comment-portrait'+(a?" has-portrait":"")+'"><img src="'+a+'"></div><div class="comment-info"><div class="comment-author" itemprop="author">{comment_author}</div><a class="comment-time" itemprop="datePublished">'+o+'</a></div><div class="comment-text" itemprop="text">{comment_content}</div>'+s+n+"</div></li>",o=(this.el.removeClass("no-comment"),w(a.format(t)));(e&&!i?s=(s=e.find("> .comment-reply-items")).length?s:w('<ul class="comment-reply-items"></ul>').appendTo(e):this.listEl).prepend(o),this.data[0]&&this.data[0].add&&(this.data[0]=o.add(this.data[0]))}}),apower.getAgoTypeTime=function(t){var e,i=new Date,s=i-new Date(t)+60*i.getTimezoneOffset()*1e3,n={second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},o="second",a=1;for(e in n){var r=s/n[e];if(!(1<r))break;o=e,a=Math.floor(r)}t=(1<a?"some_{0}s_ago":"one_{0}_ago").format(o);return apower.tr(t,a)},w.registerDir("open-comment",{selector:"[data-open-comment], .feature-comment",init:function(){this.el.$on("click",function(){this.showCommentWin()},this)},showCommentWin:function(){var e,t,i;w(".comment-win").length?w(".comment-win").com().show():((e=w.newCom("win")).maskEl.addClass("comment-win-mask"),e.el.addClass("comment-win"),w(".comment"),e.body.append(w(".leave-comment").clone()),e.body.append(w(".comment").clone()),e.body.append(w(".paging").clone()),e.body.find(".comment h2").appendTo(e.head),e.body.find(".comment .comment-form").appendTo(e.body.find(".leave-comment")),e.body.find(".comment .comment-replying").removeClass("comment-replying"),t=e.el.find(".comment-number"),i=e.el.find(".win-body"),t.$on("click",function(){var t=e.el.find(".comment").position().top-150||0;i[0].scrollTo(0,t)},this),e.body.applyCom(),e.show())}}),w.register("mobile-comment-form",{ref:{inputs:"input, textarea",submitEl:".submit",cancelEl:".cancel",loadEl:".loading"},template:'<form class="mobile-comment-form" action="" method="post"><div class="wrapper"><div class="title">{@@comments}</div><textarea placeholder="{@@write_your_review}" name="comment" required maxlength="1024"></textarea><input type="hidden" name="author" value="Anonymous"><input type="hidden" name="email" value="anonymous@apowersoft.com"><div class="win-foot"><button class="submit">{@@submit}</button><button class="cancel">{@@cancel}</button></div></div><div class="loading" hidden><div><div></div></div></div></form>',target:"body",init:function(){this.oldForm=w(".comment-form").eq(0),this.inputs.$on("input",function(t){""!==w(t.target).val()?this.submitEl.addClass("active"):this.submitEl.removeClass("active")},this),this.cancelEl.$on("click",function(t){t.preventDefault(),this.destroy()},this),this.loadEl.$on("click",function(){this.destroy()},this),this.el.$on("submit",function(t){t.preventDefault(),this.loadEl.show(),this.oldForm.com().inputs.each(function(t,e){w(e).val(this.el.find("[name="+e.name+"]").val())}.bind(this)),this.oldForm.com().doSubmit(),this.oldForm.com().on("submitted",this.onSubmitted,this)},this)},onSubmitted:function(){this.destroy()},show:function(){this.el.show().find("textarea").focus()},onDestroy:function(){this.oldForm.com().off("submitted",this.onSubmitted,this)}}),apower.scroller=w.registerOnce(document,{downFns:[],upFns:[],lastScrollTop:0,init:function(){this.lastScrollTop=w("html").scrollTop()||w("body").scrollTop(),this.el.$on("scroll",this.onDomScroll,this),setTimeout(function(){this.trigger("scroll",this.lastScrollTop),100<this.lastScrollTop&&this.trigger("down",this.lastScrollTop)}.bind(this),0),this.onDomScroll()},onDomScroll:function(t){var e=w("html").scrollTop()||w("body").scrollTop(),i=(w(window).width(),e<this.lastScrollTop?"up":"down");"up"==i?this.trigger("up",e):100<=e&&this.trigger("down",e),this.trigger("scroll",e,i),this.lastScrollTop=e}}),w.register("mobile-review",{template:'<div class="mobile-review"><div class="mobile-review-wrapper"><div class="mobile-comment-btn">{@@comments}</div><div class="mobile-review-btns"><div class="mobile-rating-btn"></div><div class="mobile-share-btn" data-open-share></div><div class="mobile-comment-count"></div></div></div></div>',target:"body",ref:{countEl:".mobile-comment-count",commentBtn:".mobile-comment-btn"},init:function(){var t=w(".comment-win");this.countEl.text(w(".comment-count").eq(0).text()),this.commentBtn.$on("click",function(t){w.newCom("mobile-comment-form").show()}),this.countEl.$on("click",function(t){w.com("open-comment").prototype.showCommentWin(),w(".comment-win-mask").css("bottom",this.el[0].offsetHeight)},this),apower.scroller.on("down",function(){t.length&&t.is(":visible")||this.el.hide()},this),apower.scroller.on("up",function(){this.el.show()},this)}}),w.register("review-form","win",{template:'<form class="win review-form"><h2 class="win-head">{@@write_your_review}</h2><div class="win-body"><div class="rating selectable" data-selectable data-auto-set><div class="rating-stars"></div><div class="rating-text"></div></div><div class="title"><input type="text" placeholder="{@@title}" name="title" maxlength="100"></div><div class="text"><textarea placeholder="{@@write_your_review}" name="review" maxlength="1024"></textarea></div><div class="name"><input type="text" placeholder="{@@name}" name="name" maxlength="100"></div><div class="email"><input type="email" placeholder="{@@email}" name="email" maxlength="100" pattern="^[\\w-]+(?:\\.[\\w-]+)*@[\\w-]+(?:\\.[\\w-]+)+$"><div class="invalid-text">{@@valid_email}</div></div></div><div class="win-foot"><button class="cancel">{@@cancel}</button><button class="submit" type="primary">{@@submit}</button></div></div>',ref:{inputs:"input, textarea",ratingEl:".rating",submitEl:".submit",cancelEl:".cancel"},autoDestroy:!0,rating:5,init:function(){this.callSuper("win"),this.ratingEl.com().setValue(this.rating),this.inputs.$on("input",function(t){t.target.value?w(t.target).addClass("touched"):w(t.target).removeClass("touched")}),this.inputs.$on("focus",function(t){w(t.target).parent().addClass("active")}),this.inputs.$on("blur",function(t){t=w(t.target);t.val()||t.parent().removeClass("active")}),this.submitEl.$on("click",this.onSubmit,this),this.cancelEl.$on("click",this.onClickCancel,this)},onSubmit:function(t){var e;t.preventDefault(),this.el.checkValidity()&&(e=this.ratingEl.com().rating,t={related_id:apower.productId,type:apower.productType,action:"review",score:e,language:apower.lang,nocache:"1"},w.extend(t,this.el.formObj()),this.showLoading(),w.ajax({url:w.nocache("https://support.apowersoft.com/Api/review"),data:t,dataType:"jsonp",success:function(t){this.hideLoading(),"exist"===t.status?(w.msg.alert(r("already_reviewed")),this.hide()):"failed"===t.status?w.msg.alert(r("failed_to_review")):this.onReviewSuccess(t,e)}.bind(this)}))},onClickCancel:function(t){t.preventDefault(),this.hide()},onReviewSuccess:function(t,e){this.hide(),apower.reviewChecker.setAsReviewed();t={id:t.id,score:e,add_time:w.formatDate(new Date)};w.extend(t,this.el.formObj()),(t.title||t.review)&&w(".review-win").com().onNewReview(t)}}),w.registerDir("open-review-form",{selector:"[data-open-review-form]",init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(){w.newCom("review-form").show();var t=w(".review").com();t&&t.hide()}}),w.registerDir("set-review-rating",{selector:".rating",init:function(){this.el.find(".rating-count").length&&this.el.com().on("select",this.onSelect,this)},onSelect:function(t){w.newCom("review-form",{rating:t}).show();t=w(".review").com();t&&t.hide()}}),apower.reviewChecker=w.registerOnce({reviewResult:void 0,init:function(){apower.productId&&"1"==apower.productType&&(this.reviewResult=w.store.get("apower_reviewed_"+apower.productId),this.reviewResult&&this.addReviewThanks())},setAsReviewed:function(){this.reviewResult=!0,w.store.set("apower_reviewed_"+apower.productId,!0),this.addReviewThanks()},isReviewed:function(e,i){var t;void 0!==this.reviewResult?e.call(i,this.reviewResult):(t={related_id:apower.productId,type:apower.productType,action:"is_review"},w.ajax({url:w.nocache("https://support.apowersoft.com/Api/review"),data:t,dataType:"jsonp",success:function(t){e.call(i,this.reviewResult=1==t.status)}.bind(this)}))},addReviewThanks:function(){w(".rating:has(.rating-count)").not(".review-win .rating").append('<span class="rating-thanks" style="display: inline">'+r("thanks_rating")+"</span>")}}),w.register("review","win",{template:function(){return'<div class="win review-win"><div class="win-head"><h2>{@@product_reviews}</h2><div class="review-add-group"><div class="rating rating-sml" data-rating="'+(0<w('[itemprop="ratingValue"]').length?w('[itemprop="ratingValue"]').eq(0).text():w(".rating").eq(0).attr("data-rating"))+'"><div class="rating-stars"></div><div class="rating-count"><span>'+(w('[itemprop="reviewCount"]').eq(0).text()||w(".rating-count").text().select(/\d+/,0)||0)+'</span> {@@reviews}</div></div><div class="review-add" data-open-review>{@@add_your_review}</div></div></div><div class="win-body"><ul></ul></div></div>'},ref:{ratingEl:".rating",addEl:".review-add",listEl:".win-body > ul",ratingCountEl:".rating-count span"},page:-1,pageCount:1,paging:10,data:{},init:function(){this.callSuper("win"),this.loadEl=w('<div class="loading-more"><div></div></div>').appendTo(this.body),this.addEl.$on("click",this.onClickAdd,this),this.body.$on("click",this.onClickLike,this),this.body.$on("scroll",this.onBodyScroll,this),this.on("show",function(){-1===this.page&&this.loadPageData()},this)},onClickAdd:function(){this.hide(),w.newCom("review-form").show()},onClickLike:function(t){var e=w(t.target).closest(".review-like, .review-dislike"),t=e.is(".review-like"),i=e.parent().children(".review-like, .review-dislike");e.length&&(i.addClass("review-liked"),t={review_id:e.closest("[data-id]").data("id"),type:apower.productType,action:t?"approval":"oppose"},w.ajax({url:w.nocache("https://support.apowersoft.com/Api/review"),data:t,dataType:"jsonp",success:function(t){"exist"!==t.status&&("failed"===t.status?i.removeClass("review-liked"):e.text((Number(e.text())||0)+1))}}))},onBodyScroll:function(){var t=this.body;this.page<this.pageCount&&!this.loadEl.hasClass("active")&&t[0].scrollTop>=t[0].scrollHeight-t[0].clientHeight&&this.loadPageData()},loadPageData:function(){this.page++;var t={related_id:apower.productId,type:apower.productType,action:"get_review",start:this.page*this.paging,page_num:this.paging,language:apower.lang,nocache:"1"};this.loadEl.addClass("active"),w.ajax({url:"https://support.apowersoft.com/Api/review",data:t,dataType:"jsonp",jsonpCallback:"jQueryCallback",cache:!0,success:function(t){this.loadEl.removeClass("active"),this.pageCount=Math.ceil(t.total_count/this.paging),this.data[this.page]=t.all_review,this.onLoadData(this.data[this.page]),0<t.total_count&&this.ratingCountEl.text(t.total_count)}.bind(this)})},onLoadData:function(t,e){if(t&&t.length)for(var i='<li class="review-item" data-id="{id}"><div class="rating rating-sml" data-rating="{score}"><div class="rating-stars"></div><div class="rating-time">{add_time}</div></div><div class="review-content"><div class="review-text"><header>{title}</header><i>by {name}</i><p>{review}</p></div><div class="review-like-group"><div class="review-like">{approval_num}</div><div class="review-dislike">{oppose_num}</div></div></div></li>',s=0;s<t.length;s++){var n=t[s],n=("Anonymous"!==n.name&&n.name||(n.name=r("anonymous")||n.name),i.format(n)),n=w(n).applyCom();e?this.listEl.prepend(n):this.listEl.append(n)}},onNewReview:function(t){this.show(),t.approval_num=0,t.oppose_num=0,this.onLoadData([t],!0);var e=this.listEl.children("li:first-child");e.find(".review-like-group").remove(),e.find(".review-text").append('<div class="review-await">'+r("success_to_review")+"</div>"),e.css({background:"#99d6eb"}),e.width(),e[0].style.transition="background-color 1s linear",this.body[0].scrollTop=0,setTimeout(function(){e.css({background:"#fff"})},500)}}),w.registerDir("open-review",{selector:"[data-open-review], .rating-count",init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(){(w(".review-win").com()||w.newCom("review")).show()}}),w.registerDir("mailto",{selector:".mailto, [data-mailto]",prop:"mailto",init:function(){var t=(t=this.mailto||this.el.text()).replace(/[%#]/,"@");this.el.text(t),this.el.attr("href","mailto:"+t)}}),w.registerDir("env-href",{selector:"[android-href], [iphone-href], [mobile-href], [win-href], [mac-href]",init:function(){for(var t=this.selector.select(/\[(\w+)/g,1),e=0;e<t.length;e++){var i=t[e],s=this.el.attr(i+"-href"),i="is"+i[0].toUpperCase()+i.slice(1);if(s&&w.env[i]){this.el.attr("href",s);break}}}}),w.registerDir("env-text",{selector:"[android-text], [iphone-text], [mobile-text], [win-text], [mac-text]",init:function(){for(var t=this.selector.select(/\[(\w+)/g,1),e=0;e<t.length;e++){var i=t[e],s=this.el.attr(i+"-text")||this.el.data(i+"-text"),i="is"+i[0].toUpperCase()+i.slice(1);if(s&&w.env[i]){this.el.text(s);break}}}}),w.registerDir("right-bar",{selector:".right-bar",rates:{news:.5,share:-1,review:apower.productId&&"Order"!=apower.pageType?.5:-1,comment:-1,rocket:.5,download:.5,support:.5,weixin:0,faq:-1},visible:{},ref:{newsEl:".bar-news",rocketEl:".bar-rocket",faqEl:".bar-faq",weinxinEl:".bar-weixin",items:"> div"},els:null,init:function(){for(var t in this.els={},this.rates)this.els[t]=this.el.find(".bar-"+t);w(".comment").length&&("article"===apower.pageType?this.rates.comment=0:this.rates.comment=.5),"Order"===apower.pageType&&apower.productId&&w("[data-open-faq]").length&&(this.rates.faq=.5),"article"===apower.pageType&&(this.rates.download=0),this.initRocket(),this.initLayers(),this.initNews(),this.faqEl.$on("click",this.onClickFAQ,this)},initNews:function(){this.newsEl.$on("click",this.onClickNews,this)},onClickNews:function(){w(".download-win").com().show()},initRocket:function(){this.rocketEl.$on("click",this.onClickRocket,this),w(window).width()<768?apower.scroller.on("scroll",this.onMobileRocket,this):apower.scroller.on("scroll",this.onScroll,this)},onClickRocket:function(){w("html, body").animate({scrollTop:0},500)},onMobileRocket:function(){var t=w(".footer").length?(w(".screenshots").length?w(".screenshots"):w(".footer")).offset().top:0;t-w(window).height()<(w("body").scrollTop()||w("html").scrollTop())?this.rocketEl.fadeIn(200):this.rocketEl.fadeOut(200)},onScroll:function(t){var e,i=w(window).height();for(e in this.rates){var s=this.rates[e],n=this.els[e],s=!(s<0||t<i*s);!!this.visible[e]!=s&&(s?n.stop().fadeIn(300):n.stop().fadeOut(300)),this.visible[e]=s}},initLayers:function(){var s,t=this;w.nextTick(function(){t.items.each(function(t,e){var i=w(e).dir("layer");i&&(i.align="l",e.style.display="block",i.gap=e.offsetWidth-this.el[0].offsetWidth+10,e.style.display="",i.on("show",function(){s&&s!==i&&s.layer.hide(),s=i}),i.on("hide",function(){s===i&&(s=null)}))}.bind(t))})},onClickFAQ:function(){var t=w("[data-open-faq]").dir("open-faq");t&&t.openFAQWithoutHash()}}),w.registerDir("baidu-search",{selector:"form.search, form.search-blank",ref:{inputEl:"[type=text]",siteEl:"[name=as_sitesearch]"},url:"https://www.baidu.com/s",init:function(){this.el.$on("submit",function(t){"zh"===apower.lang&&(t.preventDefault(),this.onBaiduSearch())},this)},onBaiduSearch:function(){var t=this.inputEl.val(),e=this.siteEl.val(),t=w('<form action="{0}" target="_blank"><input type="hidden" name="wd" value="{1}"></form>'.format(this.url,t+" site:"+e)).appendTo("body");t.submit(),t.remove()}}),w.register("online-form-menu",{selector:".online-form-menu",init:function(){this.displayInput=this.el.prev(),this.valueInput=this.el.siblings("input[type=hidden]"),this.displayInput.$on("keypress",function(t){t.preventDefault()},this),this.displayInput.$on("click",this.onClickDisplayInput,this),this.el.$on("click",this.onClickList,this)},onClickDisplayInput:function(){this.el.is(":visible")?this.closeList():this.el.stop().fadeIn(200),w("html").$on("mousedown",this.closeList,this)},closeList:function(t){t&&w(t.target).closest(this.el).length||(w("html").$off("mousedown",this.closeList,this),this.el.stop().fadeOut(200))},onClickList:function(t){t=w(t.target).closest("li");t.siblings().removeClass("active"),t.addClass("active"),this.displayInput.val(t.text()),this.valueInput.val(t.attr("value")),this.closeList()}}),w.register("online-form","win",{template:function(){return'<div class="win online-form"><div class="win-head">{@@submit_ticket}</div><form action="" class="win-body"><label class="online-form-field"><span>{@@email}: </span><input type="email" name="email" placeholder="{@@email}" required pattern="^[\\w-]+(?:\\.[\\w-]+)*@[\\w-]+(?:\\.[\\w-]+)+$"><span class="online-form-required">*</span></label><label class="online-form-field"><span>{@@question_type}:</span><input type="text" class="online-form-select" placeholder="{@@select_problem_type}" required name="problem_tpye_text"><ul class="online-form-menu"><li value="1">{@@purchase_and_security}</li><li value="2">{@@registration_and_key_code}</li><li value="3">{@@using_the_product}</li><li value="4">{@@technical_issue}</li><li value="5">{@@refund}</li><li value="6">{@@suggestion_or_complaints}</li><li value="7">{@@business_cooperation}</li><li value="8">{@@others}</li></ul><input type="hidden" name="problem_type"><span class="online-form-required">*</span></label><label class="online-form-field"><span>{@@subject}: </span><input type="text" name="problem_subject" required placeholder="{@@subject}"><span class="online-form-required">*</span></label><label class="online-form-field"><span>{@@description}: </span><textarea name="problem_content" required></textarea><span class="online-form-required">*</span></label><label class="online-form-field online-form-attachment" style="display: none"><span class="online-form-attachment-title">{@@attachments}: </span><ul class="online-form-attachment-list"></ul></label><div class="online-form-field online-form-buttons"><button class="online-form-submit">{@@submit}</button><button class="online-form-cancel">{@@reset}</button><button class="online-form-file">{@@add_file}</button><button class="online-form-record" data-start-screen-recording="">{@@record}</button></div></form></div>'},ref:{fileEl:".online-form-file",submitEl:".online-form-submit",cancelEl:".online-form-cancel",recordEl:".online-form-record",fileWrap:".online-form-attachment",fileUl:".online-form-attachment-list",buttonCt:".online-form-buttons"},autoDestroy:!0,target:"body",baseHeight:640,init:function(){this.callSuper("win"),this.files=[],this.cancelEl.$on("click",this.onClickCancel,this),this.submitEl.$on("click",this.onClickSubmit,this),this.fileEl.$on("click",this.onClickAddFile,this),this.fileUl.$on("click",this.onClickFileUl,this),this.recordEl.$on("click",this.onClickRecord,this)},onShow:function(){this.recordEl[0].offsetTop>this.submitEl[0].offsetTop&&(this.buttonCt.addClass("online-form-buttons-align-right"),this.recordEl.after(this.fileEl))},onClickCancel:function(t){t.preventDefault(),this.body.find("input, textarea").val("")},onClickRecord:function(t){w(t.target).is("a")?t.stopPropagation():t.preventDefault()},onClickSubmit:function(t){t.preventDefault(),this.body.checkValidity()?(this.submitEl.addClass("btn-loading"),apower.uploadFiles(this.files,this.onAttachmentsUploaded.bind(this))):this.body.find("input, textarea").addClass("touched")},onAttachmentsUploaded:function(t){if(t){for(var e=this.body.formData(),i=0;i<t.length;i++){var s=t[i].name,n=t[i].url;e.append("attachments_url["+i+"][name]",s),e.append("attachments_url["+i+"][url]",n)}apower.productId&&e.append("pro_id",apower.productId);w.ajax({type:"POST",url:w.nocache("https://support.apowersoft.com/api/support?action=common-submit-ticket"),xhrFields:{withCredentials:!0},data:e,dataType:"json",processData:!1,contentType:!1,crossDomain:!0,success:function(t){t&&1==t.status?this.onSubmitted(!0,t.data):this.onSubmitted(!1,t)}.bind(this),error:function(){this.onSubmitted(!1,null)}.bind(this)})}else this.submitEl.removeClass("btn-loading")},onSubmitted:function(t,e){this.submitEl.removeClass("btn-loading"),this.body.find("input, textarea").removeClass("touched"),t?(this.body.find("textarea").val(""),this.files=[],this.updateAttachments(),w.msg.success(r("submit_success"))):w.msg.error(r("submit_failed"))},onClickAddFile:function(t){t.preventDefault();t=w("#support_file_selector");t.length?t.val(""):(t=w('<input id="support_file_selector" type="file" accept="*" multiple hidden>').appendTo("body")).$on("change",function(t){for(var e=t.target.files,i=0;i<e.length;i++){var s=e[i];this.files.length<5&&(this.files.push(s),this.updateAttachments())}this.updateAttachments()},this),t[0].click()},updateAttachments:function(){if(this.fileUl.empty(),0<this.files.length){this.fileWrap.show();for(var t=0;t<this.files.length;t++)this.fileUl.append('<li>{0}<div class="online-form-attachment-close"><i></i><i></i></div></li>'.format(this.files[t].name))}else this.fileWrap.hide();var e=this.baseHeight+40*this.files.length+(this.files.length?10:0),e=Math.min(e,w(window).height());this.el[0].style.height=e+"px"},onClickFileUl:function(t){w(t.target).closest(".online-form-attachment-close").length&&(t=w(t.target).closest("li").index(),this.files.splice(t,1),this.updateAttachments())}}),w.registerDir("open-online-form",{selector:"[data-open-online-form]",init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(){w.newCom("online-form").show();var t=apower.agents["online-screen-recorder"];t?t.initButton():w.loadScript(apower.getAPIDomain()+"/screen-recorder?apower=1&lang="+apower.lang)}}),w.registerDir("show-online-form",{selector:".online-form-placeholder",init:function(){var t=w.newCom("online-form",{target:null}).body,t=(t.removeClass("win-body").addClass("online-form").addClass("online-form-placeholder").restoreScroll(),this.el.after(t),this.el.remove(),apower.agents["online-screen-recorder"]);t?t.initButton():w.loadScript(apower.getAPIDomain()+"/screen-recorder?apower=1&lang="+apower.lang)}}),w.register("load-more",{selector:".load-more",round:1,ref:{btn:"> div",loadEl:"> div > i"},page:1,pagingCount:20,loading:!1,ended:!1,isScrollMode:!1,params:null,url:"",init:function(){var t;this.loadEl.length||(t=this.btn.text(),this.btn.empty(),this.loadEl=w('<i><svg viewBox="2 -2 20 20" width="20px" height="20px"><circle class="st0" cx="12" cy="8" r="9"/><path class="st1" d="M12,8"/><circle class="st2" cx="12" cy="8" r="5.5"/><circle class="st3 trail" cx="12" cy="8" r="9"/></svg></i>').appendTo(this.btn),this.btn.append("<span>"+t+"</span>")),this.trail=this.loadEl.find(".trail"),this.isScrollMode?this.initScrollEvents():this.btn.$on("click",this.onClickEl,this)},initScrollEvents:function(){apower.scroller.on("scroll",function(t,e){"down"===e&&(e=Math.max(document.body.scrollHeight-document.body.clientHeight,document.documentElement.scrollHeight-w(document.documentElement).height()),this.el.is(":visible")&&e-30<=t&&this.loadMore())},this)},onClickEl:function(t){this.loadMore()},loadMore:function(t,e){if(this.loading)return!1;t&&e&&(t=t.bind(e)),this.doRequest(t),this.loading=!0,this.play()},doRequest:function(t){var e,i=this.url;i&&(e={page:this.page,count:this.pagingCount},w.extend(e,this.params),w.ajax({type:"GET",xhrFields:{withCredentials:!1},crossDomain:!0,url:w.useParams(i,e),success:this.onLoadSuccess.bind(this,t),error:this.onLoadError.bind(this)}))},onLoadSuccess:function(t,e){this.page++,e&&1==e.status?(this.loading=!1,this.stop(),e=e.data,this.onData(e),e.length<this.count&&(this.ended=!0,this.el.hide()),apower.offset.update(),t&&t(!0)):(this.onLoadError(),this.ended=!0,this.el.hide(),t&&t(!1))},onLoadError:function(){this.loading=!1,this.stop()},onData:function(t){},play:function(){this.intervalId&&this.stop(),this.playedCount=0,this.intervalId=setInterval(function(){30==++this.playedCount?this.stop():this.playEach()}.bind(this),500),this.playEach()},playedCount:0,playEach:function(){this.round++,this.trail.animate({"stroke-dashoffset":300*-this.round+"%"},1e3,"linear"),this.loadEl.removeClass("paused").addClass("active")},stop:function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=0,this.playedCount=0),this.round=1,this.trail.stop(!0),this.trail.css("stroke-dashoffset","-300%"),this.loadEl.removeClass("active").addClass("paused")}}),w.registerDir("font-fit",{selector:"[data-font-fit]",init:function(){this.adjustFontSize(),document.fonts?document.fonts.ready.then(this.adjustFontSize.bind(this)):w.onWinLoaded(this.adjustFontSize,this)},adjustFontSize:function(){this.el.resetFontSizeToBeContained()}}),w.registerDir("text-line",{selector:"[data-text-line]",props:["text-line"],textLine:1,init:function(){this.adjustFontSize(),document.fonts?document.fonts.ready.then(this.adjustFontSize.bind(this)):w.onWinLoaded(this.adjustFontSize,this)},adjustFontSize:function(){this.el.resetFontSizeToBeLine(this.textLine)}}),w.registerDir("multiline-overflow",{selector:"[data-multiline-overflow]",originalText:"",supportsLineClamp:window.CSS&&CSS.supports("display","-webkit-box")&&CSS.supports("-webkit-line-clamp","2"),isAlreadyClamp:!1,init:function(){this.isAlreadyClamp=this.supportsLineClamp&&["-webkit-box","box"].includes(this.el.css("display")),this.originalText=this.el.text(),768<w(window).width()&&(this.addEllipsis(),w(window).$on("resize",w.blockFn(this.updateEllipsis,500),this))},addEllipsis:function(){var t=this.el[0];!this.isAlreadyClamp&&0<t.clientHeight&&t.scrollHeight>t.clientHeight+10&&this.binarySearch()},updateEllipsis:function(){this.el.text(this.originalText),this.addEllipsis()},binarySearch:function(){for(var t=this.el[0],e=this.originalText,i=0,s=e.length-4,n=-1;i<=s;){var o=(i+s)/2;this.el.text(e.slice(0,o)+"..."),t.scrollHeight===t.clientHeight?i=(n=o)+1:s=o-1}o!==n&&this.el.text(e.slice(0,n)+"...")},onDestroy:function(){w(window).$off("resize",this.updateEllipsis,this)},cancel:function(){this.el.html(this.originalText)}}),w.registerDir("copy",{selector:"[data-copy]",props:["copy"],copy:"",locked:!1,init:function(){this.copy=this.copy||this.el.text().trim(),this.el.$on("click",this.onClickEl,this)},onClickEl:function(){var t,e,i;this.locked||(t=!1,document.execCommand&&768<w(window).width()&&((e=w('<input style="position: fixed; left: 0; top: 0; z-index: -1;">').appendTo("body")).val(this.copy),e.select(),document.execCommand("copy")&&((i=w.newCom("tip",this.el,{tip:r("copied_to_clipboard"),mouseTrigger:!1})).showTip(),t=this.locked=!0,setTimeout(function(){i.hideTip(),i.destroy(),this.locked=!1}.bind(this),2e3)),e.remove()),t||this.showCopyWin())},showCopyWin:function(){var t=w.newCom("win",'<div class="win link-win"><div class="win-body">'+this.copy+"</div></div>",{autoDestroy:!0,target:"body"}),e=(t.show(),document.createRange()),t=(e.selectNode(t.el[0]),window.getSelection());t.removeAllRanges(),t.addRange(e)}}),w.registerDir("text-roll",{selector:"[data-text-roll]",props:["text-roll","interval","trigger","scroll-duration"],textRoll:"",trigger:"",scrollDuration:1e3,interval:2e3,timeoutId:0,triggerEl:null,paused:!0,init:function(){this.trigger?"string"==typeof this.trigger?this.triggerEl=this.el.closest(this.trigger):this.triggerEl=w(this.trigger):this.triggerEl=this.el,"auto"===this.textRoll?(this.resumeScroll(),this.triggerEl.$on("mouseenter",this.pauseScroll,this),this.triggerEl.$on("mouseleave",this.resumeScroll,this)):"hover"!==this.textRoll&&""!==this.textRoll||(this.triggerEl.$on("mouseenter",this.resumeScroll,this),this.triggerEl.$on("mouseleave",this.pauseScroll,this))},pauseScroll:function(){this.paused=!0,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},resumeScroll:function(){this.paused=!1,this.timeoutId||this.startNextScroll()},startNextScroll:function(){this.timeoutId=setTimeout(this.scroll.bind(this,!0),this.interval)},scroll:function(){var t,e;this.el[0].scrollHeight<=this.el[0].clientHeight||(e=(t=this.el.children().eq(0)).outerHeight(),this.el.animate({scrollTop:e},this.scrollDuration,function(){this.el.append(t),this.el.scrollTop(0),this.paused||this.startNextScroll()}.bind(this)))}}),w.registerDir("toggle-active",{selector:"[data-toggle-active]",props:["toggle-active"],toggleActive:"",init:function(){this.targetEl=w("."+this.toggleActive),this.el.$on("mouseenter",this.onMouseEnter,this),this.el.$on("mouseleave",this.onMouseLeave,this)},onMouseEnter:function(){this.targetEl.addClass("active")},onMouseLeave:function(){this.targetEl.removeClass("active")}}),w.registerDir("scroll-to",{selector:"[data-scroll-to], [data-view]",props:["scroll-to","view"],scrollTo:"",view:"",hasSubHeader:!1,subHeaderHeight:65,init:function(){this.el.$on("click",this.onClickEl,this),this.hasSubHeader=0<w(".subheader").length},onClickEl:function(){var t=this.scrollTo||this.view;t&&0<(t=w("."+t)).length&&this.scrollToEl(t)},scrollToEl:function(t){t=t.offset().top;this.hasSubHeader&&768<w(window).width()&&t>w(window).height()&&(t-=this.subHeaderHeight),w("html, body").animate({scrollTop:t})}}),w.registerDir("data-href-to",{selector:"[data-href-to]",props:["href-to"],hrefTo:"",init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(t){t.preventDefault();var t=this.hrefTo;t&&0<(t=w("#"+t)).length&&this.scrollToEl(t)},scrollToEl:function(t){t=t.offset().top-Math.max(w(".header").height(),w(".subheader").height())-20;window.scrollTo(0,t)}}),w.registerDir("inview",{props:["inview"],inview:.25,selector:".main, .obj-wrap, [data-inview], [data-right-navigation]",init:function(){var t=this.el.is(".main")?0:this.inview,e=this.el.is("[data-right-navigation]"),i=!this.el.is(this.selector.replace(", [data-right-navigation]",""));apower.offset.add({el:this.el,rate:t,isNavigationEl:e,isOnlyNavigationEl:i})}}),apower.offset=w.registerOnce({offsets:[],init:function(){w(window).$on("resize",this.update,this),apower.scroller.on("scroll",w.blockFn(this.onScroll,500),this),w.defer(this.update,this)},lastNavEl:null,onScroll:function(t){for(var e=w(window).height(),i=null,s=0,n=0;n<this.offsets.length;n++){var o,a=this.offsets[n],r=a.el,l=a.top,c=a.bot,h=a.height,d=a.rate,u=a.isNavigationEl,p=a.isOnlyNavigationEl;h&&((o=0)<(c=Math.min(c,t+e)-Math.max(l,t))&&(o=c/Math.min(h,e)),u&&s<o&&(s=o,i=r[0]),d<o?a.inview||(a.inview=!0,p||r.addClass("inview"),r.$trigger("inview")):a.inview&&(a.inview=!1,p||r.removeClass("inview"),r.$trigger("outview")))}i!==this.lastNavEl&&(this.trigger("updatenav",i,this.lastNavEl),this.lastNavEl=i)},add:function(t){w.extend(t,{top:0,bot:0,height:0}),this.offsets.push(t)},remove:function(t){for(var e=0;e<this.offsets.length;e++)if(t===this.offsets[e].el)return this.offsets.splice(e,1),!0;return!1},update:function(){for(var t=w("html").scrollTop()||w("body").scrollTop(),e=0;e<this.offsets.length;e++){var i=this.offsets[e],s=i.el,n=s[0].getBoundingClientRect().top+t,s=s[0].offsetHeight;i.top=n,i.bot=s+n,i.height=s,i.inview=!1}this.onScroll(apower.scroller.lastScrollTop)}}),w.registerDir("open-faq",{selector:"[data-open-faq]",init:function(){this.el.$on("click",this.onClickEl,this)},onClickEl:function(t){t.preventDefault();t=this.el.attr("href");this.openFAQByURL(t)},openFAQWithoutHash:function(){var t=this.el.attr("href");this.openFAQByURL(t.replace(/#.+/,""))},openFAQByURL:function(t){var e,i,s,n,o,a,r;t&&((e=t.select(/#.+/,0))&&(t=t.slice(0,-e.length)),(i=w.newCom("win",null,{target:"body",autoDestroy:!0,template:'<div class="win faq-win"><iframe class="win-body" style="width: 100%;" src="'+t+'"></iframe></div>'})).show(),s=this,a=o=n=!1,r=function(){n&&o&&!a&&(s.onIframeReady(i,w(i.body[0].contentDocument),i.body[0].contentWindow,e),a=!0)},w.until(10,function(){return w(i.body[0].contentDocument).find(".counted-share-vertical").length},function(){n=!0,r()}),w.until(10,function(){var t=w(i.body[0].contentDocument).find(".article");return t.length?t:null},function(t){t.onAllImageLoaded(function(){o=!0,r()})}),w(i.body[0].contentWindow).$on("load",function(){o=!0,r()}),i.showLoading())},onIframeReady:function(t,e,i,s){var n;e.find(".header, .counted-share-vertical, .rating-share-section, .posted, .leave-comment, .comment, .yarpp-related, .paging, .aside, .right-bar, .footer").remove(),e.find(".content").css("padding-top","0"),e.find(".content .wrapper").css("max-width","90%").css("padding-bottom","50px"),e.find(".main-content").css("width","auto").css("max-width","none"),t.hideLoading(),s&&((n=i.$(s)).scrollToTop(30,500),setTimeout(function(){n.animate({opacity:.1},300).animate({opacity:1},1e3)},500))}}),w.registerDir("mobile-zip",{selector:"[data-mobile-zip]",init:function(){window.innerWidth<=768&&this.zip()},zip:function(){var t=this.el.find("tr"),e=t.eq(0).find("th");t.eq(0).remove();for(var i=1;i<t.length;i++){var s=t.eq(i),n=s.find("td");n[0].rowSpan=e.length;for(var o=e.length-1;1<=o;o--){var a=w("<tr></tr>");a.append(e.eq(o).clone()),a.append(n.eq(o)),s.after(a)}}}}),w.registerDir("painting",{selector:".painting",ref:{fitEl:"[data-fit]"},init:function(){var t=this.fitEl.dir("fit");t?t.on("fit",this.adjust,this):this.adjust(),w(window).$on("resize",this.adjust,this)},adjust:function(){768<window.innerWidth&&this.el.each(function(t,e){e=w(e);this.adjustEachPainting(e)}.bind(this))},cancelLastAdjust:function(t,e){t.css("margin-top",""),e.css("margin-top","")},adjustEachPainting:function(t){var e,i,s,n,o,a=t.closest(".wrapper"),r=t.siblings(".writing");a.length&&a.css("display").includes("flex")||!r[0]||(this.cancelLastAdjust(t,r),e=r.cssNum("margin-top")+r.find("h2").cssNum("margin-top"),i=t.cssNum("margin-top"),n=t.cssNum("margin-bottom"),s=r[0].offsetHeight-r.find("h2").cssNum("margin-top"),n<0?(o=a.innerHeight()/2-s/2,r.is("[data-skip-align]")||r.css("margin-top",o)):(n=i+t[0].offsetHeight/2,a=e+s/2,20<Math.abs(n-a)&&(a<n?(o=r.cssNum("margin-top")+n-a,r.is("[data-skip-align]")||r.css("margin-top",o)):(o=t.cssNum("margin-top")+a-n,t.is("[data-skip-align]")||t.css("margin-top",o)))))}}),w.registerOnce("[data-right-navigation]",{lastScrollDirection:"",ref:{rightEl:".right-navigation",rightBtns:".right-navigation li"},init:function(){this.rightEl=w(".right-navigation"),this.rightBtns=w(".right-navigation li"),this.subheader=w(".subheader"),this.rightBtns.$on("click",this.onClickBtn,this),apower.offset.on("updatenav",this.onUpdateNav,this);var t=this.rightEl.height()==window.innerHeight;768<window.innerWidth&&this.subheader.length&&t&&(this.rightEl.$on("mouseenter",this.onRightElMouseEnter,this),this.rightEl.$on("mouseleave",this.onRightElMouseLeave,this))},onRightElMouseEnter:function(){this.subheader.addClass("shade-by-rightnav")},onRightElMouseLeave:function(){this.subheader.removeClass("shade-by-rightnav")},onUpdateNav:function(t,e){var i,s;t?(i=this.el.indexOf(t),s=t.className.replace(t=/\s*(?:-?screen|function|inview|active)\s*/g,""),e=e?e.className.replace(t,""):"",this.rightBtns.removeClass("active"),this.rightBtns.eq(i).addClass("active"),this.rightEl.removeClass("data-right-"+e),this.rightEl.addClass("data-right-"+s),this.rightEl.show()):this.rightEl.hide()},onClickBtn:function(t){t=w(t.target).closest("li").index(),t=this.el.eq(t);w.com("scroll-to").prototype.scrollToEl.call(this,t)}}),w.registerDir("object-fit",{selector:"[data-object-fit]",props:["object-fit"],objectFit:"cover",videoWidth:0,videoHeight:0,init:function(){this.objectFit=this.objectFit||"cover",this.el.$on("loadedmetadata",this.adjustVideoBox,this),w(window).$on("resize",this.adjustVideoBox,this)},onDestroy:function(){w(window).$off("resize",this.adjustVideoBox,this)},adjustVideoBox:function(){var t=this.el[0],e=t.videoWidth,i=t.videoHeight,s=t.parentNode.clientWidth,t=t.parentNode.clientHeight;e&&i&&s&&t&&"cover"===this.objectFit&&(s/t<e/i?(this.el.css("left",s/2-(e=e/i*(s=t))/2),this.el.css("width",e),this.el.css("height",s)):(this.el.css("left",""),this.el.css("width",""),this.el.css("height","")))}}),w.registerDir("download-stats",{selector:"[data-download-stats]",props:["download-stats"],downloadStats:"",init:function(){this.downloadStats||(this.downloadStats=(w("a.download, a[data-download-url]").attr("href")||"").replace(/^.+down\.php/,"https://download.apowersoft.com/stats")),this.downloadStats&&w.ajax({type:"GET",url:this.downloadStats,dataType:"json",success:this.updateDownloadCount.bind(this)})},updateDownloadCount:function(t){var e,t=t.count;0<t&&(e=((t=String(t)).length-1)%3+1,t=t.slice(0,e)+t.slice(e).replace(/\d\d\d/g,",$&"),this.el.text(t))}}),w.registerDir("bgdelay",{selector:".bgdelay",init:function(){apower.scroller.on("down",this.onScrollDown,this)},onScrollDown:function(t){this.el.offset().top-t<=w(window).height()&&this.el.removeClass("bgdelay")}})}(jQuery);"use strict";function _typeof(e){return(_typeof="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})(e)}!function(h){function s(e){c&&console.log(e)}function l(e){this.init(e)}function o(e){this.init(e)}function t(e){this.agent=e,this.init()}var c=/debug=1/.test(location.search),a=apower.tr,r=(l.prototype={url:"",onopen:null,onmessage:null,ontimeout:null,closeWhenTimeout:!0,onclose:null,timeout:0,heartBeatInterval:1e4,retryTimes:1/0,retryAfter:1e3,heartBeatData:null,heartBeatWhenOpened:!0,ws:null,lastTryAt:0,closeTimer:0,heartBeatTimer:0,retryTimer:0,willClose:!1,opened:!1,init:function(e){for(var t in e)t in this&&(this[t]=e[t])},open:function(){this.openWS(),this.timeout&&(this.closeTimer=setTimeout(this.onTimeout.bind(this),this.timeout))},openWS:function(){try{this.lastTryAt=(new Date).getTime(),this.ws=new WebSocket(this.url),this.ws.onopen=this.onWSOpen.bind(this),this.ws.onclose=this.onWSClose.bind(this),this.ws.onmessage=this.onWSMessage.bind(this),this.ws.onerror=this.onWSError.bind(this),this.willClose=!1}catch(e){s(e.message),this.onWSClose()}},onWSOpen:function(e){clearTimeout(this.closeTimer),this.heartBeatTimer=setInterval(this.onHeartBeat.bind(this),this.heartBeatInterval),this.opened=!0,s("Socket `"+this.url+"` connected"),this.heartBeatWhenOpened&&this.onHeartBeat(),this.onopen&&this.onopen()},send:function(e){"object"===_typeof(e)&&(e=JSON.stringify(e)),s("Send message: "+e),this.ws.send(e)},onWSMessage:function(t){s("Got message: "+t.data);var e=null;try{e=JSON.parse(t.data)}catch(e){console.warn("Can't parse message: "+t.data)}this.onmessage(e)},onWSError:function(e){},onWSClose:function(){this.opened=!1,s("Socket `"+this.url+"` disconnected"),this.willClose||this.onNotSelfClose(),clearInterval(this.heartBeatTimer)},onNotSelfClose:function(){var e;0<this.retryTimes?(this.retryTimes--,e=Math.max(0,this.retryAfter-(new Date).getTime()+this.lastTryAt),this.retryTimer=setTimeout(this.openWS.bind(this),e),s("Error occured, will retry in "+this.retryAfter/1e3+" seconds.")):s("Still failed after multiple times retry.")},close:function(){!this.ws||this.ws.readyState!==this.ws.OPEN&&this.ws.readyState!==this.ws.CONNECTING||(this.willClose=!0,this.ws.close()),clearTimeout(this.retryTimer),clearTimeout(this.closeTimer),clearInterval(this.heartBeatTimer),this.onclose&&this.onclose()},onTimeout:function(){this.ontimeout&&this.ontimeout(),s("Socket `"+this.url+"` timeout"),this.closeWhenTimeout&&this.close()},onHeartBeat:function(){this.ws.readyState===this.ws.OPEN&&this.send(this.heartBeatData)}},o.prototype={cfg:null,ports:null,cons:null,con:null,init:function(e){this.ports=e.ports,delete e.ports,this.cfg=e},open:function(){var e=this.ports;this.cons=[];for(var t=0;t<e.length;t++)this.cons.push(this.newConByPort(e[t]))},newConByPort:function(e){function t(){}var n=this,i=h.extend({},this.cfg),s=(i.url=i.url+":"+e,i.onopen||t),o=(i.onmessage,i.ontimeout||t),a=i.onclose||t,r=(i.onopen=function(){n.clearOtherCons(r),n.con=r,s()},i.ontimeout=function(){o()},i.onclose=function(){n.clearOtherCons(r),a()},new l(i));return r.open(),r},clearOtherCons:function(e){for(var t=this.cons.length-1;0<=t;t--){var n=this.cons[t];n!==e&&(n.onclose=null,n.close(),this.cons.splice(t,1))}},send:function(e){this.con.send(e)},close:function(){this.cons&&this.cons[0]&&this.cons[0].close()}},{getBrowserName:function(){var e=h.env.isIE?"ie":h.env.isFirefox?"firefox":"chrome";return e=c?location.search.select(/browser=(\w+)/,1)||e:e},generateAnimEl:function(){var e=this.getBrowserName(),e="firefox"===e?'<div class="agent-browser"><div class="agent-browser-screenshot agent-'+e+'"><div class="agent-firefox-popup-1"></div><div class="agent-firefox-popup-2"></div><div class="agent-firefox-popup-3"></div><div class="agent-browser-mouse"></div></div>':'<div class="agent-browser"><div class="agent-browser-screenshot agent-'+e+'"><div class="agent-browser-popup"></div><div class="agent-download-drop"></div><div class="agent-browser-mouse"></div><div class="agent-click-here"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="217.8px" height="195px" viewBox="-7 -7 210.8 188"><defs><filter id="shadow"><feGaussianBlur in="SourceGraphic" stdDeviation="7" result="blur"/><feOffset in="blur" dx="0" dy="3" result="blur"/><feFlood flood-color="#000" flood-opacity="0.25" result="flood"/><feComposite in="flood" in2="blur" operator="in" result="blur"/><feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g filter="url(#shadow)"><path id="click_here_mark" fill="none" stroke="#1FB5C9" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M19.096,149.955c0,0-4.5,13.301-5.9,14s-10-10.801-10-10.801"/><path id="click_here_path" fill="none" stroke="#1FB5C9" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10"d="M115.697,62.055c0,0-34.201,2.4-47.101,6.5c-10.3,3.3-23.5,7.2-31.3,16.5c-2.9,3.4-4.7,9.301-1.8,15.201c1.4,2.898,5.8,5.5,8.8,3.5c6-4.801-2.1-13.9-13-9.801c-11.5,4.199-21.7,20.199-21.7,39.5c0,18.301,3.3,26.801,3.5,30.199"/></g></svg></div></div>',e=h(e);return this.bindAnim(e),e},bindAnim:function(e){var t,n,i,s,o,a,r,l,h,c,d,u=this.getBrowserName(),p=e.find(".agent-browser-screenshot"),f=e.find(".agent-browser-mouse"),g=e.find(".agent-click-here"),m=e.find("#click_here_path"),w=e.find("#click_here_mark"),v=360/804,y=null;(y="firefox"===u?(t=e.find(".agent-firefox-popup-1"),n=e.find(".agent-firefox-popup-2"),i=e.find(".agent-firefox-popup-3"),function(){p.hide().css("transform","scale("+v+")").fadeIn(500).delay(1e3).animate({transform:"translate(-254px, -286px)"},1e3).delay(1e3).animate({transform:"scale("+v+")"},1e3).delay(2e3).animate({transform:"translate(-343px, 0)"},1e3).delay(5e3).fadeOut(500,y),f.show().css("transform","none").delay(900).fadeOut(100).fadeIn(100).delay(400).animate({transform:"translate(78px, 207px)"},1e3).delay(400).fadeOut(100).fadeIn(100).delay(400).animate({transform:"translate(302px, -203px)"},1e3).delay(400).fadeOut(100).fadeIn(100).delay(1400).animate({transform:"translate(18px, -138px)"},1e3).delay(400).fadeOut(100).fadeIn(100),t.hide().delay(1200).fadeIn(300).delay(2e3).fadeOut(500),n.hide().delay(5200).fadeIn(300).delay(500).fadeOut(100),i.hide().delay(6e3).fadeIn(100)}):(s=e.find(".agent-browser-popup"),o=e.find(".agent-download-drop"),a=parseInt(o.css("left")),r=parseInt(o.css("top")),l=-380,h=79,c=235,d=550,"chrome"===u&&(l=0,h=-300,c=241,d=100),function(){p.hide().css("transform","scale("+v+")").fadeIn(500).delay(2e3).animate({transform:"translate("+l+"px, -290px)"},1e3).delay(5e3).fadeOut(500,y),f.show().css("transform","none").delay(900).fadeOut(100).fadeIn(100).delay(1400).animate({transform:"translate("+h+"px, "+c+"px)"},1e3).delay(1300).fadeOut(100).fadeIn(100),o.hide().css({top:r,left:a,transform:"none"}).delay(1100).fadeIn(100).animate({left:d,top:480,transform:"scale(0.3)"},{duration:500,easing:"linear",step:function(e,t){"top"===t.prop&&(t.now=t.start+Math.pow(t.now-t.start,2)/(t.end-t.start))}}).fadeOut(100),s.hide().delay(1600).fadeIn(100),g.hide().delay(3e3).fadeIn(500),m.css({"stroke-dasharray":235,"stroke-dashoffset":235}).delay(3500).animate({"stroke-dashoffset":0},1e3),w.hide().delay(4400).fadeIn(100)}))()}});t.prototype={agent:null,el:null,lastIcon:"",hidden:!0,lastTitle:"",lastMsg:"",lastAdditionalClass:"",syncInterval:0,lastSize:null,init:function(){this.el=h('<div class="agent-popup"><div class="agent-popup-trangle"></div><div class="agent-popup-icon"><div></div><div></div><div></div></div><div class="agent-popup-close"></div></div>'),this.agent.additionalAgentMsgClass&&this.el.addClass(this.agent.additionalAgentMsgClass),this.el.find(".agent-popup-close").$on("click",function(){this.hide(),this.el.css({display:"none"}),this.agent.onclosemsg&&this.agent.onclosemsg(this.lastTitle,this.lastMsg)},this),this.el.appendTo("body")},show:function(e,t,n,i,s,o){"function"==typeof i&&(o=s,s=i,i=null),this.clearHiddenTimeout();var a=this.el,e=(a.find(".agent-popup-head, .agent-popup-msg, .agent-popup-btn, .agent-popup-anim").remove(),this.lastIcon&&(a.find(".agent-popup-icon").removeClass("agent-popup-"+this.lastIcon),this.lastIcon=""),e&&(a.find(".agent-popup-icon").addClass("agent-popup-"+e),this.lastIcon=e),t&&a.append('<div class="agent-popup-head">'+t+"</div>"),n&&a.append('<div class="agent-popup-msg">'+n+"</div>"),i&&i.btn&&(a.append('<div class="agent-popup-btn">'+i.btn+"</div>"),s=s||i.handler,o=o||i.scope,s&&a.find("a").$on("click",s,o)),i&&i.anim&&a.append(h('<div class="agent-popup-anim"></div>').append(r.generateAnimEl())),this.lastAdditionalClass&&(a.removeClass(this.lastAdditionalClass),this.lastAdditionalClass=""),i&&i.class&&(a.addClass(i.class),this.lastAdditionalClass=i.class),a.is(":visible"));return a.stop(!0).show().fadeIn(0),this.align(),e||(a.hide(),a.fadeIn(200)),this.lastTitle=t,this.lastMsg=n,this.syncPosition(),this.hidden=!1,a},clearHiddenTimeout:function(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},hide:function(e){this.clearHiddenTimeout(),this.hideTimeout=setTimeout(function(){this.el.stop(!0).fadeOut(200),this.hidden=!0,this.stopSyncPosition()}.bind(this),e||0)},align:function(){var e,t,n;this.agent.button&&(e=this.el,t=this.agent.button,(n=h(".win:visible, .v-win:visible")).length&&0===t.closest(n).length?(e.addClass("agent-popup-front"),this.restoreElPosition(),e.alignTo(document.body,"c")):(e.removeClass("agent-popup-front"),this.syncElPositionWithBtn(),t.is(":visible")&&e.alignTo(t,"tc")))},syncElPositionWithBtn:function(){this.restoreElPosition();var e=this.el,t=this.agent.button,n="fixed"===e.css("position"),t=t.hasFixedAncestor();!n&&t?e.css("position","fixed"):n&&!t&&e.css("position","absolute")},restoreElPosition:function(){this.el.css("position","")},syncPosition:function(){this.stopSyncPosition(),this.checkBoundingBox(),this.syncInterval=setInterval(this.checkBoundingBox.bind(this),100),h(window).$on("resize",h.blockFn(this.align,100),this)},checkBoundingBox:function(){var e=this.agent.button,t=this.lastSize,e={width:e?e[0].offsetWidth:0,height:e?e[0].offsetHeight:0};t&&e.width===t.width&&e.height===t.height||((this.lastSize=e).width&&e.height?this.hidden||(this.el.fadeIn(0),this.align()):this.el.stop().hide())},stopSyncPosition:function(){this.syncInterval&&(clearInterval(this.syncInterval),this.lastSize=null),h(window).$off("resize",this.align,this)}},window.AgentLauncher=function(e){h.Emitter.call(this),this.msg=new t(this),this.init(e)},AgentLauncher.prototype=h.extend(Object.create(h.Emitter.prototype),{url:"",name:"",ports:{ws:[18600,18601,18602,18603,18604],wss:[18610,18611,18612,18613,18614]},supportSystems:"win",timeout:5e3,callback:null,buttonHTMLs:null,launchTamper:null,otherVersions:{},onbeforelaunch:null,onapplaunch:null,onappclose:null,onclosemsg:null,leastIOSVersion:"10.8",isActive:!1,channel:null,launched:!1,button:null,appRunning:!1,proxy:null,launchAppTimeout:0,init:function(e){h.Emitter.call(this),h.extend(this,e);e=this.getName();apower.agents[e.replace(/ /g,"-").toLowerCase()]=this,setTimeout(this.initButton.bind(this),0),apower.isOurDomain||this.startChannel(!0)},getLang:function(){return a("lang")||"en"},getName:function(){return"function"==typeof this.name?this.name():this.name},getDownloadURL:function(){var e=this.getBaseConfig(),e=e.launcherUrl||e.LauncherUrl;return e||apower.getDownloadDomain()+"/down.php?softid=apowersoftonlinelauncher"},getShortName:function(e){return this.getName().toLowerCase().replace("online ","").replace(/\s+/g,e)},initButton:function(){for(var e in this.buttonHTMLs)for(var t=h(e),n=this.buttonHTMLs[e],i=0;i<t.length;i++){var s,o,a=t.eq(i);a.is("[data-start-nothing]")||"1"===a.attr("apower-api-binded")||(n&&(s=a.text(),s=n.replace(/\{text\}/g,s),a.html(s)),s=this.getPowerbyText(),o=this.apiURL,s&&o&&(o=apower.getDomain()+"/"+o,h('<a class="apower-powerby" href="{0}" target="_blank">{1}</a>'.format(o,s)).appendTo(a).$on("mouseover",function(e){e.preventDefault()})),this.button=this.button||a,this.initEvent(a),this.initHoverEvent(a),a.attr("apower-api-binded","1"))}},getPowerbyText:function(){var e,t,n=this.getLang();return this.isFreeVersion()?(e=apower.isOurDomain&&!h("#api-code").length,t=this.getShortName("_"),e?(a(t)||"Apowersoft")+" "+("tr"===n?"UPA":"API"):a("power_by_apowersoft")||("zh"===n?"Apowersoft 技术支持":"Powered by Apowersoft")):""},isFreeVersion:function(){var e=this.getBaseConfig();return!(e&&(e.Key||e.key))},getAPIConfigName:function(e){var t=this.getShortName("-").replace(/(?:^|-)(\w)/g,function(e,t){return t.toUpperCase()});return e?"apower"+t+"ServerConfig":"apower"+t+"Config"},initEvent:function(t){t.on("click",function(e){h(e.target).closest(".apower-powerby").length||t.hasClass("ap-active")||(this.button=t,this.onClickStart(t,e))}.bind(this))},initHoverEvent:function(t){t.on("mouseover",function(e){h(e.target).closest(".apower-powerby").length||t.addClass("ap-hover")}),t.on("mouseout",function(e){h(e.target).closest(".apower-powerby").length||t.removeClass("ap-hover")})},onClickStart:function(e,t){this.trigger("beforestart"),this.onbeforelaunch?this.onbeforelaunch(this.launch.bind(this)):this.launch()},launch:function(e){this.launched=!0;var t=this.proxy||this,n=this.getLauncherURL(e);if(t.setActive(),this.isSupported()){if(this.isOpened()&&!e)return this.onOpened(),void this.handle("Hello");try{localStorage&&"1"!=localStorage.apower_agent_installed&&this.onFailed("uninstalled")}catch(e){}if(this.channel&&this.channel.close(),navigator.msLaunchUri){var i=setTimeout(function(){this.onFailed("user-canceled")}.bind(this),1e3);navigator.msLaunchUri(n,function(){clearTimeout(i),this.onLaunching(),this.startChannel()}.bind(this),function(){clearTimeout(i),this.onFailed("uninstalled"),this.startChannel()}.bind(this))}else try{var s="apower-launcher-frame",o=document.getElementById(s);o||((o=document.createElement("iframe")).id=s,o.style.display="none",document.body.appendChild(o),o.src="about:blank"),o.contentWindow.location.href=n,this.onLaunching(),this.startChannel()}catch(e){this.onFailed("uninstalled"),this.startChannel()}}else this.onNotSupported()},getLauncherURL:function(e){var t=this.url,n=this.getLang(),i=(e=e||{},c&&(e.debug=1),{zh:"cn",tw:"hk"});return i[n]&&(e.geo=i[n]),h.useParams(t,e)},isSupported:function(){var e=navigator.userAgent.select(/Mac OS X (\d+).(\d+)/i,1),e=this.isVersionMeet(e,this.leastIOSVersion),t=window.WebSocket,n=h.env.isWin&&this.supportSystems.includes("win"),e=h.env.isMac&&this.supportSystems.includes("mac")&&e;return t&&(n||e)},isVersionMeet:function(e,t){if(t){if(!e)return!1;e=e.split("."),t=t.split(".");for(var n=Math.max(e.length,t.length),i=0;i<n;i++){var s=Number(e[i]),o=Number(t[i]);if(s<o)return!1;if(o<s)return!0}}return!0},onNotSupported:function(){var e=this.getLang(),t="";"string"==typeof this.otherVersions?t=this.otherVersions:h.env.isAndroid?t=this.otherVersions.android:h.env.isIphone?t=this.otherVersions.iphone:h.env.isMac?t=this.otherVersions.mac:h.env.isWin&&(t=this.otherVersions.win),"string"==typeof t?t=t.replace("https://download.apowersoft.com",apower.getDownloadDomain()):"object"===_typeof(t)&&(t=t[e]||t.en),t&&this.openLink(t),this.setInactive()},isOpened:function(){return this.channel&&this.channel.con&&this.channel.con.opened},onOpened:function(){this.showMsg("waiting",a("launching_recorder"))},openLink:function(e){e=h('<a href="'+e+'" target="_blank"></a>');e.appendTo("body"),e[0].click(),e.remove()},onFailed:function(e){var t='<a href="'+this.getDownloadURL()+'">'+a("download_launcher")+"</a>";this.showMsg("download","",a("download_launcher_please"),{btn:t},function(){this.showMsg("ok",a("download_started"),a("after_download"),{anim:!0})},this),this.setInactive()},onLaunching:function(){this.showMsg("waiting",a("launching_agent"))},startChannel:function(e){this.channel&&this.channel.close();var n=this,t="https:"===location.protocol,i=this.getName(),s=t?2*this.timeout:this.timeout;this.channel=new o({url:t?"wss://launcher.apowersoft.com":"ws://127.0.0.1",ports:this.ports[t?"wss":"ws"],retryTimes:e?0:1/0,timeout:s,closeWhenTimeout:!this.launched,heartBeatData:{K:"HeartBeat",V:{Name:i}},onopen:function(){try{localStorage.apower_agent_installed="1"}catch(e){}e||n.onOpened()},ontimeout:function(){e||n.onFailed("timeout")},onmessage:function(e){var t=e.K,e=e.V;if(e&&"string"==typeof e.Data)try{e.Data=JSON.parse(e.Data)}catch(e){}t&&n.handle(t,e)},onclose:function(){n.channel=null}}),this.channel.open()},handle:function(e,t){if(this.launched&&"ResponseHeartBeat"!==e){switch(s("Handling: `"+e+"`"),this.clearLauncherRestartTimeout(),e){case"Hello":case"ResponseHello":this.launchApp();break;case"ResponseInvalidCommand":console.warn("ResponseInvalidCommand - "+JSON.stringify(t));break;case"ResponseInvalidFormat":console.warn("ResponseInvalidFormat - "+JSON.stringify(t));break;case"ResponseInstalling":"Apowersoft Online Launcher"===t.Name||"Mac Online Launcher"===t.Name?(this.showMsg("waiting",a("updating")),setTimeout(function(){this.isOpened()||this.onUpdateFailed()}.bind(this),this.timeout)):this.showMsg("waiting",a("installing"));break;case"ResponseUpdateStart":this.showMsg("waiting",a("updating"),"0%");break;case"ResponseUpdating":this.showMsg("waiting",a("updating"),t.Progress+"%");break;case"ResponseUpdateCompleted":1==t.Result?this.showMsg("ok",a("update_completed")):(this.showMsg("error",a("update_failed"),'<div>{0}</div><div><a class="agent-popup-start-old" href="javascript:">{1}</a></div>'.format(t.Error,a("start_old_version")),function(){this.launch({uapp:0})},this),this.setInactive());break;case"ResponseInstallCompleted":1==t.Result?this.showMsg("ok",a("install_succes")):(this.showMsg("error",a("install_failed"),t.Error),this.setInactive());break;case"ResponseAppLaunching":this.showMsg("waiting",a("launching_recorder"));break;case"ResponseAppLaunched":this.handleAppLaunched(t);break;case"ResponseAppClosed":this.handleAppClosed(t);break;case"ResponseAppCallback":var n,i;t&&t.Name===this.getName()&&t.Data&&(i=(n=t.Data).callback_func||"apowerOnlineAPICallback","function"==typeof window[i]&&window[i](n,t.Name))}this.callback&&this.callback(e,t)}},handleAppLaunched:function(e){1==e.Result||"Running"===e.Error?(this.showMsg("ok",a("recorder_launched")),this.hideMsg(3e3),this.onapplaunch&&this.onapplaunch(),this.trigger("applaunch"),this.appRunning=!0):(this.showMsg("error",a("launch_failed"),e.Error),this.setInactive())},handleAppClosed:function(e){var t,n=e.APIStatusCode;n||0===n?(t=(t={0:"Unkown Error","-1":"Invalid Key","-2":"Key was revoked or disabled","-3":"Total usage limitation reached","-4":"Daily usage limitation reached","-5":"Key does not match with domain","-6":"Key is still under review","-10":"Key is required","-11":"Invalid Key by local validation","-98":"Invalid Key by remote validation"})[n]||t[0],this.showMsg("closed",a("recorder_closed"),n+": "+t+"!")):this.onAppClosedByUser(e),this.setInactive(),this.appRunning=!1,this.onappclose&&this.onappclose(),this.trigger("appclose")},onAppClosedByUser:function(){this.showMsg("closed",a("recorder_closed")),this.hideMsg(3e3)},onUpdateFailed:function(){var e='<ul><li><a href="{0}">{1}</a></li><li><a class="agent-popup-start-old" href="javascript:">{2}</a></li></ul>'.format(this.getDownloadURL(),a("download_launcher"),a("start_old_version"));this.showMsg("error",a("agent_update_failed"),e,function(){this.launch({ulauncher:0})},this),this.setInactive()},launchApp:function(){var e=this.getLaunchConfig();this.send({K:"Launch",V:e}),this.launchAppTimeout=setTimeout(this.restartLauncher.bind(this),this.timeout)},getBaseConfig:function(){var e=this.getAPIConfigName(!0),t=this.getAPIConfigName(),e=window[e],t=window[t];return h.extend({},e,t)},getAbsoluteURL:function(e){return e=/^https?:/.test(e)?e:location.href.replace(/^file:\/+/,"").replace(/[^\/]+$/,"")+e},getLaunchConfig:function(){var e,t,n=this.getBaseConfig(),i=this.getLang(),s={zh:"cn",tw:"hk"},o={},a={},r={};for(t in(e=s[i=(h.env.isMac||this.useOldLang)&&["cs","sv","gr"].includes(i)?apower.getShortRegion(i):i]?s[i]:e)&&(r.Geo=e),n){var l=t[0].toUpperCase()+t.slice(1);["Ver","Url","LauncherVer","LauncherUrl","V"].includes(l)?r[l]=n[t]:["Channel","Key","Data"].includes(l)?(a[l]=n[t],"Channel"===l&&(r[l]=n[t])):o[t]=n[t]}return a.Url=location.href,apower.isOurDomain&&!r.Channel&&(r.Channel=location.host.replace(/^www\./,"")),c&&(r.Debug=1),r.Url&&(r.Url=this.getAbsoluteURL(r.Url)),r.LauncherUrl&&(r.LauncherUrl=this.getAbsoluteURL(r.LauncherUrl)),r.Name=this.getName(),r.Lang=i,0<Object.keys(o).length&&(r.Args=o),2<=Number(r.V)&&(r.API=a),r},send:function(e){e.V=e.V||{},e.V.Name=this.getName(),this.channel&&this.channel.send(e)},restartLauncher:function(){this.launchAppTimeout=0,this.launch({restart:1})},clearLauncherRestartTimeout:function(){clearTimeout(this.launchAppTimeout),this.launchAppTimeout=0},setActive:function(){this.isActive=!0;var e=this.proxy||this;e.button&&e.button.addClass("ap-active")},setInactive:function(){this.isActive=!1;var e=this.proxy||this;e.button&&e.button.removeClass("ap-active")},showMsg:function(){return this.msg.show.apply((this.proxy||this).msg,arguments)},hideMsg:function(){return this.msg.hide.apply((this.proxy||this).msg,arguments)}})}(jQuery);"use strict";!function(){var n=apower.tr;new AgentLauncher({url:"apowersoft-launcher://online-audio-recorder",name:"Online Audio Recorder",buttonHTMLs:{".start-audio-recording":'<div><i class="rec-dot"></i><span>{text}</span></div>',".start-audio-recording-mid":'<div><i class="rec-dot"></i><span>{text}</span></div>',".start-audio-recording-big":'<div><i class="rec-dot"></i><span>{text}</span></div>',"[data-start-audio-recording]":""},supportSystems:"win mac",otherVersions:{mac:"https://download.apowersoft.com/download.php?softid=streamingaudiorecorder",android:"https://play.google.com/store/apps/developer?id=APOWERSOFT+LTD"},apiURL:"api/audio-recorder.html",onClickStart:function(t,i){this.willUseRunningAction()&&this.isActive?this.restartWhenRunning():AgentLauncher.prototype.onClickStart.call(this,t,i)},willUseRunningAction:function(){return"0"!=this.getBaseConfig().runningaction},restartWhenRunning:function(){var t=this.getBaseConfig().runningaction,i=this.getLaunchConfig();"1"==t?(this.send({K:"AppCommunicate",V:{Data:{K:"AppExit",V:{}}}}),this.showMsg("waiting",n("restarting")),this.waitingForCloseToRestart=!0):"2"==t&&(this.send({K:"AppCommunicate",V:{Data:{K:"AppRestartRecord",V:i}}}),this.showMsg("waiting",n("record_restarting")))},waitingForCloseToRestart:!1,handleAppLaunched:function(t){"Running"===t.Error&&this.willUseRunningAction()?this.restartWhenRunning():AgentLauncher.prototype.handleAppLaunched.call(this,t),this.willUseRunningAction()&&this.setInactive()},onAppClosedByUser:function(){this.waitingForCloseToRestart?(this.waitingForCloseToRestart=!1,this.launchApp()):AgentLauncher.prototype.onAppClosedByUser.call(this)},callback:function(t,i){"ResponseAppRestartRecord"===t&&(this.showMsg("ok",n("recording_restarted")),this.hideMsg(3e3))}})}(jQuery);jQuery.noConflict();jQuery=$=$||jQuery;