File: D:/HostingSpaces/SBogers95/rentman.io/wwwroot/js/site/core-BACKUP.js
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function createNewEvent(t){var e;return"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),e}function dispatchEventForElement(t,e){document.createEvent?t.dispatchEvent(e):t.fireEvent("on"+e.eventType,e)}!function(t,e,n,i){"use strict";function o(t,e,n){return setTimeout(c(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(s(t,n[e],n),!0)}function s(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function a(e,n,i){var o="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,o,i),e.apply(this,arguments)}}function u(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&J(i,n)}function c(t,e){return function(){return t.apply(e,arguments)}}function l(t,e){return _typeof(t)==nt?t.apply(e&&e[0]||i,e):t}function h(t,e){return t===i?e:t}function f(t,e,n){s(m(e),function(e){t.addEventListener(e,n,!1)})}function d(t,e,n){s(m(e),function(e){t.removeEventListener(e,n,!1)})}function p(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function g(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function y(t){return Array.prototype.slice.call(t,0)}function E(t,e,n){for(var i=[],o=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];g(o,s)<0&&i.push(t[r]),o[r]=s,r++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function _(t,e){for(var n,o,r=e[0].toUpperCase()+e.slice(1),s=0;s<tt.length;){if((o=(n=tt[s])?n+r:e)in t)return o;s++}return i}function T(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function b(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){l(t.options.enable,[t])&&n.handler(e)},this.init()}function w(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,r=e&vt&&i-o==0,s=e&(gt|yt)&&i-o==0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=A(e)),o>1&&!n.firstMultiple?n.firstMultiple=A(e):1===o&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,u=e.center=S(i);e.timeStamp=rt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=x(a,u),e.distance=R(a,u),function(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==vt&&r.eventType!==gt||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}(n,e),e.offsetDirection=O(e.deltaX,e.deltaY);var c=C(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=ot(c.x)>ot(c.y)?c.x:c.y,e.scale=s?function(t,e){return R(e[0],e[1],Ot)/R(t[0],t[1],Ot)}(s.pointers,i):1,e.rotation=s?function(t,e){return x(e[1],e[0],Ot)+x(t[1],t[0],Ot)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,I(n,e);var l=t.element;p(e.srcEvent.target,l)&&(l=e.srcEvent.target),e.target=l}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function I(t,e){var n,o,r,s,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(e.eventType!=yt&&(u>pt||a.velocity===i)){var c=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,h=C(u,c,l);o=h.x,r=h.y,n=ot(h.x)>ot(h.y)?h.x:h.y,s=O(c,l),t.lastInterval=e}else n=a.velocity,o=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=o,e.velocityY=r,e.direction=s}function A(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:it(t.pointers[n].clientX),clientY:it(t.pointers[n].clientY)},n++;return{timeStamp:rt(),pointers:e,center:S(e),deltaX:t.deltaX,deltaY:t.deltaY}}function S(t){var e=t.length;if(1===e)return{x:it(t[0].clientX),y:it(t[0].clientY)};for(var n=0,i=0,o=0;e>o;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:it(n/e),y:it(i/e)}}function C(t,e,n){return{x:e/t||0,y:n/t||0}}function O(t,e){return t===e?Et:ot(t)>=ot(e)?0>t?_t:Tt:0>e?bt:wt}function R(t,e,n){n||(n=Ct);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function x(t,e,n){n||(n=Ct);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function P(){this.evEl=xt,this.evWin=Pt,this.pressed=!1,b.apply(this,arguments)}function M(){this.evEl=Lt,this.evWin=kt,b.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=zt,this.evWin=Ft,this.started=!1,b.apply(this,arguments)}function L(){this.evTarget=qt,this.targetIds={},b.apply(this,arguments)}function k(){b.apply(this,arguments);var t=c(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new P(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function D(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},jt)}}function z(t,e){this.manager=t,this.set(e)}function F(t){this.options=J({},this.defaults,t||{}),this.id=ut++,this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=Kt,this.simultaneous={},this.requireFail=[]}function X(t){return t&ie?"cancel":t&ee?"end":t&te?"move":t&Jt?"start":""}function q(t){return t==wt?"down":t==bt?"up":t==_t?"left":t==Tt?"right":""}function j(t,e){var n=e.manager;return n?n.get(t):t}function H(){F.apply(this,arguments)}function Y(){H.apply(this,arguments),this.pX=null,this.pY=null}function W(){H.apply(this,arguments)}function U(){F.apply(this,arguments),this._timer=null,this._input=null}function V(){H.apply(this,arguments)}function B(){H.apply(this,arguments)}function G(){F.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Q(t,e){return(e=e||{}).recognizers=h(e.recognizers,Q.defaults.preset),new Z(t,e)}function Z(t,e){this.options=J({},Q.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(lt?M:ht?L:ct?k:P))(t,w)}(this),this.touchAction=new z(this,this.options.touchAction),$(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function $(t,e){var n,i=t.element;i.style&&(s(t.options.cssProps,function(o,r){n=_(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function K(t,n){var i=e.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}var J,tt=["","webkit","Moz","MS","ms","o"],et=e.createElement("div"),nt="function",it=Math.round,ot=Math.abs,rt=Date.now;J="function"!=typeof Object.assign?function(t){if(t===i||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==i&&null!==o)for(var r in o)o.hasOwnProperty(r)&&(e[r]=o[r])}return e}:Object.assign;var st=a(function(t,e,n){for(var o=Object.keys(e),r=0;r<o.length;)(!n||n&&t[o[r]]===i)&&(t[o[r]]=e[o[r]]),r++;return t},"extend","Use `assign`."),at=a(function(t,e){return st(t,e,!0)},"merge","Use `assign`."),ut=1,ct="ontouchstart"in t,lt=_(t,"PointerEvent")!==i,ht=ct&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ft="touch",dt="mouse",pt=25,vt=1,mt=2,gt=4,yt=8,Et=1,_t=2,Tt=4,bt=8,wt=16,It=_t|Tt,At=bt|wt,St=It|At,Ct=["x","y"],Ot=["clientX","clientY"];b.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&d(this.element,this.evEl,this.domHandler),this.evTarget&&d(this.target,this.evTarget,this.domHandler),this.evWin&&d(T(this.element),this.evWin,this.domHandler)}};var Rt={mousedown:vt,mousemove:mt,mouseup:gt},xt="mousedown",Pt="mousemove mouseup";u(P,b,{handler:function(t){var e=Rt[t.type];e&vt&&0===t.button&&(this.pressed=!0),e&mt&&1!==t.which&&(e=gt),this.pressed&&(e>&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:dt,srcEvent:t}))}});var Mt={pointerdown:vt,pointermove:mt,pointerup:gt,pointercancel:yt,pointerout:yt},Nt={2:ft,3:"pen",4:dt,5:"kinect"},Lt="pointerdown",kt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Lt="MSPointerDown",kt="MSPointerMove MSPointerUp MSPointerCancel"),u(M,b,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),o=Mt[i],r=Nt[t.pointerType]||t.pointerType,s=r==ft,a=g(e,t.pointerId,"pointerId");o&vt&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):o&(gt|yt)&&(n=!0),0>a||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var Dt={touchstart:vt,touchmove:mt,touchend:gt,touchcancel:yt},zt="touchstart",Ft="touchstart touchmove touchend touchcancel";u(N,b,{handler:function(t){var e=Dt[t.type];if(e===vt&&(this.started=!0),this.started){var n=function(t,e){var n=y(t.touches),i=y(t.changedTouches);return e&(gt|yt)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}.call(this,t,e);e&(gt|yt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ft,srcEvent:t})}}});var Xt={touchstart:vt,touchmove:mt,touchend:gt,touchcancel:yt},qt="touchstart touchmove touchend touchcancel";u(L,b,{handler:function(t){var e=Xt[t.type],n=function(t,e){var n=y(t.touches),i=this.targetIds;if(e&(vt|mt)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var o,r,s=y(t.changedTouches),a=[],u=this.target;if(r=n.filter(function(t){return p(t.target,u)}),e===vt)for(o=0;o<r.length;)i[r[o].identifier]=!0,o++;for(o=0;o<s.length;)i[s[o].identifier]&&a.push(s[o]),e&(gt|yt)&&delete i[s[o].identifier],o++;return a.length?[E(r.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ft,srcEvent:t})}});var jt=2500,Ht=25;u(k,b,{handler:function(t,e,n){var i=n.pointerType==ft,o=n.pointerType==dt;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(t,e){t&vt?(this.primaryTouch=e.changedPointers[0].identifier,D.call(this,e)):t&(gt|yt)&&D.call(this,e)}).call(this,e,n);else if(o&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],r=Math.abs(e-o.x),s=Math.abs(n-o.y);if(Ht>=r&&Ht>=s)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yt=_(et.style,"touchAction"),Wt=Yt!==i,Ut="compute",Vt="auto",Bt="manipulation",Gt="none",Qt="pan-x",Zt="pan-y",$t=function(){if(!Wt)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){e[i]=!n||t.CSS.supports("touch-action",i)}),e}();z.prototype={set:function(t){t==Ut&&(t=this.compute()),Wt&&this.manager.element.style&&$t[t]&&(this.manager.element.style[Yt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){l(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(v(t,Gt))return Gt;var e=v(t,Qt),n=v(t,Zt);return e&&n?Gt:e||n?e?Qt:Zt:v(t,Bt)?Bt:Vt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var i=this.actions,o=v(i,Gt)&&!$t[Gt],r=v(i,Zt)&&!$t[Zt],s=v(i,Qt)&&!$t[Qt];if(o){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}return s&&r?void 0:o||r&&n&It||s&&n&At?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Kt=1,Jt=2,te=4,ee=8,ne=ee,ie=16;F.prototype={defaults:{},set:function(t){return J(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=j(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)?this:(t=j(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return-1===g(e,t=j(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=j(t,this);var e=g(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;ee>i&&e(n.options.event+X(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=ee&&e(n.options.event+X(i))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Kt)))return!1;t++}return!0},recognize:function(t){var e=J({},t);return l(this.options.enable,[this,e])?(this.state&(ne|ie|32)&&(this.state=Kt),this.state=this.process(e),void(this.state&(Jt|te|ee|ie)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},u(H,F,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(Jt|te),o=this.attrTest(t);return i&&(n&yt||!o)?e|ie:i||o?n>?e|ee:e&Jt?e|te:Jt:32}}),u(Y,H,{defaults:{event:"pan",threshold:10,pointers:1,direction:St},getTouchAction:function(){var t=this.options.direction,e=[];return t&It&&e.push(Zt),t&At&&e.push(Qt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,r=t.deltaX,s=t.deltaY;return o&e.direction||(e.direction&It?(o=0===r?Et:0>r?_t:Tt,n=r!=this.pX,i=Math.abs(t.deltaX)):(o=0===s?Et:0>s?bt:wt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},attrTest:function(t){return H.prototype.attrTest.call(this,t)&&(this.state&Jt||!(this.state&Jt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=q(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),u(W,H,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Jt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),u(U,F,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(gt|yt)&&!r)this.reset();else if(t.eventType&vt)this.reset(),this._timer=o(function(){this.state=ne,this.tryEmit()},e.time,this);else if(t.eventType>)return ne;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ne&&(t&&t.eventType>?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=rt(),this.manager.emit(this.options.event,this._input)))}}),u(V,H,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Jt)}}),u(B,H,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:It|At,pointers:1},getTouchAction:function(){return Y.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(It|At)?e=t.overallVelocity:n&It?e=t.overallVelocityX:n&At&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&ot(e)>this.options.velocity&&t.eventType>},emit:function(t){var e=q(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),u(G,F,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&vt&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=gt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||R(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=o(function(){this.state=ne,this.tryEmit()},e.interval,this),Jt):ne}return 32},failTimeout:function(){return this._timer=o(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ne&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Q.VERSION="2.0.8",Q.defaults={domEvents:!1,touchAction:Ut,enable:!0,inputTarget:null,inputClass:null,preset:[[V,{enable:!1}],[W,{enable:!1},["rotate"]],[B,{direction:It}],[Y,{direction:It},["swipe"]],[G],[G,{event:"doubletap",taps:2},["tap"]],[U]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Z.prototype={set:function(t){return J(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&ne)&&(o=e.curRecognizer=null);for(var r=0;r<i.length;)n=i[r],2===e.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&n.state&(Jt|te|ee)&&(o=e.curRecognizer=n),r++}},get:function(t){if(t instanceof F)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(r(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(r(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=g(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==i&&e!==i){var n=this.handlers;return s(m(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==i){var n=this.handlers;return s(m(t),function(t){e?n[t]&&n[t].splice(g(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&K(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&$(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},J(Q,{INPUT_START:vt,INPUT_MOVE:mt,INPUT_END:gt,INPUT_CANCEL:yt,STATE_POSSIBLE:Kt,STATE_BEGAN:Jt,STATE_CHANGED:te,STATE_ENDED:ee,STATE_RECOGNIZED:ne,STATE_CANCELLED:ie,STATE_FAILED:32,DIRECTION_NONE:Et,DIRECTION_LEFT:_t,DIRECTION_RIGHT:Tt,DIRECTION_UP:bt,DIRECTION_DOWN:wt,DIRECTION_HORIZONTAL:It,DIRECTION_VERTICAL:At,DIRECTION_ALL:St,Manager:Z,Input:b,TouchAction:z,TouchInput:L,MouseInput:P,PointerEventInput:M,TouchMouseInput:k,SingleTouchInput:N,Recognizer:F,AttrRecognizer:H,Tap:G,Pan:Y,Swipe:B,Pinch:W,Rotate:V,Press:U,on:f,off:d,each:s,merge:at,extend:st,assign:J,inherit:u,bindFn:c,prefixed:_}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Q,"function"==typeof define&&define.amd?define(function(){return Q}):"undefined"!=typeof module&&module.exports?module.exports=Q:t.Hammer=Q}(window,document),function(t,e){if("function"==typeof define&&define.amd)define(["exports"],e);else if("undefined"!=typeof exports)e(exports);else{var n={};e(n),t.bodyScrollLock=n}}(this,function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(t,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var i={get passive(){n=!0}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),r=[],s=!1,a=-1,u=void 0,c=void 0,l=function(t){return r.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})},h=function(t){var e=t||window.event;return!!l(e.target)||1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1)},f=function(){setTimeout(function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)})};t.disableBodyScroll=function(t,i){if(o){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!r.some(function(e){return e.targetElement===t})){var f={targetElement:t,options:i||{}};r=[].concat(e(r),[f]),t.ontouchstart=function(t){1===t.targetTouches.length&&(a=t.targetTouches[0].clientY)},t.ontouchmove=function(e){var n,i,o,r;1===e.targetTouches.length&&(i=t,r=(n=e).targetTouches[0].clientY-a,!l(n.target)&&(i&&0===i.scrollTop&&0<r?h(n):(o=i)&&o.scrollHeight-o.scrollTop<=o.clientHeight&&r<0?h(n):n.stopPropagation()))},s||(document.addEventListener("touchmove",h,n?{passive:!1}:void 0),s=!0)}}else{p=i,setTimeout(function(){if(void 0===c){var t=!!p&&!0===p.reserveScrollBarGap,e=window.innerWidth-document.documentElement.clientWidth;t&&0<e&&(c=document.body.style.paddingRight,document.body.style.paddingRight=e+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")});var d={targetElement:t,options:i||{}};r=[].concat(e(r),[d])}var p},t.clearAllBodyScrollLocks=function(){o?(r.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",h,n?{passive:!1}:void 0),s=!1),r=[],a=-1):(f(),r=[])},t.enableBodyScroll=function(t){if(o){if(!t)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");t.ontouchstart=null,t.ontouchmove=null,r=r.filter(function(e){return e.targetElement!==t}),s&&0===r.length&&(document.removeEventListener("touchmove",h,n?{passive:!1}:void 0),s=!1)}else 1===r.length&&r[0].targetElement===t?(f(),r=[]):r=r.filter(function(e){return e.targetElement!==t})}}),function(t,e){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).LazyLoad=e()}(this,function(){"use strict";function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var e="undefined"!=typeof window,n=e&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),i=e&&"IntersectionObserver"in window,o=e&&"classList"in document.createElement("p"),r=e&&window.devicePixelRatio>1,s={elements_selector:".lazy",container:n||e?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},a=function(e){return t({},s,e)},u=function(t,e){var n,i="LazyLoad::Initialized",o=new t(e);try{n=new CustomEvent(i,{detail:{instance:o}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(i,!1,!1,{instance:o})}window.dispatchEvent(n)},c="loading",l="loaded",h="applied",f="error",d="native",p=function(t,e){return t.getAttribute("data-"+e)},v=function(t){return p(t,"ll-status")},m=function(t,e){return function(t,e,n){var i="data-ll-status";null!==n?t.setAttribute(i,n):t.removeAttribute(i)}(t,0,e)},g=function(t){return m(t,null)},y=function(t){return null===v(t)},E=function(t){return v(t)===d},_=[c,l,h,f],T=function(t,e,n,i){t&&(void 0===i?void 0===n?t(e):t(e,n):t(e,n,i))},b=function(t,e){o?t.classList.add(e):t.className+=(t.className?" ":"")+e},w=function(t,e){o?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},I=function(t){return t.llTempImage},A=function(t,e){if(e){var n=e._observer;n&&n.unobserve(t)}},S=function(t,e){t&&(t.loadingCount+=e)},C=function(t,e){t&&(t.toLoadCount=e)},O=function(t){for(var e,n=[],i=0;e=t.children[i];i+=1)"SOURCE"===e.tagName&&n.push(e);return n},R=function(t,e,n){n&&t.setAttribute(e,n)},x=function(t,e){t.removeAttribute(e)},P=function(t){return!!t.llOriginalAttrs},M=function(t){if(!P(t)){var e={};e.src=t.getAttribute("src"),e.srcset=t.getAttribute("srcset"),e.sizes=t.getAttribute("sizes"),t.llOriginalAttrs=e}},N=function(t){if(P(t)){var e=t.llOriginalAttrs;R(t,"src",e.src),R(t,"srcset",e.srcset),R(t,"sizes",e.sizes)}},L=function(t,e){R(t,"sizes",p(t,e.data_sizes)),R(t,"srcset",p(t,e.data_srcset)),R(t,"src",p(t,e.data_src))},k=function(t){x(t,"src"),x(t,"srcset"),x(t,"sizes")},D=function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&O(n).forEach(e)},z={IMG:function(t,e){D(t,function(t){M(t),L(t,e)}),M(t),L(t,e)},IFRAME:function(t,e){R(t,"src",p(t,e.data_src))},VIDEO:function(t,e){!function(t,n){O(t).forEach(function(t){R(t,"src",p(t,e.data_src))})}(t),R(t,"poster",p(t,e.data_poster)),R(t,"src",p(t,e.data_src)),t.load()}},F=function(t,e){var n=z[t.tagName];n&&n(t,e)},X=function(t,e,n){S(n,1),b(t,e.class_loading),m(t,c),T(e.callback_loading,t,n)},q=["IMG","IFRAME","VIDEO"],j=function(t,e){!e||e.loadingCount>0||e.toLoadCount>0||T(t.callback_finish,e)},H=function(t,e,n){t.addEventListener(e,n),t.llEvLisnrs[e]=n},Y=function(t,e,n){t.removeEventListener(e,n)},W=function(t){return!!t.llEvLisnrs},U=function(t){if(W(t)){var e=t.llEvLisnrs;for(var n in e){var i=e[n];Y(t,n,i)}delete t.llEvLisnrs}},V=function(t,e,n){!function(t){delete t.llTempImage}(t),S(n,-1),n&&(n.toLoadCount-=1),w(t,e.class_loading),e.unobserve_completed&&A(t,n)},B=function(t,e,n){var i=I(t)||t;W(i)||function(t,e,n){W(t)||(t.llEvLisnrs={});var i="VIDEO"===t.tagName?"loadeddata":"load";H(t,i,e),H(t,"error",n)}(i,function(o){!function(t,e,n,i){var o=E(e);V(e,n,i),b(e,n.class_loaded),m(e,l),T(n.callback_loaded,e,i),o||j(n,i)}(0,t,e,n),U(i)},function(o){!function(t,e,n,i){var o=E(e);V(e,n,i),b(e,n.class_error),m(e,f),T(n.callback_error,e,i),o||j(n,i)}(0,t,e,n),U(i)})},G=function(t,e,n){!function(t){return q.indexOf(t.tagName)>-1}(t)?function(t,e,n){!function(t){t.llTempImage=document.createElement("IMG")}(t),B(t,e,n),function(t,e,n){var i=p(t,e.data_bg),o=p(t,e.data_bg_hidpi),s=r&&o?o:i;s&&(t.style.backgroundImage='url("'.concat(s,'")'),I(t).setAttribute("src",s),X(t,e,n))}(t,e,n),function(t,e,n){var i=p(t,e.data_bg_multi),o=p(t,e.data_bg_multi_hidpi),s=r&&o?o:i;s&&(t.style.backgroundImage=s,function(t,e,n){b(t,e.class_applied),m(t,h),e.unobserve_completed&&A(t,e),T(e.callback_applied,t,n)}(t,e,n))}(t,e,n)}(t,e,n):function(t,e,n){B(t,e,n),F(t,e),X(t,e,n)}(t,e,n)},Q=["IMG","IFRAME","VIDEO"],Z=function(t){return t.use_native&&"loading"in HTMLImageElement.prototype},$=function(t){return Array.prototype.slice.call(t)},K=function(t){return t.container.querySelectorAll(t.elements_selector)},J=function(t){return function(t){return v(t)===f}(t)},tt=function(t,e){return function(t){return $(t).filter(y)}(t||K(e))},et=function(t,n){var o=a(t);this._settings=o,this.loadingCount=0,function(t,e){i&&!Z(t)&&(e._observer=new IntersectionObserver(function(n){!function(t,e,n){t.forEach(function(t){return function(t){return t.isIntersecting||t.intersectionRatio>0}(t)?function(t,e,n,i){var o=function(t){return _.indexOf(v(t))>=0}(t);m(t,"entered"),b(t,n.class_entered),w(t,n.class_exited),function(t,e,n){e.unobserve_entered&&A(t,n)}(t,n,i),T(n.callback_enter,t,e,i),o||G(t,n,i)}(t.target,t,e,n):function(t,e,n,i){y(t)||(b(t,n.class_exited),function(t,e,n,i){n.cancel_on_exit&&function(t){return v(t)===c}(t)&&"IMG"===t.tagName&&(U(t),function(t){D(t,function(t){k(t)}),k(t)}(t),function(t){D(t,function(t){N(t)}),N(t)}(t),w(t,n.class_loading),S(i,-1),g(t),T(n.callback_cancel,t,e,i))}(t,e,n,i),T(n.callback_exit,t,e,i))}(t.target,t,e,n)})}(n,t,e)},function(t){return{root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}}(t)))}(o,this),function(t,n){e&&window.addEventListener("online",function(){!function(t,e){var n;(n=K(t),$(n).filter(J)).forEach(function(e){w(e,t.class_error),g(e)}),e.update()}(t,n)})}(o,this),this.update(n)};return et.prototype={update:function(t){var e,o,r=this._settings,s=tt(t,r);C(this,s.length),!n&&i?Z(r)?function(t,e,n){s.forEach(function(t){-1!==Q.indexOf(t.tagName)&&function(t,e,n){t.setAttribute("loading","lazy"),B(t,e,n),F(t,e),m(t,d)}(t,e,n)}),C(n,0)}(0,r,this):(o=s,function(t){t.disconnect()}(e=this._observer),function(t,e){o.forEach(function(e){t.observe(e)})}(e)):this.loadAll(s)},destroy:function(){this._observer&&this._observer.disconnect(),K(this._settings).forEach(function(t){delete t.llOriginalAttrs}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,n=this._settings;tt(t,n).forEach(function(t){A(t,e),G(t,n,e)})}},et.load=function(t,e){var n=a(e);G(t,n)},et.resetStatus=function(t){g(t)},e&&function(t,e){if(e)if(e.length)for(var n,i=0;n=e[i];i+=1)u(t,n);else u(t,e)}(et,window.lazyLoadOptions),et}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,function(){"use strict";function t(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})}var e=setTimeout;function n(){}function i(t){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function o(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var i;try{i=n(t._value)}catch(t){return void s(e.promise,t)}r(e.promise,i)}else(1===t._state?r:s)(e.promise,t._value)})):t._deferreds.push(e)}function r(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===_typeof(e)||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void c((o=n,r=e,function(){o.apply(r,arguments)}),t)}t._state=1,t._value=e,a(t)}catch(e){s(t,e)}var o,r}function s(t,e){t._state=2,t._value=e,a(t)}function a(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function u(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function c(t,e){var n=!1;try{t(function(t){n||(n=!0,r(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var i=new this.constructor(n);return o(this,new u(t,e,i)),i},i.prototype.finally=t,i.all=function(t){return new i(function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);var o=i.length;function r(t,s){try{if(s&&("object"===_typeof(s)||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(e){r(t,e)},n)}i[t]=s,0==--o&&e(i)}catch(t){n(t)}}for(var s=0;s<i.length;s++)r(s,i[s])})},i.resolve=function(t){return t&&"object"===_typeof(t)&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var i=0,o=t.length;i<o;i++)t[i].then(e,n)})},i._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){e(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=t):l.Promise=i});var isset=function(t){return null!=t},EasingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},getScript=function(t,e){var n=document.createElement("script");n.async=1;var i=document.getElementsByTagName("script"),o=i[i.length-1];n.onload=n.onreadystatechange=function(t,i){(i||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n=void 0,i||e&&e())},n.src=t,o.parentNode.insertBefore(n,o)},debounce=function(t,e,n){var i;return function(){var o=this,r=arguments,s=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(o,r)},e),s&&t.apply(o,r)}},Cookie={set:function(t,e,n){var i,o,r,s,a;n?((r=new Date).setTime(r.getTime()+24*n*60*60*1e3),s="; expires="+r.toGMTString()):s="",1===(a=location.host).split(".").length?document.cookie=t+"="+e+s+"; path=/":((o=a.split(".")).shift(),i="."+o.join("."),document.cookie=t+"="+e+s+"; path=/; domain="+i,null!=Cookie.get(t)&&Cookie.get(t)==e||(i="."+a,document.cookie=t+"="+e+s+"; path=/; domain="+i))},get:function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return null},erase:function(t){Cookie.set(t,"",-1)}},number_format=function(t,e,n,i){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,r=isFinite(+e)?Math.abs(e):0,s=void 0===i?",":i,a=void 0===n?".":n,u="";return(u=(r?function(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}(o,r):""+Math.round(o)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(u[1]||"").length<r&&(u[1]=u[1]||"",u[1]+=new Array(r-u[1].length+1).join("0")),u.join(a)};Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(this))return null;do{if(e.matches(t))return e;e=e.parentElement}while(null!==e);return null});var Ajax={get:function(t,e){var n=new XMLHttpRequest,i=document.querySelector('meta[name="csrf-token"]').content;n.open("get",t,!0),n.setRequestHeader("Content-Type","application/json"),n.setRequestHeader("X-CSRF-TOKEN",i),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onreadystatechange=function(){4===n.readyState&&e(n)},n.send()},post:function(t,e,n){var i=new XMLHttpRequest,o=document.querySelector('meta[name="csrf-token"]').content;i.open("post",t,!0),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("X-CSRF-TOKEN",o),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onreadystatechange=function(){4===i.readyState&&n(i)},i.send(JSON.stringify(e))}},capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function snakeToCamel(t){return t.replace(/(\-\w)/g,function(t){return t[1].toUpperCase()})}function indexInParent(t){for(var e=t.parentNode.childNodes,n=0,i=0;i<e.length;i++){if(e[i]==t)return n;1==e[i].nodeType&&n++}return-1}function copyToClipboard(t){if(t="string"==typeof t?document.querySelector(t):t,navigator.userAgent.match(/ipad|ipod|iphone/i)){var e=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var i=document.createRange();i.selectNodeContents(t);var o=window.getSelection();o.removeAllRanges(),o.addRange(i),t.setSelectionRange(0,999999),t.contentEditable=e,t.readOnly=n}else t.select();document.execCommand("copy")}