webpackJsonp([1],{"+3/4":function(e,n,t){"use strict";t.d(n,"a",function(){return i});var l=t("TToO"),i=function(e){function n(n){e.call(this),this.scheduler=n}return Object(l.c)(n,e),n.create=function(e){return new n(e)},n.dispatch=function(e){e.subscriber.complete()},n.prototype._subscribe=function(e){var t=this.scheduler;if(t)return t.schedule(n.dispatch,0,{subscriber:e});e.complete()},n}(t("YaPU").a)},"+CnV":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(e){var n,l=t("AMGY").a.Symbol;return"function"==typeof l?l.observable?n=l.observable:(n=l("observable"),l.observable=n):n="@@observable",n}()},"+qKa":function(e,n,t){var l,i,o,r;r=function(e,n){function t(e,n){var t=(e.mask||e).replace(/#/g,"9").replace(/\)/,"9").replace(/[+()#-]/g,""),l=(n.mask||n).replace(/#/g,"9").replace(/\)/,"9").replace(/[+()#-]/g,""),i=(e.mask||e).split("#")[0],o=(n.mask||n).split("#")[0];return 0===o.indexOf(i)?-1:0===i.indexOf(o)?1:t.localeCompare(l)}var l=n.prototype.analyseMask;return n.prototype.analyseMask=function(n,t,i){var o={};return i.phoneCodes&&(i.phoneCodes&&i.phoneCodes.length>1e3&&(function e(t,l,i){l=l||"",i=i||o,""!==l&&(i[l]={});for(var r="",a=i[l]||i,u=t.length-1;u>=0;u--)a[r=(n=t[u].mask||t[u]).substr(0,1)]=a[r]||[],a[r].unshift(n.substr(1)),t.splice(u,1);for(var s in a)a[s].length>500&&e(a[s].slice(),s,a)}((n=n.substr(1,n.length-2)).split(i.groupmarker.end+i.alternatormarker+i.groupmarker.start)),n=function n(t){var l=[];for(var o in t)e.isArray(t[o])?l.push(1===t[o].length?o+t[o]:o+i.groupmarker.start+t[o].join(i.groupmarker.end+i.alternatormarker+i.groupmarker.start)+i.groupmarker.end):l.push(o+n(t[o]));return""+(1===l.length?l[0]:i.groupmarker.start+l.join(i.groupmarker.end+i.alternatormarker+i.groupmarker.start)+i.groupmarker.end)}(o)),n=n.replace(/9/g,"\\9")),l.call(this,n,t,i)},n.extendAliases({abstractphone:{groupmarker:{start:"<",end:">"},countrycode:"",phoneCodes:[],mask:function(e){return e.definitions={"#":n.prototype.definitions[9]},e.phoneCodes.sort(t)},keepStatic:!0,onBeforeMask:function(e,n){var t=e.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(t.indexOf(n.countrycode)>1||-1===t.indexOf(n.countrycode))&&(t="+"+n.countrycode+t),t},onUnMask:function(e,n,t){return e.replace(/[()#-]/g,"")},inputmode:"tel"}}),n},i=[t("cxqv"),t("8dOo")],void 0===(o="function"==typeof(l=r)?l.apply(n,i):l)||(e.exports=o)},"/dO2":function(e,n,t){"use strict";function l(e){return(l="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 i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(){return(o=Object.assign||function(e){for(var n=1;n"===n[0]&&(n=n.substring(1)),e)try{if(e.matches)return e.matches(n);if(e.msMatchesSelector)return e.msMatchesSelector(n);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(n)}catch(e){return!1}return!1}}function _(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function y(e,n,t,l){if(e){t=t||document;do{if(null!=n&&(">"===n[0]?e.parentNode===t&&v(e,n):v(e,n))||l&&e===t)return e;if(e===t)break}while(e=_(e))}return null}var b,C=/\s+/g;function w(e,n,t){if(e&&n)if(e.classList)e.classList[t?"add":"remove"](n);else{var l=(" "+e.className+" ").replace(C," ").replace(" "+n+" "," ");e.className=(l+(t?" "+n:"")).replace(C," ")}}function x(e,n,t){var l=e&&e.style;if(l){if(void 0===t)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),void 0===n?t:t[n];n in l||-1!==n.indexOf("webkit")||(n="-webkit-"+n),l[n]=t+("string"==typeof t?"":"px")}}function k(e,n){var t="";if("string"==typeof e)t=e;else do{var l=x(e,"transform");l&&"none"!==l&&(t=l+" "+t)}while(!n&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return i&&new i(t)}function M(e,n,t){if(e){var l=e.getElementsByTagName(n),i=0,o=l.length;if(t)for(;i=o:i<=o))return l;if(l===S())break;l=I(l,!1)}return!1}function E(e,n,t){for(var l=0,i=0,o=e.children;i2&&void 0!==arguments[2]?arguments[2]:{},l=t.evt,i=function(e,n){if(null==e)return{};var t,l,i=function(e,n){if(null==e)return{};var t,l,i={},o=Object.keys(e);for(l=0;l=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(l=0;l=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,["evt"]);B.pluginEvent.bind(je)(e,n,r({dragEl:Y,parentEl:Z,ghostEl:K,rootEl:$,nextEl:X,lastDownEl:J,cloneEl:Q,cloneHidden:ee,dragStarted:pe,putSortable:re,activeSortable:je.active,originalEvent:l,oldIndex:ne,oldDraggableIndex:le,newIndex:te,newDraggableIndex:ie,hideGhostForTarget:Ie,unhideGhostForTarget:Ae,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){G({sortable:n,name:e,originalEvent:l})}},i))};function G(e){z(r({putSortable:re,cloneEl:Q,targetEl:Y,rootEl:$,oldIndex:ne,oldDraggableIndex:le,newIndex:te,newDraggableIndex:ie},e))}var Y,Z,K,$,X,J,Q,ee,ne,te,le,ie,oe,re,ae,ue,se,ce,de,he,pe,fe,ge,me,ve,_e=!1,ye=!1,be=[],Ce=!1,we=!1,xe=[],ke=!1,Me=[],Se="undefined"!=typeof document,Oe=h,Pe=s||u?"cssFloat":"float",Ee=Se&&!p&&!h&&"draggable"in document.createElement("div"),Te=function(){if(Se){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),De=function(e,n){var t=x(e),l=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=E(e,0,n),o=E(e,1,n),r=i&&x(i),a=o&&x(o),u=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+O(i).width,s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+O(o).width;return"flex"===t.display?"column"===t.flexDirection||"column-reverse"===t.flexDirection?"vertical":"horizontal":"grid"===t.display?t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":i&&r.float&&"none"!==r.float?!o||"both"!==a.clear&&a.clear!==("left"===r.float?"left":"right")?"horizontal":"vertical":i&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||u>=l&&"none"===t[Pe]||o&&"none"===t[Pe]&&u+s>l)?"vertical":"horizontal"},Ne=function(e){function n(e,t){return function(l,i,o,r){if(null==e&&(t||l.options.group.name&&i.options.group.name&&l.options.group.name===i.options.group.name))return!0;if(null==e||!1===e)return!1;if(t&&"clone"===e)return e;if("function"==typeof e)return n(e(l,i,o,r),t)(l,i,o,r);var a=(t?l:i).options.group.name;return!0===e||"string"==typeof e&&e===a||e.join&&e.indexOf(a)>-1}}var t={},i=e.group;i&&"object"==l(i)||(i={name:i}),t.name=i.name,t.checkPull=n(i.pull,!0),t.checkPut=n(i.put),t.revertClone=i.revertClone,e.group=t},Ie=function(){!Te&&K&&x(K,"display","none")},Ae=function(){!Te&&K&&x(K,"display","")};Se&&document.addEventListener("click",function(e){if(ye)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ye=!1,!1},!0);var Re=function(e){if(Y){var n=(i=(e=e.touches?e.touches[0]:e).clientX,o=e.clientY,be.some(function(e){if(!T(e)){var n=O(e),t=e[F].options.emptyInsertThreshold;return t&&i>=n.left-t&&i<=n.right+t&&o>=n.top-t&&o<=n.bottom+t?r=e:void 0}}),r);if(n){var t={};for(var l in e)e.hasOwnProperty(l)&&(t[l]=e[l]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[F]._onDragOver(t)}}var i,o,r},Le=function(e){Y&&Y.parentNode[F]._isOutsideThisEl(e.target)};function je(e,n){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=n=o({},n),e[F]=this;var t,l,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return De(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,n){e.setData("Text",n.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==je.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var a in B.initializePlugins(this,e,i),i)!(a in n)&&(n[a]=i[a]);for(var u in Ne(n),this)"_"===u.charAt(0)&&"function"==typeof this[u]&&(this[u]=this[u].bind(this));this.nativeDraggable=!n.forceFallback&&Ee,this.nativeDraggable&&(this.options.touchStartThreshold=1),n.supportPointer?g(e,"pointerdown",this._onTapStart):(g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),be.push(this.el),n.store&&n.store.get&&this.sort(n.store.get(this)||[]),o(this,(l=[],{captureAnimationState:function(){l=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(e){if("none"!==x(e,"display")&&e!==je.ghost){l.push({target:e,rect:O(e)});var n=r({},l[l.length-1].rect);if(e.thisAnimationDuration){var t=k(e,!0);t&&(n.top-=t.f,n.left-=t.e)}e.fromRect=n}})},addAnimationState:function(e){l.push(e)},removeAnimationState:function(e){l.splice(function(e,n){for(var t in e)if(e.hasOwnProperty(t))for(var l in n)if(n.hasOwnProperty(l)&&n[l]===e[t][l])return Number(t);return-1}(l,{target:e}),1)},animateAll:function(e){var n=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof e&&e());var i=!1,o=0;l.forEach(function(e){var t=0,l=e.target,r=l.fromRect,a=O(l),u=l.prevFromRect,s=l.prevToRect,c=e.rect,d=k(l,!0);d&&(a.top-=d.f,a.left-=d.e),l.toRect=a,l.thisAnimationDuration&&A(u,a)&&!A(r,a)&&(c.top-a.top)/(c.left-a.left)==(r.top-a.top)/(r.left-a.left)&&(t=function(e,n,t,l){return Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))/Math.sqrt(Math.pow(n.top-t.top,2)+Math.pow(n.left-t.left,2))*l.animation}(c,u,s,n.options)),A(a,r)||(l.prevFromRect=r,l.prevToRect=a,t||(t=n.options.animation),n.animate(l,c,a,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},t),l.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){"function"==typeof e&&e()},o):"function"==typeof e&&e(),l=[]},animate:function(e,n,t,l){if(l){x(e,"transition",""),x(e,"transform","");var i=k(this.el),o=(n.left-t.left)/(i&&i.a||1),r=(n.top-t.top)/(i&&i.d||1);e.animatingX=!!o,e.animatingY=!!r,x(e,"transform","translate3d("+o+"px,"+r+"px,0)"),x(e,"transition","transform "+l+"ms"+(this.options.easing?" "+this.options.easing:"")),x(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout(function(){x(e,"transition",""),x(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1},l)}}}))}function Ve(e,n,t,l,i,o,r,a){var c,d,h=e[F],p=h.options.onMove;return!window.CustomEvent||u||s?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=n,c.from=e,c.dragged=t,c.draggedRect=l,c.related=i||n,c.relatedRect=o||O(n),c.willInsertAfter=a,c.originalEvent=r,e.dispatchEvent(c),p&&(d=p.call(h,c,r)),d}function qe(e){e.draggable=!1}function Fe(){ke=!1}function He(e){for(var n=e.tagName+e.className+e.src+e.href+e.textContent,t=n.length,l=0;t--;)l+=n.charCodeAt(t);return l.toString(36)}function Ue(e){return setTimeout(e,0)}function Be(e){return clearTimeout(e)}je.prototype={constructor:je,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(fe=null)},_getDirection:function(e,n){return"function"==typeof this.options.direction?this.options.direction.call(this,e,n,Y):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,t=this.el,l=this.options,i=l.preventOnFilter,o=e.type,r=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,a=(r||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,s=l.filter;if(function(e){Me.length=0;for(var n=e.getElementsByTagName("input"),t=n.length;t--;){var l=n[t];l.checked&&Me.push(l)}}(t),!Y&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||l.disabled||u.isContentEditable||(a=y(a,l.draggable,t,!1))&&a.animated||J===a)){if(ne=D(a),le=D(a,l.draggable),"function"==typeof s){if(s.call(this,e,a,this))return G({sortable:n,rootEl:u,name:"filter",targetEl:a,toEl:t,fromEl:t}),W("filter",n,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(s&&(s=s.split(",").some(function(l){if(l=y(u,l.trim(),t,!1))return G({sortable:n,rootEl:l,name:"filter",targetEl:a,fromEl:t,toEl:t}),W("filter",n,{evt:e}),!0})))return void(i&&e.cancelable&&e.preventDefault());l.handle&&!y(u,l.handle,t,!1)||this._prepareDragStart(e,r,a)}}},_prepareDragStart:function(e,n,t){var l,i=this,o=i.el,r=i.options,a=o.ownerDocument;if(t&&!Y&&t.parentNode===o){var d=O(t);if($=o,Z=(Y=t).parentNode,X=Y.nextSibling,J=t,oe=r.group,je.dragged=Y,de=(ae={target:Y,clientX:(n||e).clientX,clientY:(n||e).clientY}).clientX-d.left,he=ae.clientY-d.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,Y.style["will-change"]="all",l=function(){W("delayEnded",i,{evt:e}),je.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!c&&i.nativeDraggable&&(Y.draggable=!0),i._triggerDragStart(e,n),G({sortable:i,name:"choose",originalEvent:e}),w(Y,r.chosenClass,!0))},r.ignore.split(",").forEach(function(e){M(Y,e.trim(),qe)}),g(a,"dragover",Re),g(a,"mousemove",Re),g(a,"touchmove",Re),g(a,"mouseup",i._onDrop),g(a,"touchend",i._onDrop),g(a,"touchcancel",i._onDrop),c&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),W("delayStart",this,{evt:e}),!r.delay||r.delayOnTouchOnly&&!n||this.nativeDraggable&&(s||u))l();else{if(je.eventCanceled)return void this._onDrop();g(a,"mouseup",i._disableDelayedDrag),g(a,"touchend",i._disableDelayedDrag),g(a,"touchcancel",i._disableDelayedDrag),g(a,"mousemove",i._delayedDragTouchMoveHandler),g(a,"touchmove",i._delayedDragTouchMoveHandler),r.supportPointer&&g(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,r.delay)}}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&qe(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._disableDelayedDrag),m(e,"touchend",this._disableDelayedDrag),m(e,"touchcancel",this._disableDelayedDrag),m(e,"mousemove",this._delayedDragTouchMoveHandler),m(e,"touchmove",this._delayedDragTouchMoveHandler),m(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||"touch"==e.pointerType&&e,!this.nativeDraggable||n?g(document,this.options.supportPointer?"pointermove":n?"touchmove":"mousemove",this._onTouchMove):(g(Y,"dragend",this),g($,"dragstart",this._onDragStart));try{document.selection?Ue(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,n){if(_e=!1,$&&Y){W("dragStarted",this,{evt:n}),this.nativeDraggable&&g(document,"dragover",Le);var t=this.options;!e&&w(Y,t.dragClass,!1),w(Y,t.ghostClass,!0),je.active=this,e&&this._appendGhost(),G({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ue){this._lastX=ue.clientX,this._lastY=ue.clientY,Ie();for(var e=document.elementFromPoint(ue.clientX,ue.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ue.clientX,ue.clientY))!==n;)n=e;if(Y.parentNode[F]._isOutsideThisEl(e),n)do{if(n[F]&&n[F]._onDragOver({clientX:ue.clientX,clientY:ue.clientY,target:e,rootEl:n})&&!this.options.dragoverBubble)break;e=n}while(n=n.parentNode);Ae()}},_onTouchMove:function(e){if(ae){var n=this.options,t=n.fallbackTolerance,l=n.fallbackOffset,i=e.touches?e.touches[0]:e,o=K&&k(K),r=K&&o&&o.a,a=K&&o&&o.d,u=Oe&&ve&&N(ve),s=(i.clientX-ae.clientX+l.x)/(r||1)+(u?u[0]-xe[0]:0)/(r||1),c=(i.clientY-ae.clientY+l.y)/(a||1)+(u?u[1]-xe[1]:0)/(a||1);if(!je.active&&!_e){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))l.right+10||e.clientX<=l.right&&e.clientY>l.bottom&&e.clientX>=l.left:e.clientX>l.right&&e.clientY>l.top||e.clientX<=l.right&&e.clientY>l.bottom+10}(e,i,this)&&!m.animated){if(m===Y)return q(!1);if(m&&o===e.target&&(a=m),a&&(t=O(a)),!1!==Ve($,o,Y,n,a,t,e,!!a))return V(),o.appendChild(Y),Z=o,H(),q(!0)}else if(a.parentNode===o){t=O(a);var v,_,b,C=Y.parentNode!==o,k=!function(e,n,t){var l=t?e.left:e.top,i=t?n.left:n.top;return l===i||(t?e.right:e.bottom)===(t?n.right:n.bottom)||l+(t?e.width:e.height)/2===i+(t?n.width:n.height)/2}(Y.animated&&Y.toRect||n,a.animated&&a.toRect||t,i),M=i?"top":"left",S=P(a,"top","top")||P(Y,"top","top"),E=S?S.scrollTop:void 0;if(fe!==a&&(_=t[M],Ce=!1,we=!k&&u.invertSwap||C),0!==(v=function(e,n,t,l,i,o,r,a){var u=l?e.clientY:e.clientX,s=l?t.height:t.width,c=l?t.top:t.left,d=l?t.bottom:t.right,h=!1;if(!r)if(a&&mec+s*o/2:ud-me)return-ge}else if(u>c+s*(1-i)/2&&ud-s*o/2)?u>c+s/2?1:-1:0}(e,a,t,i,k?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,we,fe===a))){var N=D(Y);do{b=Z.children[N-=v]}while(b&&("none"===x(b,"display")||b===K))}if(0===v||b===a)return q(!1);fe=a,ge=v;var I=a.nextElementSibling,A=!1,R=Ve($,o,Y,n,a,t,e,A=1===v);if(!1!==R)return 1!==R&&-1!==R||(A=1===R),ke=!0,setTimeout(Fe,30),V(),A&&!I?o.appendChild(Y):a.parentNode.insertBefore(Y,A?I:a),S&&L(S,0,E-S.scrollTop),Z=Y.parentNode,void 0===_||we||(me=Math.abs(_-O(a)[M])),H(),q(!0)}if(o.contains(Y))return q(!1)}return!1}function j(u,s){W(u,f,r({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:l,dragRect:n,targetRect:t,canSort:h,fromSortable:p,target:a,completed:q,onMove:function(t,l){return Ve($,o,Y,n,t,O(t),e,l)},changed:H},s))}function V(){j("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function q(n){return j("dragOverCompleted",{insertion:n}),n&&(d?c._hideClone():c._showClone(f),f!==p&&(w(Y,re?re.options.ghostClass:c.options.ghostClass,!1),w(Y,u.ghostClass,!0)),re!==f&&f!==je.active?re=f:f===je.active&&re&&(re=null),p===f&&(f._ignoreWhileAnimating=a),f.animateAll(function(){j("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===Y&&!Y.animated||a===o&&!a.animated)&&(fe=null),u.dragoverBubble||e.rootEl||a===document||(Y.parentNode[F]._isOutsideThisEl(e.target),!n&&Re(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function H(){te=D(Y),ie=D(Y,u.draggable),G({sortable:f,name:"change",toEl:o,newIndex:te,newDraggableIndex:ie,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",Re),m(document,"mousemove",Re),m(document,"touchmove",Re)},_offUpEvents:function(){var e=this.el.ownerDocument;m(e,"mouseup",this._onDrop),m(e,"touchend",this._onDrop),m(e,"pointerup",this._onDrop),m(e,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(e){var n=this.el,t=this.options;te=D(Y),ie=D(Y,t.draggable),W("drop",this,{evt:e}),Z=Y&&Y.parentNode,te=D(Y),ie=D(Y,t.draggable),je.eventCanceled?this._nulling():(_e=!1,we=!1,Ce=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Be(this.cloneId),Be(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),d&&x(document.body,"user-select",""),e&&(pe&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),K&&K.parentNode&&K.parentNode.removeChild(K),($===Z||re&&"clone"!==re.lastPutMode)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),Y&&(this.nativeDraggable&&m(Y,"dragend",this),qe(Y),Y.style["will-change"]="",pe&&!_e&&w(Y,re?re.options.ghostClass:this.options.ghostClass,!1),w(Y,this.options.chosenClass,!1),G({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:e}),$!==Z?(te>=0&&(G({rootEl:Z,name:"add",toEl:Z,fromEl:$,originalEvent:e}),G({sortable:this,name:"remove",toEl:Z,originalEvent:e}),G({rootEl:Z,name:"sort",toEl:Z,fromEl:$,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),re&&re.save()):te!==ne&&te>=0&&(G({sortable:this,name:"update",toEl:Z,originalEvent:e}),G({sortable:this,name:"sort",toEl:Z,originalEvent:e})),je.active&&(null!=te&&-1!==te||(te=ne,ie=le),G({sortable:this,name:"end",toEl:Z,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){W("nulling",this),$=Y=Z=K=X=Q=J=ee=ae=ue=pe=te=ie=ne=le=fe=ge=re=oe=je.dragged=je.ghost=je.clone=je.active=null,Me.forEach(function(e){e.checked=!0}),Me.length=se=ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Y&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,n=[],t=this.el.children,l=0,i=t.length,o=this.options;l1&&(hn.forEach(function(e){l.addAnimationState({target:e,rect:gn?O(e):i}),q(e),e.fromRect=i,n.removeAnimationState(e)}),gn=!1,function(e,n){hn.forEach(function(t,l){var i=n.children[t.sortableIndex+(e?Number(l):0)];i?n.insertBefore(t,i):n.appendChild(t)})}(!this.options.removeCloneOnHide,t))},dragOverCompleted:function(e){var n=e.sortable,t=e.isOwner,l=e.activeSortable,i=e.parentEl,o=e.putSortable,r=this.options;if(e.insertion){if(t&&l._hideClone(),fn=!1,r.animation&&hn.length>1&&(gn||!t&&!l.options.sort&&!o)){var a=O(sn,!1,!0,!0);hn.forEach(function(e){e!==sn&&(V(e,a),i.appendChild(e))}),gn=!0}if(!t)if(gn||yn(),hn.length>1){var u=dn;l._showClone(n),l.options.animation&&!dn&&u&&pn.forEach(function(e){l.addAnimationState({target:e,rect:cn}),e.fromRect=cn,e.thisAnimationDuration=null})}else l._showClone(n)}},dragOverAnimationCapture:function(e){var n=e.dragRect,t=e.isOwner,l=e.activeSortable;if(hn.forEach(function(e){e.thisAnimationDuration=null}),l.options.animation&&!t&&l.multiDrag.isMultiDrag){cn=o({},n);var i=k(sn,!0);cn.top-=i.f,cn.left-=i.e}},dragOverAnimationComplete:function(){gn&&(gn=!1,yn())},drop:function(e){var n=e.originalEvent,t=e.rootEl,l=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,r=e.oldIndex,a=e.putSortable,u=a||this.sortable;if(n){var s=this.options,c=l.children;if(!mn)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),w(sn,s.selectedClass,!~hn.indexOf(sn)),~hn.indexOf(sn))hn.splice(hn.indexOf(sn),1),an=null,z({sortable:i,rootEl:t,name:"deselect",targetEl:sn,originalEvt:n});else{if(hn.push(sn),z({sortable:i,rootEl:t,name:"select",targetEl:sn,originalEvt:n}),n.shiftKey&&an&&i.el.contains(an)){var d,h,p=D(an),f=D(sn);if(~p&&~f&&p!==f)for(f>p?(h=p,d=f):(h=f,d=p+1);h1){var g=O(sn),m=D(sn,":not(."+this.options.selectedClass+")");if(!fn&&s.animation&&(sn.thisAnimationDuration=null),u.captureAnimationState(),!fn&&(s.animation&&(sn.fromRect=g,hn.forEach(function(e){if(e.thisAnimationDuration=null,e!==sn){var n=gn?O(e):g;e.fromRect=n,u.addAnimationState({target:e,rect:n})}})),yn(),hn.forEach(function(e){c[m]?l.insertBefore(e,c[m]):l.appendChild(e),m++}),r===D(sn))){var v=!1;hn.forEach(function(e){e.sortableIndex===D(e)||(v=!0)}),v&&o("update")}hn.forEach(function(e){q(e)}),u.animateAll()}un=u}(t===l||a&&"clone"!==a.lastPutMode)&&pn.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=mn=!1,pn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),m(document,"pointerup",this._deselectMultiDrag),m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!mn&&un===this.sortable&&!(e&&y(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;hn.length;){var n=hn[0];w(n,this.options.selectedClass,!1),hn.shift(),z({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var n=e.parentNode[F];n&&n.options.multiDrag&&!~hn.indexOf(e)&&(un&&un!==n&&(un.multiDrag._deselectMultiDrag(),un=n),w(e,n.options.selectedClass,!0),hn.push(e))},deselect:function(e){var n=e.parentNode[F],t=hn.indexOf(e);n&&n.options.multiDrag&&~t&&(w(e,n.options.selectedClass,!1),hn.splice(t,1))}},eventProperties:function(){var e,n=this,t=[],l=[];return hn.forEach(function(e){var i;t.push({multiDragElement:e,index:e.sortableIndex}),i=gn&&e!==sn?-1:gn?D(e,":not(."+n.options.selectedClass+")"):D(e),l.push({multiDragElement:e,index:i})}),{items:(e=hn,function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function _n(e,n){pn.forEach(function(t,l){var i=n.children[t.sortableIndex+(e?Number(l):0)];i?n.insertBefore(t,i):n.appendChild(t)})}function yn(){hn.forEach(function(e){e!==sn&&e.parentNode&&e.parentNode.removeChild(e)})}je.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var n=e.originalEvent;this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):g(document,this.options.supportPointer?"pointermove":n.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var n=e.originalEvent;this.options.dragOverBubble||n.rootEl||this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):(m(document,"pointermove",this._handleFallbackAutoScroll),m(document,"touchmove",this._handleFallbackAutoScroll),m(document,"mousemove",this._handleFallbackAutoScroll)),Qe(),Je(),clearTimeout(b),b=void 0},nulling:function(){Ze=We=ze=Xe=Ke=Ge=Ye=null,$e.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,n){var t=this,l=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(l,i);if(Ze=e,n||s||u||d){nn(e,this.options,o,n);var r=I(o,!0);!Xe||Ke&&l===Ge&&i===Ye||(Ke&&Qe(),Ke=setInterval(function(){var o=I(document.elementFromPoint(l,i),!0);o!==r&&(r=o,Je()),nn(e,t.options,o,n)},10),Ge=l,Ye=i)}else{if(!this.options.bubbleScroll||I(o,!0)===S())return void Je();nn(e,this.options,I(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}),je.mount(on,ln),n.default=je},"/iUD":function(e,n,t){"use strict";n.a=function(e){return"function"==typeof e}},"/nXB":function(e,n,t){"use strict";n.a=function(){for(var e=[],n=0;n1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof u&&(t=e.pop()),null===a&&1===e.length&&e[0]instanceof l.a?e[0]:Object(r.a)(t)(new i.a(e,a))};var l=t("YaPU"),i=t("Veqx"),o=t("1Q68"),r=t("8D5t")},0:function(e,n,t){e.exports=t("x35b")},"15Jg":function(e,n,t){var l;"undefined"!=typeof self&&self,l=function(e,n,t,l,i){return function(e){var n={};function t(l){if(n[l])return n[l].exports;var i=n[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(e,n,l){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:l})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=23)}([function(e,n,t){"use strict";function l(e){return"string"==typeof e?(e||"").replace(/(['])/g,"\\$1"):e}function i(e,n){n=n||window.$;var t={className:"iradio_square-blue",checkboxClass:"iradio_square-blue",radioClass:"iradio_square-blue",name:"icheck",widgetIsLoaded:function(){return"function"==typeof n&&!!n.fn.iCheck},isFit:function(e){var n=e.getType();return"radiogroup"===n||"checkbox"===n||"matrix"===n},isDefaultRender:!0,afterRender:function(e,t){var i=n(t);i.find(".sv-item__decorator").hide(),i.find("input").data({iCheck:void 0}),i.find("input").iCheck({checkboxClass:e.checkboxClass||this.checkboxClass||this.className,radioClass:e.radioClass||this.radioClass||this.className});var o=function(){if("matrix"!==e.getType()){var o=e.value;Array.isArray(o)||(o=[o]),o.forEach(function(e){i.find("input[value='"+l(e)+"']").iCheck("check")})}else e.generatedVisibleRows.forEach(function(e,i,o){e.value&&n(t).find("input[name='"+e.fullName+"'][value='"+l(e.value)+"']").iCheck("check")})};i.find("input").on("ifChecked",function(n){if("matrix"===e.getType())e.generatedVisibleRows.forEach(function(e,t,l){e.fullName===n.target.name&&(e.value=n.target.value)});else if("checkbox"===e.getType()){var t=e.value||[];-1===t.indexOf(n.target.value)&&(e.value=t.concat([n.target.value]))}else e.value=n.target.value}),i.find("input").on("ifUnchecked",function(n){if("checkbox"===e.getType()){var t=(e.value||[]).slice(),l=t.indexOf(n.target.value);l>=0&&(t.splice(l,1),e.value=t)}}),e.valueChangedCallback=o,o()},willUnmount:function(e,t){n(t).find("input").iCheck("destroy")}};e.JsonObject.metaData.addProperty("radiogroup","radioClass"),e.JsonObject.metaData.addProperty("checkbox","checkboxClass"),e.CustomWidgetCollection.Instance.addCustomWidget(t,"type")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&i(Survey,window.$),n.default=i},function(e,n,t){"use strict";function l(e,n){n=n||window.$;var t={activatedBy:"property",name:"select2",htmlTemplate:"",widgetIsLoaded:function(){return"function"==typeof n&&!!n.fn.select2},isFit:function(e){return"property"==t.activatedBy?"select2"===e.renderAs&&"dropdown"===e.getType():"type"==t.activatedBy?"dropdown"==typeof e.getType():"customtype"==t.activatedBy&&"select2"===e.getType()},activatedByChanged:function(n){this.widgetIsLoaded()&&(t.activatedBy=n,e.JsonObject.metaData.removeProperty("dropdown","renderAs"),"property"==n&&(e.JsonObject.metaData.addProperty("dropdown",{name:"renderAs",default:"standart",choices:["select2","standart"]}),e.JsonObject.metaData.addProperty("dropdown",{dependsOn:"renderAs",name:"select2Config",visibleIf:function(e){return"select2"==e.renderAs}})),"customtype"==n&&(e.JsonObject.metaData.addClass("select2",[],null,"dropdown"),e.JsonObject.metaData.addProperty("select2",{name:"select2Config",default:null})))},afterRender:function(e,t){var l=e.select2Config,i=l&&"string"==typeof l?JSON.parse(l):l,o=n(t).is("select")?n(t):n(t).find("select"),r=document.createElement("input");r.type="text",r.style.marginTop="3px",r.style.display="none",r.style.width="100%",o.parent().get(0).appendChild(r);var a=function(){if(o.find("option[value='"+e.value+"']").length)o.val(e.value).trigger("change");else{var n=new Option(e.value,e.value,!0,!0);o.append(n).trigger("change")}r.style.display=e.isOtherSelected?"":"none"},u=function(){r.value=e.comment?e.comment:""},s=function(){o.select2().empty(),i?i.ajax?(o.select2(i),e.keepIncorrectValues=!0):(i.data=e.visibleChoices.map(function(e){return{id:e.value,text:e.text}}),o.select2(i)):o.select2({theme:"classic",disabled:e.isReadOnly,data:e.visibleChoices.map(function(e){return{id:e.value,text:e.text}})}),a(),u()};e.readOnlyChangedCallback=function(){o.prop("disabled",e.isReadOnly)},e.registerFunctionOnPropertyValueChanged("visibleChoices",function(){s()}),s(),o.on("select2:select",function(n){e.value=n.target.value}),o.on("select2:unselecting",function(n){e.value=null}),r.onchange=function(){e.comment=r.value},e.valueChangedCallback=a,e.commentChangedCallback=u,a(),u()},willUnmount:function(e,t){n(t).find("select").off("select2:select").select2("destroy"),e.readOnlyChangedCallback=null}};e.CustomWidgetCollection.Instance.addCustomWidget(t)}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey,window.$),n.default=l},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(3),i=t.n(l);function o(e){e.CustomWidgetCollection.Instance.addCustomWidget({name:"maskedit",numericGroupSeparator:",",numericAutoGroup:!0,numericDigits:2,numericDigitsOptional:!1,numericPrefix:"$",numericPlaceholder:"0",autoUnmask:!0,widgetIsLoaded:function(){return"undefined"!=typeof i.a},isFit:function(e){return"multipletext"==e.getType()||"text"==e.getType()&&("none"!=e.inputMask||e.inputFormat)},isDefaultRender:!0,activatedByChanged:function(n){if(!e.JsonObject.metaData.findProperty("text","inputMask")){var t=["inputFormat",{name:"prefix",default:"$"},{name:"autoUnmask:boolean",default:!0},{name:"inputMask",default:"none",choices:["none","datetime","currency","decimal","email","phone","ip"]}];e.JsonObject.metaData.addProperties("text",t),e.JsonObject.metaData.addProperties("matrixdropdowncolumn",t),e.JsonObject.metaData.addProperties("multipletextitem",t)}},applyInputMask:function(e,n){var t="none"!=e.inputMask?e.inputMask:e.inputFormat,l={autoUnmask:"undefined"!=typeof e.autoUnmask?e.autoUnmask:this.autoUnmask};"none"!=e.inputMask&&(l.inputFormat=e.inputFormat),"currency"!=e.inputMask&&"decimal"!=e.inputMask||(l.groupSeparator=this.numericGroupSeparator,l.autoGroup=this.numericAutoGroup),"currency"==e.inputMask&&(l.digits=this.numericDigits,l.digitsOptional=this.numericDigitsOptional,l.prefix=e.prefix||this.numericPrefix,l.placeholder=this.numericPlaceholder),"datetime"==e.inputMask&&(t=e.inputFormat),i()(t,l).mask(n),n.onblur=function(){e.value===n.inputmask.getemptymask()&&(e.value="")},n.oninput=function(){e.customWidgetData.isNeedRender=!0};var o=function(){n.value="undefined"==typeof e.value?"":e.value};e.valueChangedCallback=o,o()},afterRender:function(e,n){if("multipletext"!=e.getType()){var t=n.querySelector("input")||n;this.applyInputMask(e,t)}else for(var l=0;l",activatedByChanged:function(n){e.JsonObject.metaData.addClass("datepicker",[{name:"inputType",visible:!1},{name:"inputFormat",visible:!1},{name:"inputMask",visible:!1}],null,"text"),e.JsonObject.metaData.addProperty("datepicker",{name:"dateFormat"}),e.JsonObject.metaData.addProperty("datepicker",{name:"config",default:null})},afterRender:function(e,t){var l=n(t).is(".widget-datepicker")?n(t):n(t).find(".widget-datepicker");l.addClass(e.css.text.root);var i=!1,o=n.extend(!0,{},e.config||{});e.placeHolder&&l.attr("placeholder",e.placeHolder),void 0===o.dateFormat&&(o.dateFormat=e.dateFormat?e.dateFormat:void 0),void 0===o.option&&(o.option={minDate:null,maxDate:null}),void 0===o.onSelect&&(o.onSelect=function(n){i=!0,e.value=n,i=!1,this.fixFocusIE=!0}),o.fixFocusIE=!1,o.onClose=function(e,n){this.fixFocusIE=!0},o.beforeShow=function(e,n){var t=!navigator.userAgent.match(/Trident\/7\./)||!this.fixFocusIE;return this.fixFocusIE=!1,t};var r=l.datepicker(o);function a(){r.datepicker("setDate",e.value?e.value:null)}l.keyup(function(e){8!=e.keyCode&&46!=e.keyCode||n.datepicker._clearDate(this)}),e.readOnlyChangedCallback=function(){l.datepicker("option","disabled",e.isReadOnly)},e.registerFunctionOnPropertyValueChanged("dateFormat",function(){e.dateFormat&&r.datepicker("option","dateFormat",e.dateFormat),a()}),e.valueChangedCallback=function(){i||(a(),l.blur())},e.valueChangedCallback()},willUnmount:function(e,t){(n(t).is(".widget-datepicker")?n(t):n(t).find(".widget-datepicker")).datepicker("destroy")},pdfQuestionType:"text"},"customtype")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey,window.$),n.default=l},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(7),i=t.n(l);function o(e){e.CustomWidgetCollection.Instance.addCustomWidget({name:"nouislider",title:"noUiSlider",iconName:"icon-nouislider",widgetIsLoaded:function(){return"undefined"!=typeof i.a},isFit:function(e){return"nouislider"===e.getType()},htmlTemplate:"
",activatedByChanged:function(n){e.JsonObject.metaData.addClass("nouislider",[],null,"empty"),e.JsonObject.metaData.addProperties("nouislider",[{name:"step:number",default:1},{name:"rangeMin:number",default:0},{name:"rangeMax:number",default:100},{name:"pipsMode",default:"positions"},{name:"pipsValues:itemvalues",default:[0,25,50,75,100]},{name:"pipsDensity:number",default:5}])},afterRender:function(e,n){n.style.paddingBottom="19px",n.style.paddingRight="30px",n.style.paddingTop="44px",(n=n.children[0]).style.marginBottom="60px";var t=i.a.create(n,{start:e.value||(e.rangeMin+e.rangeMax)/2,connect:[!0,!1],step:e.step,tooltips:!0,pips:{mode:e.pipsMode||"positions",values:e.pipsValues.map(function(e){return parseInt(void 0!==e.value&&e.value||e)}),density:e.pipsDensity||5},range:{min:e.rangeMin,max:e.rangeMax}});t.on("change",function(){e.value=t.get()});var l=function(){t.set(e.value)};e.isReadOnly&&n.setAttribute("disabled",!0),l(),e.noUiSlider=t,e.valueChangedCallback=l,e.readOnlyChangedCallback=function(){e.isReadOnly?n.setAttribute("disabled",!0):n.removeAttribute("disabled")}},willUnmount:function(e,n){e.noUiSlider&&(e.noUiSlider.destroy(),e.noUiSlider=null),e.readOnlyChangedCallback=null},pdfRender:function(e,n){if("nouislider"===n.question.getType()){var t=SurveyPDF.SurveyHelper.createPoint(SurveyPDF.SurveyHelper.mergeRects.apply(null,n.bricks));t.xLeft+=n.controller.unitWidth,t.yTop+=n.controller.unitHeight*SurveyPDF.FlatQuestion.CONTENT_GAP_VERT_SCALE;var l=SurveyPDF.SurveyHelper.createTextFieldRect(t,n.controller),i=new SurveyPDF.TextFieldBrick(n.question,n.controller,l,!0,n.question.id,n.question.value||n.question.defaultValue,"",n.question.isReadOnly,!1,"text");n.bricks.push(i)}}},"customtype")}"undefined"!=typeof Survey&&o(Survey),n.default=o},function(e,t){e.exports=n},function(e,n,t){"use strict";function l(e,n){n=n||window.$;var t={name:"tagbox",title:"Tag box",iconName:"icon-tagbox",widgetIsLoaded:function(){return"function"==typeof n&&!!n.fn.select2},defaultJSON:{choices:["Item 1","Item 2","Item 3"]},htmlTemplate:"",isFit:function(e){return"tagbox"===e.getType()},activatedByChanged:function(n){e.JsonObject.metaData.addClass("tagbox",[{name:"hasOther:boolean",visible:!1},{name:"hasSelectAll:boolean",visible:!1},{name:"hasNone:boolean",visible:!1},{name:"otherText",visible:!1},{name:"selectAllText",visible:!1},{name:"noneText",visible:!1}],null,"checkbox"),e.JsonObject.metaData.addProperty("tagbox",{name:"select2Config",default:null}),e.matrixDropdownColumnTypes.tagbox={properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText","choicesVisibleIf"]}},fixStyles:function(e){e.parentElement.querySelector(".select2-search__field").style.border="none"},afterRender:function(e,t){var l=this,i=e.select2Config,o=i&&"string"==typeof i?JSON.parse(i):i,r=n(t).is("select")?n(t):n(t).find("select");l.willUnmount(e,t),r.select2({tags:"true",disabled:e.isReadOnly,theme:"classic"}),l.fixStyles(t);var a=function(){e.hasSelectAll&&e.isAllSelected?r.val([e.selectAllItemValue.value].concat(e.value)).trigger("change"):r.val(e.value).trigger("change"),l.fixStyles(t)},u=function(){r.select2().empty(),o?o.ajax?r.select2(o):(o.data=e.visibleChoices.map(function(e){return{id:e.value,text:e.text}}),r.select2(o)):r.select2({data:e.visibleChoices.map(function(e){return{id:e.value,text:e.text}})}),a()},s=function(n){return e.hasSelectAll&&n===e.selectAllItemValue.value};e._propertyValueChangedFnSelect2=function(){u()},e.readOnlyChangedCallback=function(){r.prop("disabled",e.isReadOnly)},e.registerFunctionOnPropertyValueChanged("visibleChoices",e._propertyValueChangedFnSelect2),e.valueChangedCallback=a,r.on("select2:select",function(n){s(n.params.data.id)?e.selectAll():e.value=(e.value||[]).concat(n.params.data.id)}),r.on("select2:unselect",function(n){var t=(e.value||[]).indexOf(n.params.data.id);if(s(n.params.data.id))e.clearValue();else if(-1!==t){var l=[].concat(e.value);l.splice(t,1),e.value=l}}),u()},willUnmount:function(e,t){e._propertyValueChangedFnSelect2&&(n(t).find("select").off("select2:select").select2("destroy"),e.readOnlyChangedCallback=null,e.valueChangedCallback=null,e.unRegisterFunctionOnPropertyValueChanged("visibleChoices",e._propertyValueChangedFnSelect2),e._propertyValueChangedFnSelect2=void 0)},pdfQuestionType:"checkbox"};e.CustomWidgetCollection.Instance.addCustomWidget(t,"customtype")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey,window.$),n.default=l},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(10),i=t.n(l);function o(e){e.CustomWidgetCollection.Instance.addCustomWidget({name:"signaturepad",title:"Signature pad",iconName:"icon-signaturepad",widgetIsLoaded:function(){return"undefined"!=typeof i.a},penColor:"#1ab394",isFit:function(e){return"signaturepad"===e.getType()},htmlTemplate:"
",activatedByChanged:function(n){e.JsonObject.metaData.addClass("signaturepad",[],null,"empty"),e.JsonObject.metaData.addProperties("signaturepad",[{name:"allowClear:boolean",default:!0},{name:"width:number",default:300},{name:"height:number",default:200}])},afterRender:function(e,n){var t=n.getElementsByTagName("canvas")[0],l=n.getElementsByTagName("button")[0],o=new i.a(t);e.isReadOnly&&o.off(),l.onclick=function(){e.value=void 0},e.readOnlyChangedCallback=function(){!e.allowClear||e.isReadOnly?(o.off(),l.style.display="none"):(o.on(),l.style.display="block")},o.penColor=this.penColor,o.onBegin=function(){t.focus()},o.onEnd=function(){var n=o.toDataURL();e.value=n};var r=function(){var n=e.value;t.width=e.width,t.height=e.height,function(e){var n=e.getContext("2d"),t=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1),l=e.width,i=e.height;e.width=l*t,e.height=i*t,e.style.width=l+"px",e.style.height=i+"px",n.scale(t,t)}(t),o.fromDataURL(n||"data:image/gif;base64,R0lGODlhAQABAIAAAP")};e.valueChangedCallback=r,r(),e.readOnlyChangedCallback(),e.signaturePad=o;var a=function(e,n){"width"!==n.name&&"height"!==n.name||r()};e.onPropertyChanged.add(a),e.signaturePad.propertyChangedHandler=a},willUnmount:function(e,n){e.signaturePad&&(e.onPropertyChanged.remove(e.signaturePad.propertyChangedHandler),e.signaturePad.off()),e.readOnlyChangedCallback=null,e.signaturePad=null,e.readOnlyChangedCallback=null},pdfRender:function(e,n){if("signaturepad"===n.question.getType()){var t=SurveyPDF.SurveyHelper.createPoint(SurveyPDF.SurveyHelper.mergeRects.apply(null,n.bricks));t.xLeft+=n.controller.unitWidth,t.yTop+=n.controller.unitHeight*SurveyPDF.FlatQuestion.CONTENT_GAP_VERT_SCALE;var l=SurveyPDF.SurveyHelper.createImageFlat(t,n.question,n.controller,e.data[n.question.name],parseInt(n.question.width));n.bricks.push(l)}}},"customtype")}"undefined"!=typeof Survey&&o(Survey),n.default=o},function(e,n){e.exports=t},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(12),i=t.n(l);function o(e){e.CustomWidgetCollection.Instance.addCustomWidget({name:"sortablelist",title:"Sortable list",iconName:"icon-sortablejs",widgetIsLoaded:function(){return"undefined"!=typeof i.a},defaultJSON:{choices:["Item 1","Item 2","Item 3"]},rootStyle:"width:100%:",areaStyle:"border: 1px solid #1ab394; width:100%; min-height:50px; margin-top:10px;",itemStyle:"background-color:#1ab394;color:#fff;margin:5px;padding:10px;",isFit:function(e){return"sortablelist"===e.getType()},htmlTemplate:"
",activatedByChanged:function(n){e.JsonObject.metaData.addClass("sortablelist",[{name:"hasOther",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"hasNone",visible:!1},{name:"renderAs",visible:!1}],null,"checkbox"),e.JsonObject.metaData.addProperty("sortablelist",{name:"emptyText",default:"Move items here."}),e.JsonObject.metaData.addProperty("sortablelist",{name:"useDefaultTheme",default:!0}),e.JsonObject.metaData.addProperty("sortablelist",{name:"maxAnswersCount:number",default:-1})},afterRender:function(n,t){var l,o,r=this;n.useDefaultTheme||(r.rootStyle="",r.itemStyle="",r.areaStyle=""),t.style.cssText=r.rootStyle,t.className="sjs-sortablejs-root";var a=document.createElement("div"),u=document.createElement("span"),s=document.createElement("div");a.style.cssText=r.areaStyle,a.style.boxSizing="border-box",a.className="sjs-sortablejs-result",u.innerHTML=n.emptyText,a.appendChild(u),s.style.cssText=r.areaStyle,s.style.boxSizing="border-box",s.className="sjs-sortablejs-source",t.appendChild(a),t.appendChild(s);var c=function(e,n){var t=n?a:s,l=document.createElement("div");l.innerHTML="
"+e.text+"
",l.dataset.value=e.value,t.appendChild(l)},d=!1,h=function(){if(!d){a.innerHTML="",a.appendChild(u),s.innerHTML="";var t=(i=[],n.visibleChoices.forEach(function(e){(function(e){var t=n.value;if(!Array.isArray(t))return!1;for(var l=0;l0?"none":"",l.forEach(function(e){c(e,!0)}),t.forEach(function(e){c(e,!1)})}var i};o=n.resultEl=i.a.create(a,{animation:150,disabled:n.isReadOnly,group:{name:n.name,put:function(e){return n.maxAnswersCount<0||e.el.children.length<=n.maxAnswersCount}},onSort:function(e){var t=[];if(1===a.children.length)u.style.display="";else{u.style.display="none";for(var l=0;l",activatedByChanged:function(n){e.JsonObject.metaData.addClass("editor",[],null,"empty"),e.JsonObject.metaData.addProperty("editor",{name:"height",default:300})},afterRender:function(e,n){var t=e.name;CKEDITOR.editorConfig=function(n){n.language="es",n.height=e.height,n.toolbarCanCollapse=!0},n.name=t,CKEDITOR.instances[t]&&(CKEDITOR.instances[t].removeAllListeners(),CKEDITOR.remove(CKEDITOR.instances[t]));var l=CKEDITOR.replace(n);CKEDITOR.instances[t].config.readOnly=e.isReadOnly;var i=!1,o=function(){i||"undefined"==typeof e.value||l.setData(e.value)};l.on("change",function(){i=!0,e.value=l.getData(),i=!1}),e.valueChangedCallback=o,e.readOnlyChangedCallback=function(){l.setReadOnly(!!e.isReadOnly)},o()},willUnmount:function(e,n){e.readOnlyChangedCallback=null,CKEDITOR.instances[e.name].destroy(!1)},pdfRender:function(e,n){if("editor"===n.question.getType()){var t=SurveyPDF.SurveyHelper.createPoint(SurveyPDF.SurveyHelper.mergeRects.apply(null,n.bricks));t.xLeft+=n.controller.unitWidth,t.yTop+=n.controller.unitHeight*SurveyPDF.FlatQuestion.CONTENT_GAP_VERT_SCALE;var l=SurveyPDF.SurveyHelper.createDivBlock(n.question.value,n.controller);return new Promise(function(e){SurveyPDF.SurveyHelper.createHTMLFlat(t,n.question,n.controller,l).then(function(t){var l=SurveyPDF.SurveyHelper.splitHtmlRect(n.controller,t);n.bricks.push(l),e()})})}}},"customtype")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey),n.default=l},function(e,n,t){"use strict";function l(e,n){n=n||window.$,e.CustomWidgetCollection.Instance.addCustomWidget({name:"autocomplete",widgetIsLoaded:function(){return"function"==typeof n&&!!n.fn.easyAutocomplete},isFit:function(e){return"text"===e.getType()},isDefaultRender:!0,activatedByChanged:function(n){null===e.JsonObject.metaData.findProperty("text","choices")&&null===e.JsonObject.metaData.findProperty("text","choicesByUrl")&&(e.JsonObject.metaData.addProperty("text","choices:itemvalues"),e.JsonObject.metaData.addProperty("text",{name:"choicesByUrl:restfull",className:"ChoicesRestfull"}),Array.prototype.push.apply(e.matrixDropdownColumnTypes.text.properties,["choices","choicesOrder","choicesByUrl","otherText"]))},afterRender:function(e,t){var l=n(t).is("input")?n(t):n(t).find("input"),i=e.cssMainRoot.replace(/(^\s*)|(\s+)/g,".");l.parents(i)[0].style.overflow="visible";var o={data:(e.choices||[]).map(function(e){return e.text}),adjustWidth:!1,list:{sort:{enabled:!0},match:{enabled:!0}},placeholder:e.placeholder};e.choicesByUrl&&(o.url=function(n){return e.choicesByUrl.url},o.getValue=e.choicesByUrl.valueName),l.easyAutocomplete(o),l[0].oninput=function(){e.customWidgetData.isNeedRender=!0};var r=function(){l[0].value="undefined"==typeof e.value?"":e.value};e.valueChangedCallback=r,r()},willUnmount:function(e,n){}},"type")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey,window.$),n.default=l},function(e,n,t){"use strict";function l(e){var n={settings:{supportedTypes:["radiogroup","checkbox","boolean"],radiogroup:{rootClass:"pretty p-default p-round",inputType:"radio",states:[{stateClass:"state p-success",addOn:""}]},checkbox:{rootClass:"pretty p-default",inputType:"checkbox",states:[{stateClass:"state p-success",addOn:""}]},boolean:{rootClass:"pretty p-icon p-default p-has-indeterminate",inputType:"checkbox",states:[{stateClass:"state p-success",addOn:""},{stateClass:"state p-success p-is-indeterminate",iconClass:"icon mdi mdi-minus",addOn:""}]}},name:"pretty-checkbox",activatedBy:"property",widgetIsLoaded:function(){return!0},htmlTemplate:"
",isFit:function(e){var t=-1!==n.settings.supportedTypes.indexOf(e.getType());return"property"===n.activatedBy?"prettycheckbox"===e.renderAs&&t:"type"===n.activatedBy&&t},activatedByChanged:function(t){this.widgetIsLoaded()&&(n.activatedBy=t,n.settings.supportedTypes.forEach(function(n){e.JsonObject.metaData.removeProperty(n,"renderAs"),"property"===t&&e.JsonObject.metaData.addProperty(n,{name:"renderAs",default:"standard",choices:["standard","prettycheckbox"]})}))},isDefaultRender:!1,afterRender:function(e,n){var t={},l=e.getType(),i=this.settings[l],o="checkbox"===l,r="radiogroup"===l,a="boolean"===l,u=!1,s=function(n){u=!0;try{var t=arguments[0].target,l=t.value,i=t.checked;if(o){var a=e.createValueCopy()||[],s=a.indexOf(l);i?-1===s&&a.push(l):-1!==s&&a.splice(s,1),e.value=a}else e.value=r?l:i}finally{u=!1}},c=e.colCount>0?100/e.colCount+"%":"";(a?[{locText:e.locTitle,value:!!e.value}]:e.choices).forEach(function(r,u){var d=document.createElement("input");d.type=i.inputType,d.name=e.name+(o?""+u:""),d.onchange=s,d.value=r.value,a&&(d.indeterminate="indeterminate"===e.defaultValue);var h=document.createElement("div");h.className=i.rootClass,h.appendChild(d),i.states.forEach(function(e){var n=document.createElement("div");if(n.className=e.stateClass,e.iconClass){var t=document.createElement("i");t.className=e.iconClass,n.appendChild(t)}var l=document.createElement("label");r.locText.hasHtml?l.innerHTML=r.locText.html:l.textContent=r.locText.renderedText,n.appendChild(l),h.appendChild(n),e.addOn&&n.insertAdjacentHTML("afterbegin",e.addOn)});var p=document.createElement("div");p.className="sv_cw_pretty_checkbox_"+l,p.style.display="inline-block",p.style.width=c,p.appendChild(h),n.appendChild(p),t[r.value]=d});var d=function(e){if(!u){var n=e||[];(r||a)&&(n=[e]),Object.values(t).forEach(function(e){-1!==n.indexOf(e.value)?e.setAttribute("checked",void 0):e.removeAttribute("checked")})}},h=function(){Object.values(t).forEach(function(n){e.isReadOnly?n.setAttribute("disabled",!0):n.removeAttribute("disabled")})};e.valueChangedCallback=d,e.readOnlyChangedCallback=h,d(e.value),h()},willUnmount:function(e,n){e.valueChangedCallback=void 0,e.readOnlyChangedCallback=void 0}};e.CustomWidgetCollection.Instance.addCustomWidget(n,"property")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey),n.default=l},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(17);function i(e){e.CustomWidgetCollection.Instance.addCustomWidget({name:"bootstrapslider",title:"Bootstrap Slider",iconName:"icon-bootstrap-slider",widgetIsLoaded:function(){return"undefined"!=typeof l},isFit:function(e){return"bootstrapslider"===e.getType()},htmlTemplate:"
",activatedByChanged:function(n){e.JsonObject.metaData.addClass("bootstrapslider",[],null,"empty"),e.JsonObject.metaData.addProperties("bootstrapslider",[{name:"step:number",default:1},{name:"rangeMin:number",default:0},{name:"rangeMax:number",default:100}]),e.JsonObject.metaData.addProperty("bootstrapslider",{name:"config",default:null})},afterRender:function(e,n){n.style.paddingTop="20px",n.style.paddingBottom="17px";var t=document.createElement("input");t.id=e.id,t.type="text",t.setAttribute("data-slider-id",e.name+"_"+e.id),t.setAttribute("data-slider-min",e.rangeMin),t.setAttribute("data-slider-max",e.rangeMax),t.setAttribute("data-slider-step",e.step),t.setAttribute("data-slider-value",e.value||e.rangeMin),n.appendChild(t);var i=e.config||{};void 0===i.id&&(i.id=e.name+"_"+e.id),void 0===i.min&&(i.min=e.rangeMin),void 0===i.max&&(i.max=e.rangeMax),void 0===i.step&&(i.step=e.step),void 0===i.enabled&&(i.enabled=!e.isReadOnly),void 0===i.value&&(i.value=e.value||e.rangeMin);var o=new l(t,i);o.on("change",function(n){e.value=o.getValue()}),e.readOnlyChangedCallback=function(){e.isReadOnly?o.disable():o.enable()},e.bootstrapSlider=o,e.valueChangedCallback=function(){o.setValue(e.value||e.rangeMin)}},willUnmount:function(e,n){e.bootstrapSlider&&e.bootstrapSlider.destroy(),e.bootstrapSlider=null,e.readOnlyChangedCallback=null},pdfRender:function(e,n){if("bootstrapslider"===n.question.getType()){var t=SurveyPDF.SurveyHelper.createPoint(SurveyPDF.SurveyHelper.mergeRects.apply(null,n.bricks));t.xLeft+=n.controller.unitWidth,t.yTop+=n.controller.unitHeight*SurveyPDF.FlatQuestion.CONTENT_GAP_VERT_SCALE;var l=SurveyPDF.SurveyHelper.createTextFieldRect(t,n.controller),i=new SurveyPDF.TextFieldBrick(n.question,n.controller,l,!0,n.question.id,n.question.value||n.question.defaultValue,"",n.question.isReadOnly,!1,"text");n.bricks.push(i)}}},"customtype")}"undefined"!=typeof Survey&&i(Survey),n.default=i},function(e,n){e.exports=i},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(19),i=t.n(l);function o(e){e.CustomWidgetCollection.Instance.addCustomWidget({name:"microphone",title:"Microphone",iconName:"icon-microphone",widgetIsLoaded:function(){return"undefined"!=typeof i.a},isFit:function(e){return"microphone"===e.getType()},htmlTemplate:"
  
",activatedByChanged:function(n){e.JsonObject.metaData.addClass("microphone",[],null,"empty")},afterRender:function(e,n){var t=n.getElementsByTagName("button")[0],l=n.getElementsByTagName("button")[1],o=n.getElementsByTagName("audio")[0];e.isReadOnly?t.parentNode.removeChild(t):t.onclick=function(){e.value=void 0,"undefined"!=typeof e.survey.recordRTC&&(e.survey.recordRTC.stopRecording(r),"undefined"!=typeof e.survey.mystream&&e.survey.mystream.getAudioTracks().forEach(function(e){e.stop()})),navigator.mediaDevices.getUserMedia({video:!1,audio:!0}).then((function(n){console.log("successCallback"),e.survey.mystream=n,e.survey.recordRTC=i()(e.survey.mystream,{type:"audio",mimeType:"audio/webm",audioBitsPerSecond:44100,sampleRate:44100,bufferSize:16384,numberOfAudioChannels:1}),"undefined"!=typeof e.survey.recordRTC&&(console.log("startRecording"),e.survey.recordRTC.startRecording())}).bind(this),(function(){alert("No microphone"),e.survey.recordRTC=void 0,e.survey.mystream=void 0}).bind(this))},e.isReadOnly?l.parentNode.removeChild(l):l.onclick=function(){console.log("stopRecording"),"undefined"!=typeof e.survey.recordRTC&&(e.survey.recordRTC.stopRecording((function(n){console.log("processAudio");var t=e.survey.recordRTC.getBlob(),l=new FileReader;l.onload=function(n){var t=n.target.result;console.log("dataUri: "+t),e.value=t,o.src=t,console.log("cleaning"),e.survey.recordRTC=void 0,e.survey.mystream=void 0},l.readAsDataURL(t)}).bind(this)),"undefined"!=typeof e.survey.mystream&&e.survey.mystream.getAudioTracks().forEach(function(e){e.stop()}))},o.src=e.value;var r=function(){};e.valueChangedCallback=function(){}},willUnmount:function(e,n){console.log("unmount microphone no record "),"undefined"!=typeof e.survey.recordRTC&&(e.survey.recordRTC.stopRecording(doNothingHandler),"undefined"!=typeof e.survey.mystream&&e.survey.mystream.getAudioTracks().forEach(function(e){e.stop()}),e.value=void 0,e.survey.recordRTC=void 0,e.survey.mystream=void 0)}},"customtype")}"undefined"!=typeof Survey&&o(Survey),n.default=o},function(e,n,t){"use strict";(function(t,l){var i,o;function r(e,n){if(!e)throw"First parameter is required.";var t=this;function l(t){t&&(n.initCallback=function(){t(),t=n.initCallback=null});var l=new function(e,n){var t;return(v||f||g)&&(t=P),"undefined"!=typeof MediaRecorder&&"requestData"in MediaRecorder.prototype&&!v&&(t=O),"video"===n.type&&(v||g)&&(t=T,"undefined"!=typeof L&&"undefined"!=typeof ReadableStream&&(t=L)),"gif"===n.type&&(t=I),"canvas"===n.type&&(t=E),S()&&t!==E&&t!==I&&"undefined"!=typeof MediaRecorder&&"requestData"in MediaRecorder.prototype&&(x(e,"video").length||x(e,"audio").length)&&("audio"===n.type?"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported("audio/webm")&&(t=O):"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported("video/webm")&&(t=O)),e instanceof Array&&e.length&&(t=R),n.recorderType&&(t=n.recorderType),!n.disableLogs&&t&&t.name&&console.log("Using recorderType:",t.name||t.constructor.name),!t&&_&&(t=O),t}(e,n);(d=new l(e,n)).record(),c("recording"),n.disableLogs||console.log("Initialized recorderType:",d.constructor.name,"for output-type:",n.type)}function i(e){if(e=e||function(){},d){if("paused"===t.state)return t.resumeRecording(),void setTimeout(function(){i(e)},1);"recording"===t.state||n.disableLogs||console.warn('Recording state should be: "recording", however current state is: ',t.state),n.disableLogs||console.log("Stopped recording "+n.type+" stream."),"gif"!==n.type?d.stop(l):(d.stop(),l()),c("stopped")}else m();function l(l){if(d){Object.keys(d).forEach(function(e){"function"!=typeof d[e]&&(t[e]=d[e])});var i=d.blob;if(!i){if(!l)throw"Recording failed.";d.blob=i=l}if(i&&!n.disableLogs&&console.log(i.type,"->",b(i.size)),e){var o;try{o=p.createObjectURL(i)}catch(e){}"function"==typeof e.call?e.call(t,o):e(o)}n.autoWriteToDisk&&u(function(e){var t={};t[n.type+"Blob"]=e,N.Store(t)})}else"function"==typeof e.call?e.call(t,""):e("")}}function o(e){postMessage((new FileReaderSync).readAsDataURL(e))}function u(e,t){if(!e)throw"Pass a callback function over getDataURL.";var l=t?t.blob:(d||{}).blob;if(!l)return n.disableLogs||console.warn("Blob encoder did not finish its job yet."),void setTimeout(function(){u(e,t)},1e3);if("undefined"==typeof Worker||navigator.mozGetUserMedia){var i=new FileReader;i.readAsDataURL(l),i.onload=function(n){e(n.target.result)}}else{var r=function(e){try{var n=p.createObjectURL(new Blob([e.toString(),"this.onmessage = function (eee) {"+e.name+"(eee.data);}"],{type:"application/javascript"})),t=new Worker(n);return p.revokeObjectURL(n),t}catch(e){}}(o);r.onmessage=function(n){e(n.data)},r.postMessage(l)}}function s(e){e=e||0,"paused"!==t.state?"stopped"!==t.state&&(e>=t.recordingDuration?i(t.onRecordingStopped):(e+=1e3,setTimeout(function(){s(e)},1e3))):setTimeout(function(){s(e)},1e3)}function c(e){t&&(t.state=e,"function"==typeof t.onStateChanged.call?t.onStateChanged.call(t,e):t.onStateChanged(e))}var d,h='It seems that recorder is destroyed or "startRecording" is not invoked for '+(n=new a(e,n=n||{type:"video"})).type+" recorder.";function m(){!0!==n.disableLogs&&console.warn(h)}var y={startRecording:function(i){return n.disableLogs||console.log("RecordRTC version: ",t.version),i&&(n=new a(e,i)),n.disableLogs||console.log("started recording "+n.type+" stream."),d?(d.clearRecordedData(),d.record(),c("recording"),t.recordingDuration&&s(),t):(l(function(){t.recordingDuration&&s()}),t)},stopRecording:i,pauseRecording:function(){d?"recording"===t.state?(c("paused"),d.pause(),n.disableLogs||console.log("Paused recording.")):n.disableLogs||console.warn("Unable to pause the recording. Recording state: ",t.state):m()},resumeRecording:function(){d?"paused"===t.state?(c("recording"),d.resume(),n.disableLogs||console.log("Resumed recording.")):n.disableLogs||console.warn("Unable to resume the recording. Recording state: ",t.state):m()},initRecorder:l,setRecordingDuration:function(e,n){if("undefined"==typeof e)throw"recordingDuration is required.";if("number"!=typeof e)throw"recordingDuration must be a number.";return t.recordingDuration=e,t.onRecordingStopped=n||function(){},{onRecordingStopped:function(e){t.onRecordingStopped=e}}},clearRecordedData:function(){d?(d.clearRecordedData(),n.disableLogs||console.log("Cleared old recorded data.")):m()},getBlob:function(){if(d)return d.blob;m()},getDataURL:u,toURL:function(){if(d)return p.createObjectURL(d.blob);m()},getInternalRecorder:function(){return d},save:function(e){d?C(d.blob,e):m()},getFromDisk:function(e){d?r.getFromDisk(n.type,e):m()},setAdvertisementArray:function(e){n.advertisement=[];for(var t=e.length,l=0;l-1&&"netscape"in window&&/ rv:/.test(navigator.userAgent),v=!g&&!f&&!!navigator.webkitGetUserMedia||w()||-1!==navigator.userAgent.toLowerCase().indexOf("chrome/"),_=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);_&&!v&&-1!==navigator.userAgent.indexOf("CriOS")&&(_=!1,v=!0);var y=window.MediaStream;function b(e){if(0===e)return"0 Bytes";var n=parseInt(Math.floor(Math.log(e)/Math.log(1e3)),10);return(e/Math.pow(1e3,n)).toPrecision(3)+" "+["Bytes","KB","MB","GB","TB"][n]}function C(e,n){if(!e)throw"Blob object is required.";if(!e.type)try{e.type="video/webm"}catch(e){}var t=(e.type||"video/webm").split("/")[1];if(n&&-1!==n.indexOf(".")){var l=n.split(".");n=l[0],t=l[1]}var i=(n||Math.round(9999999999*Math.random())+888888888)+"."+t;if("undefined"!=typeof navigator.msSaveOrOpenBlob)return navigator.msSaveOrOpenBlob(e,i);if("undefined"!=typeof navigator.msSaveBlob)return navigator.msSaveBlob(e,i);var o=document.createElement("a");o.href=p.createObjectURL(e),o.download=i,o.style="display:none;opacity:0;color:transparent;",(document.body||document.documentElement).appendChild(o),"function"==typeof o.click?o.click():(o.target="_blank",o.dispatchEvent(new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0}))),p.revokeObjectURL(o.href)}function w(){return"undefined"!=typeof window&&"object"==typeof window.process&&"renderer"===window.process.type||!("undefined"==typeof l||"object"!=typeof l.versions||!l.versions.electron)||"object"==typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Electron")>=0}function x(e,n){return e&&e.getTracks?e.getTracks().filter(function(e){return e.kind===(n||"audio")}):[]}function k(e,n){"srcObject"in n?n.srcObject=e:"mozSrcObject"in n?n.mozSrcObject=e:n.srcObject=e}"undefined"==typeof y&&"undefined"!=typeof webkitMediaStream&&(y=webkitMediaStream),"undefined"!=typeof y&&"undefined"==typeof y.prototype.stop&&(y.prototype.stop=function(){this.getTracks().forEach(function(e){e.stop()})}),"undefined"!=typeof r&&(r.invokeSaveAsDialog=C,r.getTracks=x,r.getSeekableBlob=function(e,n){if("undefined"==typeof EBML)throw new Error("Please link: https://cdn.webrtc-experiment.com/EBML.js");var t=new EBML.Reader,l=new EBML.Decoder,i=EBML.tools,o=new FileReader;o.onload=function(e){l.decode(this.result).forEach(function(e){t.read(e)}),t.stop();var o=i.makeMetadataSeekable(t.metadatas,t.duration,t.cues),r=this.result.slice(t.metadataSize),a=new Blob([o,r],{type:"video/webm"});n(a)},o.readAsArrayBuffer(e)},r.bytesToSize=b,r.isElectron=w);var M={};function S(){if(m||_||f)return!0;navigator;var e,n,t=navigator.userAgent,l=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10);return(v||g)&&(e=t.indexOf("Chrome"),l=t.substring(e+7)),-1!==(n=l.indexOf(";"))&&(l=l.substring(0,n)),-1!==(n=l.indexOf(" "))&&(l=l.substring(0,n)),i=parseInt(""+l,10),isNaN(i)&&(l=""+parseFloat(navigator.appVersion),i=parseInt(navigator.appVersion,10)),i>=49}function O(e,n){var t,l=this;if("undefined"==typeof e)throw'First argument "MediaStream" is required.';if("undefined"==typeof MediaRecorder)throw"Your browser does not support the Media Recorder API. Please try other modules e.g. WhammyRecorder or StereoAudioRecorder.";"audio"===(n=n||{mimeType:"video/webm"}).type&&(x(e,"video").length&&x(e,"audio").length&&(navigator.mozGetUserMedia?(t=new y).addTrack(x(e,"audio")[0]):t=new y(x(e,"audio")),e=t),n.mimeType&&-1!==n.mimeType.toString().toLowerCase().indexOf("audio")||(n.mimeType=v?"audio/webm":"audio/ogg"),n.mimeType&&"audio/ogg"!==n.mimeType.toString().toLowerCase()&&navigator.mozGetUserMedia&&(n.mimeType="audio/ogg"));var i,o=[];function r(){l.timestamps.push((new Date).getTime()),"function"==typeof n.onTimeStamp&&n.onTimeStamp(l.timestamps[l.timestamps.length-1],l.timestamps)}function a(e){return i&&i.mimeType?i.mimeType:e.mimeType||"video/webm"}function u(){o=[],i=null,l.timestamps=[]}this.getArrayOfBlobs=function(){return o},this.record=function(){l.blob=null,l.clearRecordedData(),l.timestamps=[],s=[],o=[];var t=n;n.disableLogs||console.log("Passing following config over MediaRecorder API.",t),i&&(i=null),v&&!S()&&(t="video/vp8"),"function"==typeof MediaRecorder.isTypeSupported&&t.mimeType&&(MediaRecorder.isTypeSupported(t.mimeType)||(n.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",t.mimeType),t.mimeType="audio"===n.type?"audio/webm":"video/webm"));try{i=new MediaRecorder(e,t),n.mimeType=t.mimeType}catch(n){i=new MediaRecorder(e)}t.mimeType&&!MediaRecorder.isTypeSupported&&"canRecordMimeType"in i&&!1===i.canRecordMimeType(t.mimeType)&&(n.disableLogs||console.warn("MediaRecorder API seems unable to record mimeType:",t.mimeType)),i.ondataavailable=function(e){if(e.data&&s.push("ondataavailable: "+b(e.data.size)),"number"!=typeof n.timeSlice)!e.data||!e.data.size||e.data.size<100||l.blob?l.recordingCallback&&(l.recordingCallback(new Blob([],{type:a(t)})),l.recordingCallback=null):(l.blob=n.getNativeBlob?e.data:new Blob([e.data],{type:a(t)}),l.recordingCallback&&(l.recordingCallback(l.blob),l.recordingCallback=null));else if(e.data&&e.data.size&&e.data.size>100&&(o.push(e.data),r(),"function"==typeof n.ondataavailable)){var i=n.getNativeBlob?e.data:new Blob([e.data],{type:a(t)});n.ondataavailable(i)}},i.onstart=function(){s.push("started")},i.onpause=function(){s.push("paused")},i.onresume=function(){s.push("resumed")},i.onstop=function(){s.push("stopped")},i.onerror=function(e){e&&(e.name||(e.name="UnknownError"),s.push("error: "+e),n.disableLogs||(-1!==e.name.toString().toLowerCase().indexOf("invalidstate")?console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.",e):-1!==e.name.toString().toLowerCase().indexOf("notsupported")?console.error("MIME type (",t.mimeType,") is not supported.",e):-1!==e.name.toString().toLowerCase().indexOf("security")?console.error("MediaRecorder security error",e):"OutOfMemory"===e.name?console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.",e):"IllegalStreamModification"===e.name?console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.",e):"OtherRecordingError"===e.name?console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.",e):"GenericError"===e.name?console.error("The UA cannot provide the codec or recording option that has been requested.",e):console.error("MediaRecorder Error",e)),function(e){if(!l.manuallyStopped&&i&&"inactive"===i.state)return delete n.timeslice,void i.start(6e5);setTimeout(void 0,1e3)}(),"inactive"!==i.state&&"stopped"!==i.state&&i.stop())},"number"==typeof n.timeSlice?(r(),i.start(n.timeSlice)):i.start(36e5),n.initCallback&&n.initCallback()},this.timestamps=[],this.stop=function(e){e=e||function(){},l.manuallyStopped=!0,i&&(this.recordingCallback=e,"recording"===i.state&&i.stop(),"number"==typeof n.timeSlice&&setTimeout(function(){l.blob=new Blob(o,{type:a(n)}),l.recordingCallback(l.blob)},100))},this.pause=function(){i&&"recording"===i.state&&i.pause()},this.resume=function(){i&&"paused"===i.state&&i.resume()},this.clearRecordedData=function(){i&&"recording"===i.state&&l.stop(u),u()},this.getInternalRecorder=function(){return i},this.blob=null,this.getState=function(){return i&&i.state||"inactive"};var s=[];this.getAllStates=function(){return s},"undefined"==typeof n.checkForInactiveTracks&&(n.checkForInactiveTracks=!1),l=this,function t(){if(i&&!1!==n.checkForInactiveTracks)return!1===function(){if("active"in e){if(!e.active)return!1}else if("ended"in e&&e.ended)return!1;return!0}()?(n.disableLogs||console.log("MediaStream seems stopped."),void l.stop()):void setTimeout(t,1e3)}(),this.name="MediaStreamRecorder",this.toString=function(){return this.name}}function P(e,n){if(!x(e,"audio").length)throw"Your stream has no audio tracks.";var t,l=this,i=[],o=[],r=!1,a=0,u=2,s=(n=n||{}).desiredSampRate;function c(){if(!1===n.checkForInactiveTracks)return!0;if("active"in e){if(!e.active)return!1}else if("ended"in e&&e.ended)return!1;return!0}function d(e,n){function t(e,n){var t,l=e.numberOfAudioChannels,i=e.leftBuffers.slice(0),o=e.rightBuffers.slice(0),r=e.sampleRate,a=e.internalInterleavedLength,u=e.desiredSampRate;function s(e,n,t){var l=Math.round(e.length*(n/t)),i=[],o=Number((e.length-1)/(l-1));i[0]=e[0];for(var r=1;r96e3)&&(n.disableLogs||console.log("sample-rate must be under range 22050 and 96000.")),n.disableLogs||n.desiredSampRate&&console.log("Desired sample-rate: "+n.desiredSampRate);var y=!1;function b(){o=[],a=0,w=!1,r=!1,y=!1,f=null,l.leftchannel=i=[],l.rightchannel=o,l.numberOfAudioChannels=u,l.desiredSampRate=s,l.sampleRate=_,l.recordingLength=a,k={left:[],right:[],recordingLength:0}}function C(){t&&(t.onaudioprocess=null,t.disconnect(),t=null),g&&(g.disconnect(),g=null),b()}this.pause=function(){y=!0},this.resume=function(){if(!1===c())throw"Please make sure MediaStream is active.";if(!r)return n.disableLogs||console.log("Seems recording has been restarted."),void this.record();y=!1},this.clearRecordedData=function(){n.checkForInactiveTracks=!1,r&&this.stop(C),C()},this.name="StereoAudioRecorder",this.toString=function(){return this.name};var w=!1;t.onaudioprocess=function(e){if(!y)if(!1===c()&&(n.disableLogs||console.log("MediaStream seems stopped."),t.disconnect(),r=!1),r){w||(w=!0,n.onAudioProcessStarted&&n.onAudioProcessStarted(),n.initCallback&&n.initCallback());var s=e.inputBuffer.getChannelData(0),d=new Float32Array(s);if(i.push(d),2===u){var h=e.inputBuffer.getChannelData(1),p=new Float32Array(h);o.push(p)}l.recordingLength=a+=v,"undefined"!=typeof n.timeSlice&&(k.recordingLength+=v,k.left.push(d),2===u&&k.right.push(p))}else g&&(g.disconnect(),g=null)},t.connect(f.createMediaStreamDestination?f.createMediaStreamDestination():f.destination),this.leftchannel=i,this.rightchannel=o,this.numberOfAudioChannels=u,this.desiredSampRate=s,this.sampleRate=_,l.recordingLength=a;var k={left:[],right:[],recordingLength:0};function M(){r&&"function"==typeof n.ondataavailable&&"undefined"!=typeof n.timeSlice&&(k.left.length?(d({desiredSampRate:s,sampleRate:_,numberOfAudioChannels:u,internalInterleavedLength:k.recordingLength,leftBuffers:k.left,rightBuffers:1===u?[]:k.right},function(e,t){var l=new Blob([t],{type:"audio/wav"});n.ondataavailable(l),setTimeout(M,n.timeSlice)}),k={left:[],right:[],recordingLength:0}):setTimeout(M,n.timeSlice))}}function E(e,n){if("undefined"==typeof html2canvas)throw"Please link: https://cdn.webrtc-experiment.com/screenshot.js";(n=n||{}).frameInterval||(n.frameInterval=10);var t=!1;["captureStream","mozCaptureStream","webkitCaptureStream"].forEach(function(e){e in document.createElement("canvas")&&(t=!0)});var l,i,o,r=!(!window.webkitRTCPeerConnection&&!window.webkitGetUserMedia||!window.chrome),a=50,u=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(r&&u&&u[2]&&(a=parseInt(u[2],10)),r&&a<52&&(t=!1),n.useWhammyRecorder&&(t=!1),t)if(n.disableLogs||console.log("Your browser supports both MediRecorder API and canvas.captureStream!"),e instanceof HTMLCanvasElement)l=e;else{if(!(e instanceof CanvasRenderingContext2D))throw"Please pass either HTMLCanvasElement or CanvasRenderingContext2D.";l=e.canvas}else navigator.mozGetUserMedia&&(n.disableLogs||console.error("Canvas recording is NOT supported in Firefox."));this.record=function(){if(o=!0,t&&!n.useWhammyRecorder){var e;"captureStream"in l?e=l.captureStream(25):"mozCaptureStream"in l?e=l.mozCaptureStream(25):"webkitCaptureStream"in l&&(e=l.webkitCaptureStream(25));try{var r=new y;r.addTrack(x(e,"video")[0]),e=r}catch(e){}if(!e)throw"captureStream API are NOT available.";(i=new O(e,{mimeType:n.mimeType||"video/webm"})).record()}else p.frames=[],h=(new Date).getTime(),d();n.initCallback&&n.initCallback()},this.getWebPImages=function(t){if("canvas"===e.nodeName.toLowerCase()){var l=p.frames.length;p.frames.forEach(function(e,t){var i=l-t;n.disableLogs||console.log(i+"/"+l+" frames remaining"),n.onEncodingCallback&&n.onEncodingCallback(i,l);var o=e.image.toDataURL("image/webp",1);p.frames[t].image=o}),n.disableLogs||console.log("Generating WebM"),t()}else t()},this.stop=function(e){o=!1;var l=this;t&&i?i.stop(e):this.getWebPImages(function(){p.compile(function(t){n.disableLogs||console.log("Recording finished!"),l.blob=t,l.blob.forEach&&(l.blob=new Blob([],{type:"video/webm"})),e&&e(l.blob),p.frames=[]})})};var s=!1;function c(){p.frames=[],o=!1,s=!1}function d(){if(s)return h=(new Date).getTime(),setTimeout(d,500);if("canvas"===e.nodeName.toLowerCase()){var t=(new Date).getTime()-h;return h=(new Date).getTime(),p.frames.push({image:(l=document.createElement("canvas"),i=l.getContext("2d"),l.width=e.width,l.height=e.height,i.drawImage(e,0,0),l),duration:t}),void(o&&setTimeout(d,n.frameInterval))}var l,i;html2canvas(e,{grabMouse:"undefined"==typeof n.showMousePointer||n.showMousePointer,onrendered:function(e){var t=(new Date).getTime()-h;if(!t)return setTimeout(d,n.frameInterval);h=(new Date).getTime(),p.frames.push({image:e.toDataURL("image/webp",1),duration:t}),o&&setTimeout(d,n.frameInterval)}})}this.pause=function(){s=!0,i instanceof O&&i.pause()},this.resume=function(){s=!1,i instanceof O?i.resume():o||this.record()},this.clearRecordedData=function(){o&&this.stop(c),c()},this.name="CanvasRecorder",this.toString=function(){return this.name};var h=(new Date).getTime(),p=new D.Video(100)}function T(e,n){function t(e){e="undefined"!=typeof e?e:10;var n=(new Date).getTime()-a;return n?i?(a=(new Date).getTime(),setTimeout(t,100)):(a=(new Date).getTime(),r.paused&&r.play(),c.drawImage(r,0,0,s.width,s.height),u.frames.push({duration:n,image:s.toDataURL("image/webp")}),void(l||setTimeout(t,e,e))):setTimeout(t,e,e)}(n=n||{}).frameInterval||(n.frameInterval=10),n.disableLogs||console.log("Using frames-interval:",n.frameInterval),this.record=function(){n.width||(n.width=320),n.height||(n.height=240),n.video||(n.video={width:n.width,height:n.height}),n.canvas||(n.canvas={width:n.width,height:n.height}),s.width=n.canvas.width||320,s.height=n.canvas.height||240,c=s.getContext("2d"),n.video&&n.video instanceof HTMLVideoElement?(r=n.video.cloneNode(),n.initCallback&&n.initCallback()):(r=document.createElement("video"),k(e,r),r.onloadedmetadata=function(){n.initCallback&&n.initCallback()},r.width=n.video.width,r.height=n.video.height),r.muted=!0,r.play(),a=(new Date).getTime(),u=new D.Video,n.disableLogs||(console.log("canvas resolutions",s.width,"*",s.height),console.log("video width/height",r.width||s.width,"*",r.height||s.height)),t(n.frameInterval)};var l=!1;this.stop=function(e){e=e||function(){},l=!0;var t=this;setTimeout(function(){!function(e,n,t,l,i){var o=document.createElement("canvas");o.width=s.width,o.height=s.height;var r,a,u,c=o.getContext("2d"),d=[],h=e.length,p=Math.sqrt(Math.pow(255,2)+Math.pow(255,2)+Math.pow(255,2)),f=!1;a=-1,u=(r={length:h,functionToLoop:function(n,t){var l,i,o,r=function(){!f&&o-l<=0*o||(f=!0,d.push(e[t])),n()};if(f)r();else{var a=new Image;a.onload=function(){c.drawImage(a,0,0,s.width,s.height);var e=c.getImageData(0,0,s.width,s.height);l=0,i=e.data.length,o=e.data.length/4;for(var n=0;n127)throw"TrackNumber > 127 not supported";return[128|e.trackNum,e.timecode>>8,255&e.timecode,n].map(function(e){return String.fromCharCode(e)}).join("")+e.frame}({discardable:0,frame:e.data.slice(4),invisible:0,keyframe:1,lacing:0,trackNum:1,timecode:Math.round(n)});return n+=e.duration,{data:t,id:163}}))}function t(e){for(var n=[];e>0;)n.push(255&e),e>>=8;return new Uint8Array(n.reverse())}function l(e){var n=[];e=(e.length%8?new Array(9-e.length%8).join("0"):"")+e;for(var t=0;t1?2*t[0].width:t[0].width;var l=1;3!==e&&4!==e||(l=2),5!==e&&6!==e||(l=3),7!==e&&8!==e||(l=4),9!==e&&10!==e||(l=5),a.height=t[0].height*l}else a.width=s.width||360,a.height=s.height||240;n&&n instanceof HTMLVideoElement&&g(n),t.forEach(function(e,n){g(e,n)}),setTimeout(f,s.frameInterval)}}function g(e,n){if(!o){var t=0,l=0,i=e.width,r=e.height;1===n&&(t=e.width),2===n&&(l=e.height),3===n&&(t=e.width,l=e.height),4===n&&(l=2*e.height),5===n&&(t=e.width,l=2*e.height),6===n&&(l=3*e.height),7===n&&(t=e.width,l=3*e.height),"undefined"!=typeof e.stream.left&&(t=e.stream.left),"undefined"!=typeof e.stream.top&&(l=e.stream.top),"undefined"!=typeof e.stream.width&&(i=e.stream.width),"undefined"!=typeof e.stream.height&&(r=e.stream.height),u.drawImage(e,t,l,i,r),"function"==typeof e.stream.onRender&&e.stream.onRender(u,t,l,i,r,n)}}function m(e){var t=document.createElement("video");return function(e,n){"srcObject"in n?n.srcObject=e:"mozSrcObject"in n?n.mozSrcObject=e:n.srcObject=e}(e,t),t.className=n,t.muted=!0,t.volume=0,t.width=e.width||s.width||360,t.height=e.height||s.height||240,t.play(),t}function v(n){i=[],(n=n||e).forEach(function(e){if(e.getTracks().filter(function(e){return"video"===e.kind}).length){var n=m(e);n.stream=e,i.push(n)}})}"undefined"!=typeof c?p.AudioContext=c:"undefined"!=typeof webkitAudioContext&&(p.AudioContext=webkitAudioContext),this.startDrawingFrames=function(){f()},this.appendStreams=function(n){if(!n)throw"First parameter is required.";n instanceof Array||(n=[n]),n.forEach(function(n){var t=new h;if(n.getTracks().filter(function(e){return"video"===e.kind}).length){var l=m(n);l.stream=n,i.push(l),t.addTrack(n.getTracks().filter(function(e){return"video"===e.kind})[0])}if(n.getTracks().filter(function(e){return"audio"===e.kind}).length){var o=s.audioContext.createMediaStreamSource(n);s.audioDestination=s.audioContext.createMediaStreamDestination(),o.connect(s.audioDestination),t.addTrack(s.audioDestination.stream.getTracks().filter(function(e){return"audio"===e.kind})[0])}e.push(t)})},this.releaseStreams=function(){i=[],o=!0,s.gainNode&&(s.gainNode.disconnect(),s.gainNode=null),s.audioSources.length&&(s.audioSources.forEach(function(e){e.disconnect()}),s.audioSources=[]),s.audioDestination&&(s.audioDestination.disconnect(),s.audioDestination=null),s.audioContext&&s.audioContext.close(),s.audioContext=null,u.clearRect(0,0,a.width,a.height),a.stream&&(a.stream.stop(),a.stream=null)},this.resetVideoStreams=function(e){!e||e instanceof Array||(e=[e]),v(e)},this.name="MultiStreamsMixer",this.toString=function(){return this.name},this.getMixedStream=function(){o=!1;var n=function(){var e;v(),"captureStream"in a?e=a.captureStream():"mozCaptureStream"in a?e=a.mozCaptureStream():s.disableLogs||console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");var n=new h;return e.getTracks().filter(function(e){return"video"===e.kind}).forEach(function(e){n.addTrack(e)}),a.stream=n,n}(),t=function(){p.AudioContextConstructor||(p.AudioContextConstructor=new p.AudioContext),s.audioContext=p.AudioContextConstructor,s.audioSources=[],!0===s.useGainNode&&(s.gainNode=s.audioContext.createGain(),s.gainNode.connect(s.audioContext.destination),s.gainNode.gain.value=0);var n=0;if(e.forEach(function(e){if(e.getTracks().filter(function(e){return"audio"===e.kind}).length){n++;var t=s.audioContext.createMediaStreamSource(e);!0===s.useGainNode&&t.connect(s.gainNode),s.audioSources.push(t)}}),n)return s.audioDestination=s.audioContext.createMediaStreamDestination(),s.audioSources.forEach(function(e){e.connect(s.audioDestination)}),s.audioDestination.stream}();return t&&t.getTracks().filter(function(e){return"audio"===e.kind}).forEach(function(e){n.addTrack(e)}),e.forEach(function(e){}),n}}function R(e,n){e=e||[];var t,l,i=this;(n=n||{elementClass:"multi-streams-mixer",mimeType:"video/webm",video:{width:360,height:240}}).frameInterval||(n.frameInterval=10),n.video||(n.video={}),n.video.width||(n.video.width=360),n.video.height||(n.video.height=240),this.record=function(){var i;t=new A(e,n.elementClass||"multi-streams-mixer"),(i=[],e.forEach(function(e){x(e,"video").forEach(function(e){i.push(e)})}),i).length&&(t.frameInterval=n.frameInterval||10,t.width=n.video.width||360,t.height=n.video.height||240,t.startDrawingFrames()),n.previewStream&&"function"==typeof n.previewStream&&n.previewStream(t.getMixedStream()),(l=new O(t.getMixedStream(),n)).record()},this.stop=function(e){l&&l.stop(function(n){i.blob=n,e(n),i.clearRecordedData()})},this.pause=function(){l&&l.pause()},this.resume=function(){l&&l.resume()},this.clearRecordedData=function(){l&&(l.clearRecordedData(),l=null),t&&(t.releaseStreams(),t=null)},this.addStreams=function(i){if(!i)throw"First parameter is required.";i instanceof Array||(i=[i]),e.concat(i),l&&t&&(t.appendStreams(i),n.previewStream&&"function"==typeof n.previewStream&&n.previewStream(t.getMixedStream()))},this.resetVideoStreams=function(e){t&&(!e||e instanceof Array||(e=[e]),t.resetVideoStreams(e))},this.getMixer=function(e){return t},this.name="MultiStreamRecorder",this.toString=function(){return this.name}}function L(e,n){function t(){return new ReadableStream({start:function(t){var l=document.createElement("canvas"),i=document.createElement("video");i.srcObject=e,i.onplaying=function(){l.width=n.width,l.height=n.height;var e=l.getContext("2d"),o=1e3/n.frameRate;setTimeout(function l(){e.drawImage(i,0,0),t.enqueue(e.getImageData(0,0,n.width,n.height)),setTimeout(l,o)},o)},i.play()}})}var l,i;"undefined"!=typeof ReadableStream&&"undefined"!=typeof WritableStream||console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"),(n=n||{}).width=n.width||640,n.height=n.height||480,n.frameRate=n.frameRate||30,n.bitrate=n.bitrate||1200,this.record=function(){o=[],i=!1,this.blob=null,function e(r,a){if(n.workerPath||a){if(!n.workerPath&&a instanceof ArrayBuffer){var u=new Blob([a],{type:"text/javascript"});n.workerPath=p.createObjectURL(u)}n.workerPath||console.error("workerPath parameter is missing."),(l=new Worker(n.workerPath)).postMessage(n.webAssemblyPath||"https://unpkg.com/webm-wasm@latest/dist/webm-wasm.wasm"),l.addEventListener("message",function(e){"READY"===e.data?(l.postMessage({width:n.width,height:n.height,bitrate:n.bitrate||1200,timebaseDen:n.frameRate||30,realtime:!0}),t().pipeTo(new WritableStream({write:function(e){l&&l.postMessage(e.data.buffer,[e.data.buffer])}}))):e.data&&(i||o.push(e.data))})}else fetch("https://unpkg.com/webm-wasm@latest/dist/webm-worker.js").then(function(n){n.arrayBuffer().then(function(n){e(r,n)})})}(e),"function"==typeof n.initCallback&&n.initCallback()},this.pause=function(){i=!0},this.resume=function(){i=!1};var o=[];this.stop=function(e){l&&(l.postMessage(null),l.terminate(),l=null),this.blob=new Blob(o,{type:"video/webm"}),e(this.blob)},this.name="WebAssemblyRecorder",this.toString=function(){return this.name},this.clearRecordedData=function(){o=[],i=!1,this.blob=null},this.blob=null}"undefined"!=typeof r&&(r.DiskStorage=N),"undefined"!=typeof r&&(r.GifRecorder=I),"undefined"==typeof r&&(e.exports=A,void 0===(i=(function(){return A}).apply(n,[]))||(e.exports=i)),"undefined"!=typeof r&&(r.MultiStreamRecorder=R),"undefined"!=typeof r&&(r.RecordRTCPromisesHandler=function(e,n){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if("undefined"==typeof e)throw'First argument "MediaStream" is required.';var t=this;t.recordRTC=new r(e,n),this.startRecording=function(){return new Promise(function(e,n){try{t.recordRTC.startRecording(),e()}catch(e){n(e)}})},this.stopRecording=function(){return new Promise(function(e,n){try{t.recordRTC.stopRecording(function(l){t.blob=t.recordRTC.getBlob(),t.blob&&t.blob.size?e(l):n("Empty blob.",t.blob)})}catch(e){n(e)}})},this.pauseRecording=function(){return new Promise(function(e,n){try{t.recordRTC.pauseRecording(),e()}catch(e){n(e)}})},this.resumeRecording=function(){return new Promise(function(e,n){try{t.recordRTC.resumeRecording(),e()}catch(e){n(e)}})},this.getDataURL=function(e){return new Promise(function(e,n){try{t.recordRTC.getDataURL(function(n){e(n)})}catch(e){n(e)}})},this.getBlob=function(){return new Promise(function(e,n){try{e(t.recordRTC.getBlob())}catch(e){n(e)}})},this.getInternalRecorder=function(){return new Promise(function(e,n){try{e(t.recordRTC.getInternalRecorder())}catch(e){n(e)}})},this.reset=function(){return new Promise(function(e,n){try{e(t.recordRTC.reset())}catch(e){n(e)}})},this.destroy=function(){return new Promise(function(e,n){try{e(t.recordRTC.destroy())}catch(e){n(e)}})},this.getState=function(){return new Promise(function(e,n){try{e(t.recordRTC.getState())}catch(e){n(e)}})},this.blob=null,this.version="5.5.8"}),"undefined"!=typeof r&&(r.WebAssemblyRecorder=L)}).call(n,t(20),t(21))},function(e,n){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,n){var t,l,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(e){l=r}}();var u,s=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?s=u.concat(s):d=-1,s.length&&p())}function p(){if(!c){var e=a(h);c=!0;for(var n=s.length;n;){for(u=s,s=[];++d1)for(var t=1;t",activatedByChanged:function(n){e.JsonObject.metaData.addClass("emotionsratings",[{name:"hasOther",visible:!1},{name:"otherText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"renderAs",visible:!1}],null,"dropdown"),e.JsonObject.metaData.addProperties("emotionsratings",[{name:"emotions:itemvalues",default:["angry","disappointed","meh","happy","inLove"]},{name:"emotionSize:number",default:30},{name:"emotionsCount:number",default:5},{name:"bgEmotion",default:"happy"},{name:"emotionColor",default:"#FF0066"}])},afterRender:function(e,t){console.log("**********************88initialRating****************");var l=(e.emotions||[]).map(function(e){return e.value});0===l.length&&(l=["angry","disappointed","meh","happy","inLove"]);var i={emotionSize:e.emotionSize,bgEmotion:e.bgEmotion,emotions:l,initialRating:e.value,color:e.emotionColor,count:e.emotionsCount,onUpdate:function(n){e.value=n}};function o(){t.innerHTML="
",n(t).off(),i.initialRating=e.value||0,i.disabled=e.isReadOnly,n(t).find("div").emotionsRating(i)}o(),e.valueChangedCallback=o,e.readOnlyChangedCallback=o},willUnmount:function(e,t){t.innerHTML=null,n(t).off(),e.readOnlyChangedCallback=null,e.valueChangedCallback=null},pdfQuestionType:"dropdown"},"customtype")}Object.defineProperty(n,"__esModule",{value:!0}),"undefined"!=typeof Survey&&l(Survey,window.$),n.default=l},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t(0);t.d(n,"icheck",function(){return l.default});var i=t(1);t.d(n,"select2",function(){return i.default});var o=t(2);t.d(n,"inputmask",function(){return o.default});var r=t(4);t.d(n,"jquerybarrating",function(){return r.default});var a=t(5);t.d(n,"jqueryuidatepicker",function(){return a.default});var u=t(6);t.d(n,"nouislider",function(){return u.default});var s=t(8);t.d(n,"select2tagbox",function(){return s.default});var c=t(9);t.d(n,"signaturepad",function(){return c.default});var d=t(11);t.d(n,"sortablejs",function(){return d.default});var h=t(13);t.d(n,"ckeditor",function(){return h.default});var p=t(14);t.d(n,"autocomplete",function(){return p.default});var f=t(15);t.d(n,"prettycheckbox",function(){return f.default});var g=t(16);t.d(n,"bootstrapslider",function(){return g.default});var m=t(18);t.d(n,"microphone",function(){return m.default});var v=t(22);t.d(n,"emotionsratings",function(){return v.default});var _=t(24);t.d(n,"bootstrapdatepicker",function(){return _.a})},function(e,n,t){"use strict";function l(e){!$.fn.bootstrapDP&&$.fn.datepicker&&$.fn.datepicker.noConflict&&($.fn.bootstrapDP=$.fn.datepicker.noConflict(),$.fn.datepicker||($.fn.datepicker=$.fn.bootstrapDP)),e.CustomWidgetCollection.Instance.addCustomWidget({name:"bootstrapdatepicker",title:"Date picker",iconName:"icon-datepicker",widgetIsLoaded:function(){return!!$.fn.bootstrapDP},isFit:function(e){return"bootstrapdatepicker"===e.getType()},htmlTemplate:"",activatedByChanged:function(n){e.JsonObject.metaData.addClass("bootstrapdatepicker",[{name:"inputType",visible:!1},{name:"inputFormat",visible:!1},{name:"inputMask",visible:!1}],null,"text"),e.JsonObject.metaData.addProperty("bootstrapdatepicker",{name:"dateFormat"})},afterRender:function(e,n){var t=$(n).is(".widget-datepicker")?$(n):$(n).find(".widget-datepicker");t.bootstrapDP({enableOnReadonly:!1}).on("changeDate",function(n){e.value=moment(n.date).format("DD/MM/YYYY")}),e.valueChangedCallback=function(){t.bootstrapDP("update",moment(e.value,"DD/MM/YYYY").toDate())},e.valueChangedCallback(),e.readOnlyChangedCallback=function(){e.isReadOnly?t.prop("readonly",!0):t.removeAttr("readonly")},e.readOnlyChangedCallback()},willUnmount:function(e,n){($(n).is(".widget-datepicker")?$(n):$(n).find(".widget-datepicker")).bootstrapDP("destroy"),e.readOnlyChangedCallback=void 0,e.valueChangedCallback=void 0},pdfQuestionType:"text"},"customtype")}"undefined"!=typeof Survey&&l(Survey,window),n.a=l}])},e.exports=l(t("7mJ/"),t("zF5W"),t("kBR5"),t("/dO2"),t("ThwT"))},"1Q68":function(e,n,t){"use strict";n.a=function(e){return e&&"function"==typeof e.schedule}},"4Cmz":function(e,n,t){var l,i,o,r;r=function(e,n,t){function l(e,t){for(var l="",i=0;i1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&!1===e.integerOptional&&(e.positionCaretOnClick="lvp"),e.definitions[";"]=e.definitions["~"],e.definitions[";"].definitionSymbol="~",!0===e.numericInput&&(e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e.decimalProtect=!1);var o="[+]";if(o+=l(e.prefix,e),o+=!0===e.integerOptional?"~{1,"+e.integerDigits+"}":"~{"+e.integerDigits+"}",e.digits!==t){e.radixPointDefinitionSymbol=e.decimalProtect?":":e.radixPoint;var r=e.digits.toString().split(",");isFinite(r[0]&&r[1]&&isFinite(r[1]))?o+=e.radixPointDefinitionSymbol+";{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(o+=e.digitsOptional?"["+e.radixPointDefinitionSymbol+";{1,"+e.digits+"}]":e.radixPointDefinitionSymbol+";{"+e.digits+"}")}return o+=l(e.suffix,e),o+="[-]",e.greedy=!1,o},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(n,l,i,o,r){if("-"===i||i===r.negationSymbol.front)return!0===r.allowMinus&&(r.isNegative=r.isNegative===t||!r.isNegative,""===n.join("")||{caret:l,dopost:!0});if(!1===o&&i===r.radixPoint&&r.digits!==t&&(isNaN(r.digits)||parseInt(r.digits)>0)){var a=e.inArray(r.radixPoint,n);if(-1!==a)return!0===r.numericInput?l===a:{caret:a+1}}return!0},postValidation:function(l,i,o){var r=o.suffix.split(""),a=o.prefix.split("");if(i.pos===t&&i.caret!==t&&!0!==i.dopost)return i;var u=i.caret!==t?i.caret:i.pos,s=l.slice();o.numericInput&&(u=s.length-u-1,s=s.reverse());var c=s[u];if(c===o.groupSeparator&&(c=s[u+=1]),u===s.length-o.suffix.length-1&&c===o.radixPoint)return i;c!==t&&c!==o.radixPoint&&c!==o.negationSymbol.front&&c!==o.negationSymbol.back&&(s[u]="?",o.prefix.length>0&&u>=(!1===o.isNegative?1:0)&&u0&&u>=s.length-o.suffix.length-(!1===o.isNegative?1:0)&&(r[u-(s.length-o.suffix.length-(!1===o.isNegative?1:0))]="?")),a=a.join(""),r=r.join("");var d=s.join("").replace(a,"");if(d=(d=(d=(d=d.replace(r,"")).replace(new RegExp(n.escapeRegex(o.groupSeparator),"g"),"")).replace(new RegExp("[-"+n.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(n.escapeRegex(o.negationSymbol.back)+"$"),""),isNaN(o.placeholder)&&(d=d.replace(new RegExp(n.escapeRegex(o.placeholder),"g"),"")),d.length>1&&1!==d.indexOf(o.radixPoint)&&("0"===c&&(d=d.replace(/^\?/g,"")),d=d.replace(/^0/g,"")),d.charAt(0)===o.radixPoint&&""!==o.radixPoint&&!0!==o.numericInput&&(d="0"+d),""!==d){if(d=d.split(""),(!o.digitsOptional||o.enforceDigitsOnBlur&&"blur"===i.event)&&isFinite(o.digits)){var h=e.inArray(o.radixPoint,d),p=e.inArray(o.radixPoint,s);-1===h&&(d.push(o.radixPoint),h=d.length-1);for(var f=1;f<=o.digits;f++)o.digitsOptional&&(!o.enforceDigitsOnBlur||"blur"!==i.event)||d[h+f]!==t&&d[h+f]!==o.placeholder.charAt(0)?-1!==p&&s[p+f]!==t&&(d[h+f]=d[h+f]||s[p+f]):d[h+f]=i.placeholder||o.placeholder.charAt(0)}if(!0!==o.autoGroup||""===o.groupSeparator||c===o.radixPoint&&i.pos===t&&!i.dopost)d=d.join("");else{var g=d[d.length-1]===o.radixPoint&&i.c===o.radixPoint;d=n(function(e,n){var t="";if(t+="("+n.groupSeparator+"*{"+n.groupSize+"}){*}",""!==n.radixPoint){var l=d.join("").split(n.radixPoint);l[1]&&(t+=n.radixPoint+"*{"+l[1].match(/^\d*\??\d*/)[0].length+"}")}return t}(0,o),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(d.join("")),g&&(d+=o.radixPoint),d.charAt(0)===o.groupSeparator&&d.substr(1)}}if(o.isNegative&&"blur"===i.event&&(o.isNegative="0"!==d),d=a+d,d+=r,o.isNegative&&(d=o.negationSymbol.front+d,d+=o.negationSymbol.back),d=d.split(""),c!==t)if(c!==o.radixPoint&&c!==o.negationSymbol.front&&c!==o.negationSymbol.back)(u=e.inArray("?",d))>-1?d[u]=c:u=i.caret||0;else if(c===o.radixPoint||c===o.negationSymbol.front||c===o.negationSymbol.back){var m=e.inArray(c,d);-1!==m&&(u=m)}o.numericInput&&(u=d.length-u-1,d=d.reverse());var v={caret:c===t||i.pos!==t?u+(o.numericInput?-1:1):u,buffer:d,refreshFromBuffer:i.dopost||l.join("")!==d.join("")};return v.refreshFromBuffer?v:i},onBeforeWrite:function(l,i,o,r){if(l)switch(l.type){case"keydown":return r.postValidation(i,{caret:o,dopost:!0},r);case"blur":case"checkval":var a;if(function(e){e.parseMinMaxOptions===t&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp(n.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp(n.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(r),null!==r.min||null!==r.max){if(a=r.onUnMask(i.join(""),t,e.extend({},r,{unmaskAsNumber:!0})),null!==r.min&&ar.max)return r.isNegative=r.max<0,r.postValidation(r.max.toString().replace(".",r.radixPoint).split(""),{caret:o,dopost:!0,placeholder:"0"},r)}return r.postValidation(i,{caret:o,placeholder:"0",event:"blur"},r);case"_checkval":return{caret:o}}},regex:{integerPart:function(e,t){return t?new RegExp("["+n.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+n.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+n.escapeRegex(e.groupSeparator)+n.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,l,i,o,r,a){var u=o?new RegExp("[0-9"+n.escapeRegex(r.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e);if(!0===u){if(!0!==r.numericInput&&l.validPositions[i]!==t&&"~"===l.validPositions[i].match.def&&!a){var s=l.buffer.join(""),c=(s=(s=s.replace(new RegExp("[-"+n.escapeRegex(r.negationSymbol.front)+"]","g"),"")).replace(new RegExp(n.escapeRegex(r.negationSymbol.back)+"$"),"")).split(r.radixPoint);c.length>1&&(c[1]=c[1].replace(/0/g,r.placeholder.charAt(0))),"0"===c[0]&&(c[0]=c[0].replace(/0/g,r.placeholder.charAt(0))),s=c[0]+r.radixPoint+c[1]||"";var d=l._buffer.join("");for(s===r.radixPoint&&(s=d);null===s.match(n.escapeRegex(d)+"$");)d=d.slice(1);u=(s=(s=s.replace(d,"")).split(""))[i]===t?{pos:i,remove:i}:{pos:i}}}else o||e!==r.radixPoint||l.validPositions[i-1]!==t||(l.buffer[i]="0",u={pos:i+1});return u},cardinality:1},"+":{validator:function(e,n,t,l,i){return i.allowMinus&&("-"===e||e===i.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(e,n,t,l,i){return i.allowMinus&&e===i.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,t,l,i,o){var r="["+n.escapeRegex(o.radixPoint)+"]",a=new RegExp(r).test(e);return a&&t.validPositions[l]&&t.validPositions[l].match.placeholder===o.radixPoint&&(a={caret:l+1}),a},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(e,t,l){if(""===t&&!0===l.nullable)return t;var i=e.replace(l.prefix,"");return i=(i=i.replace(l.suffix,"")).replace(new RegExp(n.escapeRegex(l.groupSeparator),"g"),""),""!==l.placeholder.charAt(0)&&(i=i.replace(new RegExp(l.placeholder.charAt(0),"g"),"0")),l.unmaskAsNumber?(""!==l.radixPoint&&-1!==i.indexOf(l.radixPoint)&&(i=i.replace(n.escapeRegex.call(this,l.radixPoint),".")),i=(i=i.replace(new RegExp("^"+n.escapeRegex(l.negationSymbol.front)),"-")).replace(new RegExp(n.escapeRegex(l.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(e,t){var l=e.join("");if(e.slice().join("")!==l)return!1;var i=l.replace(t.prefix,"");return i=(i=i.replace(t.suffix,"")).replace(new RegExp(n.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(i=i.replace(n.escapeRegex(t.radixPoint),".")),isFinite(i)},onBeforeMask:function(e,l){if(l.isNegative=t,e=e.toString().charAt(e.length-1)===l.radixPoint?e.toString().substr(0,e.length-1):e.toString(),""!==l.radixPoint&&isFinite(e)){var i=e.split("."),o=""!==l.groupSeparator?parseInt(l.groupSize):0;2===i.length&&(i[0].length>o||i[1].length>o||i[0].length<=o&&i[1].lengthr.length?(e=e.replace(/\./g,"")).replace(",",l.radixPoint):r.length>a.length?(e=e.replace(/,/g,"")).replace(".",l.radixPoint):e.indexOf(".")l)return e;if(nr?e:r}if(e<=l&&l<=n){for(var a=l.toString().slice(0,2);n0&&n-1 in e)}x.fn=x.prototype={jquery:"3.4.1",constructor:x,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=x.merge(this.constructor(),e);return n.prevObject=this,n},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(n,t){return e.call(n,t,n)}))},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 n=this.length,t=+e+(e<0?n:0);return this.pushStack(t>=0&&t+~]|"+j+")"+j+"*"),W=new RegExp(j+"|>"),G=new RegExp(F),Y=new RegExp("^"+V+"$"),Z={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,$=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,ne=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","ig"),te=function(e,n,t){var l="0x"+n-65536;return l!=l||t?n:l<0?String.fromCharCode(l+65536):String.fromCharCode(l>>10|55296,1023&l|56320)},le=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,n){return n?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},re=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{I.apply(T=A.call(C.childNodes),C.childNodes)}catch(e){I={apply:T.length?function(e,n){N.apply(e,A.call(n))}:function(e,n){for(var t=e.length,l=0;e[t++]=n[l++];);e.length=t-1}}}function ae(e,n,l,i){var o,a,s,c,d,f,v,_=n&&n.ownerDocument,w=n?n.nodeType:9;if(l=l||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return l;if(!i&&((n?n.ownerDocument||n:C)!==p&&h(n),n=n||p,g)){if(11!==w&&(d=Q.exec(e)))if(o=d[1]){if(9===w){if(!(s=n.getElementById(o)))return l;if(s.id===o)return l.push(s),l}else if(_&&(s=_.getElementById(o))&&y(n,s)&&s.id===o)return l.push(s),l}else{if(d[2])return I.apply(l,n.getElementsByTagName(e)),l;if((o=d[3])&&t.getElementsByClassName&&n.getElementsByClassName)return I.apply(l,n.getElementsByClassName(o)),l}if(t.qsa&&!O[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==n.nodeName.toLowerCase())){if(v=e,_=n,1===w&&W.test(e)){for((c=n.getAttribute("id"))?c=c.replace(le,ie):n.setAttribute("id",c=b),a=(f=r(e)).length;a--;)f[a]="#"+c+" "+ye(f[a]);v=f.join(","),_=ee.test(e)&&ve(n.parentNode)||n}try{return I.apply(l,_.querySelectorAll(v)),l}catch(n){O(e,!0)}finally{c===b&&n.removeAttribute("id")}}}return u(e.replace(U,"$1"),n,l,i)}function ue(){var e=[];return function n(t,i){return e.push(t+" ")>l.cacheLength&&delete n[e.shift()],n[t+" "]=i}}function se(e){return e[b]=!0,e}function ce(e){var n=p.createElement("fieldset");try{return!!e(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function de(e,n){for(var t=e.split("|"),i=t.length;i--;)l.attrHandle[t[i]]=n}function he(e,n){var t=n&&e,l=t&&1===e.nodeType&&1===n.nodeType&&e.sourceIndex-n.sourceIndex;if(l)return l;if(t)for(;t=t.nextSibling;)if(t===n)return-1;return e?1:-1}function pe(e){return function(n){return"input"===n.nodeName.toLowerCase()&&n.type===e}}function fe(e){return function(n){var t=n.nodeName.toLowerCase();return("input"===t||"button"===t)&&n.type===e}}function ge(e){return function(n){return"form"in n?n.parentNode&&!1===n.disabled?"label"in n?"label"in n.parentNode?n.parentNode.disabled===e:n.disabled===e:n.isDisabled===e||n.isDisabled!==!e&&re(n)===e:n.disabled===e:"label"in n&&n.disabled===e}}function me(e){return se(function(n){return n=+n,se(function(t,l){for(var i,o=e([],t.length,n),r=o.length;r--;)t[i=o[r]]&&(t[i]=!(l[i]=t[i]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(n in t=ae.support={},o=ae.isXML=function(e){var n=(e.ownerDocument||e).documentElement;return!K.test(e.namespaceURI||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var n,i,r=e?e.ownerDocument||e:C;return r!==p&&9===r.nodeType&&r.documentElement?(f=(p=r).documentElement,g=!o(p),C!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),t.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),t.getElementsByTagName=ce(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),t.getElementsByClassName=J.test(p.getElementsByClassName),t.getById=ce(function(e){return f.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length}),t.getById?(l.filter.ID=function(e){var n=e.replace(ne,te);return function(e){return e.getAttribute("id")===n}},l.find.ID=function(e,n){if("undefined"!=typeof n.getElementById&&g){var t=n.getElementById(e);return t?[t]:[]}}):(l.filter.ID=function(e){var n=e.replace(ne,te);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},l.find.ID=function(e,n){if("undefined"!=typeof n.getElementById&&g){var t,l,i,o=n.getElementById(e);if(o){if((t=o.getAttributeNode("id"))&&t.value===e)return[o];for(i=n.getElementsByName(e),l=0;o=i[l++];)if((t=o.getAttributeNode("id"))&&t.value===e)return[o]}return[]}}),l.find.TAG=t.getElementsByTagName?function(e,n){return"undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(e):t.qsa?n.querySelectorAll(e):void 0}:function(e,n){var t,l=[],i=0,o=n.getElementsByTagName(e);if("*"===e){for(;t=o[i++];)1===t.nodeType&&l.push(t);return l}return o},l.find.CLASS=t.getElementsByClassName&&function(e,n){if("undefined"!=typeof n.getElementsByClassName&&g)return n.getElementsByClassName(e)},v=[],m=[],(t.qsa=J.test(p.querySelectorAll))&&(ce(function(e){f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+j+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var n=p.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(t.matchesSelector=J.test(_=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce(function(e){t.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),v.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),n=J.test(f.compareDocumentPosition),y=n||J.test(f.contains)?function(e,n){var t=9===e.nodeType?e.documentElement:e,l=n&&n.parentNode;return e===l||!(!l||1!==l.nodeType||!(t.contains?t.contains(l):e.compareDocumentPosition&&16&e.compareDocumentPosition(l)))}:function(e,n){if(n)for(;n=n.parentNode;)if(n===e)return!0;return!1},P=n?function(e,n){if(e===n)return d=!0,0;var l=!e.compareDocumentPosition-!n.compareDocumentPosition;return l||(1&(l=(e.ownerDocument||e)===(n.ownerDocument||n)?e.compareDocumentPosition(n):1)||!t.sortDetached&&n.compareDocumentPosition(e)===l?e===p||e.ownerDocument===C&&y(C,e)?-1:n===p||n.ownerDocument===C&&y(C,n)?1:c?R(c,e)-R(c,n):0:4&l?-1:1)}:function(e,n){if(e===n)return d=!0,0;var t,l=0,i=e.parentNode,o=n.parentNode,r=[e],a=[n];if(!i||!o)return e===p?-1:n===p?1:i?-1:o?1:c?R(c,e)-R(c,n):0;if(i===o)return he(e,n);for(t=e;t=t.parentNode;)r.unshift(t);for(t=n;t=t.parentNode;)a.unshift(t);for(;r[l]===a[l];)l++;return l?he(r[l],a[l]):r[l]===C?-1:a[l]===C?1:0},p):p},ae.matches=function(e,n){return ae(e,null,null,n)},ae.matchesSelector=function(e,n){if((e.ownerDocument||e)!==p&&h(e),t.matchesSelector&&g&&!O[n+" "]&&(!v||!v.test(n))&&(!m||!m.test(n)))try{var l=_.call(e,n);if(l||t.disconnectedMatch||e.document&&11!==e.document.nodeType)return l}catch(e){O(n,!0)}return ae(n,p,null,[e]).length>0},ae.contains=function(e,n){return(e.ownerDocument||e)!==p&&h(e),y(e,n)},ae.attr=function(e,n){(e.ownerDocument||e)!==p&&h(e);var i=l.attrHandle[n.toLowerCase()],o=i&&E.call(l.attrHandle,n.toLowerCase())?i(e,n,!g):void 0;return void 0!==o?o:t.attributes||!g?e.getAttribute(n):(o=e.getAttributeNode(n))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(le,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var n,l=[],i=0,o=0;if(d=!t.detectDuplicates,c=!t.sortStable&&e.slice(0),e.sort(P),d){for(;n=e[o++];)n===e[o]&&(i=l.push(o));for(;i--;)e.splice(l[i],1)}return c=null,e},i=ae.getText=function(e){var n,t="",l=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;n=e[l++];)t+=i(n);return t},(l=ae.selectors={cacheLength:50,createPseudo:se,match:Z,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(ne,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,te),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return Z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&G.test(t)&&(n=r(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(ne,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===n}},CLASS:function(e){var n=k[e+" "];return n||(n=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&k(e,function(e){return n.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,t){return function(l){var i=ae.attr(l,e);return null==i?"!="===n:!n||(i+="","="===n?i===t:"!="===n?i!==t:"^="===n?t&&0===i.indexOf(t):"*="===n?t&&i.indexOf(t)>-1:"$="===n?t&&i.slice(-t.length)===t:"~="===n?(" "+i.replace(H," ")+" ").indexOf(t)>-1:"|="===n&&(i===t||i.slice(0,t.length+1)===t+"-"))}},CHILD:function(e,n,t,l,i){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===n;return 1===l&&0===i?function(e){return!!e.parentNode}:function(n,t,u){var s,c,d,h,p,f,g=o!==r?"nextSibling":"previousSibling",m=n.parentNode,v=a&&n.nodeName.toLowerCase(),_=!u&&!a,y=!1;if(m){if(o){for(;g;){for(h=n;h=h[g];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&_){for(y=(p=(s=(c=(d=(h=m)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&s[1])&&s[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===n){c[e]=[w,p,y];break}}else if(_&&(y=p=(s=(c=(d=(h=n)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&s[1]),!1===y)for(;(h=++p&&h&&h[g]||(y=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++y||(_&&((c=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[w,y]),h!==n)););return(y-=i)===l||y%l==0&&y/l>=0}}},PSEUDO:function(e,n){var t,i=l.pseudos[e]||l.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[b]?i(n):i.length>1?(t=[e,e,"",n],l.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var l,o=i(e,n),r=o.length;r--;)e[l=R(e,o[r])]=!(t[l]=o[r])}):function(e){return i(e,0,t)}):i}},pseudos:{not:se(function(e){var n=[],t=[],l=a(e.replace(U,"$1"));return l[b]?se(function(e,n,t,i){for(var o,r=l(e,null,i,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(n[a]=o))}):function(e,i,o){return n[0]=e,l(n,null,o,t),n[0]=null,!t.pop()}}),has:se(function(e){return function(n){return ae(e,n).length>0}}),contains:se(function(e){return e=e.replace(ne,te),function(n){return(n.textContent||i(n)).indexOf(e)>-1}}),lang:se(function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(ne,te).toLowerCase(),function(n){var t;do{if(t=g?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return(t=t.toLowerCase())===e||0===t.indexOf(e+"-")}while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var t=e.location&&e.location.hash;return t&&t.slice(1)===n.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&!!e.checked||"option"===n&&!!e.selected},selected:function(e){return!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!l.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&"button"===e.type||"button"===n},text:function(e){var n;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,n){return[n-1]}),eq:me(function(e,n,t){return[t<0?t+n:t]}),even:me(function(e,n){for(var t=0;tn?n:t;--l>=0;)e.push(l);return e}),gt:me(function(e,n,t){for(var l=t<0?t+n:t;++l1?function(n,t,l){for(var i=e.length;i--;)if(!e[i](n,t,l))return!1;return!0}:e[0]}function we(e,n,t,l,i){for(var o,r=[],a=0,u=e.length,s=null!=n;a-1&&(o[s]=!(r[s]=d))}}else v=we(v===r?v.splice(f,v.length):v),i?i(null,r,v,u):I.apply(r,v)})}function ke(e){for(var n,t,i,o=e.length,r=l.relative[e[0].type],a=r||l.relative[" "],u=r?1:0,c=be(function(e){return e===n},a,!0),d=be(function(e){return R(n,e)>-1},a,!0),h=[function(e,t,l){var i=!r&&(l||t!==s)||((n=t).nodeType?c(e,t,l):d(e,t,l));return n=null,i}];u1&&Ce(h),u>1&&ye(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(U,"$1"),t,u0,i=e.length>0,o=function(o,r,a,u,c){var d,f,m,v=0,_="0",y=o&&[],b=[],C=s,x=o||i&&l.find.TAG("*",c),k=w+=null==C?1:Math.random()||.1,M=x.length;for(c&&(s=r===p||r||c);_!==M&&null!=(d=x[_]);_++){if(i&&d){for(f=0,r||d.ownerDocument===p||(h(d),a=!g);m=e[f++];)if(m(d,r||p,a)){u.push(d);break}c&&(w=k)}t&&((d=!m&&d)&&v--,o&&y.push(d))}if(v+=_,t&&_!==v){for(f=0;m=n[f++];)m(y,b,r,a);if(o){if(v>0)for(;_--;)y[_]||b[_]||(b[_]=D.call(u));b=we(b)}I.apply(u,b),c&&!o&&b.length>0&&v+n.length>1&&ae.uniqueSort(u)}return c&&(w=k,s=C),y};return t?se(o):o}(o,i))).selector=e}return a},u=ae.select=function(e,n,t,i){var o,u,s,c,d,h="function"==typeof e&&e,p=!i&&r(e=h.selector||e);if(t=t||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(s=u[0]).type&&9===n.nodeType&&g&&l.relative[u[1].type]){if(!(n=(l.find.ID(s.matches[0].replace(ne,te),n)||[])[0]))return t;h&&(n=n.parentNode),e=e.slice(u.shift().value.length)}for(o=Z.needsContext.test(e)?0:u.length;o--&&!l.relative[c=(s=u[o]).type];)if((d=l.find[c])&&(i=d(s.matches[0].replace(ne,te),ee.test(u[0].type)&&ve(n.parentNode)||n))){if(u.splice(o,1),!(e=i.length&&ye(u)))return I.apply(t,i),t;break}}return(h||a(e,p))(i,n,!g,t,!n||ee.test(e)&&ve(n.parentNode)||n),t},t.sortStable=b.split("").sort(P).join("")===b,t.detectDuplicates=!!d,h(),t.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,n,t){if(!t)return e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),t.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,n,t){if(!t&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(L,function(e,n,t){var l;if(!t)return!0===e[n]?n.toLowerCase():(l=e.getAttributeNode(n))&&l.specified?l.value:null}),ae}(t);x.find=S,x.expr=S.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var O=function(e,n,t){for(var l=[],i=void 0!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&x(e).is(t))break;l.push(e)}return l},P=function(e,n){for(var t=[];e;e=e.nextSibling)1===e.nodeType&&e!==n&&t.push(e);return t},E=x.expr.match.needsContext;function T(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(e,n,t){return _(n)?x.grep(e,function(e,l){return!!n.call(e,l,e)!==t}):n.nodeType?x.grep(e,function(e){return e===n!==t}):"string"!=typeof n?x.grep(e,function(e){return d.call(n,e)>-1!==t}):x.filter(n,e,t)}x.filter=function(e,n,t){var l=n[0];return t&&(e=":not("+e+")"),1===n.length&&1===l.nodeType?x.find.matchesSelector(l,e)?[l]:[]:x.find.matches(e,x.grep(n,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var n,t,l=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(n=0;n1?x.uniqueSort(t):t},filter:function(e){return this.pushStack(N(this,e||[],!1))},not:function(e){return this.pushStack(N(this,e||[],!0))},is:function(e){return!!N(this,"string"==typeof e&&E.test(e)?x(e):e||[],!1).length}});var I,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,n,t){var l,i;if(!e)return this;if(t=t||I,"string"==typeof e){if(!(l="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!l[1]&&n)return!n||n.jquery?(n||t).find(e):this.constructor(n).find(e);if(l[1]){if(x.merge(this,x.parseHTML(l[1],(n=n instanceof x?n[0]:n)&&n.nodeType?n.ownerDocument||n:r,!0)),D.test(l[1])&&x.isPlainObject(n))for(l in n)_(this[l])?this[l](n[l]):this.attr(l,n[l]);return this}return(i=r.getElementById(l[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==t.ready?t.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,I=x(r);var R=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function j(e,n){for(;(e=e[n])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var n=x(e,this),t=n.length;return this.filter(function(){for(var e=0;e-1:1===t.nodeType&&x.find.matchesSelector(t,e))){o.push(t);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(x(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var n=e.parentNode;return n&&11!==n.nodeType?n:null},parents:function(e){return O(e,"parentNode")},parentsUntil:function(e,n,t){return O(e,"parentNode",t)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,n,t){return O(e,"nextSibling",t)},prevUntil:function(e,n,t){return O(e,"previousSibling",t)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return"undefined"!=typeof e.contentDocument?e.contentDocument:(T(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,n){x.fn[e]=function(t,l){var i=x.map(this,n,t);return"Until"!==e.slice(-5)&&(l=t),l&&"string"==typeof l&&(i=x.filter(l,i)),this.length>1&&(L[e]||x.uniqueSort(i),R.test(e)&&i.reverse()),this.pushStack(i)}});var V=/[^\x20\t\r\n\f]+/g;function q(e){return e}function F(e){throw e}function H(e,n,t,l){var i;try{e&&_(i=e.promise)?i.call(e).done(n).fail(t):e&&_(i=e.then)?i.call(e,n,t):n.apply(void 0,[e].slice(l))}catch(e){t.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var n={};return x.each(e.match(V)||[],function(e,t){n[t]=!0}),n}(e):x.extend({},e);var n,t,l,i,o=[],r=[],a=-1,u=function(){for(i=i||e.once,l=n=!0;r.length;a=-1)for(t=r.shift();++a-1;)o.splice(t,1),t<=a&&a--}),this},has:function(e){return e?x.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=r=[],o=t="",this},disabled:function(){return!o},lock:function(){return i=r=[],t||n||(o=t=""),this},locked:function(){return!!i},fireWith:function(e,t){return i||(t=[e,(t=t||[]).slice?t.slice():t],r.push(t),n||u()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!l}};return s},x.extend({Deferred:function(e){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],l="pending",i={state:function(){return l},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(t){x.each(n,function(n,l){var i=_(e[l[4]])&&e[l[4]];o[l[1]](function(){var e=i&&i.apply(this,arguments);e&&_(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[l[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,l,i){var o=0;function r(e,n,l,i){return function(){var a=this,u=arguments,s=function(){var t,s;if(!(e=o&&(l!==F&&(a=void 0,u=[t]),n.rejectWith(a,u))}};e?c():(x.Deferred.getStackHook&&(c.stackTrace=x.Deferred.getStackHook()),t.setTimeout(c))}}return x.Deferred(function(t){n[0][3].add(r(0,t,_(i)?i:q,t.notifyWith)),n[1][3].add(r(0,t,_(e)?e:q)),n[2][3].add(r(0,t,_(l)?l:F))}).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},o={};return x.each(n,function(e,t){var r=t[2],a=t[5];i[t[1]]=r.add,a&&r.add(function(){l=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),r.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=r.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var n=arguments.length,t=n,l=Array(t),i=u.call(arguments),o=x.Deferred(),r=function(e){return function(t){l[e]=this,i[e]=arguments.length>1?u.call(arguments):t,--n||o.resolveWith(l,i)}};if(n<=1&&(H(e,o.done(r(t)).resolve,o.reject,!n),"pending"===o.state()||_(i[t]&&i[t].then)))return o.then();for(;t--;)H(i[t],r(t),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&U.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},x.readyException=function(e){t.setTimeout(function(){throw e})};var B=x.Deferred();function z(){r.removeEventListener("DOMContentLoaded",z),t.removeEventListener("load",z),x.ready()}x.fn.ready=function(e){return B.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||B.resolveWith(r,[x]))}}),x.ready.then=B.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?t.setTimeout(x.ready):(r.addEventListener("DOMContentLoaded",z),t.addEventListener("load",z));var W=function(e,n,t,l,i,o,r){var a=0,u=e.length,s=null==t;if("object"===w(t))for(a in i=!0,t)W(e,n,a,t[a],!0,o,r);else if(void 0!==l&&(i=!0,_(l)||(r=!0),s&&(r?(n.call(e,l),n=null):(s=n,n=function(e,n,t){return s.call(x(e),t)})),n))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),x.extend({queue:function(e,n,t){var l;if(e)return l=J.get(e,n=(n||"fx")+"queue"),t&&(!l||Array.isArray(t)?l=J.access(e,n,x.makeArray(t)):l.push(t)),l||[]},dequeue:function(e,n){var t=x.queue(e,n=n||"fx"),l=t.length,i=t.shift(),o=x._queueHooks(e,n);"inprogress"===i&&(i=t.shift(),l--),i&&("fx"===n&&t.unshift("inprogress"),delete o.stop,i.call(e,function(){x.dequeue(e,n)},o)),!l&&o&&o.empty.fire()},_queueHooks:function(e,n){var t=n+"queueHooks";return J.get(e,t)||J.access(e,t,{empty:x.Callbacks("once memory").add(function(){J.remove(e,[n+"queue",t])})})}}),x.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,_e={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,n){var t;return t="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(n||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(n||"*"):[],void 0===n||n&&T(e,n)?x.merge([e],t):t}function be(e,n){for(var t=0,l=e.length;t-1)i&&i.push(o);else if(s=ae(o),r=ye(d.appendChild(o),"script"),s&&be(r),t)for(c=0;o=r[c++];)ve.test(o.type||"")&&t.push(o);return d}Ce=r.createDocumentFragment().appendChild(r.createElement("div")),(we=r.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),Ce.appendChild(we),v.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="",v.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue;var Me=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Oe=/^([^.]*)(?:\.(.+)|)/;function Pe(){return!0}function Ee(){return!1}function Te(e,n){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===n)}function De(e,n,t,l,i,o){var r,a;if("object"==typeof n){for(a in"string"!=typeof t&&(l=l||t,t=void 0),n)De(e,a,t,l,n[a],o);return e}if(null==l&&null==i?(i=t,l=t=void 0):null==i&&("string"==typeof t?(i=l,l=void 0):(i=l,l=t,t=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(r=i,(i=function(e){return x().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=x.guid++)),e.each(function(){x.event.add(this,n,i,l,t)})}function Ne(e,n,t){t?(J.set(e,n,!1),x.event.add(e,n,{namespace:!1,handler:function(e){var l,i,o=J.get(this,n);if(1&e.isTrigger&&this[n]){if(o.length)(x.event.special[n]||{}).delegateType&&e.stopPropagation();else if(o=u.call(arguments),J.set(this,n,o),l=t(this,n),this[n](),o!==(i=J.get(this,n))||l?J.set(this,n,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(J.set(this,n,{value:x.event.trigger(x.extend(o[0],x.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,n)&&x.event.add(e,n,Pe)}x.event={global:{},add:function(e,n,t,l,i){var o,r,a,u,s,c,d,h,p,f,g,m=J.get(e);if(m)for(t.handler&&(t=(o=t).handler,i=o.selector),i&&x.find.matchesSelector(re,i),t.guid||(t.guid=x.guid++),(u=m.events)||(u=m.events={}),(r=m.handle)||(r=m.handle=function(n){return"undefined"!=typeof x&&x.event.triggered!==n.type?x.event.dispatch.apply(e,arguments):void 0}),s=(n=(n||"").match(V)||[""]).length;s--;)p=g=(a=Oe.exec(n[s])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=x.event.special[p]||{},d=x.event.special[p=(i?d.delegateType:d.bindType)||p]||{},c=x.extend({type:p,origType:g,data:l,handler:t,guid:t.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,l,f,r)||e.addEventListener&&e.addEventListener(p,r)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=t.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),x.event.global[p]=!0)},remove:function(e,n,t,l,i){var o,r,a,u,s,c,d,h,p,f,g,m=J.hasData(e)&&J.get(e);if(m&&(u=m.events)){for(s=(n=(n||"").match(V)||[""]).length;s--;)if(p=g=(a=Oe.exec(n[s])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=x.event.special[p]||{},h=u[p=(l?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=h.length;o--;)c=h[o],!i&&g!==c.origType||t&&t.guid!==c.guid||a&&!a.test(c.namespace)||l&&l!==c.selector&&("**"!==l||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||x.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)x.event.remove(e,p+n[s],t,l,!0);x.isEmptyObject(u)&&J.remove(e,"handle events")}},dispatch:function(e){var n,t,l,i,o,r,a=x.event.fix(e),u=new Array(arguments.length),s=(J.get(this,"events")||{})[a.type]||[],c=x.event.special[a.type]||{};for(u[0]=a,n=1;n=1))for(;s!==this;s=s.parentNode||this)if(1===s.nodeType&&("click"!==e.type||!0!==s.disabled)){for(o=[],r={},t=0;t-1:x.find(i,this,null,[s]).length),r[i]&&o.push(l);o.length&&a.push({elem:s,handlers:o})}return s=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/\s*$/g;function je(e,n){return T(e,"table")&&T(11!==n.nodeType?n:n.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ve(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,n){var t,l,i,o,r,a,u,s;if(1===n.nodeType){if(J.hasData(e)&&(o=J.access(e),r=J.set(n,o),s=o.events))for(i in delete r.handle,r.events={},s)for(t=0,l=s[i].length;t1&&"string"==typeof f&&!v.checkClone&&Re.test(f))return e.each(function(i){var o=e.eq(i);g&&(n[0]=f.call(this,i,o.html())),He(o,n,t,l)});if(h&&(o=(i=ke(n,e[0].ownerDocument,!1,e,l)).firstChild,1===i.childNodes.length&&(i=o),o||l)){for(a=(r=x.map(ye(i,"script"),Ve)).length;d")},clone:function(e,n,t){var l,i,o,r,a,u,s,c=e.cloneNode(!0),d=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=ye(c),l=0,i=(o=ye(e)).length;l0&&be(r,!d&&ye(e,"script")),c},cleanData:function(e){for(var n,t,l,i=x.event.special,o=0;void 0!==(t=e[o]);o++)if($(t)){if(n=t[J.expando]){if(n.events)for(l in n.events)i[l]?x.event.remove(t,l):x.removeEvent(t,l,n.handle);t[J.expando]=void 0}t[Q.expando]&&(t[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return W(this,function(e){return void 0===e?x.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 He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=je(this,e);n.insertBefore(e,n.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,n=0;null!=(e=this[n]);n++)1===e.nodeType&&(x.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map(function(){return x.clone(this,e,n)})},html:function(e){return W(this,function(e){var n=this[0]||{},t=0,l=this.length;if(void 0===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!_e[(me.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;t=0&&(u+=Math.max(0,Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-o-u-a-.5))||0),u}function on(e,n,t){var l=ze(e),i=(!v.boxSizingReliable()||t)&&"border-box"===x.css(e,"boxSizing",!1,l),o=i,r=Ge(e,n,l),a="offset"+n[0].toUpperCase()+n.slice(1);if(Be.test(r)){if(!t)return r;r="auto"}return(!v.boxSizingReliable()&&i||"auto"===r||!parseFloat(r)&&"inline"===x.css(e,"display",!1,l))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,l),(o=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+ln(e,n,t||(i?"border":"content"),o,l,r)+"px"}function rn(e,n,t,l,i){return new rn.prototype.init(e,n,t,l,i)}x.extend({cssHooks:{opacity:{get:function(e,n){if(n){var t=Ge(e,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,n,t,l){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,r,a=K(n),u=Qe.test(n),s=e.style;if(u||(n=Xe(a)),r=x.cssHooks[n]||x.cssHooks[a],void 0===t)return r&&"get"in r&&void 0!==(i=r.get(e,!1,l))?i:s[n];"string"==(o=typeof t)&&(i=ie.exec(t))&&i[1]&&(t=de(e,n,i),o="number"),null!=t&&t==t&&("number"!==o||u||(t+=i&&i[3]||(x.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==t||0!==n.indexOf("background")||(s[n]="inherit"),r&&"set"in r&&void 0===(t=r.set(e,t,l))||(u?s.setProperty(n,t):s[n]=t))}},css:function(e,n,t,l){var i,o,r,a=K(n);return Qe.test(n)||(n=Xe(a)),(r=x.cssHooks[n]||x.cssHooks[a])&&"get"in r&&(i=r.get(e,!0,t)),void 0===i&&(i=Ge(e,n,l)),"normal"===i&&n in nn&&(i=nn[n]),""===t||t?(o=parseFloat(i),!0===t||isFinite(o)?o||0:i):i}}),x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,t,l){if(t)return!Je.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?on(e,n,l):ce(e,en,function(){return on(e,n,l)})},set:function(e,t,l){var i,o=ze(e),r=!v.scrollboxSize()&&"absolute"===o.position,a=(r||l)&&"border-box"===x.css(e,"boxSizing",!1,o),u=l?ln(e,n,l,a,o):0;return a&&r&&(u-=Math.ceil(e["offset"+n[0].toUpperCase()+n.slice(1)]-parseFloat(o[n])-ln(e,n,"border",!1,o)-.5)),u&&(i=ie.exec(t))&&"px"!==(i[3]||"px")&&(e.style[n]=t,t=x.css(e,n)),tn(0,t,u)}}}),x.cssHooks.marginLeft=Ye(v.reliableMarginLeft,function(e,n){if(n)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-ce(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,n){x.cssHooks[e+n]={expand:function(t){for(var l=0,i={},o="string"==typeof t?t.split(" "):[t];l<4;l++)i[e+oe[l]+n]=o[l]||o[l-2]||o[0];return i}},"margin"!==e&&(x.cssHooks[e+n].set=tn)}),x.fn.extend({css:function(e,n){return W(this,function(e,n,t){var l,i,o={},r=0;if(Array.isArray(n)){for(l=ze(e),i=n.length;r1)}}),x.Tween=rn,(rn.prototype={constructor:rn,init:function(e,n,t,l,i,o){this.elem=e,this.prop=t,this.easing=i||x.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=l,this.unit=o||(x.cssNumber[t]?"":"px")},cur:function(){var e=rn.propHooks[this.prop];return e&&e.get?e.get(this):rn.propHooks._default.get(this)},run:function(e){var n,t=rn.propHooks[this.prop];return this.pos=n=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):rn.propHooks._default.set(this),this}}).init.prototype=rn.prototype,(rn.propHooks={_default:{get:function(e){var n;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(n=x.css(e.elem,e.prop,""))&&"auto"!==n?n:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=rn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=rn.prototype.init,x.fx.step={};var an,un,sn=/^(?:toggle|show|hide)$/,cn=/queueHooks$/;function dn(){un&&(!1===r.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(dn):t.setTimeout(dn,x.fx.interval),x.fx.tick())}function hn(){return t.setTimeout(function(){an=void 0}),an=Date.now()}function pn(e,n){var t,l=0,i={height:e};for(n=n?1:0;l<4;l+=2-n)i["margin"+(t=oe[l])]=i["padding"+t]=e;return n&&(i.opacity=i.width=e),i}function fn(e,n,t){for(var l,i=(gn.tweeners[n]||[]).concat(gn.tweeners["*"]),o=0,r=i.length;o1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,n,t){var l,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?x.prop(e,n,t):(1===o&&x.isXMLDoc(e)||(i=x.attrHooks[n.toLowerCase()]||(x.expr.match.bool.test(n)?mn:void 0)),void 0!==t?null===t?void x.removeAttr(e,n):i&&"set"in i&&void 0!==(l=i.set(e,t,n))?l:(e.setAttribute(n,t+""),t):i&&"get"in i&&null!==(l=i.get(e,n))?l:null==(l=x.find.attr(e,n))?void 0:l)},attrHooks:{type:{set:function(e,n){if(!v.radioValue&&"radio"===n&&T(e,"input")){var t=e.value;return e.setAttribute("type",n),t&&(e.value=t),n}}}},removeAttr:function(e,n){var t,l=0,i=n&&n.match(V);if(i&&1===e.nodeType)for(;t=i[l++];)e.removeAttribute(t)}}),mn={set:function(e,n,t){return!1===n?x.removeAttr(e,t):e.setAttribute(t,t),t}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var t=vn[n]||x.find.attr;vn[n]=function(e,n,l){var i,o,r=n.toLowerCase();return l||(o=vn[r],vn[r]=i,i=null!=t(e,n,l)?r:null,vn[r]=o),i}});var _n=/^(?:input|select|textarea|button)$/i,yn=/^(?:a|area)$/i;function bn(e){return(e.match(V)||[]).join(" ")}function Cn(e){return e.getAttribute&&e.getAttribute("class")||""}function wn(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}x.fn.extend({prop:function(e,n){return W(this,x.prop,e,n,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,n,t){var l,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(i=x.propHooks[n=x.propFix[n]||n]),void 0!==t?i&&"set"in i&&void 0!==(l=i.set(e,t,n))?l:e[n]=t:i&&"get"in i&&null!==(l=i.get(e,n))?l:e[n]},propHooks:{tabIndex:{get:function(e){var n=x.find.attr(e,"tabindex");return n?parseInt(n,10):_n.test(e.nodeName)||yn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){return null},set:function(e){}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var n,t,l,i,o,r,a,u=0;if(_(e))return this.each(function(n){x(this).addClass(e.call(this,n,Cn(this)))});if((n=wn(e)).length)for(;t=this[u++];)if(i=Cn(t),l=1===t.nodeType&&" "+bn(i)+" "){for(r=0;o=n[r++];)l.indexOf(" "+o+" ")<0&&(l+=o+" ");i!==(a=bn(l))&&t.setAttribute("class",a)}return this},removeClass:function(e){var n,t,l,i,o,r,a,u=0;if(_(e))return this.each(function(n){x(this).removeClass(e.call(this,n,Cn(this)))});if(!arguments.length)return this.attr("class","");if((n=wn(e)).length)for(;t=this[u++];)if(i=Cn(t),l=1===t.nodeType&&" "+bn(i)+" "){for(r=0;o=n[r++];)for(;l.indexOf(" "+o+" ")>-1;)l=l.replace(" "+o+" "," ");i!==(a=bn(l))&&t.setAttribute("class",a)}return this},toggleClass:function(e,n){var t=typeof e,l="string"===t||Array.isArray(e);return"boolean"==typeof n&&l?n?this.addClass(e):this.removeClass(e):_(e)?this.each(function(t){x(this).toggleClass(e.call(this,t,Cn(this),n),n)}):this.each(function(){var n,i,o,r;if(l)for(i=0,o=x(this),r=wn(e);n=r[i++];)o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==e&&"boolean"!==t||((n=Cn(this))&&J.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var n,t,l=0;for(n=" "+e+" ";t=this[l++];)if(1===t.nodeType&&(" "+bn(Cn(t))+" ").indexOf(n)>-1)return!0;return!1}});var xn=/\r/g;x.fn.extend({val:function(e){var n,t,l,i=this[0];return arguments.length?(l=_(e),this.each(function(t){var i;1===this.nodeType&&(null==(i=l?e.call(this,t,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,i,"value")||(this.value=i))})):i?(n=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(i,"value"))?t:"string"==typeof(t=i.value)?t.replace(xn,""):null==t?"":t:void 0}}),x.extend({valHooks:{option:{get:function(e){var n=x.find.attr(e,"value");return null!=n?n:bn(x.text(e))}},select:{get:function(e){var n,t,l,i=e.options,o=e.selectedIndex,r="select-one"===e.type,a=r?null:[],u=r?o+1:i.length;for(l=o<0?u:r?o:0;l-1)&&(t=!0);return t||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){if(Array.isArray(n))return e.checked=x.inArray(x(e).val(),n)>-1}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in t;var kn=/^(?:focusinfocus|focusoutblur)$/,Mn=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,n,l,i){var o,a,u,s,c,d,h,p,g=[l||r],m=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(a=p=u=l=l||r,3!==l.nodeType&&8!==l.nodeType&&!kn.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=l),n=null==n?[e]:x.makeArray(n,[e]),h=x.event.special[m]||{},i||!h.trigger||!1!==h.trigger.apply(l,n))){if(!i&&!h.noBubble&&!y(l)){for(kn.test((s=h.delegateType||m)+m)||(a=a.parentNode);a;a=a.parentNode)g.push(a),u=a;u===(l.ownerDocument||r)&&g.push(u.defaultView||u.parentWindow||t)}for(o=0;(a=g[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?s:h.bindType||m,(d=(J.get(a,"events")||{})[e.type]&&J.get(a,"handle"))&&d.apply(a,n),(d=c&&a[c])&&d.apply&&$(a)&&(e.result=d.apply(a,n),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(g.pop(),n)||!$(l)||c&&_(l[m])&&!y(l)&&((u=l[c])&&(l[c]=null),x.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,Mn),l[m](),e.isPropagationStopped()&&p.removeEventListener(m,Mn),x.event.triggered=void 0,u&&(l[c]=u)),e.result}},simulate:function(e,n,t){var l=x.extend(new x.Event,t,{type:e,isSimulated:!0});x.event.trigger(l,null,n)}}),x.fn.extend({trigger:function(e,n){return this.each(function(){x.event.trigger(e,n,this)})},triggerHandler:function(e,n){var t=this[0];if(t)return x.event.trigger(e,n,t,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,n){var t=function(e){x.event.simulate(n,e.target,x.event.fix(e))};x.event.special[n]={setup:function(){var l=this.ownerDocument||this,i=J.access(l,n);i||l.addEventListener(e,t,!0),J.access(l,n,(i||0)+1)},teardown:function(){var l=this.ownerDocument||this,i=J.access(l,n)-1;i?J.access(l,n,i):(l.removeEventListener(e,t,!0),J.remove(l,n))}}});var Sn=t.location,On=Date.now(),Pn=/\?/;x.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),n};var En=/\[\]$/,Tn=/\r?\n/g,Dn=/^(?:submit|button|image|reset|file)$/i,Nn=/^(?:input|select|textarea|keygen)/i;function In(e,n,t,l){var i;if(Array.isArray(n))x.each(n,function(n,i){t||En.test(e)?l(e,i):In(e+"["+("object"==typeof i&&null!=i?n:"")+"]",i,t,l)});else if(t||"object"!==w(n))l(e,n);else for(i in n)In(e+"["+i+"]",n[i],t,l)}x.param=function(e,n){var t,l=[],i=function(e,n){var t=_(n)?n():n;l[l.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(t in e)In(t,e[t],n,i);return l.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Nn.test(this.nodeName)&&!Dn.test(e)&&(this.checked||!ge.test(e))}).map(function(e,n){var t=x(this).val();return null==t?null:Array.isArray(t)?x.map(t,function(e){return{name:n.name,value:e.replace(Tn,"\r\n")}}):{name:n.name,value:t.replace(Tn,"\r\n")}}).get()}});var An=/%20/g,Rn=/#.*$/,Ln=/([?&])_=[^&]*/,jn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Vn=/^(?:GET|HEAD)$/,qn=/^\/\//,Fn={},Hn={},Un="*/".concat("*"),Bn=r.createElement("a");function zn(e){return function(n,t){"string"!=typeof n&&(t=n,n="*");var l,i=0,o=n.toLowerCase().match(V)||[];if(_(t))for(;l=o[i++];)"+"===l[0]?(l=l.slice(1)||"*",(e[l]=e[l]||[]).unshift(t)):(e[l]=e[l]||[]).push(t)}}function Wn(e,n,t,l){var i={},o=e===Hn;function r(a){var u;return i[a]=!0,x.each(e[a]||[],function(e,a){var s=a(n,t,l);return"string"!=typeof s||o||i[s]?o?!(u=s):void 0:(n.dataTypes.unshift(s),r(s),!1)}),u}return r(n.dataTypes[0])||!i["*"]&&r("*")}function Gn(e,n){var t,l,i=x.ajaxSettings.flatOptions||{};for(t in n)void 0!==n[t]&&((i[t]?e:l||(l={}))[t]=n[t]);return l&&x.extend(!0,e,l),e}Bn.href=Sn.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Sn.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Sn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Un,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":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?Gn(Gn(e,x.ajaxSettings),n):Gn(x.ajaxSettings,e)},ajaxPrefilter:zn(Fn),ajaxTransport:zn(Hn),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0);var l,i,o,a,u,s,c,d,h,p,f=x.ajaxSetup({},n=n||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?x(g):x.event,v=x.Deferred(),_=x.Callbacks("once memory"),y=f.statusCode||{},b={},C={},w="canceled",k={readyState:0,getResponseHeader:function(e){var n;if(c){if(!a)for(a={};n=jn.exec(o);)a[n[1].toLowerCase()+" "]=(a[n[1].toLowerCase()+" "]||[]).concat(n[2]);n=a[e.toLowerCase()+" "]}return null==n?null:n.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,n){return null==c&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,b[e]=n),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var n;if(e)if(c)k.always(e[k.status]);else for(n in e)y[n]=[y[n],e[n]];return this},abort:function(e){var n=e||w;return l&&l.abort(n),M(0,n),this}};if(v.promise(k),f.url=((e||f.url||Sn.href)+"").replace(qn,Sn.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(V)||[""],null==f.crossDomain){s=r.createElement("a");try{s.href=f.url,s.href=s.href,f.crossDomain=Bn.protocol+"//"+Bn.host!=s.protocol+"//"+s.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Wn(Fn,f,n,k),c)return k;for(h in(d=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Vn.test(f.type),i=f.url.replace(Rn,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(An,"+")):(p=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Pn.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Ln,"$1"),p=(Pn.test(i)?"&":"?")+"_="+On+++p),f.url=i+p),f.ifModified&&(x.lastModified[i]&&k.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&k.setRequestHeader("If-None-Match",x.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Un+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(g,k,f)||c))return k.abort();if(w="abort",_.add(f.complete),k.done(f.success),k.fail(f.error),l=Wn(Hn,f,n,k)){if(k.readyState=1,d&&m.trigger("ajaxSend",[k,f]),c)return k;f.async&&f.timeout>0&&(u=t.setTimeout(function(){k.abort("timeout")},f.timeout));try{c=!1,l.send(b,M)}catch(e){if(c)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,n,r,a){var s,h,p,b,C,w=n;c||(c=!0,u&&t.clearTimeout(u),l=void 0,o=a||"",k.readyState=e>0?4:0,s=e>=200&&e<300||304===e,r&&(b=function(e,n,t){for(var l,i,o,r,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===l&&(l=e.mimeType||n.getResponseHeader("Content-Type"));if(l)for(i in a)if(a[i]&&a[i].test(l)){u.unshift(i);break}if(u[0]in t)o=u[0];else{for(i in t){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}r||(r=i)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),t[o]}(f,k,r)),b=function(e,n,t,l){var i,o,r,a,u,s={},c=e.dataTypes.slice();if(c[1])for(r in e.converters)s[r.toLowerCase()]=e.converters[r];for(o=c.shift();o;)if(e.responseFields[o]&&(t[e.responseFields[o]]=n),!u&&l&&e.dataFilter&&(n=e.dataFilter(n,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(r=s[u+" "+o]||s["* "+o]))for(i in s)if((a=i.split(" "))[1]===o&&(r=s[u+" "+a[0]]||s["* "+a[0]])){!0===r?r=s[i]:!0!==s[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)n=r(n);else try{n=r(n)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:n}}(f,b,k,s),s?(f.ifModified&&((C=k.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=C),(C=k.getResponseHeader("etag"))&&(x.etag[i]=C)),204===e||"HEAD"===f.type?w="nocontent":304===e?w="notmodified":(w=b.state,h=b.data,s=!(p=b.error))):(p=w,!e&&w||(w="error",e<0&&(e=0))),k.status=e,k.statusText=(n||w)+"",s?v.resolveWith(g,[h,w,k]):v.rejectWith(g,[k,w,p]),k.statusCode(y),y=void 0,d&&m.trigger(s?"ajaxSuccess":"ajaxError",[k,f,s?h:p]),_.fireWith(g,[k,w]),d&&(m.trigger("ajaxComplete",[k,f]),--x.active||x.event.trigger("ajaxStop")))}return k},getJSON:function(e,n,t){return x.get(e,n,t,"json")},getScript:function(e,n){return x.get(e,void 0,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,t,l,i){return _(t)&&(i=i||l,l=t,t=void 0),x.ajax(x.extend({url:e,type:n,dataType:i,data:t,success:l},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,n)}})},x.fn.extend({wrapAll:function(e){var n;return this[0]&&(_(e)&&(e=e.call(this[0])),n=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return _(e)?this.each(function(n){x(this).wrapInner(e.call(this,n))}):this.each(function(){var n=x(this),t=n.contents();t.length?t.wrapAll(e):n.append(e)})},wrap:function(e){var n=_(e);return this.each(function(t){x(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var Yn={0:200,1223:204},Zn=x.ajaxSettings.xhr();v.cors=!!Zn&&"withCredentials"in Zn,v.ajax=Zn=!!Zn,x.ajaxTransport(function(e){var n,l;if(v.cors||Zn&&!e.crossDomain)return{send:function(i,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(r,i[r]);n=function(e){return function(){n&&(n=l=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Yn[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),l=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=l:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){n&&l()})},n=n("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var n,t;if(e.crossDomain||e.scriptAttrs)return{send:function(l,i){n=x("