You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
taicangZongzhi/public/static/videoMonitorPlayer/jsWebControl-1.0.0.min.js

36 lines
247 KiB

1 year ago
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.WebControl=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(82),n(81),n(83);var s=n(144),a=r(s),u=n(159),c=n(29),l=function(){var e="                                    ",t=300,n=function(){function n(e){i(this,n);var t=this,r={szPluginContainer:"",cbConnectSuccess:null,cbConnectError:null,cbConnectClose:null,iServicePortStart:15960,iServicePortEnd:15969,szClassId:"23BF3B0A-2C56-4D97-9C03-0CB103AA8F11"};this.oOptions=Object.assign(r,e),this.bFreeze=!1,this.bFocus=!0,this.bEmbed=c.oUtils.getCreateWndMode(),this.szWndId="",this.iCreateWndTimer=-1,this.iUpdateParentWndTimer=-1,this.bDevTool=!1,this.iVCTimeStart=-1,this.iVCTimeEnd=-1,this.oWndCover={left:0,top:0,right:0,bottom:0},this.oDocOffset={left:0,top:0},this.szTitle="",this.oWindowAttr={outerWidth:0,innerWidth:0,outerHeight:0,innerHeight:0,screenTop:0,screenLeft:0,screenX:0,screenY:0},this.iFixedResizeTimer=-1,this.fVisibilityChange=function(){if(c.oUtils.isMacOS())document.hidden?t.fHideWnd():t.fShowWnd();else if(document.hidden)t.iVCTimeStart=(new Date).getTime(),t.fHideWnd();else{t.iVCTimeEnd=(new Date).getTime();var e=c.oUtils.browser();e.chrome||e.mozilla?(t.iUpdateParentWndTimer>0&&(clearTimeout(t.iUpdateParentWndTimer),t.iUpdateParentWndTimer=-1),t.iVCTimeEnd-t.iVCTimeStart<100?t.iUpdateParentWndTimer=setTimeout(function(){t.oRequest.updateParentWnd().then(function(){t.bFreeze||t.bDevTool||t.fShowWnd()},function(){})},100):t.bFreeze||t.bDevTool||t.fShowWnd()):t.bFreeze||t.bDevTool||t.fShowWnd()}},this.fHideWnd=function(){t.oRequest.hideWnd().then(function(){},function(){})},this.fShowWnd=function(){t.oRequest.showWnd().then(function(){},function(){})},this.fFocus=function(){t.bFocus=!0,setTimeout(function(){t.removeGrabImage(),document.hidden||t.bFreeze||t.bDevTool||t.fShowWnd()},200)},this.fBlur=function(){t.bFocus=!1},this.removeGrabImage=function(){if(!c.oUtils.isMacOS()){var e=null;if(""!==t.szWndId&&(e=(0,a.default)("#"+t.szWndId),null!==e&&e.length>0)){var n=null;n=(0,a.default)('[data-name="wc-grab-open-image"]',e),null!==n&&n.length>0&&n.remove()}}},this.oRequest=new u.Request({szPluginContainer:this.oOptions.szPluginContainer,cbConnectSuccess:this.oOptions.cbConnectSuccess,cbConnectError:this.oOptions.cbConnectError,cbConnectClose:function(e){t.iCreateWndTimer>0&&(clearTimeout(t.iCreateWndTimer),t.iCreateWndTimer=-1),t.removeGrabImage(),t.oOptions.cbConnectClose&&t.oOptions.cbConnectClose(e)},iServicePortStart:this.oOptions.iServicePortStart,iServicePortEnd:this.oOptions.iServicePortEnd,szClassId:this.oOptions.szClassId})}return o(n,[{key:"JS_SetWindowControlCallback",value:function(n){var r=this,i={cbSelectWnd:function(e){n.cbSelectWnd&&n.cbSelectWnd(parseInt(e.wndIndex,10),e.cameraID,e.siteID,e.opendFisheye)},cbTogglePTZ:function(e){n.cbTogglePTZ&&n.cbTogglePTZ(e.cameraID,e.siteID)},cbUpdateCameraIcon:function(e){n.cbUpdateCameraIcon&&n.cbUpdateCameraIcon(e.cameraID,parseInt(e.playing,10),e.siteID)},cbGetLastError:function(e){n.cbGetLastError&&n.cbGetLastError(e.error,parseInt(e.type,10))},cbTalkUrlEmpty:function(e){n.cbTalkUrlEmpty&&n.cbTalkUrlEmpty(e.cameraID)},cbGotoPlayback:function(e){n.cbGotoPlayback&&n.cbGotoP
}},function(e,t){"use strict";var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(21),i=n(2)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){"use strict";e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";var r=n(3),i=n(4).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(4).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(9),i=n(59),o=n(39),s=n(45)("IE_PROTO"),a=function(){},u="prototype",c=function(){var e,t=n(38)("iframe"),r=o.length,i="<",s=">";for(t.style.display="none",n(40).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+s+"document.F=Object"+i+"/script"+s),e.close(),c=e.F;r--;)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=r(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){"use strict";var r=n(32),i=n(27),o=n(13),s=n(47),a=n(15),u=n(53),c=Object.getOwnPropertyDescriptor;t.f=n(11)?c:function(e,t){if(e=o(e),t=s(t,!0),u)try{return c(e,t)}catch(e){}if(a(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(46)("keys"),i=n(28);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){"use strict";var r=n(4),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";var r=n(155),i=n(156),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){"use strict";var r=n(13),i=n(14),o=n(34);e.exports=function(e){return function(t,n,s){var a,u=r(t),c=i(u.length),l=o(s,c);if(e&&n!=n){for(;c>l;)if(a=u[l++],a!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(20),i=n(8),o=n(25),s=n(14);e.exports=function(e,t,n,a,u){r(t);var c=i(e),l=o(c),f=s(c.length),d=u?f-1:0,h=u?-1:1;if(n<2)for(;;){if(d in l){a=l[d],d+=h;break}if(d+=h,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=h)d in l&&(a=t(a,l[d],d,c));return a}},function(e,t,n){"use strict";var r=n(12),i=n(27);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){"use strict";e.exports=!n(11)&&!n(6)(function(){return 7!=Object.defineProperty(n(38)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(26),i=n(2)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(30),i=n(1),o=n(23),s=n(19),a=n(15),u=n(26),c=n(92),l=n(33),f=n(62),d=n(2)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",g="values",y=function(){return this};e.exports=functio
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function i(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=s.prototype):(null===e&&(e=new s(t)),e.length=t),e}function s(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return a(this,e,t,n)}function a(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,n,r):"string"==typeof t?f(e,t,n):p(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return u(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function l(e,t){if(u(t),e=o(e,t<0?0:0|v(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(t,n);e=o(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function d(e,t){var n=t.length<0?0:0|v(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=d(e,t),e}function p(e,t){if(s.isBuffer(t)){var n=0|v(t.length);return e=o(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||$(t.length)?o(e,0):d(e,t);if("Buffer"===t.type&&Q(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),s.alloc(+e)}function y(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return J(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function w(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,i);if("number"==ty
promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=R||O(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},O=function e(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,i=0;r.length>i;)if(n=r[i++],n.fail||!e(n.promise))return!1;return!0},D=function(e){y.call(u,function(){var t;R?S.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},U=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),A(t,!0))},F=function e(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw C("Promise can't be resolved itself");(n=P(t))?m(function(){var i={_w:r,_d:!1};try{n.call(t,c(e,i,1),c(U,i,1))}catch(e){U.call(i,e)}}):(r._v=t,r._s=1,A(r,!1))}catch(e){U.call({_w:r,_d:!1},e)}}};E||(x=function(e){p(this,x,k,"_h"),h(e),r.call(this);try{e(c(F,this,1),c(U,this,1))}catch(e){U.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(98)(x.prototype,{then:function(e,t){var n=T(g(this,x));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&A(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c(U,e,1)},b.f=T=function(e){return e===x||e===s?new o(e):i(e)}),f(f.G+f.W+f.F*!E,{Promise:x}),n(33)(x,k),n(64)(k),s=n(10)[k],f(f.S+f.F*!E,k,{reject:function(e){var t=T(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(a||!E),k,{resolve:function(e){return _(a&&this===s?x:this,e)}}),f(f.S+f.F*!(E&&n(57)(function(e){x.all(e).catch(q)})),k,{all:function(e){var t=this,n=T(t),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,s=1;v(e,!1,function(e){var a=o++,u=!1;n.push(void 0),s++,t.resolve(e).then(function(e){u||(u=!0,n[a]=e,--s||r(n))},i)}),--s||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=T(t),r=n.reject,i=w(function(){v(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t,n){"use strict";var r="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},i=n(4),o=n(15),s=n(11),a=n(1),u=n(23),c=n(31).KEY,l=n(6),f=n(46),d=n(33),h=n(28),p=n(2),v=n(66),g=n(103),y=n(89),m=n(41),b=n(9),w=n(13),_=n(47),k=n(27),C=n(42),S=n(60),x=n(43),R=n(12),q=n(22),T=x.f,E=R.f,P=S.f,A=i.Symbol,I=i.JSON,O=I&&I.stringify,D="prototype",U=p("_hidden"),F=p("toPrimitive"),j={}.propertyIsEnumerable,z=f("symbol-registry"),W=f("symbols"),M=f("op-symbols"),N=Object[D],L="function"==typeof A,B=i.QObject,H=!B||!B[D]||!B[D].findChild,J=s&&l(function(){return 7!=C(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=T(N,t);r&&delete N[t],E(e,t,n),r&&e!==N&&E(N,t,r)}:E,Y=function(e){var t=W[e]=C(A[D]);return t._k=e,t},V=L&&"symbol"==r(A.iterator)?function(e){return"symbol"==("undefined"==typeof e?"undefined":r(e))}:function(e){return e instanceof A},Z=function(e,t,n){return e===N&&Z(M,t,n),b(e),t=_(t,!0),b(n),o(W,t)?(n.enumerable?(o(e,U)&&e[U][t]&&(e[U][t]=!1),n=C(n,{enumerable:k(0,!1)})):(o(e,U)||E(e,U,k(1,{})),e[U][t]=!0),J(e,t,n)):E(e,t,n)},G=function(e,t){b(e);for(var n,r=y(t=w(t)),i=0,o=r.length;o>i;)Z(e,n=r[i++],t[n]);return e},$=function(e,t){return void 0===t?C(e):G(C(e),t)},X=function(e){var t=j.call(this,e=_(e,!0));return!(this===N&&o(W,e)&&!o(M,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,U)&&this[U][e])||t)},K=function(e,t){if(e=w(e),t=_(t,!0),e!==N||!o(W,t)||o(M,t)){var n=T(e,t);return!n||!o(W,t)||o(e,U)&&e[U][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=P(w(e)),r=[],i=0;n.length>i;)o(W,t=n[i++])||t==U||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===N,r=P(n?M:w(e)),i=[],s=0;r.length>s;)!o(W,t=r[s++])||n&&!o(N,t)||i.push(W[t]);return i};L||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function t(n){this===N&&t
* jQuery JavaScript Library v3.2.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2017-03-20T18:59Z
*/
!function(t,r){"object"===n(e)&&"object"===n(e.exports)?e.exports=t.document?r(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return r(e)}:r(t)}("undefined"!=typeof window?window:void 0,function(o,s){function a(e,t){t=t||ae;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function u(e){var t=!!e&&"length"in e&&e.length,n=we.type(e);return"function"!==n&&!we.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function c(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function l(e,t,n){return we.isFunction(t)?we.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?we.grep(e,function(e){return e===t!==n}):"string"!=typeof t?we.grep(e,function(e){return de.call(t,e)>-1!==n}):Pe.test(t)?we.filter(t,e,n):(t=we.filter(t,e),we.grep(e,function(e){return de.call(t,e)>-1!==n&&1===e.nodeType}))}function f(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var t={};return we.each(e.match(Fe)||[],function(e,n){t[n]=!0}),t}function h(e){return e}function p(e){throw e}function v(e,t,n,r){var i;try{e&&we.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&we.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function g(){ae.removeEventListener("DOMContentLoaded",g),o.removeEventListener("load",g),we.ready()}function y(){this.expando=we.expando+y.uid++}function m(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Be.test(e)?JSON.parse(e):e)}function b(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(He,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=m(n)}catch(e){}Le.set(e,t,n)}else n=void 0;return n}function w(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return we.css(e,t,"")},u=a(),c=n&&n[3]||(we.cssNumber[t]?"":"px"),l=(we.cssNumber[t]||"px"!==c&&+u)&&Ye.exec(we.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do o=o||".5",l/=o,we.style(e,t,l+c);while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function _(e){var t,n=e.ownerDocument,r=e.nodeName,i=$e[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=we.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),$e[r]=i,i)}function k(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=Ne.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Ze(r)&&(i[o]=_(r))):"none"!==n&&(i[o]="none",Ne.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}function C(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&c(e,t)?we.merge([e],n):n}function S(e,t){for(var n=0,r=e.length;n<r;n++)Ne.set(e[n],"globalEval",!t||Ne.get(t[n],"globalEval"))}function x(e,t,n,r,i){for(var o,s,a,u,c,l,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if(o=e[h],o||0===o)if("object"===we.type(o))we.merge(d,o.nodeType?[o]:o);else if(tt.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Ke.exec(o)||["",""])[1].toLowerCase(),u=et[a]||et._default,s.innerHTML=u[1]+we.htmlPrefilter(o)+u[2],l=u[0];l--;)s=s.lastChild;we.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(r&&we.inArray(o,r)>-1)i&&i.push(o);else if(c=we.contains(o.ownerDocument,o),s=C(f.appendChild(o),"script"),c&&S(s),n)for(l=0;o=s[l++];)Qe.test(o.type||"")&&n.push(o);return f}function R(){return!0}function q(){return!1}function T(){try{return ae.activeElement}catch(e){}}function E(e,t,r,i,o,s){var a,u;if("object"===("undefined"==typeof t?"undefined":n(t))){"string"!=typeof r&&(i=i||r,r=void 0);for(u in t)E(e,u,r,i,t[u],s);return e}if(null==i&&null==o?(o=r,i=r=void 0):null==o&&("string"==typeof r?(o=i,i=void 0):(o=i,i=r,r=void 0)),o===!1)o=q;else if(!o)return e;return 1===s&&(a=o,o=function(e){return we().off(e),a.apply(t
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(e){function t(e,t,n,r){var i,o,s,a,u,c,l,d=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:N)!==O&&I(t),t=t||O,U)){if(11!==p&&(u=ye.exec(e)))if(i=u[1]){if(9===p){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&W(t,s)&&s.id===i)return n.push(s),n}else{if(u[2])return K.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&k.getElementsByClassName&&t.getElementsByClassName)return K.apply(n,t.getElementsByClassName(i)),n}if(k.qsa&&!Y[e+" "]&&(!F||!F.test(e))){if(1!==p)d=t,l=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(_e,ke):t.setAttribute("id",a=M),c=R(e),o=c.length;o--;)c[o]="#"+a+" "+h(c[o]);l=c.join(","),d=me.test(e)&&f(t.parentNode)||t}if(l)try{return K.apply(n,d.querySelectorAll(l)),n}catch(e){}finally{a===M&&t.removeAttribute("id")}}}return T(e.replace(ae,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[M]=!0,e}function i(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function h(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=B++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,u){var c,l,f,d=[L,a];if(u){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(f=t[M]||(t[M]={}),l=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[o])&&c[0]===L&&c[1]===a)return d[2]=c[2];if(l[o]=d,d[2]=e(t,n,u))return!0}return!1}}function v(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function y(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,c=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),c&&t.push(a)));return s}function m(e,t,n,i,o,s){return i&&!i[M]&&(i=m(i)),o&&!o[M]&&(o=m(o,s)),r(function(r,s,a,u){var c,l,f,d=[],h=[],p=s.length,v=r||g(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?v:y(v,d,e,a,u),b=n?o||(r?e:p||i)?[]:s:m;if(n&&n(m,b,a,u),i)for(c=y(b,h),i(c,[],a,u),l=c.length;l--;)(f=c[l])&&(b[h[l]]=!(m[h[l]]=f));if(r){if(o||e){if(o){for(c=[],l=b.length;l--;)(f=b[l])&&c.push(m[l]=f);o(null,b=[],c,u)}for(l=b.length;l--;)(f=b[l])&&(c=o?ee(r,f):d[l])>-1&&(r[c]=!(s[c]=f))}}else b=y(b===s?b.splice(p,b.length):b),o?o(null,s,b,u):K.apply(s,b)})}function b(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],s=o||C.relative[" "],a=o?1:0,u=p(function(e){return e===t},s,!0),c=p(function(e){return ee(t,e)>-1},s,!0),l=[function(e,n,r){var i=!o&&(r||n!==E)||((t=n).nodeType?u(e,n,r):c(e,n,r));return t=null,i}];a<i;a++)if(n=C.relative[e[a].type])l=[p(v(l),n)];else{if(n=C.filter[e[a].type].apply(null,e[a].matches),n[M]){for(r=++a;r<i&&!C.relative[e[r].type];r++);return m(a>1&&v(l),a>1&&h(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(a
};et.optgroup=et.option,et.tbody=et.tfoot=et.colgroup=et.caption=et.thead,et.th=et.td;var tt=/<|&#?\w+;/;!function(){var e=ae.createDocumentFragment(),t=e.appendChild(ae.createElement("div")),n=ae.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),me.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",me.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var nt=ae.documentElement,rt=/^key/,it=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;we.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,h,p,v,g=Ne.get(e);if(g)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&we.find.matchesSelector(nt,i),n.guid||(n.guid=we.guid++),(u=g.events)||(u=g.events={}),(s=g.handle)||(s=g.handle=function(t){return"undefined"!=typeof we&&we.event.triggered!==t.type?we.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Fe)||[""],c=t.length;c--;)a=ot.exec(t[c])||[],h=v=a[1],p=(a[2]||"").split(".").sort(),h&&(f=we.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=we.event.special[h]||{},l=we.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&we.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=u[h])||(d=u[h]=[],d.delegateCount=0,f.setup&&f.setup.call(e,r,p,s)!==!1||e.addEventListener&&e.addEventListener(h,s)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,l):d.push(l),we.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,c,l,f,d,h,p,v,g=Ne.hasData(e)&&Ne.get(e);if(g&&(u=g.events)){for(t=(t||"").match(Fe)||[""],c=t.length;c--;)if(a=ot.exec(t[c])||[],h=v=a[1],p=(a[2]||"").split(".").sort(),h){for(f=we.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=u[h]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)l=d[o],!i&&v!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(d.splice(o,1),l.selector&&d.delegateCount--,f.remove&&f.remove.call(e,l));s&&!d.length&&(f.teardown&&f.teardown.call(e,p,g.handle)!==!1||we.removeEvent(e,h,g.handle),delete u[h])}else for(h in u)we.event.remove(e,h+t[c],n,r,!0);we.isEmptyObject(u)&&Ne.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=we.event.fix(e),u=new Array(arguments.length),c=(Ne.get(this,"events")||{})[a.type]||[],l=we.event.special[a.type]||{};for(u[0]=a,t=1;t<arguments.length;t++)u[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,a)!==!1){for(s=we.event.handlers.call(this,a,c),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,r=((we.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u),void 0!==r&&(a.result=r)===!1&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,r,i,o,s,a=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(o=[],s={},n=0;n<u;n++)r=t[n],i=r.selector+" ",void 0===s[i]&&(s[i]=r.needsContext?we(i,this).index(c)>-1:we.find(i,this,null,[c]).length),s[i]&&o.push(r);o.length&&a.push({elem:c,handlers:o})}return c=this,u<t.length&&a.push({elem:c,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(we.Event.prototype,e,{enumerable:!0,configurable:!0,get:we.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[we.expando]?e:new we.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==T()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:fun
we(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){we(this).replaceWith(this.childNodes)}),this}}),we.expr.pseudos.hidden=function(e){return!we.expr.pseudos.visible(e)},we.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},we.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Gt=we.ajaxSettings.xhr();me.cors=!!Gt&&"withCredentials"in Gt,me.ajax=Gt=!!Gt,we.ajaxTransport(function(e){var t,n;if(me.cors||Gt&&!e.crossDomain)return{send:function(r,i){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(Zt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&o.setTimeout(function(){t&&n()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),we.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),we.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 we.globalEval(e),e}}}),we.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),we.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=we("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ae.head.appendChild(t[0])},abort:function(){n&&n()}}}});var $t=[],Xt=/(=)\?(?=&|$)|\?\?/;we.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||we.expando+"_"+At++;return this[e]=!0,e}}),we.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,s,a=e.jsonp!==!1&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=we.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xt,"$1"+r):e.jsonp!==!1&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||we.error(r+" was not called"),s[0]},e.dataTypes[0]="json",i=o[r],o[r]=function(){s=arguments},n.always(function(){void 0===i?we(o).removeProp(r):o[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,$t.push(r)),s&&we.isFunction(i)&&i(s[0]),s=i=void 0}),"script"}),me.createHTMLDocument=function(){var e=ae.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),we.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(me.createHTMLDocument?(t=ae.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ae.location.href,t.head.appendChild(r)):t=ae),i=Ee.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=x([e],t,o),o&&o.length&&we(o).remove(),we.merge([],i.childNodes))},we.fn.load=function(e,t,r){var i,o,s,a=this,u=e.indexOf(" ");return u>-1&&(i=K(e.slice(u)),e=e.slice(0,u)),we.isFunction(t)?(r=t,t=void 0):t&&"object"===("undefined"==typeof t?"undefined":n(t))&&(o="POST"),a.length>0&&we.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){s=arguments,a.html(i?we("<div>").append(we.parseHTML(e)).find(i):e)}).always(r&&function(e,t){a.each(function(){r.apply(this,s||[e.responseText,t,e])})}),this},w
C-=k;do T[a++]=p[x++];while(--k);x=a-S,R=T}for(;C>2;)T[a++]=R[x++],T[a++]=R[x++],T[a++]=R[x++],C-=3;C&&(T[a++]=R[x++],C>1&&(T[a++]=R[x++]))}else{x=a-S;do T[a++]=T[x++],T[a++]=T[x++],T[a++]=T[x++],C-=3;while(C>2);C&&(T[a++]=T[x++],C>1&&(T[a++]=T[x++]))}break}}break}}while(o<s&&a<c);C=g>>3,o-=C,g-=C<<3,v&=(1<<g)-1,e.next_in=o,e.next_out=a,e.avail_in=o<s?5+(s-o):5-(o-s),e.avail_out=a<c?257+(c-a):257-(a-c),i.hold=v,i.bits=g}},function(e,t,n){"use strict";function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new m.Buf16(320),this.work=new m.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=j,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new m.Buf32(ve),t.distcode=t.distdyn=new m.Buf32(ge),t.sane=1,t.back=-1,E):I}function s(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,o(e)):I}function a(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15)?I:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,s(e))):I}function u(e,t){var n,r;return e?(r=new i,e.state=r,r.window=null,n=a(e,t),n!==E&&(e.state=null),n):I}function c(e){return u(e,me)}function l(e){if(be){var t;for(g=new m.Buf32(512),y=new m.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(k(S,e.lens,0,288,g,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;k(x,e.lens,0,32,y,0,e.work,{bits:5}),be=!1}e.lencode=g,e.lenbits=9,e.distcode=y,e.distbits=5}function f(e,t,n,r){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new m.Buf8(o.wsize)),r>=o.wsize?(m.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),m.arraySet(o.window,t,n-r,i,o.wnext),r-=i,r?(m.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function d(e,t){var n,i,o,s,a,u,c,d,h,p,v,g,y,ve,ge,ye,me,be,we,_e,ke,Ce,Se,xe,Re=0,qe=new m.Buf8(4),Te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return I;n=e.state,n.mode===Z&&(n.mode=G),a=e.next_out,o=e.output,c=e.avail_out,s=e.next_in,i=e.input,u=e.avail_in,d=n.hold,h=n.bits,p=u,v=c,Ce=E;e:for(;;)switch(n.mode){case j:if(0===n.wrap){n.mode=G;break}for(;h<16;){if(0===u)break e;u--,d+=i[s++]<<h,h+=8}if(2&n.wrap&&35615===d){n.check=0,qe[0]=255&d,qe[1]=d>>>8&255,n.check=w(n.check,qe,2,0),d=0,h=0,n.mode=z;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=de;break}if((15&d)!==F){e.msg="unknown compression method",n.mode=de;break}if(d>>>=4,h-=4,ke=(15&d)+8,0===n.wbits)n.wbits=ke;else if(ke>n.wbits){e.msg="invalid window size",n.mode=de;break}n.dmax=1<<ke,e.adler=n.check=1,n.mode=512&d?Y:Z,d=0,h=0;break;case z:for(;h<16;){if(0===u)break e;u--,d+=i[s++]<<h,h+=8}if(n.flags=d,(255&n.flags)!==F){e.msg="unknown compression method",n.mode=de;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=de;break}n.head&&(n.head.text=d>>8&1),512&n.flags&&(qe[0]=255&d,qe[1]=d>>>8&255,n.check=w(n.check,qe,2,0)),d=0,h=0,n.mode=W;case W:for(;h<32;){if(0===u)break e;u--,d+=i[s++]<<h,h+=8}n.head&&(n.head.time=d),512&n.flags&&(qe[0]=255&d,qe[1]=d>>>8&255,qe[2]=d>>>16&255,qe[3]=d>>>24&255,n.check=w(n.check,qe,4,0)),d=0,h=0,n.mode=M;case M:for(;h<16;){if(0===u)break e;u--,d+=i[s++]<<h,h+=8}n.head&&(n.head.xflags=255&d,n.head.os=d>>8),512&n.flags&&(qe[0]=255&d,
cmd:"system.openFile",path:e,relative:t,version:n})}},{key:"selectDirectory",value:function(e,t){var n=this,r=new Promise(function(r,i){null!==n.oRequest?n.oRequest.sendRequest({cmd:"system.selectDirectory",caption:"undefined"!=typeof e&&""!==e?u.oUtils.Base64().encode(e):"",dir:"undefined"!=typeof t&&""!==t?u.oUtils.Base64().encode(t):""}).then(function(e){""!==e.path&&(e.path=u.oUtils.Base64().decode(e.path)),r(e)},function(e){i(e)}):i()});return r}},{key:"selectFile",value:function(e,t,n){var r=this,i=new Promise(function(i,o){null!==r.oRequest?r.oRequest.sendRequest({cmd:"system.selectFile",caption:""!==e?u.oUtils.Base64().encode(e):"",dir:""!==t?u.oUtils.Base64().encode(t):"",filter:n}).then(function(e){""!==e.path&&(e.path=u.oUtils.Base64().decode(e.path)),i(e)},function(e){o(e)}):o()});return i}},{key:"getLocalConfig",value:function(e){return this.oRequest.sendRequest({cmd:"system.getLocalConfig",default:e})}},{key:"setLocalConfig",value:function(e){return e.cmd="system.setLocalConfig",this.oRequest.sendRequest(e)}},{key:"createWnd",value:function(e,t,n,r,i,o,s){return this.oRequest.sendRequest({cmd:"window.createWnd",rect:{left:e,top:t,width:n,height:r},className:i,embed:o,activeXParentWnd:s})}},{key:"showWnd",value:function(){return this.oRequest.sendRequest({cmd:"window.showWnd"})}},{key:"hideWnd",value:function(){return this.oRequest.sendRequest({cmd:"window.hideWnd"})}},{key:"destroyWnd",value:function(){var e=this,t=new Promise(function(t,n){null!==e.oRequest?e.oRequest.sendRequest({cmd:"window.destroyWnd"}).then(function(e){t(e)},function(e){n(e)}):n()});return t}},{key:"setWndGeometry",value:function(e,t,n,r){return this.oRequest.sendRequest({cmd:"window.setWndGeometry",rect:{left:e,top:t,width:n,height:r}})}},{key:"setWndCover",value:function(e,t){var n=this,r=new Promise(function(r,i){null!==n.oRequest?n.oRequest.sendRequest({cmd:"window.setWndCover",position:e,size:t}).then(function(e){r(e)},function(e){i(e)}):i()});return r}},{key:"cuttingPartWindow",value:function(e,t,n,r,i){var o=this,s=new Promise(function(s,a){null!==o.oRequest?o.oRequest.sendRequest({cmd:"window.cuttingPartWindow",rect:{left:e,top:t,width:n,height:r},round:i}).then(function(e){s(e)},function(e){a(e)}):a()});return s}},{key:"repairPartWindow",value:function(e,t,n,r,i){var o=this,s=new Promise(function(s,a){null!==o.oRequest?o.oRequest.sendRequest({cmd:"window.repairPartWindow",rect:{left:e,top:t,width:n,height:r},round:i}).then(function(e){s(e)},function(e){a(e)}):a()});return s}},{key:"setWndZOrder",value:function(e){return this.oRequest.sendRequest({cmd:"window.setWndZOrder",flag:e})}},{key:"changePlayMode",value:function(e){return this.oRequest.sendRequest({cmd:"window.changePlayMode",type:e})}},{key:"setLanguageType",value:function(e){return this.oRequest.sendRequest({cmd:"window.setLanguageType",type:e})}},{key:"initLoginInfo",value:function(e){return this.oRequest.sendRequest({cmd:"window.initLoginInfo",vsmAddress:e.vsmAddress,vsmPort:e.vsmPort,sessionID:e.sessionID,loginModel:e.loginModel,userType:e.userType,networkType:e.networkType})}},{key:"setTranslateFile",value:function(e){return this.oRequest.sendRequest({cmd:"window.setTranslateFile",url:e})}},{key:"switchToSimple",value:function(e){return this.oRequest.sendRequest({cmd:"window.switchToSimple",simple:e})}},{key:"setVsmToken",value:function(e){return this.oRequest.sendRequest({cmd:"play.setVsmToken",token:e})}},{key:"startPlay",value:function(e,t,n,r,i,o,s,a,c){var l={cmd:"play.startPlay",url:e,username:t,password:n,siteID:r,areaName:u.oUtils.Base64().encode(i),cameraName:u.oUtils.Base64().encode(o),permission:s,wndIndex:a};return"undefined"!=typeof c&&(l.options=c,"undefined"!=typeof l.options.siteName&&(l.options.siteName=u.oUtils.Base64().encode(l.options.siteName))),this.oRequest.sendRequest(l)}},{key:"setPreview3DPosition",value:function(e){return this.oRequest.sendRequest({cmd:"play.setPreview3DPosition",open:e})}},{key:"stopTotal",value:function(){var e=this,t=new Promise(function(t,n){null!==e.oRequest?e.oRequest.sendRequest({cmd:"play.stopTotal"}).then(funct