surat/frontend/web/pma.ui/pma.ui.js

123 lines
1.6 MiB
JavaScript
Raw Normal View History

2024-12-25 03:04:59 +00:00
var PMA=function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(l&&l(e);u.length;)u.shift()()}var n={},r={1:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise((function(e,i){n=r[t]=[e,i]}));e.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(t){return i.p+""+({}[t]||t)+".js"}(t);var l=new Error;a=function(e){s.onerror=s.onload=null,clearTimeout(u);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}r[t]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="dist/",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpPMA=window.webpackJsonpPMA||[],a=o.push.bind(o);o.push=e,o=o.slice();for(var s=0;s<o.length;s++)e(o[s]);var l=a;return i(i.s=288)}([function(t,e,n){"use strict";n.r(e),n.d(e,"boundingExtent",(function(){return o})),n.d(e,"buffer",(function(){return a})),n.d(e,"clone",(function(){return s})),n.d(e,"closestSquaredDistanceXY",(function(){return l})),n.d(e,"containsCoordinate",(function(){return u})),n.d(e,"containsExtent",(function(){return c})),n.d(e,"containsXY",(function(){return h})),n.d(e,"coordinateRelationship",(function(){return p})),n.d(e,"createEmpty",(function(){return f})),n.d(e,"createOrUpdate",(function(){return d})),n.d(e,"createOrUpdateEmpty",(function(){return g})),n.d(e,"createOrUpdateFromCoordinate",(function(){return m})),n.d(e,"createOrUpdateFromCoordinates",(function(){return v})),n.d(e,"createOrUpdateFromFlatCoordinates",(function(){return y})),n.d(e,"createOrUpdateFromRings",(function(){return _})),n.d(e,"equals",(function(){return b})),n.d(e,"approximatelyEquals",(function(){return w})),n.d(e,"extend",(function(){return x})),n.d(e,"extendCoordinate",(function(){return S})),n.d(e,"extendCoordinates",(function(){return E})),n.d(e,"extendFlatCoordinates",(function(){return C})),n.d(e,"extendRings",(function(){return O})),n.d(e,"extendXY",(function(){return T})),n.d(e,"forEachCorner",(function(){return P})),n.d(e,"getArea",(function(){return L})),n.d(e,"getBottomLeft",(function(){return I})),n.d(e,"getBottomRight",(function(){return j})),n.d(e,"getCenter",(function(){return M})),n.d(e,"getCorner",(function(){return R})),n.d(e,"getEnlargedArea",(function(){return A})),n.d(e,"getForViewAndSize",(function(){return k})),n.d(e,"getRotatedViewport",(function(){return F})),n.d(e,"getHeight",(function(){return D})),n.d(e,"getIntersectionArea",(function(){return N})),n.d(e,"getIntersection",(function(){return G})),n.d(e,"getMargin",(function(){return U})),n.d(e,"getSize",(function(){return B})),n.d(e,"getTopLeft",(function(){return z})),n.d(e,"getTopRight",(function(){return V})),n.d(e,"getWidth",(function(){return W})),n.d(e,"intersects",(function(){return X})),n.d(e,"isEmpty",(function(){return
/*
Magic wand tool (fuzzy selection) by color
@package magic-wand-tool
@author Ryasnoy Paul <ryasnoypaul@gmail.com>
@version 1.1.7
@license MIT
@copyright (c) 2014-2020, Ryasnoy Paul <ryasnoypaul@gmail.com>
*/
var e,n=((e={}).floodFill=function(t,e,n,r,i,o){return o?function(t,e,n,r,i){var o,a,s,l,u,c,h,p,f,d,g=t.data,m=t.width,v=t.height,y=t.bytes,_=-1,b=m+1,w=-1,x=v+1,S=n*m+e,E=new Uint8Array(m*v),C=new Uint8Array(i||m*v);if(1===C[S])return null;var O=[g[S*=y],g[S+1],g[S+2],g[S+3]],T=[{y:n,left:e-1,right:e+1,dir:1}];do{for(l=T.shift(),d=!1,a=l.left+1;a<l.right;a++)if(h=l.y*m,S=(h+a)*y,1!==C[h+a]&&(d=!0,E[h+a]=1,C[h+a]=1,!((o=g[S]-O[0])>r||o<-r||(o=g[S+1]-O[1])>r||o<-r||(o=g[S+2]-O[2])>r||o<-r))){for(c=a-1;c>-1&&(S=(p=h+c)*y,1!==C[p])&&(E[p]=1,C[p]=1,c--,!((o=g[S]-O[0])>r||o<-r))&&!((o=g[S+1]-O[1])>r||o<-r)&&!((o=g[S+2]-O[2])>r||o<-r););for(u=a+1;u<m&&(S=(f=h+u)*y,1!==C[f])&&(E[f]=1,C[f]=1,u++,!((o=g[S]-O[0])>r||o<-r))&&!((o=g[S+1]-O[1])>r||o<-r)&&!((o=g[S+2]-O[2])>r||o<-r););c<b&&(b=c+1),u>_&&(_=u-1),(s=l.y-l.dir)>=0&&s<v&&(c<l.left&&T.push({y:s,left:c,right:l.left,dir:-l.dir}),l.right<u&&T.push({y:s,left:l.right,right:u,dir:-l.dir})),(s=l.y+l.dir)>=0&&s<v&&c<u&&T.push({y:s,left:c,right:u,dir:l.dir})}d&&(l.y<x&&(x=l.y),l.y>w&&(w=l.y))}while(T.length>0);return{data:E,width:t.width,height:t.height,bounds:{minX:b,minY:x,maxX:_,maxY:w}}}(t,e,n,r,i):function(t,e,n,r,i){var o,a,s,l,u,c,h,p,f,d,g=t.data,m=t.width,v=t.height,y=t.bytes,_=-1,b=m+1,w=-1,x=v+1,S=n*m+e,E=new Uint8Array(m*v),C=new Uint8Array(i||m*v);if(1===C[S])return null;var O=[g[S*=y],g[S+1],g[S+2],g[S+3]],T=[{y:n,left:e-1,right:e+1,dir:1}];do{for(l=T.shift(),d=!1,a=l.left+1;a<l.right;a++)if(h=l.y*m,S=(h+a)*y,1!==C[h+a]&&!((o=g[S]-O[0])>r||o<-r||(o=g[S+1]-O[1])>r||o<-r||(o=g[S+2]-O[2])>r||o<-r)){for(d=!0,E[h+a]=1,C[h+a]=1,c=a-1;c>-1&&(S=(p=h+c)*y,1!==C[p])&&!((o=g[S]-O[0])>r||o<-r)&&!((o=g[S+1]-O[1])>r||o<-r)&&!((o=g[S+2]-O[2])>r||o<-r);)E[p]=1,C[p]=1,c--;for(u=a+1;u<m&&(S=(f=h+u)*y,1!==C[f])&&!((o=g[S]-O[0])>r||o<-r)&&!((o=g[S+1]-O[1])>r||o<-r)&&!((o=g[S+2]-O[2])>r||o<-r);)E[f]=1,C[f]=1,u++;c<b&&(b=c+1),u>_&&(_=u-1),(s=l.y-l.dir)>=0&&s<v&&(c<l.left&&T.push({y:s,left:c,right:l.left,dir:-l.dir}),l.right<u&&T.push({y:s,left:l.right,right:u,dir:-l.dir})),(s=l.y+l.dir)>=0&&s<v&&c<u&&T.push({y:s,left:c,right:u,dir:l.dir})}d&&(l.y<x&&(x=l.y),l.y>w&&(w=l.y))}while(T.length>0);return{data:E,width:t.width,height:t.height,bounds:{minX:b,minY:x,maxX:_,maxY:w}}}(t,e,n,r,i)},e.gaussBlur=function(t,e){var n,r,i,o,a,s,l,u=2*e+1,c=e*e,h=new Float32Array(u),p=0,f=t.width,d=t.height,g=t.data,m=t.bounds.minX,v=t.bounds.maxX,y=t.bounds.minY,_=t.bounds.maxY;for(n=0;n<e;n++){var b=(e-n)*(e-n),w=Math.exp(-b/(2*c))/(2*Math.PI*c);h[e+n]=h[e-n]=w,p+=2*w}for(n=0;n<u;n++)h[n]/=p;var x=new Uint8Array(f*d),S=e+f,E=e+d;for(a=y;a<_+1;a++)for(o=m;o<v+1;o++){for(s=0,l=S-o<u?S-o:u,i=(r=a*f+o)-e,n=e-o>0?e-o:0;n<l;n++)s+=g[i+n]*h[n];for(l=E-a<u?E-a:u,i=r-e*f,n=e-a>0?e-a:0;n<l;n++)s+=g[i+n*f]*h[n];x[r]=s>.5?1:0}return{data:x,width:f,height:d,bounds:{minX:m,minY:y,maxX:v,maxY:_}}},e.gaussBlurOnlyBorder=function(t,e,n){var r,i,o,a,s,l,u,c,h,p,f=function(t,e,n){var r,i,o,a,s,l,u,c=t.width,h=t.height,p=t.data,f=new Uint8Array(p),d=t.bounds.minX,g=t.bounds.maxX,m=t.bounds.minY,v=t.bounds.maxY,y=c*h,_=new Uint8Array(y),b=[],w=Math.max(d,1),x=Math.min(g,c-2),S=Math.max(m,1),E=Math.min(v,h-2);if(n&&n.length>0)for(s=0;s<y;s++)1===n[s]&&(f[s]=1);for(a=S;a<E+1;a++)for(r=w;r<x+1;r++)0!==p[s=a*c+r]&&(l=s+c,u=s-c,0!==f[s+1]&&0!==f[s-1]&&0!==f[l]&&0!==f[l+1]&&0!==f[l-1]&&0!==f[u]&&0!==f[u+1]&&0!==f[u-1]||b.push(s));if(0==d)for(a=m;a<v+1;a++)1===p[a*c]&&b.push(a*c);if(g==c-1)for(a=m;a<v+1;a++)1===p[a*c+g]&&b.push(a*c+g);if(0==m)for(r=d;r<g+1;r++)1===p[r]&&b.push(r);if(v==h-1)for(r=d;r<g+1;r++)1===p[v*c+r]&&b.push(v*c+r);var C,O=[],T=e+c,P=e+h,L=2*e+1;for(y=b.length,o=0;o<y;o++){for(_[s=b[o]]=1,O.push(s),a=(s-(r=s%c))/c,C=T-r<L?T-r:L,l=s-e,i=e-r>0?e-r:0;i<C;i++)0===_[u=l+i]&&(_[u]=1,O.push(u));for(C=P-a<L?P-a:L,l=s-e*c,i=e-a>0?e-a:0;i<C;i++)0===_[u=l+i*c]&&(_[u]=1,O.push(u))}return O}(t,e,n),d=2*e+1,g=2*e*e,m=new Float32Array(d),v=0,y=t.width,_=t.height,b=t.data,w=t.bounds.minX,x=t.bounds.maxX,S=t.bounds.minY,E=t.bounds.maxY,C=f.length;for(o=0;o<e;o++)i=(e-o)*(e-o),r=Math.exp(-i/g)/Math.PI,m[e+o]=m[e-o]=r,v+=2*r;for(o=0;o
/*!
* jquery.fancytree.js
* Tree view control with support for lazy loading and much more.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.38.2
* @date 2022-06-30T18:24:06Z
*/i=[n(9),n(280)],void 0===(o="function"==typeof(r=function(t){"use strict";if(!t.ui||!t.ui.fancytree){var e,n,r=null,i=new RegExp(/\.|\//),o=/[&<>"'/]/g,a=/[<>"'/]/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},l={16:!0,17:!0,18:!0},u={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={16:"shift",17:"ctrl",18:"alt",91:"meta",93:"meta"},h={0:"",1:"left",2:"middle",3:"right"},p="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),f={},d="columns types".split(" "),g="checkbox expanded extraClasses folder icon iconTooltip key lazy partsel radiogroup refKey selected statusNodeType title tooltip type unselectable unselectableIgnore unselectableStatus".split(" "),m={},v={},y={active:!0,children:!0,data:!0,focus:!0};for(e=0;e<p.length;e++)f[p[e]]=!0;for(e=0;e<g.length;e++)n=g[e],m[n]=!0,n!==n.toLowerCase()&&(v[n.toLowerCase()]=n);var _=Array.isArray;return b(t.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),Date.now||(Date.now=function(){return(new Date).getTime()}),A.prototype={_findDirectChild:function(t){var e,n,r=this.children;if(r)if("string"==typeof t){for(e=0,n=r.length;e<n;e++)if(r[e].key===t)return r[e]}else{if("number"==typeof t)return this.children[t];if(t.parent===this)return t}return null},_setChildren:function(t){b(t&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var e=0,n=t.length;e<n;e++)this.children.push(new A(this,t[e]));this.tree._callHook("treeStructureChanged",this.tree,"setChildren")},addChildren:function(e,n){var r,i,o,a,s=this.getFirstChild(),l=this.getLastChild(),u=[];for(t.isPlainObject(e)&&(e=[e]),this.children||(this.children=[]),r=0,i=e.length;r<i;r++)u.push(new A(this,e[r]));if(a=u[0],null==n?this.children=this.children.concat(u):(n=this._findDirectChild(n),b((o=t.inArray(n,this.children))>=0,"insertBefore must be an existing child"),this.children.splice.apply(this.children,[o,0].concat(u))),s&&!n){for(r=0,i=u.length;r<i;r++)u[r].render();s!==this.getFirstChild()&&s.renderStatus(),l!==this.getLastChild()&&l.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===u.length?u[0]:null),a},addClass:function(t){return this.toggleClass(t,!0)},addNode:function(t,e){switch(void 0!==e&&"over"!==e||(e="child"),e){case"after":return this.getParent().addChildren(t,this.getNextSibling());case"before":return this.getParent().addChildren(t,this);case"firstChild":var n=this.children?this.children[0]:null;return this.addChildren(t,n);case"child":case"over":return this.addChildren(t)}b(!1,"Invalid mode: "+e)},addPagingNode:function(e,n){var r,i;if(n=n||"child",!1!==e)return e=t.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},e),this.partload=!0,this.addNode(e,n);for(r=this.children.length-1;r>=0;r--)"paging"===(i=this.children[r]).statusNodeType&&this.removeChild(i);this.partload=!1},appendSibling:function(t){return this.addNode(t,"after")},applyCommand:function(t,e){return this.tree.applyCommand(t,this,e)},applyPatch:function(t){if(null===t)return this.remove(),P(this);var e,n,r={children:!0,expanded:!0,parent:!0};for(e in t)w(t,e)&&(n=t[e],r[e]||x(n)||(m[e]?this[e]=n:this.data[e]=n));return w(t,"children")&&(this.removeChildren(),t.children&&this._setChildren(t.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),w(t,"expanded")?this.setExpanded(t.expanded):P(this)},collapseSiblings:function(){return this.tree
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n(266),i=n(233),o=n(267);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=p(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):p(t,e);if("Buffer"===e.type&&o(e.data))return p(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(c(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return P(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"
/*! @petamoriken/float16 v3.7.1 | MIT License - https://github.com/petamoriken/float16 */
!function(t){"use strict";function e(t){return(e,...n)=>r(t,e,n)}function n(t,n){return e(s(t,n).get)}const{apply:r,construct:i,defineProperty:o,get:a,getOwnPropertyDescriptor:s,getPrototypeOf:l,has:u,ownKeys:c,set:h,setPrototypeOf:p}=Reflect,f=Proxy,{MAX_SAFE_INTEGER:d,isFinite:g,isNaN:m}=Number,{iterator:v,species:y,toStringTag:_,for:b}=Symbol,w=Object,{create:x,defineProperty:S,freeze:E,is:C}=w,O=w.prototype,T=O.__lookupGetter__?e(O.__lookupGetter__):(t,e)=>{if(null==t)throw bt("Cannot convert undefined or null to object");let n=w(t);do{const t=s(n,e);if(void 0!==t)return P(t,"get")?t.get:void 0}while(null!==(n=l(n)))},P=w.hasOwn||e(O.hasOwnProperty),L=Array,I=L.isArray,j=L.prototype,M=e(j.join),R=e(j.push),A=e(j.toLocaleString),k=j[v],F=e(k),D=Math.trunc,N=ArrayBuffer,G=N.isView,U=N.prototype,B=e(U.slice),z=n(U,"byteLength"),V="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:null,W=V&&n(V.prototype,"byteLength"),X=l(Uint8Array),H=X.from,Y=X.prototype,q=Y[v],K=e(Y.keys),Z=e(Y.values),$=e(Y.entries),J=e(Y.set),Q=e(Y.reverse),tt=e(Y.fill),et=e(Y.copyWithin),nt=e(Y.sort),rt=e(Y.slice),it=e(Y.subarray),ot=n(Y,"buffer"),at=n(Y,"byteOffset"),st=n(Y,"length"),lt=n(Y,_),ut=Uint16Array,ct=(...t)=>r(H,ut,t),ht=Uint32Array,pt=Float32Array,ft=l([][v]()),dt=e(ft.next),gt=e(function*(){}().next),mt=l(ft),vt=DataView.prototype,yt=e(vt.getUint16),_t=e(vt.setUint16),bt=TypeError,wt=RangeError,xt=WeakSet,St=xt.prototype,Et=e(St.add),Ct=e(St.has),Ot=WeakMap,Tt=Ot.prototype,Pt=e(Tt.get),Lt=e(Tt.has),It=e(Tt.set),jt=new Ot,Mt=x(null,{next:{value:function(){const t=Pt(jt,this);return dt(t)}},[v]:{value:function(){return this}}});function Rt(t){if(t[v]===k&&ft.next===dt)return t;const e=x(Mt);return It(jt,e,F(t)),e}const At=new Ot,kt=x(mt,{next:{value:function(){const t=Pt(At,this);return gt(t)},writable:!0,configurable:!0}});for(const t of c(ft))"next"!==t&&S(kt,t,s(ft,t));function Ft(t){const e=x(kt);return It(At,e,t),e}function Dt(t){return null!==t&&"object"==typeof t||"function"==typeof t}function Nt(t){return null!==t&&"object"==typeof t}function Gt(t){return void 0!==lt(t)}function Ut(t){const e=lt(t);return"BigInt64Array"===e||"BigUint64Array"===e}function Bt(t){return!!I(t)&&(t[v]===k&&ft.next===dt)}function zt(t){if("string"!=typeof t)return!1;const e=+t;return t===e+""&&(!!g(e)&&e===D(e))}const Vt=b("__Float16Array__");const Wt=new N(4),Xt=new pt(Wt),Ht=new ht(Wt),Yt=new ht(512),qt=new ht(512);for(let t=0;t<256;++t){const e=t-127;e<-27?(Yt[t]=0,Yt[256|t]=32768,qt[t]=24,qt[256|t]=24):e<-14?(Yt[t]=1024>>-e-14,Yt[256|t]=1024>>-e-14|32768,qt[t]=-e-1,qt[256|t]=-e-1):e<=15?(Yt[t]=e+15<<10,Yt[256|t]=e+15<<10|32768,qt[t]=13,qt[256|t]=13):e<128?(Yt[t]=31744,Yt[256|t]=64512,qt[t]=24,qt[256|t]=24):(Yt[t]=31744,Yt[256|t]=64512,qt[t]=13,qt[256|t]=13)}function Kt(t){Xt[0]=t;const e=Ht[0],n=e>>23&511;return Yt[n]+((8388607&e)>>qt[n])}const Zt=new ht(2048),$t=new ht(64),Jt=new ht(64);for(let t=1;t<1024;++t){let e=t<<13,n=0;for(;0==(8388608&e);)e<<=1,n-=8388608;e&=-8388609,n+=947912704,Zt[t]=e|n}for(let t=1024;t<2048;++t)Zt[t]=939524096+(t-1024<<13);for(let t=1;t<31;++t)$t[t]=t<<23;$t[31]=1199570944,$t[32]=2147483648;for(let t=33;t<63;++t)$t[t]=2147483648+(t-32<<23);$t[63]=3347054592;for(let t=1;t<64;++t)32!==t&&(Jt[t]=1024);function Qt(t){const e=t>>10;return Ht[0]=Zt[Jt[e]+(1023&t)]+$t[e],Xt[0]}function te(t){const e=+t;return m(e)||0===e?0:D(e)}function ee(t){const e=te(t);return e<0?0:e<d?e:d}function ne(t,e){if(!Dt(t))throw bt("This is not an object");const n=t.constructor;if(void 0===n)return e;if(!Dt(n))throw bt("The constructor property value is not an object");const r=n[y];return null==r?e:r}function re(t){if(function(t){if(null===V)return!1;try{return W(t),!0}catch(t){return!1}}(t))return!1;try{return B(t,0,0),!1}catch(t){}return!0}function ie(t,e){const n=m(t),r=m(e);if(n&&r)return 0;if(n)return 1;if(r)return-1;if(t<e)return-1;if(t>e)return 1;if(0===t&&0===e){const n=C(t,0),r=C(e,0);if(!n&&r)return-1;if(n&&!r)return 1}return 0}const oe=new Ot;function ae(t){return Lt(oe,t)||!G(t)&&function(t){if(!Nt(t))return!1;const e=l(t);if(
/**
* splaytree v3.1.0
* Fast Splay tree for Node and browser
*
* @author Alexander Milevski <info@w8r.name>
* @license MIT
* @preserve
*/var i=function(t,e){this.next=null,this.key=t,this.data=e,this.left=null,this.right=null};function o(t,e){return t>e?1:t<e?-1:0}function a(t,e,n){for(var r=new i(null,null),o=r,a=r;;){var s=n(t,e.key);if(s<0){if(null===e.left)break;if(n(t,e.left.key)<0){var l=e.left;if(e.left=l.right,l.right=e,null===(e=l).left)break}a.left=e,a=e,e=e.left}else{if(!(s>0))break;if(null===e.right)break;if(n(t,e.right.key)>0&&(l=e.right,e.right=l.left,l.left=e,null===(e=l).right))break;o.right=e,o=e,e=e.right}}return o.right=e.left,a.left=e.right,e.left=r.right,e.right=r.left,e}function s(t,e,n,r){var o=new i(t,e);if(null===n)return o.left=o.right=null,o;var s=r(t,(n=a(t,n,r)).key);return s<0?(o.left=n.left,o.right=n,n.left=null):s>=0&&(o.right=n.right,o.left=n,n.right=null),o}function l(t,e,n){var r=null,i=null;if(e){var o=n((e=a(t,e,n)).key,t);0===o?(r=e.left,i=e.right):o<0?(i=e.right,e.right=null,r=e):(r=e.left,e.left=null,i=e)}return{left:r,right:i}}var u=function(){function t(t){void 0===t&&(t=o),this._root=null,this._size=0,this._comparator=t}return t.prototype.insert=function(t,e){return this._size++,this._root=s(t,e,this._root,this._comparator)},t.prototype.add=function(t,e){var n=new i(t,e);null===this._root&&(n.left=n.right=null,this._size++,this._root=n);var r=this._comparator,o=a(t,this._root,r),s=r(t,o.key);return 0===s?this._root=o:(s<0?(n.left=o.left,n.right=o,o.left=null):s>0&&(n.right=o.right,n.left=o,o.right=null),this._size++,this._root=n),this._root},t.prototype.remove=function(t){this._root=this._remove(t,this._root,this._comparator)},t.prototype._remove=function(t,e,n){var r;return null===e?null:0===n(t,(e=a(t,e,n)).key)?(null===e.left?r=e.right:(r=a(t,e.left,n)).right=e.right,this._size--,r):e},t.prototype.pop=function(){var t=this._root;if(t){for(;t.left;)t=t.left;return this._root=a(t.key,this._root,this._comparator),this._root=this._remove(t.key,this._root,this._comparator),{key:t.key,data:t.data}}return null},t.prototype.findStatic=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return e;e=r<0?e.left:e.right}return null},t.prototype.find=function(t){return this._root&&(this._root=a(t,this._root,this._comparator),0!==this._comparator(t,this._root.key))?null:this._root},t.prototype.contains=function(t){for(var e=this._root,n=this._comparator;e;){var r=n(t,e.key);if(0===r)return!0;e=r<0?e.left:e.right}return!1},t.prototype.forEach=function(t,e){for(var n=this._root,r=[],i=!1;!i;)null!==n?(r.push(n),n=n.left):0!==r.length?(n=r.pop(),t.call(e,n),n=n.right):i=!0;return this},t.prototype.range=function(t,e,n,r){for(var i=[],o=this._comparator,a=this._root;0!==i.length||a;)if(a)i.push(a),a=a.left;else{if(o((a=i.pop()).key,e)>0)break;if(o(a.key,t)>=0&&n.call(r,a))return this;a=a.right}return this},t.prototype.keys=function(){var t=[];return this.forEach((function(e){var n=e.key;return t.push(n)})),t},t.prototype.values=function(){var t=[];return this.forEach((function(e){var n=e.data;return t.push(n)})),t},t.prototype.min=function(){return this._root?this.minNode(this._root).key:null},t.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},t.prototype.minNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.left;)t=t.left;return t},t.prototype.maxNode=function(t){if(void 0===t&&(t=this._root),t)for(;t.right;)t=t.right;return t},t.prototype.at=function(t){for(var e=this._root,n=!1,r=0,i=[];!n;)if(e)i.push(e),e=e.left;else if(i.length>0){if(e=i.pop(),r===t)return e;r++,e=e.right}else n=!0;return null},t.prototype.next=function(t){var e=this._root,n=null;if(t.right){for(n=t.right;n.left;)n=n.left;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?(n=e,e=e.left):e=e.right}return n},t.prototype.prev=function(t){var e=this._root,n=null;if(null!==t.left){for(n=t.left;n.right;)n=n.right;return n}for(var r=this._comparator;e;){var i=r(t.key,e.key);if(0===i)break;i<0?e=e.left:(n=e,e=e.right)}return n},t.prototype.clear=function(){return this._root=null,this._size=0,this},t.prototype.toList=function(){return function(t){for(var e=t,n=[],r=!1
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,p=n?-1:1,f=t[e+h];for(h+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+f]=255&a,f+=d,a/=256,u-=8);t[n+f-d]|=128*g}},function(t,e,n){"use strict";var r,i=n(175),o=n(39),a=n(11),s=n(24),l=n(14),u=n(146),c=n(40),h=n(111),p=n(35),f=n(56),d=n(62),g=n(63),m=n(29),v=n(42),y=n(22),_=n(70),b=n(71),w=n(32),x=n(18),S=(n(0),n(44)),E=n(1),C=n(52),O=n(25),T=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),P="Point",L="LineString",I="Polygon",j="Circle",M="drawstart",R="drawend",A="drawabort",k=function(t){function e(e,n){var r=t.call(this,e)||this;return r.feature=n,r}return T(e,t),e}(o.a),F=function(t){function e(e){var n=this,r=e;r.stopDown||(r.stopDown=w.a),(n=t.call(this,r)||this).on,n.once,n.un,n.shouldHandle_=!1,n.downPx_=null,n.downTimeout_,n.lastDragTime_,n.pointerType_,n.freehand_=!1,n.source_=e.source?e.source:null,n.features_=e.features?e.features:null,n.snapTolerance_=e.snapTolerance?e.snapTolerance:12,n.type_=e.type,n.mode_=function(t){switch(t){case"Point":case"MultiPoint":return P;case"LineString":case"MultiLineString":return L;case"Polygon":case"MultiPolygon":return I;case"Circle":return j;default:throw new Error("Invalid type: "+t)}}(n.type_),n.stopClick_=!!e.stopClick,n.minPoints_=e.minPoints?e.minPoints:n.mode_===I?3:2,n.maxPoints_=n.mode_===j?2:e.maxPoints?e.maxPoints:1/0,n.finishCondition_=e.finishCondition?e.finishCondition:w.b,n.geometryLayout_=e.geometryLayout?e.geometryLayout:l.a.XY;var o,a=e.geometryFunction;if(!a){var s,h=n.mode_;if(h===j)a=function(t,e,n){var r=e||new i.a([NaN,NaN]),o=Object(E.fromUserCoordinate)(t[0],n),a=Object(O.j)(o,Object(E.fromUserCoordinate)(t[t.length-1],n));r.setCenterAndRadius(o,Math.sqrt(a),this.geometryLayout_);var s=Object(E.getUserProjection)();return s&&r.transform(n,s),r};else h===P?s=m.a:h===L?s=c.a:h===I&&(s=y.a),a=function(t,e,n){return e?h===I?t[0].length?e.setCoordinates([t[0].concat([t[0][0]])],this.geometryLayout_):e.setCoordinates([],this.geometryLayout_):e.setCoordinates(t,this.geometryLayout_):e=new s(t,this.geometryLayout_),e}}return n.geometryFunction_=a,n.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,n.finishCoordinate_=null,n.sketchFeature_=null,n.sketchPoint_=null,n.sketchCoords_=null,n.sketchLine_=null,n.sketchLineCoords_=null,n.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,n.overlay_=new _.a({source:new b.a({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:(o=Object(S.b)(),function(t,e){return o[t.getGeometry().getType()]}),updateWhileInteracting:!0}),n.geometryName_=e.geometryName,n.condition_=e.condition?e.condition:x.j,n.freehandCondition_,e.freehand?n.freehandCondition_=x.d:n.freehandCondition_=e.freehandCondition?e.freehandCondition:x.m,n.addChangeListener(u.a.ACTIVE,n.updateState_),n}return T(e,t),e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleE
/*!
* jquery.fancytree.dnd5.js
*
* Drag-and-drop support (native HTML5).
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
*
* Copyright (c) 2008-2021, Martin Wendt (https://wwWendt.de)
*
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.38.2
* @date 2022-06-30T18:24:06Z
*/i=[n(9),n(176)],void 0===(o="function"==typeof(r=function(t){"use strict";var e,n,r=t.ui.fancytree,i=/Mac/.test(navigator.platform),o="fancytree-drop-over",a="application/x-fancytree-node",s=null,l=null,u=null,c=null,h=null,p=null,f=null,d=null,g=null,m=null;function v(){h=null,m=null,f=null,d=null,p=null,l=null,u=null,c&&c.removeClass("fancytree-drag-source fancytree-drag-remove"),c=null,s&&s.hide(),n&&(n.remove(),n=null)}function y(t){return 0===t?"":t>0?"+"+t:""+t}function _(t,e){var n=e.tree,r=e.dataTransfer;"dragstart"===t.type?(e.effectAllowed=n.options.dnd5.effectAllowed,e.dropEffect=n.options.dnd5.dropEffectDefault):(e.effectAllowed=d,e.dropEffect=f),e.dropEffectSuggested=function(t,e,n){var r=n;return i?e.metaKey&&e.altKey||e.ctrlKey?r="link":e.metaKey?r="move":e.altKey&&(r="copy"):e.ctrlKey?r="copy":e.shiftKey?r="move":e.altKey&&(r="link"),r!==p&&t.info("evalEffectModifiers: "+e.type+" - evalEffectModifiers(): "+p+" -> "+r),p=r,r}(n,t,n.options.dnd5.dropEffectDefault),e.isMove="move"===e.dropEffect,e.files=r.files||[]}function b(t,e,n){var r=e.tree,i=e.dataTransfer;return"dragstart"!==t.type&&d!==e.effectAllowed&&r.warn("effectAllowed should only be changed in dragstart event: "+t.type+": data.effectAllowed changed from "+d+" -> "+e.effectAllowed),!1===n&&(r.info("applyDropEffectCallback: allowDrop === false"),e.effectAllowed="none",e.dropEffect="none"),e.isMove="move"===e.dropEffect,"dragstart"===t.type&&(d=e.effectAllowed,f=e.dropEffect),i.effectAllowed=d,i.dropEffect=f,f}function w(e,n){if(n.options.dnd5.scroll&&function(e,n){var r,i,o=e.options.dnd5,a=e.$scrollParent[0],s=o.scrollSensitivity,l=o.scrollSpeed,u=0;a!==document&&"HTML"!==a.tagName?(r=e.$scrollParent.offset(),i=a.scrollTop,r.top+a.offsetHeight-n.pageY<s?a.scrollHeight-e.$scrollParent.innerHeight()-i>0&&(a.scrollTop=u=i+l):i>0&&n.pageY-r.top<s&&(a.scrollTop=u=i-l)):(i=t(document).scrollTop())>0&&n.pageY-i<s?(u=i-l,t(document).scrollTop(u)):t(window).height()-(n.pageY-i)<s&&(u=i+l,t(document).scrollTop(u)),u&&e.debug("autoScroll: "+u+"px")}(n.tree,e),!n.node)return n.tree.warn("Ignored dragover for non-node"),g;var i,a,l,u,c=null,p=n.tree,f=p.options,d=f.dnd5,m=n.node,v=n.otherNode,w="center",x=t(m.span),S=x.find("span.fancytree-title");if(!1===h)return p.debug("Ignored dragover, since dragenter returned false."),!1;if("string"==typeof h&&t.error("assert failed: dragenter returned string"),a=x.offset(),u=(e.pageY-a.top)/x.height(),void 0===e.pageY&&p.warn("event.pageY is undefined: see issue #1013."),h.after&&u>.75||!h.over&&h.after&&u>.5?c="after":h.before&&u<=.25||!h.over&&h.before&&u<=.5?c="before":h.over&&(c="over"),d.preventVoidMoves&&"move"===n.dropEffect&&(m===v?(m.debug("Drop over source node prevented."),c=null):"before"===c&&v&&m===v.getNextSibling()?(m.debug("Drop after source node prevented."),c=null):"after"===c&&v&&m===v.getPrevSibling()?(m.debug("Drop before source node prevented."),c=null):"over"===c&&v&&v.parent===m&&v.isLastSibling()&&(m.debug("Drop last child over own parent prevented."),c=null)),n.hitMode=c,c&&d.dragOver&&(_(e,n),d.dragOver(m,n),b(e,n,!!c),c=n.hitMode),g=c,"after"===c||"before"===c||"over"===c){switch(i=d.dropMarkerOffsetX||0,c){case"before":w="top",i+=d.dropMarkerInsertOffsetX||0;break;case"after":w="bottom",i+=d.dropMarkerInsertOffsetX||0}l={my:"left"+y(i)+" center",at:"left "+w,of:S},f.rtl&&(l.my="right"+y(-i)+" center",l.at="right "+w),s.toggleClass("fancytree-drop-after","after"===c).toggleClass(o,"over"===c).toggleClass("fancytree-drop-before","before"===c).show().position(r.fixPositionOptions(l))}else s.hide();return t(m.span).toggleClass("fancytree-drop-target","after"===c||"before"===c||"over"===c).toggleClass("fancytree-drop-after","after"===c).toggleClass("fancytree-drop-before","before"===c).toggleClass("fancytree-drop-accept","over"===c).toggleClass("fancytree-drop-reject",!1===c),c}function x(i){var o,s=this.options.dnd5,h=r.getNode(i),p=i.dataTransfer||i.originalEvent.dataTransfer,f={tree:this,node:h,options:this.options,originalEvent:i.originalEvent,widget:this.widget,dataTransfer:p,useDefau
/**
* jscolor - JavaScript Color Picker
*
* @link http://jscolor.com
* @license For open source use: GPLv3
* For commercial use: JSColor Commercial License
* @author Jan Odvarko
* @version 2.0.4
*
* See usage examples at http://jscolor.com/examples/
*/var r,i,o,a,s,l;window.jscolor||(window.jscolor=((l={register:function(){l.attachDOMReadyEvent(l.init),l.attachEvent(document,"mousedown",l.onDocumentMouseDown),l.attachEvent(document,"touchstart",l.onDocumentTouchStart),l.attachEvent(window,"resize",l.onWindowResize)},init:function(){l.jscolor.lookupClass&&l.jscolor.installByClassName(l.jscolor.lookupClass)},tryInstallOnElements:function(t,e){for(var n=new RegExp("(^|\\s)("+e+")(\\s*(\\{[^}]*\\})|\\s|$)","i"),r=0;r<t.length;r+=1){var i;if((void 0===t[r].type||"color"!=t[r].type.toLowerCase()||!l.isColorAttrSupported)&&!t[r].jscolor&&t[r].className&&(i=t[r].className.match(n))){var o=t[r],a=null,s=l.getDataAttr(o,"jscolor");null!==s?a=s:i[4]&&(a=i[4]);var u={};if(a)try{u=new Function("return ("+a+")")()}catch(t){l.warn("Error parsing jscolor options: "+t+":\n"+a)}o.jscolor=new l.jscolor(o,u)}}},isColorAttrSupported:(s=document.createElement("input"),!(!s.setAttribute||(s.setAttribute("type","color"),"color"!=s.type.toLowerCase()))),isCanvasSupported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))}(),fetchElement:function(t){return"string"==typeof t?document.getElementById(t):t},isElementType:function(t,e){return t.nodeName.toLowerCase()===e.toLowerCase()},getDataAttr:function(t,e){var n="data-"+e,r=t.getAttribute(n);return null!==r?r:null},attachEvent:function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n)},detachEvent:function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&t.detachEvent("on"+e,n)},_attachedGroupEvents:{},attachGroupEvent:function(t,e,n,r){l._attachedGroupEvents.hasOwnProperty(t)||(l._attachedGroupEvents[t]=[]),l._attachedGroupEvents[t].push([e,n,r]),l.attachEvent(e,n,r)},detachGroupEvents:function(t){if(l._attachedGroupEvents.hasOwnProperty(t)){for(var e=0;e<l._attachedGroupEvents[t].length;e+=1){var n=l._attachedGroupEvents[t][e];l.detachEvent(n[0],n[1],n[2])}delete l._attachedGroupEvents[t]}},attachDOMReadyEvent:function(t){var e=!1,n=function(){e||(e=!0,t())};"complete"!==document.readyState?document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",arguments.callee),n())})),window.attachEvent("onload",n),document.documentElement.doScroll&&window==window.top)&&function t(){if(document.body)try{document.documentElement.doScroll("left"),n()}catch(e){setTimeout(t,1)}}():setTimeout(n,1)},warn:function(t){window.console&&window.console.warn&&window.console.warn(t)},preventDefault:function(t){t.preventDefault&&t.preventDefault(),t.returnValue=!1},captureTarget:function(t){t.setCapture&&(l._capturedTarget=t,l._capturedTarget.setCapture())},releaseTarget:function(){l._capturedTarget&&(l._capturedTarget.releaseCapture(),l._capturedTarget=null)},fireEvent:function(t,e){if(t)if(document.createEvent)(n=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),t.dispatchEvent(n);else if(document.createEventObject){var n=document.createEventObject();t.fireEvent("on"+e,n)}else t["on"+e]&&t["on"+e]()},classNameToList:function(t){return t.replace(/^\s+|\s+$/g,"").split(/\s+/)},hasClass:function(t,e){return!!e&&-1!=(" "+t.className.replace(/\s+/g," ")+" ").indexOf(" "+e+" ")},setClass:function(t,e){for(var n=l.classNameToList(e),r=0;r<n.length;r+=1)l.hasClass(t,n[r])||(t.className+=(t.className?" ":"")+n[r])},unsetClass:function(t,e){for(var n=l.classNameToList(e),r=0;r<n.length;r+=1){var i=new RegExp("^\\s*"+n[r]+"\\s*|\\s*"+n[r]+"\\s*$|\\s+"+n[r]+"(\\s+)","g");t.className=t.className.replace(i,"$1")}},getStyle:function(t){return window.getComputedStyle?window.getComputedStyle(t):t.currentStyle},setStyle:(i=document.createElement("div"),o=function(t){for(var e=0;e<t.length;e+=1)if(t[e]in i.style)return t[e]},a={borderRadius:o(["borderRadius","MozBorderRadius","webkitBorderRadius"]),boxShadow:o(["boxShadow","MozBoxShadow","webkitBoxShadow"])},f
/*! jQuery UI - v1.13.0 - 2021-11-09
* http://jqueryui.com
* Includes: widget.js, position.js, jquery-patch.js, keycode.js, scroll-parent.js, unique-id.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */!function(a){"use strict";i=[n(9)],void 0===(o="function"==typeof(r=function(t){t.ui=t.ui||{};t.ui.version="1.13.0";
/*!
* jQuery UI Widget 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/var e=0,n=Array.prototype.hasOwnProperty,r=Array.prototype.slice;t.cleanData=t.cleanData||(i=t.cleanData,function(e){var n,r,o;for(o=0;null!=(r=e[o]);o++)(n=t._data(r,"events"))&&n.remove&&t(r).triggerHandler("remove");i(e)}),t.widget=t.widget||function(e,n,r){var i,o,a,s={},l=e.split(".")[0],u=l+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),Array.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},i=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,(function(t,e){s[t]="function"==typeof e?function(){function r(){return n.prototype[t].apply(this,arguments)}function i(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=r,this._superApply=i,t=e.apply(this,arguments),this._super=n,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),i?(t.each(i._childConstructors,(function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,o,a=r.call(arguments,1),s=0,l=a.length;s<l;s++)for(i in a[s])o=a[s][i],n.call(a[s],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,s=r.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var n,r=t.data(this,i);return"instance"===o?(l=r,!1):r?"function"!=typeof r[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(n=r[o].apply(r,s))!==r&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,i);e?(e.option(o||{}),e._init&&e._init()):t.data(this,i,new n(o,this))}))),l}},t.Widget=t.Widget||function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,r){r=t(r||this.defaultElement||this)[0],this.element=t(r),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},r!==this&&(t.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===r&&this.destroy()}}),this.document=t(r.style?r.ownerDocument:r.document||r),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.lengt
/*!
* jQuery UI Position 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/position/
*/!function(){var e,n=Math.max,r=Math.abs,i=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,u=t.fn.position;function c(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function h(e,n){return parseInt(t.css(e,n),10)||0}function p(t){return null!=t&&t===t.window}function f(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:p(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position=t.position||{scrollbarWidth:function(){if(void 0!==e)return e;var n,r,i=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=i.children()[0];return t("body").append(i),n=o.offsetWidth,i.css("overflow","scroll"),n===(r=o.offsetWidth)&&(r=i[0].clientWidth),i.remove(),e=n-r},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),r=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),i="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:i?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),r=p(n[0]),i=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:r,isDocument:i,offset:!r&&!i?t(e).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return u.apply(this,arguments);var l,p,d,g,m,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),_=t.position.getWithinInfo(e.within),b=t.position.getScrollInfo(_),w=(e.collision||"flip").split(" "),x={};return v=f(y),y[0].preventDefault&&(e.at="left top"),p=v.width,d=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],(function(){var t,n,r=(e[this]||"").split(" ");1===r.length&&(r=i.test(r[0])?r.concat(["center"]):o.test(r[0])?["center"].concat(r):["center","center"]),r[0]=i.test(r[0])?r[0]:"center",r[1]=o.test(r[1])?r[1]:"center",t=a.exec(r[0]),n=a.exec(r[1]),x[this]=[t?t[0]:0,n?n[0]:0],e[this]=[s.exec(r[0])[0],s.exec(r[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?m.left+=p:"center"===e.at[0]&&(m.left+=p/2),"bottom"===e.at[1]?m.top+=d:"center"===e.at[1]&&(m.top+=d/2),l=c(x.at,p,d),m.left+=l[0],m.top+=l[1],this.each((function(){var i,o,a=t(this),s=a.outerWidth(),u=a.outerHeight(),f=h(this,"marginLeft"),v=h(this,"marginTop"),S=s+f+h(this,"marginRight")+b.width,E=u+v+h(this,"marginBottom")+b.height,C=t.extend({},m),O=c(x.my,a.outerWidth(),a.outerHeight());"right"===e.my[0]?C.left-=s:"center"===e.my[0]&&(C.left-=s/2),"bottom"===e.my[1]?C.top-=u:"center"===e.my[1]&&(C.top-=u/2),C.left+=O[0],C.top+=O[1],i={marginLeft:f,marginTop:v},t.each(["left","top"],(function(n,r){t.ui.position[w[n]]&&t.ui.position[w[n]][r](C,{targetWidth:p,targetHeight:d,elemWidth:s,elemHeight:u,collisionPosition:i,collisionWidth:S,collisionHeight:E,offset:[l[0]+O[0],l[1]+O[1]],my:e.my,at:e.at,within:_,elem:a})})),e.using&&(o=function(t){var i=g.left-C.left,o=i+p-s,l=g.top-C.top,c=l+d-u,h={target:{element:y,left:g.left,top:g.top,width:p,height:d},element:{element:a,left:C.left,top:C.top,width:s,height:u},horizontal:o<0?"left":i>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};p<s&&r(i+o)<p&&(h.horizontal="center"),d<u&&r(l+c)<d&&(h.vertical="middle"),n(r(i),r(o))>n(r(l),r(c))?h.important="horizontal":h.important="vertical",e.using.call(this,t,h)}),a.offset(t.extend(C,{using:o}))}))},t.ui.position={fit:{left:function(t,e){var r,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=t.left-e.collisionPosition.marginLeft,l=o-s,u=s+e.collisionWidth-a-o;e.collisionWidth>a?l>0&&u<=0?(r=t.left+l+e.collisionWidth-a-o,t.left+=l-r):t.left=u>0&&l<=0?o:l>u?o+a-e.collisionWidth:o:l>0?t.left+=l:u>0?t.left-=u:t.left=n(t.left-s,t.left)},top:func
/*!
* jQuery UI Support for jQuery core 1.8.x and newer 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/t.expr.pseudos||(t.expr.pseudos=t.expr[":"]);t.uniqueSort||(t.uniqueSort=t.unique);if(!t.escapeSelector){var o=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,a=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};t.escapeSelector=function(t){return(t+"").replace(o,a)}}t.fn.even&&t.fn.odd||t.fn.extend({even:function(){return this.filter((function(t){return t%2==0}))},odd:function(){return this.filter((function(t){return t%2==1}))}});
/*!
* jQuery UI Keycode 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.scrollParent=function(e){var n=this.css("position"),r="absolute"===n,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!r||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:t(this[0].ownerDocument||document)},t.fn.extend({uniqueId:(s=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++s)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}});
/*!
* jQuery UI Scroll Parent 1.13.0
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/var s})?r.apply(e,i):r)||(t.exports=o)}()},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){t.exports=function(){"use strict";function t(t,r,i,o,a){!function t(n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-l*c/s+h)),Math.min(o,Math.floor(r+(s-l)*c/s+h)),a)}var p=n[r],f=i,d=o;for(e(n,i,r),a(n[o],p)>0&&e(n,i,o);f<d;){for(e(n,f,d),f++,d--;a(n[f],p)<0;)f++;for(;a(n[d],p)>0;)d--}0===a(n[i],p)?e(n,i,d):e(n,++d,o),d<=r&&(i=d+1),r<=d&&(o=d-1)}}(t,r,i||0,o||t.length-1,a||n)}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}var r=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(t,e,n){if(!n)return e.indexOf(t);for(var r=0;r<e.length;r++)if(n(t,e[r]))return r;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,r,i){i||(i=d(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(i,t.leaf?r(a):a)}return i}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function h(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,r,i,o){for(var a=[n,r];a.length;)if(!((r=a.pop())-(n=a.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;t(e,s,n,r,o),a.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(t){var e=this.data,n=[];if(!f(t,e))return n;for(var r=this.toBBox,i=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?r(a):a;f(t,s)&&(e.leaf?n.push(a):p(t,s)?this._all(a,n):i.push(a))}e=i.pop()}return n},r.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var n=[];e;){for(var r=0;r<e.children.length;r++){var i=e.children[r],o=e.leaf?this.toBBox(i):i;if(f(t,o)){if(e.leaf||p(t,o))return!0;n.push(i)}}e=n.pop()}return!1},r.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},r.prototype.clear=function(){return this.data=d([]),this},r.prototype.remove=function(t,e){if(!t)return this;for(var n,r,o,a=this.data,s=this.toBBox(t),l=[],u=[];a||l.length;){if(a||(a=l.pop(),r=l[l.length-1],n=u.pop(),o=!0),a.leaf){var c=i(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!p(a,s)?r?(n++,a=r.children[n],o=!1):a=null:(l.push(a),u.push(n),n=0,r=a,a=a.children[0])}return this},r.prototype.toBBox=function(t){return t},r.prototype.compareMinX=function(t,e){return t.minX-e.minX},r.prototype.compareMinY=function(t,e){return t.minY-e.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(t){return this.data=t,this},r.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},r.prototype._build=function(t,e,n,r){var i,a=n-e+1,s=this._maxEntries;if(a<=s)return o(i=d(t.slice(e,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,r-1))),(i=d([])).leaf=!1,i.height=r;var l=Math.ceil(a/s),u=l*Math.ceil(Math.sqrt(s));g(t,e,n,u,this.compar
/*!
* perfect-scrollbar v1.5.3
* Copyright 2021 Hyunje Jun, MDBootstrap and Contributors
* Licensed under MIT
*/
function w(t){return getComputedStyle(t)}function x(t,e){for(var n in e){var r=e[n];"number"==typeof r&&(r+="px"),t.style[n]=r}return t}function S(t){var e=document.createElement("div");return e.className=t,e}var E="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function C(t,e){if(!E)throw new Error("No element matching method supported");return E.call(t,e)}function O(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function T(t,e){return Array.prototype.filter.call(t.children,(function(t){return C(t,e)}))}var P="ps",L="ps__rtl",I={thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},j={focus:"ps--focus",clicking:"ps--clicking",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}},M={x:null,y:null};function R(t,e){var n=t.element.classList,r=j.scrolling(e);n.contains(r)?clearTimeout(M[e]):n.add(r)}function A(t,e){M[e]=setTimeout((function(){return t.isAlive&&t.element.classList.remove(j.scrolling(e))}),t.settings.scrollingThreshold)}var k=function(t){this.element=t,this.handlers={}},F={isEmpty:{configurable:!0}};k.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},k.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter((function(r){return!(!e||r===e)||(n.element.removeEventListener(t,r,!1),!1)}))},k.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},F.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every((function(e){return 0===t.handlers[e].length}))},Object.defineProperties(k.prototype,F);var D=function(){this.eventElements=[]};function N(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function G(t,e,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,r,i){var o=n[0],a=n[1],s=n[2],l=n[3],u=n[4],c=n[5];void 0===r&&(r=!0);void 0===i&&(i=!1);var h=t.element;t.reach[l]=null,h[s]<1&&(t.reach[l]="start");h[s]>t[o]-t[a]-1&&(t.reach[l]="end");e&&(h.dispatchEvent(N("ps-scroll-"+l)),e<0?h.dispatchEvent(N("ps-scroll-"+u)):e>0&&h.dispatchEvent(N("ps-scroll-"+c)),r&&function(t,e){R(t,e),A(t,e)}(t,l));t.reach[l]&&(e||i)&&h.dispatchEvent(N("ps-"+l+"-reach-"+t.reach[l]))}(t,n,o,r,i)}function U(t){return parseInt(t,10)||0}D.prototype.eventElement=function(t){var e=this.eventElements.filter((function(e){return e.element===t}))[0];return e||(e=new k(t),this.eventElements.push(e)),e},D.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},D.prototype.unbind=function(t,e,n){var r=this.eventElement(t);r.unbind(e,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},D.prototype.unbindAll=function(){this.eventElements.forEach((function(t){return t.unbindAll()})),this.eventElements=[]},D.prototype.once=function(t,e,n){var r=this.eventElement(t),i=function(t){r.unbind(e,i),n(t)};r.bind(e,i)};var B={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function z(t){var e=t.element,n=Math.floor(e.scrollTop),r=e.getBoundingClientRect();t.containerWidth=Math.round(r.width),t.containerHeight=Math.round(r.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail
//# sourceMappingURL=pma.ui.js.map