PageSourceSearch

https://deba.com.cn/assets/common/js/_.js?v=3.8.3

js deba.com.cn collected 2026-10-07 00:47:54 UTC 1,913,555 bytes, 13 lines download raw bytes

vendor: 15,388 bytes, line 1
1class _DictUtil{get(e){var t=this.data[e];for(let e=0;e<t.length;e++)t[e].name=i18n(t[e].name);return t}result(e,t){let n=void 0,i=[];if(i="object"==typeof e?e:this.data[e])return i.forEach(e=>{t==e.id&&(n=e.name)}),n=void 0!==n?i18n(n):n}advanced(e,t=null){var n;null!=e&&("object"==typeof e?t&&t(this.globalization(e)):this.data.hasOwnProperty(e)?(n=this.globalization(this.data[e]),t&&t(n)):util.post(this.dictUrl+e,{},e=>{t&&t(this.globalization(e.data))}))}globalization(e){var t=[...e];for(let e=0;e<t.length;e++)t[e]={...t[e]},t[e].name=i18n(t[e].name);return t}}((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})("undefined"!=typeof window?window:this,function(A,O){function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function g(e){return null!=e&&e===e.window}var t=[],P=Object.getPrototypeOf,s=t.slice,B=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},j=t.push,H=t.indexOf,F={},z=F.toString,W=F.hasOwnProperty,U=W.toString,q=U.call(Object),m={},C=A.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function Y(e,t,n){var i,o,r=(n=n||C).createElement("script");if(r.text=e,t)for(i in V)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function f(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?F[z.call(e)]||"object":typeof e}var e="3.6.0",k=function(e,t){return new k.fn.init(e,t)};function K(e){var t=!!e&&"length"in e&&e.length,n=f(e);return!v(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:e,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=k.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:j,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,i,o,r=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===s&&(r=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&r!==n&&(l&&n&&(k.isPlainObject(n)||(i=Array.isArray(n)))?(o=r[t],o=i&&!Array.isArray(o)?[]:i||k.isPlainObject(o)?o:{},i=!1,r[t]=k.extend(l,o,n)):void 0!==n&&(r[t]=n));return r},k.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==z.call(e)||(e=P(e))&&("function"!=typeof(e=W.call(e,"constructor")&&e.constructor)||U.call(e)!==q))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){Y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(K(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(K(Object(e))?k.merge(t,"string"==typeof e?[e]:e):j.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:H.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,a=!n;o<r;o++)!t(e[o],o)!=a&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(K(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return B(a)},guid:1,support:m}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){F["[object "+t+"]"]=t.toLowerCase()});function i(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&k(e).is(n))break;i.push(e)}return i}function G(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=(O=>{function d(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function P(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function B(){A()}var e,h,w,r,j,p,H,F,x,l,c,A,C,n,k,f,i,o,g,_="sizzle"+ +new Date,u=O.document,S=0,z=0,W=L(),U=L(),q=L(),m=L(),V=function(e,t){return e===t&&(c=!0),0},Y={}.hasOwnProperty,t=[],K=t.pop,G=t.push,E=t.push,Q=t.slice,T=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},X="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",J="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Z=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+J+")*)|.*)\\)|)",ee=new RegExp(a+"+","g"),$=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),te=new RegExp("^"+a+"*,"+a+"*"),ne=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ie=new RegExp(a+"|>"),oe=new RegExp(Z),re=new RegExp("^"+s+"$"),y={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+X+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ae=/HTML$/i,se=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,v=/^[^{]+\{\s*\[native \w/,ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ue=/[+~]/,b=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),de=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(t=Q.call(u.childNodes),u.childNodes),t[u.childNodes.length].nodeType}catch(e){E={apply:t.length?function(e,t){G.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function D(e,t,n,i){var o,r,a,s,l,c,u=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!i&&(A(t),t=t||C,k)){if(11!==d&&(s=ce.exec(e)))if(o=s[1]){if(9===d){if(!(c=t.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(u&&(c=u.getElementById(o))&&g(t,c)&&c.id===o)return n.push(c),n}else{if(s[2])return E.apply(n,t.getElementsByTagName(e)),n;if((o=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return E.apply(n,t.getElementsByClassName(o)),n}if(h.qsa&&!m[e+" "]&&(!f||!f.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(c=e,u=t,1===d&&(ie.test(e)||ne.test(e))){for((u=ue.test(e)&&me(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(de,P):t.setAttribute("id",a=_)),r=(l=p(e)).length;r--;)l[r]=(a?"#"+a:":scope")+" "+R(l[r]);c=l.join(",")}try{return E.apply(n,u.querySelectorAll(c)),n}catch(t){m(e,!0)}finally{a===_&&t.removeAttribute("id")}}}return F(e.replace($,"$1"),t,n,i)}function L(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function N(e){return e[_]=!0,e}function I(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function pe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function M(a){return N(function(r){return r=+r,N(function(e,t){for(var n,i=a([],e.length,r),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=D.support={},j=D.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!ae.test(t||e&&e.nodeName||"HTML")},A=D.setDocument=function(e){var e=e?e.ownerDocument||e:u;return e!=C&&9===e.nodeType&&e.documentElement&&(n=(C=e).documentElement,k=!j(C),u!=C&&(e=C.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",B,!1):e.attachEvent&&e.attachEvent("onunload",B)),h.scope=I(function(e){return n.appendChild(e).appendChild(C.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=I(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=I(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=v.test(C.getElementsByClassName),h.getById=I(function(e){return n.appendChild(e).id=_,!C.getElementsByName||!C.getElementsByName(_).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(b,d);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(b,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},i=[],f=[],(h.qsa=v.test(C.querySelectorAll))&&(I(function(e){var t;n.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\["+a+"*(?:value|"+X+")"),e.querySelectorAll("[id~="+_+"-]").length||f.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||f.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),I(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(h.matchesSelector=v.test(o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&I(function(e){h.disconnectedMatch=o.call(e,"*"),o.call(e,"[s!='']:x"),i.push("!=",Z)}),f=f.length&&new RegExp(f.join("|")),i=i.length&&new RegExp(i.join("|")),e=v.test(n.compareDocumentPosition),g=e||v.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=e?function(e,t){var n;return e===t?(c=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==u&&g(u,e)?-1:t==C||t.ownerDocument==u&&g(u,t)?1:l?T(l,e)-T(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],s=[t];if(!o||!r)return e==C?-1:t==C?1:o?-1:r?1:l?T(l,e)-T(l,t):0;if(o===r)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?fe(a[i],s[i]):a[i]==u?-1:s[i]==u?1:0}),C},D.matches=function(e,t){return D(e,null,null,t)},D.matchesSelector=function(e,t){if(A(e),h.matchesSelector&&k&&!m[t+" "]&&(!i||!i.test(t))&&(!f||!f.test(t)))try{var n=o.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){m(t,!0)}return 0<D(t,C,null,[e]).length},D.contains=function(e,t){return(e.ownerDocument||e)!=C&&A(e),g(e,t)},D.attr=function(e,t){(e.ownerDocument||e)!=C&&A(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Y.call(w.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==n?n:h.attributes||!k?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},D.escape=function(e){return(e+"").replace(de,P)},D.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},D.uniqueSort=function(e){var t,n=[],i=0,o=0;if(c=!h.detectDuplicates,l=!h.sortStable&&e.slice(0),e.sort(V),c){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return l=null,e},r=D.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(w=D.selectors={cacheLength:50,createPseudo:N,match:y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(b,d),e[3]=(e[3]||e[4]||e[5]||"").replace(b,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||D.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&D.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&oe.test(n)&&(t=(t=p(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(b,d).toLowerCase();return"*"===e?function(){return!0}
vendor: 23,398 bytes, line 1
1:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=D.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(ee," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var y="nth"!==f.slice(0,3),v="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,o,r,a,s,l,c=y!=v?"nextSibling":"previousSibling",u=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,p=!1;if(u){if(y){for(;c;){for(a=e;a=a[c];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&h){for(p=(s=(i=(o=(r=(a=u)[_]||(a[_]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===S&&i[1])&&i[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(p=s=0,l.pop());)if(1===a.nodeType&&++p&&a===e){o[f]=[S,s,p];break}}else if(!1===(p=h?s=(i=(o=(r=(a=e)[_]||(a[_]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===S&&i[1]:p))for(;(a=++s&&a&&a[c]||(p=s=0,l.pop()))&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(h&&((o=(r=a[_]||(a[_]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]=[S,p]),a!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,r){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||D.error("unsupported pseudo: "+e);return a[_]?a(r):1<a.length?(t=[e,e,"",r],w.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,i=a(e,r),o=i.length;o--;)e[n=T(e,i[o])]=!(t[n]=i[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:N(function(e){var i=[],o=[],s=H(e.replace($,"$1"));return s[_]?N(function(e,t,n,i){for(var o,r=s(e,null,i,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return i[0]=e,s(i,null,n,o),i[0]=null,!o.pop()}}),has:N(function(t){return function(e){return 0<D(t,e).length}}),contains:N(function(t){return t=t.replace(b,d),function(e){return-1<(e.textContent||r(e)).indexOf(t)}}),lang:N(function(n){return re.test(n||"")||D.error("unsupported lang: "+n),n=n.replace(b,d).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=O.location&&O.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return le.test(e.nodeName)},input:function(e){return se.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:M(function(){return[0]}),last:M(function(e,t){return[t-1]}),eq:M(function(e,t,n){return[n<0?n+t:n]}),even:M(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:M(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:M(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:M(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(e);function ye(){}function R(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ve(a,e,t){var s=e.dir,l=e.next,c=l||s,u=t&&"parentNode"===c,d=z++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||u)return a(e,t,n);return!1}:function(e,t,n){var i,o,r=[S,d];if(n){for(;e=e[s];)if((1===e.nodeType||u)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||u)if(o=(o=e[_]||(e[_]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=o[c])&&i[0]===S&&i[1]===d)return r[2]=i[2];if((o[c]=r)[2]=a(e,t,n))return!0}return!1}}function be(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function we(e,t,n,i,o){for(var r,a=[],s=0,l=e.length,c=null!=t;s<l;s++)!(r=e[s])||n&&!n(r,i,o)||(a.push(r),c&&t.push(s));return a}function xe(p,f,g,m,y,e){return m&&!m[_]&&(m=xe(m)),y&&!y[_]&&(y=xe(y,e)),N(function(e,t,n,i){var o,r,a,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var i=0,o=t.length;i<o;i++)D(e,t[i],n);return n})(f||"*",n.nodeType?[n]:n,[]),d=!p||!e&&f?u:we(u,s,p,n,i),h=g?y||(e?p:c||m)?[]:t:d;if(g&&g(d,h,n,i),m)for(o=we(h,l),m(o,[],n,i),r=o.length;r--;)(a=o[r])&&(h[l[r]]=!(d[l[r]]=a));if(e){if(y||p){if(y){for(o=[],r=h.length;r--;)(a=h[r])&&o.push(d[r]=a);y(null,h=[],o,i)}for(r=h.length;r--;)(a=h[r])&&-1<(o=y?T(e,a):s[r])&&(e[o]=!(t[o]=a))}}else h=we(h===t?h.splice(c,h.length):h),y?y(null,t,h,i):E.apply(t,h)})}return ye.prototype=w.filters=w.pseudos,w.setFilters=new ye,p=D.tokenize=function(e,t){var n,i,o,r,a,s,l,c=U[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=w.preFilter;a;){for(r in n&&!(i=te.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(o=[])),n=!1,(i=ne.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace($," ")}),a=a.slice(n.length)),w.filter)!(i=y[r].exec(a))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?D.error(e):U(e,s).slice(0)},H=D.compile=function(e,t){var n,m,y,v,b,i,o=[],r=[],a=q[e+" "];if(!a){for(n=(t=t||p(e)).length;n--;)((a=function e(t){for(var i,n,o,r=t.length,a=w.relative[t[0].type],s=a||w.relative[" "],l=a?1:0,c=ve(function(e){return e===i},s,!0),u=ve(function(e){return-1<T(i,e)},s,!0),d=[function(e,t,n){return e=!a&&(n||t!==x)||((i=t).nodeType?c:u)(e,t,n),i=null,e}];l<r;l++)if(n=w.relative[t[l].type])d=[ve(be(d),n)];else{if((n=w.filter[t[l].type].apply(null,t[l].matches))[_]){for(o=++l;o<r&&!w.relative[t[o].type];o++);return xe(1<l&&be(d),1<l&&R(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace($,"$1"),n,l<o&&e(t.slice(l,o)),o<r&&e(t=t.slice(o)),o<r&&R(t))}d.push(n)}return be(d)}(t[n]))[_]?o:r).push(a);(a=q(e,(v=0<(y=o).length,b=0<(m=r).length,i=function(e,t,n,i,o){var r,a,s,l=0,c="0",u=e&&[],d=[],h=x,p=e||b&&w.find.TAG("*",o),f=S+=null==h?1:Math.random()||.1,g=p.length;for(o&&(x=t==C||t||o);c!==g&&null!=(r=p[c]);c++){if(b&&r){for(a=0,t||r.ownerDocument==C||(A(r),n=!k);s=m[a++];)if(s(r,t||C,n)){i.push(r);break}o&&(S=f)}v&&((r=!s&&r)&&l--,e)&&u.push(r)}if(l+=c,v&&c!==l){for(a=0;s=y[a++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=K.call(i));d=we(d)}E.apply(i,d),o&&!e&&0<d.length&&1<l+y.length&&D.uniqueSort(i)}return o&&(S=f,x=h),u},v?N(i):i))).selector=e}return a},F=D.select=function(e,t,n,i){var o,r,a,s,l,c="function"==typeof e&&e,u=!i&&p(e=c.selector||e);if(n=n||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===t.nodeType&&k&&w.relative[r[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(b,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=y.needsContext.test(e)?0:r.length;o--&&(a=r[o],!w.relative[s=a.type]);)if((l=w.find[s])&&(i=l(a.matches[0].replace(b,d),ue.test(r[0].type)&&me(t.parentNode)||t))){if(r.splice(o,1),e=i.length&&R(r))break;return E.apply(n,i),n}}return(c||H(e,u))(i,t,!k,n,!t||ue.test(e)&&me(t.parentNode)||t),n},h.sortStable=_.split("").sort(V).join("")===_,h.detectDuplicates=!!c,A(),h.sortDetached=I(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),I(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&I(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),I(function(e){return null==e.getAttribute("disabled")})||pe(X,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),D})(A),Q=(k.find=e,k.expr=e.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=e.uniqueSort,k.text=e.getText,k.isXMLDoc=e.isXML,k.contains=e.contains,k.escapeSelector=e.escape,k.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var X=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(e,n,i){return v(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?k.grep(e,function(e){return e===n!==i}):"string"!=typeof n?k.grep(e,function(e){return-1<H.call(n,e)!==i}):k.filter(n,e,i)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<i;t++)if(k.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,o[t],n);return 1<i?k.uniqueSort(n):n},filter:function(e){return this.pushStack(J(this,e||[],!1))},not:function(e){return this.pushStack(J(this,e||[],!0))},is:function(e){return!!J(this,"string"==typeof e&&Q.test(e)?k(e):e||[],!1).length}});var Z,ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,te=((k.fn.init=function(e,t,n){if(e){if(n=n||Z,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),X.test(i[1])&&k.isPlainObject(t))for(var i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i])}else(n=C.getElementById(i[2]))&&(this[0]=n,this.length=1)}return this}).prototype=k.fn,Z=k(C),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function ie(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],a="string"!=typeof e&&k(e);if(!Q.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?k.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?H.call(k(e),this[0]):H.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return i(e,"parentNode")},parentsUntil:function(e,t,n){return i(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return i(e,"nextSibling")},prevAll:function(e){return i(e,"previousSibling")},nextUntil:function(e,t,n){return i(e,"nextSibling",n)},prevUntil:function(e,t,n){return i(e,"previousSibling",n)},siblings:function(e){return G((e.parentNode||{}).firstChild,e)},children:function(e){return G(e.firstChild)},contents:function(e){return null!=e.contentDocument&&P(e.contentDocument)?e.contentDocument:(l(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(i,o){k.fn[i]=function(e,t){var n=k.map(this,o,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(ne[i]||k.uniqueSort(n),te.test(i))&&n.reverse(),this.pushStack(n)}});var _=/[^\x20\t\r\n\f]+/g;function u(e){return e}function oe(e){throw e}function re(e,t,n,i){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},k.each(e.match(_)||[],function(e,t){n[t]=!0}),n):k.extend({},i);function o(){for(s=s||i.once,a=r=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&i.stopOnFalse&&(u=l.length,t=!1);i.memory||(t=!1),r=!1,s&&(l=t?[]:"")}var r,t,a,s,l=[],c=[],u=-1,d={add:function(){return l&&(t&&!r&&(u=l.length-1,c.push(t)),function n(e){k.each(e,function(e,t){v(t)?i.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==f(t)&&n(t)})}(arguments),t)&&!r&&o(),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<k.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=c=[],t||r||(l=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),r)||o(),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},k.extend({Deferred:function(e){var r=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],o="pending",a={state:function(){return o},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var o=arguments;return k.Deferred(function(i){k.each(r,function(e,t){var n=v(o[t[4]])&&o[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),o=null}).promise()},then:function(t,n,i){var l=0;function c(o,r,a,s){return function(){function e(){var e,t;if(!(o<l)){if((e=a.apply(n,i))===r.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,c(l,r,u,s),c(l,r,oe,s)):(l++,t.call(e,c(l,r,u,s),c(l,r,oe,s),c(l,r,u,r.notifyWith))):(a!==u&&(n=void 0,i=[e]),(s||r.resolveWith)(n,i))}}var n=this,i=arguments,t=s?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),l<=o+1&&(a!==oe&&(n=void 0,i=[e]),r.rejectWith(n,i))}};o?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),A.setTimeout(t))}}return k.Deferred(function(e){r[0][3].add(c(0,e,v(i)?i:u,e.notifyWith)),r[1][3].add(c(0,e,v(t)?t:u)),r[2][3].add(c(0,e,v(n)?n:oe))}).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},s={};return k.each(r,function(e,t){var n=t[2],i=t[5];a[t[1]]=n.add,i&&n.add(function(){o=i},r[3-e][2].disable,r[3-e][3].disable,r[0][2].lock,r[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){o[t]=this,r[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(o,r)}}var n=arguments.length,i=n,o=Array(i),r=s.call(arguments),a=k.Deferred();if(n<=1&&(re(e,a.done(t(i)).resolve,a.reject,!n),"pending"===a.state()||v(r[i]&&r[i].then)))return a.then();for(;i--;)re(r[i],t(i),a.reject);return a.promise()}});var ae=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,se=(k.Deferred.exceptionHook=function(e,t){A.console&&A.console.warn&&e&&ae.test(e.name)&&A.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){A.setTimeout(function(){throw e})},k.Deferred());function le(){C.removeEventListener("DOMContentLoaded",le),A.removeEventListener("load",le),k.ready()}k.fn.ready=function(e){return se.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||se.resolveWith(C,[k])}}),k.ready.then=se.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?A.setTimeout(k.ready):(C.addEventListener("DOMContentLoaded",le),A.addEventListener("load",le));function d(e,t,n,i,o,r,a){var s=0,l=e.length,c=null==n;if("object"===f(n))for(s in o=!0,n)d(e,t,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,v(i)||(a=!0),t=c?a?(t.call(e,i),null):(c=t,function(e,t,n){return c.call(k(e),n)}):t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):r}var ce=/^-ms-/,ue=/-([a-z])/g;function de(e,t){return t.toUpperCase()}function b(e){return e.replace(ce,"ms-").replace(ue,de)}function y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function he(){this.expando=k.expando+he.uid++}he.uid=1,he.prototype={cache:function(e){var t=e[this.expando];return t||(t={},y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[b(t)]=n;else for(i in t)o[b(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][b(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(b):(t=b(t))in i?[t]:t.match(_)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!k.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var w=new he,c=new he,pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fe=/[A-Z]/g;function ge(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(fe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:pe.test(o)?JSON.parse(o):o)}catch(e){}c.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return c.hasData(e)||w.hasData(e)},data:function(e,t,n){return c.access(e,t,n)},removeData:function(e,t){c.remove(e,t)},_data:function(e,t,n){return w.access(e,t,n)},_removeData:function(e,t){w.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,i,o,r=this[0],a=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){c.set(this,n)}):d(this,function(e){var t;if(r&&void 0===e)return void 0!==(t=c.get(r,n))||void 0!==(t=ge(r,n))?t:void 0;this.each(function(){c.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=c.get(r),1===r.nodeType)&&!w.get(r,"hasDataAttrs")){for(t=a.length;t--;)a[t]&&0===(i=a[t].name).indexOf("data-")&&(i=b(i.slice(5)),ge(r,i,o[i]));w.set(r,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){c.remove(this,e)})}}),k.extend({queue:function(e,t,n){var i;if(e)return i=w.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=w.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,o=n.shift(),r=k._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){k.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w.get(e,n)||w.access(e,n,{empty:k.Callbacks("once memory").add(function(){w.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--o||r.resolveWith(a,[a])}var i,o=1,r=k.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=w.get(a[s],e+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(t)}});function me(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&S(e)&&"none"===k.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ye=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),h=["Top","Right","Bottom","Left"],x=C.documentElement,S=function(e){return k.contains(e.ownerDocument,e)},ve={composed:!0};x.getRootNode&&(S=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});function be(e,t,n,i){var o,r,a=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&ye.exec(k.css(e,t));if(u&&u[3]!==c){for(c=c||u[3],u=+(l/=2)||1;a--;)k.style(e,t,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;k.style(e,t,(u*=2)+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i)&&(i.unit=c,i.start=u,i.end=o),o}var we={};function E(e,t){for(var n,i,o,r,a,s,l=[],c=0,u=e.length;c<u;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(l[c]=w.get(i,"display")||null,l[c]||(i.style.display="")),""===i.style.display&&me(i)&&(l[c]=(s=r=o=void 0,r=i.ownerDocument,(s=we[a=i.nodeName])||(o=r.body.appendChild(r.createElement(a)),s=k.css(o,"display"),o.parentNode.removeChild(o),we[a]=s="none"===s?"block":s)))):"none"!==n&&(l[c]="none",w.set(i,"display",n)));for(c=0;c<u;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}k.fn.extend({show:function(){return E(this,!0)},hide:function(){return E(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){me(this)?k(this).show():k(this).hide()})}});var xe=/^(?:checkbox|radio)$/i,Ae=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i,n=C.createDocumentFragment().appendChild(C.createElement("div")),T=((N=C.createElement("input")).setAttribute("type","radio"),N.setAttribute("checked","checked"),N.setAttribute("name","t"),n.appendChild(N),m.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue,n.innerHTML="<option></option>",m.option=!!n.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function $(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?k.merge([e],n):n}function ke(e,t){for(var n=0,i=e.length;n<i;n++)w.set(e[n],"globalEval",!t||w.get(t[n],"globalEval"))}
vendor: 4,259 bytes, line 1
1T.tbody=T.tfoot=T.colgroup=T.caption=T.thead,T.th=T.td,m.option||(T.optgroup=T.option=[1,"<select multiple='multiple'>","</select>"]);var _e=/<|&#?\w+;/;function Se(e,t,n,i,o){for(var r,a,s,l,c,u=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((r=e[h])||0===r)if("object"===f(r))k.merge(d,r.nodeType?[r]:r);else if(_e.test(r)){for(a=a||u.appendChild(t.createElement("div")),s=(Ae.exec(r)||["",""])[1].toLowerCase(),s=T[s]||T._default,a.innerHTML=s[1]+k.htmlPrefilter(r)+s[2],c=s[0];c--;)a=a.lastChild;k.merge(d,a.childNodes),(a=u.firstChild).textContent=""}else d.push(t.createTextNode(r));for(u.textContent="",h=0;r=d[h++];)if(i&&-1<k.inArray(r,i))o&&o.push(r);else if(l=S(r),a=$(u.appendChild(r),"script"),l&&ke(a),n)for(c=0;r=a[c++];)Ce.test(r.type||"")&&n.push(r);return u}var Ee=/^([^.]*)(?:\.(.+)|)/;function a(){return!0}function p(){return!1}function Te(e,t){return e===(()=>{try{return C.activeElement}catch(e){}})()==("focus"===t)}function $e(e,t,n,i,o,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)$e(e,s,n,i,t[s],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=p;else if(!o)return e;return 1===r&&(a=o,(o=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,o,i,n)})}function De(e,o,r){r?(w.set(e,o,!1),k.event.add(e,o,{namespace:!1,handler:function(e){var t,n,i=w.get(this,o);if(1&e.isTrigger&&this[o]){if(i.length)(k.event.special[o]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),w.set(this,o,i),t=r(this,o),this[o](),i!==(n=w.get(this,o))||t?w.set(this,o,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else i.length&&(w.set(this,o,{value:k.event.trigger(k.extend(i[0],k.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===w.get(e,o)&&k.event.add(e,o,a)}k.event={global:{},add:function(t,e,n,i,o){var r,a,s,l,c,u,d,h,p,f=w.get(t);if(y(t))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&k.find.matchesSelector(x,o),n.guid||(n.guid=k.guid++),s=(s=f.events)||(f.events=Object.create(null)),a=(a=f.handle)||(f.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(_)||[""]).length;l--;)d=p=(h=Ee.exec(e[l])||[])[1],h=(h[2]||"").split(".").sort(),d&&(c=k.event.special[d]||{},d=(o?c.delegateType:c.bindType)||d,c=k.event.special[d]||{},p=k.extend({type:d,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&k.expr.match.needsContext.test(o),namespace:h.join(".")},r),(u=s[d])||((u=s[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,h,a))||t.addEventListener&&t.addEventListener(d,a),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),o?u.splice(u.delegateCount++,0,p):u.push(p),k.event.global[d]=!0)},remove:function(e,t,n,i,o){var r,a,s,l,c,u,d,h,p,f,g,m=w.hasData(e)&&w.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(_)||[""]).length;c--;)if(p=g=(s=Ee.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)u=h[r],!o&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||k.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],n,i,!0);k.isEmptyObject(l)&&w.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,a=new Array(arguments.length),s=k.event.fix(e),e=(w.get(this,"events")||Object.create(null))[s.type]||[],l=k.event.special[s.type]||{};for(a[0]=s,t=1;t<arguments.length;t++)a[t]=arguments[t];if(s.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,s)){for(r=k.event.handlers.call(this,s,e),t=0;(i=r[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(o=((k.event.special[o.origType]||{}
vendor: 3,134 bytes, line 1
1).handle||o.handler).apply(i.elem,a))&&!1===(s.result=o)&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,i,o,r,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],a={},n=0;n<l;n++)void 0===a[o=(i=t[n]).selector+" "]&&(a[o]=i.needsContext?-1<k(o,this).index(c):k.find(o,this,null,[c]).length),a[o]&&r.push(i);r.length&&s.push({elem:c,handlers:r})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return xe.test(e.type)&&e.click&&l(e,"input")&&De(e,"click",a),!1},trigger:function(e){e=this||e;return xe.test(e.type)&&e.click&&l(e,"input")&&De(e,"click"),!0},_default:function(e){e=e.target;return xe.test(e.type)&&e.click&&l(e,"input")&&w.get(e,"click")||l(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?a:p,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=a,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=a,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=a,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return De(this,e,Te),!1},trigger:function(){return De(this,e),!0},_default:function(){return!0},delegateType:t}}
vendor: 2,987 bytes, line 1
1),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){k.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),k.fn.extend({on:function(e,t,n,i){return $e(this,e,t,n,i)},one:function(e,t,n,i){return $e(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=p),this.each(function(){k.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o])}return this}});var Le=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Me(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,i,o,r;if(1===t.nodeType){if(w.hasData(e)&&(r=w.get(e).events))for(o in w.remove(t,"handle events"),r)for(n=0,i=r[o].length;n<i;n++)k.event.add(t,o,r[o][n]);c.hasData(e)&&(e=c.access(e),e=k.extend({},e),c.set(t,e))}}function D(n,i,o,r){i=B(i);var e,t,a,s,l,c,u=0,d=n.length,h=d-1,p=i[0],f=v(p);if(f||1<d&&"string"==typeof p&&!m.checkClone&&Ne.test(p))return n.each(function(e){var t=n.eq(e);f&&(i[0]=p.call(this,e,t.html())),D(t,i,o,r)});if(d&&(t=(e=Se(i,n[0].ownerDocument,!1,n,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(s=(a=k.map($(e,"script"),Re)).length;u<d;u++)l=e,u!==h&&(l=k.clone(l,!0,!0),s)&&k.merge(a,$(l,"script")),o.call(n[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,k.map(a,Oe),u=0;u<s;u++)l=a[u],Ce.test(l.type||"")&&!w.access(l,"globalEval")&&k.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&!l.noModule&&k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):Y(l.textContent.replace(Ie,""),l,c))}return n}function Be(e,t,n){for(var i,o=t?k.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||k.cleanData($(i)),i.parentNode&&(n&&S(i)&&ke($(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,r,a,s,l,c,u=e.cloneNode(!0),d=S(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=$(u),i=0,o=(r=$(e)).length;i<o;i++)s=r[i],"input"===(c=(l=a[i]).nodeName.toLowerCase())&&xe.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(r=r||$(e),a=a||$(u),i=0,o=r.length;i<o;i++)Pe(r[i],a[i]);else Pe(e,u);return 0<(a=$(u,"script")).length&&ke(a,!d&&$(e,"script")),u},cleanData:function(e){for(var t,n,i,o=k.event.special,r=0;void 0!==(n=e[r]);
vendor: 5,324 bytes, line 1
1r++)if(y(n)){if(t=n[w.expando]){if(t.events)for(i in t.events)o[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[w.expando]=void 0}n[c.expando]&&(n[c.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return d(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Me(this,e).appendChild(e)})},prepend:function(){return D(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Me(this,e)).insertBefore(e,t.firstChild)})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData($(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!T[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData($(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return D(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData($(this)),t)&&t.replaceChild(e,this)},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){k.fn[e]=function(e){for(var t,n=[],i=k(e),o=i.length-1,r=0;r<=o;r++)t=r===o?this:this.clone(!0),k(i[r])[a](t),j.apply(n,t.get());return this.pushStack(n)}});function je(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:A).getComputedStyle(e)}function He(e,t,n){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in n=n.call(e),t)e.style[i]=o[i];return n}var Fe,ze,We,Ue,qe,Ve,Ye,o,Ke=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Ge=new RegExp(h.join("|"),"i");function Qe(e,t,n){var i,o,r=e.style;return(n=n||je(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||S(e)||(o=k.style(e,t)),!m.pixelBoxStyles())&&Ke.test(o)&&Ge.test(t)&&(e=r.width,t=r.minWidth,i=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=e,r.minWidth=t,r.maxWidth=i),void 0!==o?o+"":o}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function Je(){var e;o&&(Ye.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",o.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",x.appendChild(Ye).appendChild(o),e=A.getComputedStyle(o),Fe="1%"!==e.top,Ve=12===Ze(e.marginLeft),o.style.right="60%",Ue=36===Ze(e.right),ze=36===Ze(e.width),o.style.position="absolute",We=12===Ze(o.offsetWidth/3),x.removeChild(Ye),o=null)}function Ze(e){return Math.round(parseFloat(e))}Ye=C.createElement("div"),(o=C.createElement("div")).style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,k.extend(m,{boxSizingReliable:function(){return Je(),ze},pixelBoxStyles:function(){return Je(),Ue},pixelPosition:function(){return Je(),Fe},reliableMarginLeft:function(){return Je(),Ve},scrollboxSize:function(){return Je(),We},reliableTrDimensions:function(){var e,t,n;return null==qe&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",x.appendChild(e).appendChild(t).appendChild(n),n=A.getComputedStyle(t),qe=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,x.removeChild(e)),qe}}));var et=["Webkit","Moz","ms"],tt=C.createElement("div").style,nt={};function it(e){return k.cssProps[e]||nt[e]||(e in tt?e:nt[e]=(e=>{for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e})(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,rt=/^--/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=ye.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,o,r){var a="width"===t?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+h[a],!0,o)),i?("content"===n&&(l-=k.css(e,"padding"+h[a],!0,o)),"margin"!==n&&(l-=k.css(e,"border"+h[a]+"Width",!0,o))):(l+=k.css(e,"padding"+h[a],!0,o),"padding"!==n?l+=k.css(e,"border"+h[a]+"Width",!0,o):s+=k.css(e,"border"+h[a]+"Width",!0,o));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-s-.5))||0),l}function ut(e,t,n){var i=je(e),o=(!m.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),r
vendor: 34,098 bytes, line 1
1=o,a=Qe(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ke.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&l(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===k.css(e,"boxSizing",!1,i),r=s in e)&&(a=e[s]),(a=parseFloat(a)||0)+ct(e,t,n||(o?"border":"content"),r,i,a)+"px"}function r(e,t,n,i,o){return new r.prototype.init(e,t,n,i,o)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=Qe(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=b(t),l=rt.test(t),c=e.style;if(l||(t=it(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,i))?o:c[t];"string"==(r=typeof n)&&(o=ye.exec(n))&&o[1]&&(n=be(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(k.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,r=b(t);return rt.test(t)||(t=it(r)),"normal"===(o=void 0===(o=(r=k.cssHooks[t]||k.cssHooks[r])&&"get"in r?r.get(e,!0,n):o)?Qe(e,t,i):o)&&t in st&&(o=st[t]),(""===n||n)&&(r=parseFloat(o),!0===n||isFinite(r))?r||0:o}}),k.each(["height","width"],function(e,a){k.cssHooks[a]={get:function(e,t,n){if(t)return!ot.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,a,n):He(e,at,function(){return ut(e,a,n)})},set:function(e,t,n){var i=je(e),o=!m.scrollboxSize()&&"absolute"===i.position,r=(o||n)&&"border-box"===k.css(e,"boxSizing",!1,i),n=n?ct(e,a,n,r,i):0;return r&&o&&(n-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(i[a])-ct(e,a,"border",!1,i)-.5)),n&&(r=ye.exec(t))&&"px"!==(r[3]||"px")&&(e.style[a]=t,t=k.css(e,a)),lt(0,t,n)}}}),k.cssHooks.marginLeft=Xe(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(o,r){k.cssHooks[o+r]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+h[t]+r]=i[t]||i[t-2]||i[0];return n}},"margin"!==o&&(k.cssHooks[o+r].set=lt)}),k.fn.extend({css:function(e,t){return d(this,function(e,t,n){var i,o,r={},a=0;if(Array.isArray(t)){for(i=je(e),o=t.length;a<o;a++)r[t[a]]=k.css(e,t[a],!1,i);return r}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=r).prototype={constructor:r,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var e=r.propHooks[this.prop];return(e&&e.get?e:r.propHooks._default).get(this)},run:function(e){var t,n=r.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:r.propHooks._default).set(this),this}}).init.prototype=r.prototype,(r.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=k.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=r.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=r.prototype.init,k.fx.step={};var L,dt,N,ht=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function ft(){dt&&(!1===C.hidden&&A.requestAnimationFrame?A.requestAnimationFrame(ft):A.setTimeout(ft,k.fx.interval),k.fx.tick())}function gt(){return A.setTimeout(function(){L=void 0}),L=Date.now()}function mt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=h[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function yt(e,t,n){for(var i,o=(I.tweeners[t]||[]).concat(I.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,t,e))return i}function I(o,e,t){var n,r,i,a,s,l,c,u=0,d=I.prefilters.length,h=k.Deferred().always(function(){delete p.elem}),p=function(){if(r)return!1;for(var e=L||gt(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(t);return h.notifyWith(o,[f,t,e]),t<1&&i?e:(i||h.notifyWith(o,[f,1,0]),h.resolveWith(o,[f]),!1)},f=h.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:L||gt(),duration:t.duration,tweens:[],createTween:function(e,t){t=k.Tween(o,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,n=e?f.tweens.length:0;if(!r){for(r=!0;t<n;t++)f.tweens[t].run(1);e?(h.notifyWith(o,[f,1,0]),h.resolveWith(o,[f,e])):h.rejectWith(o,[f,e])}return this}}),g=f.props,m=g,y=f.opts.specialEasing;for(i in m)if(s=y[a=b(i)],l=m[i],Array.isArray(l)&&(s=l[1],l=m[i]=l[0]),i!==a&&(m[a]=l,delete m[i]),(c=k.cssHooks[a])&&"expand"in c)for(i in l=c.expand(l),delete m[a],l)i in m||(m[i]=l[i],y[i]=s);else y[a]=s;for(;u<d;u++)if(n=I.prefilters[u].call(f,o,g,f.opts))return v(n.stop)&&(k._queueHooks(f.elem,f.opts.queue).stop=n.stop.bind(n)),n;return k.map(g,yt,f),v(f.opts.start)&&f.opts.start.call(o,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),k.fx.timer(k.extend(p,{elem:o,anim:f,queue:f.opts.queue})),f}k.Animation=k.extend(I,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,ye.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,o=(e=v(e)?(t=e,["*"]):e.match(_)).length;i<o;i++)n=e[i],I.tweeners[n]=I.tweeners[n]||[],I.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,a,s,l,c,u="width"in t||"height"in t,d=this,h={},p=e.style,f=e.nodeType&&me(e),g=w.get(e,"fxshow");for(i in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[i],ht.test(o)){if(delete t[i],r=r||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;f=!0}h[i]=g&&g[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(h))for(i in u&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=w.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(E([e],!0),c=e.style.display||c,u=k.css(e,"display"),E([e]))),"inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block"),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(f=g.hidden):g=w.access(e,"fxshow",{display:c}),r&&(g.hidden=!f),f&&E([e],!0),d.done(function(){for(i in f||E([e]),w.remove(e,"fxshow"),h)k.style(e,i,h[i])})),l=yt(f?g[i]:0,i,d),i in g||(g[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?I.prefilters.unshift(e):I.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function o(){var e=I(this,k.extend({},t),a);(r||w.get(this,"finish"))&&e.stop(!0)}var r=k.isEmptyObject(t),a=k.speed(e,n,i);return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(o,e,r){function a(e){var t=e.stop;delete e.stop,t(r)}return"string"!=typeof o&&(r=e,e=o,o=void 0),e&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=k.timers,i=w.get(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&pt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(r),e=!1,n.splice(t,1));!e&&r||k.dequeue(this,o)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=w.get(this),n=t[a+"queue"],i=t[a+"queueHooks"],o=k.timers,r=n?n.length:0;for(t.finish=!0,k.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===a&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,i){var o=k.fn[i];k.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(mt(i,!0),e,t,n)}}),k.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){k.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(L=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),L=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){dt||(dt=!0,ft())},k.fx.stop=function(){dt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(i,e){return i=k.fx&&k.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=A.setTimeout(e,i);t.stop=function(){A.clearTimeout(n)}})},N=C.createElement("input"),n=C.createElement("select").appendChild(C.createElement("option")),N.type="checkbox",m.checkOn=""!==N.value,m.optSelected=n.selected,(N=C.createElement("input")).value="t",N.type="radio",m.radioValue="t"===N.value;var vt,bt=k.expr.attrHandle,wt=(k.fn.extend({attr:function(e,t){return d(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?k.prop(e,t,n):(1===r&&k.isXMLDoc(e)||(o=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(o&&"get"in o&&null!==(i=o.get(e,t)))&&null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){var n;if(!m.radioValue&&"radio"===t&&l(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(_);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var a=bt[t]||k.find.attr;bt[t]=function(e,t,n){var i,o,r=t.toLowerCase();return n||(o=bt[r],bt[r]=i,i=null!=a(e,t,n)?r:null,bt[r]=o),i}}),/^(?:input|select|textarea|button)$/i),xt=/^(?:a|area)$/i;function M(e){return(e.match(_)||[]).join(" ")}function R(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(_)||[]}k.fn.extend({prop:function(e,t){return d(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(e)||(t=k.propFix[t]||t,o=k.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(k.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,i,o,r,a,s=0;if(v(t))return this.each(function(e){k(this).addClass(t.call(this,e,R(this)))});if((e=At(t)).length)for(;n=this[s++];)if(a=R(n),i=1===n.nodeType&&" "+M(a)+" "){for(r=0;o=e[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a!==(a=M(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,o,r,a,s=0;if(v(t))return this.each(function(e){k(this).removeClass(t.call(this,e,R(this)))});if(!arguments.length)return this.attr("class","");if((e=At(t)).length)for(;n=this[s++];)if(a=R(n),i=1===n.nodeType&&" "+M(a)+" "){for(r=0;o=e[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");a!==(a=M(i))&&n.setAttribute("class",a)}return this},toggleClass:function(o,t){var r=typeof o,a="string"==r||Array.isArray(o);return"boolean"==typeof t&&a?t?this.addClass(o):this.removeClass(o):v(o)?this.each(function(e){k(this).toggleClass(o.call(this,e,R(this),t),t)}):this.each(function(){var e,t,n,i;if(a)for(t=0,n=k(this),i=At(o);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&"boolean"!=r||((e=R(this))&&w.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==o&&w.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+M(R(t))+" ").indexOf(i))return!0;return!1}});function Ct(e){e.stopPropagation()}var kt=/\r/g,_t=(k.fn.extend({val:function(t){var n,e,i,o=this[0];return arguments.length?(i=v(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,k(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=k.map(e,function(e){return null==e?"":e+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):o?(n=k.valHooks[o.type]||k.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(kt,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:M(k.text(e))}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,o="select-one"===e.type,r=o?null:[],a=o?i+1:n.length,s=i<0?a:o?i:0;s<a;s++)if(((t=n[s]).selected||s===i)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=k(t).val(),o)return t;r.push(t)}return r},set:function(e,t){for(var n,i,o=e.options,r=k.makeArray(t),a=o.length;a--;)((i=o[a]).selected=-1<k.inArray(k.valHooks.option.get(i),r))&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},m.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),m.focusin="onfocusin"in A,/^(?:focusinfocus|focusoutblur)$/),St=(k.extend(k.event,{trigger:function(e,t,n,i){var o,r,a,s,l,c,u,d=[n||C],h=W.call(e,"type")?e.type:e,p=W.call(e,"namespace")?e.namespace.split("."):[],f=u=r=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!_t.test(h+k.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),s=h.indexOf(":")<0&&"on"+h,(e=e[k.expando]?e:new k.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!g(n)){for(a=c.delegateType||h,_t.test(a+h)||(f=f.parentNode);f;f=f.parentNode)d.push(f),r=f;r===(n.ownerDocument||C)&&d.push(r.defaultView||r.parentWindow||A)}for(o=0;(f=d[o++])&&!e.isPropagationStopped();)u=f,e.type=1<o?a:c.bindType||h,(l=(w.get(f,"events")||Object.create(null))[e.type]&&w.get(f,"handle"))&&l.apply(f,t),(l=s&&f[s])&&l.apply&&y(f)&&(e.result=l.apply(f,t),!1===e.result)&&e.preventDefault();return e.type=h,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(d.pop(),t)||!y(n)||s&&v(n[h])&&!g(n)&&((r=n[s])&&(n[s]=null),k.event.triggered=h,e.isPropagationStopped()&&u.addEventListener(h,Ct),n[h](),e.isPropagationStopped()&&u.removeEventListener(h,Ct),k.event.triggered=void 0,r)&&(n[s]=r),e.result}},simulate:function(e,t,n){n=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),m.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,i){function o(e){k.event.simulate(i,e.target,k.event.fix(e))}k.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=w.access(e,i);t||e.addEventListener(n,o,!0),w.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=w.access(e,i)-1;t?w.access(e,i,t):(e.removeEventListener(n,o,!0),w.remove(e,i))}}}),A.location),Et={guid:Date.now()},Tt=/\?/,$t=(k.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new A.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/\[\]$/),Dt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;k.param=function(e,t){function n(e,t){t=v(t)?t():t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var i,o=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,o,r){if(Array.isArray(e))k.each(e,function(e,t){o||$t.test(i)?r(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,r)});else if(o||"object"!==f(e))r(i,e);else for(var t in e)n(i+"["+t+"]",e[t],o,r)}(i,e[i],t,n);return o.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Nt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!xe.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}}):{name:t.name,value:n.replace(Dt,"\r\n")}}).get()}});var It=/%20/g,Mt=/#.*$/,Rt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Bt=/^\/\//,jt={},Ht={},Ft="*/".concat("*"),zt=C.createElement("a");function Wt(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(_)||[];if(v(t))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(t)):(r[n]=r[n]||[]).push(t)}}function Ut(t,i,o,r){var a={},s=t===Ht;function l(e){var n;return a[e]=!0,k.each(t[e]||[],function(e,t){t=t(i,o,r);return"string"!=typeof t||s||a[t]?s?!(n=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),n}return l(i.dataTypes[0])||!a["*"]&&l("*")}function qt(e,t){var n,i,o=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i=i||{})[n]=t[n]);return i&&k.extend(!0,e,i),e}zt.href=St.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,k.ajaxSettings),t):qt(k.ajaxSettings,e)},ajaxPrefilter:Wt(jt),ajaxTransport:Wt(Ht),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,u,n,d,h,p,i,o,f=k.ajaxSetup({},t=t||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?k(g):k.event,y=k.Deferred(),v=k.Callbacks("once memory"),b=f.statusCode||{},r={},a={},s="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Ot.exec(u);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?u:null},setRequestHeader:function(e,t){return null==h&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,r[e]=t),this},overrideMimeType:function(e){return null==h&&(f.mimeType=e),this},statusCode:function(e){if(e)if(h)w.always(e[w.status]);else for(var t in e)b[t]=[b[t],e[t]];return this},abort:function(e){e=e||s;return l&&l.abort(e),x(0,e),this}};if(y.promise(w),f.url=((e||f.url||St.href)+"").replace(Bt,St.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(_)||[""],null==f.crossDomain){o=C.createElement("a");try{o.href=f.url,o.href=o.href,f.crossDomain=zt.protocol+"//"+zt.host!=o.protocol+"//"+o.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Ut(jt,f,t,w),!h){for(i in(p=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Pt.test(f.type),c=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(It,"+")):(o=f.url.slice(c.length),f.data&&(f.processData||"string"==typeof f.data)&&(c+=(Tt.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(c=c.replace(Rt,"$1"),o=(Tt.test(c)?"&":"?")+"_="+Et.guid+++o),f.url=c+o),f.ifModified&&(k.lastModified[c]&&w.setRequestHeader("If-Modified-Since",k.lastModified[c]),k.etag[c])&&w.setRequestHeader("If-None-Match",k.etag[c]),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ft+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(g,w,f)||h))return w.abort();if(s="abort",v.add(f.complete),w.done(f.success),w.fail(f.error),l=Ut(Ht,f,t,w)){if(w.readyState=1,p&&m.trigger("ajaxSend",[w,f]),h)return w;f.async&&0<f.timeout&&(d=A.setTimeout(function(){w.abort("timeout")},f.timeout));try{h=!1,l.send(r,x)}catch(e){if(h)throw e;x(-1,e)}}else x(-1,"No Transport")}return w;function x(e,t,n,i){var o,r,a,s=t;h||(h=!0,d&&A.clearTimeout(d),l=void 0,u=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=((e,t,n)=>{for(var i,o,r,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in s)if(s[o]&&s[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}a=a||o}r=r||a}if(r)return r!==l[0]&&l.unshift(r),n[r]})(f,w,n)),!i&&-1<k.inArray("script",f.dataTypes)&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),a=((e,t,n,i)=>{var o,r,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}})(f,a,w,i),i?(f.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(k.lastModified[c]=n),n=w.getResponseHeader("etag"))&&(k.etag[c]=n),204===e||"HEAD"===f.type?s="nocontent":304===e?s="notmodified":(s=a.state,o=a.data,i=!(r=a.error))):(r=s,!e&&s||(s="error",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+"",i?y.resolveWith(g,[o,s,w]):y.rejectWith(g,[w,s,r]),w.statusCode(b),b=void 0,p&&m.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?o:r]),v.fireWith(g,[w,s]),p&&(m.trigger("ajaxComplete",[w,f]),--k.active||k.event.trigger("ajaxStop")))}},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,o){k[o]=function(e,t,n,i){return v(t)&&(i=i||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:o,dataType:i,data:t,success:n},k.isPlainObject(e)&&e))}}),k.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new A.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Yt=k.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,k.ajaxTransport(function(o){var r,a;if(m.cors||Yt&&!o.crossDomain)return{send:function(e,t){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);r=function(e){return function(){r&&(r=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Vt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),a=i.onerror=i.ontimeout=r("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&A.setTimeout(function(){r&&a()})},r=r("abort");try{i.send(o.hasContent&&o.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var i,o;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){i.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(i[0])},abort:function(){o&&o()}}});var Kt=[],Gt=/(=)\?(?=&|$)|\?\?/,Qt=(k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||k.expando+"_"+Et.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,r,a=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Gt,"$1"+i):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||k.error(i+" was not called"),r[0]},e.dataTypes[0]="json",o=A[i],A[i]=function(){r=arguments},n.always(function(){void 0===o?k(A).removeProp(i):A[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(i)),r&&v(o)&&o(r[0]),r=o=void 0}),"script"}),m.createHTMLDocument=((e=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(i)):t=C),i=!n&&[],(n=X.exec(e))?[t.createElement(n[1])]:(n=Se([e],t,i),i&&i.length&&k(i).remove(),k.merge([],n.childNodes)));var i},k.fn.load=function(e,t,n){var i,o,r,a=this,s=e.indexOf(" ");return-1<s&&(i=M(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&k.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,a.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var i,o,r,a,s=k.css(e,"position"),l=k(e),c={};"static"===s&&(e.style.position="relative"),r=l.offset(),i=k.css(e,"top"),a=k.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(i+a).indexOf("auto")?(o=(s=l.position()).top,s.left):(o=parseFloat(i)||0,parseFloat(a)||0),null!=(t=v(t)?t.call(e,n,k.extend({},r)):t).top&&(c.top=t.top-r.top+o),null!=t.left&&(c.left=t.left-r.left+s),"using"in t?t.using.call(e,c):l.css(c)}},k.fn.extend({offset:function(t){var e,n;return arguments.length?void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)}):(n=this[0])?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),o.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-k.css(i,"marginTop",!0),left:t.left-o.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||x})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r="pageYOffset"===o;k.fn[t]=function(e){return d(this,function(e,t,n){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[o]:e[t];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=Xe(m.pixelPosition,function(e,t){if(t)return t=Qe(e,n),Ke.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,r){k.fn[r]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,n){var i;return g(e)?0===r.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?k.css(e,t,o):k.style(e,t,n,o)},s,n?e:void 0,n)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Xt=(k.proxy=function(e,t){var n,i;if("string"==typeof t&&(i=e[t],t=e,e=i),v(e))return n=s.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=l,k.isFunction=v,k.isWindow=g,k.camel
1Case=b,k.type=f,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k}),A.jQuery),Jt=A.$;return k.noConflict=function(e){return A.$===k&&(A.$=Jt),e&&A.jQuery===k&&(A.jQuery=Xt),k},void 0===O&&(A.jQuery=A.$=k),k}),((e,t)=>{"object"==typeof exports?module.exports=exports=t():"function"==typeof define&&define.amd?define([],t):e.CryptoJS=t()})(this,function(){var R,O,u,o,a,s,r,l,c,P,B,j,H,F,z,W,U,q,V,d,Y,K,G,Q,e,X,h,J,Z,ee,ne,t,ie,oe,re,n,ae,se,le,ce,ue,de,he,i,pe,fe,ge,me,ye,ve,be,we,xe,Ae,p=(c=>{var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),!(i=!(i=!(i="undefined"!=typeof globalThis&&globalThis.crypto?globalThis.crypto:i)&&"undefined"!=typeof window&&window.msCrypto?window.msCrypto:i)&&"undefined"!=typeof global&&global.crypto?global.crypto:i)&&"function"==typeof require)try{i=require("crypto")}catch(c){}var n=Object.create||function(e){return p.prototype=e,e=new p,p.prototype=null,e},e={},t=e.lib={},o=t.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=t.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,o=e.sigBytes;if(this.clamp(),i%4)for(var r=0;r<o;r++){var a=n[r>>>2]>>>24-r%4*8&255;t[i+r>>>2]|=a<<24-(i+r)%4*8}else for(var s=0;s<o;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=c.ceil(t/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push((()=>{if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")})());return new u.init(t,e)}}),r=e.enc={},a=r.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new u.init(n,t/2)}},s=r.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new u.init(n,t)}},l=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(s.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return s.parse(unescape(encodeURIComponent(e)))}},d=t.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t,n=this._data,i=n.words,o=n.sigBytes,r=this.blockSize,a=o/(4*r),s=(e?c.ceil(a):c.max((0|a)-this._minBufferSize,0))*r,e=c.min(4*s,o);if(s){for(var l=0;l<s;l+=r)this._doProcessBlock(i,l);t=i.splice(0,s),n.sigBytes-=e}return new u.init(t,e)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(t.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(e,t){return new n.init(t).finalize(e)}},_createHmacHelper:function(n){return function(e,t){return new h.HMAC.init(n,t).finalize(e)}}}),e.algo={});function p(){}return e})(Math),Ce=(g=(f=p).lib,xe=g.Base,Ae=g.WordArray,(g=f.x64={}).Word=xe.extend({init:function(e,t){this.high=e,this.low=t}}),g.WordArray=xe.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var o=e[i];n.push(o.high),n.push(o.low)}return Ae.create(n,this.sigBytes)},clone:function(){for(var e=xe.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),"function"==typeof ArrayBuffer&&(f=p.lib.WordArray,we=f.init,(f.init=function(e){if((e=(e
vendor: 4,287 bytes, line 1
1=e instanceof ArrayBuffer?new Uint8Array(e):e)instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e)instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;we.call(this,n,t)}else we.apply(this,arguments)}).prototype=f),be=(g=p).lib.WordArray,(g=g.enc).Utf16=g.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2){var r=t[o>>>2]>>>16-o%4*8&65535;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return be.create(n,2*t)}},g.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2){var r=St(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=St(e.charCodeAt(i)<<16-i%2*16);return be.create(n,2*t)}},ve=(f=p).lib.WordArray,f.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var o=[],r=0;r<n;r+=3)for(var a=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s<n;s++)o.push(i.charAt(a>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map;if(!(i=this._reverseMap))for(var i=this._reverseMap=[],o=0;o<n.length;o++)i[n.charCodeAt(o)]=o;for(var r,a,s=n.charAt(64),l=(s&&-1!==(s=e.indexOf(s))&&(t=s),e),c=t,u=i,d=[],h=0,p=0;p<c;p++)p%4&&(r=u[l.charCodeAt(p-1)]<<p%4*2,a=u[l.charCodeAt(p)]>>>6-p%4*2,d[h>>>2]|=(r|a)<<24-h%4*8,h++);return ve.create(d,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},ye=(g=p).lib.WordArray,g.enc.Base64url={stringify:function(e,t=!0){var n=e.words,i=e.sigBytes,o=t?this._safe_map:this._map;e.clamp();for(var r=[],a=0;a<i;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<i;l++)r.push(o.charAt(s>>>6*(3-l)&63));var c=o.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e,t=!0){var n=e.length,i=t?this._safe_map:this._map;if(!(o=this._reverseMap))for(var o=this._reverseMap=[],r=0;r<i.length;r++)o[i.charCodeAt(r)]=r;for(var a,s,t=i.charAt(64),l=(t&&-1!==(t=e.indexOf(t))&&(n=t),e),c=n,u=o,d=[],h=0,p=0;p<c;p++)p%4&&(a=u[l.charCodeAt(p-1)]<<p%4*2,s=u[l.charCodeAt(p)]>>>6-p%4*2,d[h>>>2]|=(a|s)<<24-h%4*8,h++);return ye.create(d,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},Math);function S(e,t,n,i,o,r,a){e=e+(t&n|~t&i)+o+a;return(e<<r|e>>>32-r)+t}function E(e,t,n,i,o,r,a){e=e+(t&i|n&~i)+o+a;return(e<<r|e>>>32-r)+t}function T(e,t,n,i,o,r,a){e=e+(t^n^i)+o+a;return(e<<r|e>>>32-r)+t}function $(e,t,n,i,o,r,a){e=e+(n^(t|~i))+o+a;return(e<<r|e>>>32-r)+t}for(var f=p,ke=(g=f.lib).WordArray,_e=g.Hasher,g=f.algo,D=[],Se=0;Se<64;Se++)D[Se]=4294967296*Ce.abs(Ce.sin(Se+1))|0;g=g.MD5=_e.extend({_doReset:function(){this._hash=new ke.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,a=e[t+0],s=e[t+1],l=e[t+2],c=e[t+3],u=e[t+4],d=e[t+5],h=e[t+6],p=e[t+7],f=e[t+8],g=e[t+9],m=e[t+10],y=e[t+11],v=e[t+12],b=e[t+13],w=e[t+14],x=e[t+15],A=S(r[0],_=r[1],k=r[2],C=r[3],a,7,D[0]),C=S(C,A,_,k,s,12,D[1]),k=S(k,C,A,_,l,17,D[2]),_=S(_,k,C,A,c,22,D[3]);A=S(A,_,k,C,u,7,D[4]),C=S(C,A,_,k,d,12,D[5]),k=S(k,C,A,_,h,17,D[6]),_=S(_,k,C,A,p,22,D[7]),A=S(A,_,k,C,f,7,D[8]),C=S(C,A,_,k,g,12,D[9]),k=S(k,C,A,_,m,17,D[10]),_=S(_,k,C,A,y,22,D[11]),A=S(A,_,k,C,v,7,D[12]),C=S(C,A,_,k,b,12,D[13]),k=S(k,C,A,_,w,17,D[14]),A=E(A,_=S(_,k,C,A,x,22,D[15]),k,C,s,5,D[16]),C=E(C,A,_,k,h,9,D[17]),k=E(k,C,A,_,y,14,D[18]),_=E(_,k,C,A,a,20,D[19]),A=E(A,_,k,C,d,5,D[20]),C=E(C,A,_,k,m,9,D[21]),k=E(k,C,A,_,x,14,D[22]),_=E(_,k,C,A,u,20,D[23]),A=E(A,_,k,C,g,5,D[24]),C=E(C,A,_,k,w,9,D[25]),k=E(k,C,A,_,c,14,D[26]),_=E(_,k,C,A,f,20,D[27]
vendor: 23,985 bytes, line 1
1),A=E(A,_,k,C,b,5,D[28]),C=E(C,A,_,k,l,9,D[29]),k=E(k,C,A,_,p,14,D[30]),A=T(A,_=E(_,k,C,A,v,20,D[31]),k,C,d,4,D[32]),C=T(C,A,_,k,f,11,D[33]),k=T(k,C,A,_,y,16,D[34]),_=T(_,k,C,A,w,23,D[35]),A=T(A,_,k,C,s,4,D[36]),C=T(C,A,_,k,u,11,D[37]),k=T(k,C,A,_,p,16,D[38]),_=T(_,k,C,A,m,23,D[39]),A=T(A,_,k,C,b,4,D[40]),C=T(C,A,_,k,a,11,D[41]),k=T(k,C,A,_,c,16,D[42]),_=T(_,k,C,A,h,23,D[43]),A=T(A,_,k,C,g,4,D[44]),C=T(C,A,_,k,v,11,D[45]),k=T(k,C,A,_,x,16,D[46]),A=$(A,_=T(_,k,C,A,l,23,D[47]),k,C,a,6,D[48]),C=$(C,A,_,k,p,10,D[49]),k=$(k,C,A,_,w,15,D[50]),_=$(_,k,C,A,d,21,D[51]),A=$(A,_,k,C,v,6,D[52]),C=$(C,A,_,k,c,10,D[53]),k=$(k,C,A,_,m,15,D[54]),_=$(_,k,C,A,s,21,D[55]),A=$(A,_,k,C,f,6,D[56]),C=$(C,A,_,k,x,10,D[57]),k=$(k,C,A,_,h,15,D[58]),_=$(_,k,C,A,b,21,D[59]),A=$(A,_,k,C,u,6,D[60]),C=$(C,A,_,k,y,10,D[61]),k=$(k,C,A,_,l,15,D[62]),_=$(_,k,C,A,g,21,D[63]),r[0]=r[0]+A|0,r[1]=r[1]+_|0,r[2]=r[2]+k|0,r[3]=r[3]+C|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes,o=(t[i>>>5]|=128<<24-i%32,Ce.floor(n/4294967296));t[15+(64+i>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[14+(64+i>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,r=o.words,a=0;a<4;a++){var s=r[a];r[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=_e.clone.call(this);return e._hash=this._hash.clone(),e}}),f.MD5=_e._createHelper(g),f.HmacMD5=_e._createHmacHelper(g),g=(f=p).lib,R=g.WordArray,O=g.Hasher,u=[],g=f.algo.SHA1=O.extend({_doReset:function(){this._hash=new R.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],r=n[2],a=n[3],s=n[4],l=0;l<80;l++){l<16?u[l]=0|e[t+l]:(c=u[l-3]^u[l-8]^u[l-14]^u[l-16],u[l]=c<<1|c>>>31);var c=(i<<5|i>>>27)+s+u[l];c+=l<20?1518500249+(o&r|~o&a):l<40?1859775393+(o^r^a):l<60?(o&r|o&a|r&a)-1894007588:(o^r^a)-899497514,s=a,a=r,r=o<<30|o>>>2,o=i,i=c}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+r|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(64+i>>>9<<4)]=Math.floor(n/4294967296),t[15+(64+i>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=O.clone.call(this);return e._hash=this._hash.clone(),e}}),f.SHA1=O._createHelper(g),f.HmacSHA1=O._createHmacHelper(g);var Ee=Math,f=p,Te=(g=f.lib).WordArray,$e=g.Hasher,g=f.algo,De=[],Le=[];function Ne(e){return 4294967296*(e-(0|e))|0}for(var Ie=2,Me=0;Me<64;)(e=>{for(var t=Ee.sqrt(e),n=2;n<=t;n++)if(!(e%n))return;return 1})(Ie)&&(Me<8&&(De[Me]=Ne(Ee.pow(Ie,.5))),Le[Me]=Ne(Ee.pow(Ie,1/3)),Me++),Ie++;var m=[],g=g.SHA256=$e.extend({_doReset:function(){this._hash=new Te.init(De.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],r=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],d=0;d<64;d++){m[d]=d<16?0|e[t+d]:(((h=m[d-15])<<25|h>>>7)^(h<<14|h>>>18)^h>>>3)+m[d-7]+(((h=m[d-2])<<15|h>>>17)^(h<<13|h>>>19)^h>>>10)+m[d-16];var h=i&o^i&r^o&r,p=u+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&c)+Le[d]+m[d],u=c,c=l,l=s,s=a+p|0,a=r,r=o,o=i,i=p+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+h)|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+r|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+c|0,n[7]=n[7]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(64+i>>>9<<4)]=Ee.floor(n/4294967296),t[15+(64+i>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=$e.clone.call(this);return e._hash=this._hash.clone(),e}});function y(){return v.create.apply(v,arguments)}f.SHA256=$e._createHelper(g),f.HmacSHA256=$e._createHmacHelper(g),ge=(f=p).lib.WordArray,me=(g=f.algo).SHA256,g=g.SHA224=me.extend({_doReset:function(){this._hash=new ge.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=me._doFinalize.call(this);return e.sigBytes-=4,e}}),f.SHA224=me._createHelper(g),f.HmacSHA224=me._createHmacHelper(g);for(var f=p,Re=f.lib.Hasher,v=(g=f.x64).Word,Oe=g.WordArray,g=f.algo,Pe=[y(1116352408,3609767458),y(1899447441,602891725),y(3049323471,3964484399),y(3921009573,2173295548),y(961987163,4081628472),y(1508970993,3053834265),y(2453635748,2937671579),y(2870763221,3664609560),y(3624381080,2734883394),y(310598401,1164996542),y(607225278,1323610764),y(1426881987,3590304994),y(1925078388,4068182383),y(2162078206,991336113),y(2614888103,633803317),y(3248222580,3479774868),y(3835390401,2666613458),y(4022224774,944711139),y(264347078,2341262773),y(604807628,2007800933),y(770255983,1495990901),y(1249150122,1856431235),y(1555081692,3175218132),y(1996064986,2198950837),y(2554220882,3999719339),y(2821834349,766784016),y(2952996808,2566594879),y(3210313671,3203337956),y(3336571891,1034457026),y(3584528711,2466948901),y(113926993,3758326383),y(338241895,168717936),y(666307205,1188179964),y(773529912,1546045734),y(1294757372,1522805485),y(1396182291,2643833823),y(1695183700,2343527390),y(1986661051,1014477480),y(2177026350,1206759142),y(2456956037,344077627),y(2730485921,1290863460),y(2820302411,3158454273),y(3259730800,3505952657),y(3345764771,106217008),y(3516065817,3606008344),y(3600352804,1432725776),y(4094571909,1467031594),y(275423344,851169720),y(430227734,3100823752),y(506948616,1363258195),y(659060556,3750685593),y(883997877,3785050280),y(958139571,3318307427),y(1322822218,3812723403),y(1537002063,2003034995),y(1747873779,3602036899),y(1955562222,1575990012),y(2024104815,1125592928),y(2227730452,2716904306),y(2361852424,442776044),y(2428436474,593698344),y(2756734187,3733110249),y(3204031479,2999351573),y(3329325298,3815920427),y(3391569614,3928383900),y(3515267271,566280711),y(3940187606,3454069534),y(4118630271,4000239992),y(116418474,1914138554),y(174292421,2731055270),y(289380356,3203993006),y(460393269,320620315),y(685471733,587496836),y(852142971,1086792851),y(1017036298,365543100),y(1126000580,2618297676),y(1288033470,3409855158),y(1501505948,4234509866),y(1607167915,987167468),y(1816402316,1246189591)],te=[],Be=0;Be<80;Be++)te[Be]=y();g=g.SHA512=Re.extend({_doReset:function(){this._hash=new Oe.init([new v.init(1779033703,4089235720),new v.init(3144134277,2227873595),new v.init(1013904242,4271175723),new v.init(2773480762,1595750129),new v.init(1359893119,2917565137),new v.init(2600822924,725511199),new v.init(528734635,4215389547),new v.init(1541459225,327033209)])},_doProcessBlock:function(O,P){for(var e=this._hash.words,t=e[0],n=e[1],i=e[2],o=e[3],r=e[4],a=e[5],s=e[6],e=e[7],B=t.high,l=t.low,j=n.high,c=n.low,H=i.high,u=i.low,F=o.high,d=o.low,z=r.high,h=r.low,W=a.high,p=a.low,U=s.high,f=s.low,q=e.high,g=e.low,m=B,y=l,v=j,b=c,w=H,x=u,V=F,A=d,C=z,k=h,Y=W,_=p,K=U,S=f,G=q,Q=g,E=0;E<80;E++)var T,$,D=te[E],L=(E<16?($=D.high=0|O[P+2*E],T=D.low=0|O[P+2*E+1]):(M=(N=te[E-15]).high,I=(X=te[E-2]).high,L=(R=te[E-7]).high,Z=(J=te[E-16]).high,$=($=((M>>>1|(N=N.low)<<31)^(M>>>8|N<<24)^M>>>7)+L+((T=(L=(N>>>1|M<<31)^(N>>>8|M<<24)^(N>>>7|M<<25))+R.low)>>>0<L>>>0?1:0))+((I>>>19|(N=X.low)<<13)^(I<<3|N>>>29)^I>>>6)+((T+=M=(N>>>19|I<<13)^(N<<3|I>>>29)^(N>>>6|I<<26))>>>0<M>>>0?1:0),T+=R=J.low,D.high=$=$+Z+(T>>>0<R>>>0?1:0),D.low=T),C&Y^~C&K),X=k&_^~k&S,N=m&v^m&w^v&w,I=(y>>>28|m<<4)^(y<<30|m>>>2)^(y<<25|m>>>7),M=Pe[E],J=M.high,Z=M.low,R=Q+((k>>>14|C<<18)^(k>>>18|C<<14)^(k<<23|C>>>9)),D=G+((C>>>14|k<<18)^(C>>>18|k<<14)^(C<<23|k>>>9))+(R>>>0<Q>>>0?1:0),ee=I+(y&b^y&x^b&x),G=K,Q=S,K=Y,S=_,Y=C,_=k,C=V+(D=D+L+((R+=X)>>>0<X>>>0?1:0)+J+((R+=Z)>>>0<Z>>>0?1:0)+$+((R+=T)>>>0<T>>>0?1:0))+((k=A+R|0)>>>0<A>>>0?1:0)|0,V=w,A=x,w=v,x=b,v=m,b=y,m=D+(((m>>>28|y<<4)^(m<<30|y>>>2)^(m<<25|y>>>7))+N+(ee>>>0<I>>>0?1:0))+((y=R+ee|0)>>>0<R>>>0?1:0)|0;l=t.low=l+y,t.high=B+m+(l>>>0<y>>>0?1:0),c=n.low=c+b,n.high=j+v+(c>>>0<b>>>0?1:0),u=i.low=u+x,i.high=H+w+(u>>>0<x>>>0?1:0),d=o.low=d+A,o.high=F+V+(d>>>0<A>>>0?1:0),h=r.low=h+k,r.high=z+C+(h>>>0<k>>>0?1:0),p=a.low=p+_,a.high=W+Y+(p>>>0<_>>>0?1:0),f=s.low=f+S,s.high=U+K+(f>>>0<S>>>0?1:0),g=e.low=g+Q,e.high=q+G+(g>>>0<Q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(128+i>>>10<<5)]=Math.floor(n/4294967296),t[31+(128+i>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=Re.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),f.SHA512=Re._createHelper(g),f.HmacSHA512=Re._createHmacHelper(g),g=(f=p).x64,i=g.Word,pe=g.WordArray,fe=(g=f.algo).SHA512,g=g.SHA384=fe.extend({_doReset:function(){this._hash=new pe.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=fe._doFinalize.call(this);return e.sigBytes-=16,e}}),f.SHA384=fe._createHelper(g),f.HmacSHA384=fe._createHmacHelper(g);for(var je=Math,f=p,He=(g=f.lib).WordArray,Fe=g.Hasher,ze=f.x64.Word,g=f.algo,We=[],Ue=[],qe=[],b=1,w=0,Ve=0;Ve<24;Ve++){We[b+5*w]=(Ve+1)*(Ve+2)/2%64;var Ye=(2*b+3*w)%5,b=w%5,w=Ye}for(b=0;b<5;b++)for(w=0;w<5;w++)Ue[b+5*w]=w+(2*b+3*w)%5*5;for(var Ke=1,Ge=0;Ge<24;Ge++){for(var Qe,Xe=0,Je=0,Ze=0;Ze<7;Ze++)1&Ke&&((Qe=(1<<Ze)-1)<32?Je^=1<<Qe:Xe^=1<<Qe-32),128&Ke?Ke=Ke<<1^113:Ke<<=1;qe[Ge]=ze.create(Xe,Je)}for(var L=[],et=0;et<25;et++)L[et]=ze.create();g=g.SHA3=Fe.extend({cfg:Fe.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new ze.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,o=0;o<i;o++){var r=e[t+2*o],a=e[t+2*o+1],r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),s=n[o];s.high^=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),s.low^=r}for(var l=0;l<24;l++){for(var c=0;c<5;c++){for(var u=0,d=0,h=0;h<5;h++)u^=(s=n[c+5*h]).high,d^=s.low;var p=L[c];p.high=u,p.low=d}for(c=0;c<5;c++)for(var f=L[(c+4)%5],g=L[(c+1)%5],m=g.high,g=g.low,u=f.high^(m<<1|g>>>31),d=f.low^(g<<1|m>>>31),h=0;h<5;h++)(s=n[c+5*h]).high^=u,s.low^=d;for(var y=1;y<25;y++){var v=(s=n[y]).high,b=s.low,w=We[y],v=(d=w<32?(u=v<<w|b>>>32-w,b<<w|v>>>32-w):(u=b<<w-32|v>>>64-w,v<<w-32|b>>>64-w),L[Ue[y]]);v.high=u,v.low=d}var x=L[0],A=n[0];for(x.high=A.high,x.low=A.low,c=0;c<5;c++)for(h=0;h<5;h++){s=n[y=c+5*h];var C=L[y],k=L[(c+1)%5+5*h],_=L[(c+2)%5+5*h];s.high=C.high^~k.high&_.high,s.low=C.low^~k.low&_.low}s=n[0];x=qe[l];s.high^=x.high,s.low^=x.low}},_doFinalize:function(){var e=this._data,t=e.words,n=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;t[n>>>5]|=1<<24-n%32,t[(je.ceil((1+n)/i)*i>>>5)-1]|=128,e.sigBytes=4*t.length,this._process();for(var o=this._state,n=this.cfg.outputLength/8,r=n/8,a=[],s=0;s<r;s++){var l=o[s],c=l.high,l=l.low,c=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8);a.push(16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)),a.push(c)}return new He.init(a,n)},clone:function(){for(var e=Fe.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}}),f.SHA3=Fe._createHelper(g),f.HmacSHA3=Fe._createHmacHelper(g),Math,g=(f=p).lib,n=g.WordArray,ae=g.Hasher,g=f.algo,se=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),le=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),ce=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),ue=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),de=n.create([0,1518500249,1859775393,2400959708,2840853838]),he=n.create([1352829926,1548603684,1836072691,2053994217,0]),g=g.RIPEMD160=ae.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}for(var r,a,s,l,c,u,d=this._hash.words,h=de.words,p=he.words,f=se.words,g=le.words,m=ce.words,y=ue.words,v=r=d[0],b=a=d[1],w=s=d[2],x=l=d[3],A=c=d[4],n=0;n<80;n+=1)u=(u=_t(u=(u=r+e[t+f[n]]|0)+(n<16?(a^s^l)+h[0]:n<32?Ct(a,s,l)+h[1]:n<48?((a|~s)^l)+h[2]:n<64?kt(a,s,l)+h[3]:(a^(s|~l))+h[4])|0,m[n]))+c|0,r=c,c=l,l=_t(s,10),s=a,a=u,u=(u=_t(u=(u=v+e[t+g[n]]|0)+(n<16?(b^(w|~x))+p[0]:n<32?kt(b,w,x)+p[1]:n<48?((b|~w)^x)+p[2]:n<64?Ct(b,w,x)+p[3]:(b^w^x)+p[4])|0,y[n]))+A|0,v=A,A=x,x=_t(w,10),w=b,b=u;u=d[1]+s+x|0,d[1]=d[2]+l+A|0,d[2]=d[3]+c+v|0,d[3]=d[4]+r+b|0,d[4]=d[0]+a+w|0,d[0]=u},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(64+i>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,r=0;r<5;r++){var a=o[r];o[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=ae.clone.call(this);return e._hash=this._hash.clone(),e}}),f.RIPEMD160=ae._createHelper(g),f.HmacRIPEMD160=ae._createHmacHelper(g),g=(f=p).lib.Base,re=f.enc.Utf8,f.algo.HMAC=g.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=re.parse(t));var n=e.blockSize,i=4*n;(t=t.sigBytes>i?e.finalize(t):t).clamp();for(var e=this._oKey=t.clone(),t=this._iKey=t.clone(),o=e.words,r=t.words,a=0;a<n;a++)o[a]^=1549556828,r[a]^=909522486;e.sigBytes=t.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,e=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(e))}}),g=(f=p).lib,x=g.Base,ne=g.WordArray,t=(g=f.algo).SHA1,ie=g.HMAC,oe=g.PBKDF2=x.extend({cfg:x.extend({keySize:4,hasher:t,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=ie.create(n.hasher,e),o=ne.create(),r=ne.create([1]),a=o.words,s=r.words,l=n.keySize,c=n.iterations;a.length<l;){var u=i.update(t).finalize(r);i.reset();for(var d=u.words,h=d.length,p=u,f=1;f<c;f++){p=i.finalize(p),i.reset();for(var g=p.words,m=0;m<h;m++)d[m]^=g[m]}o.concat(u),s[0]++}return o.sigBytes=4*l,o}}),f.PBKDF2=function(e,t,n){return oe.create(n).compute(e,t)},x=(g=p).lib,t=x.Base,Z=x.WordArray,f=(x=g.algo).MD5,ee=x.EvpKDF=t.extend({cfg:t.extend({keySize:4,hasher:f,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,o=i.hasher.create(),r=Z.create(),a=r.words,s=i.keySize,l=i.iterations;a.length<s;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var c=1;c<l;c++)n=o.finalize(n),o.reset();r.concat(n)}return r.sigBytes=4*s,r}}),g.EvpKDF=function(e,t,n){return ee.create(n).compute(e,t)},p.lib.Cipher||(t=(x=p).lib,f=t.Base,d=t.WordArray,Y=t.BufferedBlockAlgorithm,(g=x.enc).Utf8,K=g.Base64,G=x.algo.EvpKDF,Q=t.Cipher=Y.extend({cfg:f.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){Y.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(i){return{encrypt:function(e,t,n){return At(t).encrypt(i,e,t,n)},decrypt:function(e,t,n){return At(t).decrypt(i,e,t,n)}}}}),t.StreamCipher=Q.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),g=x.mode={},e=t.BlockCipherMode=f.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),e=g.CBC=((g=e.extend()).Encryptor=g.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;xt.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),g.Decryptor=g.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);n.decryptBlock(e,t),xt.call(this,e,t,i),this._prevBlock=o}}),g),g=(x.pad={}).Pkcs7={pad:function(e,t){for(var t=4*t,n=t-e.sigBytes%t,i=n<<24|n<<16|n<<8|n,o=[],r=0;r<n;r+=4)o.push(i);t=d.create(o,n);e.concat(t)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},t.BlockCipher=Q.extend({cfg:Q.cfg.extend({mode:e,padding:g}),reset:function(){Q.reset.call(this);var e,t=this.cfg,n=t.iv,t=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=t.createEncryptor:(e=t.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(t,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),X=t.CipherParams=f.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),e=(x.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,e=e.salt;return(e?d.create([1398893684,1701076831]).concat(e).concat(t):t).toString(K)},parse:function(e){var t,e=K.parse(e),n=e.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=d.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),X.create({ciphertext:e,salt:t})}},h=t.SerializableCipher=f.extend({cfg:f.extend({format:e}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var o=e.createEncryptor(n,i),t=o.finalize(t),o=o.cfg;return X.create({ciphertext:t,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(x.kdf={}).OpenSSL={execute:function(e,t,n,i){i=i||d.random(8);e=G.create({keySize:t+n}).compute(e,i),n=d.create(e.words.slice(t),4*n);return e.sigBytes=4*t,X.create({key:e,iv:n,salt:i})}},J=t.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:g}),encrypt:function(e,t,n,i){n=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize),i.iv=n.iv,e=h.encrypt.call(this,e,t,n.key,i);return e.mixIn(n),e},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);n=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=n.iv,h.decrypt.call(this,e,t,n.key,i)}})),p.mode.CFB=((f=p.lib.BlockCipherMode.extend()).Encryptor=f.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;wt.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),f.Decryptor=f.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);wt.call(this,e,t,i,n),this._prevBlock=o}}),f),p.mode.CTR=(x=(e=p.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,r=this._counter,a=(o&&(r=this._counter=o.slice(0),this._iv=void 0),r.slice(0));n.encryptBlock(a,0),r[i-1]=r[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=a[s]}}),e.Decryptor=x,e),p.mode.CTRGladman=(t=p.lib.BlockCipherMode.extend(),g=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,r=this._counter,a=(o&&(r=this._counter=o.slice(0),this._iv=void 0),0===((o=r)[0]=bt(o[0]))&&(o[1]=bt(o[1])),r.slice(0));n.encryptBlock(a,0);for(var s=0;s<i;s++)e[t+s]^=a[s]}}),t.Decryptor=g,t),p.mode.OFB=(f=p.lib.BlockCipherMode.extend(),x=f.Encryptor=f.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,r=this._keystream;o&&(r=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(r,0);for(var a=0;a<i;a++)e[t+a]^=r[a]}}),f.Decryptor=x,f),p.mode.ECB=((g=p.lib.BlockCipherMode.extend()).Encryptor=g.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),g.Decryptor=g.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),g),p.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,t=4*t,t=t-n%t,n=n+t-1;e.clamp(),e.words[n>>>2]|=t<<24-n%4*8,e.sigBytes+=t},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},p.pad.Iso10126={pad:function(e,t){t*=4,t-=e.sigBytes%t;e.concat(p.lib.WordArray.random(t-1)).concat(p.lib.WordArray.create([t<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},p.pad.Iso97971={pad:function(e,t){e.concat(p.lib.WordArray.create([2147483648],1)),p.pad.ZeroPadding.pad(e,t)},unpad:function(e){p.pad.ZeroPadding.unpad(e),e.sigBytes--}},p.pad.ZeroPadding={pad:function(e,t){t*=4;e.clamp(),e.sigBytes+=t-(e.sigBytes%t||t)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;0<=n;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},p.pad.NoPadding={pad:function(){},unpad:function(){}},q=(t=p).lib.CipherParams,V=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(V)},parse:function(e){e=V.parse(e);return q.create({ciphertext:e})}};for(var x=p,f=x.lib.BlockCipher,g=x.algo,A=[],tt=[],nt=[],it=[],ot=[],rt=[],at=[],st=[],lt=[],ct=[],C=[],k=0;k<256;k++)C[k]=k<128?k<<1:k<<1^283;for(var _=0,N=0,k=0;k<256;k++){var I=N^N<<1^N<<2^N<<3^N<<4,ut=(A[_]=I=I>>>8^255&I^99,C[tt[I]=_]),dt=C[ut],ht=C[dt],M=257*C[I]^16843008*I;nt[_]=M<<24|M>>>8,it[_]=M<<16|M>>>16,ot[_]=M<<8|M>>>24,rt[_]=M,at[I]=(M=16843009*ht^65537*dt^257*ut^16843008*_)<<24|M>>>8,st[I]=M<<16|M>>>16,lt[I]=M<<8|M>>>24,ct[I]=M,_?(_=ut^C[C[C[ht^ut]]],N^=C[C[N]]):_=N=1}var pt=[0,1,2,4,8,16,32,64,128,27,54],g=g.AES=f.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*(1+(this._nRounds=6+n)),o=this._keySchedule=[],r=0;r<i;r++)r<n?o[r]=t[r]:(l=o[r-1],r%n?6<n&&r%n==4&&(l=A[l>>>24]<<24|A[l>>>16&255]<<16|A[l>>>8&255]<<8|A[255&l]):(l=A[(l=l<<8|l>>>24)>>>24]<<24|A[l>>>16&255]<<16|A[l>>>8&255]<<8|A[255&l],l^=pt[r/n|0]<<24),o[r]=o[r-n]^l);for(var a=this._invKeySchedule=[],s=0;s<i;s++){var r=i-s,l=s%4?o[r]:o[r-4];a[s]=s<4||r<=4?l:at[A[l>>>24]]^st[A[l>>>16&255]]^lt[A[l>>>8&255]]^ct[A[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,nt,it,ot,rt,A)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,at,st,lt,ct,tt),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,o,r,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++)var g=i[c>>>24]^o[u>>>16&255]^r[d>>>8&255]^a[255&h]^n[p++],m=i[u>>>24]^o[d>>>16&255]^r[h>>>8&255]^a[255&c]^n[p++],y=i[d>>>24]^o[h>>>16&255]^r[c>>>8&255]^a[255&u]^n[p++],v=i[h>>>24]^o[c>>>16&255]^r[u>>>8&255]^a[255&d]^n[p++],c=g,u=m,d=y,h=v;g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],y=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],v=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=g,e[t+1]=m,e[t+2]=y,e[t+3]=v},keySize:8});return x.AES=f._createHelper(g),x=(t=p).lib,B=x.WordArray,x=x.BlockCipher,j=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],H=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],F=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],z
vendor: 7,629 bytes, line 1
1=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 6,623 bytes, line 1
1W=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],U=(f=t.algo).DES=x.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=j[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],r=0;r<16;r++){for(var a=o[r]=[],s=F[r],n=0;n<24;n++)a[n/6|0]|=t[(H[n]-1+s)%28]<<31-n%6,a[4+(n/6|0)]|=t[28+(H[n+24]-1+s)%28]<<31-n%6;for(a[0]=a[0]<<1|a[0]>>>31,n=1;n<7;n++)a[n]=a[n]>>>4*(n-1)+3;a[7]=a[7]<<5|a[7]>>>27}var l=this._invSubKeys=[];for(n=0;n<16;n++)l[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],yt.call(this,4,252645135),yt.call(this,16,65535),vt.call(this,2,858993459),vt.call(this,8,16711935),yt.call(this,1,1431655765);for(var i=0;i<16;i++){for(var o=n[i],r=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=z[l][((a^o[l])&W[l])>>>0];this._lBlock=a,this._rBlock=r^s}var c=this._lBlock;this._lBlock=this._rBlock,this._rBlock=c,yt.call(this,1,1431655765),vt.call(this,8,16711935),vt.call(this,2,858993459),yt.call(this,16,65535),yt.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2}),t.DES=x._createHelper(U),f=f.TripleDES=x.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),e=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=U.createEncryptor(B.create(t)),this._des2=U.createEncryptor(B.create(n)),this._des3=U.createEncryptor(B.create(e))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),t.TripleDES=x._createHelper(f),t=(g=p).lib.StreamCipher,P=(x=g.algo).RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;for(var o=0,r=0;o<256;o++){var a=o%n,a=t[a>>>2]>>>24-a%4*8&255,r=(r+i[o]+a)%256,a=i[o];i[o]=i[r],i[r]=a}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=mt.call(this)},keySize:8,ivSize:0}),g.RC4=t._createHelper(P),x=x.RC4Drop=P.extend({cfg:P.cfg.extend({drop:192}),_doReset:function(){P._doReset.call(this);for(var e=this.cfg.drop;0<e;e--)mt.call(this)}}),g.RC4Drop=t._createHelper(x),g=(f=p).lib.StreamCipher,r=[],l=[],c=[],t=f.algo.Rabbit=g.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);for(var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],n=this._b=0;n<4;n++)gt.call(this);for(n=0;n<8;n++)o[n]^=i[n+4&7];if(t){var t=t.words,r=t[0],t=t[1],r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),a=r>>>16|4294901760&t,s=t<<16|65535&r;for(o[0]^=r,o[1]^=a,o[2]^=t,o[3]^=s,o[4]^=r,o[5]^=a,o[6]^=t,o[7]^=s,n=0;n<4;n++)gt.call(this)}},_doProcessBlock:function(e,t){var n=this._X;gt.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2}),f.Rabbit=g._createHelper(t),f=(x=p).lib.StreamCipher,o=[],a=[],s=[],g=x.algo.RabbitLegacy=f.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],o=this._b=0;o<4;o++)ft.call(this);for(o=0;o<8;o++)i[o]^=n[o+4&7];if(t){var e=t.words,t=e[0],e=e[1],t=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8),e=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),r=t>>>16|4294901760&e,a=e<<16|65535&t;for(i[0]^=t,i[1]^=r,i[2]^=e,i[3]^=a,i[4]^=t,i[5]^=r,i[6]^=e,i[7]^=a,o=0;o<4;o++)ft.call(this)}},_doProcessBlock:function(e,t){var n=this._X;ft.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2}),x.RabbitLegacy=f._createHelper(g),p;function ft(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],o=65535&i,r=i>>>16;s[n]=((o*o>>>17)+o*r>>>15)+r*r^((4294901760&i)*i|0)+((65535&i)*i|0)}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}function gt(){for(var e=this._X,t=this._C,n=0;n<8;n++)l[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<l[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<l[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<l[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<l[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<l[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<l[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<l[6]>>>0?1:0)|0,this._b=t[7]>>>0<l[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],o=65535&i,r=i>>>16;c[n]=((o*o>>>17)+o*r>>>15)+r*r^((4294901760&i)*i|0)+((65535&i)*i|0)}e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>
116)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}function mt(){for(var e=this._S,t=this._i,n=this._j,i=0,o=0;o<4;o++){var n=(n+e[t=(t+1)%256])%256,r=e[t];e[t]=e[n],e[n]=r,i|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,i}function yt(e,t){t=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=t,this._lBlock^=t<<e}function vt(e,t){t=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=t,this._rBlock^=t<<e}function bt(e){var t,n,i;return 255==(e>>24&255)?(n=e>>8&255,i=255&e,255===(t=e>>16&255)?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e=(e+=t<<16)+(n<<8)+i):e+=1<<24,e}function wt(e,t,n,i){var o,r=this._iv;r?(o=r.slice(0),this._iv=void 0):o=this._prevBlock,i.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}function xt(e,t,n){var i,o=this._iv;o?(i=o,this._iv=void 0):i=this._prevBlock;for(var r=0;r<n;r++)e[t+r]^=i[r]}function At(e){return"string"==typeof e?J:h}function Ct(e,t,n){return e&t|~e&n}function kt(e,t,n){return e&n|t&~n}function _t(e,t){return e<<t|e>>>32-t}function St(e){return e<<8&4278255360|e>>>8&16711935}}),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Sweetalert2=t()})(this,function(){let p="SweetAlert2:",P=e=>e.charAt(0).toUpperCase()+e.slice(1),f=e=>{console.warn("".concat(p," ").concat("object"==typeof e?e.join(" "):e))},w=e=>{console.error("".concat(p," ").concat(e))},B=[],j=e=>"function"==typeof e?e():e,H=e=>e&&"function"==typeof e.toPromise,x=e=>H(e)?e.toPromise():Promise.resolve(e),F=e=>e&&Promise.resolve(e)===e,r={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
1:void 0,didDestroy:void 0,scrollbarPadding:!0},z=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],W={},U=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],q=e=>Object.prototype.hasOwnProperty.call(r,e),V=e=>-1!==z.indexOf(e),Y=e=>W[e],K=e=>{for(var t in!e.backdrop&&e.allowOutsideClick&&f('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e)n=t,q(n)||f('Unknown parameter "'.concat(n,'"')),e.toast&&(n=t,U.includes(n))&&f('The parameter "'.concat(n,'" is incompatible with toasts')),n=t,Y(n)&&(t=n,n=Y(n),t='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(n,'" instead.'),B.includes(t)||(B.push(t),f(t)));var n},e=e=>{var t,n={};for(t in e)n[e[t]]="swal2-"+e[t];return n},A=e(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","no-war"]),g=e(["success","warning","info","question","error"]),C=()=>document.body.querySelector(".".concat(A.container)),t=e=>{var t=C();return t?t.querySelector(e):null},n=e=>t(".".concat(e)),k=()=>n(A.popup),G=()=>n(A.icon),Q=()=>n(A.title),X=()=>n(A["html-container"]),J=()=>n(A.image),Z=()=>n(A["progress-steps"]),ee=()=>n(A["validation-message"]),_=()=>t(".".concat(A.actions," .").concat(A.confirm)),S=()=>t(".".concat(A.actions," .").concat(A.deny)),m=()=>t(".".concat(A.loader)),E=()=>t(".".concat(A.actions," .").concat(A.cancel)),te=()=>n(A.actions),ne=()=>n(A.footer),ie=()=>n(A["timer-progress-bar"]),oe=()=>n(A.close),re=()=>{var e=Array.from(k().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((e,t)=>(e=parseInt(e.getAttribute("tabindex")),(t=parseInt(t.getAttribute("tabindex")))<e?1:e<t?-1:0)),t=Array.from(k().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter(e=>"-1"!==e.getAttribute("tabindex"));return(t=>{var n=[];for(let e=0;e<t.length;e++)-1===n.indexOf(t[e])&&n.push(t[e]);return n})(e.concat(t)).filter(e=>N(e))},ae=()=>l(document.body,A.shown)&&!l(document.body,A["toast-shown"])&&!l(document.body,A["no-backdrop"]),se=()=>k()&&l(k(),A.toast);function le(e,t){let n=1<arguments.length&&void 0!==t&&t,i=ie();N(i)&&(n&&(i.style.transition="none",i.style.width="100%"),setTimeout(()=>{i.style.transition="width ".concat(e/1e3,"s linear"),i.style.width="0%"},10))}let i={previousBodyPadding:null},y=(t,e)=>{t.textContent="",e&&(e=(new DOMParser).parseFromString(e,"text/html"),Array.from(e.querySelector("head").childNodes).forEac
1h(e=>{t.appendChild(e)}),Array.from(e.querySelector("body").childNodes).forEach(e=>{t.appendChild(e)}))},l=(t,e)=>{if(!e)return!1;var n=e.split(/\s+/);for(let e=0;e<n.length;e++)if(!t.classList.contains(n[e]))return!1;return!0},ce=(t,n)=>{Array.from(t.classList).forEach(e=>{Object.values(A).includes(e)||Object.values(g).includes(e)||Object.values(n.showClass).includes(e)||t.classList.remove(e)})},v=(e,t,n)=>{if(ce(e,t),t.customClass&&t.customClass[n]){if("string"!=typeof t.customClass[n]&&!t.customClass[n].forEach)return f("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(typeof t.customClass[n],'"'));T(e,t.customClass[n])}},ue=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(".".concat(A.popup," > .").concat(A[t]));case"checkbox":return e.querySelector(".".concat(A.popup," > .").concat(A.checkbox," input"));case"radio":return e.querySelector(".".concat(A.popup," > .").concat(A.radio," input:checked"))||e.querySelector(".".concat(A.popup," > .").concat(A.radio," input:first-child"));case"range":return e.querySelector(".".concat(A.popup," > .").concat(A.range," input"));default:return e.querySelector(".".concat(A.popup," > .").concat(A.input))}},de=e=>{var t;e.focus(),"file"!==e.type&&(t=e.value,e.value="",e.value=t)},he=(e,t,n)=>{e&&t&&(t="string"==typeof t?t.split(/\s+/).filter(Boolean):t).forEach(t=>{Array.isArray(e)?e.forEach(e=>{n?e.classList.add(t):e.classList.remove(t)}):n?e.classList.add(t):e.classList.remove(t)})},T=(e,t)=>{he(e,t,!0)},$=(e,t)=>{he(e,t,!1)},c=(e,t)=>{var n=Array.from(e.children);for(let e=0;e<n.length;e++){var i=n[e];if(i instanceof HTMLElement&&l(i,t))return i}},b=(e,t,n)=>{(n=n==="".concat(parseInt(n))?parseInt(n):n)||0===parseInt(n)?e.style[t]="number"==typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},D=function(e){e.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex"},L=e=>{e.style.display="none"},pe=(e,t,n,i)=>{e=e.querySelector(t);e&&(e.style[n]=i)},fe=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"flex";t?D(e,n):L(e)},N=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ge=e=>!!(e.scrollHeight>e.clientHeight),me=e=>{var t=window.getComputedStyle(e),e=parseFloat(t.getPropertyValue("animation-duration")||"0"),t=parseFloat(t.getPropertyValue("transition-duration")||"0");return 0<e||0<t},ye=()=>"undefined"==typeof window||"undefined"==typeof document,ve=100,I={},be=()=>{I.previousActiveElement instanceof HTMLElement?(I.previousActiveElement.focus(),I.previousActiveElement=null):document.body&&document.body.focus()},we=i=>new Promise(e=>{if(!i)return e();var t=window.scrollX,n=window.scrollY;I.restoreFocusTimeout=setTimeout(()=>{be(),e()},ve),window.scrollTo(t,n)}),xe='\n <div aria-labelledby="'.concat(A.title,'" aria-describedby="').concat(A["html-container"],'" class="').concat(A.popup,'" tabindex="-1">\n   <button type="button" class="').concat(A.close,'"></button>\n   <ul class="').concat(A["progress-steps"],'"></ul>\n   <div class="').concat(A.icon,'"></div>\n   <img class="').concat(A.image,'" />\n   <h2 class="').concat(A.title,'" id="').concat(A.title,'"></h2>\n   <div class="').concat(A["html-container"],'" id="').concat(A["html-container"],'"></div>\n   <input class="').concat(A.input,'" />\n   <input type="file" class="').concat(A.file,'" />\n   <div class="').concat(A.range,'">\n     <input type="range" />\n     <output></output>\n   </div>\n   <select class="').concat(A.select,'"></select>\n   <div class="').concat(A.radio,'"></div>\n   <label for="').concat(A.checkbox,'" class="').concat(A.checkbox,'">\n     <input type="checkbox" />\n     <span class="').concat(A.label,'"></span>\n   </label>\n   <textarea class="').concat(A.textarea,'"></textarea>\n   <div class="').concat(A["validation-message"],'" id="').concat(A["validation-message"],'"></div>\n   <div class="').concat(A.actions,'">\n     <div class="').concat(A.loader,'"></div>\n     <button type="button" class="').concat(A.confirm,'"></button>\n     <button type="button" class="').concat(A.deny,'"></button>\n     <button type="button" class="').concat(A.cancel,'"></button>\n   </div>\n   <div class="').concat(A.footer,'"></div>\n   <div class="').concat(A["timer-progress-bar-container"],'">\n     <div class="').concat(A["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),u=()=>{I.currentInstance.resetValidationMessage()},Ae=(e,t)=>
1{var n,i;e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?(i=t,(n=e).jquery?Ce(i,n):y(i,n.toString())):e&&y(t,e)},Ce=(t,n)=>{if(t.textContent="",0 in n)for(let e=0;e in n;e++)t.appendChild(n[e].cloneNode(!0));else t.appendChild(n.cloneNode(!0))},ke=(()=>{if(!ye()){var e,t=document.createElement("div"),n={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&void 0!==t.style[e])return n[e]}return!1})();function _e(e,t,n){fe(e,n["show".concat(P(t),"Button")],"inline-block"),y(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=A[t],v(e,n,"".concat(t,"Button")),T(e,n["".concat(t,"ButtonClass")])}var M={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};let Se=["input","file","range","select","radio","checkbox","textarea"],Ee=(e,t)=>{e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Te=(e,t,n)=>{var i,o;n.inputLabel&&(e.id=A.input,i=document.createElement("label"),o=A["input-label"],i.setAttribute("for",e.id),i.className=o,"object"==typeof n.customClass&&T(i,n.customClass.inputLabel),i.innerText=n.inputLabel,t.insertAdjacentElement("beforebegin",i))},$e=e=>c(k(),A[e]||A.input),De=(e,t)=>{["string","number"].includes(typeof t)?e.value="".concat(t):F(t)||f('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t,'"'))},o={},Le=(o.text=o.email=o.password=o.number=o.tel=o.url=(e,t)=>(De(e,t.inputValue),Te(e,e,t),Ee(e,t),e.type=t.input,e),o.file=(e,t)=>(Te(e,e,t),Ee(e,t),e),o.range=(e,t)=>{var n=e.querySelector("input"),i=e.querySelector("output");return De(n,t.inputValue),n.type=t.input,De(i,t.inputValue),Te(n,e,t),e},o.select=(e,t)=>{var n;return e.textContent="",t.inputPlaceholder&&(n=document.createElement("option"),y(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.appendChild(n)),Te(e,e,t),e},o.radio=e=>(e.textContent="",e),o.checkbox=(e,t)=>{var n=ue(k(),"checkbox");return n.value="1",n.id=A.checkbox,n.checked=Boolean(t.inputValue),e=e.querySelector("span"),y(e,t.inputPlaceholder),n},o.textarea=(n,e)=>(De(n,e.inputValue),Ee(n,e),Te(n,n,e),setTimeout(()=>{if("MutationObserver"in window){let t=parseInt(window.getComputedStyle(k()).width);new MutationObserver(()=>{var e=n.offsetWidth+(e=n,parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight));e>t?k().style.width="".concat(e,"px"):k().style.width=null}).observe(n,{attributes:!0,attributeFilter:["style"]})}}),n),(e,t)=>{var n=X();v(n,t,"htmlContainer"),t.html?(Ae(t.html,n),D(n,"block")):t.text?(n.textContent=t.text,D(n,"block")):L(n),((e,a)=>{let s=k();var t;let l=!(e=M.innerParams.get(e))||a.input!==e.input;Se.forEach(e=>{var t=c(s,A[e]),n=e,i=a.inputAttributes,o=ue(k(),n);if(o)for(var r in(t=>{for(let e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}})(o),i)o.setAttribute(r,i[r]);t.className=A[e],l&&L(t)}),a.input&&(l&&(e=>{if(!o[e.input])return w('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));let t=$e(e.input),n=o[e.input](t,e);D(t),setTimeout(()=>{de(n)})})(a),e=a,t=$e(e.input),"object"==typeof e.customClass)&&T(t,e.customClass.input)})(e,t)}),Ne=(e,t)=>{for(var n in g)t.icon!==n&&$(e,g[n]);T(e,g[t.icon]),Pe(e,t),Ie(),v(e,t,"icon")},Ie=()=>{var e=k(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=t},Me='\n  <div class="swal2-success-circular-line-left"></div>\n  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n  <div class="swal2-success-circular-line-right"></div>\n',Re='\n  <span class="swal2-x-mark">\n    <span class="swal2-x-mark-line-left"></span>\n    <span class="swal2-x-mark-line-right"></span>\n  </span>\n',Oe=(e,t)=>
1{let n=e.innerHTML,i,o;t.iconHtml?i=Be(t.iconHtml):"success"===t.icon?(i=Me,n=n.replace(/ style=".*?"/g,"")):i="error"===t.icon?Re:(o={question:"?",warning:"!",info:"i"},Be(o[t.icon])),n.trim()!==i.trim()&&y(e,i)},Pe=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(var n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])pe(e,n,"backgroundColor",t.iconColor);pe(e,".swal2-success-ring","borderColor",t.iconColor)}},Be=e=>'<div class="'.concat(A["icon-content"],'">').concat(e,"</div>"),je=(e,o)=>{let r=Z();if(!o.progressSteps||0===o.progressSteps.length)return L(r);D(r),r.textContent="",o.currentProgressStep>=o.progressSteps.length&&f("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),o.progressSteps.forEach((e,t)=>{n=e,i=document.createElement("li"),T(i,A["progress-step"]),y(i,n);var n,i,e=i;r.appendChild(e),t===o.currentProgressStep&&T(e,A["active-progress-step"]),t!==o.progressSteps.length-1&&(n=o,i=document.createElement("li"),T(i,A["progress-step-line"]),n.progressStepsDistance&&b(i,"width",n.progressStepsDistance),e=i,r.appendChild(e))})},He=(e,t)=>{var n,i,o,r,a,s,l,c,u,d,h,p;d=t,h=C(),p=k(),d.toast?(b(h,"width",d.width),p.style.width="100%",p.insertBefore(m(),G())):b(p,"width",d.width),b(p,"padding",d.padding),d.color&&(p.style.color=d.color),d.background&&(p.style.background=d.background),L(ee()),(h=p).className="".concat(A.popup," ").concat(N(h)?d.showClass.popup:""),d.toast?(T([document.documentElement,document.body],A["toast-shown"]),T(h,A.toast)):T(h,A.modal),v(h,d,"popup"),"string"==typeof d.customClass&&T(h,d.customClass),d.icon&&T(h,A["icon-".concat(d.icon)]),p=t,(h=C())&&(d=h,"string"==typeof(u=p.backdrop)?d.style.background=u:u||T([document.documentElement,document.body],A["no-backdrop"]),d=h,(u=p.position)in A?T(d,A[u]):(f('The "position" parameter is not valid, defaulting to "center"'),T(d,A.center)),u=h,(d=p.grow)&&"string"==typeof d&&(d="grow-".concat(d))in A&&T(u,A[d]),v(h,p,"container")),je(0,t),u=e,d=t,u=M.innerParams.get(u),h=G(),u&&d.icon===u.icon?(Oe(h,d),Ne(h,d)):d.icon||d.iconHtml?d.icon&&-1===Object.keys(g).indexOf(d.icon)?(w('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(d.icon,'"')),L(h)):(D(h),Oe(h,d),Ne(h,d),T(h,d.showClass.icon)):L(h),(e=>{var t=J();if(!e.imageUrl)return L(t);D(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt),b(t,"width",e.imageWidth),b(t,"height",e.imageHeight),t.className=A.image,v(t,e,"image")})(t),p=t,d=Q(),fe(d,p.title||p.titleText,"block"),p.title&&Ae(p.title,d),p.titleText&&(d.innerText=p.titleText),v(d,p,"title"),h=t,d=oe(),y(d,h.closeButtonHtml),v(d,h,"closeButton"),fe(d,h.showCloseButton),d.setAttribute("aria-label",h.closeButtonAriaLabel),Le(e,t),p=t,d=te(),h=m(),(p.showConfirmButton||p.showDenyButton||p.showCancelButton?D:L)(d),v(d,p,"actions"),e=h,n=p,i=_(),o=S(),r=E(),_e(i,"confirm",n),_e(o,"deny",n),_e(r,"cancel",n),a=i,s=o,l=r,(c=n).buttonsStyling?(T([a,s,l],A.styled),c.confirmButtonColor&&(a.style.backgroundColor=c.confirmButtonColor,T(a,A["default-outline"])),c.denyButtonColor&&(s.style.backgroundColor=c.denyButtonColor,T(s,A["default-outline"])),c.cancelButtonColor&&(l.style.backgroundColor=c.cancelButtonColor,T(l,A["default-outline"]))):$([a,s,l],A.styled),n.reverseButtons&&(n.toast?(d.insertBefore(r,i),d.insertBefore(o,i)):(d.insertBefore(r,e),d.insertBefore(o,e),d.insertBefore(i,e))),y(h,p.loaderHtml),v(h,p,"loader"),c=t,a=ne(),fe(a,c.footer),c.footer&&Ae(c.footer,a),v(a,c,"footer"),"function"==typeof t.didRender&&t.didRender(k())},R=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Fe=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ze=["swal-title","swal-html","swal-footer"],a=(t,n)=>
1{Array.from(t.attributes).forEach(e=>{-1===n.indexOf(e.name)&&f(['Unrecognized attribute "'.concat(e.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(n.length?"Allowed attributes are: ".concat(n.join(", ")):"To set the value, use HTML within the element.")])})};var We={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Ue(e){(t=e).inputValidator||Object.keys(We).forEach(e=>{t.input===e&&(t.inputValidator=We[e])}),e.showLoaderOnConfirm&&!e.preConfirm&&f("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),(i=e).target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(f('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />"));var t,n,i=e,e=!!(n=C())&&(n.remove(),$([document.documentElement,document.body],[A["no-backdrop"],A["toast-shown"],A["has-column"]]),!0);ye()?w("SweetAlert2 requires document to initialize"):((n=document.createElement("div")).className=A.container,e&&T(n,A["no-transition"]),y(n,xe),(e="string"==typeof(e=i.target)?document.querySelector(e):e).appendChild(n),n=i,(i=k()).setAttribute("role",n.toast?"alert":"dialog"),i.setAttribute("aria-live",n.toast?"polite":"assertive"),n.toast||i.setAttribute("aria-modal","true"),"rtl"===window.getComputedStyle(e).direction&&T(C(),A.rtl),(()=>{let e=k(),t=c(e,A.input),n=c(e,A.file),i=e.querySelector(".".concat(A.range," input")),o=e.querySelector(".".concat(A.range," output")),r=c(e,A.select),a=e.querySelector(".".concat(A.checkbox," input")),s=c(e,A.textarea);t.oninput=u,n.onchange=u,r.onchange=u,a.onchange=u,s.oninput=u,i.oninput=()=>{u(),o.value=i.value},i.onchange=()=>{u(),o.value=i.value}})())}class qe{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}let Ve=()=>{var e,t;null===i.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(i.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(i.previousBodyPadding+((e=document.createElement("div")).className=A["scrollbar-measure"],document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t),"px"))},Ye=()=>{null!==i.previousBodyPadding&&(document.body.style.paddingRight="".concat(i.previousBodyPadding,"px"),i.previousBodyPadding=null)},Ke=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!l(document.body,A.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),T(document.body,A.iosfix);{e=C();let t;e.ontouchstart=e=>{t=Ge(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}}var e=navigator.userAgent,t=!!e.match(/iPad/i)||!!e.match(/iPhone/i),n=!!e.match(/WebKit/i);t&&n&&!e.match(/CriOS/i)&&k().scrollHeight>window.innerHeight-44&&(C().style.paddingBottom="".concat(44,"px"))}},Ge=e=>{var t=e.target,n=C();return!(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType||e.touches&&1<e.touches.length||t!==n&&(ge(n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||ge(X())&&X().contains(t)))},Qe=()=>{var e;
1l(document.body,A.iosfix)&&(e=parseInt(document.body.style.top,10),$(document.body,A.iosfix),document.body.style.top="",document.body.scrollTop=-1*e)},Xe=10,Je=e=>{var t=k();e.target===t&&(e=C(),t.removeEventListener(ke,Je),e.style.overflowY="auto")},O=e=>{var t,n,i,o=k(),r=(o||new Pt,o=k(),m());se()?L(G()):(t=o,n=te(),i=m(),!e&&N(_())&&(e=_()),D(n),e&&(L(e),i.setAttribute("data-button-to-replace",e.className)),i.parentNode.insertBefore(i,e),T([t,n],A.loading)),D(r),o.setAttribute("data-loading","true"),o.setAttribute("aria-busy","true"),o.focus()},Ze={select:(e,t,o)=>{let i=c(e,A.select),r=(e,t,n)=>{var i=document.createElement("option");i.value=n,y(i,t),i.selected=tt(n,o.inputValue),e.appendChild(i)};t.forEach(e=>{var n=e[0],e=e[1];if(Array.isArray(e)){let t=document.createElement("optgroup");t.label=n,t.disabled=!1,i.appendChild(t),e.forEach(e=>r(t,e[1],e[0]))}else r(i,e,n)}),i.focus()},radio:(e,t,o)=>{let r=c(e,A.radio),n=(t.forEach(e=>{var t=e[0],e=e[1],n=document.createElement("input"),i=document.createElement("label"),t=(n.type="radio",n.name=A.radio,n.value=t,tt(t,o.inputValue)&&(n.checked=!0),document.createElement("span"));y(t,e),t.className=A.label,i.appendChild(n),i.appendChild(t),r.appendChild(i)}),r.querySelectorAll("input"));n.length&&n[0].focus()}},et=n=>{let i=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((e,t)=>{let n=e;"object"==typeof n&&(n=et(n)),i.push([t,n])}):Object.keys(n).forEach(e=>{let t=n[e];"object"==typeof t&&(t=et(t)),i.push([e,t])}),i},tt=(e,t)=>t&&t.toString()===e.toString();function nt(){var e,t,n=M.innerParams.get(this);n&&(t=M.domCache.get(this),L(t.loader),se()?n.icon&&D(G()):(e=(n=t).popup.getElementsByClassName(n.loader.getAttribute("data-button-to-replace"))).length?D(e[0],"inline-block"):N(_())||N(S())||N(E())||L(n.actions),$([t.popup,t.actions],A.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1)}var it={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};let ot=()=>_()&&_().click(),rt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},at=(e,t,n)=>{var i=re();if(i.length)return(t+=n)===i.length?t=0:-1===t&&(t=i.length-1),i[t].focus();k().focus()},st=["ArrowRight","ArrowDown"],lt=["ArrowLeft","ArrowUp"];function ct(e,t,n,i){se()?ht(e,i):(we(n).then(()=>ht(e,i)),rt(I)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ae()&&(Ye(),Qe(),Fe()),$([document.documentElement,document.body],[A.shown,A["height-auto"],A["no-backdrop"],A["toast-shown"]])}function ut(e){e=void 0!==(n=e)?Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},n):{isConfirmed:!1,isDenied:!1,isDismissed:!0};var t=it.swalPromiseResolve.get(this),n=(e=>{var t=k();if(!t)return!1;var n=M.innerParams.get(e);if(!n||l(t,n.hideClass.popup))return!1;$(t,n.showClass.popup),T(t,n.hideClass.popup);var i,o,r,a,s=C();return $(s,n.showClass.backdrop),T(s,n.hideClass.backdrop),s=e,e=t,t=n,n=C(),a=ke&&me(e),"function"==typeof t.willClose&&t.willClose(e),a?(a=s,i=e,e=n,o=t.returnFocus,r=t.didClose,I.swalCloseEventFinishedCallback=ct.bind(null,a,e,o,r),i.addEventListener(ke,function(e){e.target===i&&(I.swalCloseEventFinishedCallback(),delete I.swalCloseEventFinishedCallback)})):ct(s,n,t.returnFocus,t.didClose),!0})(this);this.isAwaitingPromise()?e.isDismissed||(dt(this),t(e)):n&&t(e)}let dt=e=>{e.isAwaitingPromise()&&(M.awaitingPromise.delete(e),M.innerParams.get(e)||e._destroy())},ht=(e,t)=>{setTimeout(()=>{"function"==typeof t&&t.bind(e.params)(),e._destroy()})};function pt(e,t,n){let i=M.domCache.get(e);t.forEach(e=>{i[e].disabled=n})}function ft(e,t){if(!e)return!1;if("radio"===e.type){var n=e.parentNode.parentNode.querySelectorAll("input");for(let e=0;e<n.length;e++)n[e].disabled=t}else e.disabled=t}let gt=e=>{e.isAwaitingPromise()?(mt(M,e),M.awaitingPromise.set(e,!0)):(mt(it,e),mt(M,e))},mt=(e,t)=>{for(var n in e)e[n].delete(t)}
1,yt=(e=Object.freeze({hideLoading:nt,disableLoading:nt,getInput:function(e){var t=M.innerParams.get(e||this);return(e=M.domCache.get(e||this))?ue(e.popup,t.input):null},close:ut,isAwaitingPromise:function(){return!!M.awaitingPromise.get(this)},rejectPromise:function(e){var t=it.swalPromiseReject.get(this);dt(this),t&&t(e)},handleAwaitingPromise:dt,closePopup:ut,closeModal:ut,closeToast:ut,enableButtons:function(){pt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){pt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return ft(this.getInput(),!1)},disableInput:function(){return ft(this.getInput(),!0)},showValidationMessage:function(e){var t=M.domCache.get(this),n=M.innerParams.get(this),e=(y(t.validationMessage,e),t.validationMessage.className=A["validation-message"],n.customClass&&n.customClass.validationMessage&&T(t.validationMessage,n.customClass.validationMessage),D(t.validationMessage),this.getInput());e&&(e.setAttribute("aria-invalid",!0),e.setAttribute("aria-describedby",A["validation-message"]),de(e),T(e,A.inputerror))},resetValidationMessage:function(){var e=M.domCache.get(this),e=(e.validationMessage&&L(e.validationMessage),this.getInput());e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),$(e,A.inputerror))},getProgressSteps:function(){return M.domCache.get(this).progressSteps},update:function(e){var t=k(),n=M.innerParams.get(this);if(!t||l(t,n.hideClass.popup))return f("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");t=(t=>{let n={};return Object.keys(t).forEach(e=>{V(e)?n[e]=t[e]:f("Invalid parameter to update: ".concat(e))}),n})(e),n=Object.assign({},n,t),He(this,n),M.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=M.domCache.get(this),t=M.innerParams.get(this);t?(e.popup&&I.swalCloseEventFinishedCallback&&(I.swalCloseEventFinishedCallback(),delete I.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),gt(this),delete this.params,delete I.keydownHandler,delete I.keydownTarget,delete I.currentInstance):gt(this)}}),(i,n)=>{var e=M.innerParams.get(i);if(e.input){var o=(e=>{var t,n=i.getInput();if(!n)return null;switch(e.input){case"checkbox":return n.checked?1:0;case"radio":return(t=n).checked?t.value:null;case"file":return(t=n).files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null;default:return e.inputAutoTrim?n.value.trim():n.value}})(e);if(e.inputValidator){var r=i,a=o,s=n;let e=M.innerParams.get(r),t=(r.disableInput(),Promise.resolve().then(()=>x(e.inputValidator(a,e.validationMessage))));t.then(e=>{r.enableButtons(),r.enableInput(),e?r.showValidationMessage(e):("deny"===s?vt:xt)(r,a)})}else i.getInput().checkValidity()?("deny"===n?vt:xt)(i,o):(i.enableButtons(),i.showValidationMessage(e.validationMessage))}else w('The "input" parameter is needed to be set when using returnInputValueOn'.concat(P(n)))}),vt=(t,n)=>{let e=M.innerParams.get(t||void 0);e.showLoaderOnDeny&&O(S()),e.preDeny?(M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>x(e.preDeny(n,e.validationMessage))).then(e=>{!1===e?(t.hideLoading(),dt(t)):t.close({isDenied:!0,value:void 0===e?n:e})}).catch(e=>wt(t||void 0,e))):t.close({isDenied:!0,value:n})},bt=(e,t)=>{e.close({isConfirmed:!0,value:t})},wt=(e,t)=>{e.rejectPromise(t)},xt=(t,n)=>{let e=M.innerParams.get(t||void 0);e.showLoaderOnConfirm&&O(),e.preConfirm?(t.resetValidationMessage(),M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>x(e.preConfirm(n,e.validationMessage))).then(e=>{N(ee())||!1===e?(t.hideLoading(),dt(t)):bt(t,void 0===e?n:e)}).catch(e=>wt(t||void 0,e))):bt(t,n)},At=!1,Ct=e=>e instanceof Element||"object"==typeof(e=e)&&e.jquery,kt=()=>{var e,t;if(I.timeout)return e=ie(),t=parseInt(window.getComputedStyle(e).width),e.style.removeProperty("transition"),e.style.width="100%",t=t/parseInt(window.getComputedStyle(e).width)*100,e.style.removeProperty("transition"),e.style.width="".concat(t,"%"),I.timeout.stop()},_t=()=>{var e;if(I.timeout)return le(e=I.timeout.start()),e},St=!1,Et={},Tt=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(var n in Et){var i=e.getAttribute(n);if(i)return void Et[n].fire({template:i})}},$t=Object.freeze({isValidParameter:q,isUpdatableParameter:V,isDeprecatedParameter:Y,argsToParams:n=>{let i={};return"object"!=typeof n[0]||Ct(n[0])?["title","html","icon"].forEach((e,t)=>{"string"==typeof(t=n[t])||Ct(t)?i[e]=t:void 0!==t&&w("Unexpected type of ".concat(e,'! Expected "string" or "Element", got ').concat(typeof t))}):Object.assign(i,n[0]),i},isVisible:()=>N(k()),clickConfirm:ot,clickDeny:()=>S()&&S().click(),clickCancel:()=>E()&&E().click(),getContainer:C,getPopup:k,getTitle:Q,getHtmlContainer:X,getImage:J,getIcon:G,getIn
1putLabel:()=>n(A["input-label"]),getCloseButton:oe,getActions:te,getConfirmButton:_,getDenyButton:S,getCancelButton:E,getLoader:m,getFooter:ne,getTimerProgressBar:ie,getFocusableElements:re,getValidationMessage:ee,isLoading:()=>k().hasAttribute("data-loading"),fire:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new this(...t)},mixin:function(n){class e extends this{_main(e,t){return super._main(e,Object.assign({},n,t))}}return e},showLoading:O,enableLoading:O,getTimerLeft:()=>I.timeout&&I.timeout.getTimerLeft(),stopTimer:kt,resumeTimer:_t,toggleTimer:()=>{var e=I.timeout;return e&&(e.running?kt:_t)()},increaseTimer:e=>{if(I.timeout)return le(e=I.timeout.increase(e),!0),e},isTimerRunning:()=>I.timeout&&I.timeout.isRunning(),bindClickHandler:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template";Et[e]=this,St||(document.body.addEventListener("click",Tt),St=!0)}}),s;class d{constructor(){if("undefined"!=typeof window){s=this;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Object.freeze(this.constructor.argsToParams(t)),i=(Object.defineProperties(this,{params:{value:i,writable:!1,enumerable:!0,configurable:!0}}),s._main(s.params));M.promise.set(this,i)}}_main(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=(K(Object.assign({},t,e)),I.currentInstance&&(I.currentInstance._destroy(),ae())&&Fe(),I.currentInstance=s,Lt(e,t)),t=(Ue(e),Object.freeze(e),I.timeout&&(I.timeout.stop(),delete I.timeout),clearTimeout(I.restoreFocusTimeout),Nt(s));return He(s,e),M.innerParams.set(s,e),Dt(s,t,e)}then(e){return M.promise.get(this).then(e)}finally(e){return M.promise.get(this).finally(e)}}let Dt=(y,v,b)=>new Promise((e,t)=>{let n=e=>{y.closePopup({isDismissed:!0,dismiss:e})};var i,o,r,a,s,l,c,u,d,h,p,f,g;it.swalPromiseResolve.set(y,e),it.swalPromiseReject.set(y,t),v.confirmButton.onclick=()=>{var e=y,t=M.innerParams.get(e);e.disableButtons(),t.input?yt(e,"confirm"):xt(e,!0)},v.denyButton.onclick=()=>{var e=y,t=M.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?yt(e,"deny"):vt(e,!1)},v.cancelButton.onclick=()=>{var e=y,t=n;e.disableButtons(),t(R.cancel)},v.closeButton.onclick=()=>n(R.close),t=v,p=n,M.innerParams.get(e=y).toast?(u=e,d=p,t.popup.onclick=()=>{var e=M.innerParams.get(u);e&&(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input)||d(R.close)}):((c=t).popup.onmousedown=()=>{c.container.onmouseup=function(e){c.container.onmouseup=void 0,e.target===c.container&&(At=!0)}},(l=t).container.onmousedown=()=>{l.popup.onmouseup=function(e){l.popup.onmouseup=void 0,e.target!==l.popup&&!l.popup.contains(e.target)||(At=!0)}},r=e,s=p,(a=t).container.onclick=e=>{var t=M.innerParams.get(r);At?At=!1:e.target===a.container&&j(t.allowOutsideClick)&&s(R.backdrop)}),i=y,e=I,t=b,o=n,rt(e),t.toast||(e.keydownHandler=e=>((e,n,t)=>{var i=M.innerParams.get(e);if(i&&!n.isComposing&&229!==n.keyCode)if(i.stopKeydownPropagation&&n.stopPropagation(),"Enter"===n.key)s=n,o=i,j(o.allowEnterKey)&&s.target&&e.getInput()&&s.target instanceof HTMLElement&&s.target.outerHTML===e.getInput().outerHTML&&(["textarea","file"].includes(o.input)||(ot(),s.preventDefault()));else if("Tab"===n.key){var o=i,r=(e=n).target,a=re();let t=-1;for(let e=0;e<a.length;e++)if(r===a[e]){t=e;break}e.shiftKey?at(o,t,-1):at(o,t,1),e.stopPropagation(),e.preventDefault()}else if([...st,...lt].includes(n.key)){var s=n.key,o=_(),l=S(),c=E();if(!(document.activeElement instanceof HTMLElement)||[o,l,c].includes(document.activeElement)){let t=st.includes(s)?"nextElementSibling":"previousElementSibling",n=document.activeElement;for(let e=0;e<te().children.length;e++){if(!(n=n[t]))return;if(n instanceof HTMLButtonElement&&N(n))break}n instanceof HTMLButtonElement&&n.focus()}}else"Escape"===n.key&&(e=n,n=i,i=t,j(n.allowEscapeKey))&&(e.preventDefault(),i(R.esc))})(i,e,o),e.keydownTarget=t.keydownListenerCapture?window:k(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0),p=y,"select"===(t=b).input||"radio"===t.input?
1((t,n)=>{let i=k(),o=e=>Ze[n.input](i,et(e),n);H(n.inputOptions)||F(n.inputOptions)?(O(_()),x(n.inputOptions).then(e=>{t.hideLoading(),o(e)})):"object"==typeof n.inputOptions?o(n.inputOptions):w("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof n.inputOptions))})(p,t):["text","email","number","tel","textarea"].includes(t.input)&&(H(t.inputValue)||F(t.inputValue))&&(O(_()),((t,n)=>{let i=t.getInput();L(i),x(n.inputValue).then(e=>{i.value="number"===n.input?parseFloat(e)||0:"".concat(e),D(i),i.focus(),t.hideLoading()}).catch(e=>{w("Error in inputValue promise: ".concat(e)),i.value="",D(i),i.focus(),t.hideLoading()})})(p,t));{var m=b;let n=C(),i=k();"function"==typeof m.willOpen&&m.willOpen(i),e=window.getComputedStyle(document.body).overflowY,p=n,f=i,g=m,T(p,g.showClass.backdrop),f.style.setProperty("opacity","0","important"),D(f,"grid"),setTimeout(()=>{T(f,g.showClass.popup),f.style.removeProperty("opacity")},Xe),T([document.documentElement,document.body],A.shown),g.heightAuto&&g.backdrop&&!g.toast&&T([document.documentElement,document.body],A["height-auto"]),setTimeout(()=>{var e,t;e=n,t=i,ke&&me(t)?(e.style.overflowY="hidden",t.addEventListener(ke,Je)):e.style.overflowY="auto"},Xe),ae()&&(h=n,t=m.scrollbarPadding,p=e,Ke(),t&&"hidden"!==p&&Ve(),setTimeout(()=>{h.scrollTop=0}),Array.from(document.body.children).forEach(e=>{e===C()||e.contains(C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})),se()||I.previousActiveElement||(I.previousActiveElement=document.activeElement),"function"==typeof m.didOpen&&setTimeout(()=>m.didOpen(i)),$(n,A["no-transition"])}It(I,b,n),Mt(v,b),setTimeout(()=>{v.container.scrollTop=0})}),Lt=(e,t)=>
1{var n,i=(n="string"==typeof(n=e).template?document.querySelector(e.template):n.template)?((e=>{let t=ze.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{e=e.tagName.toLowerCase(),-1===t.indexOf(e)&&f("Unrecognized element <".concat(e,">"))})})(n=n.content),Object.assign((e=>{let n={},t=Array.from(e.querySelectorAll("swal-param"));return t.forEach(e=>{a(e,["name","value"]);var t=e.getAttribute("name"),e=e.getAttribute("value");"boolean"==typeof r[t]&&"false"===e&&(n[t]=!1),"object"==typeof r[t]&&(n[t]=JSON.parse(e))}),n})(n),(e=>{let n={},t=Array.from(e.querySelectorAll("swal-button"));return t.forEach(e=>{a(e,["type","color","aria-label"]);var t=e.getAttribute("type");n["".concat(t,"ButtonText")]=e.innerHTML,n["show".concat(P(t),"Button")]=!0,e.hasAttribute("color")&&(n["".concat(t,"ButtonColor")]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(n["".concat(t,"ButtonAriaLabel")]=e.getAttribute("aria-label"))}),n})(n),(i={},(o=(o=n).querySelector("swal-image"))&&(a(o,["src","width","height","alt"]),o.hasAttribute("src")&&(i.imageUrl=o.getAttribute("src")),o.hasAttribute("width")&&(i.imageWidth=o.getAttribute("width")),o.hasAttribute("height")&&(i.imageHeight=o.getAttribute("height")),o.hasAttribute("alt"))&&(i.imageAlt=o.getAttribute("alt")),i),(o={},(i=(i=n).querySelector("swal-icon"))&&(a(i,["type","color"]),i.hasAttribute("type")&&(o.icon=i.getAttribute("type")),i.hasAttribute("color")&&(o.iconColor=i.getAttribute("color")),o.iconHtml=i.innerHTML),o),(e=>{let n={},t=e.querySelector("swal-input"),i=(t&&(a(t,["type","label","placeholder","value"]),n.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(n.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(n.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value"))&&(n.inputValue=t.getAttribute("value")),Array.from(e.querySelectorAll("swal-input-option")));return i.length&&(n.inputOptions={},i.forEach(e=>{a(e,["value"]);var t=e.getAttribute("value"),e=e.innerHTML;n.inputOptions[t]=e})),n})(n),((e,t)=>{var n,i={};for(n in t){var o=t[n],r=e.querySelector(o);r&&(a(r,[]),i[o.replace(/^swal-/,"")]=r.innerHTML.trim())}return i})(n,ze))):{},o=Object.assign({},r,t,i,e);return o.showClass=Object.assign({},r.showClass,o.showClass),o.hideClass=Object.assign({},r.hideClass,o.hideClass),o},Nt=e=>{var t={popup:k(),container:C(),actions:te(),confirmButton:_(),denyButton:S(),cancelButton:E(),loader:m(),closeButton:oe(),validationMessage:ee(),progressSteps:Z()};return M.domCache.set(e,t),t},It=(e,t,n)=>{var i=ie();L(i),t.timer&&(e.timeout=new qe(()=>{n("timer"),delete e.timeout},t.timer),t.timerProgressBar)&&(D(i),v(i,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&le(t.timer)}))},Mt=(e,t)=>
1{if(!t.toast)return j(t.allowEnterKey)?void(Rt(e,t)||at(t,-1,1)):Ot()},Rt=(e,t)=>t.focusDeny&&N(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&N(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!N(e.confirmButton)||(e.confirmButton.focus(),0)),Ot=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if("undefined"!=typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)&&Math.random()<.1){let e=document.createElement("div");e.className="leave-russia-now-and-apply-your-skills-to-the-world";var h=(h=[{text:"В нижеприведённом видео объясняется как каждый из нас может помочь в том,\n        <strong>чтобы эта бессмысленная и бесчеловечная война остановилась</strong>:",id:"4CfDhaRkw7I"},{text:"Эмпатия - главное <strong>человеческое</strong> чувство. Способность сопереживать. <strong>Способность поставить себя на место другого.</strong>",id:"s-GLAIY4DXA"}])[Math.floor(Math.random()*h.length)],h=(y(e,"\n      <div>\n        Если мы не остановим войну, она придет в дом <strong>каждого из нас</strong> и её последствия будут <strong>ужасающими</strong>.\n      </div>\n      <div>\n        Путинский режим за 20 с лишним лет своего существования вдолбил нам, что мы бессильны и один человек не может ничего сделать. <strong>Это не так!</strong>\n      </div>\n      <div>\n        ".concat(h.text,'\n      </div>\n      <iframe width="560" height="315" src="https://www.youtube.com/embed/').concat(h.id,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>\n      <div>\n        Нет войне!\n      </div>\n      ')),document.createElement("button"));h.innerHTML="&times;",h.onclick=()=>e.remove(),e.appendChild(h),window.addEventListener("load",()=>{setTimeout(()=>{document.body.appendChild(e)},1e3)})}Object.assign(d.prototype,e),Object.assign(d,$t),Object.keys(e).forEach(e=>{d[e]=function(){if(s)return s[e](...arguments)}}),d.DismissReason=R,d.version="11.4.26";let Pt=d;return Pt.default=Pt}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)})(function(r){function n(e,t,n){t={content:{message:"object"==typeof t?t.message:t,title:t.title||"",icon:t.icon||"",url:t.url||"#",target:t.target||"-"}};n=r.extend(!0,{},t,n),this.settings=r.extend(!0,{},i,n),this._defaults=i,"-"==this.settings.content.target&&(this.settings.content.target=this.settings.url_target),this.animations={start:"webkitAnimationStart oanimationstart MSAnimationStart animationstart",end:"webkitAnimationEnd oanimationend MSAnimationEnd animationend"},"number"==typeof this.settings.offset&&(this.settings.offset={x:this.settings.offset,y:this.settings.offset}),this.init()}var i={element:"body",position:null,type:"info",allow_dismiss:!0,newest_on_top:!1,showProgressbar:!1,placement:{from:"top",align:"right"},offset:20,spacing:10,z_index:1031,delay:5e3,timer:1e3,url_target:"_blank",mouse_over:null,animate:{enter:"animated fadeInDown",exit:"animated fadeOutUp"},onShow:null,onShown:null,onClose:null,onClosed:null,icon_type:"class",template:'<div data-notify="container" class="col-xs-11 col-sm-4 alert alert-{0}" role="alert"><button type="button" aria-hidden="true" class="close" data-notify="dismiss">&times;</button><span data-notify="icon"></span> <span data-notify="title">{1}</span> <span data-notify="message">{2}</span><div class="progress" data-notify="progressbar"><div class="progress-bar progress-bar-{0}" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;"></div></div><a href="{3}" target="{4}" data-notify="url"></a></div>'};String.format=function(){for(var e=arguments[0],t=1;t<arguments.length;t++)e=e.replace(RegExp("\\{"+(t-1)+"\\}","gm"),arguments[t]);return e},r.extend(n.prototype,{init:function(){var o=this;this.buildNotify(),this.settings.content.icon&&this.setIcon(),"#"!=this.settings.content.url&&this.styleURL(),this.styleDismiss(),this.placement(),this.bind(),this.notify={$ele:this.$ele,update:function(e,t){var n={};for(e in"string"==typeof e?n[e]=t:n=e,n)switch(e){case"type":this.$ele.removeClass("alert-"+o.settings.type),this.$ele.find('[data-notify="progressbar"] > .progress-bar').removeClass("progress-bar-"+o.settings.type),o.settings.type=n[e],this.$ele.addClass("alert-"+n[e]).find('[data-notify="progressbar"] > .progress-bar').addClass("progress-bar-"+n[e]);break;case"icon":var i=this.$ele.find('[data-notify="icon"]');"class"==o.settings.icon_type.toLowerCase()?i.removeClass(o.settings.content.icon).addClass(n[e]):(i.is("img")||i.find("img"),i.attr("src",n[e]));break;case"progress":i=o.settings.delay-o.settings.delay*(n[e]/100);this.$ele.data("notify-delay",i),this.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",n[e]).css("width",n[e]+"%");break;case"url":this.$ele.find('[data-notify="url"]').attr("href",n[e]);break;case"target":this.$ele.find('[data-notify="url"]').attr("target",n[e]);break;default:this.$ele.find('[data-notify="'+e+'"]').html(n[e])}t=this.$ele.outerHeight()+parseInt(o.settings.spacing)+parseInt(o.settings.offset.y);o.reposition(t)},close:function(){o.close()}}},buildNotify:function(){var e=this.settings.content;this.$ele=r(String.format(this.settings.template,this.settings.type,e.title,e.message,e.url,e.target)),this.$ele.attr("data-notify-position",this.settings.placement.from+"-"+this.settings.placement.align),this.settings.allow_dismiss||this.$ele.find('[data-notify="dismiss"]').css("display","none"),(this.settings.delay<=0&&!this.settings.showProgressbar||!this.settings.showProgressbar)&&this.$ele.find('[data-notify="progressbar"]').remove()},setIcon:function(){"class"==this.settings.icon_type.toLowerCase()?this.$ele.find('[data-notify="icon"]').addClass(this.settings.content.icon):this.$ele.find('[data-notify="icon"]').is("img")?this.$ele.find('[data-notify="icon"]').attr("src",this.settings.content.icon):this.$ele.find('[data-notify="icon"]').append('<img src="'+this.settings.content.icon+'" alt="Notify Icon" />')},styleDismiss:function(){this.$ele.find('[data-notify="dismiss"]').css({position:"absolute",right:"10px",top:"5px",zIndex:this.settings.z_index+2})},styleURL:function(){this.$ele.find('[data-notify="url"]').css({backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)",height:"100%",left:"0px",position:"absolute",top:"0px",width:"100%",zIndex:this.settings.z_index+1})},placement:function(){var n=this,e=this.settings.offset.y,t={display:"inline-block",margin:"0px auto",position:this.settings.position||("body"===this.settings.element?"fixed":"absolute"),transition:"all .5s ease-in-out",zIndex:this.settings.z_index},i=!1,o=this.settings;switch(r('[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])').each(function(){return e=Math.max(e,parseInt(r(this).css(o.placement.from))+parseInt(r(this).outerHeight())+parseInt(o.spacing))}),1==this.settings.newest_on_top&&(e=this.settings.offset.y),t[this.settings.placement.from]=e+"px",this.settings.placement.align){case"left":case"right":t[this.settings.placement.align]=this.settings.offset.x+"px";break;case"center":t.left=0,t.right=0}this.$ele.css(t).addClass(this.settings.animate.enter),r.each(Array("webkit","moz","o","ms",""),function(e,t){n.$ele[0].style[t+"AnimationIterationCount"]=1}),r(this.settings.element).append(this.$ele),1==this.settings.newest_on_top&&(e=parseInt(e)+parseInt(this.settings.spacing)+this.$ele.outerHeight(),this.reposition(e)),r.isFunction(n.settings.onShow)&&n.settings.onShow.call(this.$ele),this.$ele.one(this.animations.start,function(e){i=!0}).one(this.animations.end,function(e){r.isFunction(n.settings.onShown)&&n.settings.onShown.call(this)}),setTimeout(function(){i||r.isFunction(n.settings.onShown)&&n.settings.onShown.call(this)},600)},bind:function(){var n,i=this;this.$ele.find('[data-notify="dismiss"]').on("click",function(){i.close()}),this.$ele.mouseover(function(e){r(this).data("data-hover","true")}).mouseout(function(e){r(this).data("data-hover","false")}),this.$ele.data("data-hover","false"),0<this.settings.delay&&(i.$ele.data("notify-delay",i.settings.delay),n=setInterval(function(){var e,t=parseInt(i.$ele.data("notify-delay"))-i.settings.timer;("false"===i.$ele.data("data-hover")&&"pause"==i.settings.mouse_over||"pause"!=i.settings.mouse_over)&&(e=(i.settings.delay-t)/i.settings.delay*100,i.$ele.data("notify-delay",t),i.$ele.find('[data-notify="progressbar"] > div').attr("aria-valuenow",e).css("width",e+"%")),t<=-i.settings.timer&&(clearInterval(n),i.close())},i.settings.timer))},close:function(){var t=this,e=parseInt(this.$ele.css(this.settings.placement.from)),n=!1;this.$ele.data("closing","true").addClass(this.settings.animate.exit),t.reposition(e),r.isFunction(t.settings.onClose)&&t.settings.onClose.call(this.$ele),this.$ele.one(this.animations.start,function(e){n=!0}).one(this.animations.end,function(e){r(this).remove(),r.isFunction(t.settings.onClosed)&&t.settings.onClosed.call(this)}),setTimeout(function(){n||(t.$ele.remove(),t.settings.onClosed&&t.settings.onClosed(t.$ele))},600)},reposition:function(e){var t=this,n='[data-notify-position="'+this.settings.placement.from+"-"+this.settings.placement.align+'"]:not([data-closing="true"])',i=this.$ele.nextAll(n);(i=1==this.settings.newest_on_top?this.$ele.prevAll(n):i).each(function(){r(this).css(t.settings.placement.from,e),e=parseInt(e)+parseInt(t.settings.spacing)+r(this).outerHeight()})}}),r.notify=function(e,t){return new n(0,e,t).notify}
1,r.notifyDefaults=function(e){return i=r.extend(!0,{},i,e)},r.notifyClose=function(e){r(void 0===e||"all"==e?"[data-notify]":'[data-notify-position="'+e+'"]').find('[data-notify="dismiss"]').trigger("click")}}),("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})(["jquery"],function(h){return b=0,o="error",a="info",s="success",l="warning",e={clear:function(e){var t=g();if(y||p(t),!r(e,t))for(var n=t,i=y.children(),o=i.length-1;0<=o;o--)r(h(i[o]),n)},remove:function(e){var t=g();return y||p(t),e&&0===h(":focus",e).length?void m(e):void(y.children().length&&y.remove())},error:function(e,t,n){return i({type:o,iconClass:g().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:p,info:function(e,t,n){return i({type:a,iconClass:g().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){t=e},success:function(e,t,n){return i({type:s,iconClass:g().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.0",warning:function(e,t,n){return i({type:l,iconClass:g().iconClasses.warning,message:e,optionsOverride:n,title:t})}};function p(e,t){return e=e||g(),(y=h("#"+e.containerId)).length||t&&(t=e,(y=h("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(h(t.target))),y}function r(e,t){return e&&0===h(":focus",e).length&&(e[t.hideMethod]({duration:t.hideDuration,easing:t.hideEasing,complete:function(){m(e)}}),1)}function f(e){t&&t(e)}function i(e){function t(e){return!h(":focus",r).length||e?(clearTimeout(u.intervalId),r[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){m(r),n.onHidden&&"hidden"!==d.state&&n.onHidden(),d.state="hidden",d.endTime=new Date,f(d)}})):void 0}var n=g(),i=e.iconClass||n.iconClass;if(void 0!==e.optionsOverride&&(n=h.extend(n,e.optionsOverride),i=e.optionsOverride.iconClass||i),n.preventDuplicates){if(e.message===v)return;v=e.message}b++,y=p(n,!0);var o=null,r=h("<div/>"),a=h("<div/>"),s=h("<div/>"),l=h("<div/>"),c=h(n.closeHtml),u={intervalId:null,hideEta:null,maxHideTime:null},d={toastId:b,state:"visible",startTime:new Date,options:n,map:e};return e.iconClass&&r.addClass(n.toastClass).addClass(i),e.title&&(a.append(e.title).addClass(n.titleClass),r.append(a)),e.message&&(s.append(e.message).addClass(n.messageClass),r.append(s)),n.closeButton&&(c.addClass("toast-close-button").attr("role","button"),r.prepend(c)),n.progressBar&&(l.addClass("toast-progress"),r.prepend(l)),r.hide(),n.newestOnTop?y.prepend(r):y.append(r),r[n.showMethod]({duration:n.showDuration,easing:n.showEasing,complete:n.onShown}),0<n.timeOut&&(o=setTimeout(t,n.timeOut),u.maxHideTime=parseFloat(n.timeOut),u.hideEta=(new Date).getTime()+u.maxHideTime,n.progressBar)&&(u.intervalId=setInterval(function(){var e=(u.hideEta-(new Date).getTime())/u.maxHideTime*100;l.width(e+"%")},10)),r.hover(function(){clearTimeout(o),u.hideEta=0,r.stop(!0,!0)[n.showMethod]({duration:n.showDuration,easing:n.showEasing})},function(){(0<n.timeOut||0<n.extendedTimeOut)&&(o=setTimeout(t,n.extendedTimeOut),u.maxHideTime=parseFloat(n.extendedTimeOut),u.hideEta=(new Date).getTime()+u.maxHideTime)}),!n.onclick&&n.tapToDismiss&&r.click(t),n.closeButton&&c&&c.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),t(!0)}),n.onclick&&r.click(function(){n.onclick(),t()}),f(d),n.debug&&console&&console.log(d),r}function g(){return h.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">&times;</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},e.options)}function m(e){y=y||p(),e.is(":visible")||(e.remove(),e=null,0===y.children().length&&(y.remove(),v=void 0))}var y,t,v,b,o,a,s,l,e});class Loading{static _overlay=null;static _inlineHost=null;static _inlineEl=null;static show(t={}){var{inline:t,size:n,color:i,border:o,overlayAlpha:r}=t;if(t){var a="string"==typeof t?document.querySelector(t):t;if(!a)return void console.warn("[Loading] inline 宿主未找到:",t);this._cleanupInline(),this._inlineHost=a;t=document.createElement("span");
1t.className="chahuo-ring-inline";let e=document.createElement("span");e.className="chahuo-ring",t.appendChild(e),a.appendChild(t),this._inlineEl=t,null!=n&&e.style.setProperty("--chahuo-ring-size","number"==typeof n?n+"px":String(n)),i&&e.style.setProperty("--chahuo-ring-color",i),void(null!=o&&e.style.setProperty("--chahuo-ring-border","number"==typeof o?o+"px":String(o)))}else{this._ensureOverlay();a=this._overlay;a.setAttribute("mask-hidden","false");let e=a.querySelector(".chahuo-ring");null!=n&&e.style.setProperty("--chahuo-ring-size","number"==typeof n?n+"px":String(n)),i&&e.style.setProperty("--chahuo-ring-color",i),null!=o&&e.style.setProperty("--chahuo-ring-border","number"==typeof o?o+"px":String(o)),"number"==typeof r&&a.style.setProperty("--chahuo-ring-overlay",`rgba(0,0,0,${r})`)}}static hide(){this._overlay&&this._overlay.setAttribute("mask-hidden","true"),this._cleanupInline()}static _ensureOverlay(){var e,t;this._overlay||((e=document.createElement("div")).className="chahuo-ring-overlay",e.setAttribute("mask-hidden","true"),(t=document.createElement("span")).className="chahuo-ring",e.appendChild(t),document.body.appendChild(e),this._overlay=e)}static _cleanupInline(){this._inlineEl&&this._inlineEl.parentNode&&this._inlineEl.parentNode.removeChild(this._inlineEl),this._inlineEl=null,this._inlineHost=null}}let util=new class Util{icon(e){return this.isImagePath(e)?`<img class="image-icon" src="${e}"  alt="icon"/>`:`<i class="${e}"></i>`}isImagePath(e){return/^\/[A-Za-z0-9_\/\-.]+\.(?:png|webp|jpg|jpeg|gif)$/i.test(e)}replaceDotWithHyphen(e){return e.replace(/\./g,"-")}parseStringObject(e,n){try{var i=(n=n.trim()).split("-");let t=e;for(let e=0;e<i.length;e++){var o=i[e];t=t[o]}return t}catch(e){}}isEmptyOrNotJson(e){return null==e||"object"!=typeof e||!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)||0===Object.keys(e).length}checkPropertyExistence(e,n){try{var i=(n=n.trim()).split("-");let t=e;for(let e=0;e<i.length;e++){var o=i[e];if(!t.hasOwnProperty(o))return!1;t=t[o]}return!0}catch(e){return!1}}parseNestedKeysFromJSON(n){var i,e={};for(i in n)if(n.hasOwnProperty(i)){var o=i.split("-");let t=e;for(let e=0;e<o.length;e++){var r=o[e];e===o.length-1?t[r]=n[i]:(t[r]=t[r]||{},t=t[r])}}return e}getCookie(e){return document.cookie.match(`[;s+]?${e}=([^;]*)`)?.pop()}getParam(t){var n=window.location.search.substring(1).split("&");for(let e=0;e<n.length;e++){var i=n[e].split("=");if(i[0]===t)return i[1]}return null}redactDebugValue(e,t="",i="request"){let l="[REDACTED]",c="[Unreadable]",n=new WeakSet,o=String(t||"").toLowerCase(),r=e=>String(e||"").replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase().split(/[^a-z0-9]+/).filter(Boolean),u=(e,t="")=>{var e=r(e),n=e.join("");return!!/(?:password|passwd|secret|token|authorization|private|credential)/.test(n)||!!e.some(e=>["key","auth","authentication","oauth","otp","totp","captcha"].includes(e))||!!/(?:api|app|access|client|public|private|merchant|mch|sign|encrypt|decrypt|auth)key(?:id|secret|token|value)?$/.test(n)||!(!e.includes("code")&&!n.endsWith("code"))&&(!(!e.some(e=>["verify","verification","captcha","otp","totp","auth","authentication","security","sms","email","phone","mobile","google","twofactor","2fa","onetime"].includes(e))&&!/(?:verify|verification|captcha|otp|totp|auth|authentication|security|sms|email|phone|mobile|google|twofactor|2fa|onetime)code$/.test(n))||("response"!==i||""!==t||1!==e.length)&&/(?:captcha|verif(?:y|ication)|otp|totp|google(?:bind|unbind|secret)|two[-_]?factor|2fa|one[-_]?time|authentication|login|register|forget|reset[-_]?password|security)/.test(o+" "+t.toLowerCase()))},d=(e,t,n)=>{Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0})},h=(a,s="")=>{if(null===a||"object"!=typeof a&&"function"!=typeof a)return a;if(n.has(a))return"[Circular]";n.add(a);try{if("undefined"!=typeof FormData&&a instanceof FormData){let i=new FormData;return a.forEach((e,t)=>{var n=s?s+"."+t:String(t),e=u(t,s)?l:h(e,n);"undefined"!=typeof File&&e instanceof File?i.append(t,e,e.name):i.append(t,e)}),i}if("undefined"!=typeof URLSearchParams&&a instanceof URLSearchParams){let n=new URLSearchParams;return a.forEach((e,t)=>{n.append(t,u(t,s)?l:e)}),n}if("undefined"!=typeof File&&a instanceof File)return new File([a],a.name,{type:a.type,lastModified:a.lastModified});if("undefined"!=typeof Blob&&a instanceof Blob)return a.slice(0,a.size,a.type);if(a instanceof Date)return new Date(a.getTime());if(a instanceof RegExp)return new RegExp(a.source,a.flags);let o=Array.isArray(a)?new Array(a.length):{},r=null;var e=Object.getOwnPropertyDescriptor(a,"name");return e&&"value"in e&&"string"==typeof e.value&&(r=e.value),Object.keys(a).forEac
1h(e=>{var t,n=s?s+"."+e:e,i=Object.getOwnPropertyDescriptor(a,e);i&&"value"in i?(t="value"===e&&r&&u(r,s),d(o,e,u(e,s)||t?l:h(i.value,n))):d(o,e,c)}),o}catch(e){return c}finally{n.delete(a)}};return h(e)}post(i,e,o,r=null,a=null){let t={enable:!0,autoClose:!0},s=!1,l;"object"==typeof i?(e=i.hasOwnProperty("data")?i.data:{},o=i.hasOwnProperty("done")?i.done:null,r=i.hasOwnProperty("error")?i.error:null,a=i.hasOwnProperty("fail")?i.fail:null,t=i.hasOwnProperty("loader")?!1!==i.loader?Object.assign({},t,i.loader):{enable:!1,autoClose:!1}:t,s=!0===i._fundRetried,i=i.hasOwnProperty("url")?i.url:{}):"function"==typeof e&&(o=e),l={url:i,data:e,done:o,error:r,fail:a,loader:t,_fundRetried:!0},t.enable&&Loading.show(),util.debugRedacted("POST(↑):"+i,"#ff4f33",e,i,"request"),$.ajax({type:"post",url:i,data:e,success:(t,e,n)=>{Loading.hide();try{util.debugRedacted("POST(↓):"+i,"#0bbf4a",t,i,"response"),t&&42002===t.code&&!s?util.fundVerify(()=>util.post(l)):200!==t.code?"function"==typeof r?r(t):!1!==r&&message.error(t.msg):"function"==typeof o&&o(t)}catch(e){console.log(e),"function"==typeof r?r(t):!1!==r&&(util.stdout(`POST(${i18n("致命异常")}): ${i} | ${i18n("请将下面信息截图反馈给维护人员")}:
2`,"red",util.redactDebugValue(t,i,"response")),message.error("服务器数据返回错误,可通过F12查看浏览器错误并且反馈给维护人员"))}},error:(e,t,n)=>{Loading.hide(),"function"==typeof a&&a(e,t,n)}})}fundVerify(h){let p=e=>"function"==typeof i18n?i18n(e):e;if(!document.getElementById("fv-mask")){util._fundVerifyStyle();let t=document.createElement("div"),n=(t.id="fv-mask",t.className="fv-mask",t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-label",p("资金操作验证")),t.innerHTML='<div class="fv-card" role="document"><div class="fv-title"></div><input class="fv-input" type="text" inputmode="numeric" autocomplete="one-time-code" autocapitalize="off" autocorrect="off" spellcheck="false" maxlength="6"><div class="fv-err" aria-live="polite"></div><div class="fv-acts"><button type="button" class="fv-btn fv-btn--ghost fv-cancel"></button><button type="button" class="fv-btn fv-btn--primary fv-ok"></button></div></div>',document.body.appendChild(t),t.querySelector(".fv-card")),i=t.querySelector(".fv-input"),o=t.querySelector(".fv-err"),r=t.querySelector(".fv-ok"),a=t.querySelector(".fv-cancel"),s=(t.querySelector(".fv-title").textContent=p("资金操作验证"),i.placeholder=p("请输入验证器上的 6 位动态码"),r.textContent=p("验证"),a.textContent=p("取消"),!1),l=!1,c=e=>{l||(l=!0,t.classList.add("fv-out"),document.removeEventListener("keydown",f,!0),setTimeout(()=>{t.remove(),"function"==typeof e&&e()},180))},u=e=>{o.textContent=e||"",o.classList.toggle("is-show",!!e),n.classList.remove("fv-shake"),n.offsetWidth,n.classList.add("fv-shake")},d=()=>{var e;s||(0===(e=(i.value||"").replace(/\D/g,"")).length?(u(p("请输入验证器上的 6 位动态码")),i.focus()):(s=!0,r.classList.add("is-loading"),r.disabled=a.disabled=i.disabled=!0,util.post({url:"/user/api/security/fundVerify",data:{code:e},loader:!1,done:()=>c(()=>h&&h()),error:e=>{s=!1,r.classList.remove("is-loading"),r.disabled=a.disabled=i.disabled=!1,u(e&&e.msg?e.msg:p("验证码错误")),i.value="",i.focus()},fail:()=>{s=!1,r.classList.remove("is-loading"),r.disabled=a.disabled=i.disabled=!1,u(p("网络异常,请稍后重试"))}})))};function f(e){"Escape"===e.key?(e.preventDefault(),c()):"Enter"===e.key&&(e.preventDefault(),d())}i.addEventListener("input",()=>{i.value=i.value.replace(/\D/g,"").slice(0,6),o.classList.contains("is-show")&&u(""),6===i.value.length&&d()}),r.addEventListener("click",d),a.addEventListener("click",()=>c()),t.addEventListener("mousedown",e=>{e.target===t&&c()}),document.addEventListener("keydown",f,!0),requestAnimationFrame(()=>{t.classList.add("fv-in"),i.focus()})}}_fundVerifyStyle(){var e;document.getElementById("fv-style")||((e=document.createElement("style")).id="fv-style",e.textContent='.fv-mask{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(16,14,30,.32);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;transition:opacity .22s cubic-bezier(.22,1,.36,1);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,"PingFang SC","Microsoft YaHei",sans-serif}.fv-mask.fv-in{opacity:1}.fv-mask.fv-out{opacity:0}
2.fv-card{--fv-accent:var(--uc-primary,var(--md-primary,#6a5cff));--fv-tint:rgba(255,255,255,.62);--fv-fg:#14121f;--fv-fg-soft:rgba(20,18,31,.56);--fv-field:rgba(255,255,255,.5);--fv-field-line:rgba(20,18,31,.14);--fv-ghost:rgba(20,18,31,.06);--fv-rim:rgba(255,255,255,.9);position:relative;width:min(380px,100%);box-sizing:border-box;padding:26px 24px 22px;border-radius:26px;isolation:isolate;background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0) 52%),var(--fv-tint);-webkit-backdrop-filter:blur(34px) saturate(180%);backdrop-filter:blur(34px) saturate(180%);color:var(--fv-fg);box-shadow:0 30px 70px -24px rgba(16,14,40,.55),inset 0 1px 0 rgba(255,255,255,.6);transform:translateY(10px) scale(.96);opacity:0;transition:transform .32s cubic-bezier(.34,1.36,.64,1),opacity .22s cubic-bezier(.22,1,.36,1)}.fv-in .fv-card{transform:none;opacity:1}.fv-out .fv-card{transform:translateY(8px) scale(.98);opacity:0}.fv-card::before{content:"";position:absolute;inset:0;z-index:2;padding:1px;border-radius:inherit;pointer-events:none;background:linear-gradient(150deg,var(--fv-rim),rgba(255,255,255,0) 44%,rgba(255,255,255,0) 60%,var(--fv-rim));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);opacity:.7}.fv-title{text-align:center;font-size:19px;font-weight:700;letter-spacing:.02em;margin:0 0 18px}.fv-input{display:block;width:100%;box-sizing:border-box;height:52px;padding:0 16px;margin:0;border:0;border-radius:15px;outline:none;background:var(--fv-field);box-shadow:inset 0 0 0 1px var(--fv-field-line);color:var(--fv-fg);font-size:18px;letter-spacing:.32em;text-align:center;-webkit-appearance:none;appearance:none;transition:box-shadow .2s ease,background-color .2s ease}.fv-input::placeholder{color:var(--fv-fg-soft);letter-spacing:normal;font-size:15px}.fv-input:focus{background:rgba(255,255,255,.66);box-shadow:inset 0 0 0 1px var(--fv-field-line),0 0 0 3.5px color-mix(in srgb,var(--fv-accent) 32%,transparent)}.fv-err{max-height:0;overflow:hidden;opacity:0;color:#ff3b30;font-size:13px;text-align:center;transition:max-height .2s ease,opacity .2s ease,margin .2s ease}.fv-err.is-show{max-height:40px;opacity:1;margin-top:10px}.fv-acts{display:flex;gap:12px;margin-top:20px}.fv-btn{flex:1;height:46px;border:0;border-radius:14px;font-size:15px;font-weight:600;cursor:pointer;transition:transform .15s ease,filter .2s ease,background-color .2s ease;font-family:inherit}.fv-btn:active{transform:scale(.97)}.fv-btn:focus-visible{outline:2px solid var(--fv-accent);outline-offset:2px}.fv-btn--ghost{background:var(--fv-ghost);color:var(--fv-fg)}.fv-btn--ghost:hover{background:color-mix(in srgb,var(--fv-fg) 12%,transparent)}.fv-btn--primary{position:relative;background:var(--fv-accent);color:#fff;box-shadow:0 10px 22px -10px var(--fv-accent)}.fv-btn--primary:hover{filter:brightness(1.06)}.fv-btn--primary.is-loading{color:transparent;pointer-events:none}.fv-btn--primary.is-loading::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:fv-spin .7s linear infinite}@keyframes fv-spin{to{transform:rotate(360deg)}}@keyframes fv-shake{10%,90%{transform:translateX(-1px)}30%,70%{transform:translateX(-4px)}50%{transform:translateX(4px)}}.fv-card.fv-shake{animation:fv-shake .4s cubic-bezier(.36,.07,.19,.97)}@supports (corner-shape:squircle){.fv-card,.fv-card::before{corner-shape:squircle;border-radius:34px}.fv-input{corner-shape:squircle;border-radius:19px}.fv-btn{corner-shape:squircle;border-radius:18px}}@media (prefers-reduced-motion:reduce){.fv-mask,.fv-card,.fv-card.fv-shake{transition:none;animation:none}}@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fv-card{--fv-tint:rgba(30,30,38,.58);--fv-fg:#f5f5f7;--fv-fg-soft:rgba(235,235,245,.56);--fv-field:rgba(255,255,255,.08);--fv-field-line:rgba(255,255,255,.14);--fv-ghost:rgba(255,255,255,.1);--fv-rim:rgba(255,255,255,.3);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 52%),var(--fv-tint);box-shadow:0 30px 70px -24px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.16)}:root:not([data-theme="light"]) .fv-input:focus{background:rgba(255,255,255,.12)}}html[data-theme="dark"] .fv-card{--fv-tint:rgba(30,30,38,.58);--fv-fg:#f5f5f7;--fv-fg-soft:rgba(235,235,245,.56);--fv-field:rgba(255,255,255,.08);--fv-field-line:rgba(255,255,255,.14);--fv-ghost:rgba(255,255,255,.1);--fv-rim:rgba(255,255,255,.3);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0) 52%),var(--fv-tint);box-shadow:0 30px 70px -24px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.16)}html[data-theme="dark"] .fv-input:focus{background:rgba(255,255,255,.12)}',document.head.appendChild(e))}get(t,n=null,i=null){Loading.show(),util.debug("GET(↑):"+t,"#ff4f33"),$.get({url:t,success:e=>{util.debug("GET(↓):"+t,"#0bbf4a",e),Loading.hide(),200!==e.code?"function"==typeof i?i(e):message.error(e.msg):"function"==typeof n&&n(e.data)}})}encrypt(e,t){var n=CryptoJS.enc.Utf8.parse(t),e=CryptoJS.enc.Utf8.parse(e);
2return CryptoJS.AES.encrypt(e,n,{iv:CryptoJS.enc.Utf8.parse(t),mode:CryptoJS.mode.CBC}).toString()}decrypt(e,t){var n=CryptoJS.enc.Utf8.parse(t),e=CryptoJS.AES.decrypt(e,n,{iv:CryptoJS.enc.Utf8.parse(t),mode:CryptoJS.mode.CBC});return CryptoJS.enc.Utf8.stringify(e).toString()}arrayToObject(e,t=[]){let n={};t instanceof Set||new Set(Array.isArray(t)?t:[]);return e.forEach(e=>{var t;e.name.match(RegExp(/\[\]/))?(t=e.name.replace("[]",""),n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e.value)):n[e.name]=String(e.value??"")}),n}idObjToList(e=[]){let t=[];return e.forEach(e=>{t.push(e.id)}),t}paramsToJSONObject(e){var t,n={},i=e.slice(e.indexOf("?")+1).split("&");for(let e=0;e<i.length;e++)-1!==(t=i[e].split("="))[0].indexOf("[]")?(n.hasOwnProperty(t[0])||(n[t[0]]=[]),n[t[0]].push(t[1])):n[t[0]]=t[1];return n}generateRandStr(n=32){let a="abacdefghjklmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789",i=a.length-1,o="";for(let e=0,t;e<n;e++)r=function(e,t,n,i){let o=Math.floor(Math.random()*(t-e+1)+e),r=a.length-10;return o=0===n&&o>=r?i(e,t,n,i):o},s=e,t=r(0,i,s,r),o+=a[t];var r,s;return o}ksort(t){let n={},e=Object.keys(t);return e.sort(),e.forEach(e=>{n[e]=t[e]}),n}generateSignature(e,t){delete e.sign;let n="";for(var i in e=this.ksort(e))""===e[i]||void 0===e[i]||"object"==typeof e[i]||Number.isNaN(e[i])||(n+=i+"="+e[i]+"&");return n=n.slice(0,-1),CryptoJS.MD5(n+"&key="+t).toString()}md5(e){return CryptoJS.MD5(e).toString()}isPc(){var t=navigator.userAgent,n=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"];let i=!0;for(let e=0;e<n.length;e++)if(0<t.indexOf(n[e])){i=!1;break}return i}isIphone(){var e=navigator.userAgent,t=e.match(/(iPad).*OS\s([\d_]+)/i),t=!e.match(/(iPod).*OS\s([\d_]+)/i)&&!t&&e.match(/(iPhone\sOS)\s([\d_]+)/i);return Boolean(t)}isIpad(){var e=navigator.userAgent.match(/(iPad).*OS\s([\d_]+)/i);return Boolean(e)}isAndroid(){var e=navigator.userAgent.match(/(Android)\s+([\d.]+)/i);return Boolean(e)}isMobile(){return this.isAndroid()||this.isIphone()}isAlipay(){var e=navigator.userAgent.match(/(AlipayClient)/i);return Boolean(e)}isWx(){var e=navigator.userAgent.match(/(MicroMessenger)/i);return Boolean(e)}getDate(){var e=new Date;return e.getFullYear()+"-"+e.getMonth()+"-"+e.getDay()+" "+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()}debug(e,t,...n){"boolean"==typeof getVar("DEBUG")&&1==getVar("DEBUG")&&this.stdout(e,t,...n)}debugRedacted(e,t,n,i="",o="request"){"boolean"==typeof getVar("DEBUG")&&1==getVar("DEBUG")&&this.stdout(e,t,this.redactDebugValue(n,i,o))}stdout(e,t,...n){var i=new Date,i=i.getHours()+":"+i.getMinutes()+":"+i.getSeconds();console.log("%c["+i+"]-> %c"+e,"color: #519dfb;font-weight: bold;","color: "+t+"; font-weight: bold;",...n)}isObjectEmpty(e){return 0===Object.keys(e).length}countDown(e,t,n="重新发送",i="{$second}秒后重试"){let o=$(e),r;o.html(i.replace("{$second}",t)),o.attr("disabled",!0),r=setInterval(()=>{t--,o.html(i.replace("{$second}",t)),t<=0&&(o.html(n),o.attr("disabled",!1),clearInterval(r))},1e3)}bytesToSize(e){var t;return 0===e?"0 Byte":(t=parseInt(Math.floor(Math.log(e)/Math.log(1024))),Math.round(e/Math.pow(1024,t),2)+["Bytes","KB","MB","GB","TB"][t])}formatTime(e){var e=Math.floor(e/1e3),t=Math.floor(e/60),n=Math.floor(t/60);let i="";return 0<n&&(i+=n+"小时"),0<t&&(i+=t%60+"分钟"),0<=e&&(i+=e%60+"秒"),i.trim()}getAbstractTimeout(e){var e=new Date(e).getTime()/1e3,t=parseInt((new Date).getTime()/1e3),e=parseInt(e)-t,t=Math.floor(e/86400),n=Math.floor((e-24*t*3600)/3600),i=Math.floor((e-24*t*3600-3600*n)/60);return{expire:e,day:t,hour:n,minute:i,second:e-24*t*3600-3600*n-60*i}}getUploadProgress(e,t,n){var t=(new Date).getTime()-t,n=n*e,i=this.bytesToSize(n),o=n/(t/1e3);return{speed:this.bytesToSize(o)+"/s",speedBytes:o,size:i+"/"+this.bytesToSize(e),bytes:n,milliseconds:t,time:this.formatTime(t)}}updateProgress(e,t){e.attr("data-percentage",t),e.css("background",`linear-gradient(to right,  #68ff73 ${t}%, #f3f3f3 ${t}%)`)}objectToQueryString(t){return Object.keys(t).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(t[e])).join("&")}require(t,n,i="/assets/common/js/component/"){let o=(t="string"==typeof t?[t]:t).length,r=0;for(let e=0;e<o;e++)t[e]=i+t[e]+".js";
2t.forEach(e=>{var t=document.createElement("script");t.src=e,t.onload=()=>{++r===o&&n()},t.onerror=e=>{console.error("Script load error: "+e)},document.body.appendChild(t)})}loadSound(e,i=null){let t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){let n=new AudioContext;n.decodeAudioData(t.response,function(e){var t=n.createBufferSource();t.buffer=e,t.connect(n.destination),t.start(0),"function"==typeof i&&i()},function(e){console.info("错误")})},t.send()}appendParamToUrl(e,t){return e.includes("?")?e+"&"+t:e+"?"+t}plainText(e){return"string"!=typeof e?e:e.replace(/<[^>]*>/g,"").trim()}setCookie(e,t){var n=new Date;n.setTime(n.getTime()+63072e7),document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(t)};expires=${n.toUTCString()};path=/`}deleteNodeById(t,n){if(n)for(let e=0;e<t.length;e++){var i=t[e];if(i.id===n)return t.splice(e,1),t;i.children&&0<i.children.length&&(i.children=this.deleteNodeById(i.children,n))}return t}copyTextToClipboard(e,t=null,n=null){if(navigator.clipboard)navigator.clipboard.writeText(e).then(function(){"function"==typeof t&&t()}).catch(function(e){"function"==typeof n&&n()});else{var i=$("<textarea>");$("body").append(i),i.val(e).select();try{document.execCommand("copy")?"function"==typeof t&&t():"function"==typeof n&&n()}catch(e){"function"==typeof n&&n()}i.remove()}}loadScripts(e,t=null){e=(e="string"==typeof e?[e]:e).map(i=>new Promise((e,t)=>{var n=document.createElement("script");n.type="text/javascript",n.onload=()=>e(i),n.onerror=()=>t("Script load error: "+i),n.src=i,document.getElementsByTagName("body")[0].appendChild(n)}));Promise.all(e).then(()=>{"function"==typeof t&&t()}).catch(e=>{console.error(e)})}bindButtonUpload(t,n,i){$(t).change(function(){var e=new FormData;e.append("file",$(t)[0].files[0]),Loading.show(),$.ajax({type:"POST",url:n,data:e,contentType:!1,processData:!1,dataType:"json",success:function(e){Loading.hide(),200==e.code?"function"==typeof i&&i(e.data):layer.msg(e.msg)},error:function(e){Loading.hide(),layer.msg(i18n("网络错误"))}})})}async timer(e,t,n=!1){if(n&&!await e())return;setTimeout(async()=>{await e()&&await this.timer(e,t,!1)},t)}getDomHeight(e){return e[0]&&(e=(e=e[0].getAttribute("style"))&&e.match(/height\s*:\s*([^;]+)(;|$)/))?e[1].trim():""}openCheckoutWindowUrl(e){1!=getVar("PAY_CONFIG_CHECKOUT_COUNTER")?window.location.href=e:layer.open({type:2,title:util.icon("icon-shouyintai-copy")+" 收银台",shadeClose:!1,maxmin:util.isPc(),area:util.isPc()?["80%","80%"]:["100%","100%"],content:e})}onScrollToBottom(t){window.addEventListener("scroll",function(){document.documentElement.scrollTop+window.innerHeight>=document.documentElement.scrollHeight&&t()});let n=0;window.addEventListener("touchstart",function(e){n=e.touches[0].pageY}),window.addEventListener("touchmove",function(e){n<e.touches[0].pageY&&document.documentElement.scrollTop+window.innerHeight>=document.documentElement.scrollHeight&&t()})}syncOrder(e,n){util.timer(()=>new Promise(t=>{util.post({url:e,loader:!1,data:{trade_no:n},done:e=>{if(2===e.data.status){if(new Date>new Date(e.data.timeout))return message.error("订单支付超时"),window.location.reload(),void t(!1);message.alert("支付已完成,已经授权成功!","success"),window.location.reload(),t(!1)}else if(3===e.data.status)return window.location.reload(),void t(!1);t(!0)},error:()=>{window.location.reload(),t(!1)},fail:()=>{window.location.reload(),t(!1)}})}),2e3)}getFormData(e){e=new FormData(e instanceof HTMLFormElement?e:document.querySelector(e));return Object.fromEntries(e.entries())}},format=((f=>{function t(e){function t(){n.creat()}var n=this;n.index=++y.index,n.config.maxWidth=m(c).width()-30,n.config=m.extend({},n.config,u.config,e),document.body?t():setTimeout(function(){t()},30)}function g(e){return i.skin?" "+i.skin+" "+i.skin+"-"+e:""}var m,c,e,n=f.layui&&layui.define,u={getPath:(e=document.currentScript?document.currentScript.src:(()=>{for(var e,t=document.scripts,n=t.length-1,i=n;0<i;i--)if("interactive"===t[i].readyState){e=t[i].src;break}return e||t[n].src})(),(f.LAYUI_GLOBAL||{}).layer_dir||e.substring(0,e.lastIndexOf("/")+1)),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"],getStyle:function(e,t){e=e.currentStyle||f.getComputedStyle(e,null);return e[e.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,t,n){}}
2,y={v:"3.5.1",ie:(e=navigator.userAgent.toLowerCase(),!!(f.ActiveXObject||"ActiveXObject"in f)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")),index:f.layer&&f.layer.v?1e5:0,path:u.getPath,config:function(e,t){return y.cache=u.config=m.extend({},u.config,e=e||{}),y.path=u.config.path||y.path,"string"==typeof e.extend&&(e.extend=[e.extend]),u.config.path&&y.ready(),e.extend&&(n?layui.addcss("modules/layer/"+e.extend):u.link("theme/"+e.extend)),this},ready:function(e){var t=(n?"modules/layer/":"layer/theme/")+"default/layer.css?v="+y.v;return n?layui.addcss(t,e,"layer"):u.link(t,e,"layer"),this},alert:function(e,t,n){var i="function"==typeof t;return y.open(m.extend({content:e,yes:n=i?t:n},i?{}:t))},confirm:function(e,t,n,i){var o="function"==typeof t;return o&&(i=n,n=t),y.open(m.extend({content:e,btn:u.btn,yes:n,btn2:i},o?{}:t))},msg:function(e,t,n){var i="function"==typeof t,o=u.config.skin,o=(o?o+" "+o+"-msg":"")||"layui-layer-msg",r=d.anim.length-1;return i&&(n=t),y.open(m.extend({content:e,time:3e3,shade:!1,skin:o,title:!1,closeBtn:!1,btn:!1,resize:!1,end:n},i&&!u.config.skin?{skin:o+" layui-layer-hui",anim:r}:(-1!==(t=t||{}).icon&&(void 0!==t.icon||u.config.skin)||(t.skin=o+" "+(t.skin||"layui-layer-hui")),t)))},load:function(e,t){return y.open(m.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return y.open(m.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:260},n))}},d=(t.pt=t.prototype,["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"]),i=(d.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],d.SHADE="layui-layer-shade",d.MOVE="layui-layer-move",t.pt.config={type:0,shade:.3,fixed:!0,move:d[1],title:"&#x4FE1;&#x606F;",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,minStack:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},t.pt.vessel=function(e,t){var n=this.index,i=this.config,o=i.zIndex+n,r="object"==typeof i.title,a=i.maxmin&&(1===i.type||2===i.type),r=i.title?'<div class="layui-layer-title" style="'+(r?i.title[1]:"")+'">'+(r?i.title[0]:i.title)+"</div>":"";return i.zIndex=o,t([i.shade?'<div class="'+d.SHADE+'" id="'+d.SHADE+n+'" times="'+n+'" style="z-index:'+(o-1)+'; "></div>':"",'<div class="'+d[0]+" layui-layer-"+u.type[i.type]+(0!=i.type&&2!=i.type||i.shade?"":" layui-layer-border")+" "+(i.skin||"")+'" id="'+d[0]+n+'" type="'+u.type[i.type]+'" times="'+n+'" showtime="'+i.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+o+"; width:"+i.area[0]+";height:"+i.area[1]+";position:"+(i.fixed?"fixed;":"absolute;")+'">'+(e&&2!=i.type?"":r)+'<div id="'+(i.id||"")+'" class="layui-layer-content'+(0==i.type&&-1!==i.icon?" layui-layer-padding":"")+(3==i.type?" layui-layer-loading"+i.icon:"")+'">'+(0==i.type&&-1!==i.icon?'<i class="layui-layer-ico layui-layer-ico'+i.icon+'"></i>':"")+((1!=i.type||!e)&&i.content||"")+'</div><span class="layui-layer-setwin">'+(t=a?'<a class="layui-layer-min" href="#" data-acg-noop><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="#" data-acg-noop></a>':"",i.closeBtn&&(t+='<a class="layui-layer-ico '+d[7]+" "+d[7]+(i.title?i.closeBtn:4==i.type?"1":"2")+'" href="#" data-acg-noop></a>'),t)+"</span>"+(i.btn?(()=>{var e="";"string"==typeof i.btn&&(i.btn=[i.btn]);for(var t=0,n=i.btn.length;t<n;t++)e+='<a class="'+d[6]+t+'">'+i.btn[t]+"</a>";return'<div class="'+d[6]+" layui-layer-btn-"+(i.btnAlign||"")+'">'+e+"</div>"})():"")+(i.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],r,m('<div class="'+d.MOVE+'" id="'+d.MOVE+'"></div>')),this},t.pt.creat=function(){var e,i=this,o=i.config,r=i.index,a="object"==typeof(l=o.content),s=m("body");if(!o.id||!m("#"+o.id)[0]){switch("string"==typeof o.area&&(o.area="auto"===o.area?["",""]:[o.area,""]),o.shift&&(o.anim=o.shift),6==y.ie&&(o.fixed=!1),o.type){case 0:o.btn="btn"in o?o.btn:u.btn[0],y.closeAll("dialog");break;case 2:var l=o.content=a?o.content:[o.content||"","auto"];o.content='<iframe scrolling="'+(o.content[1]||"auto")+'" allowtransparency="true" id="'+d[4]+r+'" name="'+d[4]+r+'" data-acg-loaded-clear="" class="layui-layer-load" frameborder="0" src="'+o.content[0]+'"></iframe>';break;case 3:delete o.title,delete o.closeBtn,-1===o.icon&&o.icon,y.closeAll("loading");break;case 4:a||(o.content=[o.content,"body"]),o.follow=o.content[1],o.content=o.content[0]+'<i class="layui-layer-TipsG"></i>',delete o.title,o.tips="object"==typeof o.tips?o.tips:[o.tips,!0],o.tipsMore||y.closeAll("tips")}i.vessel(a,function(e,t,n){s.append(e[0]),a?2==o.type||4==o.type?m("body").append(e[1]):l.parents("."+d[0])[0]||(l.data("display",l.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),m("#"+d[0]+r).find("."+d[5]).before(t)):s.append(e[1]),m("#"+d.MOVE)[0]||s.append(u.moveElem=n),i.layero=m("#"+d[0]+r),i.shadeo=m("#"+d.SHADE+r),o.scrollbar||d.html.css("overflow","hidden").attr("layer-full",r)}).auto(r),i.shadeo.css({"background-color":o.shade[1]||"#000",opacity:o.shade[0]||o.shade}),2==o.type&&6==y.ie&&i.layero.find("iframe").attr("src",l[0]),4==o.type?i.tips():(i.offset(),parseInt(u.getStyle(document.getElementById(d.MOVE),"z-index"))||(i.layero.css("visibility","hidden"),y.ready(function(){i.offset(),i.layero.css("visibility","visible")}))),o.fixed&&c.on("resize",function(){i.offset(),(/^\d+%$/.test(o.area[0])||/^\d+%$/.test(o.area[1]))&&i.auto(r),4==o.type&&i.tips()}),o.time<=0||setTimeout(function(){y.close(i.index)},o.time),i.move().callback(),d.anim[o.anim]&&(e="layer-anim "+d.anim[o.anim],i.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){m(this).removeClass(e)})),o.isOutAnim&&i.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){function t(e){(e=i.find(e)).height(o[1]-r-a-2*(0|parseFloat(e.css("padding-top"))))}var n=this.config,i=m("#"+d[0]+e),o=(""===n.area[0]&&0<n.maxWidth&&(y.ie&&y.ie<8&&n.btn&&i.width(i.innerWidth()),i.outerWidth()>n.maxWidth)&&i.width(n.maxWidth),[i.innerWidth(),i.innerHeight()]),r
2=i.find(d[1]).outerHeight()||0,a=i.find("."+d[6]).outerHeight()||0;return 2===n.type?t("iframe"):""===n.area[1]?0<n.maxHeight&&i.outerHeight()>n.maxHeight?(o[1]=n.maxHeight,t("."+d[5])):n.fixed&&o[1]>=c.height()&&(o[1]=c.height(),t("."+d[5])):t("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,n=e.layero,i=[n.outerWidth(),n.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(c.height()-i[1])/2,e.offsetLeft=(c.width()-i[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=c.width()-i[0]:"b"===t.offset?e.offsetTop=c.height()-i[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=c.height()-i[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=c.width()-i[0]):"rb"===t.offset?(e.offsetTop=c.height()-i[1],e.offsetLeft=c.width()-i[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?c.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?c.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=c.scrollTop(),e.offsetLeft+=c.scrollLeft()),n.attr("minLeft")&&(e.offsetTop=c.height()-(n.find(d[1]).outerHeight()||0),e.offsetLeft=n.css("left")),n.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,n=[t.outerWidth(),t.outerHeight()],i=m(e.follow),o={width:(i=i[0]?i:m("body")).outerWidth(),height:i.outerHeight(),top:i.offset().top,left:i.offset().left},r=t.find(".layui-layer-TipsG"),i=e.tips[0];e.tips[1]||r.remove(),o.autoLeft=function(){0<o.left+n[0]-c.width()?(o.tipLeft=o.left+o.width-n[0],r.css({right:12,left:"auto"})):o.tipLeft=o.left},o.where=[function(){o.autoLeft(),o.tipTop=o.top-n[1]-10,r.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",e.tips[1])},function(){o.tipLeft=o.left+o.width+10,o.tipTop=o.top,r.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",e.tips[1])},function(){o.autoLeft(),o.tipTop=o.top+o.height+10,r.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",e.tips[1])},function(){o.tipLeft=o.left-n[0]-10,o.tipTop=o.top,r.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",e.tips[1])}],o.where[i-1](),1===i?o.top-(c.scrollTop()+n[1]+16)<0&&o.where[2]():2===i?0<c.width()-(o.left+o.width+n[0]+16)||o.where[3]():3===i?0<o.top-c.scrollTop()+o.height+n[1]+16-c.height()&&o.where[0]():4===i&&0<n[0]+16-o.left&&o.where[1](),t.find("."+d[5]).css({"background-color":e.tips[1],"padding-right":e.closeBtn?"30px":""}),t.css({left:o.tipLeft-(e.fixed?c.scrollLeft():0),top:o.tipTop-(e.fixed?c.scrollTop():0)})},t.pt.move=function(){var r=this,a=r.config,e=m(document),s=r.layero,t=s.find(a.move),n=s.find(".layui-layer-resize"),l={};return a.move&&t.css("cursor","move"),t.on("mousedown",function(e){e.preventDefault(),a.move&&(l.moveStart=!0,l.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],u.moveElem.css("cursor","move").show())}),n.on("mousedown",function(e){e.preventDefault(),l.resizeStart=!0,l.offset=[e.clientX,e.clientY],l.area=[s.outerWidth(),s.outerHeight()],u.moveElem.css("cursor","se-resize").show()}),e.on("mousemove",function(e){var t,n,i,o;l.moveStart&&(i=e.clientX-l.offset[0],o=e.clientY-l.offset[1],t="fixed"===s.css("position"),e.preventDefault(),l.stX=t?0:c.scrollLeft(),l.stY=t?0:c.scrollTop(),a.moveOut||(t=c.width()-s.outerWidth()+l.stX,n=c.height()-s.outerHeight()+l.stY,t<(i=i<l.stX?l.stX:i)&&(i=t),n<(o=o<l.stY?l.stY:o)&&(o=n)),s.css({left:i,top:o})),a.resize&&l.resizeStart&&(i=e.clientX-l.offset[0],o=e.clientY-l.offset[1],e.preventDefault(),y.style(r.index,{width:l.area[0]+i,height:l.area[1]+o}),l.isResize=!0,a.resizing)&&a.resizing(s)}).on("mouseup",function(e){l.moveStart&&(delete l.moveStart,u.moveElem.hide(),a.moveEnd)&&a.moveEnd(s),l.resizeStart&&(delete l.resizeStart,u.moveElem.hide())}),r},t.pt.callback=function(){var t=this,n=t.layero,i=t.config;t.openLayer(),i.success&&(2==i.type?n.find("iframe").on("load",function(){i.success(n,t.index)}):i.success(n,t.index)),6==y.ie&&t.IE6(n),n.find("."+d[6]).children("a").on("click",function(){var e=m(this).index();0===e?i.yes?i.yes(t.index,n):i.btn1?i.btn1(t.index,n):y.close(t.index):!1!==(i["btn"+(e+1)]&&i["btn"+(e+1)](t.index,n))&&y.close(t.index)}),n.find("."+d[7]).on("click",function(){!1!==(i.cancel&&i.cancel(t.index,n))&&y.close(t.index)}),i.shadeClose&&t.shadeo.on("click",function(){y.close(t.index)}),n.find(".layui-layer-min").on("click",function(){!1!==(i.min&&i.min(n,t.index))&&y.min(t.index,i)}),n.find(".layui-layer-max").on("click",function(){m(this).hasClass("layui-layer-maxmin")?(y.restore(t.index),i.restore&&i.restore(n,t.index)):(y.full(t.index,i),setTimeout(function(){i.full&&i.full(n,t.index)},100))}),i.end&&(u.end[t.index]=i.end)},u.reselect=function(){m.each(m("select"),function(e,t){var n=m(this);n.parents("."+d[0])[0]||1==n.attr("layer")&&m("."+d[0]).length<1&&n.removeAttr("layer").show()})},t.pt.IE6=function(e){m("select").each(function(e,t){var n=m(this);n.parents("."+d[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide()})},t.pt.openLayer=function(){y.zIndex=this.config.zIndex,y.setTop=function(e){return y.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",function(){y.zIndex++,e.css("z-index",y.zIndex+1)}),y.zIndex}},u.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},u.rescollbar=function(e){d.html.attr("layer-full")==e&&(d.html[0].style.removeProperty?d.html[0].style.removeProperty("overflow"):d.html[0].style.removeAttribute("overflow"),d.html.removeAttr("layer-full"))},(f.layer=y).getChildFrame=function(e,t){return t=t||m("."+d[4]).attr("times"),m("#"+d[0]+t).find("iframe").contents().find(e)},y.getFrameIndex=function(e){return m("#"+e).parents("."+d[4]).attr("times")},y.iframeAuto=function(e){var t,n,i;e&&(t=y.getChildFrame("html",e).outerHeight(),n=(e=m("#"+d[0]+e)).find(d[1]).outerHeight()||0,i=e.find("."+d[6]).outerHeight()||0,e.css({height:t+n+i}),e.find("iframe").css({height:t}))},y.iframeSrc=function(e,t){m("#"+d[0]+e).find("iframe").attr("src",t)},y.style=function(e,t,n){var e=m("#"+d[0]+e),i=e.find(".layui-layer-content"),o=e.attr("type"),r=e.find(d[1]).outerHeight()||0,a=e.find("."+d[6]).outerHeight()||0;e.attr("minLeft"),o!==u.type[3]&&o!==u.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-r-a<=64&&(t.height=64+r+a)),e.css(t),a=e.find("."+d[6]).outerHeight(),o===u.type[2]?e.find("iframe").css({height:parseFloat(t.height)-r-a}):i.css({height:parseFloat(t.height)-r-a-parseFloat(i.css("padding-top"))-parseFloat(i.css("padding-bottom"))}))},y.min=function(e,t){t=t||{};var n=m("#"+d[0]+e),i=m("#"+d.SHADE+e),o=n.find(d[1]).outerHeight()||0,r=n.attr("minLeft")||181*u.minIndex+"px",a=n.css("position"),s={width:180,height:o,position:"fixed",overflow:"hidden"};u.record(n),u.minLeft[0]&&(r=u.minLeft[0],u.minLeft.shift()),t.minStack&&(s.left
2=r,s.top=c.height()-o,n.attr("minLeft")||u.minIndex++,n.attr("minLeft",r)),n.attr("position",a),y.style(e,s,!0),n.find(".layui-layer-min").hide(),"page"===n.attr("type")&&n.find(d[4]).hide(),u.rescollbar(e),i.hide()},y.restore=function(e){var t=m("#"+d[0]+e),n=m("#"+d.SHADE+e),i=t.attr("area").split(",");t.attr("type"),y.style(e,{width:parseFloat(i[0]),height:parseFloat(i[1]),top:parseFloat(i[2]),left:parseFloat(i[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(d[4]).show(),u.rescollbar(e),n.show()},y.full=function(t){var n=m("#"+d[0]+t);u.record(n),d.html.attr("layer-full")||d.html.css("overflow","hidden").attr("layer-full",t),clearTimeout(void 0),setTimeout(function(){var e="fixed"===n.css("position");y.style(t,{top:e?0:c.scrollTop(),left:e?0:c.scrollLeft(),width:c.width(),height:c.height()},!0),n.find(".layui-layer-min").hide()},100)},y.title=function(e,t){m("#"+d[0]+(t||y.index)).find(d[1]).html(e)},y.close=function(i,o){var r,e,a=m("#"+d[0]+i),s=a.attr("type");a[0]&&(r="layui-layer-wrap",e=function(){if(s===u.type[1]&&"object"===a.attr("conType")){a.children(":not(."+d[5]+")").remove();for(var e=a.find("."+r),t=0;t<2;t++)e.unwrap();e.css("display",e.data("display")).removeClass(r)}else{if(s===u.type[2])try{var n=m("#"+d[4]+i)[0];n.contentWindow.document.write(""),n.contentWindow.close(),a.find("."+d[5])[0].removeChild(n)}catch(e){}a[0].innerHTML="",a.remove()}"function"==typeof u.end[i]&&u.end[i](),delete u.end[i],"function"==typeof o&&o()},a.data("isOutAnim")&&a.addClass("layer-anim layer-anim-close"),m("#layui-layer-moves, #"+d.SHADE+i).remove(),6==y.ie&&u.reselect(),u.rescollbar(i),a.attr("minLeft")&&(u.minIndex--,u.minLeft.push(a.attr("minLeft"))),y.ie&&y.ie<10||!a.data("isOutAnim")?e():setTimeout(function(){e()},200))},y.closeAll=function(i,o){"function"==typeof i&&(o=i,i=null);var r=m("."+d[0]);m.each(r,function(e){var t=m(this),n=i?t.attr("type")===i:1;n&&y.close(t.attr("times"),e===r.length-1?o:null)}),0===r.length&&"function"==typeof o&&o()},y.cache||{});y.prompt=function(n,i){var e="";"function"==typeof(n=n||{})&&(i=n),n.area&&(e='style="width: '+(t=n.area)[0]+"; height: "+t[1]+';"',delete n.area);var o,t=2==n.formType?'<textarea class="layui-layer-input"'+e+"></textarea>":'<input type="'+(1==n.formType?"password":"text")+'" class="layui-layer-input">',r=n.success;return delete n.success,y.open(m.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:t,skin:"layui-layer-prompt"+g("prompt"),maxWidth:c.width(),success:function(e){(o=e.find(".layui-layer-input")).val(n.value||"").focus(),"function"==typeof r&&r(e)},resize:!1,yes:function(e){var t=o.val();""===t?o.focus():t.length>(n.maxlength||500)?y.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(n.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",o,{tips:1}):i&&i(t,e,o)}},n))},y.tab=function(i){var o=(i=i||{}).tab||{},r="layui-this",a=i.success;return delete i.success,y.open(m.extend({type:1,skin:"layui-layer-tab"+g("tab"),resize:!1,title:(()=>{var e=o.length,t=1,n="";if(0<e)for(n='<span class="'+r+'">'+o[0].title+"</span>";t<e;t++)n+="<span>"+o[t].title+"</span>";return n})(),content:'<ul class="layui-layer-tabmain">'+(()=>{var e=o.length,t=1,n="";if(0<e)for(n='<li class="layui-layer-tabli '+r+'">'+(o[0].content||"no content")+"</li>";t<e;t++)n+='<li class="layui-layer-tabli">'+(o[t].content||"no  content")+"</li>";return n})()+"</ul>",success:function(e){var t=e.find(".layui-layer-title").children(),n=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var e=m(this),t=e.index();e.addClass(r).siblings().removeClass(r),n.eq(t).show().siblings().hide(),"function"==typeof i.change&&i.change(t)}),"function"==typeof a&&a(e)}},i))},y.photos=function(n,e,i){var t,o,r,a={};if((n=n||{}).photos){var s=!("string"==typeof n.photos||n.photos instanceof m),l=s?n.photos:{},c=l.data||[],u=l.start||0,d=(a.imgIndex=1+(0|u),n.img=n.img||"img",n.success);
2if(delete n.success,s){if(0===c.length)return y.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;")}else{var h=m(n.photos),p=function(){c=[],h.find(n.img).each(function(e){var t=m(this);t.attr("layer-index",e),c.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(p(),0===c.length)return;if(e||h.on("click",n.img,function(){p();var e=m(this).attr("layer-index");y.photos(m.extend(n,{photos:{start:e,data:c,tab:n.tab},full:n.full}),!0)}),!e)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=c.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>c.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){var t;a.end||(t=e.keyCode,e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&y.close(a.index))},a.tabimg=function(e){if(!(c.length<=1))return l.start=a.imgIndex-1,y.close(a.index),y.photos(n,!0,e)},a.event=function(){a.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),a.imgprev(!0)}),a.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),a.imgnext(!0)}),m(document).on("keyup",a.keyup)},a.loadi=y.load(1,{shade:!("shade"in n)&&.9,scrollbar:!1}),s=c[u].src,t=function(e){var t;y.close(a.loadi),i&&(n.anim=-1),a.index=y.open(m.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[m(f).width()-100,m(f).height()-100],!n.full&&(t[0]<e[0]||t[1]<e[1])&&((t=[e[0]/t[0],e[1]/t[1]])[1]<t[0]?(e[0]=e[0]/t[0],e[1]=e[1]/t[0]):t[0]<t[1]&&(e[0]=e[0]/t[1],e[1]=e[1]/t[1])),[e[0]+"px",e[1]+"px"]),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,anim:5,isOutAnim:!1,skin:"layui-layer-photos"+g("photos"),content:'<div class="layui-layer-phimg"><img src="'+c[u].src+'" alt="'+(c[u].alt||"")+'" layer-pid="'+c[u].pid+'">'+(1<c.length?'<div class="layui-layer-imgsee"><span class="layui-layer-imguide"><a href="#" data-acg-noop class="layui-layer-iconext layui-layer-imgprev"></a><a href="#" data-acg-noop class="layui-layer-iconext layui-layer-imgnext"></a></span><div class="layui-layer-imgbar" style="display:'+(i?"block":"")+'"><span class="layui-layer-imgtit"><a href="#" data-acg-noop>'+(c[u].alt||"")+"</a><em>"+a.imgIndex+" / "+c.length+"</em></span></div></div>":"")+"</div>",success:function(e,t){a.bigimg=e.find(".layui-layer-phimg"),a.imgsee=e.find(".layui-layer-imgbar"),a.event(e),n.tab&&n.tab(c[u],e),"function"==typeof d&&d(e)},end:function(){a.end=!0,m(document).off("keyup",a.keyup)}},n))},o=function(){y.close(a.loadi),y.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3e4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){1<c.length&&a.imgnext(!0,!0)}})},(r=new Image).src=s,r.complete?t(r):(r.onload=function(){r.onload=null,t(r)},r.onerror=function(e){r.onerror=null,o(e)})}},u.run=function(e){c=(m=e)(f),d.html=m("html"),y.open=function(e){return new t(e).index}},f.layui&&layui.define?(y.ready(),layui.define("jquery",function(e){y.path=layui.cache.dir,u.run(layui.$),e("layer",f.layer=y)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return u.run(f.jQuery),y}):(y.ready(),u.run(f.jQuery))})(window),(p=>{function e(e,t,n){return n=l(t,n),this.on("click.pjax",e,function(e){var t=n;t.container||((t=p.extend({},n)).container=p(this).attr("data-pjax")),i(e,t)})}function i(e,t,n){n=l(t,n);var t=e.currentTarget,i=p(t);if("A"!==t.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";1<e.which||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||location.protocol!==t.protocol||location.hostname!==t.hostname||-1<t.href.indexOf("#")&&s(t)==s(location)||e.isDefaultPrevented()||(t={url:t.href,container:i.attr("data-pjax"),target:t},t=p.extend({},t,n),n=p.Event("pjax:click"),i.trigger(n,[t]),n.isDefaultPrevented())||(f(t),e.preventDefault(),i.trigger("pjax:clicked",[t]))}function t(e,t,n){n=l(t,n);var t=e.currentTarget,i=p(t);if("FORM"!==t.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var o={type:(i.attr("method")||"GET").toUpperCase(),url:i.attr("action"),container:i.attr("data-pjax"),target:t};if("GET"!==o.type&&void 0!==window.FormData)o.data=new FormData(t),o.processData=!1,o.contentType=!1;else{if(i.find(":file").length)return;o.data=i.serializeArray()}f(p.extend({},o,n)),e.preventDefault()}function f(c){function u(e,t,n){(n=n||{}).relatedTarget=c.target;e=p.Event(e,n);return h.trigger(e,t),!e.isDefaultPrevented()}c=p.extend(!0,{},p.ajaxSettings,f.defaults,c),p.isFunction(c.url)&&(c.url=c.url());var d=b(c.url).hash,e=p.type(c.container);if("string"!==e)throw"expected string value for 'container' option; got "+e;var n,h=c.context=p(c.container);if(!h.length)throw"the container selector '"+c.container+"' did not match anything";c.data||(c.data={}),p.isArray(c.data)?c.data.push({name:"_pjax",value:c.container}):c.data._pjax=c.container,c.beforeSend=function(e,t){if("GET"!==t.type&&(t.timeout=0),e.setRequestHeader("X-PJAX","true"),e.setRequestHeader("X-PJAX-Container",c.container),!u("pjax:beforeSend",[e,t]))return!1;0<t.timeout&&(n=setTimeout(function(){u("pjax:timeout",[e,c])&&e.abort("timeout")},t.timeout),t.timeout=0);t=b(t.url);d&&(t.hash=d),c.requestUrl=a(t)},c.complete=function(e,t){n&&clearTimeout(n),u("pjax:complete",[e,t,c]),u("pjax:end",[e,c])},c.error=function(e,t,n){var i=w("",e,c),e=u("pjax:error",[e,t,n,c]);"GET"==c.type&&"abort"!==t&&e&&g(i.url)},c.success=function(e,t,n){var i=f.state,o="function"==typeof p.pjax.defaults.version?p.pjax.defaults.version():p.pjax.defaults.version,r=n.getResponseHeader("X-PJAX-Version"),a=w(e,n,c),s=b(a.url);if(d&&(s.hash=d,a.url=s.href),o&&r&&o!==r)g(a.url);else if(a.contents){if(f.state={id:c.id||y(),url:a.url,title:a.title,container:c.container,fragment:c.fragment,timeout:c.timeout},(c.push||c.replace)&&window.history.replaceState(f.state,a.title,a.url),p.contains(h,document.activeElement))try{document.activeElement.blur()}catch(e){}a.title&&(document.title=a.title),u("pjax:beforeReplace",[a.contents,c],{state:f.state,previousState:i}),h.html(a.contents);var l,s=h.find("input[autofocus], textarea[autofocus]").last()[0],o=(s&&document.activeElement!==s&&s.focus(),a.scripts),r=(o&&(l=p("script[src]"),o.each(function(){var e,t,n=this.src;l.filter(function(){return this.src===n}).length||(e=document.createElement("script"),(t=p(this).attr("type"))&&(e.type=t),e.src=p(this).attr("src"),document.head.appendChild(e))})),c.scrollTo);"number"==typeof(r=d&&(i=decodeURIComponent(d.slice(1)),s=document.getElementById(i)||document.getElementsByName(i)[0])?p(s).offset().top:r)&&p(window).scrollTop(r),u("pjax:success",[e,t,n,c])}else g(a.url)},f.state||(f.state={id:y(),url:window.location.href,title:document.title,container:c.container,fragment:c.fragment,timeout:c.timeout},window.history.replaceState(f.state,document.title)),m(f.xhr),f.options=c;var t,i,e=f.xhr=p.ajax(c);return 0<e.readyState&&(c.push&&!c.replace&&(t=f.state.id,i=[c.container,v(h)],S[t]=i,T.push(t),x(E,0),x(T,f.defaults.maxCacheLength),window.history.pushState(null,"",c.requestUrl)),u("pjax:start",[e,c]),u("pjax:send",[e,c])),f.xhr}function n(e,t){var n={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return f(p.extend(n,l(e,t)))}function g(e){window.history.replaceState(null,"",f.state.url),window.location.replace(e)}function o(e){C||m(f.xhr);var t,n,i=f.state,e=e.state;if(e&&e.container){if(C&&k==e.url)return;if(i){if(i.id===e.id)return;t=i.id<e.id?"forward":"back"}var o,r,a,s=S[e.id]||[],l=s[0]||e.container,c=p(l),s=s[1];c.length?(i&&(o=t,a=i.id,r=[l,v(c)],S[a]=r,r="forward"===o?(n=T,E):(n=E,T),n.push(a),(a=r.pop())&&delete S[a],x(n,f.defaults.maxCacheLength)),o=p.Event("pjax:popstate",{state:e,direction:t}),c.trigger(o),r={id:e.id,url:e.url,container:l,push:!1,fragment:e.fragment,timeout:e.timeout,scrollTo:!1},s?(c.trigger("pjax:start",[null,r]),(f.state=e).title&&(document.title=e.title),a=p.Event("pjax:beforeReplace",{state:e,previousState:i}),c.trigger(a,[s,r]),c.html(s),c.trigger("pjax:end",[null,r])):f(r),c[0].offsetHeight):g(location.href)}C=!1}function r(e){var t,n=p.isFunction(e.url)?e.url():e.url,i=e.type?e.type.toUpperCase():"GET",o=p("<form>",{method:"GET"===i?"GET":"POST",action:n,style:"display:none"}),r=("GET"!==i&&"POST"!==i&&o.append(p("<input>",{type:"hidden",name:"_method",value:i.toLowerCase()})),e.data);if("string"==typeof r)p.each(r.split("&"),function(e,t){t=t.split("=");o.append(p("<input>",{type:"hidden",name:t[0],value:t[1]}))});else if(p.isArray(r))p.each(r,function(e,t){o.append(p("<input>",{type:"hidden",name:t.name,value:t.value}))});else if("object"==typeof r)for(t in r)o.append(p("<input>",{type:"hidden",name:t,value:r[t]}));p(document.body).append(o),o.submit()}function m(e){e&&e.readyState<4&&(e.onreadystatechange=p.noop,e.abort())}function y(){return(new Date).getTime()}function v(e){e=e.clone();return e.find("script").each(function(){this.src||p._data(this,"globalEval",!1)}),e.contents()}function a(e){return e.search=e.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),e.href.replace(/\?($|#)/,"$1")}function b(e){var t=document.createElement("a");return t.href=e,t}function s(e){return e.href.replace(/#.*/,"")}function l(e,t){return e&&t?((t=p.extend({},t)).container=e,t):p.isPlainObject(e)?e:{container:e}}function c(e,t){return e.filter(t).add(e.find(t))}function u(e){return p.parseHTML(e,document,!0)}function w(e,t,n){var i,o={},r=/<html/i.test(e),t=t.getResponseHeader("X-PJAX-URL");return o.url=t?a(b(t)):n.requestUrl,t=r?(i=p(u(e.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0])),null!=(t=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i))?p(u(t[0])):i):i=p(u(e)),0!==i.length&&(o.title=c(t,"title").last().text(),n.fragment?(e=i,(e="body"!==n.fragment?c(e,n.fragment).first():e).length&&(o.contents="body"===n.fragment?e:e.contents(),o.title||(o.title=e.attr("title")||e.data("title")))):r||(o.contents=i),o.contents&&(o.contents=o.contents.not(function(){return p(this).is("title")}),o.contents.find("title").remove(),o.scripts=c(o.contents,"script[src]").remove(),o.contents=o.contents.not(o.scripts)),o.title)&&(o.title=p.trim(o.title)),o}function x(e,t){for(;e.length>t;)delete S[e.shift()]}function d(){return p("meta").filter(function(){var e=p(this).attr("http-equiv");return e&&"X-PJAX-VERSION"===e.toUpperCase()}).attr("content")}function h(){p.fn.pjax=e,p.pjax=f,p.pjax.enable=p.noop,p.pjax.disable=A,p.pjax.click=i,p.pjax.submit=t,p.pjax.reload=n,p.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:d},p(window).on("popstate.pjax",o)}function A(){p.fn.pjax=function(){return this},p.pjax=r,p.pjax.enable=h,p.pjax.disable=p.noop,p.pjax.click=p.noop,p.pjax.submit=p.noop,p.pjax.reload=function(){window.location.reload()},p(window).off("popstate.pjax",o)}var C=!0,k=window.location.href,_=window.history.state,S=(_&&_.container&&(f.state=_),"state"in window.history&&(C=!1),{}),E=[],T=[];p.event.props&&p.inArray("state",p.event.props)<0?p.event.props.push("state"):"state"in p.Event.prototype||p.event.addProp("state"),p.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bO
2S\s+[1-4]\D|WebApps\/.+CFNetwork)/),(p.support.pjax?h:A)()})(jQuery),(f=>{f.fn.qrcode=function(c){function t(e){this.mode=n,this.data=e}function u(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function d(e,t){if(null==e.length)throw Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=Array(e.length-n+t);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}function h(e,t){this.totalCount=e,this.dataCount=t}function a(){this.buffer=[],this.length=0}t.prototype={getLength:function(){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},u.prototype={addData:function(e){this.dataList.push(new t(e)),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){for(var e=1,e=1;e<40;e++){for(var t=h.getRSBlocks(e,this.errorCorrectLevel),n=new a,i=0,o=0;o<t.length;o++)i+=t[o].dataCount;for(o=0;o<this.dataList.length;o++)t=this.dataList[o],n.put(t.mode,4),n.put(t.getLength(),p.getLengthInBits(t.mode,e)),t.write(n);if(n.getLengthInBits()<=8*i)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),7<=this.typeNumber&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=u.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(this.modules[e+n][t+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=p.getLostPoint(this);(0==n||i<e)&&(e=i,t=n)}return t},createMovieClip:function(e,t,n){for(e=e.createEmptyMovieClip(t,n),this.make(),t=0;t<this.modules.length;t++)for(var n=+t,i=0;i<this.modules[t].length;i++){var o=+i;this.modules[t][i]&&(e.beginFill(0,100),e.moveTo(o,n),e.lineTo(1+o,n),e.lineTo(1+o,n+1),e.lineTo(o,n+1),e.endFill())}return e},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=0==e%2);for(e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=0==e%2)},setupPositionAdjustPattern:function(){for(var e=p.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var i=e[t],o=e[n];if(null==this.modules[i][o])for(var r=-2;r<=2;r++)for(var a=-2;a<=2;a++)this.modules[i+r][o+a]=-2==r||2==r||-2==a||2==a||0==r&&0==a}},setupTypeNumber:function(e){for(var t=p.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++)i=!e&&1==(t>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i},setupTypeInfo:function(e,t){for(var n=p.getBCHTypeInfo(this.errorCorrectLevel<<3|t),i=0;i<15;i++){var o=!e&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++)o=!e&&1==(n>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,i=this.moduleCount-1,o=7,r=0,a=this.moduleCount-1;0<a;a-=2)for(6==a&&a--;;){for(var s,l=0;l<2;l++)null==this.modules[i][a-l]&&(s=!1,r<e.length&&(s=1==(e[r]>>>o&1)),p.getMask(t,i,a-l)&&(s=!s),this.modules[i][a-l]=s,-1==--o)&&(r++,o=7);if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},u.PAD0=236,u.PAD1=17,u.createData=function(e,t,n){for(var t=h.getRSBlocks(e,t),i=new a,o=0;o<n.length;o++){var r=n[o];i.put(r.mode,4),i.put(r.getLength(),p.getLengthInBits(r.mode,e)),r.write(i)}for(o=e=0;o<t.length;o++)e+=t[o].dataCount;if(i.getLengthInBits()>8*e)throw Error("code length overflow. ("+i.getLengthInBits()+">"+8*e+")");for(i.getLengthInBits()+4<=8*e&&i.put(0,4);0!=i.getLengthInBits()%8;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*e)&&(i.put(u.PAD0,8),!(i.getLengthInBits()>=8*e));)i.put(u.PAD1,8);return u.createBytes(i,t)},u.createBytes=function(e,t){for(var n=0,i=0,o=0,r=Array(t.length),a=Array(t.length),s=0;s<t.length;s++){var l=t[s].dataCount,c=t[s].totalCount-l,i=Math.max(i,l),o=Math.max(o,c);r[s]=Array(l);for(var u=0;u<r[s].length;u++)r[s][u]=255&e.buffer[u+n];for(n+=l,u=p.getErrorCorrectPolynomial(c),l=new d(r[s],u.getLength()-1).mod(u),a[s]=Array(u.getLength()-1),u=0;u<a[s].length;u++)c=u+l.getLength()-a[s].length,a[s][u]=0<=c?l.get(c):0}for(u=s=0;u<t.length;u++)s+=t[u].totalCount;for(n=Array(s),u=l=0;u<i;u++)for(s=0;s<t.length;s++)u<r[s].length&&(n[l++]=r[s][u]);for(u=0;
2u<o;u++)for(s=0;s<t.length;s++)u<a[s].length&&(n[l++]=a[s][u]);return n};for(var n=4,p={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;0<=p.getBCHDigit(t)-p.getBCHDigit(p.G15);)t^=p.G15<<p.getBCHDigit(t)-p.getBCHDigit(p.G15);return(e<<10|t)^p.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;0<=p.getBCHDigit(t)-p.getBCHDigit(p.G18);)t^=p.G18<<p.getBCHDigit(t)-p.getBCHDigit(p.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return p.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case 0:return 0==(t+n)%2;case 1:return 0==t%2;case 2:return 0==n%3;case 3:return 0==(t+n)%3;case 4:return 0==(Math.floor(t/2)+Math.floor(n/3))%2;case 5:return 0==t*n%2+t*n%3;case 6:return 0==(t*n%2+t*n%3)%2;case 7:return 0==(t*n%3+(t+n)%2)%2;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new d([1],0),n=0;n<e;n++)t=t.multiply(new d([1,o.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;case n:case 8:return 8;default:throw Error("mode:"+e)}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case n:return 16;case 8:return 10;default:throw Error("mode:"+e)}else{if(!(t<41))throw Error("type:"+t);switch(e){case 1:return 14;case 2:return 13;case n:return 16;case 8:return 12;default:throw Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,i=0;i<t;i++)for(var o=0;o<t;o++){for(var r=0,a=e.isDark(i,o),s=-1;s<=1;s++)if(!(i+s<0||t<=i+s))for(var l=-1;l<=1;l++)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(i+s,o+l)&&r++;5<r&&(n+=3+r-5)}for(i=0;i<t-1;i++)for(o=0;o<t-1;o++)r=0,e.isDark(i,o)&&r++,e.isDark(i+1,o)&&r++,e.isDark(i,o+1)&&r++,e.isDark(i+1,o+1)&&r++,0!=r&&4!=r||(n+=3);for(i=0;i<t;i++)for(o=0;o<t-6;o++)e.isDark(i,o)&&!e.isDark(i,o+1)&&e.isDark(i,o+2)&&e.isDark(i,o+3)&&e.isDark(i,o+4)&&!e.isDark(i,o+5)&&e.isDark(i,o+6)&&(n+=40);for(o=0;o<t;o++)for(i=0;i<t-6;i++)e.isDark(i,o)&&!e.isDark(i+1,o)&&e.isDark(i+2,o)&&e.isDark(i+3,o)&&e.isDark(i+4,o)&&!e.isDark(i+5,o)&&e.isDark(i+6,o)&&(n+=40);for(o=r=0;o<t;o++)for(i=0;i<t;i++)e.isDark(i,o)&&r++;return n+10*(e=Math.abs(100*r/t/t-50)/5)}},o={glog:function(e){if(e<1)throw Error("glog("+e+")");return o.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;256<=e;)e-=255;return o.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},e=0;e<8;e++)o.EXP_TABLE[e]=1<<e;for(e=8;e<256;e++)o.EXP_TABLE[e]=o.EXP_TABLE[e-4]^o.EXP_TABLE[e-5]^o.EXP_TABLE[e-6]^o.EXP_TABLE[e-8];for(e=0;e<255;e++)o.LOG_TABLE[o.EXP_TABLE[e]]=e;return d.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=o.gexp(o.glog(this.get(n))+o.glog(e.get(i)));return new d(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=o.glog(this.get(0))-o.glog(e.get(0)),n=Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<e.getLength();i++)n[i]^=o.gexp(o.glog(e.get(i))+t);return new d(n,0).mod(e)}},h.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37
2],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],h.getRSBlocks=function(e,t){var n=h.getRsBlockTable(e,t);if(null==n)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=n.length/3,o=[],r=0;r<i;r++)for(var a=n[3*r+0],s=n[3*r+1],l=n[3*r+2],c=0;c<a;c++)o.push(new h(s,l));return o},h.getRsBlockTable=function(e,t){switch(t){case 1:return h.RS_BLOCK_TABLE[4*(e-1)+0];case 0:return h.RS_BLOCK_TABLE[4*(e-1)+1];case 3:return h.RS_BLOCK_TABLE[4*(e-1)+2];case 2:return h.RS_BLOCK_TABLE[4*(e-1)+3]}},a.prototype={get:function(e){return 1==(this.buffer[Math.floor(e/8)]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},"string"==typeof c&&(c={text:c}),c=f.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:2,background:"#ffffff",foreground:"#000000"},c),this.each(function(){var e;if("canvas"==c.render){(e=new u(c.typeNumber,c.correctLevel)).addData(c.text),e.make();var t=document.createElement("canvas");t.width=c.width,t.height=c.height;for(var n=t.getContext("2d"),i=c.width/e.getModuleCount(),o=c.height/e.getModuleCount(),r=0;r<e.getModuleCount();r++)for(var a=0;a<e.getModuleCount();a++){n.fillStyle=e.isDark(r,a)?c.foreground:c.background;var s=Math.ceil((a+1)*i)-Math.floor(a*i),l=Math.ceil((r+1)*i)-Math.floor(r*i);n.fillRect(Math.round(a*i),Math.round(r*o),s,l)}}else for((e=new u(c.typeNumber,c.correctLevel)).addData(c.text),e.make(),t=f("<table></table>").css("width",c.width+"px").css("height",c.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",c.background),n=c.width/e.getModuleCount(),i=c.height/e.getModuleCount(),o=0;o<e.getModuleCount();o++)for(r=f("<tr></tr>").css("height",i+"px").appendTo(t),a=0;a<e.getModuleCount();a++)f("<td></td>").css("width",n+"px").css("background-color",e.isDark(o,a)?c.foreground:c.background).appendTo(r);e=t,jQuery(e).appendTo(this)})}})(jQuery),new class Format{constructor(){this.property={success:"badge-light-success",danger:"badge-light-danger",warning:"badge-light-warning",primary:"badge-light-primary",dar
2k:"badge-light-dark",cambridgeBlue:"badge-light-cambridgeBlue",info:"badge-light-info",italic:"acg-italic",bold:"acg-bold",underline:"acg-underline"}}browser(e=navigator.userAgent){var t,n={UC:/ucweb/i.test(e),Firefox:/firefox/i.test(e),Opera:/opera/i.test(e),Safari:/safari/i.test(e)&&!/chrome/i.test(e),360:/360se/i.test(e),"百度":/bidubrowser/i.test(e),"搜狗":/metasr/i.test(e),IE6:/msie 6.0/i.test(e),IE7:/msie 7.0/i.test(e),IE8:/msie 8.0/i.test(e),IE9:/msie 9.0/i.test(e),IE10:/msie 10.0/i.test(e),IE11:/msie 11.0/i.test(e),Edge:/edg/i.test(e),"猎豹":/lbbrowser/i.test(e),"微信":/micromessenger/i.test(e),QQ:/qqbrowser/i.test(e),Chrome:/safari/i.test(e)&&/chrome/i.test(e)};for(t in n)if(n[t])return t;return"未知"}success(e,...t){return'<span class="acg-badge '+format.property.success+" "+format.join(" ",...t)+'">'+e+"</span>"}danger(e,...t){return'<span class="acg-badge '+format.property.danger+" "+format.join(" ",...t)+'">'+e+"</span>"}warning(e,...t){return'<span class="acg-badge '+format.property.warning+" "+format.join(" ",...t)+'">'+e+"</span>"}info(e,...t){return'<span class="acg-badge '+format.property.info+" "+format.join(" ",...t)+'">'+e+"</span>"}primary(e,...t){return'<span class="acg-badge '+format.property.primary+" "+format.join(" ",...t)+'">'+e+"</span>"}dark(e,...t){return'<span class="acg-badge '+format.property.dark+" "+format.join(" ",...t)+'">'+e+"</span>"}cambridgeBlue(e,...t){return'<span class="acg-badge '+format.property.cambridgeBlue+" "+format.join(" ",...t)+'">'+e+"</span>"}italic(e,...t){return'<span class="'+format.property.italic+" "+format.join(" ",...t)+'">'+e+"</span>"}bold(e,...t){return'<span class="'+format.property.bold+" "+format.join(" ",...t)+'">'+e+"</span>"}underline(e,...t){return'<span class="'+format.property.underline+" "+format.join("",...t)+'">'+e+"</span>"}avatar(e){return'<img style="border-radius:25%;width: 18px;height: 18px;" class="render-image" src="'+e+'"">'}join(e,...t){let n=[];return t.forEach(e=>{"string"==typeof e&&n.push(e)}),n.join(e)}currencySymbol(){var e="function"==typeof getVar?getVar("CURRENCY"):null;return e&&e.symbol?e.symbol:"¥"}money(e,t="green",n=!0){return e&&"-"!=e?`<span style="color: ${t};${n?"font-weight: bolder;":""}">${format.currencySymbol()}${format.amountRemoveTrailingZeros(e)}</span>`:"-"}amount(e){return isNaN(e)?"0.00":Number(e).toFixed(2)}amountRemoveTrailingZeros(e){return""==e||0==e||isNaN(e)?"0.00":(e=e.toString()).replace(/(\.\d*?[1-9])0+|\.0*$/,"$1")}amounts(e){if(isNaN(e))return"0.00";let t=Math.floor(100*e)/100;return(t=t.toFixed(2)).replace(/\B(?=(\d{3})+(?!\d))/g,",")}color(e,t){return'<span style="color: '+t+';">'+e+"</span>"}badge(e,...t){return'<span class="a-badge '+format.join(" ",...t)+'">'+i18n(e)+"</span>"}badgeGroup(e,...t){return`<span class="a-badge-group ${format.join(" ",...t)}">${e}</span>`}item(e){return`<span class="table-item"><img src="${e?.cover}" class="table-item-icon"><span class="table-item-name">${i18n(e?.name)}</span></span>`}category(e,t=null){return(e=t?.hasOwnProperty("icon")?t:e)?.icon?`<span class="table-item table-item-cate"><img src="${e?.icon}" class="table-item-icon"><span class="table-item-name">${i18n(e?.name)}</span></span>`:"-"}group(e){return e?`<span class="table-item table-item-cate"><img src="${e.icon}" class="table-item-icon"><span class="table-item-name">${i18n(e.name)}</span></span>`:"-"}user(e){return e?`<span class="table-item table-item-user"><img src="${e.avatar}" class="table-item-icon"><span class="table-item-name">${e.username}</span></span>`:"-"}owner(e){return e?`<span class="table-item table-item-user"><img src="${e.avatar}" class="table-item-icon"><span class="table-item-name">${e.username}</span></span>`:`<span class="table-item table-item-user"><span class="table-item-name">${util.icon("fa-duotone fa-regular fa-shop")}</span></span>`}shared(e){return e?`<span class="table-item table-item-user"><img src="${e.domain}/favicon.ico" class="table-item-icon"><span class="table-item-name">${i18n(e.name)}</span></span>`:"-"}bank(e){return e?`<span class="table-item"><img src="${e.icon}" class="table-item-icon"><span class="table-item-name">${i18n(e.name)}</span></span>`:"-"}link(e){var t;return"#"!=e&&e?(t=util.generateRandStr(16),$(document).on("click","."+t,function(){util.copyTextToClipboard(e,()=>{message.success("复制成功")})}
2),`<a href="${e}" target="_blank" class="text-primary">${e}</a> <span style="cursor:pointer;" class="${t}"><i class="fa-duotone fa-regular fa-copy"></i></span>`):"-"}invite(e){return e?`<span class="table-item table-item-user"><img src="${e.avatar}" class="table-item-icon"><span class="table-item-name">${e.username}</span></span>`:"-"}site(e){return e?`<span class="table-item"><img src="${e.logo}" class="table-item-icon"><span class="table-item-name">${e.title}</span></span>`:"-"}pay(e){return e?`<span class="pay-item"><img src="${e.icon}" class="item-icon"><span class="item-name">${i18n(e.name)}</span></span>`:"-"}customer(e,t){return e?`<span class="table-item table-item-user"><img src="${e.avatar}" class="table-item-icon"><span class="table-item-name">${e.username}</span></span>`:'<svg style="height: 21px;width: 40px;" aria-hidden="true"><use xlink:href="#icon-youke"></use></svg>'}bankCard(e){return e?`<span class="table-item"><img src="${e?.bank?.icon}" class="table-item-icon"><span class="table-item-name">${i18n(e?.bank?.name)}(${e.card_no})</span></span>`:"-"}client(e){return`<span class="table-item table-item-user"><img src="${e.avatar}" class="table-item-icon"><span class="table-item-name">${e.username}</span></span>`}blockItems(e){return`<div class="table-block-items">${e.map(e=>`<div class="b-item"><span class="b-title">${e.title}</span><span class="b-content">${e.content}</span></div>`).join("")}</div>`}select2BankCard(e){return e.id?$(`<span class="select2-item"><img src="${e.element.getAttribute("data-icon")}" class="table-item-icon"><span class="table-item-name">${e.text}</span></span>`):e.text}plugin(e){return`<span class="table-item"><img src="${e.icon}" class="table-item-icon"><span class="table-item-name">${i18n(e.name)}</span></span>`}pastTime(e){var e=new Date(e).getTime(),t=(new Date).getTime();let n=Math.floor((t-e)/1e3);t=[{label:"年",seconds:31536e3},{label:"月",seconds:2592e3},{label:"天",seconds:86400},{label:"小时",seconds:3600},{label:"分钟",seconds:60},{label:"秒",seconds:1}].find(e=>e.seconds<n||"秒"===e.label),e=Math.floor(n/t.seconds);return`${e<0?0:e} `+i18n(t.label+i18n("前"))}expireTime(e){var t=[{label:"年",seconds:31536e3},{label:"个月",seconds:2592e3},{label:"天",seconds:86400},{label:"小时",seconds:3600},{label:"分钟",seconds:60},{label:"秒",seconds:1}],e=new Date(e).getTime(),n=(new Date).getTime();let i=Math.floor((e-n)/1e3);if(i<=0)return!1;let o="";for(let e=0;e<t.length;e++){var r=Math.floor(i/t[e].seconds);if(0<r){o+=`<b>${r}</b>`+t[e].label,i-=r*t[e].seconds,e<t.length-1&&0<(r=Math.floor(i/t[e+1].seconds))&&(o+=`<b>${r}</b>`+t[e+1].label);break}}return o.trim()}}),message=new class Message{escape(e){return String(e??"").replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}log(e,t="success"){toastr.options={debug:!1,newestOnTop:!0,progressBar:!0,preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"2000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};var n=this.escape(i18n(e));switch(t){case"success":toastr.success(n);break;case"error":toastr.error(n);break;case"info":toastr.info(n);break;case"warning":toastr.warning(n)}}success(e){this.log(e,"success")}error(e){this.log(e,"error")}warning(e){this.log(e,"warning")}info(e){this.log(e,"info")}ask(e,t=null,n="您确定吗?",i="确定",o={}){Swal.fire({title:i18n(n),html:i18n(e),icon:"warning",showCancelButton:!0,cancelButtonText:i18n("取消"),confirmButtonText:i18n(i),...o}).then(e=>{e.value&&t&&t()})}prompt(e){e={...{input:"text",inputAttributes:{autocapitalize:"off"},showCancelButton:!0,cancelButtonText:i18n("取消"),confirmButtonText:i18n("确定")},...e};return Swal.fire(e)}dangerPrompt(e,t,n){this.prompt({title:'<svg class="mcy-icon" aria-hidden="true"><use xlink:href="#icon--zhongdaweixian"></use></svg><space></space>'+i18n("危险操作"),width:680,html:"<i style='color: #b98f13;'>"+i18n(e)+"</i><br><br><span style='font-size: 14px;'>"+i18n("为了保证安全性,请再次确认您的操作意图。请在下方输入:")+"“<b style='color: red;'>"+i18n(t)+"</b>”</span>",inputAttributes:{onpaste:"return false",oncopy:"return false"},confirmButtonText:i18n("继续操作"),inputValidator:function(e){return(!e||e!=i18n(t))&&i18n("请输入:")+"“"
2+i18n(t)+"”,"+i18n("后再进行操作")}}).then(e=>{!0===e.isConfirmed&&n&&n()})}alert(e,t="success"){switch(e=i18n(e),t){case"success":Swal.fire(i18n("成功"),e,t);break;case"error":Swal.fire(i18n("操作被阻断"),e,t);break;case"warning":Swal.fire(i18n("安全警告"),e,t)}}},component=(window.message=message,new class Component{escapeHtml(e){return String(e??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}safeNavigationUrl(e){var t,n,e=String(e??"").trim();if(!e||/[\u0000-\u0020\u007f-\u009f\\]/.test(e))return"";try{return/^\/(?!\/)/.test(e)?(t=new URL(e,window.location.origin)).origin===window.location.origin?t.pathname+t.search+t.hash:"":/^https?:\/\//i.test(e)&&(n=new URL(e),["http:","https:"].includes(n.protocol))?n.href:""}catch(e){return""}}safeMessageImageUrl(e){e=this.safeNavigationUrl(e);if(!e)return"";try{var t=new URL(e,window.location.origin);return t.origin!==window.location.origin?"":/^\/assets\/cache\/general\/message\/[a-f0-9]{32}\.(?:jpe?g|png|webp)$/i.test(t.pathname)?t.pathname:""}catch(e){return""}}sanitizeRichHtml(e){var t=document.createElement("template");t.innerHTML=String(e??"");let n=new Set(["P","BR","STRONG","B","EM","I","U","S","DEL","BLOCKQUOTE","UL","OL","LI","H1","H2","H3","H4","H5","H6","HR","PRE","CODE","A","IMG","TABLE","THEAD","TBODY","TR","TH","TD"]),r=new Set(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED","SVG","MATH","FORM","INPUT","BUTTON","TEXTAREA","SELECT","META","LINK"]),a=e=>{Array.from(e.childNodes).forEach(o=>{if(o.nodeType===Node.COMMENT_NODE)o.remove();else if(o.nodeType===Node.ELEMENT_NODE){let i=o.tagName;if(n.has(i)){if(Array.from(o.attributes).forEach(e=>{var t=e.name.toLowerCase();let n=!1;"A"===i&&["href","title"].includes(t)&&(n=!0),"IMG"===i&&["src","alt","title","width","height"].includes(t)&&(n=!0),(n="CODE"===i&&"class"===t&&/^language-[\w-]+$/.test(e.value)?!0:n)||o.removeAttribute(e.name)}),"A"===i&&((e=this.safeNavigationUrl(o.getAttribute("href")))?o.setAttribute("href",e):o.removeAttribute("href"),o.setAttribute("target","_blank"),o.setAttribute("rel","noopener noreferrer nofollow")),"IMG"===i){var e=this.safeMessageImageUrl(o.getAttribute("src"));if(!e)return void o.remove();o.setAttribute("src",e),o.setAttribute("loading","lazy"),o.setAttribute("role","button"),o.setAttribute("tabindex","0"),o.setAttribute("aria-label",o.getAttribute("alt")||"查看大图")}a(o)}else r.has(i)?o.remove():(a(o),o.replaceWith(...Array.from(o.childNodes)))}})};return a(t.content),t.innerHTML}sanitizeInlineHtml(e){var t=document.createElement("template");t.innerHTML=String(e??"");let o=new Set(["B","STRONG","BR","SPAN","A"]),r=new Set(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED","SVG","MATH","TEMPLATE","NOSCRIPT","FORM","INPUT","BUTTON","TEXTAREA","SELECT","OPTION","META","LINK","BASE","VIDEO","AUDIO","CANVAS","XMP","PLAINTEXT","NOEMBED","LISTING","TITLE","FRAME","FRAMESET"]),a=e=>{Array.from(e.childNodes).forEach(t=>{if(t.nodeType===Node.COMMENT_NODE)t.remove();else if(t.nodeType===Node.ELEMENT_NODE){var e=String(t.tagName||"").toUpperCase();if(o.has(e)){var n="BR"===e?"":(n=t.style.color,(i=document.createElement("span")).style.color=String(n??"").trim(),i.style.color),i="A"===e?(e=>{e=String(e??"").trim();if(!/^https?:\/\//i.test(e)||/[\u0000-\u0020\u007f-\u009f\\]/.test(e))return"";try{var t=new URL(e);return!["http:","https:"].includes(t.protocol)||t.username||t.password?"":t.href}catch(e){return""}})(t.getAttribute("href")):"";if(Array.from(t.attributes).forEach(e=>t.removeAttribute(e.name)),n&&(t.style.color=n),"A"===e){if(!i)return a(t),void t.replaceWith(...Array.from(t.childNodes));t.setAttribute("href",i),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener noreferrer nofollow")}a(t)}else r.has(e)?t.remove():(a(t),t.replaceWith(...Array.from(t.childNodes)))}})};return a(t.content),t.innerHTML}plainInlineText(e){var t=document.createElement("template");return t.innerHTML=this.sanitizeInlineHtml(e),(t.content.textContent||"").trim()}previewMessage(e={}){var t=this.escapeHtml(e.title||"消息通知"),n=this.sanitizeRichHtml(e.content||""),i=this.escapeHtml(e.create_time||e.update_time||"");let r=this.safeNavigationUrl(e.jump_url||e.url||"");var o=window.matchMedia&&window.matchMedia("(max-width: 640px)").matches,a=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;let s=document.activeElement,l="";t='<article class="md-message-preview" role="document"><header class="md-message-preview__header"><span class="md-message-preview__icon" aria-hidden="true"><span class="material-icons-outlined">notifications</span></span>'+`<div class="md-message-preview__heading"><span>MESSAGE</span><h2>${t}</h2>${i?`<time>${i}</time>`:""}</div>`+`<button type="button" class="md-message-preview__close" aria-label="${i18n("关闭消息")}"><span class="material-icons-outlined">close</span></button>`+`</header><div class="md-message-preview__content markdown-body">${n}</div></article>`;return layer.open({type:1,title:!1,closeBtn:0,maxmin:!1,resize:!1,shade:.42,shadeClose:!0,anim:a?-1:4,isOutAnim:!a,area:o?["100%","100%"]:"600px",skin:"md-message-layer",content:t,btn:!!r&&[util.icon("fa-duotone fa-regular fa-arrow-up-right-from-square")+" "+i18n("前往地址")],yes:e=>{var t=new URL(r,window.location.origin);layer.close(e),t.origin===window.location.origin?window.location.href=t.href:window.open(t.href,"_blank","noopener,noreferrer")},success:(e,i)=>{let o=$(e);var e="md-message-preview-title-"+i;l=".mdMessagePreview"+i,o.attr({role:"dialog","aria-modal":"true","aria-labelledby":e}),o.find(".md-message-preview__heading h2").attr("id",e),o.find(".md-message-preview__close").on("click",()=>layer.close(i)),o.find(".md-message-preview__content img").on("click keydown",e=>
2{("keydown"!==e.type||["Enter"," "].includes(e.key))&&(e.preventDefault(),e=this.safeMessageImageUrl(e.currentTarget.getAttribute("src")))&&this.previewImage(e)}),r&&(e=new URL(r,window.location.origin),o.find(".layui-layer-btn0").attr({href:r,target:e.origin===window.location.origin?"_self":"_blank",rel:"noopener noreferrer"}).on("click.mdMessageLink",e=>e.preventDefault())),$(document).on("keydown"+l,e=>{var t,n;"Escape"===e.key?(e.preventDefault(),layer.close(i)):"Tab"===e.key&&(n=o.find('button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])').filter(":visible").toArray()).length&&(t=n[0],n=n[n.length-1],e.shiftKey&&document.activeElement===t?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),t.focus()))}),o.find(".md-message-preview__close").trigger("focus")},end:()=>{l&&$(document).off(l),s&&"function"==typeof s.focus&&document.contains(s)&&s.focus(),"function"==typeof e.onClose&&e.onClose()}})}previewImage(n){if(n){let t=Boolean(window.AdminMobile&&"function"==typeof window.AdminMobile.isEnabled&&window.AdminMobile.isEnabled()),e=document.activeElement;n=String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");layer.open({type:1,title:!1,closeBtn:t?1:0,anim:t?0:5,area:t?["100vw","100dvh"]:"auto",skin:t?"md-image-preview-layer":"",shadeClose:!0,content:`<div class="md-image-preview"><img src="${n}" alt="${i18n("图片预览")}"></div>`,success:e=>{t&&(e.attr({role:"dialog","aria-modal":"true","aria-label":"图片预览"}),e.find(".layui-layer-close").attr("aria-label","关闭图片预览"))},end:()=>{e&&"function"==typeof e.focus&&document.contains(e)&&e.focus()}})}}isRowDetailOpen(e,t){return 0<e.find('tr[data-index="'+t+'"]').next(".detail-view").length}updateDatabase(e,t,n,i,o=null,r=!1){var a={};a[n]=t,a.id=i,util.post(e,a,e=>{message.success("已更新 (。•ᴗ-)"),o&&r&&o.bootstrapTable("refresh",{silent:!0})})}deleteDatabase(e,t,n=null){message.ask("一旦数据被遗弃,您将无法恢复它!",()=>{util.post(e,{list:t},e=>{message.alert("您选择的数据已被系统永久删除。","success"),n&&n(e)})})}popup(s={}){var t=getVar("HACK_SUBMIT_TAB"),e=getVar("HACK_SUBMIT_FORM");let o=s.submitRoute??s.submit,l=(t instanceof Array&&t.forEach(e=>{e.submit==o&&s?.tab?.push(evalResults(e.code))}),e instanceof Array&&e.forEach(n=>{if(n.submit==o)for(let t=0;t<s?.tab?.length;t++){var i=s?.tab[t]?.form;for(let e=0;e<i?.length;e++)i[e].name==n.field&&("after"===n.direction?s?.tab[t]?.form?.splice(e+1,0,evalResults(n.code)):(s?.tab[t]?.form?.splice(e,0,evalResults(n.code)),e++))}}),new Form(s));t=l.getTab();let r=e=>{null!=e&&layer.close(e)},n=(t=null,n=r)=>{let i=l.getData();return!!l.validator()&&("function"==typeof s.submit?s.submit(i,t):s.submit&&util.post(s.submit,i,e=>{n(t),!1!==s.message&&(e.msg&&"success"!=e.msg?message.alert(e.msg,"success"):message.alert(s.message??"您提交的数据已被系统存储(。•ᴗ-)_","success")),s.done&&s.done(e,i)},e=>{s.error&&s.error(e),message.alert(e.msg,"error")}),!0)};e={options:s,form:l,tab:t,tabs:t,submit:n,close:r,register:e=>{l.setIndex(e),l.registerEvent(),"function"==typeof s.renderComplete&&s.renderComplete(l.getUnique(),e)}};try{var i=window.AdminMobile?.presentPopup,a="function"==typeof i&&i.call(window.AdminMobile,e);if(!0===a||!0===a?.handled)return a}catch(e){util.debug("AdminMobile popup presenter fallback: "+e.message,"#ff4f33")}let c=!0===window.AdminMobile?.isEnabled?.(),u=null,d=null,h=null,p=null,f=!1,g=!1,m="pjax:beforeReplace.componentPopup"+l.getUnique(),y=()=>{w&&(document.body.style.overflow="",document.body.style.paddingRight="")},v=()=>{if(p&&(p(),p=null),d){try{d.disconnect()}catch(e){util.debug("Component popup ResizeObserver destroy skipped: "+l.getUnique(),"#ff4f33")}d=null}if($(document).off(m),y(),!f&&(f=!0,"function"==typeof l.destroy))try{l.destroy()}catch(e){util.debug("Component popup Form destroy skipped: "+l.getUnique(),"#ff4f33")}};let b="680px",w=(s.width&&s.height?b=[s.width,s.height]:s.width&&(b=s.width),!0===s.drawer&&util.isPc()&&!c);w&&(i=s.width&&"auto"!==s.width?s.width:"620px",b=[i,"100%"]),!0===s.fitTabs&&!c&&util.isPc()&&1<t.length&&(b=this.fitTabsArea(t,b,w)),!c&&util.isPc()||(b=["100%","100%"]);e={shade:s.shade??.3,btn:!!s.submit&&[(s.confirmText?i18n(s.confirmText):null)??util.icon("fa-duotone fa-regular fa-floppy-disk me-1 text-success")+i18n("保存"),util.icon("fa-duotone fa-regular fa-xmark me-1 text-warning")+i18n("取消")],area:b,maxmin:!c&&(s.maxmin??!0),closeBtn:s.closeBtn??1,shadeClose:s.shadeClose??!1,anim:c?2:4,yes:(e,t)=>{n(e)},success:(o,r,a)=>{var e,t=$(o).find(".layui-layer-content");
2if(u=r,l.setIndex(r),l.registerEvent(),p=this.floatSelectDropdowns(o),w&&(e=window.innerWidth-document.documentElement.clientWidth,document.body.style.overflow="hidden",0<e)&&(document.body.style.paddingRight=e+"px"),c||$(".component-popup."+l.getUnique()).append('<img src="/assets/common/images/ks.webp" class="component-popup-acg">'),s.content&&util.isPc()&&!c&&s.content.css)for(var n in s.content.css)t.css(n,s.content.css[n]);if(s.autoPosition&&util.isPc()&&!w&&!c){let t=0;h=()=>{var e;$(o).find(".layui-layer-max").hasClass("layui-layer-maxmin")||((e=$(o).find(".layui-layer-content")).css({height:"auto",minHeight:"",maxHeight:"calc(100vh - 155px)",overflowY:"auto"}),t=Math.max(t,"border-box"===e.css("box-sizing")?e.outerHeight():e.height()),e.css("minHeight",`min(${t}px, calc(100vh - 155px))`),$(o).css("height","auto"),a.offset())},d=this.resizeObserver($(o).find(".layui-layer-content"),e=>{var t,n,i=$(o).find(".layui-layer-content");!0===s.adaptiveHeight?h():(n=util.getDomHeight(i),t=i.css("overflow"),/^\d+px$/.test(n)&&"auto"==t&&i.css("height","auto"),i.height()+60+56>$(window).height()&&(n=$(window).height()-155,i.css("height",n+"px").css("overflow","")),layer.iframeAuto(r),a.offset())})}"function"==typeof s.renderComplete&&s.renderComplete(l.getUnique(),r)},end:()=>{g||(g=!0,v(),s.end&&s.end())},full:(e,t,n)=>{e=e.addClass("border-none");e.find(".layui-layer-title").addClass("border-none"),e.find(".layui-layer-btn").addClass("border-none"),!0===s.adaptiveHeight&&e.find(".layui-layer-content").css({minHeight:"",maxHeight:""})},restore:(e,t,n)=>{e=e.removeClass("border-none");e.find(".layui-layer-title").removeClass("border-none"),e.find(".layui-layer-btn").removeClass("border-none"),!0===s.adaptiveHeight&&h&&h()}},c&&(e.resize=!1,e.move=!1),w&&(e.offset="r",e.anim=-1,e.isOutAnim=!0,e.maxmin=!1,e.move=!1),a=w?" component-drawer":"",i=c?" admin-mobile-layer-popup admin-mobile-layer-popup--task":"";let x=e=>c?'<div class="admin-mobile-popup-form">'+e+"</div>":e;try{u=1===t.length?(e.type=1,e.content=x(t[0].content),e.title=t[0].title,e.skin="component-popup "+l.getUnique()+a+i,layer.open(e)):(e.tab=c?t.map(e=>Object.assign({},e,{content:x(e.content)})):t,e.skin="layui-layer-tab component-popup "+l.getUnique()+a+i,layer.tab(e)),f||$(document).off(m).one(m,()=>{var e=u??("function"==typeof l.getIndex?l.getIndex():null);if(null!=e)try{layer.close(e)}catch(e){util.debug("Component popup close during PJAX skipped: "+l.getUnique(),"#ff4f33")}v()})}catch(e){t=u??("function"==typeof l.getIndex?l.getIndex():null);if(null!=t)try{layer.close(t)}catch(e){util.debug("Component popup close after failure skipped: "+l.getUnique(),"#ff4f33")}throw v(),e}}fitTabsArea(n=[],i="680px",o=!1){try{var r=parseInt(Array.isArray(i)?i[0]:i,10)||680,a=$('<div class="layui-layer layui-layer-page layui-layer-tab component-popup'+(o?" component-drawer":"")+'"></div>
2').css({position:"fixed",left:"-99999px",top:0,width:"auto",height:"auto",visibility:"hidden",pointerEvents:"none"});let t=$('<div class="layui-layer-title"></div>').css({display:"inline-flex",flexWrap:"nowrap",width:"auto",maxWidth:"none",whiteSpace:"nowrap"}),e=(n.forEach(e=>t.append($("<span></span>").html(e?.title??""))),a.append(t).appendTo(document.body),0);t.children("span").each(function(){e+=this.getBoundingClientRect().width});var s=window.getComputedStyle(t.get(0)),l=(e+=(parseFloat(s.paddingLeft)||0)+(parseFloat(s.paddingRight)||0)+24,a.remove(),Math.max(r,Math.floor(.92*window.innerWidth))),c=Math.min(Math.max(r,Math.ceil(e)),l);return c<=r?i:Array.isArray(i)?[c+"px",i[1]]:c+"px"}catch(e){return i}}floatSelectDropdowns(e){let t=e?.jquery?e.get(0):e;if(!(t&&"MutationObserver"in window))return null;let n=new Set,a=e=>Array.prototype.find.call(e.children,e=>"DL"===e.tagName),i=e=>{var t,n,i,o,r=a(e),e=e.querySelector(".layui-select-title");r&&e&&(e=e.getBoundingClientRect(),t=window.innerHeight,r.style.position="fixed",r.style.left=e.left+"px",r.style.width=e.width+"px",r.style.minWidth="0",r.style.maxHeight="300px",o=r.offsetHeight,i=e.top-4-8,(o=(n=t-e.bottom-4-8)<o&&n<i)?(r.style.top="auto",r.style.bottom=t-e.top+4+"px"):(r.style.bottom="auto",r.style.top=e.bottom+4+"px"),r.style.maxHeight=Math.max(120,Math.min(300,o?i:n))+"px")},o=e=>{let t=a(e);t&&["position","left","top","bottom","width","minWidth","maxHeight"].forEach(e=>t.style[e]="")},r=new MutationObserver(e=>{e.forEach(e=>{e=e.target;e instanceof Element&&e.classList.contains("layui-form-select")&&(e.classList.contains("layui-form-selected")?(n.add(e),i(e)):n.has(e)&&(n.delete(e),o(e)))})}),s=(r.observe(t,{attributes:!0,attributeFilter:["class"],subtree:!0}),()=>n.forEach(i));return t.addEventListener("scroll",s,!0),window.addEventListener("resize",s),()=>{r.disconnect(),t.removeEventListener("scroll",s,!0),window.removeEventListener("resize",s),n.forEach(o),n.clear()}}idObjToList(e=[]){let t=[];return e.forEach(e=>{t.push(e.id)}),t}async loadScript(i){return new Promise((e,t)=>{var n=document.createElement("script");n.src=i,n.onload=e,n.onerror=t,document.body.appendChild(n)})}async run(e=[]){for(var t of e)await this.loadScript(t)}resizeObserver(e,n){var t;return"ResizeObserver"in window&&(e=e?.jquery?e.get(0):e)?((t=new ResizeObserver(function(e){for(var t of e)n&&n(t)})).observe(e),t):null}});(p=>{function i(){this.v="2.9.8"}function f(e,t){t=t||"log",p.console&&console[t]&&console[t]("layui error hint: "+e)}var e,g=p.document,m={modules:{},status:{},timeout:10,event:{}},t=p.LAYUI_GLOBAL||{},y=(e=g.currentScript?g.currentScript.src:(()=>{for(var e,t=g.scripts,n=t.length-1,i=n;0<i;i--)if("interactive"===t[i].readyState){e=t[i].src;break}return e||t[n].src})(),m.dir=t.dir||e.substring(0,e.lastIndexOf("/")+1)),v="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),b=m.builtin={lay:"lay",layer:"layer",laydate:"laydate",laypage:"laypage",laytpl:"laytpl",form:"form",upload:"upload",dropdown:"dropdown",transfer:"transfer",tree:"tree",table:"table",treeTable:"treeTable",element:"element",rate:"rate",colorpicker:"colorpicker",slider:"slider",carousel:"carousel",flow:"flow",util:"util",code:"code",jquery:"jquery",all:"all","layui.all":"layui.all"},c=(i.prototype.cache=m,i.prototype.define=function(e,i){return"function"==typeof e&&(i=e,e=[]),this.use(e,function(){function n(e,t){layui[e]=t,m.status[e]=!0}return"function"==typeof i&&i(function(e,t){n(e,t),m.callback[e]=function(){i(n)}}),this},null,"define"),this},i.prototype.use=function(n,e,t,i){var o,r,a=this,s=m.dir=m.dir||y,l=g.getElementsByTagName("head")[0],c=(n="string"==typeof n?[n]:"function"==typeof n?(e=n,["all"]):n,p.jQuery&&jQuery.fn.on&&(a.each(n,function(e,t){"jquery"===t&&n.splice(e,1)}),layui.jquery=layui.$=jQuery),n[0]),u=0;function d(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;"load"!==e.type&&!n.test((e.currentTarget||e.srcElement).readyState)||(m.modules[c]=t,l.removeChild(o),function e(){return++u>1e3*m.timeout/4?f(c+" is not a valid module","error"):void(m.status[c]?h():setTimeout(e,4))}())}function h(){t.push(layui[c]),1<n.length?a.use(n.slice(1),e,t,i):"function"==typeof e&&(layui.jquery&&"function"==typeof layui.jquery&&"define"!==i?layui.jquery(function(){e.apply(layui,t)}):e.apply(layui,t))}return t=t||[],m.host=m.host||(s.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===n.length||layui["layui.all"]&&b[c]?h():(r=(r=(b[c]?s+"modules/":!/^\{\/\}/.test(a.modules[c])&&m.base||"")+(a.modules[c]||c)+".js").replace(/^\{\/\}/,""),!m.modules[c]&&layui[c]&&(m.modules[c]=r),m.modules[c]?function e(){return++u>1e3*m.timeout/4?f(c+" is not a valid module","error"):void("string"==typeof m.modules[c]&&m.status[c]?h():setTimeout(e,4))}():((o=g.createElement("script")).async=!0,o.charset="utf-8",o.src=r+((s=!0===m.version?m.v||(new Date).getTime():m.version||"")?"?v="+s:""),l.appendChild(o),!o.attachEvent||o.attachEvent.toString&&o.attachEvent.toString().indexOf("[native code")<0||v?o.addEventListener("load",function(e){d(e,r)},!1):o.attachEvent("onreadystatechange",function(e){d(e,r)}),m.modules[c]=r)),a},i.prototype.disuse=function(e){var n=this;return e=n.isArray(e)?e:[e],n.each(e,function(e,t){m.status[t],delete n[t],delete b[t],delete n.modules[t],delete m.status[t],delete m.modules[t]}),n},i.prototype.getStyle=function(e,t){return(e=e.currentStyle||p.getComputedStyle(e,null))[e.getPropertyValue?"getPropertyValue":"getAttribute"](t)},i.prototype.link=function(i,o,e){var r=this,t=g.getElementsByTagName("head")[0],n=g.createElement("link"),a="layuicss-"+((e="string"==typeof o?o:e)||i).replace(/\.|\//g,""),s="creating",l=0;return n.href=i+(m.debug?"?v="+(new Date).getTime():""),n.rel="stylesheet",n.id=a,n.media="all",g.getElementById(a)||t.appendChild(n),"function"==typeof o&&function e(t){var n=g.getElementById(a);return++l>1e3*m.timeout/100?f(i+" timeout"):void(1989===parseInt(r.getStyle(n,"width"))?(t===s&&n.removeAttribute("lay-status"),n.getAttribute("lay-status")===s?setTimeout(e,100):o()):(n.setAttribute("lay-status",s),setTimeout(function(){e(s)},100)))}(),r},i.prototype.addcss=function(e,t,n){return layui.link(m.dir+"css/"+e,t,n)},m.callback={},i.prototype.factory=function(e){if(layui[e])return"function"==typeof m.callback[e]?m.callback[e]:null},i.prototype.img=function(e,t,n){var i=new Image;if(i.src=e,i.complete)return t(i);i.onload=function(){i.onload=null,"function"==typeof t&&t(i)},i.onerror=function(e){i.onerror=null,"function"==typeof n&&n(e)}},i.prototype.config=function(e){for(var t in e=e||{})m[t]=e[t];return this},i.prototype.modules=(()=>{var e,t={};for(e in b)t[e]=b[e];return t})(),i.prototype.extend=function(e){for(var t in e=e||{})this[t]||this.modules[t]?f(t+" Module already exists","error"):this.modules[t]=e[t];return this},i.prototype.router=i.prototype.hash=function(e){var n={path:[],search:{},hash:((e=e||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)&&(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(e,function(e,t){/^\w+=/.test(t)?(t=t.split("="),n.search[t[0]]=t[1]):n.path.push(t)})),n},i.prototype.url=function(e){var o,t;return{pathname:(e?((e.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(o={},t=(e?((e.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),this.each(t,function(e,t){var n=t.indexOf("="),i=n<0?t.substr(0,t.length):0!==n&&t.substr(0,n);i&&(o[i]=0<n?t.substr(n+1):null)}),o),hash:this.router(e?(e.match(/#.+/)||[])[0]||"/":location.hash)}},i.prototype.data=function(e,t,n){if(e=e||"layui",n=n||localStorage,p.JSON&&p.JSON.parse){if(null===t)return delete n[e];t="object"==typeof t?t:{key:t};try{var i=JSON.parse(n[e])}catch(e){i={}}return"value"in t&&(i[t.key]=t.value),t.remove&&delete i[t.key],n[e]=JSON.stringify(i),t.key?i[t.key]:i}},i.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},i.prototype.device=function(e){function t(e){return e=new RegExp(e+"/([^\\s\\_\\-]+)"),(n.match(e)||[])[1]||!1}var n=navigator.userAgent.toLowerCase(),i={os:/windows/.test(n)?"windows":/linux/.test(n)?"linux":/iphone|ipod|ipad|ios/.test(n)?"ios":/mac/.test(n)?"mac":void 0,ie:!!(p.ActiveXObject||"ActiveXObject"in p)&&((n.match(/msie\s(\d+)/)||[])[1]||"11"),weixin:t("micromessenger")};return e&&!i[e]&&(i[e]=t(e)),i.android=/android/.test(n),i.ios="ios"===i.os,i.mobile=i.android||i.ios,i},i.prototype.hint=function(){return{error:f}},i.prototype._typeof=i.prototype.type=function(e){return null===e?String(e):"object"==typeof e||"function"==typeof e?(t=(t=Object.prototype.toString.call(e).match(/\s(.+)\]$/)||[])[1]||"Object",new RegExp("\\b(Function|Array|Date|RegExp|Object|Error|Symbol)\\b").test(t)?t.toLowerCase():"object"):typeof e;var t},i.prototype._isArray=i.prototype.isArray=function(e){var t,n=this.type(e);return!(!e||"object"!=typeof e||e===p)&&(t="length"in e&&e.length,"array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)},i.prototype.each=function(e,n){function t(e,t){return n.call(t[e],e,t[e])}if("function"==typeof n)if(this.isArray(e=e||[]))for(i=0;i<e.length&&!t(i,e);i++);else for(var i in e)if(t(i,e))break;return this},i.prototype.sort=function(e,o,t,n){if(n=n?e||[]:JSON.parse(JSON.stringify(e||[])),"object"!==this.type(e)||o){if("object"!=typeof e)return[n];n.sort(function(e,t){var n=e[o],i=t[o];if(!isNaN(e)&&!isNaN(t))return e-t;if(!isNaN(e)&&isNaN(t)){if(!o||"object"!=typeof t)return-1;n=e}else if(isNaN(e)&&!isNaN(t)){if(!o||"object"!=typeof e)return 1;i=t}return(e=[!isNaN(n),!isNaN(i)])[0]&&e[1]?n&&!i&&0!==i?1:!n&&0!==n&&i?-1:n-i:e[0]||e[1]?e[0]||
2!e[1]?-1:!e[0]||e[1]?1:void 0:i<n?1:n<i?-1:0}),t&&n.reverse()}return n},i.prototype.stope=function(t){t=t||p.event;try{t.stopPropagation()}catch(e){t.cancelBubble=!0}},"LAYUI-EVENT-REMOVE");i.prototype.onevent=function(e,t,n){return"string"!=typeof e||"function"!=typeof n?this:i.event(e,t,null,n)},i.prototype.event=i.event=function(e,t,n,i){function o(e,t){!1===(t&&t.call(r,n))&&null===a&&(a=!1)}var r=this,a=null,s=(t||"").match(/\((.*)\)$/)||[],e=(e+"."+t).replace(s[0],""),l=s[1]||"";return n===c?(delete(r.cache.event[e]||{})[l],r):i?(m.event[e]=m.event[e]||{},l?m.event[e][l]=[i]:(m.event[e][l]=m.event[e][l]||[],m.event[e][l].push(i)),this):(layui.each(m.event[e],function(e,t){"{*}"!==l&&(""===e&&layui.each(t,o),!l||e!==l)||layui.each(t,o)}),a)},i.prototype.on=function(e,t,n){return this.onevent.call(this,t,e,n)},i.prototype.off=function(e,t){return this.event.call(this,t,e,c)},i.prototype.debounce=function(n,i){var o;return function(){var e=this,t=arguments;clearTimeout(o),o=setTimeout(function(){n.apply(e,t)},i)}},i.prototype.throttle=function(e,t){var n=!1;return function(){n||(e.apply(this,arguments),n=!0,setTimeout(function(){n=!1},t))}},p.layui=new i})(window),layui.define(function(e){var t=layui.cache;layui.config({dir:t.dir.replace(/lay\/dest\/$/,"")}),e("layui.all",layui.v)}),(d=>{function h(e){return new o(e)}var e,p=d.document,o=function(e){var n=this,i="object"==typeof e?layui.isArray(e)?e:[e]:(this.selector=e,p.querySelectorAll(e||null));h.each(i,function(e,t){n.push(i[e])})};Array.prototype.indexOf=Array.prototype.indexOf||function(n,i){var o=-1;return i=i||0,layui.each(this,function(e,t){if(n===t&&i<=e)return o=e,!0}),o},o.fn=o.prototype=[],o.fn.constructor=o,h.extend=function(){function i(e,t){for(var n in e=e||("array"===layui.type(t)?[]:{}),t)e[n]=t[n]&&t[n].constructor===Object?i(e[n],t[n]):t[n];return e}var e,t=1,n=arguments;for(n[0]="object"==typeof n[0]?n[0]:{},e=n.length;t<e;t++)"object"==typeof n[t]&&i(n[0],n[t]);return n[0]},h.ie=(e=navigator.userAgent.toLowerCase(),!!(d.ActiveXObject||"ActiveXObject"in d)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")),h.layui=layui||{},h.getPath=layui.cache.dir,h.stope=layui.stope,h.each=function(){return layui.each.apply(layui,arguments),this},h.digit=function(e,t){if("string"!=typeof e&&"number"!=typeof e)return"";var n="";t=t||2;for(var i=(e=String(e)).length;i<t;i++)n+="0";return e<Math.pow(10,t)?n+e:e},h.elem=function(e,t){var n=p.createElement(e);return h.each(t||{},function(e,t){n.setAttribute(e,t)}),n},h.hasScrollbar=function(){return p.body.scrollHeight>(d.innerHeight||p.documentElement.clientHeight)},h.getStyleRules=function(e,n){if(e)return e=(e=e.sheet||e.styleSheet||{}).cssRules||e.rules,"function"==typeof n&&layui.each(e,function(e,t){if(n(t,e))return!0}),e},h.style=function(e){e=e||{};var t=h.elem("style"),n=e.text||"",i=e.target;if(n)return"styleSheet"in t?(t.setAttribute("type","text/css"),t.styleSheet.cssText=n):t.innerHTML=n,t.id="LAY-STYLE-"+(e.id||(n=h.style.index||0,h.style.index++,"DF-"+n)),i&&((e=h(i).find("#"+t.id))[0]&&e.remove(),h(i).append(t)),t},h.position=function(e,t,n){var i,o,r,a,s,l,c,u;t&&(n=n||{},e!==p&&e!==h("body")[0]||(n.clickType="right"),i="right"===n.clickType?{left:(i=n.e||d.event||{}).clientX,top:i.clientY,right:i.clientX,bottom:i.clientY}:e.getBoundingClientRect(),c=t.offsetWidth,u=t.offsetHeight,o=function(e){return p.body[e=e?"scrollLeft":"scrollTop"]|p.documentElement[e]},r=function(e){return p.documentElement[e?"clientWidth":"clientHeight"]},a="margin"in n?n.margin:5,s=i.left,"center"===n.align?s-=(c-e.offsetWidth)/2:"right"===n.align&&(s=s-c+e.offsetWidth),(s=s+c+a>r("width")?r("width")-c-a:s)<a&&(s=a),(l=i.bottom)+u+a>r()&&(i.top>u+a&&i.top<=r()?l=i.top-u-2*a:n.allowBottomOut||(l=r()-u-2*a)<0&&(l=0)),(c=n.position)&&(t.style.position=c),t.style.left=s+("fixed"===c?0:o(1))+"px",t.style.top=l+("fixed"===c?0:o())+"px",h.hasScrollbar()||(u=t.getBoundingClientRect(),!n.SYSTEM_RELOAD&&u.bottom+a>r()&&(n.SYSTEM_RELOAD=!0,setTimeout(function(){h.position(e,t,n)},50))))},h.options=function(t,n){if(n="object"==typeof n?n:{attr:n},t===p)return{};var t=h(t),i=n.attr||"lay-options",t=t.attr(i);try{return new Function("return "+(t||"{}"))()}catch(e){return layui.hint().error(n.errorText||[i+'="'+t+'"',"\n parseerror: "+e].join("\n"),"error"),{}}},h.isTopElem=function(n){var e=[p,h("body")[0]],i=!1;return h.each(e,function(e,t){if(t===n)return i=!0}),i},h.clipboard={writeText:function(t){var n=String(t.text);function e(){var e=p.createElement("textarea");
2e.value=n,e.style.position="fixed",e.style.opacity="0",e.style.top="0px",e.style.left="0px",p.body.appendChild(e),e.select();try{p.execCommand("copy"),"function"==typeof t.done&&t.done()}catch(e){"function"==typeof t.error&&t.error(e)}finally{e.remove?e.remove():p.body.removeChild(e)}}navigator&&"clipboard"in navigator?navigator.clipboard.writeText(n).then(t.done,function(){e()}):e()}},h.passiveSupported=(()=>{var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});d.addEventListener("test",null,t),d.removeEventListener("test",null,t)}catch(e){}return e})(),h.touchEventsSupported=function(){return"ontouchstart"in d},h.touchSwipe=function(e,t){var n,i,o,r=t,a=h(e)[0];a&&h.touchEventsSupported()&&(n={pointerStart:{x:0,y:0},pointerEnd:{x:0,y:0},distanceX:0,distanceY:0,direction:"none",timeStart:null},t=function(e){1===e.touches.length&&(a.addEventListener("touchmove",i,!!h.passiveSupported&&{passive:!1}),a.addEventListener("touchend",o),a.addEventListener("touchcancel",o),n.timeStart=Date.now(),n.pointerStart.x=n.pointerEnd.x=e.touches[0].clientX,n.pointerStart.y=n.pointerEnd.y=e.touches[0].clientY,n.distanceX=n.distanceY=0,n.direction="none",r.onTouchStart)&&r.onTouchStart(e,n)},i=function(e){e.preventDefault(),n.pointerEnd.x=e.touches[0].clientX,n.pointerEnd.y=e.touches[0].clientY,n.distanceX=n.pointerStart.x-n.pointerEnd.x,n.distanceY=n.pointerStart.y-n.pointerEnd.y,Math.abs(n.distanceX)>Math.abs(n.distanceY)?n.direction=0<n.distanceX?"left":"right":n.direction=0<n.distanceY?"up":"down",r.onTouchMove&&r.onTouchMove(e,n)},o=function(e){r.onTouchEnd&&r.onTouchEnd(e,n),a.removeEventListener("touchmove",i),a.removeEventListener("touchend",o,!!h.passiveSupported&&{passive:!1}),a.removeEventListener("touchcancel",o)},a.__lay_touchswipe_cb_&&a.removeEventListener("touchstart",a.__lay_touchswipe_cb_),a.__lay_touchswipe_cb_=t,a.addEventListener("touchstart",t))},o.addStr=function(n,e){return n=n.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),h.each(e,function(e,t){new RegExp("\\b"+t+"\\b").test(n)||(n=n+" "+t)}),n.replace(/^\s|\s$/,"")},o.removeStr=function(n,e){return n=n.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),h.each(e,function(e,t){(t=new RegExp("\\b"+t+"\\b")).test(n)&&(n=n.replace(t,""))}),n.replace(/\s+/," ").replace(/^\s|\s$/,"")},o.fn.find=function(n){var i=[],o="object"==typeof n;return this.each(function(e,t){t=o&&t.contains(n)?n:t.querySelectorAll(n||null),h.each(t,function(e,t){i.push(t)})}),h(i)},o.fn.each=function(e){return h.each.call(this,this,e)},o.fn.addClass=function(n,i){return this.each(function(e,t){t.className=o[i?"removeStr":"addStr"](t.className,n)})},o.fn.removeClass=function(e){return this.addClass(e,!0)},o.fn.hasClass=function(n){var i=!1;return this.each(function(e,t){new RegExp("\\b"+n+"\\b").test(t.className)&&(i=!0)}),i},o.fn.css=function(t,i){function o(e){return isNaN(e)?e:e+"px"}return"string"!=typeof t||void 0!==i?this.each(function(e,n){"object"==typeof t?h.each(t,function(e,t){n.style[e]=o(t)}):n.style[t]=o(i)}):0<this.length?this[0].style[t]:void 0},o.fn.width=function(n){var i=this;return void 0!==n?i.each(function(e,t){i.css("width",n)}):0<i.length?i[0].offsetWidth:void 0},o.fn.height=function(n){var i=this;return void 0!==n?i.each(function(e,t){i.css("height",n)}):0<i.length?i[0].offsetHeight:void 0},o.fn.attr=function(n,i){return void 0!==i?this.each(function(e,t){t.setAttribute(n,i)}):0<this.length?this[0].getAttribute(n):void 0},o.fn.removeAttr=function(n){return this.each(function(e,t){t.removeAttribute(n)})},o.fn.html=function(n){return void 0!==n?this.each(function(e,t){t.innerHTML=n}):0<this.length?this[0].innerHTML:void 0},o.fn.val=function(n){return void 0!==n?this.each(function(e,t){t.value=n}):0<this.length?this[0].value:void 0},o.fn.append=function(n){return this.each(function(e,t){"object"==typeof n?t.appendChild(n):t.innerHTML=t.innerHTML+n})},o.fn.remove=function(n){return this.each(function(e,t){n?t.removeChild(n):t.parentNode.removeChild(t)})},o.fn.on=function(n,i){return this.each(function(e,t){t.attachEvent?t.attachEvent("on"+n,function(e){e.target=e.srcElement,i.call(t,e)}):t.addEventListener(n,i,!1)})},o.fn.off=function(n,i){return this.each(function(e,t){t.detachEvent?t.detachEvent("on"+n,i):t.removeEventListener(n,i,!1)})},d.lay=h,d.layui&&layui.define&&layui.define(function(e){e("lay",h)})})(window,window.document),layui.define(function(e){function s(e){return new RegExp(e,"g")}function n(e,t){var n=this;n.config=n.config||{},n.template=e,(e=function(e){for(var t in e)n.config[t]=e[t]})(i),e(t)}function t(e,t){return new n(e,t)}var i={open:"{{",close:"}}"},l={escape:function(e){return null==e?"":/[<"'>]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;"):e}};n.prototype.tagExp=function(e,t,n){var i=this.config;return s((t||"")+i.open+["#([\\s\\S])+?","([^{#}])*?"][e||0]+i.close+(n||""))},n.prototype.parse=function(t,n){var i=this.config,o=t,r=s("^"+i.open+"#"),a=s(i.close+"$");if("string"!=typeof t)return t;t='"use strict";var view = "'+t.replace(/\s+|\r|\t|\n/g," ").replace(s(i.open+"#"),i.open+"# ").replace(s(i.close+"}"),"} "+i.close).replace(/\\/g,"\\\\").replace(s(i.open+"!(.+?)!"+i.close),function(e){return e.replace(s("^"+i.open+"!"),"").replace(s("!"+i.close),"").replace(s(i.open+"|"+i.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(this.tagExp(),function(e){return'";'+(e=e.replace(r,"").replace(a,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(this.tagExp(1),function(e){var t='"+laytpl.escape(';return e.replace(/\s/g,"")===i.open+i.close?"":(e=e.replace(s(i.open+"|"+i.close),""),/^=/.test(e)?e=e.replace(/^=/,""):/^-/.test(e)&&(e=e.replace(/^-/,""),t='"+('),t+e.replace(/\\(.)/g,"$1")+')+"')})+'";return view;';try{return this.cache=t=new Function("d, laytpl",t),t(n,l)}catch(e){return delete this.cache,t=e,n=o,o="Laytpl Error: ","object"==typeof console&&console.error(o+t+"\n"+(n||"")),o+t}},n.prototype.render=function(e,t){e=e||{};e=this.cache?this.cache(e,l):this.parse(this.template,e);return"function"==typeof t&&t(e),e};t.config=function(e){for(var t in e=e||{})i[t]=e[t]},t.v="2.0.0",e("laytpl",t)}),layui.define(function(e){function t(e){this.config=e||{},this.config.index=++d.index,this.render(!0)}var o=document,r="getElementById",u="getElementsByTagName",l="layui-disabled",d=(t.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},t.prototype.view=function(){var i,e,n,o=this.config,r=o.groups="groups"in o?Number(o.groups)||0:5,a=(o.layout="object"==typeof o.layout?o.layout:["prev","page","next"],o.count=Number(o.count)||0,o.curr=Number(o.curr)||1,o.limits="object"==typeof o.limits?o.limits:[10,20,30,40,50],o.limit=Number(o.limit)||10,o.pages=Math.ceil(o.count/o.limit)||1,o.curr>o.pages?o.curr=o.pages:o.curr<1&&(o.curr=1),r<0?r=1:r>o.pages&&(r=o.pages),o.prev="prev"in o?o.prev:"上一页",o.next="next"in o?o.next:"下一页",o.pages>r?Math.ceil((o.curr+(1<r?1:0))/(0<r?r:1)):1),s={prev:o.prev?'<a class="layui-laypage-prev'+(1==o.curr?" "+l:"")+'" data-page="'+(o.curr-1)+'">'+o.prev+"</a>":"",page:(()=>{var e=[];
2if(o.count<1)return"";1<a&&!1!==o.first&&0!==r&&e.push('<a class="layui-laypage-first" data-page="1"  title="首页">'+(o.first||1)+"</a>");var t=Math.floor((r-1)/2),n=1<a?o.curr-t:1,i=1<a?(t=o.curr+(r-t-1))>o.pages?o.pages:t:r;for(i-n<r-1&&(n=i-r+1),!1!==o.first&&2<n&&e.push('<span class="layui-laypage-spr">...</span>');n<=i;n++)n===o.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(o.theme)?'style="background-color:'+o.theme+';"':"")+"></em><em>"+n+"</em></span>"):e.push('<a data-page="'+n+'">'+n+"</a>");return o.pages>r&&o.pages>i&&!1!==o.last&&(i+1<o.pages&&e.push('<span class="layui-laypage-spr">...</span>'),0!==r)&&e.push('<a class="layui-laypage-last" title="尾页"  data-page="'+o.pages+'">'+(o.last||o.pages)+"</a>"),e.join("")})(),next:o.next?'<a class="layui-laypage-next'+(o.curr==o.pages?" "+l:"")+'" data-page="'+(o.curr+1)+'">'+o.next+"</a>":"",count:'<span class="layui-laypage-count">'+(e="object"==typeof o.countText?o.countText:["共 "," 条"])[0]+o.count+e[1]+"</span>",limit:(i=['<span class="layui-laypage-limits"><select lay-ignore>'],layui.each(o.limits,function(e,t){var n;i.push('<option value="'+t+'"'+(t===o.limit?" selected":"")+">"+(n=t+" 条/页","function"==typeof o.limitTemplet&&o.limitTemplet(t)||n)+"</option>")}),i.join("")+"</select></span>"),refresh:['<a data-page="'+o.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:['<span class="layui-laypage-skip">'+(e="object"==typeof o.skipText?o.skipText:["到第","页","确定"])[0],'<input type="text" min="1" value="'+o.curr+'" class="layui-input">',e[1]+'<button type="button" class="layui-laypage-btn">'+e[2]+"</button>","</span>"].join("")};return['<div class="layui-box layui-laypage layui-laypage-'+(o.theme?/^#/.test(o.theme)?"molv":o.theme:"default")+'" id="layui-laypage-'+o.index+'">',(n=[],layui.each(o.layout,function(e,t){s[t]&&n.push(s[t])}),n.join("")),"</div>"].join("")},t.prototype.jump=function(e,t){if(e){var n=this,i=n.config,o=e.children,r=e[u]("button")[0],a=e[u]("input")[0],e=e[u]("select")[0],s=function(){var e=Number(a.value.replace(/\s|\D/g,""));e&&(i.curr=e,n.render())};if(t)return s();for(var l=0,c=o.length;l<c;l++)"a"===o[l].nodeName.toLowerCase()&&d.on(o[l],"click",function(){var e=Number(this.getAttribute("data-page"));e<1||e>i.pages||(i.curr=e,n.render())});e&&d.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,n.render()}),r&&d.on(r,"click",function(){s()})}},t.prototype.skip=function(n){var i,e;n&&(i=this,e=n[u]("input")[0])&&d.on(e,"keyup",function(e){var t=this.value,e=e.keyCode;/^(37|38|39|40)$/.test(e)||(/\D/.test(t)&&(this.value=t.replace(/\D/,"")),13===e&&i.jump(n,!0))})},t.prototype.render=function(e){var t=this.config,n=this.type(),i=this.view(),n=(2===n?t.elem&&(t.elem.innerHTML=i):3===n?t.elem.html(i):o[r](t.elem)&&(o[r](t.elem).innerHTML=i),t.jump&&t.jump(t,e),o[r]("layui-laypage-"+t.index));this.jump(n),t.hash&&!e&&(location.hash="!"+t.hash+"="+t.curr),this.skip(n)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(t,e,n){return t.attachEvent?t.attachEvent("on"+e,function(e){e.target=e.srcElement,n.call(t,e)}):t.addEventListener(e,n,!1),this}});e("laypage",d)}),((o,v)=>{function r(){var t=this,e=t.config.id;return(r.that[e]=t).inst={hint:function(e){t.hint.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}function b(e){var t,n=this,i=(n.index=++w.index,n.config=lay.extend({},n.config,w.config,e),lay(e.elem||n.config.elem));return 1<i.length?(lay.each(i,function(){w.render(lay.extend({},n.config,{elem:this}))}),n):(e=lay.extend(n.config,lay.options(i[0])),i[0]&&i.attr(l)?(t=r.getThis(i.attr(l)))?t.reload(e):void 0:(e.id="id"in e?e.id:i.attr("id")||n.index,e.index=n.index,void w.ready(function(){n.init()})))}var n=o.layui&&layui.define,i={getPath:o.lay&&lay.getPath?lay.getPath:"",link:function(e,t,n){w.path&&o.lay&&lay.layui&&lay.layui.link(w.path+e,t,n)}},e=o.LAYUI_GLOBAL||{},a="laydate",l="layui-laydate-id",w={v:"5.6.0",config:{weekStart:0},index:o.laydate&&o.laydate.v?1e5:0,path:e.laydate_dir||i.getPath,set:function(e){return this.config=lay.extend({},this.config,e),this},ready:function(e){var t=(n?"modules/":"")+"laydate.css?v="+w.v;return n?layui["layui.all"]?"function"==typeof e&&e():layui.addcss(t,e,"laydate"):i.link(t,e,"laydate"),this}},k="layui-this",_="laydate-disabled",f=[100,2e5],x="layui-laydate-static",S="layui-laydate-list",s="laydate-selected",c="layui-laydate-hint",u="laydate-day-prev",d="laydate-day-next",E=".laydate-btns-confirm",T="laydate-time-text",$="laydate-btns-time",A="layui-laydate-preview",C="layui-laydate-shade",h="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";r.formatArr=function(e){return(e||"").match(new RegExp(h+"|.","g"))||[]},b.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},b.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",
vendor: 12,367 bytes, line 2
2show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},holidays:null,zIndex:null,done:null,change:null,autoConfirm:!0,shade:0},b.prototype.lang=function(){var e={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"},timeout:"结束时间不能早于开始时间<br>请重新选择",invalidDate:"不在有效日期或时间范围内",formatError:["日期格式不合法<br>必须遵循下述格式:<br>","<br>已为你重置"],preview:"当前选中的结果"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time<br>Please re-select",invalidDate:"Invalid date",formatError:["The date format error<br>Must be followed:<br>","<br>It has been reset"],preview:"The selected result"}};return e[this.config.lang]||e.cn},b.prototype.reload=function(e){this.config=lay.extend({},this.config,e),this.init()},b.prototype.init=function(){var a=this,s=a.config,e="static"===s.position,t={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};s.elem=lay(s.elem),s.eventElem=lay(s.eventElem),s.elem[0]&&("array"!==layui.type(s.theme)&&(s.theme=[s.theme]),s.fullPanel&&("datetime"!==s.type||s.range)&&delete s.fullPanel,a.rangeStr=s.range?"string"==typeof s.range?s.range:"-":"",a.rangeLinked=!(!s.range||!s.rangeLinked||"date"!==s.type&&"datetime"!==s.type),a.autoCalendarModel=function(){var e=a.rangeLinked;return a.rangeLinked=s.range&&("date"===s.type||"datetime"===s.type)&&(!a.startDate||!a.endDate||a.startDate&&a.endDate&&a.startDate.year===a.endDate.year&&a.startDate.month===a.endDate.month),lay(a.elem)[a.rangeLinked?"addClass":"removeClass"]("layui-laydate-linkage"),a.rangeLinked!=e},a.autoCalendarModel.auto=a.rangeLinked&&"auto"===s.rangeLinked,"array"===layui.type(s.range)&&(a.rangeElem=[lay(s.range[0]),lay(s.range[1])]),t[s.type]||(o.console&&console.error&&console.error("laydate type error:'"+s.type+"' is not supported"),s.type="date"),s.format===t.date&&(s.format=t[s.type]||t.date),a.format=r.formatArr(s.format),s.weekStart&&!/^[0-6]$/.test(s.weekStart)&&(t=a.lang(),s.weekStart=t.weeks.indexOf(s.weekStart),-1===s.weekStart)&&(s.weekStart=0),a.EXP_IF="",a.EXP_SPLIT="",lay.each(a.format,function(e,t){e=new RegExp(h).test(t)?"\\d{"+(new RegExp(h).test(a.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t,a.EXP_IF=a.EXP_IF+e,a.EXP_SPLIT=a.EXP_SPLIT+"("+e+")"}),a.EXP_IF_ONE=new RegExp("^"+a.EXP_IF+"$"),a.EXP_IF=new RegExp("^"+(s.range?a.EXP_IF+"\\s\\"+a.rangeStr+"\\s"+a.EXP_IF:a.EXP_IF)+"$"),a.EXP_SPLIT=new RegExp("^"+a.EXP_SPLIT+"$",""),a.isInput(s.elem[0])||"focus"===s.trigger&&(s.trigger="click"),s.elem.attr("lay-key",a.index),s.eventElem.attr("lay-key",a.index),s.elem.attr(l,s.id),s.mark=lay.extend({},s.calendar&&"cn"===s.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-10-1":"国庆","0-12-25":"圣诞"}:{},s.mark),lay.each(["min","max"],function(e,t){var n=[],i=[];if("number"==typeof s[t])var o=s[t],r=new Date,r=a.newDate({year:r.getFullYear(),month:r.getMonth(),date:r.getDate(),hours:e?23:0,minutes:e?59:0,seconds:e?59:0}).getTime(),n=[(e=new Date(o?o<864e5?r+864e5*o:o:r)).getFullYear(),e.getMonth()+1,e.getDate()],i=[e.getHours(),e.getMinutes(),e.getSeconds()];else if("string"==typeof s[t])n=(s[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),i=(s[t].match(/\d+:\d+:\d+/)||[""])[0].split(":");else if("object"==typeof s[t])return s[t];s[t]={year:0|n[0]||(new Date).getFullYear(),month:n[1]?(0|n[1])-1:(new Date).getMonth(),date:0|n[2]||(new Date).getDate(),hours:0|i[0],minutes:0|i[1],seconds:0|i[2]}}),a.elemID="layui-laydate"+s.elem.attr("lay-key"),(s.show||e)&&a.render(),e||a.events(),s.value)&&s.isInitValue&&("date"===layui.type(s.value)?a.setValue(a.parse(0,a.systemDate(s.value))):a.setValue(s.value))},b.prototype.render=function(){var n,i,o,r,a=this,s=a.config,l=a.lang(),c="static"===s.position,u=a.elem=lay.elem("div",{id:a.elemID,class:["layui-laydate",s.range?" layui-laydate-range":"",a.rangeLinked?" layui-laydate-linkage":"",c?" "+x:"",s.fullPanel?" laydate-theme-fullpanel":"",(n="",lay.each(s.theme,function(e,t){"default"===t||/^#/.test(t)||(n+=" laydate-theme-"+t)}),n)].join("")}),d=a.elemMain=[],h=a.elemHeader=[],p=a.elemCont=[],f=a.table=[],e=a.footer=lay.elem("div",{class:"layui-laydate-footer"}),t=a.shortcut=lay.elem("ul",{class:"layui-laydate-shortcut"}),g=(s.zIndex&&(u.style.zIndex=s.zIndex),lay.each(new Array(2),function(e){if(!s.range&&0<e)return!0;var n=lay.elem("div",{class:"layui-laydate-header"}),t=[((t=lay.elem("i",{class:"layui-icon laydate-icon laydate-prev-y"})).innerHTML="&#xe65a;",t),((t=lay.elem("i",{class:"layui-icon laydate-icon laydate-prev-m"})).innerHTML="&#xe603;",t),(t=lay.elem("div",{class:"laydate-set-ym"}),i=lay.elem("span"),r=lay.elem("span"),t.appendChild(i),t.appendChild(r),t),((i=lay.elem("i",{class:"layui-icon laydate-icon laydate-next-m"})).innerHTML="&#xe602;",i),((r=lay.elem("i",{class:"layui-icon laydate-icon laydate-next-y"})).innerHTML="&#xe65b;",r)],i=lay.elem("div",{class:"layui-laydate-content"}),o=lay.elem("table"),r=lay.elem("thead"),a=lay.elem("tr");lay.each(t,function(e,t){n.appendChild(t)}),r.appendChild(a),lay.each(new Array(6),function(n){var i=o.insertRow(0);lay.each(new Array(7),function(e){var t;0===n&&((t=lay.elem("th")).innerHTML=l.weeks[(e+s.weekStart)%7],a.appendChild(t)),i.insertCell(e)})}),o.insertBefore(r,o.children[0]),i.appendChild(o),d[e]=lay.elem("div",{class:"layui-laydate-main laydate-main-list-"+e}),d[e].appendChild(n),d[e].appendChild(i),h.push(t),p.push(i),f.push(o)}),lay(e).html((g=[],i=[],"datetime"===s.type&&g.push('<span lay-type="datetime" class="'+$+'">'+l.timeTips+"</span>"),(s.range||"datetime"!==s.type||s.fullPanel)&&g.push('<span class="'+A+'" title="'+l.preview+'"></span>'),lay.each(s.btns,function(e,t){var n=l.tools[t]||"btn";s.range&&"now"===t||(c&&"clear"===t&&(n="cn"===s.lang?"重置":"Reset"),i.push('<span lay-type="'+t+'" class="laydate-btns-'+t+'">'+n+"</span>"))}),g.push('<div class="laydate-footer-btns">'+i.join("")+"</div>"),g.join(""))),s.shortcuts&&(u.appendChild(t),lay(t).html((o=[],lay.each(s.shortcuts,function(e,t){o.push('<li data-index="'+e+'">'+t.text+"</li>")}),o.join(""))).find("li").on("click",function(e){var t=("function"==typeof(t=s.shortcuts[this.dataset.index]||{}).value?t.value():t.value)||[],i=(layui.isArray(t)||(t=[t]),s.type);lay.each(t,function(e,t){var n=[s.dateTime,a.endDate][e];"time"===i&&"date"!==layui.type(t)?a.EXP_IF.test(t)&&(t=(t.match(a.EXP_SPLIT)||[]).slice(1),lay.extend(n,{hours:0|t[0],minutes:0|t[2],seconds:0|t[4]})):lay.extend(n,a.systemDate("date"===layui.type(t)?t:new Date(t))),"time"!==i&&"datetime"!==i||(a[["startTime","endTime"][e]]={hours:n.hours,minutes:n.minutes,seconds:n.seconds}),0===e?a.startDate=lay.extend({},n):a.endState=!0,"year"===i||"month"===i||"time"===i?a.listYM[e]=[n.year,n.month+1]:e&&a.autoCalendarModel.auto&&a.autoCalendarModel()}),a.checkDate("limit").calendar(null,null,"init"),(t=lay(a.footer).find("."+$).removeClass(_))&&"date"===t.attr("lay-type")&&t[0].click(),a.done(null,"change"),lay(this).addClass(k),"static"!==s.position&&a.setValue(a.parse()).done().remove()})),lay.each(d,function(e,t){u.appendChild(t)}),s.showBottom&&u.appendChild(e),lay.elem("style")),m=[],y=!0,t=(lay.each(s.theme,function(e,t){y&&/^#/.test(t)?(y=!(r=!0),m.push(["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} li.layui-this,#{{id}} td.layui-this>div{background-color:{{theme}} !important;}",-1!==s.theme.indexOf("circle")?"":"#{{id}} .layui-this{background-color:{{theme}} !important;}","#{{id}} .laydate-day-now{color:{{theme}} !important;}","#{{id}} .laydate-day-now:after{border-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,a.elemID).replace(/{{theme}}/g,t))):!y&&/^#/.test(t)&&m.push(["#{{id}} .laydate-selected>div{background-color:{{theme}} !important;}","#{{id}} .laydate-selected:hover>div{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,a.elemID).replace(/{{theme}}/g,t))}),s.shortcuts&&s.range&&m.push("#{{id}}.layui-laydate-range{width: 628px;}".replace(/{{id}}/g,a.elemID)),m.length&&(m=m.join(""),"styleSheet"in g?(g.setAttribute("type","text/css"),g.styleSheet.cssText=m):g.innerHTML=m,r&&lay(u).addClass("laydate-theme-molv"),u.appendChild(g)),a.remove(b.thisElemDate),w.thisId=s.id,c?s.elem.append(u):(v.body.appendChild(u),a.position()),s.shade?'<div class="'+C+'" style="z-index:'+(parseInt(layui.getStyle(u,"z-index"))-1)+"; background-color: "+(s.shade[1]||"#000")+"; opacity: "+(s.shade[0]||s.shade)+'"></div>':"");u.insertAdjacentHTML("beforebegin",t),a.checkDate().calendar(null,0,"init"),a.changeEvent(),b.thisElemDate=a.elemID,a.renderAdditional(),"function"==typeof s.ready&&s.ready(lay.extend({},s.dateTime,{month:s.dateTime.month+1})),a.preview()},b.prototype.remove=function(e){var t=this,n=t.config,i=lay("#"+(e||t.elemID));return i[0]&&(i.hasClass(x)||t.checkDate(function(){i.remove(),delete t.startDate,delete t.endDate,delete t.endState,delete t.startTime,delete t.endTime,delete w.thisId,"function"==typeof n.close&&n.close(t)}),lay("."+C).remove()),t},b.prototype.position=function(){var e=this.config;return lay.position(e.elem[0],this.elem,{position:e.position}),this},b.prototype.hint=function(e){var t=this,n=(t.config,lay.elem("div",{class:c}));t.elem&&(n.innerHTML=(e="object"==typeof e?e||{}:{content:e}).content||"",lay(t.elem).find("."+c).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){lay(t.elem).find("."+c).remove()},"ms"in e?e.ms:3e3))},b.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),11<t&&(t=0,e++),[e,t]},b.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},b.prototype.checkDate=function(e){function n(i,o,r){var a=["startTime","endTime"];o=(o.match(l.EXP_SPLIT)||[]).slice(1),r=r||0,c.range&&(l[a[r]]=l[a[r]]||{}),lay.each(l.format,function(e,t){var n=parseFloat(o[e]);o[e].length<t.length&&(s=!0),/yyyy|y/.test(t)?(n<f[0]&&(n=f[0],s=!0),i.year=n):/MM|M/.test(t)?(n<1&&(n=1,s=!0),i.month=n-1):/dd|d/.test(t)?(n<1&&(n=1,s=!0),i.date=n):/HH|H/.test(t)?(n<0&&(s=!(n=0)),23<n&&(n=23,s=!0),i.hours=n,c.range&&(l[a[r]].hours=n)):/mm|m/.test(t)?(n<0&&(s=!(n=0)),59<n&&(n=59,s=!0),i.minutes=n,c.range&&(l[a[r]].minutes=n)):/ss|s/.test(t)&&(n<0&&(s=!(n=0)),59<n&&(n=59,s=!0),i.seconds=n,c.range)&&(l[a[r]].seconds=n)}),p(i)}var t,s,i,o,r,l=this,c=(new Date,l.config),a=l.lang(),u=c.dateTime=c.dateTime||l.systemDate(),d=c.elem[0],h=(l.isInput(d),(()=>{if(l.rangeElem){var e=[l.rangeElem[0].val(),l.rangeElem[1].val()];if(e[0]&&e[1])return e.join(" "+l.rangeStr+" ")}return l.isInput(d)?d.value:"static"===c.position?"":lay(d).attr("lay-date")})()),p=function(e){e&&(e.year>f[1]&&(e.year=f[1],s=!0),11<e.month&&(e.month=11,s=!0),59<e.seconds&&(e.seconds=0,e.minutes++,s=!0),59<e.minutes&&(e.minutes=0,e.hours++,s=!0),23<e.hours&&(e.hours=0,s=!0),t=w.getEndDate(e.month+1,e.year),e.date>t)&&(e.date=t,s=!0)};return"limit"===e?c.range?(p(l.rangeLinked?l.startDate:u),l.endDate&&p(l.endDate)):p(u):("string"==typeof(h=h||c.value)&&(h=h.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),(i=function(){var e,t,n;c.range&&(l.endDate=l.endDate||lay.extend({},c.dateTime,(e={},t=c.dateTime,n=l.getAsYM(t.year,t.month),"year"===c.type?e.year=t.year+1:"time"!==c.type&&(e.year=n[0],e.month=n[1]),"datetime"!==c.type&&"time"!==c.type||(e.hours=23,e.minutes=e.seconds=59),e)))})(),"string"==typeof h&&h?l.EXP_IF.test(h)?c.range?(h=h.split(" "+l.rangeStr+" "),lay.each([c.dateTime,l.endD
2ate],function(e,t){n(t,h[e],e)})):n(u,h):(l.hint(a.formatError[0]+(c.range?c.format+" "+l.rangeStr+" "+c.format:c.format)+a.formatError[1]),s=!0):h&&"date"===layui.type(h)?c.dateTime=l.systemDate(h):(c.dateTime=l.systemDate(),delete l.startTime,delete l.endDate,i(),delete l.endTime),l.rangeElem&&(i=[l.rangeElem[0].val(),l.rangeElem[1].val()],o=[c.dateTime,l.endDate],lay.each(i,function(e,t){l.EXP_IF_ONE.test(t)&&n(o[e],t,e)})),p(u),c.range&&p(l.endDate),s&&h&&l.setValue(!c.range||l.endDate?l.parse():""),l.getDateTime(u)>l.getDateTime(c.max)?(u=c.dateTime=lay.extend({},c.max),r=!0):l.getDateTime(u)<l.getDateTime(c.min)&&(u=c.dateTime=lay.extend({},c.min),r=!0),c.range&&((l.getDateTime(l.endDate)<l.getDateTime(c.min)||l.getDateTime(l.endDate)>l.getDateTime(c.max))&&(l.endDate=lay.extend({},c.max),r=!0),l.startTime={hours:c.dateTime.hours,minutes:c.dateTime.minutes,seconds:c.dateTime.seconds},l.endTime={hours:l.endDate.hours,minutes:l.endDate.minutes,seconds:l.endDate.seconds},"month"===c.type)&&(c.dateTime.date=1,l.endDate.date=1),r&&h&&(l.setValue(l.parse()),l.hint("value "+a.invalidDate+a.formatError[1])),l.startDate=l.startDate||h&&lay.extend({},c.dateTime),l.autoCalendarModel.auto&&l.autoCalendarModel(),l.endState=!c.range||!l.rangeLinked||!(!l.startDate||!l.endDate),e&&e()),l},b.prototype.mark=function(e,n){var i,t=this.config;return lay.each(t.mark,function(e,t){(e=e.split("-"))[0]!=n[0]&&0!=e[0]||e[1]!=n[1]&&0!=e[1]||e[2]!=n[2]||(i=t||n[2])}),i&&e.find("div").html('<span class="laydate-day-mark">'+i+"</span>"),this},b.prototype.holidays=function(a,s){var e=this.config,l=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(r,e){lay.each(e,function(e,t){var n=a.attr("lay-ymd"),i=t.split("-"),o=n.split("-");lay.each(i,function(e,t){i[e]=parseInt(t,10)}),lay.each(o,function(e,t){o[e]=parseInt(t,10)}),i.join("-")===o.join("-")&&a.find("div").html('<span class="laydate-day-holidays"'+(l[r]?'type="'+l[r]+'"':"")+">"+s[2]+"</span>")})}),this},b.prototype.startOfYear=function(e){return(e=new Date(e)).setFullYear(e.getFullYear(),0,1),e.setHours(0,0,0,0),e},b.prototype.endOfYear=function(e){var t=(e=new Date(e)).getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e},b.prototype.startOfMonth=function(e){return(e=new Date(e)).setDate(1),e.setHours(0,0,0,0),e},b.prototype.endOfMonth=function(e){var t=(e=new Date(e)).getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e},b.prototype.addDays=function(e,t){return e=new Date(e),t&&e.setDate(e.getDate()+t),e},b.prototype.isDisabledYearOrMonth=function(e,t,n){for(var i=this.config,o="year"===t?this.startOfYear(e):this.startOfMonth(e),t="year"===t?this.endOfYear(e):this.endOfMonth(e),r=Math.floor((t.getTime()-o.getTime())/864e5)+1,a=0,s=0;s<r;s++){var l=this.addDays(o,s);i.disabledDate.call(i,l,n)&&a++}return a===r},b.prototype.isDisabledDate=function(e,t){t=t||{};var n=this.config,i=n.range&&0!==t.rangeType?"end":"start";return!!n.disabledDate&&"time"!==n.type&&("date"===t.disabledType||"datetime"===t.disabledType)&&((e=new Date(e)).setHours(0,0,0,0),"year"===t.type||"month"===t.type?this.isDisabledYearOrMonth(e,t.type,i):n.disabledDate.call(n,e,i))},b.prototype.isDisabledTime=function(e,t){t=t||{};var n,i=this.config,o=i.range&&0!==t.rangeType?"end":"start";return!!i.disabledTime&&!("time"!==i.type&&"datetime"!==i.type||"time"!==t.disabledType&&"datetime"!==t.disabledType)&&(n=function(e,t,n){return function(){return-1!==("function"==typeof t&&t.apply(i,n)||[]).indexOf(e)}},e=this.systemDate(new Date(e)),o=i.disabledTime.call(i,this.newDate(e),o)||{},"datetime"===t.disabledType?n(e.hours,o.hours)()||n(e.minutes,o.minutes,[e.hours])()||n(e.seconds,o.seconds,[e.hours,e.minutes])():[n(e.hours,o.hours),n(e.minutes,o.minutes,[e.hours]),n(e.seconds,o.seconds,[e.hours,e.minutes])][t.time.length-1]())},b.prototype.isDisabledDateTime=function(e,t){return this.config,this.isDisabledDate(e,t=t||{})||this.isDisabledTime(e,t)},b.prototype.limit=function(t){t=t||{};var o=this,e=o.config,r={},n=t.index>(t.time?0:41)?o.endDate:e.dateTime;
vendor: 16,818 bytes, line 2
2return lay.each({now:lay.extend({},n,t.date||{}),min:e.min,max:e.max},function(e,n){var i;r[e]=o.newDate(lay.extend({year:n.year,month:"year"===t.type?0:n.month,date:"year"===t.type||"month"===t.type?1:n.date},(i={},lay.each(t.time,function(e,t){i[t]=n[t]}),i))).getTime()}),n=r.now<r.min||r.max<r.now||o.isDisabledDateTime(r.now,t),t.elem&&t.elem[n?"addClass":"removeClass"](_),n},b.prototype.thisDateTime=function(e){var t=this.config;return e?this.endDate:t.dateTime},b.prototype.calendar=function(e,o,t){o=o?1:0;var r,a,s,l=this,n=l.config,c=e||l.thisDateTime(o),i=new Date,u=l.lang(),d="date"!==n.type&&"datetime"!==n.type,h=lay(l.table[o]).find("td"),p=lay(l.elemHeader[o][2]).find("span");return c.year<f[0]&&(c.year=f[0],l.hint(u.invalidDate)),c.year>f[1]&&(c.year=f[1],l.hint(u.invalidDate)),l.firstDate||(l.firstDate=lay.extend({},c)),i.setFullYear(c.year,c.month,1),r=(i.getDay()+(7-n.weekStart))%7,a=w.getEndDate(c.month||12,c.year),s=w.getEndDate(c.month+1,c.year),lay.each(h,function(e,t){var n,i=[c.year,c.month];(t=lay(t)).removeAttr("class"),e<r?(n=a-r+e,t.addClass("laydate-day-prev"),i=l.getAsYM(c.year,c.month,"sub")):r<=e&&e<s+r?(n=e-r,l.rangeLinked||n+1===c.date&&t.addClass(k)):(n=e-s-r,t.addClass("laydate-day-next"),i=l.getAsYM(c.year,c.month)),i[1]++,i[2]=n+1,t.attr("lay-ymd",i.join("-")).html("<div>"+i[2]+"</div>"),l.mark(t,i).holidays(t,i).limit({elem:t,date:{year:i[0],month:i[1]-1,date:i[2]},index:e,rangeType:o,disabledType:"date"})}),lay(p[0]).attr("lay-ym",c.year+"-"+(c.month+1)),lay(p[1]).attr("lay-ym",c.year+"-"+(c.month+1)),"cn"===n.lang?(lay(p[0]).attr("lay-type","year").html(c.year+" 年"),lay(p[1]).attr("lay-type","month").html(c.month+1+" 月")):(lay(p[0]).attr("lay-type","month").html(u.month[c.month]),lay(p[1]).attr("lay-type","year").html(c.year)),d&&(n.range?!e&&"init"===t||(l.listYM=[[(l.startDate||n.dateTime).year,(l.startDate||n.dateTime).month+1],[l.endDate.year,l.endDate.month+1]],l.list(n.type,0).list(n.type,1),"time"===n.type?l.setBtnStatus("时间",lay.extend({},l.systemDate(),l.startTime),lay.extend({},l.systemDate(),l.endTime)):l.setBtnStatus(!0)):(l.listYM=[[c.year,c.month+1]],l.list(n.type,0))),n.range&&"init"===t&&(l.rangeLinked?(i=l.getAsYM(c.year,c.month,o?"sub":null),l.calendar(lay.extend({},c,{year:i[0],month:i[1]}),1-o)):l.calendar(null,1-o)),n.range||(h=["hours","minutes","seconds"],l.limit({elem:lay(l.footer).find(".laydate-btns-now"),date:l.systemDate(/^(datetime|time)$/.test(n.type)?new Date:null),index:0,time:h,disabledType:"datetime"}),l.limit({elem:lay(l.footer).find(E),index:0,time:h,disabledType:"datetime"})),l.setBtnStatus(),lay(l.shortcut).find("li."+k).removeClass(k),n.range&&!d&&"init"!==t&&l.stampRange(),l},b.prototype.list=function(i,o){var r,a,e,n,s,l,t,c=this,u=c.config,d=c.rangeLinked?u.dateTime:[u.dateTime,c.endDate][o],h=c.lang(),p=u.range&&"date"!==u.type&&"datetime"!==u.type,f=lay.elem("ul",{class:S+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[i]}),g=c.elemHeader[o],m=lay(g[2]).find("span"),y=c.elemCont[o||0],v=lay(y).find("."+S)[0],b="cn"===u.lang,w=b?"年":"",x=c.listYM[o]||{},A=["hours","minutes","seconds"],C=["startTime","endTime"][o];return x[0]<1&&(x[0]=1),"year"===i?(e=r=x[0]-7,r<1&&(e=r=1),lay.each(new Array(15),function(e){var t=lay.elem("li",{"lay-ym":r}),n={year:r,month:0,date:1};r==x[0]&&lay(t).addClass(k),t.innerHTML=r+w,f.appendChild(t),c.limit({elem:lay(t),date:n,index:o,type:i,rangeType:o,disabledType:"date"}),r++}),lay(m[b?0:1]).attr("lay-ym",r-8+"-"+x[1]).html(e+w+" - "+(r-1)+w)):"month"===i?(lay.each(new Array(12),function(e){var t=lay.elem("li",{"lay-ym":e}),n={year:x[0],month:e,date:1};e+1==x[1]&&lay(t).addClass(k),t.innerHTML=h.month[e]+(b?"月":""),f.appendChild(t),c.limit({elem:lay(t),date:n,index:o,type:i,rangeType:o,disabledType:"date"})}),lay(m[b?0:1]).attr("lay-ym",x[0]+"-"+x[1]).html(x[0]+w)):"time"===i&&(a=function(){lay(f).find("ol").each(function(n,e){lay(e).find("li").each(function(e,t){c.limit({elem:lay(t),date:[{hours:e},{hours:c[C].hours,minutes:e},{hours:c[C].hours,minutes:c[C].minutes,seconds:e}][n],index:o,rangeType:o,disabledType:"time",time:[["hours"],["hours","minutes"],["hours","minutes","seconds"]][n]})})}),u.range||c.limit({elem:lay(c.footer).find(E),date:c[C],index:0,time:["hours","minutes","seconds"],disabledType:"datetime"})},u.range?c[C]||(c[C]="startTime"===C?d:c.endDate):c[C]=d,lay.each([24,60,60],function(t,e){var n=lay.elem("li"),i=["<p>"+h.time[t]+"</p><ol>"];lay.each(new Array(e),function(e){i.push("<li"+(c[C][A[t]]===e?' class="'+k+'"':"")+">"+lay.digit(e,2)+"</li>")}),n.innerHTML=i.join("")+"</ol>",f.appendChild(n)}),a(),e=-1!==u.format.indexOf("H"),m=-1!==u.format.indexOf("m"),t=-1!==u.format.indexOf("s"),n=f.children,s=0,lay.each([e,m,t],function(e,t){t||(n[e].className+=" layui-hide",s++)}),f.className+=" laydate-time-list-hide-"+s),v&&y.removeChild(v),y.appendChild(f),"year"===i||"month"===i?(lay(c.elemMain[o]).addClass("laydate-ym-show"),lay(f).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(_)||(c.rangeLinked?lay.extend(d,{year:"year"===i?e:x[0],month:"year"===i?x[1]-1:e}):d[i]=e,"year"===u.type||"month"===u.type?(lay(f).find("."+k).removeClass(k),lay(this).addClass(k),"month"===u.type&&"year"===i&&(c.listYM[o][0]=e,p&&((o?c.endDate:d).year=e),c.list("month",o))):(c.checkDate("limit").calendar(d,o,"init"),c.closeList()),c.setBtnStatus(),!u.range&&u.autoConfirm&&("month"===u.type&&"month"===i||"year"===u.type&&"year"===i)&&c.setValue(c.parse()).done().remove(),c.autoCalendarModel.auto&&!c.rangeLinked?c.choose(lay(y).find("td.layui-this"),o):c.endState&&c.done(null,"change"),lay(c.footer).find("."+$).removeClass(_))})):(m=lay.elem("span",{class:T}),l=function(){lay(f).find("ol").each(function(e){var n=this,t=lay(n).find("li");n.scrollTop=30*(c[C][A[e]]-2),n.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(_))return n.scrollTop=30*(e-2),!0})})},t=lay(g[2]).find("."+T),l(),m.innerHTML=u.range?[h.startTime,h.endTime][o]:h.timeTips,lay(c.elemMain[o]).addClass("laydate-time-show"),t[0]&&t.remove(),g[2].appendChild(m),(v=lay(f).find("ol")).each(function(t){var n=this;lay(n).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(_)||(u.range?c[C][A[t]]=e:d[A[t]]=e,lay(n).find("."+k).removeClass(k),lay(this).addClass(k),a(),l(),(c.endDate||"time"===u.type||"datetime"===u.type&&u.fullPanel)&&c.done(null,"change"),c.setBtnStatus())})}),layui.device().mobile&&v.css({overflowY:"auto",touchAction:"pan-y"})),c},b.prototype.listYM=[],b.prototype.closeList=function(){var n=this;n.config,lay.each(n.elemCont,function(e,t){lay(this).find("."+S).remove(),lay(n.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(n.elem).find("."+T).remove()},b.prototype.setBtnStatus=function(e,t,n){var i=this,o=i.config,r=i.lang(),a=lay(i.footer).find(E),s="datetime"===o.type||"time"===o.type?["hours","minutes","seconds"]:void 0;o.range&&(t=t||(i.rangeLinked?i.startDate:o.dateTime),n=n||i.endDate,o=!i.endState||i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit({date:t,disabledType:"datetime",time:s,rangeType:0})||i.limit({date:n,disabledType:"datetime",time:s,rangeType:1})?a.addClass(_):a[o?"addClass":"removeClass"](_),e)&&o&&i.hint("string"==typeof e?r.timeout.replace(/\u65e5\u671f/g,e):r.timeout)},b.prototype.parse=function(e,t){var n=this.config,i=this.rangeLinked?this.startDate:n.dateTime,t=t||("end"==e?lay.extend({},this.endDate,this.endTime):n.range?lay.extend({},i||n.dateTime,this.startTime):n.dateTime),i=w.parse(t,this.format,1);return n.range&&void 0===e?i+" "+this.rangeStr+" "+this.parse("end"):i},b.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},b.prototype.getDateTime=function(e){return this.newDate(e).getTime()},b.prototype.setValue=function(e){var t=this.config,n=t.elem[0];return"static"!==t.position&&(e=e||"",this.isInput(n)?lay(n).val(e):(t=this.rangeElem)?("array"!==layui.type(e)&&(e=e.split(" "+this.rangeStr+" ")),t[0].val(e[0]||""),t[1].val(e[1]||"")):(0===lay(n).find("*").length&&lay(n).html(e),lay(n).attr("lay-date",e))),this},b.prototype.preview=function(){var e,t=this.config;t.isPreview&&(e=lay(this.elem).find("."+A),t=!t.range||(this.rangeLinked?this.endState:this.endDate)?this.parse():"",e.html(t),e.html())&&(e.css({color:"#16b777"}),setTimeout(function(){e.css({color:"#777"})},300))},b.prototype.renderAdditional=function(){this.config.fullPanel&&this.list("time",0)},b.prototype.stampRange=function(){var i,o=this,r=o.config,a=o.rangeLinked?o.startDate:r.dateTime,e=lay(o.elem).find("td");r.range&&!o.endState&&lay(o.footer).find(E).addClass(_),a=a&&o.newDate({year:a.year,month:a.month,date:a.date}).getTime(),i=o.endState&&o.endDate&&o.newDate({year:o.endDate.year,month:o.endDate.month,date:o.endDate.date}).getTime(),lay.each(e,function(e,t){var n=lay(t).attr("lay-ymd").split("-"),n=o.newDate({year:n[0],month:n[1]-1,date:n[2]}).getTime();r.rangeLinked&&!o.startDate&&n===o.newDate(o.systemDate()).getTime()&&lay(t).addClass(lay(t).hasClass(u)||lay(t).hasClass(d)?"":"laydate-day-now"),lay(t).removeClass(s+" "+k),n!==a&&n!==i||(o.rangeLinked||!o.rangeLinked&&(e<42?n===a:n===i))&&lay(t).addClass(lay(t).hasClass(u)||lay(t).hasClass(d)?s:k),a<n&&n<i&&lay(t).addClass(s)})},b.prototype.done=function(e,t){var n=this,i=n.config,o=lay.extend({},lay.extend(n.rangeLinked?n.startDate:i.dateTime,n.startTime)),r=lay.extend({},lay.extend(n.endDate,n.endTime));return lay.each([o,r],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),n.preview(),e=e||[n.parse(),o,r],"change"===t&&n.renderAdditional(),"function"==typeof i[t||"done"]&&i[t||"done"].apply(i,e),n},b.prototype.choose=function(e,n){var i,o,t,r,a,s;e.hasClass(_)||(o=(i=this).config,t=n,i.rangeLinked&&(i.endState||!i.startDate?(n=0,i.endState=!1):(n=1,i.endState=!0)),r=i.thisDateTime(n),lay(i.elem).find("td"),e={year:0|(e=e.attr("lay-ymd").split("-"))[0],month:(0|e[1])-1,date:0|e[2]},lay.extend(r,e),o.range?(lay.each(["startTime","endTime"],function(e,t){i[t]=i[t]||{hours:e?23:0,minutes:e?59:0,seconds:e?59:0},n===e&&(i.getDateTime(lay.extend({},r,i[t]))<i.getDateTime(o.min)?(i[t]={hours:o.min.hours,minutes:o.min.minutes,seconds:o.min.seconds},lay.extend(r,i[t])):i.getDateTime(lay.extend({},r,i[t]))>i.getDateTime(o.max)&&(i[t]={hours:o.max.hours,minutes:o.max.minutes,seconds:o.max.seconds},lay.extend(r,i[t])))}),n||(i.startDate=lay.extend({},r)),i.endState&&!i.limit({date:i.rangeLinked?i.startDate:i.thisDateTime(1-n),disabledType:"date"})&&(((a=i.endState&&i.autoCalendarModel.auto?i.autoCalendarModel():a)||i.rangeLinked&&i.endState)&&i.newDate(i.startDate)>i.newDate(i.endDate)&&(i.startDate.year===i.endDate.year&&i.startDate.month===i.endDate.month&&i.startDate.date===i.endDate.date&&(s=i.startTime,i.startTime=i.endTime,i.endTime=s),s=i.startDate,i.startDate=lay.extend({},i.endDate,i.startTime),o.dateTime=lay.extend({},i.startDate),i.endDate=lay.extend({},s,i.endTime)),a)&&(o.dateTime=lay.extend({},i.startDate)),i.rangeLinked?(e=lay.extend({},r),!t||n||a||(s=i.getAsYM(r.year,r.month,"sub"),lay.extend(o.dateTime,{year:s[0],month:s[1]})),i.calendar(e,t,a?"init":null)):i.calendar(null,n,a?"init":null),i.endState&&i.done(null,"change")):"static"===o.position?i.calendar().done().done(null,"change"):"date"===o.type?o.autoConfirm?i.setValue(i.parse()).done().remove():i.calendar().done(null,"change"):"datetime"===o.type&&i.calendar().done(null,"change"))},b.prototype.tool=function(t,e){var n=this,i=n.config,o=n.lang(),r=i.dateTime,a="static"===i.position,s={datetime:function(){lay(t).hasClass(_)||(n.list("time",0),i.range&&n.list("time",1),lay(t).attr("lay-type","date").html(n.lang().dateTips))},date:function(){n.closeList(),lay(t).attr("lay-type","datetime").html(n.lang().timeTips)},clear:function(){a&&(lay.extend(r,n.firstDate),n.calendar()),i.range&&(delete i.dateTime,delete n.endDate,delete n.startTime,delete n.endTime),n.setValue(""),n.done(null,"onClear").done(["",{},{}]).remove()},now:function(){var e=new Date;if(lay(t).hasClass(_))return n.hint(o.tools.now+", "+o.invalidDate);lay.extend(r,n.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),n.setValue(n.parse()),a&&n.calendar(),n.done(null,"onNow").done().remove()},confirm:function(){if(i.range){if(lay(t).hasClass(_))return("time"===i.type?n.startTime&&n.endTime&&n.newDate(n.startTime)>n.newDate(n.endTime):n.startDate&&n.endDate&&n.newDate(lay.extend({},n.startDate,n.startTime||{}))>n.newDate(lay.extend({},n.endDate,n.endTime||{})))?n.hint("time"===i.type?o.timeout.replace(/\u65e5\u671f/g,"时间"):o.timeout):n.hint(o.invalidDate)}else if(lay(t).hasClass(_))return n.hint(o.invalidDate);n.setValue(n.parse()),n.done(null,"onConfirm").done().remove()}};s[e]&&s[e]()},b.prototype.change=function(i){function e(e){var t=lay(l).find(".laydate-year-list")[0],n=lay(l).find(".laydate-month-list")[0];return t&&(c[0]=e?c[0]-15:c[0]+15,o.list("year",i)),n&&(e?c[0]--:c[0]++,o.list("month",i)),(t||n)&&(lay.extend(a,{year:c[0]}),s&&(a.year=c[0]),r.range||o.done(null,"change"),r.range||o.limit({elem:lay(o.footer).find(E),date:{year:c[0]},disabledType:"datetime"})),o.setBtnStatus(),t||n}var o=this,r=o.config,a=o.thisDateTime(i),s=r.range&&("year"===r.type||"month"===r.type),l=o.elemCont[i||0],c=o.listYM[i];return{prevYear:function(){e("sub")||(o.rangeLinked?(r.dateTime.year--,o.checkDate("limit").calendar(null,null,"init")):(a.year--,o.checkDate("limit").calendar(null,i),o.autoCalendarModel.auto?o.choose(lay(l).find("td.layui-this"),i):o.done(null,"change")))},prevMonth:function(){o.rangeLinked&&(a=r.dateTime);var e=o.getAsYM(a.year,a.month,"sub");lay.extend(a,{year:e[0],month:e[1]}),o.checkDate("limit").calendar(null,null,"init"),o.rangeLinked||(o.autoCalendarModel.auto?o.choose(lay(l).find("td.layui-this"),i):o.done(null,"change"))},nextMonth:function(){o.rangeLinked&&(a=r.dateTime);var e=o.getAsYM(a.year,a.month);lay.extend(a,{year:e[0],month:e[1]}),o.checkDate("limit").calendar(null,null,"init"),o.rangeLinked||(o.autoCalendarModel.auto?o.choose(lay(l).find("td.layui-this"),i):o.done(null,"change"))},nextYear:function(){e()||(o.rangeLinked?(r.dateTime.year++,o.checkDate("limit").calendar(null,0,"init")):(a.year++,o.checkDate("limit").calendar(null,i),o.autoCalendarModel.auto?o.choose(lay(l).find("td.layui-this"),i):o.done(null,"change")))}}},b.prototype.changeEvent=function(){var o=this;o.config,lay(o.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(o.elemHeader,function(i,e){lay(e[0]).on("click",function(e){o.change(i).prevYear()}),lay(e[1]).on("click",function(e){o.change(i).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=(n=lay(this)).attr("lay-ym"),n=n.attr("lay-type");t&&(t=t.split("-"),o.listYM[i]=[0|t[0],0|t[1]],o.list(n,i),lay(o.footer).find("."+$).addClass(_))}),lay(e[3]).on("click",function(e){o.change(i).nextMonth()}),lay(e[4]).on("click",function(e){o.change(i).nextYear()})}),lay.each(o.table,function(e,t){lay(t).find("td").on("click",function(){o.choose(lay(this),e)})}),lay(o.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");o.tool(this,e)})},b.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(e.tagName)},b.prototype.events=function(){var e,t=this,n=t.config;n.elem[0]&&!n.elem[0].eventHandler&&(n.elem.on(n.trigger,e=function(){w.thisId!==n.id&&t.render()}),n.elem[0].eventHandler=!0,n.eventElem.on(n.trigger,e),t.unbind=function(){t.remove(),n.elem.off(n.trigger,e),n.elem.removeAttr("lay-key"),n.elem.removeAttr(l),n.elem[0].eventHandler=!1,n.eventElem.off(n.trigger,e),n.eventElem.removeAttr("lay-key"),delete r.that[n.id]})},r.that={},r.getThis=function(e){var t=r.that[e];return!t&&n&&layui.hint().error(e?a+" instance with ID '"+e+"' not found":"ID argument required"),t},i.run=function(i){i(v).on("mousedown",function(e){var t,n;w.thisId&&(t=r.getThis(w.thisId))&&(n=t.config,e.target===n.elem[0]||e.target===n.eventElem[0]||e.target===i(n.closeStop)[0]||n.elem[0]&&n.elem[0].contains(e.target)||t.remove())}).on("keydown",function(e){var t;w.thisId&&(t=r.getThis(w.thisId))&&"static"!==t.config.position&&13===e.keyCode&&i("#"+t.elemID)[0]&&t.elemID===b.thisElemDate&&(e.preventDefault(),i(t.footer).find(E)[0].click())}),i(o).on("resize",function(){if(w.thisId){var e=r.getThis(w.thisId);if(e)return!(!e.elem||!i(".layui-laydate")[0])&&void e.position()}})},w.render=function(e){return e=new b(e),r.call(e)},w.reload=function(e,t){if(e=r.getThis(e))return e.reload(t)},w.getInst=function(e){if(e=r.getThis(e))return e.inst},w.hint=function(e,t){if(e=r.getThis(e))return e.hint(t)},w.unbind=function(e){if(e=r.getThis(e))return e.unbind()}
2,w.close=function(e){if(e=r.getThis(e||w.thisId))return e.remove()},w.parse=function(n,i,o){return n=n||{},i=((i="string"==typeof i?r.formatArr(i):i)||[]).concat(),lay.each(i,function(e,t){/yyyy|y/.test(t)?i[e]=lay.digit(n.year,t.length):/MM|M/.test(t)?i[e]=lay.digit(n.month+(o||0),t.length):/dd|d/.test(t)?i[e]=lay.digit(n.date,t.length):/HH|H/.test(t)?i[e]=lay.digit(n.hours,t.length):/mm|m/.test(t)?i[e]=lay.digit(n.minutes,t.length):/ss|s/.test(t)&&(i[e]=lay.digit(n.seconds,t.length))}),i.join("")},w.getEndDate=function(e,t){var n=new Date;return n.setFullYear(t||n.getFullYear(),e||n.getMonth()+1,1),new Date(n.getTime()-864e5).getDate()},n?(w.ready(),layui.define("lay",function(e){w.path=layui.cache.dir,i.run(lay),e(a,w)})):"function"==typeof define&&define.amd?define(function(){return i.run(lay),w}):(w.ready(),i.run(o.lay),o.laydate=w)})(window,window.document),((e,t)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)})(void 0!==window?window:this,function(x,O){function P(e,t){return t.toUpperCase()}var d=[],f=x.document,u=d.slice,B=d.concat,j=d.push,H=d.indexOf,F={},z=F.toString,g=F.hasOwnProperty,m={},e="1.12.4",A=function(e,t){return new A.fn.init(e,t)},W=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,U=/^-ms-/,q=/-([\da-z])/gi;function V(e){var t=!!e&&"length"in e&&e.length,n=A.type(e);return"function"!==n&&!A.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}A.fn=A.prototype={jquery:e,constructor:A,selector:"",length:0,toArray:function(){return u.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:u.call(this)},pushStack:function(e){return(e=A.merge(this.constructor(),e)).prevObject=this,e.context=this.context,e},each:function(e){return A.each(this,e)},map:function(n){return this.pushStack(A.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:j,sort:d.sort,splice:d.splice},A.extend=A.fn.extend=function(){var e,t,n,i,o,r=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||A.isFunction(r)||(r={}),a===s&&(r=this,a--);a<s;a++)if(null!=(i=arguments[a]))for(n in i)o=r[n],r!==(t=i[n])&&(l&&t&&(A.isPlainObject(t)||(e=A.isArray(t)))?(o=e?(e=!1,o&&A.isArray(o)?o:[]):o&&A.isPlainObject(o)?o:{},r[n]=A.extend(l,o,t)):void 0!==t&&(r[n]=t));return r},A.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===A.type(e)},isArray:Array.isArray||function(e){return"array"===A.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!A.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){for(var t in e)return!1;return!0},isPlainObject:function(e){if(!e||"object"!==A.type(e)||e.nodeType||A.isWindow(e))return!1;try{if(e.constructor&&!g.call(e,"constructor")&&!g.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!m.ownFirst)for(var t in e)return g.call(e,t);for(t in e);return void 0===t||g.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?F[z.call(e)]||"object":typeof e},globalEval:function(e){e&&A.trim(e)&&(x.execScript||function(e){x.eval.call(x,e)})(e)},camelCase:function(e){return e.replace(U,"ms-").replace(q,P)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(V(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(W,"")},makeArray:function(e,t){return t=t||[],null!=e&&(V(Object(e))?A.merge(t,"string"==typeof e?[e]:e):j.call(t,e)),t},inArray:function(e,t,n){var i;if(t){if(H)return H.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;)e[o++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,a=!n;o<r;o++)!t(e[o],o)!=a&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(V(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return B.apply([],a)},guid:1,proxy:function(e,t){var n,i;return"string"==typeof t&&(i=e[t],t=e,e=i),A.isFunction(e)?(n=u.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(u.call(arguments)))}).guid=e.guid=e.guid||A.guid++,i):void 0},now:function(){return+new Date},support:m}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=d[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){F["[object "+t+"]"]=t.toLowerCase()});function i(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&A(e).is(n))break;i.push(e)}return i}function Y(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=(O=>{function w(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function d(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function P(){C()}var e,f,x,r,B,g,j,H,A,l,c,C,k,t,_,m,i,o,y,S="sizzle"+ +new Date,v=O.document,E=0,F=0,z=ce(),W=ce(),T=ce(),U=function(e,t){return e===t&&(c=!0),0},q={}.hasOwnProperty,n=[],V=n.pop,Y=n.push,$=n.push,K=n.slice,G="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Q="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",X=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Q+")*)|.*)\\)|)",J=new RegExp(a+"+","g"),D=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Z=new RegExp("^"+a+"*,"+a+"*"),ee=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),te=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),ne=new RegExp(X),ie=new RegExp("^"+s+"$"),h={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+Q),PSEUDO:new RegExp("^"+X),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+G+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},oe=/^(?:input|select|textarea|button)$/i,re=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,ae=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,se=/[+~]/,le=/'|\\/g,p=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig");try{$.apply(n=K.call(v.childNodes),v.childNodes),n[v.childNodes.length].nodeType}catch(e){$={apply:n.length?function(e,t){Y.apply(e,K.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function L(e,t,n,i){var o,r,a,s,l,c,u,d,h=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!i&&((t?t.ownerDocument||t:v)!==k&&C(t),t=t||k,_)){if(11!==p&&(c=ae.exec(e)))if(o=c[1]){if(9===p){if(!(a=t.getElementById(o)))return n;if(a.id===o)return n.push(a),n}else if(h&&(a=h.getElementById(o))&&y(t,a)&&a.id===o)return n.push(a),n}else{if(c[2])return $.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&f.getElementsByClassName&&t.getElementsByClassName)return $.apply(n,t.getElementsByClassName(o)),n}if(f.qsa&&!T[e+" "]&&(!m||!m.test(e))){if(1!==p)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(le,"\\$&"):t.setAttribute("id",s=S),r=(u=g(e)).length,l=ie.test(s)?"#"+s:"[id='"+s+"']";r--;)u[r]=l+" "+M(u[r]);d=u.join(","),h=se.test(e)&&he(t.parentNode)||t}if(d)try{return $.apply(n,h.querySelectorAll(d)),n}catch(e){}finally{s===S&&t.removeAttribute("id")}}}return H(e.replace(D,"$1"),t,n,i)}function ce(){var n=[];function i(e,t){return n.push(e+" ")>x.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function N(e){return e[S]=!0,e}function b(e){var t=k.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function I(a){return N(function(r){return r=+r,N(function(e,t){for(var n,i=a([],e.length,r),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=L.support={},B=L.isXML=function(e){return!!(e=e&&(e.ownerDocument||e).documentElement)&&"HTML"!==e.nodeName},C=L.setDocument=function(e){return(e=e?e.ownerDocument||e:v)!==k&&9===e.nodeType&&e.documentElement&&(t=(k=e).documentElement,_=!B(k),(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",P,!1):e.attachEvent&&e.attachEvent("onunload",P)),f.attributes=b(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=b(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=u.test(k.getElementsByClassName),f.getById=b(function(e){return t.appendChild(e).id=S,!k.getElementsByName||!k.getElementsByName(S).length}),f.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&_)return(e=t.getElementById(e))?[e]:[]},x.filter.ID=function(e){var t=e.replace(p,d);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(p,d);return function(e){return(e=void 0!==e.getAttributeNode&&e.getAttributeNode("id"))&&e.value===t}}),x.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);
vendor: 11,522 bytes, line 2
2if("*"!==e)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},x.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&_)return t.getElementsByClassName(e)},i=[],m=[],(f.qsa=u.test(k.querySelectorAll))&&(b(function(e){t.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+G+")"),e.querySelectorAll("[id~="+S+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]")}),b(function(e){var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=u.test(o=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&b(function(e){f.disconnectedMatch=o.call(e,"div"),o.call(e,"[s!='']:x"),i.push("!=",X)}),m=m.length&&new RegExp(m.join("|")),i=i.length&&new RegExp(i.join("|")),e=u.test(t.compareDocumentPosition),y=e||u.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e;return e===(t=t&&t.parentNode)||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=e?function(e,t){var n;return e===t?(c=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===k||e.ownerDocument===v&&y(v,e)?-1:t===k||t.ownerDocument===v&&y(v,t)?1:l?w(l,e)-w(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],s=[t];if(!o||!r)return e===k?-1:t===k?1:o?-1:r?1:l?w(l,e)-w(l,t):0;if(o===r)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?de(a[i],s[i]):a[i]===v?-1:s[i]===v?1:0}),k},L.matches=function(e,t){return L(e,null,null,t)},L.matchesSelector=function(e,t){if((e.ownerDocument||e)!==k&&C(e),t=t.replace(te,"='$1']"),f.matchesSelector&&_&&!T[t+" "]&&(!i||!i.test(t))&&(!m||!m.test(t)))try{var n=o.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<L(t,k,null,[e]).length},L.contains=function(e,t){return(e.ownerDocument||e)!==k&&C(e),y(e,t)},L.attr=function(e,t){(e.ownerDocument||e)!==k&&C(e);var n=x.attrHandle[t.toLowerCase()];return void 0!==(n=n&&q.call(x.attrHandle,t.toLowerCase())?n(e,t,!_):void 0)?n:f.attributes||!_?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},L.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},L.uniqueSort=function(e){var t,n=[],i=0,o=0;if(c=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(U),c){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return l=null,e},r=L.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(x=L.selectors={cacheLength:50,createPseudo:N,match:h,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(p,d),e[3]=(e[3]||e[4]||e[5]||"").replace(p,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||L.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&L.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return h.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ne.test(n)&&(t=(t=g(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(p,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){return null==(e=L.attr(e,t))?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(J," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var y="nth"!==f.slice(0,3),v="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,o,r,a,s,l,c=y!=v?"nextSibling":"previousSibling",u=e.parentNode,d=b&&e.nodeName.toLowerCase(),h=!n&&!b,p=!1;if(u){if(y){for(;c;){for(a=e;a=a[c];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&h){for(p=(s=(i=(o=(r=(a=u)[S]||(a[S]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===E&&i[1])&&i[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(p=s=0,l.pop());)if(1===a.nodeType&&++p&&a===e){o[f]=[E,s,p];break}}else if(!1===(p=h?s=(i=(o=(r=(a=e)[S]||(a[S]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]||[])[0]===E&&i[1]:p))for(;(a=++s&&a&&a[c]||(p=s=0,l.pop()))&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++p||(h&&((o=(r=a[S]||(a[S]={}))[a.uniqueID]||(r[a.uniqueID]={}))[f]=[E,p]),a!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,r){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||L.error("unsupported pseudo: "+e);return a[S]?a(r):1<a.length?(t=[e,e,"",r],x.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,i=a(e,r),o=i.length;o--;)e[n=w(e,i[o])]=!(t[n]=i[o])}):function(e){return a(e,0,t)}):a}},pseudos:{not:N(function(e){var i=[],o=[],s=j(e.replace(D,"$1"));return s[S]?N(function(e,t,n,i){for(var o,r=s(e,null,i,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))}):function(e,t,n){return i[0]=e,s(i,null,n,o),i[0]=null,!o.pop()}}),has:N(function(t){return function(e){return 0<L(t,e).length}}),contains:N(function(t){return t=t.replace(p,d),function(e){return-1<(e.textContent||e.innerText||r(e)).indexOf(t)}}),lang:N(function(n){return ie.test(n||"")||L.error("unsupported lang: "+n),n=n.replace(p,d).toLowerCase(),function(e){var t;do{if(t=_?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=O.location&&O.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===t},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return re.test(e.nodeName)},input:function(e){return oe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:I(function(){return[0]}),last:I(function(e,t){return[t-1]}),eq:I(function(e,t,n){return[n<0?n+t:n]}),even:I(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:I(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:I(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:I(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=(t=>function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=(n=>function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n})(e);function pe(){}function M(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function fe(a,e,t){var s=e.dir,l=t&&"parentNode"===s,c=F++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||l)return a(e,t,n)}:function(e,t,n){var i,o,r=[E,c];if(n){for(;e=e[s];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||l){if((i=(o=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}))[s])&&i[0]===E&&i[1]===c)return r[2]=i[2];if((o[s]=r)[2]=a(e,t,n))return!0}}}function ge(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function R(e,t,n,i,o){for(var r,a=[],s=0,l=e.length,c=null!=t;s<l;s++)!(r=e[s])||n&&!n(r,i,o)||(a.push(r),c&&t.push(s));return a}function me(p,f,g,m,y,e){return m&&!m[S]&&(m=me(m)),y&&!y[S]&&(y=me(y,e)),N(function(e,t,n,i){var o,r,a,s=[],l=[],c=t.length,u=e||((e,t,n)=>{for(var i=0,o=t.length;i<o;i++)L(e,t[i],n);return n})(f||"*",n.nodeType?[n]:n,[]),d=!p||!e&&f?u:R(u,s,p,n,i),h=g?y||(e?p:c||m)?[]:t:d;if(g&&g(d,h,n,i),m)for(o=R(h,l),m(o,[],n,i),r=o.length;r--;)(a=o[r])&&(h[l[r]]=!(d[l[r]]=a));if(e){if(y||p){if(y){for(o=[],r=h.length;r--;)(a=h[r])&&o.push(d[r]=a);y(null,h=[],o,i)}for(r=h.length;r--;)(a=h[r])&&-1<(o=y?w(e,a):s[r])&&(e[o]=!(t[o]=a))}}else h=R(h===t?h.splice(c,h.length):h),y?y(null,t,h,i):$.apply(t,h)})}return pe.prototype=x.filters=x.pseudos,x.setFilters=new pe,g=L.tokenize=function(e,t){var n,i,o,r,a,s,l,c=W[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],l=x.preFilter;a;){for(r in n&&!(i=Z.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(o=[])),n=!1,(i=ee.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(D," ")}),a=a.slice(n.length)),x.filter)!(i=h[r].exec(a))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?L.error(e):W(e,s).slice(0)},j=L.compile=function(e,t){var n,m,y,v,b,i,o=[],r=[],a=T[e+" "];if(!a){for(n=(t=t||g(e)).length;n--;)((a=function e(t){for(var i,n,o,r=t.length,a=x.relative[t[0].type],s=a||x.relative[" "],l=a?1:0,c=fe(function(e){return e===i},s,!0),u=fe(function(e){return-1<w(i,e)},s,!0),d=[function(e,t,n){return e=!a&&(n||t!==A)||((i=t).nodeType?c:u)(e,t,n),i=null,e}];l<r;l++)if(n=x.relative[t[l].type])d=[fe(ge(d),n)];else{if((n=x.filter[t[l].type].apply(null,t[l].matches))[S]){for(o=++l;o<r&&!x.relative[t[o].type];o++);return me(1<l&&ge(d),1<l&&M(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(D,"$1"),n,l<o&&e(t.slice(l,o)),o<r&&e(t=t.slice(o)),o<r&&M(t))}d.push(n)}return ge(d)}(t[n]))[S]?o:r).push(a);(a=T(e,(v=0<(y=o).length,b=0<(m=r).length,i=function(e,t,n,i,o){var r,a,s,l=0,c="0",u=e&&[],d=[],h=A,p=e||b&&x.find.TAG("*",o),f=E+=null==h?1:Math.random()||.1,g=p.length;for(o&&(A=t===k||t||o);c!==g&&null!=(r=p[c]);c++){if(b&&r){for(a=0,t||r.ownerDocument===k||(C(r),n=!_);s=m[a++];)if(s(r,t||k,n)){i.push(r);break}
2o&&(E=f)}v&&((r=!s&&r)&&l--,e)&&u.push(r)}if(l+=c,v&&c!==l){for(a=0;s=y[a++];)s(u,d,t,n);if(e){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=V.call(i));d=R(d)}$.apply(i,d),o&&!e&&0<d.length&&1<l+y.length&&L.uniqueSort(i)}return o&&(E=f,A=h),u},v?N(i):i))).selector=e}return a},H=L.select=function(e,t,n,i){var o,r,a,s,l,c="function"==typeof e&&e,u=!i&&g(e=c.selector||e);if(n=n||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(a=r[0]).type&&f.getById&&9===t.nodeType&&_&&x.relative[r[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(p,d),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=h.needsContext.test(e)?0:r.length;o--&&(a=r[o],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(p,d),se.test(r[0].type)&&he(t.parentNode)||t))){if(r.splice(o,1),e=i.length&&M(r))break;return $.apply(n,i),n}}return(c||j(e,u))(i,t,!_,n,!t||se.test(e)&&he(t.parentNode)||t),n},f.sortStable=S.split("").sort(U).join("")===S,f.detectDuplicates=!!c,C(),f.sortDetached=b(function(e){return 1&e.compareDocumentPosition(k.createElement("div"))}),b(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&b(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),b(function(e){return null==e.getAttribute("disabled")})||ue(G,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),L})(x),K=(A.find=e,A.expr=e.selectors,A.expr[":"]=A.expr.pseudos,A.uniqueSort=A.unique=e.uniqueSort,A.text=e.getText,A.isXMLDoc=e.isXML,A.contains=e.contains,A.expr.match.needsContext),G=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Q=/^.[^:#\[\.,]*$/;function X(e,n,i){if(A.isFunction(n))return A.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return A.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(Q.test(n))return A.filter(n,e,i);n=A.filter(n,e)}return A.grep(e,function(e){return-1<A.inArray(e,n)!==i})}A.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?A.find.matchesSelector(i,e)?[i]:[]:A.find.matches(e,A.grep(t,function(e){return 1===e.nodeType}))},A.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if("string"!=typeof e)return this.pushStack(A(e).filter(function(){for(t=0;t<o;t++)if(A.contains(i[t],this))return!0}));for(t=0;t<o;t++)A.find(e,i[t],n);return(n=this.pushStack(1<o?A.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(X(this,e||[],!1))},not:function(e){return this.pushStack(X(this,e||[],!0))},is:function(e){return!!X(this,"string"==typeof e&&K.test(e)?A(e):e||[],!1).length}});var J,Z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ee=((A.fn.init=function(e,t,n){if(e){if(n=n||J,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):A.isFunction(e)?void 0!==n.ready?n.ready(e):e(A):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),A.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Z.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),G.test(i[1])&&A.isPlainObject(t))for(var i in t)A.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i])}else{if((n=f.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return J.find(e);this.length=1,this[0]=n}this.context=f,this.selector=e}}return this}).prototype=A.fn,J=A(f),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t,n=A(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(A.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,r=[],a=K.test(e)||"string"!=typeof e?A(e,t||this.context):0;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&A.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?A.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?A.inArray(this[0],A(e)):A.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},parents:function(e){return i(e,"parentNode")},parentsUntil:function(e,t,n){return i(e,"parentNode",n)},next:function(e){return ne(e,"nextSibling")},prev:function(e){return ne(e,"previousSibling")},nextAll:function(e){return i(e,"nextSibling")},prevAll:function(e){return i(e,"previousSibling")},nextUntil:function(e,t,n){return i(e,"nextSibling",n)},prevUntil:function(e,t,n){return i(e,"previousSibling",n)},siblings:function(e){return Y((e.parentNode||{}).firstChild,e)},children:function(e){return Y(e.firstChild)},contents:function(e){return A.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:A.merge([],e.childNodes)}},function(i,o){A.fn[i]=function(e,t){var n=A.map(this,o,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=A.filter(t,n)),1<this.length&&(te[i]||(n=A.uniqueSort(n)),ee.test(i))&&(n=n.reverse()),this.pushStack(n)}});var ie,oe,C=/\S+/g;function re(){f.addEventListener?(f.removeEventListener("DOMContentLoaded",t),x.removeEventListener("load",t)):(f.detachEvent("onreadystatechange",t),x.detachEvent("onload",t))}function t(){!f.addEventListener&&"load"!==x.event.type&&"complete"!==f.readyState||(re(),A.ready())}for(oe in A.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},A.each(e.match(C)||[],function(e,t){n[t]=!0}),n):A.extend({},i);function o(){for(s=i.once,a=r=!0;c.length;u=-1)for(t=c.shift();++u<l.length;)!1===l[u].apply(t[0],t[1])&&i.stopOnFalse&&(u=l.length,t=!1);i.memory||(t=!1),r=!1,s&&(l=t?[]:"")}var r,t,a,s,l=[],c=[],u=-1,d={add:function(){return l&&(t&&!r&&(u=l.length-1,c.push(t)),function n(e){A.each(e,function(e,t){A.isFunction(t)?i.unique&&d.has(t)||l.push(t):t&&t.length&&"string"!==A.type(t)&&n(t)})}(arguments),t)&&!r&&o(),this},remove:function(){return A.each(arguments,function(e,t){for(var n;-1<(n=A.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<A.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return s=!0,t||d.disable(),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),r)||o(),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},A.extend({Deferred:function(e){var r=[["resolve","done",A.Callbacks("once memory"),"resolved"],["reject","fail",A.Callbacks("once memory"),"rejected"],["notify","progress",A.Callbacks("memory")]],o="pending",a={state:function(){return o},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var o=arguments;return A.Deferred(function(i){A.each(r,function(e,t){var n=A.isFunction(o[e])&&o[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&A.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),o=null}).promise()},promise:function(e){return null!=e?A.extend(e,a):a}},s={};return a.pipe=a.then,A.each(r,function(e,t){var n=t[2],i=t[3];a[t[1]]=n.add,i&&n.add(function(){o=i},r[1^e][2].disable,r[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?u.call(arguments):e,i===o?c.notifyWith(n,i):--l||c.resolveWith(n,i)}}var o,n,i,r=0,a=u.call(arguments),s=a.length,l=1!==s||e&&A.isFunction(e.promise)?s:0,c=1===l?e:A.Deferred();if(1<s)for(o=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)a[r]&&A.isFunction(a[r].promise)?a[r].promise().progress(t(r,n,o)).done(t(r,i,a)).fail(c.reject):--l;return l||c.resolveWith(i,a),c.promise()}}),A.fn.ready=function(e){return A.ready.promise().done(e),this},A.extend({isReady:!1,readyWait:1,holdReady:function(e){e?A.readyWait++:A.ready(!0)},ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0)!==e&&0<--A.readyWait||(ie.resolveWith(f,[A]),A.fn.triggerHandler&&(A(f).triggerHandler("ready"),A(f).off("ready")))}}),A.ready.promise=function(e){if(!ie)if(ie=A.Deferred(),"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)x.setTimeout(A.ready);else if(f.addEventListener)f.addEventListener("DOMContentLoaded",t),x.addEventListener("load",t);else{f.attachEvent("onreadystatechange",t),x.attachEvent("onload",t);var n=!1;try{n=null==x.frameElement&&f.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!A.isReady){try{n.doScroll("left")}catch(e){return x.setTimeout(t,50)}re(),A.ready()}}()}return ie.promise(e)},A.ready.promise(),A(m))break;m.ownFirst="0"===oe,m.inlineBlockNeedsLayout=!1,A(function(){var e,t,n=f.getElementsByTagName("body")[0];n&&n.style&&(e=f.createElement("div"),(t=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(t).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",m.inlineBlockNeedsLayout=e=3===e.offsetWidth,e)&&(n.style.zoom=1),n.removeChild(t))}),e=f.createElement("div"),m.deleteExpando=!0;try{delete e.test}catch(e){m.deleteExpando=!1}function y(e){var t=A.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)}var o,ae=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,se=/([A-Z])/g;function le(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(se,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ae.test(n)?A.parseJSON(n):n)}catch(e){}A.data(e,t,n)}else n=void 0}return n}function ce(e){for(var t in e)if(("data"!==t||!A.isEmptyObject(e[t]))&&"toJSON"!==t)return;return 1}
2function ue(e,t,n,i){if(y(e)){var o,r=A.expando,a=e.nodeType,s=a?A.cache:e,l=a?e[r]:e[r]&&r;if(l&&s[l]&&(i||s[l].data)||void 0!==n||"string"!=typeof t)return s[l=l||(a?e[r]=d.pop()||A.guid++:r)]||(s[l]=a?{}:{toJSON:A.noop}),"object"!=typeof t&&"function"!=typeof t||(i?s[l]=A.extend(s[l],t):s[l].data=A.extend(s[l].data,t)),e=s[l],i||(e.data||(e.data={}),e=e.data),void 0!==n&&(e[A.camelCase(t)]=n),"string"==typeof t?null==(o=e[t])&&(o=e[A.camelCase(t)]):o=e,o}}function de(e,t,n){if(y(e)){var i,o,r=e.nodeType,a=r?A.cache:e,s=r?e[A.expando]:A.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){o=(t=A.isArray(t)?t.concat(A.map(t,A.camelCase)):t in i||(t=A.camelCase(t))in i?[t]:t.split(" ")).length;for(;o--;)delete i[t[o]];if(n?!ce(i):!A.isEmptyObject(i))return}(n||(delete a[s].data,ce(a[s])))&&(r?A.cleanData([e],!0):m.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}A.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?A.cache[e[A.expando]]:e[A.expando])&&!ce(e)},data:function(e,t,n){return ue(e,t,n)},removeData:function(e,t){return de(e,t)},_data:function(e,t,n){return ue(e,t,n,!0)},_removeData:function(e,t){return de(e,t,!0)}}),A.fn.extend({data:function(e,t){var n,i,o,r=this[0],a=r&&r.attributes;if(void 0!==e)return"object"==typeof e?this.each(function(){A.data(this,e)}):1<arguments.length?this.each(function(){A.data(this,e,t)}):r?le(r,e,A.data(r,e)):void 0;if(this.length&&(o=A.data(r),1===r.nodeType)&&!A._data(r,"parsedAttrs")){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&le(r,i=A.camelCase(i.slice(5)),o[i]);A._data(r,"parsedAttrs",!0)}return o},removeData:function(e){return this.each(function(){A.removeData(this,e)})}}),A.extend({queue:function(e,t,n){var i;if(e)return i=A._data(e,t=(t||"fx")+"queue"),n&&(!i||A.isArray(n)?i=A._data(e,t,A.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=A.queue(e,t),i=n.length,o=n.shift(),r=A._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){A.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return A._data(e,n)||A._data(e,n,{empty:A.Callbacks("once memory").add(function(){A._removeData(e,t+"queue"),A._removeData(e,n)})})}}),A.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?A.queue(this[0],t):void 0===n?this:this.each(function(){var e=A.queue(this,t,n);A._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&A.dequeue(this,t)})},dequeue:function(e){return this.each(function(){A.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--o||r.resolveWith(a,[a])}var i,o=1,r=A.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(i=A._data(a[s],e+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(t)}}),m.shrinkWrapBlocks=function(){var e,t,n;return null!=o?o:(o=!1,(t=f.getElementsByTagName("body")[0])&&t.style?(e=f.createElement("div"),(n=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(f.createElement("div")).style.width="5px",o=3!==e.offsetWidth),t.removeChild(n),o):void 0)};function he(e,t){return"none"===A.css(e=t||e,"display")||!A.contains(e.ownerDocument,e)}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),s=["Top","Right","Bottom","Left"];function fe(e,t,n,i){var o,r=1,a=20,s=i?function(){return i.cur()}:function(){return A.css(e,t,"")},l=s(),c=n&&n[3]||(A.cssNumber[t]?"":"px"),u=(A.cssNumber[t]||"px"!==c&&+l)&&pe.exec(A.css(e,t));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;u/=r=r||".5",A.style(e,t,u+c),r!==(r=s()/l)&&1!==r&&--a;);return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i)&&(i.unit=c,i.start=u,i.end=o),o}function h(e,t,n,i,o,r,a){var s=0,l=e.length,c=null==n;
2if("object"===A.type(n))for(s in o=!0,n)h(e,t,s,n[s],!0,r,a);else if(void 0!==i&&(o=!0,A.isFunction(i)||(a=!0),t=c?a?(t.call(e,i),null):(c=t,function(e,t,n){return c.call(A(e),n)}):t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):r}var ge=/^(?:checkbox|radio)$/i,me=/<([\w:-]+)/,ye=/^$|\/(?:java|ecma)script/i,ve=/^\s+/,be="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function we(e){var t=be.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}E=f.createElement("div"),S=f.createDocumentFragment(),I=f.createElement("input"),E.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",m.leadingWhitespace=3===E.firstChild.nodeType,m.tbody=!E.getElementsByTagName("tbody").length,m.htmlSerialize=!!E.getElementsByTagName("link").length,m.html5Clone="<:nav></:nav>"!==f.createElement("nav").cloneNode(!0).outerHTML,I.type="checkbox",I.checked=!0,S.appendChild(I),m.appendChecked=I.checked,E.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!E.cloneNode(!0).lastChild.defaultValue,S.appendChild(E),(I=f.createElement("input")).setAttribute("type","radio"),I.setAttribute("checked","checked"),I.setAttribute("name","t"),E.appendChild(I),m.checkClone=E.cloneNode(!0).cloneNode(!0).lastChild.checked,m.noCloneEvent=!!E.addEventListener,E[A.expando]=1,m.attributes=!E.getAttribute(A.expando);
2var v={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:m.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function b(e,t){var n,i,o=0,r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[o]);o++)!t||A.nodeName(i,t)?r.push(i):A.merge(r,b(i,t));return void 0===t||t&&A.nodeName(e,t)?A.merge([e],r):r}function xe(e,t){for(var n,i=0;null!=(n=e[i]);i++)A._data(n,"globalEval",!t||A._data(t[i],"globalEval"))}v.optgroup=v.option,v.tbody=v.tfoot=v.colgroup=v.caption=v.thead,v.th=v.td;var Ae=/<|&#?\w+;/,Ce=/<tbody/i;function ke(e){ge.test(e.type)&&(e.defaultChecked=e.checked)}function _e(e,t,n,i,o){for(var r,a,s,l,c,u,d,h=e.length,p=we(t),f=[],g=0;g<h;g++)if((a=e[g])||0===a)if("object"===A.type(a))A.merge(f,a.nodeType?[a]:a);else if(Ae.test(a)){for(l=l||p.appendChild(t.createElement("div")),c=(me.exec(a)||["",""])[1].toLowerCase(),d=v[c]||v._default,l.innerHTML=d[1]+A.htmlPrefilter(a)+d[2],r=d[0];r--;)l=l.lastChild;if(!m.leadingWhitespace&&ve.test(a)&&f.push(t.createTextNode(ve.exec(a)[0])),!m.tbody)for(r=(a="table"!==c||Ce.test(a)?"<table>"!==d[1]||Ce.test(a)?0:l:l.firstChild)&&a.childNodes.length;r--;)A.nodeName(u=a.childNodes[r],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(A.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=p.lastChild}else f.push(t.createTextNode(a));for(l&&p.removeChild(l),m.appendChecked||A.grep(b(f,"input"),ke),g=0;a=f[g++];)if(i&&-1<A.inArray(a,i))o&&o.push(a);else if(s=A.contains(a.ownerDocument,a),l=b(p.appendChild(a),"script"),s&&xe(l),n)for(r=0;a=l[r++];)ye.test(a.type||"")&&n.push(a);return l=null,p}var Se,Ee,Te=f.createElement("div");for(Se in{submit:!0,change:!0,focusin:!0})(m[Se]=(Ee="on"+Se)in x)||(Te.setAttribute(Ee,"t"),m[Se]=!1===Te.attributes[Ee].expando);var $e=/^(?:input|select|textarea)$/i,De=/^key/,Le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ne=/^(?:focusinfocus|focusoutblur)$/,Ie=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function l(){return!1}function Re(){try{return f.activeElement}catch(e){}}function Oe(e,t,n,i,o,r){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Oe(e,s,n,i,t[s],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=l;else if(!o)return e;return 1===r&&(a=o,(o=function(e){return A().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=A.guid++)),e.each(function(){A.event.add(this,t,o,i,n)})}A.event={global:{},add:function(e,t,n,i,o){var r,a,s,l,c,u,d,h,p,f=A._data(e);if(f)for(n.handler&&(n=(s=n).handler,o=s.selector),n.guid||(n.guid=A.guid++),r=(r=f.events)||(f.events={}),(c=f.handle)||((c=f.handle=function(e){return void 0===A||e&&A.event.triggered===e.type?void 0:A.event.dispatch.apply(c.elem,arguments)}).elem=e),a=(t=(t||"").match(C)||[""]).length;a--;)d=p=(h=Ie.exec(t[a])||[])[1],h=(h[2]||"").split(".").sort(),d&&(l=A.event.special[d]||{},d=(o?l.delegateType:l.bindType)||d,l=A.event.special[d]||{},p=A.extend({type:d,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&A.expr.match.needsContext.test(o),namespace:h.join(".")},s),(u=r[d])||((u=r[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,i,h,c))||(e.addEventListener?e.addEventListener(d,c,!1):e.attachEvent&&e.attachEvent("on"+d,c)),l.add&&(l.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?u.splice(u.delegateCount++,0,p):u.push(p),A.event.global[d]=!0)},remove:function(e,t,n,i,o){var r,a,s,l,c,u,d,h,p,f,g,m=A.hasData(e)&&A._data(e);if(m&&(u=m.events)){for(c=(t=(t||"").match(C)||[""]).length;c--;)if(p=g=(s=Ie.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(d=A.event.special[p]||{},h=u[p=(i?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.
2join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=h.length;r--;)a=h[r],!o&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(h.splice(r,1),a.selector&&h.delegateCount--,d.remove&&d.remove.call(e,a));l&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||A.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)A.event.remove(e,p+t[c],n,i,!0);A.isEmptyObject(u)&&(delete m.handle,A._removeData(e,"events"))}},trigger:function(e,t,n,i){var o,r,a,s,l,c,u=[n||f],d=g.call(e,"type")?e.type:e,h=g.call(e,"namespace")?e.namespace.split("."):[],p=l=n=n||f;if(3!==n.nodeType&&8!==n.nodeType&&!Ne.test(d+A.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),r=d.indexOf(":")<0&&"on"+d,(e=e[A.expando]?e:new A.Event(d,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:A.makeArray(t,[e]),s=A.event.special[d]||{},i||!s.trigger||!1!==s.trigger.apply(n,t))){if(!i&&!s.noBubble&&!A.isWindow(n)){for(a=s.delegateType||d,Ne.test(a+d)||(p=p.parentNode);p;p=p.parentNode)u.push(p),l=p;l===(n.ownerDocument||f)&&u.push(l.defaultView||l.parentWindow||x)}for(c=0;(p=u[c++])&&!e.isPropagationStopped();)e.type=1<c?a:s.bindType||d,(o=(A._data(p,"events")||{})[e.type]&&A._data(p,"handle"))&&o.apply(p,t),(o=r&&p[r])&&o.apply&&y(p)&&(e.result=o.apply(p,t),!1===e.result)&&e.preventDefault();if(e.type=d,!i&&!e.isDefaultPrevented()&&(!s._default||!1===s._default.apply(u.pop(),t))&&y(n)&&r&&n[d]&&!A.isWindow(n)){(l=n[r])&&(n[r]=null),A.event.triggered=d;try{n[d]()}catch(e){}A.event.triggered=void 0,l&&(n[r]=l)}return e.result}},dispatch:function(e){e=A.event.fix(e);var t,n,i,o,r,a=u.call(arguments),s=(A._data(this,"events")||{})[e.type]||[],l=A.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(r=A.event.handlers.call(this,e,s),t=0;(i=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(o=((A.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,r,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?-1<A(o,this).index(l):A.find(o,this,null,[l]).length),i[o]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[A.expando])return e;var t,n,i,o=e.type,r=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=Le.test(o)?this.mouseHooks:De.test(o)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new A.Event(r),t=i.length;t--;)e[n=i[t]]=r[n];return e.target||(e.target=r.srcElement||f),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,r):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o=t.button,r=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||f).documentElement,n=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Re()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===Re()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(A.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return A.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){e=A.extend(new A.Event,n,{type:e,isSimulated:!0}),A.event.trigger(e,null,t),e.isDefaultPrevented()&&n.preventDefault()}},A.removeEvent=f.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){t="on"+t,e.detachEvent&&(void 0===e[t]&&(e[t]=null),e.detachEvent(t,n))},A.Event=function(e,t){if(!(this instanceof A.Event))return new A.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:l):this.type=e,t&&A.extend(this,t),this.timeStamp=e&&e.timeStamp||A.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}}
2,A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){A.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||A.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),m.submit||(A.event.special.submit={setup:function(){if(A.nodeName(this,"form"))return!1;A.event.add(this,"click._submit keypress._submit",function(e){e=e.target,(e=A.nodeName(e,"input")||A.nodeName(e,"button")?A.prop(e,"form"):void 0)&&!A._data(e,"submit")&&(A.event.add(e,"submit._submit",function(e){e._submitBubble=!0}),A._data(e,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode)&&!e.isTrigger&&A.event.simulate("submit",this.parentNode,e)},teardown:function(){if(A.nodeName(this,"form"))return!1;A.event.remove(this,"._submit")}}),m.change||(A.event.special.change={setup:function(){if($e.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(A.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),A.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),A.event.simulate("change",this,e)})),!1;A.event.add(this,"beforeactivate._change",function(e){e=e.target,$e.test(e.nodeName)&&!A._data(e,"change")&&(A.event.add(e,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||A.event.simulate("change",this.parentNode,e)}),A._data(e,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return A.event.remove(this,"._change"),!$e.test(this.nodeName)}}),m.focusin||A.each({focus:"focusin",blur:"focusout"},function(n,i){function o(e){A.event.simulate(i,e.target,A.event.fix(e))}A.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=A._data(e,i);t||e.addEventListener(n,o,!0),A._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=A._data(e,i)-1;t?A._data(e,i,t):(e.removeEventListener(n,o,!0),A._removeData(e,i))}}}),A.fn.extend({on:function(e,t,n,i){return Oe(this,e,t,n,i)},one:function(e,t,n,i){return Oe(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)i=e.handleObj,A(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=l),this.each(function(){A.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o])}return this},trigger:function(e,t){return this.each(function(){A.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return A.event.trigger(e,t,n,!0)}});var Pe=/ jQuery\d+="(?:null|\d+)"/g,Be=new RegExp("<(?:"+be+")[\\s/>]","i"),je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,He=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^true\/(.*)/,We=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ue=we(f).appendChild(f.createElement("div"));function qe(e,t){return A.nodeName(e,"table")&&A.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ve(e){return e.type=(null!==A.find.attr(e,"type"))+"/"+e.type,e}function Ye(e){var t=ze.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ke(e,t){if(1===t.nodeType&&A.hasData(e)){var n,i,o,e=A._data(e),r=A._data(t,e),a=e.events;if(a)for(n in delete r.handle,r.events={},a)for(i=0,o=a[n].length;i<o;i++)A.event.add(t,n,a[n][i]);r.data&&(r.data=A.extend({},r.data))}}function w(n,i,o,r){i=B.apply([],i);var e,t,a,s,l,c,u=0,d=n.length,h=d-1,p=i[0],f=A.isFunction(p);if(f||1<d&&"string"==typeof p&&!m.checkClone&&Fe.test(p))return n.each(function(e){var t=n.eq(e);f&&(i[0]=p.call(this,e,t.html())),w(t,i,o,r)});if(d&&(e=(c=_e(i,n[0].ownerDocument,!1,n,r)).firstChild,1===c.childNodes.length&&(c=e),e||r)){for(a=(s=A.map(b(c,"script"),Ve)).length;u<d;u++)t=c,u!==h&&(t=A.clone(t,!0,!0),a)&&A.merge(s,b(t,"script")),o.call(n[u],t,u);if(a)for(l=s[s.length-1].ownerDocument,A.map(s,Ye),u=0;u<a;u++)t=s[u],ye.test(t.type||"")&&!A._data(t,"globalEval")&&A.contains(l,t)&&(t.src?A._evalUrl&&A._evalUrl(t.src):A.globalEval((t.text||t.textContent||t.innerHTML||"").replace(We,"")));c=null}return n}function Ge(e,t,n){for(var i,o=t?A.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||A.cleanData(b(i)),i.parentNode&&(n&&A.contains(i.ownerDocument,i)&&xe(b(i,"script")),i.parentNode.removeChild(i));return e}A.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var i,o,r,a,s,l=A.contains(e.ownerDocument,e);if(m.html5Clone||A.isXMLDoc(e)||!Be.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(Ue.innerHTML=e.outerHTML,Ue.removeChild(r=Ue.firstChild)),!(m.noCloneEvent&&m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||A.isXMLDoc(e)))for(i=b(r),s=b(e),a=0;null!=(o=s[a]);
2++a)if(i[a]){u=p=void 0;var c,u,d,h=o,p=i[a];if(1===p.nodeType){if(c=p.nodeName.toLowerCase(),!m.noCloneEvent&&p[A.expando]){for(u in(d=A._data(p)).events)A.removeEvent(p,u,d.handle);p.removeAttribute(A.expando)}"script"===c&&p.text!==h.text?(Ve(p).text=h.text,Ye(p)):"object"===c?(p.parentNode&&(p.outerHTML=h.outerHTML),m.html5Clone&&h.innerHTML&&!A.trim(p.innerHTML)&&(p.innerHTML=h.innerHTML)):"input"===c&&ge.test(h.type)?(p.defaultChecked=p.checked=h.checked,p.value!==h.value&&(p.value=h.value)):"option"===c?p.defaultSelected=p.selected=h.defaultSelected:"input"!==c&&"textarea"!==c||(p.defaultValue=h.defaultValue)}}if(t)if(n)for(s=s||b(e),i=i||b(r),a=0;null!=(o=s[a]);a++)Ke(o,i[a]);else Ke(e,r);return 0<(i=b(r,"script")).length&&xe(i,!l&&b(e,"script")),i=s=o=null,r},cleanData:function(e,t){for(var n,i,o,r,a=0,s=A.expando,l=A.cache,c=m.attributes,u=A.event.special;null!=(n=e[a]);a++)if((t||y(n))&&(r=(o=n[s])&&l[o])){if(r.events)for(i in r.events)u[i]?A.event.remove(n,i):A.removeEvent(n,i,r.handle);l[o]&&(delete l[o],c||void 0===n.removeAttribute?n[s]=void 0:n.removeAttribute(s),d.push(o))}}}),A.fn.extend({domManip:w,detach:function(e){return Ge(this,e,!0)},remove:function(e){return Ge(this,e)},text:function(e){return h(this,function(e){return void 0===e?A.text(this):this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode(e))},null,e,arguments.length)},append:function(){return w(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return w(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=qe(this,e)).insertBefore(e,t.firstChild)})},before:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return w(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&A.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&A.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return A.clone(this,e,t)})},html:function(e){return h(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Pe,""):void 0;if("string"==typeof e&&!He.test(e)&&(m.htmlSerialize||!Be.test(e))&&(m.leadingWhitespace||!ve.test(e))&&!v[(me.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(A.cleanData(b(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return w(this,arguments,function(e){var t=this.parentNode;A.inArray(this,n)<0&&(A.cleanData(b(this)),t)&&t.replaceChild(e,this)},n)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){A.fn[e]=function(e){for(var t,n=0,i=[],o=A(e),r=o.length-1;n<=r;n++)t=n===r?this:this.clone(!0),A(o[n])[a](t),j.apply(i,t.get());return this.pushStack(i)}});var Qe,Xe={HTML:"block",BODY:"block"};function Je(e,t){return e=A(t.createElement(e)).appendTo(t.body),t=A.css(e[0],"display"),e.detach(),t}function Ze(e){var t=f,n=Xe[e];return n||("none"!==(n=Je(e,t))&&n||((t=((Qe=(Qe||A("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Qe[0].contentDocument).document).write(),t.close(),n=Je(e,t),Qe.detach()),Xe[e]=n),n}function et(e,t,n,i){var o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,i||[]),t)e.style[o]=r[o];return i}var n,tt,nt,it,ot,rt,at,r,st=/^margin/,lt=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),ct=f.documentElement;function a(){var e,t=f.documentElement;t.appendChild(at),r.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=nt=rt=!1,tt=ot=!0,x.getComputedStyle&&(e=x.getComputedStyle(r),n="1%"!==(e||{}).top,rt="2px"===(e||{}).marginLeft,nt="4px"===(e||{width:"4px"}).width,r.style.marginRight="50%",tt="4px"===(e||{marginRight:"4px"}).marginRight,(e=r.appendChild(f.createElement("div"))).style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",r.style.width="1px",ot=!parseFloat((x.getComputedStyle(e)||{}).marginRight),r.removeChild(e)),r.style.display="none",(it=0===r.getClientRects().length)&&(r.style.display="",r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",r.childNodes[0].style.borderCollapse="separate",(e=r.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",it=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",it=0===e[0].offsetHeight),t.removeChild(at)}at=f.createElement("div"),(r=f.createElement("div")).style&&(r.style.cssText="float:left;opacity:.5",m.opacity="0.5"===r.style.opacity,m.cssFloat=!!r.style.cssFloat,r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===r.style.backgroundClip,(at=f.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.innerHTML="",at.appendChild(r),m.boxSizing=""===r.style.boxSizing||""===r.style.MozBoxSizing||""===r.style.WebkitBoxSizing,A.extend(m,{reliableHiddenOffsets:function(){return null==n&&a(),it},boxSizingReliable:function(){return null==n&&a(),nt},pixelMarginRight:function(){return null==n&&a(),tt},pixelPosition:function(){return null==n&&a(),n},reliableMarginRight:function(){return null==n&&a(),ot},reliableMarginLeft:function(){return null==n&&a(),rt}}));var c,p,ut=/^(top|right|bottom|left)$/;function dt(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}x.getComputedStyle?(c=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:x).getComputedStyle(e)},p=function(e,t,n){var i,o,r=e.style;return""!==(o=(n=n||c(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==o||A.contains(e.ownerDocument,e)||(o=A.style(e,t)),n&&!m.pixelMarginRight()&&lt.test(o)&&st.test(t)&&(e=r.width,t=r.minWidth,i=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=e,r.minWidth=t,r.maxWidth=i),void 0===o?o:o+""}):ct.currentStyle&&(c=function(e){return e.currentStyle},p=function(e,t,n){var i,o,r,a=e.style;return null==(n=(n=n||c(e))?n[t]:void 0)&&a&&a[t]&&(n=a[t]),lt.test(n)&&!ut.test(t)&&(i=a.left,(r=(o=e.runtimeStyle)&&o.left)&&(o.left=e.currentStyle.left),a.left
2="fontSize"===t?"1em":n,n=a.pixelLeft+"px",a.left=i,r)&&(o.left=r),void 0===n?n:n+""||"auto"});var ht=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/i,ft=/^(none|table(?!-c[ea]).+)/,gt=new RegExp("^("+e+")(.*)$","i"),mt={position:"absolute",visibility:"hidden",display:"block"},yt={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","O","Moz","ms"],bt=f.createElement("div").style;function wt(e){if(e in bt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=vt.length;n--;)if((e=vt[n]+t)in bt)return e}function xt(e,t){for(var n,i,o,r=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(r[a]=A._data(i,"olddisplay"),n=i.style.display,t?(r[a]||"none"!==n||(i.style.display=""),""===i.style.display&&he(i)&&(r[a]=A._data(i,"olddisplay",Ze(i.nodeName)))):(o=he(i),(n&&"none"!==n||!o)&&A._data(i,"olddisplay",o?n:A.css(i,"display"))));for(a=0;a<s;a++)!(i=e[a]).style||t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[a]||"":"none");return e}function At(e,t,n){var i=gt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function Ct(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,a=0;r<4;r+=2)"margin"===n&&(a+=A.css(e,n+s[r],!0,o)),i?("content"===n&&(a-=A.css(e,"padding"+s[r],!0,o)),"margin"!==n&&(a-=A.css(e,"border"+s[r]+"Width",!0,o))):(a+=A.css(e,"padding"+s[r],!0,o),"padding"!==n&&(a+=A.css(e,"border"+s[r]+"Width",!0,o)));return a}function kt(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=c(e),a=m.boxSizing&&"border-box"===A.css(e,"boxSizing",!1,r);if(o<=0||null==o){if(((o=p(e,t,r))<0||null==o)&&(o=e.style[t]),lt.test(o))return o;i=a&&(m.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+Ct(e,t,n||(a?"border":"content"),i,r)+"px"}function k(e,t,n,i,o){return new k.prototype.init(e,t,n,i,o)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=p(e,"opacity"))?"1":t}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:m.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,a,s=A.camelCase(t),l=e.style;if(t=A.cssProps[s]||(A.cssProps[s]=wt(s)||s),a=A.cssHooks[t]||A.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,i))?o:l[t];if("string"==(r=typeof n)&&(o=pe.exec(n))&&o[1]&&(n=fe(e,t,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(A.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var o,r=A.camelCase(t);return t=A.cssProps[r]||(A.cssProps[r]=wt(r)||r),"normal"===(o=void 0===(o=(r=A.cssHooks[t]||A.cssHooks[r])&&"get"in r?r.get(e,!0,n):o)?p(e,t,i):o)&&t in yt&&(o=yt[t]),(""===n||n)&&(r=parseFloat(o),!0===n||isFinite(r))?r||0:o}}),A.each(["height","width"],function(e,o){A.cssHooks[o]={get:function(e,t,n){if(t)return ft.test(A.css(e,"display"))&&0===e.offsetWidth?et(e,mt,function(){return kt(e,o,n)}):kt(e,o,n)},set:function(e,t,n){var i=n&&c(e);return At(0,t,n?Ct(e,o,n,m.boxSizing&&"border-box"===A.css(e,"boxSizing",!1,i),i):0)}}}),m.opacity||(A.cssHooks.opacity={get:function(e,t){return pt.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,e=e.currentStyle,i=A.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=e&&e.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===A.trim(o.replace(ht,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||e&&!e.filter)||(n.filter=ht.test(o)?o.replace(ht,i):o+" "+i)}}),A.cssHooks.marginRight=dt(m.reliableMarginRight,function(e,t){if(t)return et(e,{display:"inline-block"},p,[e,"marginRight"])}),A.cssHooks.marginLeft=dt(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(p(e,"marginLeft"))||(A.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-et(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(o,r){A.cssHooks[o+r]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+s[t]+r]=i[t]||i[t-2]||i[0];return n}},st.test(o)||(A.cssHooks[o+r].set=At)}),A.fn.extend({css:function(e,t){return h(this,function(e,t,n){var i,o,r={},a=0;if(A.isArray(t)){for(i=c(e),o=t.length;a<o;a++)r[t[a]]=A.css(e,t[a],!1,i);return r}return void 0!==n?A.style(e,t,n):A.css(e,t)},e,t,1<arguments.length)},show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){he(this)?A(this).show():A(this).hide()})}}),((A.Tween=k).prototype={constructor:k,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(A.cssNumber[n]?"":"px")},cur:function(){var e=k.propHooks[this.prop];return(e&&e.get?e:k.propHooks._default).get(this)},run:function(e){var t,n=k.propHooks[this.prop];return this.options.duration?this.pos=t=A.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:k.propHooks._default).set(this),this}}).init.prototype=k.prototype,(k.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=A.css(e.elem,e.prop,""))&&"auto"!==e?e:0}
2,set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[A.cssProps[e.prop]]&&!A.cssHooks[e.prop]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=k.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=k.prototype.init,A.fx.step={};var _,_t,S,E,St=/^(?:toggle|show|hide)$/,Et=/queueHooks$/;function Tt(){return x.setTimeout(function(){_=void 0}),_=A.now()}function $t(e,t){var n,i={height:e},o=0;for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=s[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Dt(e,t,n){for(var i,o=(T.tweeners[t]||[]).concat(T.tweeners["*"]),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,t,e))return i}function T(o,e,t){var n,r,i,a,s,l,c,u=0,d=T.prefilters.length,h=A.Deferred().always(function(){delete p.elem}),p=function(){if(r)return!1;for(var e=_||Tt(),t=1-((e=Math.max(0,f.startTime+f.duration-e))/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(t);return h.notifyWith(o,[f,t,e]),t<1&&i?e:(h.resolveWith(o,[f]),!1)},f=h.promise({elem:o,props:A.extend({},e),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},t),originalProperties:e,originalOptions:t,startTime:_||Tt(),duration:t.duration,tweens:[],createTween:function(e,t){return t=A.Tween(o,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing),f.tweens.push(t),t},stop:function(e){var t=0,n=e?f.tweens.length:0;if(!r){for(r=!0;t<n;t++)f.tweens[t].run(1);e?(h.notifyWith(o,[f,1,0]),h.resolveWith(o,[f,e])):h.rejectWith(o,[f,e])}return this}}),g=f.props,m=g,y=f.opts.specialEasing;for(i in m)if(s=y[a=A.camelCase(i)],l=m[i],A.isArray(l)&&(s=l[1],l=m[i]=l[0]),i!==a&&(m[a]=l,delete m[i]),(c=A.cssHooks[a])&&"expand"in c)for(i in l=c.expand(l),delete m[a],l)i in m||(m[i]=l[i],y[i]=s);else y[a]=s;for(;u<d;u++)if(n=T.prefilters[u].call(f,o,g,f.opts))return A.isFunction(n.stop)&&(A._queueHooks(f.elem,f.opts.queue).stop=A.proxy(n.stop,n)),n;return A.map(g,Dt,f),A.isFunction(f.opts.start)&&f.opts.start.call(o,f),A.fx.timer(A.extend(p,{elem:o,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}A.Animation=A.extend(T,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return fe(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,o=(e=A.isFunction(e)?(t=e,["*"]):e.match(C)).length;i<o;i++)n=e[i],T.tweeners[n]=T.tweeners[n]||[],T.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var i,o,r,a,s,l,c,u=this,d={},h=t.style,p=t.nodeType&&he(t),f=A._data(t,"fxshow");for(i in n.queue||(null==(s=A._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,A.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=A.css(t,"display"))?A._data(t,"olddisplay")||Ze(t.nodeName):c))&&"none"===A.css(t,"float")&&(m.inlineBlockNeedsLayout&&"inline"!==Ze(t.nodeName)?h.zoom=1:h.display="inline-block"),n.overflow&&(h.overflow="hidden",m.shrinkWrapBlocks()||u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),e)if(o=e[i],St.exec(o)){if(delete e[i],r=r||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||
2!f||void 0===f[i])continue;p=!0}d[i]=f&&f[i]||A.style(t,i)}else c=void 0;if(A.isEmptyObject(d))"inline"===("none"===c?Ze(t.nodeName):c)&&(h.display=c);else for(i in f?"hidden"in f&&(p=f.hidden):f=A._data(t,"fxshow",{}),r&&(f.hidden=!p),p?A(t).show():u.done(function(){A(t).hide()}),u.done(function(){for(var e in A._removeData(t,"fxshow"),d)A.style(t,e,d[e])}),d)a=Dt(p?f[i]:0,i,u),i in f||(f[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?T.prefilters.unshift(e):T.prefilters.push(e)}}),A.speed=function(e,t,n){var i=e&&"object"==typeof e?A.extend({},e):{complete:n||!n&&t||A.isFunction(e)&&e,duration:e,easing:n&&t||t&&!A.isFunction(t)&&t};return i.duration=A.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in A.fx.speeds?A.fx.speeds[i.duration]:A.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){A.isFunction(i.old)&&i.old.call(this),i.queue&&A.dequeue(this,i.queue)},i},A.fn.extend({fadeTo:function(e,t,n,i){return this.filter(he).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var o=A.isEmptyObject(t),r=A.speed(e,n,i);return(e=function(){var e=T(this,A.extend({},t),r);(o||A._data(this,"finish"))&&e.stop(!0)}).finish=e,o||!1===r.queue?this.each(e):this.queue(r.queue,e)},stop:function(o,e,r){function a(e){var t=e.stop;delete e.stop,t(r)}return"string"!=typeof o&&(r=e,e=o,o=void 0),e&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=A.timers,i=A._data(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&Et.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(r),e=!1,n.splice(t,1));!e&&r||A.dequeue(this,o)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=A._data(this),n=t[a+"queue"],i=t[a+"queueHooks"],o=A.timers,r=n?n.length:0;for(t.finish=!0,A.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===a&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),A.each(["toggle","show","hide"],function(e,i){var o=A.fn[i];A.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate($t(i,!0),e,t,n)}}),A.each({slideDown:$t("show"),slideUp:$t("hide"),slideToggle:$t("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){A.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),A.timers=[],A.fx.tick=function(){var e,t=A.timers,n=0;for(_=A.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||A.fx.stop(),_=void 0},A.fx.timer=function(e){A.timers.push(e),e()?A.fx.start():A.timers.pop()},A.fx.interval=13,A.fx.start=function(){_t=_t||x.setInterval(A.fx.tick,A.fx.interval)},A.fx.stop=function(){x.clearInterval(_t),_t=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(i,e){return i=A.fx&&A.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=x.setTimeout(e,i);t.stop=function(){x.clearTimeout(n)}})},S=f.createElement("input"),I=f.createElement("div"),e=(E=f.createElement("select")).appendChild(f.createElement("option")),(I=f.createElement("div")).setAttribute("className","t"),I.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",R=I.getElementsByTagName("a")[0],S.setAttribute("type","checkbox"),I.appendChild(S),(R=I.getElementsByTagName("a")[0]).style.cssText="top:1px",m.getSetAttribute="t"!==I.className,m.style=/top/.test(R.getAttribute("style")),m.hrefNormalized="/a"===R.getAttribute("href"),m.checkOn=!!S.value,m.optSelected=e.selected,m.enctype=!!f.createElement("form").enctype,E.disabled=!0,m.optDisabled=!e.disabled,(S=f.createElement("input")).setAttribute("value",""),m.input=""===S.getAttribute("value"),S.value="t",S.setAttribute("type","radio"),m.radioValue="t"===S.value;var Lt=/\r/g,Nt=/[\x20\t\r\n\f]+/g;A.fn.extend({val:function(t){var n,e,i,o=this[0];return arguments.length?(i=A.isFunction(t),this.each(function(e){1!==this.nodeType||(null==(e=i?t.call(this,e,A(this).val()):t)?e="":"number"==typeof e?e+="":A.isArray(e)&&(e=A.map(e,function(e){return null==e?"":e+""})),(n=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value"))||(this.value=e)})):o?(n=A.valHooks[o.type]||A.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(Lt,""):null==e?"":e:void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:A.trim(A.text(e)).replace(Nt," ")}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,r=o?null:[],a=o?i+1:n.length,s=i<0?a:o?i:0;s<a;s++)if(((t=n[s]).selected||s===i)&&(m.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!A.nodeName(t.parentNode,"optgroup"))){if(t=A(t).val(),o)return t;r.push(t)}return r},set:function(e,t){for(var n,i,o=e.options,r=A.makeArray(t),a=o.length;a--;)if(i=o[a],-1<A.inArray(A.valHooks.option.get(i),r))try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(e,t){if(A.isArray(t))return e.checked=-1<A.inArray(A(e).val(),t)}},m.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var $,It,D=A.expr.attrHandle,Mt=/^(?:checked|selected)$/i,L=m.getSetAttribute,Rt=m.input,Ot=(A.fn.extend({attr:function(e,t){return h(this,A.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){A.removeAttr(this,e)})}}),A.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?A.prop(e,t,n):(1===r&&A.isXMLDoc(e)||(t=t.toLowerCase(),o=A.attrHooks[t]||(A.expr.match.bool.test(t)?It:$)),void 0!==n?null===n?void A.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))||null!=(i=A.find.attr(e,t))?i:void 0)},attrHooks:{type:{set:function(e,t){var n;if(!m.radioValue&&"radio"===t&&A.nodeName(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(C);if(r&&1===e.nodeType)for(;n=r[o++];)i=A.propFix[n]||n,A.expr.match.bool.test(n)?Rt&&L||!Mt.test(n)?e[i]=!1:e[A.camelCase("default-"+n)]=e[i]=!1:A.attr(e,n,""),e.removeAttribute(L?n:i)}}),It={set:function(e,t,n){return!1===t?A.removeAttr(e,n):Rt&&L||!Mt.test(n)?e.setAttribute(!L&&A.propFix[n]||n,n):e[A.camelCase("default-"+n)]=e[n]=!0,n}},A.each(A.expr.match.bool.source.match(/\w+/g),function(e,t){var r=D[t]||A.find.attr;Rt&&L||!Mt.test(t)?D[t]=function(e,t,n){var i,o;return n||(o=D[t],D[t]=i,i=null!=r(e,t,n)?t.toLowerCase():null,D[t]=o),i}:D[t]=function(e,t,n){if(!n)return e[A.camelCase("default-"+t)]?t.toLowerCase():null}}),Rt&&L||(A.attrHooks.value={set:function(e,t,n){if(!A.nodeName(e,"input"))return $&&$.set(e,t,n);e.defaultValue=t}}),L||($={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},D.id=D.name=D.coords=function(e,t,n){if(!n)return(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},A.valHooks.button={get:function(e,t){if((t=e.getAttributeNode(t))&&t.specified)return t.value},set:$.set},A.attrHooks.contenteditable={set:function(e,t,n){$.set(e,""!==t&&t,n)}},A.each(["width","height"],function(e,n){A.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),m.style||(A.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}}),/^(?:input|select|textarea|button|object)$/i),Pt=/^(?:a|area)$/i,Bt=(A.fn.extend({prop:function(e,t){return h(this,A.prop,e,t,1<arguments.length)},removeProp:function(e){return e=A.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),A.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&A.isXMLDoc(e)||(t=A.propFix[t]||t,o=A.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Pt.test(e.nodeName)&&e.href?
20:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.hrefNormalized||A.each(["href","src"],function(e,t){A.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),m.optSelected||(A.propHooks.selected={get:function(e){return(e=e.parentNode)&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex,null},set:function(e){(e=e.parentNode)&&(e.selectedIndex,e.parentNode)&&e.parentNode.selectedIndex}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this}),m.enctype||(A.propFix.enctype="encoding"),/[\t\r\n\f]/g);function N(e){return A.attr(e,"class")||""}A.fn.extend({addClass:function(t){var e,n,i,o,r,a,s=0;if(A.isFunction(t))return this.each(function(e){A(this).addClass(t.call(this,e,N(this)))});if("string"==typeof t&&t)for(e=t.match(C)||[];n=this[s++];)if(a=N(n),i=1===n.nodeType&&(" "+a+" ").replace(Bt," ")){for(r=0;o=e[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a!==(a=A.trim(i))&&A.attr(n,"class",a)}return this},removeClass:function(t){var e,n,i,o,r,a,s=0;if(A.isFunction(t))return this.each(function(e){A(this).removeClass(t.call(this,e,N(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(C)||[];n=this[s++];)if(a=N(n),i=1===n.nodeType&&(" "+a+" ").replace(Bt," ")){for(r=0;o=e[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");a!==(a=A.trim(i))&&A.attr(n,"class",a)}return this},toggleClass:function(o,t){var r=typeof o;return"boolean"==typeof t&&"string"==r?t?this.addClass(o):this.removeClass(o):A.isFunction(o)?this.each(function(e){A(this).toggleClass(o.call(this,e,N(this),t),t)}):this.each(function(){var e,t,n,i;if("string"==r)for(t=0,n=A(this),i=o.match(C)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&"boolean"!=r||((e=N(this))&&A._data(this,"__className__",e),A.attr(this,"class",!e&&!1!==o&&A._data(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+N(t)+" ").replace(Bt," ").indexOf(i))return!0;return!1}}),A.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){A.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),A.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var I=x.location,jt=A.now(),Ht=/\?/,Ft=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g,zt=(A.parseJSON=function(e){var o,r,t;return x.JSON&&x.JSON.parse?x.JSON.parse(e+""):(r=null,(t=A.trim(e+""))&&!A.trim(t.replace(Ft,function(e,t,n,i){return 0===(r=o&&t?0:r)?e:(o=n||t,r+=!i-!n,"")}))?Function("return "+t)():A.error("Invalid JSON: "+e))},A.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{x.DOMParser?t=(new x.DOMParser).parseFromString(e,"text/xml"):((t=new x.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||A.error("Invalid XML: "+e),t},/#.*$/),Wt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,qt=/^(?:GET|HEAD)$/,Vt=/^\/\//,Yt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Kt={},Gt={},Qt="*/".concat("*"),Xt=I.href,M=Yt.exec(Xt.toLowerCase())||[];function Jt(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(C)||[];if(A.isFunction(t))for(;n=o[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(t)):(r[n]=r[n]||[]).push(t)}}function Zt(t,i,o,r){var a={},s=t===Gt;function l(e){var n;return a[e]=!0,A.each(t[e]||[],function(e,t){return"string"!=typeof(t=t(i,o,r))||s||a[t]?s?!(n=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),n}return l(i.dataTypes[0])||!a["*"]&&l("*")}function en(e,t){var n,i,o=A.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n=n||{})[i]=t[i]);return n&&A.extend(!0,e,n),e}A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(M[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":A.parseJSON,"text xml":A.parseXML}
vendor: 5,998 bytes, line 2
2,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?en(en(e,A.ajaxSettings),t):en(A.ajaxSettings,e)},ajaxPrefilter:Jt(Kt),ajaxTransport:Jt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var n,l,c,u,d,h,i,p=A.ajaxSetup({},t=t||{}),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?A(f):A.event,m=A.Deferred(),y=A.Callbacks("once memory"),v=p.statusCode||{},o={},r={},b=0,a="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!i)for(i={};t=Ut.exec(c);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?c:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=r[n]=r[n]||e,o[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){if(e)if(b<2)for(var t in e)v[t]=[v[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){return e=e||a,h&&h.abort(e),s(0,e),this}};if(m.promise(w).complete=y.add,w.success=w.done,w.error=w.fail,p.url=((e||p.url||Xt)+"").replace(zt,"").replace(Vt,M[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=A.trim(p.dataType||"*").toLowerCase().match(C)||[""],null==p.crossDomain&&(e=Yt.exec(p.url.toLowerCase()),p.crossDomain=!(!e||e[1]===M[1]&&e[2]===M[2]&&(e[3]||("http:"===e[1]?"80":"443"))===(M[3]||("http:"===M[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=A.param(p.data,p.traditional)),Zt(Kt,p,t,w),2!==b){for(n in(d=A.event&&p.global)&&0==A.active++&&A.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!qt.test(p.type),l=p.url,p.hasContent||(p.data&&(l=p.url+=(Ht.test(l)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Wt.test(l)?l.replace(Wt,"$1_="+jt++):l+(Ht.test(l)?"&":"?")+"_="+jt++)),p.ifModified&&(A.lastModified[l]&&w.setRequestHeader("If-Modified-Since",A.lastModified[l]),A.etag[l])&&w.setRequestHeader("If-None-Match",A.etag[l]),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Qt+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(n,p.headers[n]);if(p.beforeSend&&(!1===p.beforeSend.call(f,w,p)||2===b))return w.abort();for(n in a="abort",{success:1,error:1,complete:1})w[n](p[n]);if(h=Zt(Gt,p,t,w)){if(w.readyState=1,d&&g.trigger("ajaxSend",[w,p]),2===b)return w;p.async&&0<p.timeout&&(u=x.setTimeout(function(){w.abort("timeout")},p.timeout));try{b=1,h.send(o,s)}catch(e){if(!(b<2))throw e;s(-1,e)}}else s(-1,"No Transport")}return w;function s(e,t,n,i){var o,r,a,s=t;2!==b&&(b=2,u&&x.clearTimeout(u),h=void 0,c=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=((e,t,n)=>{for(var i,o,r,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(a in s)if(s[a]&&s[a].test(o)){l.unshift(a);break}if(l[0]in n)r=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){r=a;break}i=i||a}r=r||i}if(r)return r!==l[0]&&l.unshift(r),n[r]})(p,w,n)),a=((e,t,n,i)=>{var o,r,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}})(p,a,w,i),i?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(A.lastModified[l]=n),n=w.getResponseHeader("etag"))&&(A.etag[l]=n),204===e||"HEAD"===p.type?s="nocontent":304===e?s="notmodified":(s=a.state,o=a.data,i=!(r=a.error))):(r=s,!e&&s||(s="error",e<0&&(e=0))),w.status=e,w.statusText=(t||s)+"",i?m.resolveWith(f,[o,s,w]):m.rejectWith(f,[w,s,r]),w.statusCode(v),v=void 0,d&&g.trigger(i?"ajaxSuccess":"ajaxError",[w,p,i?o:r]),y.fireWith(f,[w,s]),d)&&(g.trigger("ajaxComplete",[w,p]),--A.active||A.event.trigger("ajaxStop"))}},getJSON:function(e,t,n){return A.get(e,t,n,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],function(e,o){A[o]=function(e,t,n,i){return A.isFunction(t)&&(i=i||n,n=t,t=void 0),A.ajax(A.extend({url:e,type:o,dataType:i,data:t,success:n},A.isPlainObject(e)&&e))}}),A._evalUrl=function(e){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},A.fn.extend({wrapAll:function(t){var e;return A.isFunction(t)?this.each(function(e){A(this).wrapAll(t.call(this,e))}):(this[0]&&(e=A(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)),this)},wrapInner:function(n){return A.isFunction(n)?this.each(function(e){A(this).wrapInner(n.call(this,e))}):this.each(function(){var e=A(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=A.isFunction(t);return this.each(function(e){A(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){A.nodeName(this,"body")||A(this).replaceWith(this.childNodes)}).end()}}),A.expr.filters.hidden=function(e){if(m.reliableHiddenOffsets())return e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length;var t,n=e;if(!A.contains(n.ownerDocument||f,n))return!0;for(;n&&1===n.nodeType;){if("none"===((t=n).style&&t.style.display||A.css(t,"display"))||"hidden"===n.type)return!0;n=n.parentNode}return!1},A.expr.filters.visible=function(e){return!A.expr.filters.hidden(e)};var tn=/%20/g,nn=/\[\]$/,on=/\r?\n/g,rn=/^(?:submit|button|image|reset|file)$/i,an=/^(?:input|select|textarea|keygen)/i,sn=(A.param=function(e,t){function n(e,t){t
2=A.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)}var i,o=[];if(void 0===t&&(t=A.ajaxSettings&&A.ajaxSettings.traditional),A.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,o,r){if(A.isArray(e))A.each(e,function(e,t){o||nn.test(i)?r(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,r)});else if(o||"object"!==A.type(e))r(i,e);else for(var t in e)n(i+"["+t+"]",e[t],o,r)}(i,e[i],t,n);return o.join("&").replace(tn,"+")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&an.test(this.nodeName)&&!rn.test(e)&&(this.checked||!ge.test(e))}).map(function(e,t){var n=A(this).val();return null==n?null:A.isArray(n)?A.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),A.ajaxSettings.xhr=void 0!==x.ActiveXObject?function(){return this.isLocal?un():8<f.documentMode?cn():/^(get|post|head|put|delete|options)$/i.test(this.type)&&cn()||un()}:cn,0),ln={},R=A.ajaxSettings.xhr();function cn(){try{return new x.XMLHttpRequest}catch(e){}}function un(){try{return new x.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}x.attachEvent&&x.attachEvent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),m.cors=!!R&&"withCredentials"in R,(m.ajax=!!R)&&A.ajaxTransport(function(l){var c;if(!l.crossDomain||m.cors)return{send:function(e,r){var t,a=l.xhr(),s=++sn;if(a.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(t in l.xhrFields)a[t]=l.xhrFields[t];for(t in l.mimeType&&a.overrideMimeType&&a.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&a.setRequestHeader(t,e[t]+"");a.send(l.hasContent&&l.data||null),c=function(e,t){var n,i,o;if(c&&(t||4===a.readyState))if(delete ln[s],c=void 0,a.onreadystatechange=A.noop,t)4!==a.readyState&&a.abort();else{o={},n=a.status,"string"==typeof a.responseText&&(o.text=a.responseText);try{i=a.statusText}catch(e){i=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=o.text?200:404}o&&r(n,i,o,a.getAllResponseHeaders())},l.async?4===a.readyState?x.setTimeout(c):a.onreadystatechange=ln[s]=c:c()},abort:function(){c&&c(void 0,!0)}}}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return A.globalEval(e),e}}}),A.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),A.ajaxTransport("script",function(t){var i,o;if(t.crossDomain)return o=f.head||A("head")[0]||f.documentElement,{send:function(e,n){(i=f.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&!/loaded|complete/.test(i.readyState)||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t)||n(200,"success")},o.insertBefore(i,o.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}});var dn=[],hn=/(=)\?(?=&|$)|\?\?/,pn=(A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=dn.pop()||A.expando+"_"+jt++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,r,a=!1!==e.jsonp&&(hn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&hn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=A.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(hn,"$1"+i):!1!==e.jsonp&&(e.url+=(Ht.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||A.error(i+" was not called"),r[0]},e.dataTypes[0]="json",o=x[i],x[i]=function(){r=arguments},n.always(function(){void 0===o?A(x).removeProp(i):x[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,dn.push(i)),r&&A.isFunction(o)&&o(r[0]),r=o=void 0}),"script"}),A.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||f;var i=G.exec(e),n=!n&&[];
2return i?[t.createElement(i[1])]:(i=_e([e],t,n),n&&n.length&&A(n).remove(),A.merge([],i.childNodes))},A.fn.load);function fn(e){return A.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}return A.fn.load=function(e,t,n){var i,o,r,a,s;return"string"!=typeof e&&pn?pn.apply(this,arguments):(a=this,-1<(s=e.indexOf(" "))&&(i=A.trim(e.slice(s,e.length)),e=e.slice(0,s)),A.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<a.length&&A.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,a.html(i?A("<div>").append(A.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this)},A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){A.fn[t]=function(e){return this.on(t,e)}}),A.expr.filters.animated=function(t){return A.grep(A.timers,function(e){return t===e.elem}).length},A.offset={setOffset:function(e,t,n){var i,o,r,a,s=A.css(e,"position"),l=A(e),c={};"static"===s&&(e.style.position="relative"),r=l.offset(),i=A.css(e,"top"),a=A.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<A.inArray("auto",[i,a])?(o=(s=l.position()).top,s.left):(o=parseFloat(i)||0,parseFloat(a)||0),null!=(t=A.isFunction(t)?t.call(e,n,A.extend({},r)):t).top&&(c.top=t.top-r.top+o),null!=t.left&&(c.left=t.left-r.left+s),"using"in t?t.using.call(e,c):l.css(c)}},A.fn.extend({offset:function(t){var e,n,i,o;return arguments.length?void 0===t?this:this.each(function(e){A.offset.setOffset(this,t,e)}):(n={top:0,left:0},(o=(i=this[0])&&i.ownerDocument)?(e=o.documentElement,A.contains(e,i)?(void 0!==i.getBoundingClientRect&&(n=i.getBoundingClientRect()),i=fn(o),{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0)},position:function(){var e,t,n,i;if(this[0])return n={top:0,left:0},i=this[0],"fixed"===A.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),(n=A.nodeName(e[0],"html")?n:e.offset()).top+=A.css(e[0],"borderTopWidth",!0),n.left+=A.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-A.css(i,"marginTop",!0),left:t.left-n.left-A.css(i,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!A.nodeName(e,"html")&&"static"===A.css(e,"position");)e=e.offsetParent;return e||ct})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var r=/Y/.test(o);A.fn[t]=function(e){return h(this,function(e,t,n){var i=fn(e);if(void 0===n)return i?o in i?i[o]:i.document.documentElement[t]:e[t];i?i.scrollTo(r?A(i).scrollLeft():n,r?n:A(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),A.each(["top","left"],function(e,n){A.cssHooks[n]=dt(m.pixelPosition,function(e,t){if(t)return t=p(e,n),lt.test(t)?A(e).position()[n]+"px":t})}),A.each({Height:"height",Width:"width"},function(r,a){A.each({padding:"inner"+r,content:a,"":"outer"+r},function(i,e){A.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return h(this,function(e,t,n){var i;return A.isWindow(e)?e.document.documentElement["client"+r]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+r],i["scroll"+r],e.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?A.css(e,t,o):A.style(e,t,n,o)},a,n?e:void 0,n,null)}})}),A.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),A.fn.size=function(){return this.length},A.fn.andSelf=A.fn.addBack,layui.define(function(e){e("jquery",layui.$=A)}),A}),((p,f)=>{function t(e){function t(){n.creat()}var n=this;n.index=++v.index,n.config.maxWidth=m(y).width()-30,n.config=m.extend({},n.config,d.config,e),document.body?t():setTimeout(function(){t()},30)}function g(e){return i.skin?" "+i.skin+" "+i.skin+"-"+e:""}var m,y,e,n=p.layui&&layui.define,d={getPath:(e=document.currentScript?document.currentScript.src:(()=>{for(var e,t=document.scripts,n=t.length-1,i=n;0<i;i--)if("interactive"===t[i].readyState){e=t[i].src;break}return e||t[n].src})(),(p.LAYUI_GLOBAL||{}).layer_dir||e.substring(0,e.lastIndexOf("/")+1)),config:{removeFocus:!0},end:{},events:{resize:{}},minStackIndex:0,minStackArr:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(e,t){return(e=e.currentStyle||p.getComputedStyle(e,null))[e.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,i,t){var n,o,r,a,s,l;v.path&&(n=document.getElementsByTagName("head")[0],o=document.createElement("link"),r=((t="string"==typeof i?i:t)||e).replace(/\.|\//g,""),a="layuicss-"+r,s="creating",l=0,o.rel="stylesheet",o.href=v.path+e,o.id=a,document.getElementById(a)||n.appendChild(o),"function"==typeof i)&&!function e(t){var n=document.getElementById(a);return 100<++l?p.console&&console.error(r+".css: Invalid"):void(1989===parseInt(d.getStyle(n,"width"))?(t===s&&n.removeAttribute("lay-status"),n.getAttribute("lay-status")===s?setTimeout(e,100):i()):(n.setAttribute("lay-status",s),setTimeout(function(){e(s)},100)))}()}},v={v:"3.7.0",ie:(e=navigator.userAgent.toLowerCase(),!!(p.ActiveXObject||"ActiveXObject"in p)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")),index:p.layer&&p.layer.v?1e5:0,path:d.getPath,config:function(e,t){return v.cache=d.config=m.extend({},d.config,e=e||{}),v.path=d.config.path||v.path,"string"==typeof e.extend&&(e.extend=[e.extend]),d.config.path&&v.ready(),e.extend&&(n?layui.addcss("modules/layer/"+e.extend):d.link("css/"+e.extend)),this},ready:function(e){var t=(n?"modules/":"css/")+"layer.css?v="+v.v;return n?layui["layui.all"]?"function"==typeof e&&e():layui.addcss(t,e,"layer"):d.link(t,e,"layer"),this},alert:function(e,t,n){var i="function"==typeof t;return v.open(m.extend({content:e,yes:n=i?t:n},i?{}:t))},confirm:function(e,t,n,i){var o="function"==typeof t;return o&&(i=n,n=t),v.open(m.extend({content:e,btn:d.btn,yes:n,btn2:i},o?{}:t))},msg:function(e,t,n){var i="function"==typeof t,o=d.config.skin,r=h.anim.length-1;return i&&(n=t),v.open(m.extend({content:e,time:3e3,shade:!1,skin:o=(o?o+" "+o+"-msg":"")||"layui-layer-msg",title:!1,closeBtn:!1,btn:!1,resize:!1,end:n,removeFocus:!1},i&&!d.config.skin?{skin:o+" layui-layer-hui",anim:r}:(-1!==(t=t||{}).icon&&(t.icon!==f||d.config.skin)||(t.skin=o+" "+(t.skin||"layui-layer-hui")),t)))},load:function(e,t){return v.open(m.extend({type:3,icon:e||0,resize:!1,shade:.01,removeFocus:!1},t))},tips:function(e,t,n){return v.open(m.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:260,removeFocus:!1},n))}},h=(t.pt=t.prototype,["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"]),b=(h.anim={0:"layer-anim-00",1:"layer-anim-01",2:"layer-anim-02",3:"layer-anim-03",4:"layer-anim-04",5:"layer-anim-05",6:"layer-anim-06",slideDown:"layer-anim-slide-down",slideLeft:"layer-anim-slide-left",slideUp:"layer-anim-slide-up",slideRight:"layer-anim-slide-right"},h.SHADE="layui-layer-shade",h.MOVE="layui-layer-move","LAYUI-LAYER-SHADE-KEY"),l="LAYUI_LAYER_CONTENT_RECORD_HEIGHT",i=(t.pt.config={type:0,shade:.3,fixed:!0,move:h[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,icon:-1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,minStack:!0,moveType:1,resize:!0,scrollbar:!0,tips:2},t.pt.vessel=function(e,t){var n,i=this.index,o=this.config,r=o.zIndex+i,a="object"==typeof o.title,s=o.maxmin&&(1===o.type||2===o.type),a=o.title?'<div class="layui-layer-title" style="'+(a?o.title[1]:"")+'">'+(a?o.title[0]:o.title)+"</div>":"";return o.zIndex=r,t([o.shade?'<div class="'+h.SHADE+'" id="'+h.SHADE+i+'" times="'+i+'" style="z-index:'+(r-1)+'; "></div>':"",'<div class="'+h[0]+" layui-layer-"+d.type[o.type]+(0!=o.type&&2!=o.type||o.shade?"":" layui-layer-border")+" "+(o.skin||"")+'" id="'+h[0]+i+'" type="'+d.type[o.type]+'" times="'+i+'" showtime="'+o.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+r+"; width:"+o.area[0]+";height:"+o.area[1]+";position:"+(o.fixed?"fixed;":"absolute;")+'">'+(e&&2!=o.type?"":a)+"<div"+(o.id?' id="'+o.id+'"':"")+' class="layui-layer-content'+(0==o.type&&-1!==o.icon?" layui-layer-padding":"")+(3==o.type?" layui-layer-loading"+o.icon:"")+'">'+(i=["layui-icon-tips","layui-icon-success","layui-icon-error","layui-icon-question","layui-icon-lock","layui-icon-face-cry","layui-icon-face-smile"],r="layui-anim layui-anim-rotate layui-anim-loop",0==o.type&&-1!==o.icon?'<i class="layui-layer-face layui-icon '+((n=16==o.icon?"layui-icon layui-icon-loading "+r:n)||i[o.icon]||i[0])+'"></i>':3==o.type?(n=["layui-icon-loading","layui-icon-loading-1"],2==o.icon?'<div class="layui-layer-loading-2 '+r+'"></div>':'<i class="layui-layer-loading-icon layui-icon '+(n[o.icon]||n[0])+" "+r+'"></i>'):"")+((1!=o.type||!e)&&o.content||"")+'</div>
2<div class="layui-layer-setwin">'+(i=[],s&&(i.push('<span class="layui-layer-min"></span>'),i.push('<span class="layui-layer-max"></span>')),o.closeBtn&&i.push('<span class="layui-icon layui-icon-close '+[h[7],h[7]+(o.title?o.closeBtn:4==o.type?"1":"2")].join(" ")+'"></span>'),i.join(""))+"</div>"+(o.btn?(()=>{var e="";"string"==typeof o.btn&&(o.btn=[o.btn]);for(var t,n=0,i=o.btn.length;n<i;n++)e+='<a class="'+h[6]+n+'">'+o.btn[n]+"</a>";return'<div class="'+(t=[h[6]],o.btnAlign&&t.push(h[6]+"-"+o.btnAlign),t.join(" "))+'">'+e+"</div>"})():"")+(o.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],a,m('<div class="'+h.MOVE+'" id="'+h.MOVE+'"></div>')),this},t.pt.creat=function(){function e(e){var t;a.shift&&(a.anim=a.shift),h.anim[a.anim]&&(t="layer-anim "+h.anim[a.anim],e.addClass(t).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){m(this).removeClass(t)}))}var t,n,i,o,r=this,a=r.config,s=r.index,l="object"==typeof(u=a.content),c=m("body");if(a.id&&m("."+h[0]).find("#"+a.id)[0])n=(t=m("#"+a.id).closest("."+h[0])).attr("times"),i=t.data("config"),o=m("#"+h.SHADE+n),"min"===(t.data("maxminStatus")||{})?v.restore(n):i.hideOnClose&&(o.show(),t.show(),e(t),setTimeout(function(){o.css({opacity:o.data(b)})},10));else{switch(a.removeFocus&&document.activeElement.blur(),"string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),6==v.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:d.btn[0],v.closeAll("dialog");break;case 2:var u=a.content=l?a.content:[a.content||"","auto"];a.content='<iframe scrolling="'+(a.content[1]||"auto")+'" allowtransparency="true" id="'+h[4]+s+'" name="'+h[4]+s+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+a.content[0]+'"></iframe>';break;case 3:delete a.title,delete a.closeBtn,-1===a.icon&&a.icon,v.closeAll("loading");break;case 4:l||(a.content=[a.content,"body"]),a.follow=a.content[1],a.content=a.content[0]+'<i class="layui-layer-TipsG"></i>',delete a.title,a.tips="object"==typeof a.tips?a.tips:[a.tips,!0],a.tipsMore||v.closeAll("tips")}r.vessel(l,function(e,t,n){c.append(e[0]),l?2==a.type||4==a.type?m("body").append(e[1]):u.parents("."+h[0])[0]||(u.data("display",u.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),m("#"+h[0]+s).find("."+h[5]).before(t)):c.append(e[1]),m("#"+h.MOVE)[0]||c.append(d.moveElem=n),r.layero=m("#"+h[0]+s),r.shadeo=m("#"+h.SHADE+s),a.scrollbar||d.setScrollbar(s)}).auto(s),r.shadeo.css({"background-color":a.shade[1]||"#000",opacity:a.shade[0]||a.shade,transition:a.shade[2]||""}),r.shadeo.data(b,a.shade[0]||a.shade),2==a.type&&6==v.ie&&r.layero.find("iframe").attr("src",u[0]),4==a.type?r.tips():(r.offset(),parseInt(d.getStyle(document.getElementById(h.MOVE),"z-index"))||(r.layero.css("visibility","hidden"),v.ready(function(){r.offset(),r.layero.css("visibility","visible")}))),a.fixed&&!d.events.resize[r.index]&&(d.events.resize[r.index]=function(){r.resize()},y.on("resize",d.events.resize[r.index])),a.time<=0||setTimeout(function(){v.close(r.index)},a.time),r.move().callback(),e(r.layero),r.layero.data("config",a)}},t.pt.resize=function(){var e=this.config;this.offset(),(/^\d+%$/.test(e.area[0])||/^\d+%$/.test(e.area[1]))&&this.auto(this.index),4==e.type&&this.tips()},t.pt.auto=function(e){var t=this.config,n=m("#"+h[0]+e),i=(""===t.area[0]&&0<t.maxWidth&&(v.ie&&v.ie<8&&t.btn&&n.width(n.innerWidth()),n.outerWidth()>t.maxWidth)&&n.width(t.maxWidth),[n.innerWidth(),n.innerHeight()]),o=n.find(h[1]).outerHeight()||0,r=n.find("."+h[6]).outerHeight()||0,e=function(e){(e=n.find(e)).height(i[1]-o-r-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0<t.maxHeight&&n.outerHeight()>t.maxHeight?(i[1]=t.maxHeight,e("."+h[5])):t.fixed&&i[1]>=y.height()&&(i[1]=y.height(),e("."+h[5])):e("."+h[5]),this},t.pt.offset=function(){var e=this,t=e.config,n=e.layero,i=[n.outerWidth(),n.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(y.height()-i[1])/2,e.offsetLeft=(y.width()-i[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=y.width()-i[0]:"b"===t.offset?e.offsetTop=y.height()-i[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=y.height()-i[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=y.width()-i[0]):"rb"===t.offset?(e.offsetTop=y.height()-i[1],e.offsetLeft=y.width()-i[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?y.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?y.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=y.scrollTop(),e.offsetLeft+=y.scrollLeft()),"min"===n.data("maxminStatus")&&(e.offsetTop=y.height()-(n.find(h[1]).outerHeight()||0),e.offsetLeft=n.css("left")),n.css({top:e.offsetTop,left:e.offsetLeft})}
vendor: 10,196 bytes, line 2
2,t.pt.tips=function(){var e=this.config,t=this.layero,n=[t.outerWidth(),t.outerHeight()],i={width:(r=(r=m(e.follow))[0]?r:m("body")).outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},o=t.find(".layui-layer-TipsG"),r=e.tips[0];e.tips[1]||o.remove(),i.autoLeft=function(){0<i.left+n[0]-y.width()?(i.tipLeft=i.left+i.width-n[0],o.css({right:12,left:"auto"})):i.tipLeft=i.left},i.where=[function(){i.autoLeft(),i.tipTop=i.top-n[1]-10,o.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",e.tips[1])},function(){i.tipLeft=i.left+i.width+10,i.tipTop=i.top-(.75*i.height<21?21-.5*i.height:0),i.tipTop=Math.max(i.tipTop,0),o.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",e.tips[1])},function(){i.autoLeft(),i.tipTop=i.top+i.height+10,o.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",e.tips[1])},function(){i.tipLeft=i.left-n[0]-10,i.tipTop=i.top-(.75*i.height<21?21-.5*i.height:0),i.tipTop=Math.max(i.tipTop,0),o.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",e.tips[1])}],i.where[r-1](),1===r?i.top-(y.scrollTop()+n[1]+16)<0&&i.where[2]():2===r?0<y.width()-(i.left+i.width+n[0]+16)||i.where[3]():3===r?0<i.top-y.scrollTop()+i.height+n[1]+16-y.height()&&i.where[0]():4===r&&0<n[0]+16-i.left&&i.where[1](),t.find("."+h[5]).css({"background-color":e.tips[1],"padding-right":e.closeBtn?"30px":""}),t.css({left:i.tipLeft-(e.fixed?y.scrollLeft():0),top:i.tipTop-(e.fixed?y.scrollTop():0)})},t.pt.move=function(){var i=this,o=i.config,e=m(document),r=i.layero,l=["LAY_MOVE_DICT","LAY_RESIZE_DICT"],t=r.find(o.move),n=r.find(".layui-layer-resize");return o.move&&t.css("cursor","move"),t.on("mousedown",function(e){var t,n;e.button||(t=m(this),n={},o.move&&(n.layero=r,n.config=o,n.offset=[e.clientX-parseFloat(r.css("left")),e.clientY-parseFloat(r.css("top"))],t.data(l[0],n),d.eventMoveElem=t,d.moveElem.css("cursor","move").show()),e.preventDefault())}),n.on("mousedown",function(e){var t=m(this),n={};o.resize&&(n.layero=r,n.config=o,n.offset=[e.clientX,e.clientY],n.index=i.index,n.area=[r.outerWidth(),r.outerHeight()],t.data(l[1],n),d.eventResizeElem=t,d.moveElem.css("cursor","se-resize").show()),e.preventDefault()}),d.docEvent||(e.on("mousemove",function(e){var t,n,i,o,r,a,s;d.eventMoveElem&&(t=(o=d.eventMoveElem.data(l[0])||{}).layero,r=o.config,a=e.clientX-o.offset[0],s=e.clientY-o.offset[1],n="fixed"===t.css("position"),e.preventDefault(),o.stX=n?0:y.scrollLeft(),o.stY=n?0:y.scrollTop(),r.moveOut||(n=y.width()-t.outerWidth()+o.stX,i=y.height()-t.outerHeight()+o.stY,n<(a=a<o.stX?o.stX:a)&&(a=n),i<(s=s<o.stY?o.stY:s)&&(s=i)),t.css({left:a,top:s})),d.eventResizeElem&&(r=(o=d.eventResizeElem.data(l[1])||{}).config,a=e.clientX-o.offset[0],s=e.clientY-o.offset[1],e.preventDefault(),v.style(o.index,{width:o.area[0]+a,height:o.area[1]+s}),r.resizing)&&r.resizing(o.layero)}).on("mouseup",function(e){var t,n;d.eventMoveElem&&(n=(t=d.eventMoveElem.data(l[0])||{}).config,d.eventMoveElem.removeData(l[0]),delete d.eventMoveElem,d.moveElem.hide(),n.moveEnd)&&n.moveEnd(t.layero),d.eventResizeElem&&(d.eventResizeElem.removeData(l[1]),delete d.eventResizeElem,d.moveElem.hide())}),d.docEvent=!0),i},t.pt.callback=function(){var t=this,n=t.layero,i=t.config;t.openLayer(),i.success&&(2==i.type?n.find("iframe").on("load",function(){i.success(n,t.index,t)}):i.success(n,t.index,t)),6==v.ie&&t.IE6(n),n.find("."+h[6]).children("a").on("click",function(){var e=m(this).index();0===e?i.yes?i.yes(t.index,n,t):i.btn1?i.btn1(t.index,n,t):v.close(t.index):!1!==(i["btn"+(e+1)]&&i["btn"+(e+1)](t.index,n,t))&&v.close(t.index)}),n.find("."+h[7]).on("click",function(){!1!==(i.cancel&&i.cancel(t.index,n,t))&&v.close(t.index)}),i.shadeClose&&t.shadeo.on("click",function(){v.close(t.index)}),n.find(".layui-layer-min").on("click",function(){!1!==(i.min&&i.min(n,t.index,t))&&v.min(t.index,i)}),n.find(".layui-layer-max").on("click",function(){m(this).hasClass("layui-layer-maxmin")?(v.restore(t.index),i.restore&&i.restore(n,t.index,t)):(v.full(t.index,i),setTimeout(function(){i.full&&i.full(n,t.index,t)},100))}),i.end&&(d.end[t.index]=i.end)},d.reselect=function(){m.each(m("select"),function(e,t){var n=m(this);n.parents("."+h[0])[0]||1==n.attr("layer")&&m("."+h[0]).length<1&&n.removeAttr("layer").show()})},t.pt.IE6=function(e){m("select").each(function(e,t){var n=m(this);n.parents("."+h[0])[0]||"none"!==n.css("display")&&n.attr({layer:"1"}).hide()})},t.pt.openLayer=function(){v.zIndex=this.config.zIndex,v.setTop=function(e){return v.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",function(){v.zIndex++,e.css("z-index",v.zIndex+1)}),v.zIndex}},d.record=function(e){if(!e[0])return p.console&&console.error("index error");var t=e.attr("type"),n=e.find(".layui-layer-content"),t=t===d.type[2]?n.children("iframe"):n,i=[e[0].style.width||d.getStyle(e[0],"width"),e[0].style.height||d.getStyle(e[0],"height"),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:i}),n.data(l,d.getStyle(t[0],"height"))},d.setScrollbar=function(e){h.html.css("overflow","hidden").attr("layer-full",e)},d.restScrollbar=function(e){h.html.attr("layer-full")==e&&(h.html[0].style[h.html[0].style.removeProperty?"removeProperty":"removeAttribute"]("overflow"),h.html.removeAttr("layer-full"))},(p.layer=v).getChildFrame=function(e,t){return t=t||m("."+h[4]).attr("times"),m("#"+h[0]+t).find("iframe").contents().find(e)},v.getFrameIndex=function(e){return m("#"+e).parents("."+h[4]).attr("times")},v.iframeAuto=function(e){var t,n,i;e&&(t=v.getChildFrame("html",e).outerHeight(),n=(e=m("#"+h[0]+e)).find(h[1]).outerHeight()||0,i=e.find("."+h[6]).outerHeight()||0,e.css({height:t+n+i}),e.find("iframe").css({height:t}))},v.iframeSrc=function(e,t){m("#"+h[0]+e).find("iframe").attr("src",t)},v.style=function(e,t,n){var i=(e=m("#"+h[0]+e)).find(".layui-layer-content"),o=e.attr("type"),r=e.find(h[1]).outerHeight()||0,a=e.find("."+h[6]).outerHeight()||0;e.attr("minLeft"),o!==d.type[3]&&o!==d.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-r-a<=64&&(t.height=64+r+a)),e.css(t),a=e.find("."+h[6]).outerHeight()||0,o===d.type[2]?e.find("iframe").css({height:("number"==typeof t.height?t.height:e.height())-r-a}):i.css({height:("number"==typeof t.height?t.height:e.height())-r-a-parseFloat(i.css("padding-top"))-parseFloat(i.css("padding-bottom"))}))},v.min=function(e,t){var n,i,o,r,a,s,l=m("#"+h[0]+e),c=l.data("maxminStatus");"min"!==c&&("max"===c&&v.restore(e),l.data("maxminStatus","min"),t=t||l.data("config")||{},c=m("#"+h.SHADE+e),n=l.find(".layui-layer-min"),i=l.find(h[1]).outerHeight()||0,r=(o="string"==typeof(r=l.attr("minLeft")))?r:181*d.minStackIndex+"px",a=l.css("position"),s={width:180,height:i,position:"fixed",overflow:"hidden"},d.record(l),0<d.minStackArr.length&&(r=d.minStackArr[0],d.minStackArr.shift()),parseFloat(r)+180>y.width()&&(r=y.width()-180-(d.minStackArr.edgeIndex=d.minStackArr.edgeIndex||0,d.minStackArr.edgeIndex+=3))<0&&(r=0),t.minStack&&(s.left=r,s.top=y.height()-i,o||d.minStackIndex++,l.attr("minLeft",r)),l.attr("position",a),v.style(e,s,!0),n.hide(),"page"===l.attr("type")&&l.find(h[4]).hide(),d.restScrollbar(e),c.hide())},v.restore=function(e){var t=m("#"+h[0]+e),n=m("#"+h.SHADE+e),i=t.find(".layui-layer-content"),o=t.attr("area").split(","),r=t.attr("type"),a=t.data("config")||{},s=i.data(l);t.removeData("maxminStatus"),v.style(e,{width:o[0],height:o[1],top:parseFloat(o[2]),left:parseFloat(o[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===r&&t.find(h[4]).show(),a.scrollbar?d.restScrollbar(e):d.setScrollbar(e),s!==f&&(i.removeData(l),(r===d.type[2]?i.children("iframe"):i).css({height:s})),n.show()},v.full=function(t){var n=m("#"+h[0]+t),e=n.data("maxminStatus");"max"!==e&&("min"===e&&v.restore(t),n.data("maxminStatus","max"),d.record(n),h.html.attr("layer-full")||d.setScrollbar(t),setTimeout(function(){var e="fixed"===n.css("position");v.style(t,{top:e?0:y.scrollTop(),left:e?0:y.scrollLeft(),width:"100%",height:"100%"},!0),n.find(".layui-layer-min").hide()},100))},v.title=function(e,t){m("#"+h[0]+(t||v.index)).find(h[1]).html(e)},v.close=function(o,r){var a,e,t,s=(n=m("."+h[0]).children("#"+o).closest("."+h[0]))[0]?(o=n.attr("times"),n):m("#"+h[0]+o),l=s.attr("type"),n=s.data("config")||{},c=n.id&&n.hideOnClose;s[0]&&(a={slideDown:"layer-anim-slide-down-out",slideLeft:"layer-anim-slide-left-out",slideUp:"layer-anim-slide-up-out",slideRight:"layer-anim-slide-right-out"}[n.anim]||"layer-anim-close",e=function(){var e="layui-layer-wrap";if(c)return s.removeClass("layer-anim "+a),s.hide();if(l===d.type[1]&&"object"===s.attr("conType")){s.children(":not(."+h[5]+")").remove();for(var t=s.find("."+e),n=0;n<2;n++)t.unwrap();t.css("display",t.data("display")).removeClass(e)}else{if(l===d.type[2])try{var i=m("#"+h[4]+o)[0];i.contentWindow.document.write(""),i.contentWindow.close(),s.find("."+h[5])[0].removeChild(i)}catch(e){}s[0].innerHTML="",s.remove()}"function"==typeof d.end[o]&&d.end[o](),delete d.end[o],"function"==typeof r&&r(),d.events.resize[o]&&(y.off("resize",d.events.resize[o]),delete d.events.resize[o])},t=m("#"+h.SHADE+o),v.ie&&v.ie<10||!n.isOutAnim?t[c?"hide":"remove"]():(t.css({opacity:0}),setTimeout(function(){t[c?"hide":"remove"]()},350)),n.isOutAnim&&s.addClass("layer-anim "+a),6==v.ie&&d.reselect(),d.restScrollbar(o),"string"==typeof s.attr("minLeft")&&(d.minStackIndex--,d.minStackArr.push(s.attr("minLeft"))),v.ie&&v.ie<10||!n.isOutAnim?e():setTimeout(function(){e()},200))},v.closeAll=function(n,i){"function"==typeof n&&(i=n,n=null);var o=m("."+h[0]);m.each(o,function(e){var t=m(this);(n?t.attr("type")===n:1)&&v.close(t.attr("times"),e===o.length-1?i:null)}),0===o.length&&"function"==typeof i&&i()},v.closeLast=function(n,e){var t,i=[],o=m.isArray(n);m("string"==typeof n?".layui-layer-"+n:".layui-layer").each(function(e,t){if(t=m(t),o&&-1===n.indexOf(t.attr("type"))||"none"===t.css("display"))return!0;
2i.push(Number(t.attr("times")))}),0<i.length&&(t=Math.max.apply(null,i),v.close(t,e))},v.cache||{});v.prompt=function(n,i){var e="",t="";"function"==typeof(n=n||{})&&(i=n),n.area&&(e='style="width: '+(r=n.area)[0]+"; height: "+r[1]+';"',delete n.area),n.placeholder&&(t=' placeholder="'+n.placeholder+'"');var o,r=2==n.formType?'<textarea class="layui-layer-input"'+e+t+"></textarea>":'<input type="'+(1==n.formType?"password":"text")+'" class="layui-layer-input"'+t+">",a=n.success;return delete n.success,v.open(m.extend({type:1,btn:["确定","取消"],content:r,skin:"layui-layer-prompt"+g("prompt"),maxWidth:y.width(),success:function(e){(o=e.find(".layui-layer-input")).val(n.value||"").focus(),"function"==typeof a&&a(e)},resize:!1,yes:function(e){var t=o.val();t.length>(n.maxlength||500)?v.tips("最多输入"+(n.maxlength||500)+"个字符",o,{tips:1}):i&&i(t,e,o)}},n))},v.tab=function(r){var i=(r=r||{}).tab||{},a="layui-this",s=r.success;return delete r.success,v.open(m.extend({type:1,skin:"layui-layer-tab"+g("tab"),resize:!1,title:(()=>{var e=i.length,t=1,n="";if(0<e)for(n='<span class="'+a+'">'+i[0].title+"</span>";t<e;t++)n+="<span>"+i[t].title+"</span>";return n})(),content:'<ul class="layui-layer-tabmain">'+(()=>{var e=i.length,t=1,n="";if(0<e)for(n='<li class="layui-layer-tabli '+a+'">'+(i[0].content||"no content")+"</li>";t<e;t++)n+='<li class="layui-layer-tabli">'+(i[t].content||"no  content")+"</li>";return n})()+"</ul>",success:function(e,t,n){var i=e.find(".layui-layer-title").children(),o=e.find(".layui-layer-tabmain").children();i.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=(e=m(this)).index();e.addClass(a).siblings().removeClass(a),o.eq(t).show().siblings().hide(),"function"==typeof r.change&&r.change(t)}),"function"==typeof s&&s(e,t,n)}},r))},v.photos=function(i,e,o){var a={};if((i=m.extend(!0,{toolbar:!0,footer:!0},i)).photos){var t=(u=!("string"==typeof i.photos||i.photos instanceof m))?i.photos:{},r=t.data||[],s=t.start||0,l=i.success;if(a.imgIndex=1+(0|s),i.img=i.img||"img",delete i.success,u){if(0===r.length)return v.msg("没有图片")}else{var n=m(i.photos),c=function(){r=[],n.find(i.img).each(function(e){var t=m(this);t.attr("layer-index",e),r.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("lay-src")||t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(c(),0===r.length)return;if(e||n.on("click",i.img,function(){c();var e=m(this).attr("layer-index");v.photos(m.extend(i,{photos:{start:e,data:r,tab:i.tab},full:i.full}),!0)}),!e)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=r.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>r.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){var t;a.end||(t=e.keyCode,e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&v.close(a.index))},a.tabimg=function(e){if(!(r.length<=1))return t.start=a.imgIndex-1,v.close(a.index),v.photos(i,!0,e)},a.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},a.image={},a.getTransform=function(e){var t=[],n=e.rotate,i=e.scaleX,e=e.scale;return a.isNumber(n)&&0!==n&&t.push("rotate("+n+"deg)"),a.isNumber(i)&&1!==i&&t.push("scaleX("+i+")"),a.isNumber(e)&&t.push("scale("+e+")"),t.length?t.join(" "):"none"},a.event=function(e,n,i){var o,r;a.main.find(".layui-layer-photos-prev").on("click",function(e){e.preventDefault(),a.imgprev(!0)}),a.main.find(".layui-layer-photos-next").on("click",function(e){e.preventDefault(),a.imgnext(!0)}),m(document).on("keyup",a.keyup),e.off("click").on("click","*[toolbar-event]",function(){var e=m(this);switch(e.attr("toolbar-event")){case"rotate":a.image.rotate=((a.image.rotate||0)+Number(e.attr("data-option")))%360,a.imgElem.css({transform:a.getTransform(a.image)});break;case"scalex":a.image.scaleX=-1===a.image.scaleX?1:-1,a.imgElem.css({transform:a.getTransform(a.image)});break;case"zoom":var t=Number(e.attr("data-option"));a.image.scale=(a.image.scale||1)+t,t<0&&a.image.scale<0-t&&(a.image.scale=0-t),a.imgElem.css({transform:a.getTransform(a.image)});break;case"reset":a.image.scaleX=1,a.image.scale=1,a.image.rotate=0,a.imgElem.css({transform:"none"});break;
vendor: 6,516 bytes, line 2
2case"close":v.close(n)}i.offset(),i.auto(n)}),a.main.on("mousewheel DOMMouseScroll",function(e){var t=e.originalEvent.wheelDelta||-e.originalEvent.detail,n=a.main.find('[toolbar-event="zoom"]');(0<t?n.eq(0):n.eq(1)).trigger("click"),e.preventDefault()}),(p.layui||p.lay)&&(o=p.layui.lay||p.lay,r=function(e,t){var n=Date.now()-t.timeStart,n=t.distanceX/n,i=y.width()/3;(.25<Math.abs(n)||Math.abs(t.distanceX)>i)&&("left"===t.direction?a.imgnext(!0):"right"===t.direction&&a.imgprev(!0))},m.each([i.shadeo,a.main],function(e,t){o.touchSwipe(t,{onTouchEnd:r})}))},a.loadi=v.load(1,{shade:!("shade"in i)&&[.9,f,"unset"],scrollbar:!1});var u=r[s].src,d=function(e){v.close(a.loadi);var t,n=r[s].alt||"";o&&(i.anim=-1),a.index=v.open(m.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[m(p).width()-100,m(p).height()-100],!i.full&&(t[0]<e[0]||t[1]<e[1])&&((t=[e[0]/t[0],e[1]/t[1]])[1]<t[0]?(e[0]=e[0]/t[0],e[1]=e[1]/t[0]):t[0]<t[1]&&(e[0]=e[0]/t[1],e[1]=e[1]/t[1])),[e[0]+"px",e[1]+"px"]),title:!1,shade:[.9,f,"unset"],shadeClose:!0,closeBtn:!1,move:".layer-layer-photos-main img",moveType:1,scrollbar:!1,moveOut:!0,anim:5,isOutAnim:!1,skin:"layui-layer-photos"+g("photos"),content:'<div class="layer-layer-photos-main"><img src="'+r[s].src+'" alt="'+n+'" layer-pid="'+(r[s].pid||"")+'">'+(t=['<div class="layui-layer-photos-pointer">'],1<r.length&&t.push(['<div class="layer-layer-photos-page">','<span class="layui-icon layui-icon-left layui-layer-photos-prev"></span>','<span class="layui-icon layui-icon-right layui-layer-photos-next"></span>',"</div>"].join("")),i.toolbar&&t.push(['<div class="layui-layer-photos-toolbar layui-layer-photos-header">','<span toolbar-event="rotate" data-option="90" title="旋转"><i class="layui-icon layui-icon-refresh"></i></span>','<span toolbar-event="scalex" title="变换"><i class="layui-icon layui-icon-slider"></i></span>','<span toolbar-event="zoom" data-option="0.1" title="放大"><i class="layui-icon layui-icon-add-circle"></i></span>','<span toolbar-event="zoom" data-option="-0.1" title="缩小"><i class="layui-icon layui-icon-reduce-circle"></i></span>','<span toolbar-event="reset" title="还原"><i class="layui-icon layui-icon-refresh-1"></i></span>','<span toolbar-event="close" title="关闭"><i class="layui-icon layui-icon-close"></i></span>',"</div>"].join("")),i.footer&&t.push(['<div class="layui-layer-photos-toolbar layui-layer-photos-footer">',"<h3>"+n+"</h3>","<em>"+a.imgIndex+" / "+r.length+"</em>",'<a href="'+r[s].src+'" target="_blank">查看原图</a>',"</div>"].join("")),t.push("</div>"),t.join(""))+"</div>",success:function(e,t,n){a.main=e.find(".layer-layer-photos-main"),a.footer=e.find(".layui-layer-photos-footer"),a.imgElem=a.main.children("img"),a.event(e,t,n),i.tab&&i.tab(r[s],e),"function"==typeof l&&l(e)},end:function(){a.end=!0,m(document).off("keyup",a.keyup)}},i))},h=new Image;h.src=u,h.complete?d(h):(h.onload=function(){h.onload=null,d(h)},h.onerror=function(e){h.onerror=null,v.close(a.loadi),v.msg("当前图片地址异常,<br>是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1<r.length&&a.imgnext(!0,!0)}})})}},d.run=function(e){y=(m=e)(p);var e=navigator.userAgent.toLowerCase(),e=/android|iphone|ipod|ipad|ios/.test(e),i=m(p);e&&m.each({Height:"height",Width:"width"},function(e,t){var n="inner"+e;y[t]=function(){return n in p?p[n]:i[t]()}}),h.html=m("html"),v.open=function(e){return new t(e).index}},p.layui&&layui.define?(v.ready(),layui.define(["jquery","lay"],function(e){v.path=layui.cache.dir,d.run(layui.$),e("layer",p.layer=v)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return d.run(p.jQuery),v}):(v.ready(),d.run(p.jQuery))})(window),layui.define("jquery",function(e){var u=layui.$,f=layui.hint(),t={fixbar:function(i){var o,t,e,n,r="layui-fixbar",a=u(document),s=(i=u.extend(!0,{target:"body",bars:[],default:!0,margin:160,duration:320},i),u(i.target)),l=i.scroll?u(i.scroll):u("body"===i.target?a:s),c=(i.default&&(i.bar1&&i.bars.push({type:"bar1",icon:"layui-icon-chat"}),i.bar2&&i.bars.push({type:"bar2",icon:"layui-icon-help"}),i.bars.push({type:"top",icon:"layui-icon-top"})),u("<ul>").addClass(r));layui.each(i.bars,function(e,t){var n=u('<li class="layui-icon">');n.addClass(t.icon).attr({"lay-type":t.type,style:t.style||(i.bgcolor?"background-color: "+i.bgcolor:"")}).html(t.content),n.on("click",function(){var e=u(this).attr("lay-type");"top"===e&&("body"===i.target?u("html,body"):l).animate({scrollTop:0},i.duration),"function"==typeof i.click&&i.click.call(this,e)}),"object"===layui.type(i.on)&&layui.each(i.on,function(e,t){n.on(e,function(){var e=u(this).attr("lay-type");"function"==typeof t&&t.call(this,e)})}),"top"===t.type&&(n.addClass("layui-fixbar-top"),o=n),c.append(n)}),s.find("."+r).remove(),"object"==typeof i.css&&c.css(i.css),s.append(c),o&&(e=function e(){return l.scrollTop()>=i.margin?t||(o.show(),t=1):t&&(o.hide(),t=0),e}()),l.on("scroll",function(){e&&(clearTimeout(n),n=setTimeout(function(){e()},100))})},countdown:function(o){o=u.extend(!0,{date:new Date,now:new Date},o);var r=arguments,a=(1<r.length&&(o.date=new Date(r[0]),o.now=new Date(r[1]),o.clock=r[2]),{options:o,clear:function(){clearTimeout(a.timer)},reload:function(e){this.clear(),u.extend(!0,this.options,{now:new Date},e),s()}}),s=("function"==typeof o.ready&&o.ready(),function e(){var t=new Date(o.date),n=new Date(o.now),t=0<(t=t.getTime()-n.getTime())?t:0,i={d:Math.floor(t/864e5),h:Math.floor(t/36e5)%24,m:Math.floor(t/6e4)%60,s:Math.floor(t/1e3)%60};return 1<r.length&&(i=[i.d,i.h,i.m,i.s]),a.timer=setTimeout(function(){n.setTime(n.getTime()+1e3),o.now=n,s()},1e3),"function"==typeof o.clock&&o.clock(i,a),t<=0&&(clearTimeout(a.timer),"function"==typeof o.done)&&o.done(i,a),e}());return a},timeAgo:function(e,t){var n=[[],[]],i=(new Date).getTime()-new Date(e).getTime();return 26784e5<i?(i=new Date(e),n[0][0]=this.digit(i.getFullYear(),4),n[0][1]=this.digit(i.getMonth()+1),n[0][2]=this.digit(i.getDate()),t||(n[1][0]=this.digit(i.getHours()),n[1][1]=this.digit(i.getMinutes()),n[1][2]=this.digit(i.getSeconds())),n[0].join("-")+" "+n[1].join(":")):864e5<=i?(i/1e3/60/60/24|0)+" 天前":36e5<=i?(i/1e3/60/60|0)+" 小时前":18e4<=i?(i/1e3/60|0)+" 分钟前":i<0?"未来":"刚刚"},digit:function(e,t){var n="";t=t||2;for(var i=(e=String(e)).length;i<t;i++)n+="0";return e<Math.pow(10,t)?n+(0|e):e},toDateString:function(e,t,n){var i,o,r,a,s,l,c,u,d,h,p;return null===e||""===e?"":(i=this,(o=new Date((()=>
2{if(e)return isNaN(e)||"string"!=typeof e?e:parseInt(e)})()||new Date)).getDate()?(r=o.getFullYear(),a=o.getMonth(),s=o.getDate(),l=o.getHours(),c=o.getMinutes(),u=o.getSeconds(),d=o.getMilliseconds(),h=n&&n.customMeridiem||function(e,t){return(e=100*e+t)<600?"凌晨":e<900?"早上":e<1100?"上午":e<1300?"中午":e<1800?"下午":"晚上"},p={yy:function(){return String(r).slice(-2)},yyyy:function(){return i.digit(r,4)},M:function(){return String(a+1)},MM:function(){return i.digit(a+1)},d:function(){return String(s)},dd:function(){return i.digit(s)},H:function(){return String(l)},HH:function(){return i.digit(l)},h:function(){return String(l%12||12)},hh:function(){return i.digit(l%12||12)},A:function(){return h(l,c)},m:function(){return String(c)},mm:function(){return i.digit(c)},s:function(){return String(u)},ss:function(){return i.digit(u)},SSS:function(){return i.digit(d,3)}},(t=t||"yyyy-MM-dd HH:mm:ss").replace(/\[([^\]]+)]|y{1,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|SSS/g,function(e,t){return t||p[e]&&p[e]()||e})):(f.error('Invalid millisecond for "util.toDateString(millisecond)"'),""))},escape:function(e){return null==e?"":/[<"'>]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;"):e},unescape:function(e){return null==e&&(e=""),(e+="").replace(/\&amp;/g,"&").replace(/\&lt;/g,"<").replace(/\&gt;/g,">").replace(/\&#39;/g,"'").replace(/\&quot;/g,'"')},openWin:function(e){var t=(e=e||{}).window||window.open(e.url||"",e.target,e.specs);e.url||(t.document.open("text/html","replace"),t.document.write(e.content||""),t.document.close())},toVisibleArea:function(e){var t,n,i,o,r,a,s,l;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollElem[0]&&e.thisElem[0]&&(t=e.scrollElem,s=e.thisElem,i=(r="y"===e.type)?"top":"left",o=t[n=r?"scrollTop":"scrollLeft"](),r=t[r?"height":"width"](),a=t.offset()[i],l={},(s=s.offset()[i]-a)>r-e.margin||s<e.margin)&&(l[n]=s-r/2+o,t.animate(l,e.duration))},on:function(i,o,e){"object"==typeof i&&(e=o||{},o=i,i=e.attr||"lay-on");var t,n=(e=u.extend({elem:"body",trigger:"click"},"object"==typeof e?e:{trigger:e})).elem=u(e.elem),r="["+i+"]",a="UTIL_ON_DATA";if(n[0])return n.data(a)||n.data(a,{events:{},callbacks:{}}),t=(a=n.data(a)).callbacks,o=a.events[i]=u.extend(!0,a.events[i],o),n.off(e.trigger,r,t[i]),n.on(e.trigger,r,t[i]=function(e){var t=u(this),n=t.attr(i);"function"==typeof o[n]&&o[n].call(this,t,e)}),o}};t.event=t.on,e("util",t)}),layui.define(["jquery","laytpl","lay","util"],function(e){function a(){var t=this,e=t.config,n=e.id;return a.that[n]=t,{config:e,reload:function(e){t.reload.call(t,e)},reloadData:function(e){g.reloadData(n,e)},close:function(){t.remove()},open:function(){t.render()}}}function t(e){this.index=++g.index,this.config=d.extend({},this.config,g.config,e),this.init()}var i,n,o,d=layui.$,h=layui.laytpl,p=layui.util,r=layui.hint(),s=layui.device().mobile?"touchstart":"mousedown",l="dropdown",f="layui_"+l+"_index",g={config:{customName:{id:"id",title:"title",children:"child"}},index:layui[l]?layui[l].index+1e4:0,set:function(e){return this.config=d.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,l,e,t)}},m="layui-dropdown",c="layui-menu-item-up",u="layui-menu-item-down",y="layui-menu-body-title",v="layui-menu-item-group",b="layui-menu-item-parent",w="layui-menu-item-checked",x="layui-menu-item-checked2",A="layui-menu-body-panel",C="layui-menu-body-panel-left",k="layui-dropdown-shade",_="."+v+">."+y;t.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:[200,300],shade:0,accordion:!1},t.prototype.reload=function(e,t){this.config=d.extend({},this.config,e),this.init(!0,t)},t.prototype.init=function(e,t){var n,i=this.config,o=d(i.elem);return 1<o.length?(layui.each(o,function(){g.render(d.extend({},i,{elem:this}))}),this):(d.extend(i,lay.options(o[0])),!e&&o[0]&&o.data(f)?(n=a.getThis(o.data(f)))?n.reload(i,t):void 0:(i.elem=d(i.elem),i.id="id"in i?i.id:o.attr("id")||this.index,i.customName=d.extend({},g.config.customName,i.customName),(i.show||"reloadData"===t&&this.elemView&&d("body").find(this.elemView.get(0)).length)&&this.render(e,t),void this.events()))},t.prototype.render=function(e,t){function n(){var e=d('<ul class="layui-menu layui-dropdown-menu"></ul>');return 0<l.data.length?u(e,l.data):e.html('<li class="layui-menu-item-none">暂无数据</li>'),e}var r=this,l=r.config,c=l.customName,i=d("body"),u=function(s,e){return layui.each(e,function(e,t){var n,i=t[c.children]&&0<t[c.children].length,o=("isSpreadItem"in t?t:l).isSpreadItem,r=(a=p.escape(t[c.title]),(r=t.templet||l.templet)?"function"==typeof r?r(t):h(r).render(t):a),a=(i&&(t.type=t.type||"parent"),t.type?{group:"group",parent:"parent","-":"-"}[t.type]||"parent":"");("-"===a||t[c.title]||t[c.id]||i)&&((r=d(["<li"+(n={group:"layui-menu-item-group"+(l.isAllowSpread?o?" layui-menu-item-down":" layui-menu-item-up":""),parent:b,"-":"layui-menu-item-divider"},i||a?' class="'+n[a]+'"':t.disabled?' class="layui-disabled"':"")+">",(n="href"in t?'<a href="'+t.href+'" target="'+(t.target||"_self")+'">'+r+"</a>":r,i?'<div class="'+y+'">'+n+("parent"===a?'<i class="layui-icon layui-icon-right"></i>':"group"===a&&l.isAllowSpread?'<i class="layui-icon layui-icon-'+(o?"up":"down")+'"></i>':"")+"</div>":'<div class="'+y+'">'+n+"</div>"),"</li>"].join(""))).data("item",t),i&&(o=d('<div class="layui-panel layui-menu-body-panel"></div>'),n=d("<ul></ul>"),"parent"===a?(o.append(u(n,t[c.children])),r.append(o)):r.append(u(n,t[c.children]))),s.append(r))}),s},o=['<div class="layui-dropdown layui-border-box layui-panel layui-anim layui-anim-downbit" lay-id="'+l.id+'">',"</div>"].join("");!(e=!("contextmenu"!==l.trigger&&!lay.isTopElem(l.elem[0]))||e)&&l.elem.data(f+"_opened")||(r.elemView=d("."+m+'[lay-id="'+l.id+'"]'),"reloadData"===t&&r.elemView.length?r.elemView.html(l.content||n()):(r.elemView=d(o),r.elemView.append(l.content||n()),l.className&&r.elemView.addClass(l.className),l.style&&r.elemView.attr("style",l.style),g.thisId=l.id,r.remove(),i.append(r.elemView),l.elem.data(f+"_opened",!0),e=l.shade?'<div class="'+k+'" style="z-index:'+(r.elemView.css("z-index")-1)+"; background-color: "+(l.shade[1]||"#000")+"; opacity: "+(l.shade[0]||l.shade)+'"></div>
2':"",r.elemView.before(e),"mouseenter"===l.trigger&&r.elemView.on("mouseenter",function(){clearTimeout(a.timer)}).on("mouseleave",function(){r.delayRemove()})),r.position(),(a.prevElem=r.elemView).data("prevElem",l.elem),r.elemView.find(".layui-menu").on(s,function(e){layui.stope(e)}),r.elemView.find(".layui-menu li").on("click",function(e){var t=d(this),n=t.data("item")||{},i=n[c.children]&&0<n[c.children].length,o="all"===l.clickScope;n.disabled||i&&!o||"-"===n.type||(!1===("function"==typeof l.click?l.click(n,t):null)||i||r.remove(),layui.stope(e))}),r.elemView.find(_).on("click",function(e){var t=d(this).parent();"group"===(t.data("item")||{}).type&&l.isAllowSpread&&a.spread(t,l.accordion)}),"function"==typeof l.ready&&l.ready(r.elemView,l.elem))},t.prototype.position=function(e){var t=this.config;lay.position(t.elem[0],this.elemView[0],{position:t.position,e:this.e,clickType:"contextmenu"===t.trigger?"right":null,align:t.align||null})},t.prototype.remove=function(){this.config;var e,t,n,i=a.prevElem;i&&(t=i.attr("lay-id"),e=i.data("prevElem"),n=(t=a.getThis(t)).config.close,e&&e.data(f+"_opened",!1),i.remove(),delete a.prevElem,"function"==typeof n)&&n.call(t.config,e),lay("."+k).remove()},t.prototype.normalizedDelay=function(){var e=this.config;return{show:(e=[].concat(e.delay))[0],hide:void 0!==e[1]?e[1]:e[0]}},t.prototype.delayRemove=function(){var e=this;e.config,clearTimeout(a.timer),a.timer=setTimeout(function(){e.remove()},e.normalizedDelay().hide)},t.prototype.events=function(){var t=this,e=t.config,n=("hover"===e.trigger&&(e.trigger="mouseenter"),t.prevElem&&t.prevElem.off(e.trigger,t.prevElemCallback),"mouseenter"===e.trigger);t.prevElem=e.elem,t.prevElemCallback=function(e){clearTimeout(a.timer),t.e=e,n?a.timer=setTimeout(function(){t.render()},t.normalizedDelay().show):t.render(),e.preventDefault()},e.elem.on(e.trigger,t.prevElemCallback),n&&e.elem.on("mouseleave",function(){t.delayRemove()})},a.that={},a.getThis=function(e){var t=a.that[e];return t||r.error(e?l+" instance with ID '"+e+"' not found":"ID argument required"),t},a.spread=function(e,t){function n(){d(this).css({display:""})}var i=e.children("ul"),o=e.hasClass(c);i.is(":animated")||(o?(e.removeClass(c).addClass(u),i.hide().stop().slideDown(200,n)):(i.stop().slideUp(200,n),e.removeClass(u).addClass(c)),o&&t&&((i=e.siblings("."+u)).children("ul").stop().slideUp(200,n),i.removeClass(u).addClass(c)))},i=d(window),n=d(document),i.on("resize",function(){if(g.thisId){var e=a.getThis(g.thisId);if(e)return!(e.elemView&&!e.elemView[0]||!d("."+m)[0])&&void("contextmenu"===e.config.trigger?e.remove():e.position())}}),n.on(s,function(e){var t,n;g.thisId&&(t=a.getThis(g.thisId))&&(n=t.config,!lay.isTopElem(n.elem[0])&&"contextmenu"!==n.trigger&&(e.target===n.elem[0]||n.elem.find(e.target)[0]||t.elemView&&e.target===t.elemView[0]||t.elemView&&t.elemView.find(e.target)[0])||t.remove())}),n.on("click",o=".layui-menu:not(.layui-dropdown-menu) li",function(e){var t=d(this),n=t.parents(".layui-menu").eq(0),i=t.hasClass(v)||t.hasClass(b),o=n.attr("lay-filter")||n.attr("id"),r=lay.options(this);t.hasClass("layui-menu-item-divider")||i||(n.find("."+w).removeClass(w),n.find("."+x).removeClass(x),t.addClass(w),t.parents("."+b).addClass(x),r.title=r.title||d.trim(t.children("."+y).text()),layui.event.call(this,l,"click("+o+")",r))}),n.on("click",o+_,function(e){var t=(i=d(this)).parents("."+v+":eq(0)"),n=lay.options(t[0]),i="string"==typeof i.parents(".layui-menu").eq(0).attr("lay-accordion");"isAllowSpread"in n&&!n.isAllowSpread||a.spread(t,i)}),n.on("mouseenter",o=".layui-menu ."+b,function(e){var t,n=d(this).find("."+A);n[0]&&((t=n[0].getBoundingClientRect()).right>i.width()&&(n.addClass(C),(t=n[0].getBoundingClientRect()).left<0)&&n.removeClass(C),t.bottom>i.height())&&n.eq(0).css("margin-top",-(t.bottom-i.height()+5))}).on("mouseleave",o,function(e){var t=d(this).children("."+A);t.removeClass(C),t.css("margin-top",0)}),g.close=function(e){return(e=a.getThis(e))?(e.remove(),a.call(e)):this},g.open=function(e){return(e=a.getThis(e))?(e.render(),a.call(e)):this},g.reload=function(e,t,n){return(e=a.getThis(e))?(e.reload(t,n),a.call(e)):this},g.reloadData=function(){var n=d.extend([],arguments),i=(n[2]="reloadData",new RegExp("^("+["data","templet","content"].join("|")+")$"));return layui.each(n[1],function(e,t){i.test(e)||delete n[1][e]}),g.reload.apply(null,n)},g.render=function(e){return e=new t(e),a.call(e)},e(l,g)}),layui.define(["jquery","lay"],function(e){function t(e){this.index=++f.index,this.config=b.extend({},this.config,f.config,e),this.render()}var b=layui.$,w=layui.lay,f={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){return this.config=b.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="slider",g="layui-disabled",x="layui-slider-bar",A="layui-slider-wrap",C="layui-slider-wrap-btn",k="layui-slider-tips",_="layui-slider-input-txt",S="layui-slider-hover";t.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,tipsAlways:!1,input:!1,range:!1,height:200,disabled:!1,theme:"#16baaa"},t.prototype.precision=function(){var e=this.config,e=b.map([e.min,e.max,e.step],function(e,t){return(e=String(e).split("."))[1]?e[1].length:0});return Math.max.apply(null,e)},t.prototype.render=function(){var i=this,o=i.config;if(1<(e=b(o.elem)).length)return layui.each(e,function(){f.render(b.extend({},o,{elem:this}))}),i;b.extend(o,w.options(e[0])),o.step<=0&&(o.step=1),o.max<o.min&&(o.max=o.min+o.step),o.range?(o.value="object"==typeof o.value?o.value:[o.min,o.value],e=Math.min(o.value[0],o.value[1]),n=Math.max(o.value[0],o.value[1]),o.value[0]=Math.max(e,o.min),o.value[1]=Math.max(n,o.min),o.value[0]=Math.min(o.value[0],o.max),o.value[1]=Math.min(o.value[1],o.max),n=(o.value[0]-o.min)/(o.max-o.min)*100,r=(a=(o.value[1]-o.min)/(o.max-o.min)*100)-n+"%",n+="%",a+="%"):("object"==typeof o.value&&(o.value=Math.min.apply(null,o.value)),o.value<o.min&&(o.value=o.min),o.value>o.max&&(o.value=o.max),r=(o.value-o.min)/(o.max-o.min)*100+"%");var t,e=o.disabled?"#c2c2c2":o.theme,n='<div class="layui-slider '+("vertical"===o.type?"layui-slider-vertical":"")+'">'+(o.tips?'<div class="'+k+'" '+(o.tipsAlways?"":'style="display:none;"')+"></div>":"")+'<div class="layui-slider-bar" style="background:'+e+"; "+("vertical"===o.type?"height":"width")+":"+r+";"+("vertical"===o.type?"bottom":"left")+":"+(n||0)+';"></div><div class="layui-slider-wrap" style="'+("vertical"===o.type?"bottom":"left")+":"+(n||r)+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+e+';"></div></div>'+(o.range?'<div class="layui-slider-wrap" style="'+("vertical"===o.type?"bottom":"left")+":"+a+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+e+';"></div></div>':"")+"</div>",r=b(o.elem),a=r.next(".layui-slider");if(a[0]&&a.remove(),i.elemTemp=b(n),o.range?(i.elemTemp.find("."+A).eq(0).data("value",o.value[0]),i.elemTemp.find("."+A).eq(1).data("value",o.value[1])):i.elemTemp.find("."+A).data("value",o.value),r.html(i.elemTemp),"vertical"===o.type&&i.elemTemp.height(o.height+"px"),o.showstep){for(var s=(o.max-o.min)/o.step,l="",c=1;c<1+s;c++){var u=100*c/s;u<100&&(l+='<div class="layui-slider-step" style="'+("vertical"===o.type?"bottom":"left")+":"+u+'%"></div>')}i.elemTemp.append(l)}function d(e){e=e.parent().data("value"),e=o.setTips?o.setTips(e):e,i.elemTemp.find("."+k).html(e)}function h(e){var t="vertical"===o.type?o.height:i.elemTemp[0].offsetWidth,n=i.elemTemp.find("."+A);return("vertical"===o.type?t-e.parent()[0].offsetTop-n.height():e.parent()[0].offsetLeft)/t*100}function p(e){"vertical"===o.type?i.elemTemp.find("."+k).css({bottom:e+"%","margin-bottom":"20px",display:"inline-block"}):i.elemTemp.find("."+k).css({left:e+"%",display:"inline-block"})}o.input&&!o.range&&(e=b('<div class="layui-slider-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>'),r.css("position","relative"),r.append(e),r.find("."+_).children("input").val(o.value),"vertical"===o.type?e.css({left:0,top:-48}):i.elemTemp.css("margin-right",e.outerWidth()+15)),o.disabled?(i.elemTemp.addClass(g),i.elemTemp.find("."+C).addClass(g)):i.slide(),o.tips&&(o.tipsAlways?(d(a=i.elemTemp.find("."+C)),p(h(a))):i.elemTemp.find("."+C).on("mouseover",function(){d(b(this));var e=h(b(this));clearTimeout(t),t=setTimeout(function(){p(e)},300)}).on("mouseout",function(){clearTimeout(t),o.tipsAlways||i.elemTemp.find("."+k).css("display","none")}))},t.prototype.slide=function(e,t,n){var c=this,u=c.config,d=c.elemTemp,h=function(){return"vertical"===u.type?u.height:d[0].offsetWidth},p=d.find("."+A),s=d.next(".layui-slider-input"),l=s.children("."+_).children("input").val(),f=100/((u.max-u.min)/u.step),g=c.precision(),m=function(e,t,n){e=(e=100<(e=100<Math.ceil(e)*f?Math.ceil(e)*f:Math.round(e)*f)?100:e)<0?0:e,p.eq(t).css("vertical"===u.type?"bottom":"left",e+"%");var i,o=y(p[0].offsetLeft),r=u.range?y(p[1].offsetLeft):0,a=("vertical"===u.type?(d.find("."+k).css({bottom:e+"%","margin-bottom":"20px"}
2),o=y(h()-p[0].offsetTop-p.height()),r=u.range?y(h()-p[1].offsetTop-p.height()):0):d.find("."+k).css("left",e+"%"),o=100<o?100:o,r=100<r?100:r,Math.min(o,r)),o=Math.abs(o-r),r=("vertical"===u.type?d.find("."+x).css({height:o+"%",bottom:a+"%"}):d.find("."+x).css({width:o+"%",left:a+"%"}),u.min+(u.max-u.min)*e/100),r=Number(parseFloat(r).toFixed(g));l=r,s.children("."+_).children("input").val(l),p.eq(t).data("value",r),d.find("."+k).html(u.setTips?u.setTips(r):r),u.range&&(i=[p.eq(0).data("value"),p.eq(1).data("value")])[0]>i[1]&&i.reverse(),c.value=u.range?i:r,u.change&&u.change(c.value),"done"===n&&u.done&&u.done(c.value)},y=function(e){var t=e/h()*100/f,n=Math.round(t)*f;return e==h()?Math.ceil(t)*f:n},v=b(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join(""));if("set"===e)return m((t-u.min)/(u.max-u.min)*100/f,n,"done");d.find("."+C).each(function(s){var l=b(this);l.on("mousedown touchstart",function(e){"touchstart"===(e=e||window.event).type&&(e.clientX=e.originalEvent.touches[0].clientX,e.clientY=e.originalEvent.touches[0].clientY);var t,n,i,o,r=l.parent()[0].offsetLeft,a=e.clientX;"vertical"===u.type&&(r=h()-l.parent()[0].offsetTop-p.height(),a=e.clientY),t=l,n=function(e){"touchmove"===(e=e||window.event).type&&(e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY);var t=((t=(t=r+("vertical"===u.type?a-e.clientY:e.clientX-a))<0?0:t)>h()?h():t)/h()*100/f;m(t,s),l.addClass(S),d.find("."+k).show(),e.preventDefault()},i=function(e){l.removeClass(S),u.tipsAlways||setTimeout(function(){d.find("."+k).hide()},e)},o=function(){i(w.touchEventsSupported()?1e3:0),v.remove(),u.done&&u.done(c.value),w.touchEventsSupported()&&(t[0].removeEventListener("touchmove",n,!!w.passiveSupported&&{passive:!1}),t[0].removeEventListener("touchend",o),t[0].removeEventListener("touchcancel",o))},b("#LAY-slider-moving")[0]||b("body").append(v),v.on("mousemove",n),v.on("mouseup",o).on("mouseleave",o),w.touchEventsSupported()&&(t[0].addEventListener("touchmove",n,!!w.passiveSupported&&{passive:!1}),t[0].addEventListener("touchend",o),t[0].addEventListener("touchcancel",o))})}),d.on("click",function(e){var t=b("."+C),n=b(this);!t.is(event.target)&&0===t.has(event.target).length&&t.length&&(n=(t=(t=(t="vertical"===u.type?h()-e.clientY+n.offset().top-b(window).scrollTop():e.clientX-n.offset().left-b(window).scrollLeft())<0?0:t)>h()?h():t)/h()*100/f,t=u.range?"vertical"===u.type?Math.abs(t-parseInt(b(p[0]).css("bottom")))>Math.abs(t-parseInt(b(p[1]).css("bottom")))?1:0:Math.abs(t-p[0].offsetLeft)>Math.abs(t-p[1].offsetLeft)?1:0:0,m(n,t,"done"),e.preventDefault())}),s.children(".layui-slider-input-btn").children("i").each(function(t){b(this).on("click",function(){l=s.children("."+_).children("input").val();var e=((l=1==t?l-u.step<u.min?u.min:Number(l)-u.step:Number(l)+u.step>u.max?u.max:Number(l)+u.step)-u.min)/(u.max-u.min)*100/f;m(e,0,"done")})});function i(){var e=this.value,e=(e=(e=(e=isNaN(e)?0:e)<u.min?u.min:e)>u.max?u.max:e,((this.value=e)-u.min)/(u.max-u.min)*100/f);m(e,0,"done")}s.children("."+_).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),i.call(this))}).on("change",i)},t.prototype.events=function(){this.config},f.render=function(e){return e=new t(e),function(){var n=this,i=n.config;return{setValue:function(e,t){return e=(e=e>i.max?i.max:e)<i.min?i.min:e,i.value=e,n.slide("set",e,t||0)},config:i}}.call(e)},e(n,f)}),layui.define(["jquery","lay"],function(e){function o(){var e=this.config,t=e.id;return o.that[t]=this,{config:e}}function b(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),i=Math.max(e.r,e.g,e.b),o=i-n;return t.b=i,t.s=0!==i?255*o/i:0,0!==t.s?e.r==i?t.h=(e.g-e.b)/o:e.g==i?t.h=2+(e.b-e.r)/o:t.h=4+(e.r-e.g)/o:t.h=-1,i===n&&(t.h=0),t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}function w(e){var t,n={},i=e.h,o=255*e.s/100,e=255*e.b/100;return 0==o?n.r=n.g=n.b=e:(e=i%60*((t=e)-(o=(255-o)*e/255))/60,(i=360===i?0:i)<60?(n.r=t,n.b=o,n.g=o+e):i<120?(n.g=t,n.b=o,n.r=t-e):i<180?(n.g=t,n.r=o,n.b=o+e):i<240?(n.b=t,n.r=o,n.g=t-e):i<300?(n.b=t,n.g=o,n.r=o+e):i<360?(n.r=t,n.g=o,n.b=t-e):(n.r=0,n.g=0,n.b=0)),{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}function x(e){var n=[(e=w(e)).r.toString(16),e.g.toString(16),e.b.toString(16)];return C.each(n,function(e,t){1===t.length&&(n[e]="0"+t)}),n.join("")}function A(e){return{r:(e=e.match(/[0-9]{1,3}/g)||[])[0],g:e[1],b:e[2]}}function r(e){this.index=++a.index,this.config=C.extend({},this.config,a.config,e),this.render()}
2var C=layui.$,k=layui.lay,n=layui.hint(),t=layui.device().mobile?"click":"mousedown",a={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){return this.config=C.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,"colorpicker",e,t)}},i="colorpicker",s="layui-colorpicker",l=".layui-colorpicker-main",_="layui-icon-down",S="layui-icon-close",E="layui-colorpicker-trigger-span",T="layui-colorpicker-trigger-i",$="layui-colorpicker-side-slider",D="layui-colorpicker-basis",L="layui-colorpicker-alpha-bgcolor",N="layui-colorpicker-alpha-slider",I="layui-colorpicker-basis-cursor",M="layui-colorpicker-main-input",R=C(window),c=C(document);r.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#16baaa","#16b777","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},r.prototype.render=function(){var e=this.config;if(1<(n=C(e.elem)).length)return layui.each(n,function(){a.render(C.extend({},e,{elem:this}))}),this;C.extend(e,k.options(n[0]));var t=C(['<div class="layui-unselect layui-colorpicker">',"<span "+("rgb"==e.format&&e.alpha?'class="layui-colorpicker-trigger-bgcolor"':"")+">",'<span class="layui-colorpicker-trigger-span" ','lay-type="'+("rgb"==e.format?e.alpha?"rgba":"torgb":"")+'" ','style="'+(t="",e.color?(t=e.color,3<(e.color.match(/[0-9]{1,3}/g)||[]).length&&(e.alpha&&"rgb"==e.format||(t="#"+x(b(A(e.color))))),"background: "+t):t)+'">','<i class="layui-icon layui-colorpicker-trigger-i '+(e.color?_:S)+'"></i>',"</span>","</span>","</div>"].join("")),n=e.elem=C(e.elem);e.size&&t.addClass("layui-colorpicker-"+e.size),n.addClass("layui-inline").html(this.elemColorBox=t),e.id="id"in e?e.id:n.attr("id")||this.index,this.color=this.elemColorBox.find("."+E)[0].style.background,this.events()},r.prototype.renderPicker=function(){var n,e=this,t=e.config,i=e.elemColorBox[0],o=e.elemPicker=C(['<div id="layui-colorpicker'+e.index+'" data-index="'+e.index+'" class="layui-anim layui-anim-downbit layui-colorpicker-main">','<div class="layui-colorpicker-main-wrapper">','<div class="layui-colorpicker-basis">','<div class="layui-colorpicker-basis-white"></div>','<div class="layui-colorpicker-basis-black"></div>','<div class="layui-colorpicker-basis-cursor"></div>',"</div>",'<div class="layui-colorpicker-side">','<div class="layui-colorpicker-side-slider"></div>',"</div>","</div>",'<div class="layui-colorpicker-main-alpha '+(t.alpha?"layui-show":"")+'">','<div class="layui-colorpicker-alpha-bgcolor">','<div class="layui-colorpicker-alpha-slider"></div>',"</div>","</div>",t.predefine?(n=['<div class="layui-colorpicker-main-pre">'],layui.each(t.colors,function(e,t){n.push(['<div class="layui-colorpicker-pre'+(3<(t.match(/[0-9]{1,3}/g)||[]).length?" layui-colorpicker-pre-isalpha":"")+'">','<div style="background:'+t+'"></div>',"</div>"].join(""))}),n.push("</div>"),n.join("")):"",'<div class="layui-colorpicker-main-input">','<div class="layui-inline">','<input type="text" class="layui-input">',"</div>",'<div class="layui-btn-container">','<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">清空</button>','<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">确定</button>',"</div","</div>","</div>"].join(""));e.elemColorBox.find("."+E)[0],C(l)[0]&&C(l).data("index")==e.index?e.removePicker(r.thisElemInd):(e.removePicker(r.thisElemInd),C("body").append(o)),a.thisId=t.id,r.thisElemInd=e.index,r.thisColor=i.style.background,e.position(),e.pickerEvents()},r.prototype.removePicker=function(e){var t=this.config;return(e=C("#layui-colorpicker"+(e||this.index)))[0]&&(e.remove(),delete a.thisId,"function"==typeof t.close)&&t.close(this.color),this},r.prototype.position=function(){var e=this.config;return k.position(this.bindElem||this.elemColorBox[0],this.elemPicker[0],{position:e.position,align:"center"}),this},r.prototype.val=function(){var e,t=this,n=(t.config,t.elemColorBox.find("."+E)),i=t.elemPicker.find("."+M),o=n[0].style.backgroundColor;o?(e=b(A(o)),n=n.attr("lay-type"),t.select(e.h,e.s,e.b),"torgb"===n?i.find("input").val(o
2):"rgba"===n?(n=A(o),3===(o.match(/[0-9]{1,3}/g)||[]).length?(i.find("input").val("rgba("+n.r+", "+n.g+", "+n.b+", 1)"),t.elemPicker.find("."+N).css("left",280)):(i.find("input").val(o),o=280*o.slice(o.lastIndexOf(",")+1,o.length-1),t.elemPicker.find("."+N).css("left",o)),t.elemPicker.find("."+L)[0].style.background="linear-gradient(to right, rgba("+n.r+", "+n.g+", "+n.b+", 0), rgb("+n.r+", "+n.g+", "+n.b+"))"):i.find("input").val("#"+x(e))):(t.select(0,100,100),i.find("input").val(""),t.elemPicker.find("."+L)[0].style.background="",t.elemPicker.find("."+N).css("left",280))},r.prototype.side=function(){function c(e,t,n,i){r.select(e,t,n);var o=w({h:e,s:t,b:n}),e=x({h:e,s:t,b:n}),t=r.elemPicker.find("."+M).find("input");v.addClass(_).removeClass(S),s[0].style.background="rgb("+o.r+", "+o.g+", "+o.b+")","torgb"===l?t.val("rgb("+o.r+", "+o.g+", "+o.b+")"):"rgba"===l?(p.css("left",280*i),t.val("rgba("+o.r+", "+o.g+", "+o.b+", "+i+")"),s[0].style.background="rgba("+o.r+", "+o.g+", "+o.b+", "+i+")",h[0].style.background="linear-gradient(to right, rgba("+o.r+", "+o.g+", "+o.b+", 0), rgb("+o.r+", "+o.g+", "+o.b+"))"):t.val("#"+e),a.change&&a.change(C.trim(r.elemPicker.find("."+M).find("input").val()))}function t(e){C("#LAY-colorpicker-moving")[0]||C("body").append(o),o.on("mousemove",e),o.on("mouseup",function(){o.remove()}).on("mouseleave",function(){o.remove()})}var r=this,a=r.config,s=r.elemColorBox.find("."+E),l=s.attr("lay-type"),u=r.elemPicker.find(".layui-colorpicker-side"),e=r.elemPicker.find("."+$),d=r.elemPicker.find("."+D),i=r.elemPicker.find("."+I),h=r.elemPicker.find("."+L),p=r.elemPicker.find("."+N),f=e[0].offsetTop/180*360,g=100-(i[0].offsetTop+3)/180*100,m=(i[0].offsetLeft+3)/260*100,y=Math.round(p[0].offsetLeft/280*100)/100,v=r.elemColorBox.find("."+T),n=r.elemPicker.find(".layui-colorpicker-pre").children("div"),o=C(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div>'].join(""));e.on("mousedown",function(e){var i=this.offsetTop,o=e.clientY;t(function(e){var t=i+(e.clientY-o),n=((n=u[0].offsetHeight)<(t=t<0?0:t)?n:t)/180*360;c(f=n,m,g,y),e.preventDefault()}),e.preventDefault()}),u.on("click",function(e){var t=((t=(t=e.clientY-C(this).offset().top+R.scrollTop())<0?0:t)>this.offsetHeight?this.offsetHeight:t)/180*360;c(f=t,m,g,y),e.preventDefault()}),i.on("mousedown",function(e){var r=this.offsetTop,a=this.offsetLeft,s=e.clientY,l=e.clientX;layui.stope(e),t(function(e){var t=r+(e.clientY-s),n=d[0].offsetHeight-3,i=(((i=d[0].offsetWidth-3)<(o=(o=a+(e.clientX-l))<-3?-3:o)?i:o)+3)/260*100,o=100-((n<(t=t<-3?-3:t)?n:t)+3)/180*100;c(f,m=i,g=o,y),e.preventDefault()}),e.preventDefault()}),d.on("mousedown",function(e){var t=e.clientY-C(this).offset().top-3+R.scrollTop(),n=e.clientX-C(this).offset().left-3+R.scrollLeft(),n=((t=t<-3?-3:t)>this.offsetHeight-3&&(t=this.offsetHeight-3),(((n=n<-3?-3:n)>this.offsetWidth-3?this.offsetWidth-3:n)+3)/260*100);c(f,m=n,g=t=100-(t+3)/180*100,y),layui.stope(e),e.preventDefault(),i.trigger(e,"mousedown")}),p.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX;t(function(e){var t=i+(e.clientX-o),n=((n=h[0].offsetWidth)<(t=t<0?0:t)&&(t=n),Math.round(t/280*100)/100);c(f,m,g,y=n),e.preventDefault()}),e.preventDefault()}),h.on("click",function(e){(t=(t=e.clientX-C(this).offset().left)<0?0:t)>this.offsetWidth&&(t=this.offsetWidth);var t=Math.round(t/280*100)/100;c(f,m,g,y=t),e.preventDefault()}),n.each(function(){C(this).on("click",function(){C(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e=this.style.backgroundColor,t=b(A(e)),n=e.slice(e.lastIndexOf(",")+1,e.length-1);f=t.h,m=t.s,g=t.b,3===(e.match(/[0-9]{1,3}/g)||[]).length&&(n=1),y=n,c(t.h,t.s,t.b,n)})}),k.touchEventsSupported()&&layui.each([{elem:u,eventType:"click"},{elem:h,eventType:"click"},{elem:d,eventType:"mousedown"}],function(e,i){k.touchSwipe(i.elem,{onTouchMove:function(e){var t,n=i.eventType;e=e.touches[0],(t=document.createEvent("MouseEvent")).initMouseEvent(n,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}})})},r.prototype.select=function(e,t,n,i){this.config;var o=x({h:e,s:100,b:100}),e=(x({h:e,s:t,b:n}),e/360*180),n=180-n/100*180-3,t=t/100*260-3;this.elemPicker.find("."+$).css("top",e),this.elemPicker.find("."+D)[0].style.background="#"+o,this.elemPicker.find("."+I).css({top:n,left:t})},r.prototype.pickerEvents=function(){var s=this,l=s.config,c=s.elemColorBox.find("."+E),u=s.elemPicker.find("."+M+" input"),n={clear:function(e){c[0].style.background="",s.elemColorBox.find("."+T).removeClass(_).addClass(S),s.color="",l.done&&l.done(""),s.removePicker()},confirm:function(e,t){var n,i,o,r,a=C.trim(u.val());-1<a.indexOf(",")?(i=b(A(a)),s.select(i.h,i.s,i.b),c[0].style.background=n="#"+x(i),3<(a.match(/[0-9]{1,3}/g)||[]).length&&"rgba"===c.attr("lay-type")&&(o=280*a.slice(a.lastIndexOf(",")+1,a.length-1),s.elemPicker.find("."+N).css("left",o),n=c[0].style.background=a)):(3===(o=-1<(o=a).indexOf("#")?o.substring(1):o).length&&(o=(r=o.split(""))[0]+r[0]+r[1]+r[1]+r[2]+r[2]),r={r:(o=parseInt(o,16))>>
216,g:(65280&o)>>8,b:255&o},i=b(r),c[0].style.background=n="#"+x(i),s.elemColorBox.find("."+T).removeClass(S).addClass(_)),"change"===t?(s.select(i.h,i.s,i.b,t),l.change&&l.change(n)):(s.color=a,l.done&&l.done(a),s.removePicker())}};s.elemPicker.on("click","*[colorpicker-events]",function(){var e=C(this),t=e.attr("colorpicker-events");n[t]&&n[t].call(this,e)}),u.on("keyup",function(e){var t=C(this);n.confirm.call(this,t,13===e.keyCode?null:"change")})},r.prototype.events=function(){var e=this;e.config,e.elemColorBox.on("click",function(){e.renderPicker(),C(l)[0]&&(e.val(),e.side())})},c.on(t,function(e){var t,n,i;a.thisId&&(t=o.getThis(a.thisId))&&(n=t.config,i=t.elemColorBox.find("."+E),C(e.target).hasClass(s)||C(e.target).parents("."+s)[0]||C(e.target).hasClass(l.replace(/\./g,""))||C(e.target).parents(l)[0]||t.elemPicker&&(t.color?(e=b(A(t.color)),t.select(e.h,e.s,e.b)):t.elemColorBox.find("."+T).removeClass(_).addClass(S),i[0].style.background=t.color||"","function"==typeof n.cancel&&n.cancel(t.color),t.removePicker()))}),R.on("resize",function(){if(a.thisId){var e=o.getThis(a.thisId);if(e)return!(!e.elemPicker||!C(l)[0])&&void e.position()}}),o.that={},o.getThis=function(e){var t=o.that[e];return t||n.error(e?i+" instance with ID '"+e+"' not found":"ID argument required"),t},a.render=function(e){return e=new r(e),o.call(e)},e(i,a)}),layui.define("jquery",function(e){function t(){this.config={}}var u=layui.$,d=(layui.hint(),layui.device()),l="element",c="layui-this",h="layui-show",s=".layui-tab-title",p=(t.prototype.set=function(e){return u.extend(!0,this.config,e),this},t.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},t.prototype.tabAdd=function(e,t){var n,i=(r=u(".layui-tab[lay-filter="+e+"]")).children(s),o=i.children(".layui-tab-bar"),r=r.children(".layui-tab-content"),a="<li"+(n=[],layui.each(t,function(e,t){/^(title|content)$/.test(e)||n.push("lay-"+e+'="'+t+'"')}),0<n.length&&n.unshift(""),n.join(" "))+">"+(t.title||"unnaming")+"</li>";return o[0]?o.before(a):i.append(a),r.append('<div class="layui-tab-item">'+(t.content||"")+"</div>"),t.change&&this.tabChange(e,t.id),i.data("LAY_TAB_CHANGE",t.change),w.tabAuto(t.change?"change":null),this},t.prototype.tabDelete=function(e,t){return e=u(".layui-tab[lay-filter="+e+"]").children(s).find('>li[lay-id="'+t+'"]'),w.tabDelete(null,e),this},t.prototype.tabChange=function(e,t){return e=u(".layui-tab[lay-filter="+e+"]").children(s).find('>li[lay-id="'+t+'"]'),w.tabClick.call(e[0],{liElem:e}),this},t.prototype.tab=function(n){n=n||{},i.on("click",n.headerElem,function(e){var t=u(this).index();w.tabClick.call(this,{index:t,options:n})})},t.prototype.progress=function(e,t){var n=(e=u("."+(n="layui-progress")+"[lay-filter="+e+"]").find("."+n+"-bar")).find("."+n+"-text");return e.css("width",function(){return/^.+\/.+$/.test(t)?100*new Function("return "+t)()+"%":t}).attr("lay-percent",t),n.text(t),this},".layui-nav"),f="layui-nav-item",g="layui-nav-bar",m="layui-nav-tree",y="layui-nav-child",v="layui-nav-more",b="layui-anim layui-anim-upbit",w={tabClick:function(e){var t=(e=e||{}).options||{},n=e.liElem||u(this),i=t.headerElem?n.parent():n.parents(".layui-tab").eq(0),t=t.bodyElem?u(t.bodyElem):i.children(".layui-tab-content").children(".layui-tab-item"),o="javascript:;"!==(o=n.find("a")).attr("href")&&"_blank"===o.attr("target"),r="string"==typeof n.attr("lay-unselect"),a=i.attr("lay-filter"),e="index"in e?e.index:n.parent().children("li").index(n);o||r||(n.addClass(c).siblings().removeClass(c),t.eq(e).addClass(h).siblings().removeClass(h)),layui.event.call(this,l,"tab("+a+")",{elem:i,index:e})},tabDelete:function(e,t){var n=(t=t||u(this).parent()).parent().children("li").index(t),i=t.closest(".layui-tab"),o=i.children(".layui-tab-content").children(".layui-tab-item"),r=i.attr("lay-filter");t.hasClass(c)&&(t.next()[0]&&t.next().is("li")?w.tabClick.call(t.next()[0],{index:n+1}):t.prev()[0]&&t.prev().is("li")&&w.tabClick.call(t.prev()[0],null,n-1)),t.remove(),o.eq(n).remove(),setTimeout(function(){w.tabAuto()},50),layui.event.call(this,l,"tabDelete("+r+")",{elem:i,index:n})},tabAuto:function(o){var r="layui-tab-more",a="layui-tab-bar",s="layui-tab-close",l=this;u(".layui-tab").each(function(){var e,t=u(this),n=t.children(".layui-tab-title");t.children(".layui-tab-content").children(".layui-tab-item");var i=u('<span class="layui-unselect layui-tab-bar" '+(i='lay-stope="tabmore"')+"><i "+i+' class="layui-icon">&#xe61a;</i></span>');l===window&&d.ie,t.attr("lay-allowclose")&&n.find("li").each(function(){var e,t=u(this);t.find("."+s)[0]||((e=u('<i class="layui-icon layui-icon-close layui-unselect '+s+'"></i>')).on("click",w.tabDelete),t.append(e))}),"string"!=typeof t.attr("lay-unauto")&&(n.prop("scrollWidth")>n.outerWidth()+1||n.find("li").length&&n.height()>(e=n.find("li").eq(0).height())+e/2?("change"===o&&n.data("LAY_TAB_CHANGE")&&n.addClass(r),n.find("."+a)[0]||(n.append(i),t.attr("overflow",""),i.on("click",function(e){var t=n.hasClass(r);n[t?"removeClass":"addClass"](r)}))):(n.find("."+a).remove(),t.removeAttr("overflow")))})},hideTabMore:function(e){var t=u(".layui-tab-title");!0!==e&&"tabmore"===u(e.target).attr("lay-stope")||(t.removeClass("layui-tab-more"),t.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var e=u(this),t=e.closest(p),n=t.attr("lay-filter"),i=e.parent(),o=e.siblings("."+y),r="string"==typeof i.attr("lay-unselect");if("javascript:;"!==e.attr("href")&&"_blank"===e.attr("target")||r||o[0]||(t.find("."+c).removeClass(c),i.addClass(c)),t.hasClass(m)){var a=!i.hasClass(r=f+"ed"),s=function(){u(this).css({display:""}),t.children("."+g).css({opacity:0}
2)};if(o.is(":animated"))return;o.removeClass(b),o[0]&&(a?(o.slideDown(200,s),i.addClass(r)):(i.removeClass(r),o.show().slideUp(200,s)),"string"!=typeof t.attr("lay-accordion")&&"all"!==t.attr("lay-shrink")||((a=i.siblings("."+r)).removeClass(r),a.children("."+y).show().stop().slideUp(200,s)))}layui.event.call(this,l,"nav("+n+")",e)},collapse:function(){var e=u(this),t=e.find(".layui-colla-icon"),n=e.siblings(".layui-colla-content"),i=e.parents(".layui-collapse").eq(0),o=i.attr("lay-filter"),r="none"===n.css("display");"string"==typeof i.attr("lay-accordion")&&((i=i.children(".layui-colla-item").children("."+h)).siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"),i.removeClass(h)),n[r?"addClass":"removeClass"](h),t.html(r?"&#xe61a;":"&#xe602;"),layui.event.call(this,l,"collapse("+o+")",{title:e,content:n,show:r})}},n=(t.prototype.render=t.prototype.init=function(e,t){var n=t?'[lay-filter="'+t+'"]':"";return(t={tab:function(){w.tabAuto.call({})},nav:function(){var a={},s={},l={},c="layui-nav-title";u(p+n).each(function(e){var t=u(this),n=u('<span class="'+g+'"></span>'),i=t.find("."+f);t.find("."+g)[0]||(t.append(n),(t.hasClass(m)?i.find("dd,>."+c):i).on("mouseenter",function(){!function(e,t,n){var i,o=u(this),r=o.find("."+y);t.hasClass(m)?r[0]||(i=o.children("."+c),e.css({top:o.offset().top-t.offset().top,height:(i[0]?i:o).outerHeight(),opacity:1})):(r.addClass(b),r.hasClass("layui-nav-child-c")&&r.css({left:-(r.outerWidth()-o.width())/2}),r[0]?e.css({left:e.position().left+e.width()/2,width:0,opacity:0}):e.css({left:o.position().left+parseFloat(o.css("marginLeft")),top:o.position().top+o.height()-e.height()}),a[n]=setTimeout(function(){e.css({width:r[0]?0:o.width(),opacity:r[0]?0:1})},d.ie&&d.ie<10?0:200),clearTimeout(l[n]),"block"===r.css("display")&&clearTimeout(s[n]),s[n]=setTimeout(function(){r.addClass(h),o.find("."+v).addClass(v+"d")},300))}.call(this,n,t,e)}).on("mouseleave",function(){t.hasClass(m)?n.css({height:0,opacity:0}):(clearTimeout(s[e]),s[e]=setTimeout(function(){t.find("."+y).removeClass(h),t.find("."+v).removeClass(v+"d")},300))}),t.on("mouseleave",function(){clearTimeout(a[e]),l[e]=setTimeout(function(){t.hasClass(m)||n.css({width:0,left:n.position().left+n.width()/2,opacity:0})},200)})),i.find("a").each(function(){var e=u(this);e.parent(),e.siblings("."+y)[0]&&!e.children("."+v)[0]&&e.append('<i class="layui-icon layui-icon-down '+v+'"></i>'),e.off("click",w.clickThis).on("click",w.clickThis)})})},breadcrumb:function(){u(".layui-breadcrumb"+n).each(function(){var e=u(this),t="lay-separator",n=e.attr(t)||"/",i=e.find("a");i.next("span["+t+"]")[0]||(i.each(function(e){e!==i.length-1&&u(this).after("<span "+t+">"+n+"</span>")}),e.css("visibility","visible"))})},progress:function(){var i="layui-progress";u("."+i+n).each(function(){var e=u(this),t=e.find(".layui-progress-bar"),n=t.attr("lay-percent");t.css("width",function(){return/^.+\/.+$/.test(n)?100*new Function("return "+n)()+"%":n}),e.attr("lay-showpercent")&&setTimeout(function(){t.html('<span class="'+i+'-text">'+n+"</span>")},350)})},collapse:function(){u(".layui-collapse"+n).each(function(){u(this).find(".layui-colla-item").each(function(){var e=(t=u(this)).find(".layui-colla-title"),t="none"===t.find(".layui-colla-content").css("display");e.find(".layui-colla-icon").remove(),e.append('<i class="layui-icon layui-colla-icon">'+(t?"&#xe602;":"&#xe61a;")+"</i>"),e.off("click",w.collapse).on("click",w.collapse)})})}})[e]?t[e]():layui.each(t,function(e,t){t()})},new t),i=u(document);u(function(){n.render()}),i.on("click",".layui-tab-title li",w.tabClick),u(window).on("resize",w.tabAuto),e(l,n)}),layui.define(["lay","layer"],function(e){function i(){var t=this,e=t.config.id;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:(i.that[e]=t).config}}function v(e){this.index=++r.index,this.config=b.extend({},this.config,r.config,e),this.render()}var b=layui.$,o=layui.lay,t=layui.layer,w=layui.device(),n="upload",s="layui_upload_index",r={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){return this.config=b.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,n,e,t)}},a="layui-upload-file",l="layui-upload-form",x="layui-upload-iframe",A="layui-upload-choose",C="UPLOADING";v.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",force:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1,text:{"cross-domain":"Cross-domain requests are not supported","data-format-error":"Please return JSON data format","check-error":"",error:"","limit-number":null,"limit-size":null}},v.prototype.reload=function(e){this.config=b.extend({},this.config,e),this.render(!0)},v.prototype.render=function(e){var t=this.config,n=b(t.elem);return 1<n.length?(layui.each(n,function(){r.render(b.extend({},t,{elem:this}))}),this):(b.extend(t,o.options(n[0],{attr:n.attr("lay-data")?"lay-data":null})),!e&&n[0]&&n.data(s)?(e=i.getThis(n.data(s)))?e.reload(t):void 0:(t.elem=b(t.elem),t.bindAction=b(t.bindAction),t.id="id"in t?t.id:n.attr("id")||this.index,this.file(),void this.events()))},v.prototype.file=function(){var e=this.config,t=this.elemFile=b(['<input class="'+a+'" type="file" accept="'+e.acceptMime+'" name="'+e.field+'"',e.multiple?" multiple":"",">"].join("")),n=e.elem.next();(n.hasClass(a)||n.hasClass(l))&&n.remove(),w.ie&&w.ie<10&&e.elem.wrap('<div class="layui-upload-wrap"></div>'),this.isFile()?(this.elemFile=e.elem,e.field=e.elem[0].name):e.elem.after(t),w.ie&&w.ie<10&&this.initIE()},v.prototype.initIE=function(){var n,e=this.config,t=b('<iframe id="'+x+'" class="'+x+'" name="'+x+'" frameborder="0"></iframe>'),i=b(['<form target="'+x+'" class="'+l+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+e.url+'">',"</form>"].join(""));b("#"+x)[0]||b("body").append(t),e.elem.next().hasClass(l)||(this.elemFile.wrap(i),e.elem.next("."+l).append((n=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,n.push('<input type="hidden" name="'+e+'" value="'+t+'">')}),n.join(""))))},v.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},v.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},v.prototype.preview=function(i){window.FileReader&&layui.each(this.chooseFiles,function(e,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){i&&i(e,t,this.result)}})},v.prototype.upload=function(e,t){var n,i,o,r,l=this,c=l.config,u=c.text||{},a=l.elemFile[0],d=function(){return e||l.files||l.chooseFiles||a.files},s=function(){function o(){c.multiple&&r+a===l.fileLength&&"function"==typeof c.allDone&&c.allDone({total:l.fileLength,successful:r,failed:a})}function n(n){function t(e){n.unified?layui.each(s,function(e,t){delete t[C]}):delete e[C]}var i=new FormData;if(layui.each(c.data,function(e,t){t="function"==typeof t?n.unified?t():t(n.index,n.file):t,i.append(e,t)}),n.unified)layui.each(s,function(e,t){t[C]||(t[C]=!0,i.append(c.field,t))});else{if(n.file[C])return;i.append(c.field,n.file),n.file[C]=!0}var e={url:c.url,type:"post",data:i,dataType:c.dataType||"json",contentType:!1,processData:!1,headers:c.headers||{},success:function(e){c.unified?r+=l.fileLength:r++,h(n.index,e),o(n.index),t(n.file)},error:function(e){c.unified?a+=l.fileLength:a++,l.msg(u.error||["Upload failed, please try again.","status: "+(e.status||"")+" - "+(e.statusText||"error")
2].join("<br>")),p(n.index),o(n.index),t(n.file)}};"function"==typeof c.progress&&(e.xhr=function(){var e=b.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){var t;e.lengthComputable&&(t=Math.floor(e.loaded/e.total*100),c.progress(t,(c.item||c.elem)[0],e,n.index))}),e}),b.ajax(e)}var r=0,a=0,s=d();c.unified?n({unified:!0,index:0}):layui.each(s,function(e,t){n({index:e,file:t})})},h=function(e,t){if(l.elemFile.next("."+A).remove(),a.value="","json"===c.force&&"object"!=typeof t)try{t=JSON.parse(t)}catch(e){return t={},l.msg(u["data-format-error"])}"function"==typeof c.done&&c.done(t,e||0,function(e){l.upload(e)})},p=function(e){c.auto&&(a.value=""),"function"==typeof c.error&&c.error(e||0,function(e){l.upload(e)})},f=c.exts,g=(i=[],layui.each(e||l.chooseFiles,function(e,t){i.push(t.name)}),i),m={preview:function(e){l.preview(e)},upload:function(e,t){var n={};n[e]=t,l.upload(n)},pushFile:function(){return l.files=l.files||{},layui.each(l.chooseFiles,function(e,t){l.files[e]=t}),l.files},resetFile:function(e,t,n){t=new File([t],n),l.files=l.files||{},l.files[e]=t}},y={file:"文件",images:"图片",video:"视频",audio:"音频"}[c.accept]||"文件";if(0!==(g=0===g.length?a.value.match(/[^\/\\]+\..+/g)||[]:g).length){switch(c.accept){case"file":layui.each(g,function(e,t){if(f&&!RegExp(".\\.("+f+")$","i").test(escape(t)))return n=!0});break;case"video":layui.each(g,function(e,t){if(!RegExp(".\\.("+(f||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(t)))return n=!0});break;case"audio":layui.each(g,function(e,t){if(!RegExp(".\\.("+(f||"mp3|wav|mid")+")$","i").test(escape(t)))return n=!0});break;default:layui.each(g,function(e,t){if(!RegExp(".\\.("+(f||"jpg|png|gif|bmp|jpeg|svg|webp")+")$","i").test(escape(t)))return n=!0})}return n?(l.msg(u["check-error"]||"选择的"+y+"中包含不支持的格式"),a.value=""):"choose"!==t&&!c.auto||(c.choose&&c.choose(m),"choose"!==t)?(l.fileLength=(o=0,y=d(),layui.each(y,function(){o++}),o),c.number&&l.fileLength>c.number?l.msg("function"==typeof u["limit-number"]?u["limit-number"](c,l.fileLength):"同时最多只能上传: "+c.number+" 个文件<br>您当前已经选择了: "+l.fileLength+" 个文件"):0<c.size&&!(w.ie&&w.ie<10)&&(layui.each(d(),function(e,t){t.size>1024*c.size&&(t=1<=(t=c.size/1024)?t.toFixed(2)+"MB":c.size+"KB",a.value="",r=t)}),r)?l.msg("function"==typeof u["limit-size"]?u["limit-size"](c,r):"文件大小不能超过 "+r):void(c.before&&!1===c.before(m)||(!w.ie||9<w.ie?s:function(){var n=b("#"+x);l.elemFile.parent().submit(),clearInterval(v.timer),v.timer=setInterval(function(){var e,t=n.contents().find("body");try{e=t.text()}catch(e){l.msg(u["cross-domain"]),clearInterval(v.timer),p()}e&&(clearInterval(v.timer),t.html(""),h(0,e))},30)})())):void 0}},v.prototype.events=function(){function i(e){r.chooseFiles={},layui.each(e,function(e,t){var n=(new Date).getTime();r.chooseFiles[n+"-"+e]=t})}function o(e,t){var n=r.elemFile,e=(a.item||a.elem,1<e.length?e.length+"个文件":(e[0]||{}).name||n[0].value.match(/[^\/\\]+\..+/g)||[]);n.next().hasClass(A)&&n.next().remove(),r.upload(null,"choose"),r.isFile()||a.choose||n.after('<span class="layui-inline '+A+'">'+e+"</span>")}var r=this,a=r.config;a.elem.off("upload.start").on("upload.start",function(){var e=b(this);r.config.item=e,r.elemFile[0].click()}),w.ie&&w.ie<10||a.elem.off("upload.over").on("upload.over",function(){b(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){b(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var n=b(this),t=t.originalEvent.dataTransfer.files||[];n.removeAttr("lay-over"),i(t),a.auto?r.upload():o(t)}),r.elemFile.on("change",function(){var e=this.files||[];0!==e.length&&(i(e),a.auto?r.upload():o(e))}),a.bindAction.off("upload.action").on("upload.action",function(){r.upload()}),a.elem.data(s)||(a.elem.on("click",function(){r.isFile()||b(this).trigger("upload.start")}),a.drag&&a.elem.on("dragover",function(e){e.preventDefault(),b(this).trigger("upload.over")}).on("dragleave",function(e){b(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),b(this).trigger("upload.drop",e)}),a.bindAction.on("click",function(){b(this).trigger("upload.action")}),a.elem.data(s,a.id))},i.that={},i.getThis=function(e){var t=i.that[e];return t||hint.error(e?n+" instance with ID '"+e+"' not found":"ID argument required"),t},r.render=function(e){return e=new v(e),i.call(e)},e(n,r)}),layui.define(["lay","layer","util"],function(e){var k=layui.$,p=layui.layer,d=layui.util,r=layui.hint(),_=(layui.device(),"form"),u=".layui-form",S="layui-this",E="layui-hide",T="layui-disabled",t=((n=function(){this.config={verify:{required:function(e){if(!/[\S]+/.test(e))return"必填项不能为空"},phone:function(e){if(e&&!/^1\d{10}$/.test(e))return"手机号格式不正确"},email:function(e){if(e&&!/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e))return"邮箱格式不正确"},url:function(e){if(e&&!/^(#|(http(s?)):\/\/|\/\/)[^\s]+\.[^\s]+$/.test(e))return"链接格式不正确"},number:function(e){if(e&&isNaN(e))return"只能填写数字"},date:function(e){if(e&&!/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/.test(e))return"日期格式不正确"},identity:function(e){if(e&&!/(^\d{15}$)|(^\d{17}(x|X|\d)$)/.test(e))return"身份证号格式不正确"}},autocomplete:null}}).prototype.set=function(e){return k.extend(!0,this.config,e),this},n.prototype.verify=function(e){return k.extend(!0,this.config.verify,e),this},n.prototype.getFormElem=function(e){return k(u+(e?'[lay-filter="'+e+'"]':""))},n.prototype.on=function(e,t){return layui.onevent.call(this,_,e,t)},n.prototype.val=function(e,n){return this.getFormElem(e).each(function(e,t){var i=k(this);layui.each(n,function(e,t){var n;(e=i.find('[name="'+e+'"]'))[0]&&("checkbox"===(n=e[0].type)?e[0].checked=t:"radio"===n?e.each(function(){this.checked=this.value==t}):e.val(t))})}),a.render(null,e),this.getValue(e)},n.prototype.getValue=function(e,t){t=t||this.getFormElem(e);var i={},o={},e=t.find("input,select,textarea");return layui.each(e,function(e,t){var n;k(this),t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name&&(/^.*\[\]$/.test(t.name)&&(n=t.name.match(/^(.*)\[\]$/g)[0],i[n]=0|i[n],n=t.name.replace(/^(.*)\[\]$/,"$1["+i[n]+++"]")),/^(checkbox|radio)$/.test(t.type)&&!t.checked||(o[n||t.name]=t.value))}),o},n.prototype.render=function(e,t){var n=this.config,i=k(u+(t?'[lay-filter="'+t+'"]':"")),o={input:function(e){function t(e,t){var n=e.val(),i=Number(n),o=Number(e.attr("step"))||1,r=Number(e.attr("min")),a=Number(e.attr("max")),s=Number(e.attr("lay-precision")),l="click"!==t&&""===n,c="init"===t;isNaN(i)||("click"===t&&(i=k(this).index()?i-o:i+o),t=function(e){return((e.toString().match(/\.(\d+$)/)||[])[1]||"").length},s=0<=s?s:Math.max(t(o),t(n)),l||(c||a<=(i=i<=r?r:i)&&(i=a),0===s?i=parseInt(i):0<s&&(i=i.toFixed(s)),e.val(i)),e[(i<r||a<i)&&!l?"addClass":"removeClass"]("layui-input-number-out-of-range"),c)||((o={increment:e.next().find(".layui-icon-up"),decrement:e.next().find(".layui-icon-down")}).increment[a<=i&&!l?"addClass":"removeClass"](T),o.decrement[i<=r&&!l?"addClass":"removeClass"](T))}e=e||i.find("input,textarea"),n.autocomplete&&e.attr("autocomplete",n.autocomplete);i.find("input[lay-affix],textarea[lay-affix]").each(function(){function o(n){n=k.extend({},h[s]||{value:s},n,lay.options(a[0]));var i,t=k('<div class="'+u+'">'),e=layui.isArray(n.value)?n.value:[n.value],e=k((i=[],layui.each(e,function(e,t){i.push('<i class="layui-icon layui-icon-'+t+(n.disabled?" "+T:"")+'"></i>')}),i.join(""))),o=(t.append(e),n.split&&t.addClass("layui-input-split"),n.className&&t.addClass(n.className),a.next("."+u)),r=(o[0]&&o.remove(),a.parent().hasClass(l)||a.wrap('<div class="'+l+'"></div>'),a.next("."+c));r[0]?((o=r.find("."+u))[0]&&o.remove(),r.prepend(t),a.css("padding-right",function(){return(a.closest(".layui-input-group")[0]?0:r.outerWidth())+t.outerWidth()})):(t.addClass(c),a.after(t)),"auto"===n.show&&d(t,a.val()),"function"==typeof n.init&&n.init.call(this,a,n),a.on("input propertychange",function(){var e=this.value;"auto"===n.show&&d(t,e)}),a.on("blur",function(){"function"==typeof n.blur&&n.blur.call(this,a,n)}),e.on("click",function(){var e=a.attr("lay-filter");k(this).hasClass(T)||("function"==typeof n.click&&n.click.call(this,a,n),layui.event.call(this,_,"input-affix("
2+e+")",{elem:a[0],affix:s,options:n}))})}var a=k(this),s=a.attr("lay-affix"),l="layui-input-wrap",c="layui-input-suffix",u="layui-input-affix",e=a.is("[disabled]")||a.is("[readonly]"),d=function(e,t){(e=k(e))[0]&&e[k.trim(t)?"removeClass":"addClass"](E)},h={eye:{value:"eye-invisible",click:function(e,t){var n="LAY_FORM_INPUT_AFFIX_SHOW",i=e.data(n);e.attr("type",i?"password":"text").data(n,!i),o({value:i?"eye-invisible":"eye"})}},clear:{value:"clear",click:function(e){e.val("").focus(),d(k(this).parent(),null)},show:"auto",disabled:e},number:{value:["up","down"],split:!0,className:"layui-input-number",disabled:a.is("[disabled]"),init:function(e){t.call(this,e,"init")},click:function(e){t.call(this,e,"click")},blur:function(e){t.call(this,e,"blur")}}};o()})},select:function(e){function y(e,t){k(e.target).parent().hasClass(w)&&!t||((e=k("."+b)).removeClass(b+"ed "+b+"up"),e.hasClass("layui-select-creatable")&&e.children("dl").children("."+A).remove(),v&&C&&v.val(C)),v=null}function u(i,e,t,c){var s,u,o,n,l,d,r,a=k(this),h=i.find("."+w),p=h.find("input"),f=i.find("dl"),g=(f.children("dd"),f.children("dt")),m=this.selectedIndex;e||(u=a.attr("lay-search"),o=!(!lay.ie||"10"!==lay.ie&&"11"!==lay.ie||!p.attr("placeholder")),n=function(){var e=i.offset().top+i.outerHeight()+5-$.scrollTop(),t=f.outerHeight(),n=f.children("dd");m=a[0].selectedIndex,i.addClass(b+"ed"),n.removeClass(E),g.removeClass(E),s=null,n.removeClass(S),0<=m&&n.eq(m).addClass(S),e+t>$.height()&&t<=e&&i.addClass(b+"up"),d(),o&&f.off("mousedown.select.ieph").on("mousedown.select.ieph",function(){p[0].__ieph=!0,setTimeout(function(){p[0].__ieph=!1},60)})},l=function(e){i.removeClass(b+"ed "+b+"up"),p.blur(),s=null,c&&f.children("."+A).remove(),e||r(p.val(),function(e){var t=a[0].selectedIndex;e&&(C=k(a[0].options[t]).html(),0===t&&C===p.attr("placeholder")&&(C=""),p.val(C||""))})},d=function(){var e,t,n=f.children("dd."+S);n[0]&&(e=n.position().top,t=f.height(),n=n.height(),t<e&&f.scrollTop(e+f.scrollTop()-t+n-5),e<0)&&f.scrollTop(e+f.scrollTop()-5)},h.on("click",function(e){(i.hasClass(b+"ed")?l:(y(e,!0),n))(),f.find("."+x).remove()}),h.find(".layui-edge").on("click",function(){p.focus()}),p.on("keyup",function(e){9===e.keyCode&&n()}).on("keydown",function(r){var e=r.keyCode,a=(9===e&&l(),function(i,o){r.preventDefault();var e=(()=>{var e=f.children("dd."+S);if(f.children("dd."+E)[0]&&"next"===i){var t=f.children("dd:not(."+E+",."+T+")"),n=t.eq(0).index();if(0<=n&&n<e.index()&&!t.hasClass(S))return t.eq(0).prev()[0]?t.eq(0).prev():f.children(":last")}return o&&o[0]?o:s&&s[0]?s:e})(),t=e[i](),n=e[i]("dd:not(."+E+")");return t[0]?(s=e[i](),n[0]&&!n.hasClass(T)||!s[0]?(n.addClass(S).siblings().removeClass(S),void d()):a(i,s)):s=null});38===e&&a("prev"),40===e&&a("next"),13===e&&(r.preventDefault(),f.children("dd."+S).trigger("click"))}).on("paste",function(){n()}),r=function(o,e,r){var a=0,t=f.children("dd"),s=!1,l=o;return layui.each(t,function(){var e=k(this),t=e.text(),n=c&&e.hasClass(A),i=(c&&!n&&t===l&&(s=!0),"cs"!==u&&(t=t.toLowerCase(),o=o.toLowerCase()),-1===t.indexOf(o));(""===o||"blur"===r?o!==t:i)&&a++,"keyup"===r&&e[(c?i&&!n:i)?"addClass":"removeClass"](E)}),"keyup"===r&&layui.each(g,function(){var e=k(this),t=e.nextUntil("dt").filter("dd");e[(t=c?t.not("."+A):t).length==t.filter("."+E).length?"addClass":"removeClass"](E)}),e(t=a===t.length,s),t},t&&p.on("input propertychange",layui.debounce(function(e){var i=this.value,t=e.keyCode;return 9!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&(o&&e.target.__ieph?e.target.__ieph=!1:(r(i,function(e,t){var n;c?t?f.children("."+A).remove():(t=k("<div>"+i+"</div>").text(),(n=f.children("."+A))[0]?(n.attr("lay-value",i),n.text(t)):f.append('<dd class="'+A+'" lay-value="'+i+'">'+t+"</dd>")):e?f.find("."+x)[0]||f.append('<p class="'+x+'">无匹配项</p>'):f.find("."+x).remove()},"keyup"),""===i&&(a.val(""),f.find("."+S).removeClass(S),(a[0].options[0]||{}).value||f.children("dd:eq(0)").addClass(S),f.find("."+x).remove(),c)&&f.children("."+A).remove(),void d()))},50)).on("blur",function(e){var t=a[0].selectedIndex;v=p,C=k(a[0].options[t]).text(),0===t&&C===p.attr("placeholder")&&(C=""),setTimeout(function(){r(p.val(),function(e){C||p.val("")},"blur")},200)}),f.on("click","dd",function(){var e=k(this),t=e.attr("lay-value"),n=a.attr("lay-filter");return e.hasClass(T)||(e.hasClass("layui-select-tips")?p.val(""):(p.val(e.text()),e.addClass(S)),c&&e.hasClass(A)&&(e.removeClass(A),a.append('<option value="'+t+'">'+t+"</option>")),e.siblings().removeClass(S),a.val(t).removeClass("layui-form-danger"),layui.event.call(this,_,"select("+n+")",{elem:a[0],value:t,othis:i}),l(!0)),!1}),i.find("dl>dt").on("click",function(e){return!1}
2),k(document).off("click",y).on("click",y))}var v,b="layui-form-select",w="layui-select-title",x="layui-select-none",A="layui-select-create-option",C="",e=e||i.find("select");e.each(function(e,t){var n=k(this),i=n.next("."+b),o=this.disabled,r=t.value,a=k(t.options[t.selectedIndex]),t=t.options[0];if("string"==typeof n.attr("lay-ignore"))return n.show();var s,l="string"==typeof n.attr("lay-search"),c="string"==typeof n.attr("lay-creatable")&&l,t=t&&!t.value&&t.innerHTML||"请选择",a=k(['<div class="'+(l?"":"layui-unselect ")+b,o?" layui-select-disabled":"",(c?" layui-select-creatable":"")+'">','<div class="'+w+'">','<input type="text" placeholder="'+d.escape(k.trim(t))+'" value="'+d.escape(k.trim(r?a.html():""))+'"'+(!o&&l?"":" readonly")+' class="layui-input'+(l?"":" layui-unselect")+(o?" "+T:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(n.find("optgroup")[0]?" layui-select-group":"")+'">',(t=n.find("*"),s=[],layui.each(t,function(e,t){var n=t.tagName.toLowerCase();0!==e||t.value||"optgroup"===n?s.push("optgroup"===n?"<dt>"+t.label+"</dt>":'<dd lay-value="'+d.escape(t.value)+'" class="'+(r===t.value?S:"")+(t.disabled?" "+T:"")+'">'+k.trim(t.innerHTML)+"</dd>"):s.push('<dd lay-value="" class="layui-select-tips">'+k.trim(t.innerHTML||"请选择")+"</dd>")}),0===s.length&&s.push('<dd lay-value="" class="'+T+'">没有选项</dd>'),s.join("")+"</dl>"),"</div>"].join(""));i[0]&&i.remove(),n.after(a),u.call(this,a,o,l,c)})},checkbox:function(e){var c={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],switch:["layui-form-switch","layui-form-onswitch","switch"],SUBTRA:"layui-icon-indeterminate"};(e=e||i.find("input[type=checkbox]")).each(function(e,t){var n=k(this),i=n.attr("lay-skin")||"primary",o=d.escape(k.trim(t.title||(t.title=n.attr("lay-text")||""))),r=this.disabled,a=c[i]||c.checkbox,s=n.next("."+a[0]),l=(s[0]&&s.remove(),[]);if(n.next("[lay-checkbox]")[0]&&(o=(s=n.next()).html()||"",1<s[0].attributes.length)&&layui.each(s[0].attributes,function(e,t){"lay-checkbox"!==t.name&&l.push(t.name+'="'+t.value+'"')}),l=l.join(" "),o="switch"===i?o.split("|"):[o],"string"==typeof n.attr("lay-ignore"))return n.show();r=k(['<div class="layui-unselect '+a[0],t.checked?" "+a[1]:"",r?" layui-checkbox-disabled "+T:"",'"',i?' lay-skin="'+i+'"':"",">",(s={checkbox:[o[0]?"<div "+l+">"+o[0]+"</div>":"primary"===i?"":"<div></div>",'<i class="layui-icon '+("primary"===i&&!t.checked&&n.get(0).indeterminate?c.SUBTRA:"layui-icon-ok")+'"></i>'].join(""),switch:"<div>"+((t.checked?o[0]:o[1])||"")+"</div><i></i>"})[i]||s.checkbox,"</div>"].join("")),n.after(r),function(i,o){var r=k(this);i.on("click",function(){var e=k(this),t=r.attr("lay-filter"),e=e.next("*[lay-checkbox]")[0]?e.next().html():r.attr("title")||"",n=r.attr("lay-skin")||"primary",e="switch"===n?e.split("|"):[e];r[0].disabled||(r[0].indeterminate&&(r[0].indeterminate=!1,i.find("."+c.SUBTRA).removeClass(c.SUBTRA).addClass("layui-icon-ok")),r[0].checked?(r[0].checked=!1,i.removeClass(o[1]),"switch"===n&&i.children("div").html(e[1])):(r[0].checked=!0,i.addClass(o[1]),"switch"===n&&i.children("div").html(e[0])),layui.event.call(r[0],_,o[2]+"("+t+")",{elem:r[0],value:r[0].value,othis:i}))})}.call(this,r,a)})},radio:function(e){var l="layui-form-radio",c=["layui-icon-radio","layui-icon-circle"];(e=e||i.find("input[type=radio]")).each(function(e,t){var n=k(this),i=n.next("."+l),o=this.disabled,r=n.attr("lay-skin");if("string"==typeof n.attr("lay-ignore"))return n.show();i[0]&&i.remove();var i=d.escape(t.title||""),a=[],s=(n.next("[lay-radio]")[0]&&(i=(s=n.next()).html()||"",1<s[0].attributes.length)&&layui.each(s[0].attributes,function(e,t){"lay-radio"!==t.name&&a.push(t.name+'="'+t.value+'"')}),a=a.join(" "),k(['<div class="layui-unselect '+l,t.checked?" "+l+"ed":"",(o?" layui-radio-disabled "+T:"")+'"',r?' lay-skin="'+r+'"':"",">",'<i class="layui-anim layui-icon '+c[t.checked?0:1]+'"></i>',"<div "+a+">"+i+"</div>","</div>"].join("")));n.after(s),function(i){var o=k(this),r="layui-anim-scaleSpring";i.on("click",function(){var e=o[0].name,t=o.parents(u),n=o.attr("lay-filter"),e=t.find("input[name="+e.replace(/(\.|#|\[|\])/g,"\\$1")+"]");o[0].disabled||(layui.each(e,function(){var e=k(this).next("."+l);this.checked=!1,e.removeClass(l+"ed"),e.children(".layui-icon").removeClass(r+" "+c[0]).addClass(c[1])}),o[0].checked=!0,i.addClass(l+"ed"),i.children(".layui-icon").addClass(r+" "+c[0]),layui.event.call(o[0],_,"radio("+n+")",{elem:o[0],value:o[0].value,othis:i}))})}.call(this,s)})}},t=function(){layui.each(o,function(e,t){t()})};return"object"===layui.type(e)?k(e).is(u)?(i=k(e),t()):e.each(function(e,t){var n=k(t);n.closest(u).length&&("SELECT"===t.tagName?o.select(n):"INPUT"===t.tagName&&("checkbox"===(t=t.type)||"radio"===t?o[t](n):o.input(n)))}):e?o[e]?o[e]():r.error('不支持的 "'+e+'" 表单渲染'):t(),this},n.prototype.validate=function(e){var u,d=this.config.verify,h="layui-form-danger";return!(e=k(e))[0]||(void 0!==e.attr("lay-verify")||!1!==this.validate(e.find("*[lay-verify]")))&&(layui.each(e,function(e,a){var s=k(this),t=(s.attr("lay-verify")||"").split("|"),l=s.attr("lay-vertype"),c=k.trim(s.val());if(s.removeClass(h),layui.each(t,function(e,t){var n="",i=d[t];if(i){var o="function"==typeof i?n=i(c,a):!i[0].test(c),r="select"===a.tagName.toLowerCase()||/^(checkbox|radio)$/.test(a.type),n=n||i[1];if("required"===t&&(n=s.attr("lay-reqtext")||n),o)return"tips"===l?p.tips(n,"string"!=typeof s.attr("lay-ignore")&&r?s.next():s,{tips:1}):"alert"===l?p.alert(n,{title:"提示",shadeClose:!0}):/\b(string|number)\b/.test(typeof n)&&p.msg(n,{icon:5,shift:6}),setTimeout(function(){(r?s.next().find("input"):a).focus()},7),s.addClass(h),u=!0}}),u)return u}),!u)},n.prototype.submit=function(e,t){var n,i=k(this),e="string"==typeof e?e:i.attr("lay-filter"),o=this.getFormElem?this.getFormElem(e):i.parents(u).eq(0),r=o.find("*[lay-verify]");return!!a.validate(r)&&(n=a.getValue(null,o),r={elem:this.getFormElem?window.event&&window.event.target:this,form:(this.getFormElem?o:i.parents("form"))[0],field:n},"function"==typeof t&&t(r),layui.event.call(this,_,"submit("+e+")",r))}),a=new n,n=k(document),$=k(window);k(function(){a.render()}),n.on("reset",u,function(){var e=k(this).attr("lay-filter");setTimeout(function(){a.render(null,e)},50)}),n.on("submit",u,t).on("click","*[lay-submit]",t),e(_,a)}),layui.define(["lay","laytpl","laypage","form","util"],function(r){function f(){var n=this,e=n.config,i=e.id||e.index;return{config:e,reload:function(e,t){n.reload.call(n,e,t)},reloadData:function(e,t){C.reloadData(i,e,t)},setColsWidth:function(){n.setColsWidth.call(n)},resize:function(){n.resize.call(n)}}}function g(e){var t=f.that[e];return t||h.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null}function o(e){var t=f.config[e];return t||h.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null}function m(e){var t=this.config||{},n=(e=e||{}).item3,i=e.content;return"numbers"===n.type&&(i=e.tplData[C.config.numbersName]),("escape"in n?n:t).escape&&(i=x.escape(i)),(t=e.text&&n.exportTemplet||n.templet||n.toolbar)&&(i="function"==typeof t?t.call(n,e.tplData,e.obj):v((t=>{try{return l(t).html()}catch(e){return t}})(t)||String(i)).render(y.extend({LAY_COL:n},e.tplData))),e.text?y("<div>"+i+"</div>").text():i}function e(e){return['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{=d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{=d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(e=e||{}).fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':"","{{# var isSort = !(item2.colGroup) && item2.sort; }}",'<th data-field="{{= item2.field||i2 }}" data-key="{{=d.index}}-{{=i1}}-{{=i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{= item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{=item2.minWidth}}"{{# } }} {{# if(item2.maxWidth){ }}data-maxwidth="{{=item2.maxWidth}}"{{# } }} {{# if(item2.style){ }}style="{{=item2.style}}"{{# } }} {{#var colspan = layui.type(item2.colspan2) === \'number\' ? item2.colspan2 : item2.colspan; if(colspan){}} colspan="{{=colspan}}"{{#} if(item2.rowspan){}} rowspan="{{=item2.rowspan}}"{{#}}} {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}"{{# if(item2.title){ }} title="{{ layui.$(\'<div>\' + item2.title + \'</div>\').text() }}"{{# } }}>','<div class="layui-table-cell laytable-cell-',"{{# if(item2.colGroup){ }}","group","{{# } else { }}","{{=d.index}}-{{=i1}}-{{=i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{= item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{=item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{-item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",e.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")}function t(e){this.index=++C.index,this.config=y.extend({},this.config,C.config,e),this.render()}
vendor: 7,644 bytes, line 2
2var y=layui.$,l=layui.lay,v=layui.laytpl,B=layui.laypage,b=layui.layer,w=layui.form,x=layui.util,h=layui.hint(),A=layui.device(),C={config:{checkName:"LAY_CHECKED",indexName:"LAY_INDEX",numbersName:"LAY_NUM",disabledName:"LAY_DISABLED"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){return this.config=y.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,k,e,t)}},k="table",n=".layui-table",_="layui-hide",p="layui-hide-v",S="layui-none",E="layui-table-view",a=".layui-table-header",T=".layui-table-body",u=".layui-table-fixed-r",j=".layui-table-pageview",$=".layui-table-sort",D="layui-table-checked",L="layui-table-edit",N="layui-table-hover",H="laytable-cell-group",I="layui-table-col-special",M="layui-table-tool-panel",R="layui-table-expanded",O="LAY_TABLE_MOVE_DICT",i=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{=d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{=d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),d=[,"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">',"{{# if(d.data.loading){ }}",'<div class="layui-table-init" style="background-color: #fff;">','<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"</div>","{{# } }}","{{# var left, right; }}",'<div class="layui-table-header">',e(),"</div>",'<div class="layui-table-body layui-table-main">',i,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',e({fixed:!0}),"</div>",'<div class="layui-table-body">',i,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r layui-hide">','<div class="layui-table-header">',e({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',i,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{=d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{=d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}",'<div class="layui-table-column layui-table-page layui-hide">','<div class="layui-inline layui-table-pageview" id="layui-table-page{{=d.index}}"></div>',"</div>"].join(""),s=y(window),P=y(document),c=(t.prototype.config={limit:10,loading:!0,escape:!0,cellMinWidth:60,cellMaxWidth:Number.MAX_VALUE,editTrigger:"click",defaultToolbar:["filter","exports","print"],defaultContextmenu:!0,autoSort:!0,text:{none:"无数据"},cols:[]},t.prototype.render=function(e){var t=this,n=t.config,i=(n.elem=y(n.elem),n.where=n.where||{},n.id="id"in n?n.id:n.elem.attr("id")||t.index);if(f.that[i]=t,(f.config[i]=n).request=y.extend({pageName:"page",limitName:"limit"},n.request),n.response=y.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},n.response),null!==n.page&&"object"==typeof n.page&&(n.limit=n.page.limit||n.limit,n.limits=n.page.limits||n.limits,t.page=n.page.curr=n.page.curr||1,delete n.page.elem,delete n.page.jump),!n.elem[0])return t;if(n.elem.attr("lay-filter")||n.elem.attr("lay-filter",n.id),"reloadData"===e)return t.pullData(t.page,{type:"reloadData"});n.index=t.index,t.key=n.id||n.index,t.setInit(),n.height&&/^full-.+$/.test(n.height)?(t.fullHeightGap=n.height.split("-")[1],n.height=s.height()-(parseFloat(t.fullHeightGap)||0)):n.height&&/^#\w+\S*-.+$/.test(n.height)?(i=n.height.split("-"),t.parentHeightGap=i.pop(),t.parentDiv=i.join("-"),n.height=y(t.parentDiv).height()-(parseFloat(t.parentHeightGap)||0)):"function"==typeof n.height&&(t.customHeightFunc=n.height,n.height=t.customHeightFunc());var o,i=(e=n.elem).next("."+E),r=t.elem=y("<div></div>");r.addClass((o=[E,E+"-"+t.index,"layui-form","layui-border-box"],n.className&&o.push(n.className),o.join(" "))).attr({"lay-filter":"LAY-TABLE-FORM-DF-"+t.index,"lay-id":n.id,style:(o=[],n.width&&o.push("width:"+n.width+"px;"),o.join(""))}).html(v(d,{open:"{{",close:"}}"}).render({data:n,index:t.index})),t.renderStyle(),i[0]&&i.remove(),e.after(r),t.layTool=r.find(".layui-table-tool"),t.layBox=r.find(".layui-table-box"),t.layHeader=r.find(a),t.layMain=r.find(".layui-table-main"),t.layBody=r.find(T),t.layFixed=r.find(".layui-table-fixed"),t.layFixLeft=r.find(".layui-table-fixed-l"),t.layFixRight=r.find(u),t.layTotal=r.find(".layui-table-total"),t.layPage=r.find(".layui-table-page"),t.renderToolbar(),t.renderPagebar(),t.fullSize(),t.pullData(t.page),t.events()},t.prototype.initOpts=function(e){this.config,e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||{checkbox:50,radio:50,space:30,numbers:60}[e.type])},t.prototype.setInit=function(e){var i,n,s=this,l=s.config;if(l.clientWidth=l.width||(i=function(e){var t,n=(e=e||l.elem.parent()).width();try{t="none"===e.css("display")}catch(e){}return!e[0]||n&&!t?n:i(e.parent())})(),"width"===e)return l.clientWidth;l.height=l.maxHeight||l.height,l.css&&-1===l.css.indexOf(E)&&(n=l.css.split("}"),layui.each(n,function(e,t){t&&(n[e]="."+E+"-"+s.index+" "+t)}),l.css=n.join("}"));var c=function(n,e,i,o){var r,a;o?(o.key=[l.index,n,i].join("-"),o.colspan=o.colspan||0,o.rowspan=o.rowspan||0,s.initOpts(o),(r=n+(parseInt(o.rowspan)||1))<l.cols.length?(o.colGroup=!0,a=0,layui.each(l.cols[r],function(e,t){t.HAS_PARENT||1<=a&&a==(o.colspan||1)||(t.HAS_PARENT=!0,t.parentKey=[l.index,n,i].join("-"),a+=parseInt(1<t.colspan?t.colspan:1),c(r,l.cols[r],e,t))})):o.colGroup=!1,o.hide=o.hide&&!o.colGroup||!1):e.splice(i,1)};layui.each(l.cols,function(n,i){layui.each(i,function(e,t){n?delete t.HAS_PARENT:c(n,i,e,t)})})},t.prototype.renderStyle=function(){var e,n,t,i,o=this.config,r=this.index,a=[];layui.each(o.cols,function(n,e){layui.each(e,function(e,t){e=[r,n,e].join("-"),t=["width: ",t.width||o.cellMinWidth,"px"].join(""),a.push(".laytable-cell-"+e+"{"+t+"}")})}),(e=o.lineStyle)&&(n=".layui-table-view-"+r+" .layui-table-body .layui-table tr",t=e.split(";"),i="none",layui.each(t,function(e,t){if("height"===(t=t.split(":"))[0])return t=parseFloat(t[1]),isNaN(t)||(i=t-1+"px"),!0}),layui.each(["{"+e+"}",".layui-table-cell{height: auto; max-height: "+i+"; white-space: normal; text-overflow: clip;}","> td:hover > .layui-table-cell{overflow: auto;}"].concat(A.ie?[".layui-table-edit{height: "+i+";}","td[data-edit]:hover:after{height: "+i+";}"]:[]),function(e,t){t&&a.push(n+" "+t)})),o.css&&a.push(o.css),l.style({target:this.elem[0],text:a.join(""),id:"DF-table-"+r})},t.prototype.renderToolbar=function(){var e=this.config,t=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),n=this.layTool.find(".layui-table-tool-temp"),i=("default"===e.toolbar?n.html(t):"string"==typeof e.toolbar&&(t=y(e.toolbar).html()||"")&&n.html(v(t).render(e)),{filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"}
2,print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}}),o=[];"object"==typeof e.defaultToolbar&&layui.each(e.defaultToolbar,function(e,t){(t="string"==typeof t?i[t]:t)&&o.push('<div class="layui-inline" title="'+t.title+'" lay-event="'+t.layEvent+'"><i class="layui-icon '+t.icon+'"></i></div>')}),this.layTool.find(".layui-table-tool-self").html(o.join(""))},t.prototype.renderPagebar=function(){var e,t=this.config,n=this.layPagebar=y('<div class="layui-inline layui-table-pagebar"></div>');t.pagebar&&((e=y(t.pagebar).html()||"")&&n.append(v(e).render(t)),this.layPage.append(n))},t.prototype.setParentCol=function(e,t){var n=this.config,i=this.layHeader.find('th[data-key="'+t+'"]'),o=parseInt(i.attr("colspan"))||0;i[0]&&(t=t.split("-"),t=n.cols[t[1]][t[2]],e?o--:o++,i.attr("colspan",o),i[o?"removeClass":"addClass"](_),t.colspan2=o,t.hide=o<1,n=i.data("parentkey"))&&this.setParentCol(e,n)},t.prototype.setColsPatch=function(){var n=this,e=n.config;layui.each(e.cols,function(e,t){layui.each(t,function(e,t){t.hide&&n.setParentCol(t.hide,t.parentKey)})})},t.prototype.setGroupWidth=function(i){var e,o=this;o.config.cols.length<=1||((e=o.layHeader.find((i?"th[data-key="+i.data("parentkey")+"]>":"")+"."+H)).css("width",0),layui.each(e.get().reverse(),function(){var e=y(this),t=e.parent().data("key"),n=0;o.layHeader.eq(0).find("th[data-parentkey="+t+"]").width(function(e,t){y(this).hasClass(_)||0<t&&(n+=t)}),n&&e.css("max-width",n-1),i&&e.parent().data("parentkey")&&o.setGroupWidth(e.parent())}),e.css("width","auto"))},t.prototype.setColsWidth=function(){var t,n,r=this,s=r.config,i=0,l=0,c=0,u=0,d=r.setInit("width"),e=(r.eachCols(function(e,t){t.hide||i++}),d=d-("line"===s.skin||"nob"===s.skin?2:i+1)-r.getScrollWidth(r.layMain[0])-1,function(a){layui.each(s.cols,function(e,r){layui.each(r,function(e,t){var n=0,i=t.minWidth||s.cellMinWidth,o=t.maxWidth||s.cellMaxWidth;t?t.colGroup||t.hide||(a?c&&c<i?(l--,n=i):c&&o<c&&(l--,n=o):(n=t.width||0,/\d+%$/.test(n)?o<(n=(n=Math.floor(parseFloat(n)/100*d))<i?i:n)&&(n=o):n?"normal"===t.type&&(n<i&&(t.width=n=i),o<n)&&(t.width=n=o):(t.width=n=0,l++)),t.hide&&(n=0),u+=n):r.splice(e,1)})}),u<d&&0<l&&(c=(d-u)/l)}),o=(e(),e(!0),r.autoColNums=l=0<l?l:0,r.eachCols(function(e,n){var i=n.minWidth||s.cellMinWidth,o=n.maxWidth||s.cellMaxWidth;n.colGroup||n.hide||(0===n.width?r.cssRules(n.key,function(e){e.style.width=Math.floor(c<i?i:o<c?o:c)+"px"}):/\d+%$/.test(n.width)?r.cssRules(n.key,function(e){var t=Math.floor(parseFloat(n.width)/100*d);e.style.width=(o<(t=t<i?i:t)?o:t)+"px"}):r.cssRules(n.key,function(e){e.style.width=n.width+"px"}))}),r.layMain.width()-r.getScrollWidth(r.layMain[0])-r.layMain.children("table").outerWidth());0<r.autoColNums&&-i<=o&&o<=i&&(e=(n=(t=function(e){return!(e=e||r.layHeader.eq(0).find("thead > tr:first-child > th:last-child")).data("field")&&e.prev()[0]?t(e.prev()):e})()).data("key"),r.cssRules(e,function(e){var t=e.style.width||n.outerWidth();e.style.width=parseFloat(t)+o+"px",0<r.layMain.height()-r.layMain.prop("clientHeight")&&(e.style.width=parseFloat(e.style.width)-1+"px")})),r.setGroupWidth(),r.layMain.find("tbody").is(":empty")?(e=r.layHeader.first().children("table").width(),r.layMain.find("table").width(e)):r.layMain.find("table").width("auto"),r.loading(!0)},t.prototype.resize=function(){this.layMain&&(this.fullSize(),this.setColsWidth(),this.scrollPatch())},t.prototype.reload=function(e,t,n){var i=this;e=e||{},delete i.haveInit,layui.each(e,function(e,t){"array"===layui.type(t)&&delete i.config[e]}),i.config=y.extend(t,{},i.config,e),"reloadData"!==n&&(layui.each(i.config.cols,function(e,t){layui.each(t,function(e,t){delete t.colspan2})}),delete i.config.HAS_SET_COLS_PATCH),i.render(n)},t.prototype.errorView=function(e){var t=this,n=t.layMain.find("."+S),e=y('<div class="'+S+'">'+(e||"Error")+"</div>");n[0]&&(t.layNone.remove(),n.remove()),t.layFixed.addClass(_),t.layMain.find("tbody").html(""),t.layMain.append(t.layNone=e),t.layTotal.addClass(p),t.layPage.find(j).addClass(p),C.cache[t.key]=[],t.syncCheckAll(),t.renderForm(),t.setColsWidth()},t.prototype.page=1,t.prototype.pullData=function(n,t){function i(){"object"==typeof s.initSort&&a.sort({field:s.initSort.field,type:s.initSort.type,reloadType:t.type})}function o(e,t){a.setColsWidth(),"function"==typeof s.done&&s.done(e,n,e[c.c
vendor: 4,454 bytes, line 2
2ountName],t)}var e,r,a=this,s=a.config,l=(s.HAS_SET_COLS_PATCH||a.setColsPatch(),s.HAS_SET_COLS_PATCH=!0,s.request),c=s.response;t=t||{},"function"==typeof s.before&&s.before(s),a.startTime=(new Date).getTime(),t.renderData?((e={})[c.dataName]=C.cache[a.key],e[c.countName]=s.url?"object"===layui.type(s.page)?s.page.count:e[c.dataName].length:s.data.length,"object"==typeof s.totalRow&&(e[c.totalRowName]=y.extend({},a.totalRow)),a.renderData({res:e,curr:n,count:e[c.countName],type:t.type,sort:!0}),o(e,"renderData")):s.url?(r={},s.page&&(r[l.pageName]=n,r[l.limitName]=s.limit),l=y.extend(r,s.where),s.contentType&&0==s.contentType.indexOf("application/json")&&(l=JSON.stringify(l)),a.loading(),y.ajax({type:s.method||"get",url:s.url,contentType:s.contentType,data:l,dataType:s.dataType||"json",jsonpCallback:s.jsonpCallback,headers:s.headers||{},complete:"function"==typeof s.complete?s.complete:void 0,success:function(e){(e="function"==typeof s.parseData&&s.parseData(e)||e)[c.statusName]!=c.statusCode?a.errorView(e[c.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+c.statusName+'": '+c.statusCode):(a.totalRow=e[c.totalRowName],a.renderData({res:e,curr:n,count:e[c.countName],type:t.type}),i(),s.time=(new Date).getTime()-a.startTime+" ms"),o(e)},error:function(e,t){a.errorView("请求异常,错误提示:"+t),"function"==typeof s.error&&s.error(e,t)}})):"array"===layui.type(s.data)&&(e={},r=n*s.limit-s.limit,l=s.data.concat(),e[c.dataName]=s.page?l.splice(r,s.limit):l,e[c.countName]=s.data.length,"object"==typeof s.totalRow&&(e[c.totalRowName]=y.extend({},s.totalRow)),a.totalRow=e[c.totalRowName],a.renderData({res:e,curr:n,count:e[c.countName],type:t.type}),i(),o(e))},t.prototype.eachCols=function(e){return C.eachCols(null,e,this.config.cols),this},t.prototype.col=function(e){try{return e=e.split("-"),this.config.cols[e[1]][e[2]]||{}}catch(e){return h.error(e),{}}},t.prototype.getTrHtml=function(t,n,o,e){var u=this,d=u.config,r=e&&e.trs||[],h=e&&e.trs_fixed||[],p=e&&e.trs_fixed_r||[];return o=o||1,layui.each(t,function(e,a){var i=[],s=[],l=[],c=e+d.limit*(o-1)+1;if("object"!=typeof a){t[e]=a={LAY_KEY:a};try{C.cache[u.key][e]=a}catch(e){}}"array"===layui.type(a)&&0===a.length||(a[C.config.numbersName]=c,n||(a[C.config.indexName]=e),u.eachCols(function(e,o){var t,e=o.field||e,n=o.key,r=a[e];null==r&&(r=""),o.colGroup||(e=['<td data-field="'+e+'" data-key="'+n+'" '+(e=[],(t="function"==typeof o.edit?o.edit(a):o.edit)&&e.push('data-edit="'+t+'"'),o.templet&&e.push('data-content="'+x.escape(r)+'"'),o.toolbar&&e.push('data-off="true"'),o.event&&e.push('lay-event="'+o.event+'"'),o.minWidth&&e.push('data-minwidth="'+o.minWidth+'"'),o.maxWidth&&e.push('data-maxwidth="'+o.maxWidth+'"'),o.style&&e.push('style="'+o.style+'"'),e.join(" "))+' class="'+(t=[],o.hide&&t.push(_),o.field||t.push(I),t.join(" "))+'">','<div class="layui-table-cell laytable-cell-'+("normal"===o.type?n:n+" laytable-cell-"+o.type)+'"'+(o.align?' align="'+o.align+'"':"")+">"+(()=>{var e,t=y.extend(!0,{LAY_COL:o},a),n=C.config.checkName,i=C.config.disabledName;switch(o.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+(e=[],o[n]&&(a[n]=o[n],o[n])&&(e[0]="checked"),t[n]&&(e[0]="checked"),t[i]&&e.push("disabled"),e.join(" "))+' lay-type="layTableCheckbox">';case"radio":return'<input type="radio" name="layTableRadio_'+d.index+'" '+(e=[],t[n]&&(e[0]="checked"),t[i]&&e.push("disabled"),e.join(" "))+' lay-type="layTableRadio">';case"numbers":return c}return o.toolbar?v(y(o.toolbar).html()||"").render(t):m.call(u,{item3:o,content:r,tplData:t})})(),"</div></td>"].join(""),i.push(e),o.fixed&&"right"!==o.fixed&&s.push(e),"right"===o.fixed&&l.push(e))}),e=['data-index="'+e+'"'],a[C.config.checkName]&&e.push('class="'+D+'"'),e=e.join(" "),r.push("<tr "+e+">"+i.join("")+"</tr>"),h.push("<tr "+e+">"+s.join("")+"</tr>"),p.push("<tr "+e+">"+l.join("")+"</tr>"))}),{trs:r,trs_fixed:h,trs_fixed_r:p}},C.getTrHtml=function(e,t){return(e=g(e)).getTrHtml(t,null,e.page)},t.prototype.renderData=function(e){function t(){if(!s&&n.sortKey)return n.sort({field:n.sortKey.field,type:n.sortKey.sort,pull:!0,reloadType:e.type});n.getTrHtml(l,s,r,{trs:c,trs_fixed:u,trs_fixed_r:d}),"fixed"===i.scrollPos&&"reloadData"===e.type||n.layBody.scrollTop(0),"reset"===i.scrollPos&&n.layBody.scrollLeft(0),n.layMain.find("."+S).remove(),n.layMain.find("tbody").html(c.join("")),n.layFixLeft.f
2ind("tbody").html(u.join("")),n.layFixRight.find("tbody").html(d.join("")),n.syncCheckAll(),n.renderForm(),n.fullSize(),n.haveInit?n.scrollPatch():setTimeout(function(){n.scrollPatch()},50),n.haveInit=!0,b.close(n.tipsIndex)}var n=this,i=n.config,o=e.res,r=e.curr,a=n.count=e.count,s=e.sort,l=o[i.response.dataName]||[],o=o[i.response.totalRowName],c=[],u=[],d=[];return C.cache[n.key]=l,n.layTotal[0==l.length?"addClass":"removeClass"](p),n.layPage[i.page||i.pagebar?"removeClass":"addClass"](_),n.layPage.find(j)[!i.page||0==a||0===l.length&&1==r?"addClass":"removeClass"](p),0===l.length?n.errorView(i.text.none):(n.layFixLeft.removeClass(_),s?t():(t(),n.renderTotal(l,o),n.layTotal&&n.layTotal.removeClass(_),void(i.page&&(i.page=y.extend({elem:"layui-table-page"+i.index,count:a,limit:i.limit,limits:i.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon">&#xe603;</i>',next:'<i class="layui-icon">&#xe602;</i>',jump:function(e,t){t||(n.page=e.curr,i.limit=e.limit,n.pullData(e.curr))}},i.page),i.page.count=a,B.render(i.page)))))},C.renderData=function(e){(e=g(e))&&e.pullData(e.page,{renderData:!0,type:"reloadData"})},t.prototype.renderTotal=function(e,a){var s,l=this,c=l.config,u={};c.totalRow&&(layui.each(e,function(e,i){"array"===layui.type(i)&&0===i.length||l.eachCols(function(e,t){var e=t.field||e,n=i[e];t.totalRow&&(u[e]=(u[e]||0)+(parseFloat(n)||0))})}),l.dataTotal=[],s=[],l.eachCols(function(e,t){var n,e=t.field||e,i=a&&a[t.field],o="totalRowDecimals"in t?t.totalRowDecimals:2,o=u[e]?parseFloat(u[e]||0).toFixed(o):"",o=(n=t.totalRowText||"",(r={LAY_COL:t})[e]=o,r=t.totalRow&&m.call(l,{item3:t,content:o,tplData:r})||n,i||r),r=(t.field&&l.dataTotal.push({field:t.field,total:y("<div>"+o+"</div>").text()}),['<td data-field="'+e+'" data-key="'+t.key+'" '+(n=[],t.minWidth&&n.push('data-minwidth="'+t.minWidth+'"'),t.maxWidth&&n.push('data-maxwidth="'+t.maxWidth+'"'),t.style&&n.push('style="'+t.style+'"'),n.join(" "))+' class="'+(r=[],t.hide&&r.push(_),t.field||r.push(I),r.join(" "))+'">','<div class="layui-table-cell laytable-cell-'+(n=t.key,"normal"===t.type?n:n+" laytable-cell-"+t.type)+'"'+(r=[],t.align&&r.push('align="'+t.align+'"'),r.join(" "))+">"+("string"==typeof(n=t.totalRow||c.totalRow)?v(n).render(y.extend({TOTAL_NUMS:i||u[e],TOTAL_ROW:a||{},LAY_COL:t},t)):o),"</div></td>"].join(""));s.push(r)}),e=l.layTotal.find(".layui-table-patch"),l.layTotal.find("tbody").html("<tr>"+s.join("")+(e.length?e.get(0).outerHTML:"")+"</tr>"))},t.prototype.getColElem=function(e,t){return e.eq(0).find(".laytable-cell-"+t+":eq(0)")},t.prototype.renderForm=function(e){this.config;var t=this.elem.attr("lay-filter");w.render(e,t)},t.prototype.renderFormByElem=function(n){layui.each(["input","select"],function(e,t){w.render(n.find(t))})},t.prototype.syncCheckAll=function(){var n,i=this.config,e=this.layHeader.find('input[name="layTableCheckbox"]'),t=C.checkStatus(this.key);e[0]&&(n=t.isAll,this.eachCols(function(e,t){"checkbox"===t.type&&(t[i.checkName]=n)}),e.prop({checked:t.isAll,indeterminate:!t.isAll&&t.data.length}),w.render(e))},t.prototype.setRowActive=function(e,t,n){if(this.config,e=this.layBody.find('tr[data-index="'+e+'"]'),t=t||"layui-table-click",n)return e.removeClass(t);e.addClass(t),e.siblings("tr").removeClass(t)},t.prototype.setRowChecked=function(i){function o(e){return"radio"===i.type||(t?i.checked:!e)}var r=this.config,a="all"===i.index,s="array"===layui.type(i.index),l=(e=this.layBody.find("tr"),a?e:e.filter(s?function(){var e=y(this).data("index");return-1!==i.index.indexOf(e)}:'[data-index="'+i.index+'"]')),e=(i=y.extend({type:"checkbox"},i),C.cache[this.key]),t="checked"in i;layui.each(e,function(e,t){var n;"array"===layui.type(t)||t[r.disabledName]||(a||(s?-1!==i.index.indexOf(e):Number(i.index)===e)?(n=t[r.checkName]=o(t[r.checkName]),(e=l.filter('[data-index="'+e+'"]'))[n?"addClass":"removeClass"](D),"radio"===i.type&&e.siblings().removeClass(D)):"radio"===i.type&&delete t[r.checkName])});var n=(e=l.find('input[lay-type="'+({radio:"layTableRadio",checkbox:"layTableCheckbox"}
2[i.type]||"checkbox")+'"]:not(:disabled)')).last(),c=n.closest(u);("radio"===i.type&&c.hasClass(_)?e.first():e).prop("checked",o(n.prop("checked"))),this.syncCheckAll(),this.renderForm(i.type)},t.prototype.sort=function(o){var e,t=this,n={},i=t.config,r=i.elem.attr("lay-filter"),a=C.cache[t.key];"string"==typeof(o=o||{}).field&&(s=o.field,t.layHeader.find("th").each(function(e,t){var n=y(this),i=n.data("field");if(i===o.field)return o.field=n,s=i,!1}));try{var s=s||o.field.data("field"),l=o.field.data("key");if(t.sortKey&&!o.pull&&s===t.sortKey.field&&o.type===t.sortKey.sort)return;var c=t.layHeader.find("th .laytable-cell-"+l).find($);t.layHeader.find("th").find($).removeAttr("lay-sort"),c.attr("lay-sort",o.type||null),t.layFixed.find("th")}catch(e){h.error("Table modules: sort field '"+s+"' not matched")}t.sortKey={field:s,sort:o.type},i.autoSort&&("asc"===o.type?e=layui.sort(a,s,null,!0):"desc"===o.type?e=layui.sort(a,s,!0,!0):(e=layui.sort(a,C.config.indexName,null,!0),delete t.sortKey,delete i.initSort)),n[i.response.dataName]=e||a,t.renderData({res:n,curr:t.page,count:t.count,sort:!0,type:o.reloadType}),o.fromEvent&&(i.initSort={field:s,type:o.type},layui.event.call(o.field,k,"sort("+r+")",y.extend({config:i},i.initSort)))},t.prototype.loading=function(e){this.config.loading&&(e?(this.layInit&&this.layInit.remove(),delete this.layInit,this.layBox.find(".layui-table-init").remove()):(this.layInit=y(['<div class="layui-table-init">','<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"</div>"].join("")),this.layBox.append(this.layInit)))},t.prototype.cssRules=function(t,n){var e=this.elem.children("style")[0];l.getStyleRules(e,function(e){if(e.selectorText===".laytable-cell-"+t)return n(e),!0})},t.prototype.fullSize=function(){var e,n,i=this,t=i.config,o=t.height;i.fullHeightGap?(o=s.height()-i.fullHeightGap)<135&&(o=135):i.parentDiv&&i.parentHeightGap?(o=y(i.parentDiv).height()-i.parentHeightGap)<135&&(o=135):i.customHeightFunc&&(o=i.customHeightFunc())<135&&(o=135),1<t.cols.length&&(e=i.layFixed.find(a).find("th"),n=i.layHeader.first(),layui.each(e,function(e,t){(t=y(t)).height(n.find('th[data-key="'+t.attr("data-key")+'"]').height()+"px")})),o&&(e=parseFloat(o)-(i.layHeader.outerHeight()||39),t.toolbar&&(e-=i.layTool.outerHeight()||51),t.totalRow&&(e-=i.layTotal.outerHeight()||40),(t.page||t.pagebar)&&(e-=i.layPage.outerHeight()||43),t.maxHeight?layui.each({elem:o,layMain:e},function(e,t){i[e].css({height:"auto",maxHeight:t+"px"})}):i.layMain.outerHeight(e))},t.prototype.getScrollWidth=function(e){var t;return e?t=e.offsetWidth-e.clientWidth:((e=document.createElement("div")).style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},t.prototype.scrollPatch=function(){var e=this,t=e.layMain.children("table"),n=e.layMain.width()-e.layMain.prop("clientWidth"),i=e.layMain.height()-e.layMain.prop("clientHeight"),o=(e.getScrollWidth(e.layMain[0]),t.outerWidth()-e.layMain.width()),r=function(e){var t;n&&i?(e=e.eq(0)).find(".layui-table-patch")[0]||((t=y('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>')).find("div").css({width:n}),e.find("tr").append(t)):e.find(".layui-table-patch").remove()};r(e.layHeader),r(e.layTotal),r=e.layMain.height()-i,e.layFixed.find(T).css("height",t.height()>=r?r:"auto").scrollTop(e.layMain.scrollTop()),e.layFixRight[C.cache[e.key]&&C.cache[e.key].length&&0<o?"removeClass":"addClass"](_),e.layFixRight.css("right",n-1)},t.prototype.updateRow=function(e,i){var l=this,e="array"===layui.type(e)?e:[e],c=C.cache[l.key]||[];layui.each(e,function(e,t){var n=t.index,o=t.data,r=t.related,a=c[n]||{},s=l.layBody.find('tr[data-index="'+n+'"]');layui.each(o,function(e,t){a[e]=t,i&&i(e,t)}),l.eachCols(function(e,t){var n,i=String(t.field||e);(i in o||("function"==typeof r?r(i,e):r)&&(t.templet||t.toolbar))&&(i=(e=s.children('td[data-field="'+i+'"]')).children(".layui-table-cell"),n=a[t.field],i.html(m.call(l,{item3:t,content:n,tplData:y.extend({LAY_COL:t},a)})),e.data("content",n),l.renderFormByElem(i))})})},C.updateRow=function(e,t){return g(e).updateRow(t)},t.prototype.events=function(){function r(e,t){var n,i,o;(e=y(e)).data("off")||(o=e.data("field"),i=e.data("key"),i=c.col(i),n=e.closest("tr").data("index"),n=C.cache[c.key][n],e.children(h),(i="function"==typeof i.edit?i.edit(n):i.edit)&&((i=y("textarea"===i?'<textarea class="layui-input '+L+'" lay-unrow></textarea>':'<input class="layui-input '+L+'" lay-unrow>'))[0].value=null==(o=e.data("content")||n[o])?"":o,e.find("."+L)[0]||e.append(i),i.focus(),t)&&layui.stope(t))}function t(e,t){var n=y(this),i=n.parent(),o=i.data("key"),r=c.col(o),a=i.parent().data("index"),s=i.children(h),l=y('<i class="layui-icon layui-icon-up '+(i="layui-table-cell-c")+'">');"tips"===(t=t||r.expandedMode||u.cellExpandedMode)?c.tipsIndex=b.t
2ips(['<div class="layui-table-tips-main" style="margin-top: -'+(s.height()+23)+"px;"+("sm"===u.size?"padding: 4px 15px; font-size: 12px;":"lg"===u.size?"padding: 14px 15px;":"")+'">',s.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),s[0],{tips:[3,""],time:-1,anim:-1,maxWidth:A.ios||A.android?300:c.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){b.close(t)})}}):(c.elem.find("."+i).trigger("click"),c.cssRules(o,function(e){var t=e.style.width,n=r.expandedWidth||u.cellExpandedWidth;n<parseFloat(t)&&(n=parseFloat(t)),l.data("cell-width",t),e.style.width=n+"px",setTimeout(function(){c.scrollPatch()})}),c.setRowActive(a,R),s.next("."+i)[0]||s.after(l),l.on("click",function(){var t=y(this);c.setRowActive(a,[R,N].join(" "),!0),c.cssRules(o,function(e){e.style.width=t.data("cell-width"),setTimeout(function(){c.resize()})}),t.remove(),s.scrollTop(0),s.scrollLeft(0)})),n.remove(),layui.stope(e)}function n(e){var t=y(this),n=t.closest("td"),i=t.parents("tr").eq(0).data("index");c.setRowActive(i),layui.event.call(this,k,(e||"tool")+"("+d+")",l.call(this,{event:t.attr("lay-event"),getCol:function(){return c.col(n.data("key"))}}))}var c=this,u=c.config,d=u.elem.attr("lay-filter"),e=c.layHeader.find("th"),h=".layui-table-cell",a=y("body"),s={},l=(c.layTool.on("click","*[lay-event]",function(e){function t(e){var t=y(e.list),n=y('<ul class="'+M+'"></ul>');n.html(t),u.height&&n.css("max-height",u.height-(c.layTool.outerHeight()||50)),i.find("."+M)[0]||i.append(n),c.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,t)}var n,i=y(this),o=i.attr("lay-event"),r=C.cache[u.id];switch(layui.stope(e),P.trigger("table.tool.panel.remove"),b.close(c.tipsIndex),o){case"LAYTABLE_COLS":t({list:(n=[],c.eachCols(function(e,t){t.field&&"normal"==t.type&&n.push('<li><input type="checkbox" name="'+t.field+'" data-key="'+t.key+'" data-parentkey="'+(t.parentKey||"")+'" lay-skin="primary" '+(t.hide?"":"checked")+' title="'+x.escape(y("<div>"+(t.fieldTitle||t.title||t.field)+"</div>").text())+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),n.join("")),done:function(){w.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=y(e.elem),t=this.checked,n=e.data("key"),i=c.col(n),o=i.hide,e=e.data("parentkey");i.key&&(i.hide=!t,c.elem.find('*[data-key="'+n+'"]')[t?"removeClass":"addClass"](_),o!=i.hide&&c.setParentCol(!t,e),c.resize(),layui.event.call(this,k,"colToggled("+d+")",{col:i,config:u}))})}});break;case"LAYTABLE_EXPORT":if(!r.length)return b.tips("当前表格无数据",this,{tips:3});A.ie?b.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):t({list:['<li data-type="csv">导出 csv 格式文件</li>','<li data-type="xls">导出 xls 格式文件</li>'].join(""),done:function(e,t){t.on("click",function(){var e=y(this).data("type");C.exportFile.call(c,u.id,null,e)})}});break;case"LAYTABLE_PRINT":if(!r.length)return b.tips("当前表格无数据",this,{tips:3});var a=window.open("about:blank","_blank"),s=["<style>","body{font-size: 12px; color: #5F5F5F;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #5F5F5F;}","a{color: #5F5F5F; text-decoration:none;}","img{max-height: 100%;}","*.layui-hide{display: none}","</style>"].join(""),l=y(c.layHeader.html());l.append(c.layMain.find("table").html()),l.append(c.layTotal.find("table").html()),l.find("th.layui-table-patch").remove(),l.find("thead>tr>th."+I).filter(function(e,t){return!y(t).children("."+H).length}).remove(),l.find("tbody>tr>td."+I).remove(),a.document.write(s+l.prop("outerHTML")),a.document.close(),layui.device("edg").edg?(a.onafterprint=a.close,a.print()):(a.print(),a.close())}layui.event.call(this,k,"toolbar("+d+")",y.extend({event:o,config:u},{}))}),c.layHeader.on("click","*[lay-event]",function(e){var t=(n=y(this)).attr("lay-event"),n=n.closest("th").data("key"),n=c.col(n);layui.event.call(this,k,"colTool("+d+")",y.extend({event:t,config:u,col:n},{}))}),c.layPagebar.on("click","*[lay-event]",function(e){var t=y(this).attr("lay-event");
vendor: 13,190 bytes, line 2
2layui.event.call(this,k,"pagebar("+d+")",y.extend({event:t,config:u},{}))}),e.on("mousemove",function(e){var t=y(this),n=t.offset().left,e=e.clientX-n;t.data("unresize")||f.eventMoveElem||(s.allowResize=t.width()-e<=10,a.css("cursor",s.allowResize?"col-resize":""))}).on("mouseleave",function(){y(this),f.eventMoveElem||(s.allowResize=!1,a.css("cursor",""))}).on("mousedown",function(e){var t,n=y(this);s.allowResize&&(t=n.data("key"),e.preventDefault(),s.offset=[e.clientX,e.clientY],c.cssRules(t,function(e){var t=e.style.width||n.outerWidth();s.rule=e,s.ruleWidth=parseFloat(t),s.minWidth=n.data("minwidth")||u.cellMinWidth,s.maxWidth=n.data("maxwidth")||u.cellMaxWidth}),n.data(O,s),f.eventMoveElem=n)}),f.docEvent||P.on("mousemove",function(e){var t,n;f.eventMoveElem&&(t=f.eventMoveElem.data(O)||{},f.eventMoveElem.data("resizing",1),e.preventDefault(),t.rule)&&(e=t.ruleWidth+e.clientX-t.offset[0],n=f.eventMoveElem.closest("."+E).attr("lay-id"),n=g(n))&&((e=e<t.minWidth?t.minWidth:e)>t.maxWidth&&(e=t.maxWidth),t.rule.style.width=e+"px",n.setGroupWidth(f.eventMoveElem),b.close(c.tipsIndex))}).on("mouseup",function(e){var t,n,i,o,r;f.eventMoveElem&&(i=(t=f.eventMoveElem).closest("."+E).attr("lay-id"),n=g(i))&&(i=t.data("key"),o=n.col(i),r=n.config.elem.attr("lay-filter"),s={},a.css("cursor",""),n.scrollPatch(),t.removeData(O),delete f.eventMoveElem,n.cssRules(i,function(e){o.width=parseFloat(e.style.width),layui.event.call(t[0],k,"colResized("+r+")",{col:o,config:n.config})}))}),f.docEvent=!0,e.on("click",function(e){var t=y(this),n=t.find($),i=n.attr("lay-sort");if(!n[0]||1===t.data("resizing"))return t.removeData("resizing");c.sort({field:t,type:"asc"===i?"desc":"desc"===i?null:"asc",fromEvent:!0})}).find($+" .layui-edge ").on("click",function(e){var t=(n=y(this)).index(),n=n.parents("th").eq(0).data("field");layui.stope(e),0===t?c.sort({field:n,type:"asc",fromEvent:!0}):c.sort({field:n,type:"desc",fromEvent:!0})}),c.commonMember=function(e){var n=y(this).parents("tr").eq(0).data("index"),t=c.layBody.find('tr[data-index="'+n+'"]'),i=(C.cache[c.key]||[])[n]||{},o={tr:t,config:u,data:C.clearCacheKey(i),dataCache:i,index:n,del:function(){C.cache[c.key][n]=[],t.remove(),c.scrollPatch()},update:function(e,t){c.updateRow({index:n,data:e=e||{},related:t},function(e,t){o.data[e]=t})},setRowChecked:function(e){c.setRowChecked(y.extend({index:n},e))}};return y.extend(o,e)}),i=(c.elem.on("click",'input[name="layTableCheckbox"]+',function(e){var t=(n=y(this)).closest("td"),n=n.prev(),i=(c.layBody.find('input[name="layTableCheckbox"]'),n.parents("tr").eq(0).data("index")),o=n[0].checked,r="layTableAllChoose"===n.attr("lay-filter");n[0].disabled||(r?c.setRowChecked({index:"all",checked:o}):(c.setRowChecked({index:i,checked:o}),layui.stope(e)),layui.event.call(n[0],k,"checkbox("+d+")",l.call(n[0],{checked:o,type:r?"all":"one",getCol:function(){return c.col(t.data("key"))}})))}),c.elem.on("click",'input[lay-type="layTableRadio"]+',function(e){var t=y(this),n=t.closest("td"),i=(t=t.prev())[0].checked,o=t.parents("tr").eq(0).data("index");if(layui.stope(e),t[0].disabled)return!1;c.setRowChecked({type:"radio",index:o}),layui.event.call(t[0],k,"radio("+d+")",l.call(t[0],{checked:i,getCol:function(){return c.col(n.data("key"))}}))}),c.layBody.on("mouseenter","tr",function(){var e=y(this),t=e.index();e.data("off")||c.layBody.find("tr:eq("+t+")").addClass(N)}).on("mouseleave","tr",function(){var e=y(this),t=e.index();e.data("off")||c.layBody.find("tr:eq("+t+")").removeClass(N)}).on("click","tr",function(e){var t=[".layui-form-checkbox",".layui-form-switch",".layui-form-radio","[lay-unrow]"].join(",");y(e.target).is(t)||y(e.target).closest(t)[0]||i.call(this,"row")}).on("dblclick","tr",function(){i.call(this,"rowDouble")}).on("contextmenu","tr",function(e){u.defaultContextmenu||e.preventDefault(),i.call(this,"rowContextmenu")}),function(e){var t=y(this);t.data("off")||layui.event.call(this,k,e+"("+d+")",l.call(t.children("td")[0]))}),o=(c.layBody.on("change","."+L,function(){var e=(i=y(this)).parent(),t=this.value,n=i.parent().data("field"),i=i.closest("tr").data("index"),i=C.cache[c.key][i],o=l.call(e[0],{value:t,field:n,oldValue:i[n],td:e,reedit:function(){setTimeout(function(){r(o.td);var e={};e[n]=o.oldValue,o.update(e)})},getCol:function(){return c.col(e.data("key"))}});(i={})[n]=t,o.update(i),layui.event.call(e[0],k,"edit("+d+")",o)}).on("blur","."+L,function(){y(this).remove()}),c.layBody.on(u.editTrigger,"td",function(e){r(this,e)}).on("mouseenter","td",function(){p.call(this)}).on("mouseleave","td",function(){p.call(this,"hide")}),c.layTotal.on("mouseenter","td",function(){p.call(this)}).on("mouseleave","td",function(){p.call(this,"hide")}),"layui-table-grid-down"),p=function(e){var t=y(this),n=t.children(h);t.data("off")||t.parent().hasClass(R)||(e?t.find(".layui-table-grid-down").remove():!(n.prop("scrollWidth")>n.prop("clientWidth")||0<n.find("br").length)||u.lineStyle||n.find("."+o)[0]||t.append('<div class="'+o+'"><i class="layui-icon layui-icon-down"></i></div>'))};c.layBody.on("click","."+o,function(e){t.call(this,e)}),c.layTotal.on("click","."+o,function(e){t.call(this,e,"tips")});c.layBody.on("click","*[lay-event]",function(e){n.call(this),layui.stope(e)}).on("dblclick","*[lay-event]",function(e){n.call(this,"toolDouble"),layui.stope(e)}),c.layMain.on("scroll",function(){var e=(t=y(this)).scrollLeft(),t=t.scrollTop();c.layHeader.scrollLeft(e),c.layTotal.scrollLeft(e),c.layFixed.find(T).scrollTop(t),b.close(c.tipsIndex)}),c.layFixed.find(T).on("mousewheel DOMMouseScroll",function(e){var t=e.originalEvent.wheelDelta||-e.originalEvent.detail,n=c.layMain.scrollTop();e.preventDefault(),c.layMain.scrollTop(n+(0<t?-30:30))})},s.on("resize",function(){layui.each(f.that,function(){this.resize()})}),P.on("click",function(){P.trigger("table.remove.tool.panel")}),P.on("table.remove.tool.panel",function(){y("."+M).remove()}),C.init=function(i,a){a=a||{};var e="object"==typeof i?i:y("string"==typeof i?'table[lay-filter="'+i+'"]':n+"[lay-data], "+n+"[lay-options]"),s="Table element property lay-data configuration item has a syntax error: ";return e.each(function(){var o,e=y(this),t=e.attr("lay-data"),t=l.options(this,{attr:t?"lay-data":null,errorText:s+(t||e.attr("lay-options"))}),r=y.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},C.config,a,t),n=(i&&e.hide(),e.find("thead>tr").each(function(i){r.cols[i]=[],y(this).children().each(function(e){var t=(n=y(this)).attr("lay-data"),t=l.options(this,{attr:t?"lay-data":null,errorText:s+(t||n.attr("lay-options"))}),n=y.extend({title:n.text(),colspan:parseInt(n.attr("colspan"))||1,rowspan:parseInt(n.attr("rowspan"))||1},t);r.cols[i].push(n)})}),e.find("tbody>tr")),t=C.render(r);!n.length||a.data||t.config.url||(o=0,C.eachCols(t.config.id,function(e,i){n.each(function(e){r.data[e]=r.data[e]||{};var t=y(this),n=i.field;r.data[e][n]=t.children("td").eq(o).html()}),o++}),t.reloadData({data:r.data}))}),this},f.that={},f.config={},function(n,i,e,o){var r,a;o.colGroup&&(r=0,n++,o.CHILD_COLS=[],a=e+(parseInt(o.rowspan)||1),layui.each(i[a],function(e,t){t.parentKey?t.parentKey===o.key&&(t.PARENT_COL_INDEX=n,o.CHILD_COLS.push(t),c(n,i,a,t)):t.PARENT_COL_INDEX||1<=r&&r==(o.colspan||1)||(t.PARENT_COL_INDEX=n,o.CHILD_COLS.push(t),r+=parseInt(1<t.colspan?t.colspan:1),c(n,i,a,t))}))});C.eachCols=function(e,n,i){var e=f.config[e]||{},o=[],r=(i=y.extend(!0,[],i||e.cols),layui.each(i,function(n,e){if(n)return!0;layui.each(e,function(e,t){c(0,i,n,t),t.PARENT_COL_INDEX||o.push(t)})}),function(e){layui.each(e||o,function(e,t){if(t.CHILD_COLS)return r(t.CHILD_COLS);"function"==typeof n&&n(e,t)})});r()},C.checkStatus=function(e){var n=0,i=0,o=[],e=C.cache[e]||[];return layui.each(e,function(e,t){"array"===layui.type(t)||t[C.config.disabledName]?i++:t[C.config.checkName]&&(n++,t[C.config.disabledName]||o.push(C.clearCacheKey(t)))}),{data:o,isAll:!!e.length&&n===e.length-i}},C.setRowChecked=function(e,t){(e=g(e))&&e.setRowChecked(t)},C.getData=function(e){var n=[],e=C.cache[e]||[];return layui.each(e,function(e,t){"array"!==layui.type(t)&&n.push(C.clearCacheKey(t))}),n},C.resize=function(e){e?o(e)&&g(e).resize():layui.each(f.that,function(){this.resize()})},C.exportFile=function(e,t,n){t=t||C.clearCacheKey(C.cache[e]);var a,s,i,l,o=(n="object"==typeof n?n:(o={},n&&(o.type=n),o)).type||"csv",c=f.that[e],r=f.config[e]||{},u={csv:"text/csv",xls:"application/vnd.ms-excel"}[o],d=document.createElement("a");if(A.ie)return h.error("IE_NOT_SUPPORT_EXPORTS");if(r.tree&&r.tree.view)try{t=y.extend(!0,[],C.cache[e]),t=function i(e){return e.reduce(function(e,t){var n=t.children||[];return delete t.children,e.concat(t,i(n))},[])}(Array.from(t))}catch(e){}d.href="data:"+u+";charset=utf-8,\ufeff"+encodeURIComponent((a=[],s=[],i=[],l={},layui.each(t,function(i,o){var r=[];"object"==typeof e?(layui.each(e,function(e,t){0==i&&a.push(t||"")}),layui.each(layui.isArray(o)?y.extend([],o):C.clearCacheKey(o),function(e,t){r.push('"'+(t||"")+'"')})):C.eachCols(e,function(e,t){var n;!1===t.ignoreExport||t.field&&"normal"==t.type?t.hide&&!1!==t.ignoreExport||!0===t.ignoreExport?0==i&&(l[t.field]=!0):(null==(n=o[t.field])&&(n=""),0==i&&a.push(t.fieldTitle||t.title||t.field||""),n=(n=m.call(c,{item3:t,content:n,tplData:o,text:"text",obj:{td:function(e){return c.layBody.find('tr[data-index="'+i+'"]>td').filter('[data-field="'+e+'"]')}}})).replace(/"/g,'""'),r.push(n='"'+n+'"')):t.field&&"normal"!==t.type&&0==i&&(l[t.field]=!0)}),s.push(r.join(","))}),c&&layui.each(c.dataTotal,function(e,t){l[t.field]||i.push('"'+(t.total||"")+'"')}),a.join(",")+"\r\n"+s.join("\r\n")+"\r\n"+i.join(","))),d.download=(n.title||r.title||"table_"+(r.index||""))+"."+o,document.body.appendChild(d),d.click(),document.body.removeChild(d)},C.getOptions=o,C.hideCol=function(e,o){var r=g(e);r&&("boolean"===layui.type(o)?r.eachCols(function(e,t){var n=t.key,i=r.col(n),t=t.parentKey;i.hide!=o&&(i=i.hide=o,r.elem.find('*[data-key="'+n+'"]')[i?"addClass":"removeClass"](_),r.setParentCol(i,t))}):(o=layui.isArray(o)?o:[o],layui.each(o,function(e,o){r.eachCols(function(e,t){var n,i;o.field===t.field&&(n=t.key,i=r.col(n),t=t.parentKey,"hide"in o)&&i.hide!=o.hide&&(i=i.hide=!!o.hide,r.elem.find('*[data-key="'+n+'"]')[i?"addClass":"removeClass"](_),r.setParentCol(i,t))})})),y("."+M).remove(),r.resize())},C.reload=function(e,t,n,i){if(o(e))return(e=g(e)).reload(t,n,i),f.call(e)},C.reloadData=function(){var n=y.extend([],arguments),i=(n[3]="reloadData",new RegExp("^("+["elem","id","cols","width","height","maxHeight","toolbar","defaultToolbar","className","css","pagebar"].join("|")+")$"));return layui.each(n[1],function(e,t){i.test(e)&&delete n[1][e]}),C.reload.apply(null,n)},C.render=function(e){return e=new t(e),f.call(e)},C.clearCacheKey=function(e){return delete(e=y.extend({},e))[C.config.checkName],delete e[C.config.indexName],delete e[C.config.numbersName],delete e[C.config.disabledName],e},y(function(){C.init()}),r(k,C)}),layui.define(["table"],function(e){function N(e){var t=a.that[e];return t||p.error(e?"The treeTable instance with ID '"+e+"' not found":"ID argument required"),t||null}function t(e){this.index=++P.index,this.config=R.extend(!0,{},this.config,P.config,e),this.init(),this.render()}function o(r,n,e){var a=N(r),s=("reloadData"!==e&&(a.status={expand:{}}),R.extend(!0,{},a.getOptions(),n)),i=s.tree,l=i.customName.children,o=i.customName.id,c=(delete n.hasNumberCol,delete n.hasChecboxCol,delete n.hasRadioCol,O.eachCols(null,function(e,t){"numbers"===t.type?n.hasNumberCol=!0:"checkbox"===t.type?n.hasChecboxCol=!0:"radio"===t.type&&(n.hasRadioCol=!0)},s.cols),n.parseData),u=n.done;s.url?e&&(!c||c.mod)||(n.parseData=function(){var e=(t=arguments)[0],t=("function"===layui.type(c)&&(e=c.apply(this,t)||t[0]),this.response.dataName);return i.data.isSimpleData&&!i.async.enable&&(e[t]=a.flatToTree(e[t])),f(e[t],function(e){e[W]=W in e?e[W]:void 0!==e[o]&&a.status.expand[e[o]]},l),this.autoSort&&this.initSort&&this.initSort.type&&layui.sort(e[t],this.initSort.field,"desc"===this.initSort.type,!0),a.initData(e[t]),e},n.parseData.mod=!0):(n.data=n.data||[],i.data.isSimpleData&&(n.data=a.flatToTree(n.data)),a.initData(n.data)),e&&(!u||u.mod)||(n.done=function(){var e,t=arguments,n=t[3],i=(n||delete a.isExpandAll,this.elem.next()),o=(a.updateStatus(null,{LAY_HAS_EXPANDED:!1}),h(r,l),i.find('[name="layTableCheckbox"][lay-filter="layTableAllChoose"]'));if(o.length&&(e=P.checkStatus(r),o.prop({checked:e.isAll&&e.data.length,indeterminate:!e.isAll&&e.data.length})),!n&&s.autoSort&&s.initSort&&s.initSort.type&&P.sort(r),a.renderTreeTable(i),"function"===layui.type(u))return u.apply(this,t)},n.done.mod=!0)}function I(e,t,n){return r[e]||(r[e]=layui.debounce(t,n)),r[e]}function M(t,n,i,o,r){var e=t.trElem,a=t.tableViewElem||e.closest(".layui-table-view"),s=t.tableId||a.attr("lay-id"),l=t.options||O.getOptions(s),e=t.dataIndex||e.attr("lay-data-index"),c=N(s),u=l.tree||{},d=u.customName||{},h=d.isParent,p=c.getNodeDataByIndex(e),f="boolean"!==layui.type(n),g=f?!p[W]:n,m=p[h]?g:null;if(r&&g!=p[W]&&(!p[q]||"local"===p[q])){var y=u.callback.beforeE
2xpand;if("function"===layui.type(y)&&!1===y(s,p,n))return m}var y=p[U],v=(L=a.find('tr[lay-data-index="'+e+'"]')).find(".layui-table-tree-flexIcon"),b=(v.html(g?u.view.flexIconOpen:u.view.flexIconClose),p[h]&&v.css("visibility","visible"),u.view.showIcon&&L.find(".layui-table-tree-nodeIcon:not(.layui-table-tree-iconCustom,.layui-table-tree-iconLeaf)").html(g?u.view.iconOpen:u.view.iconClose),p[W]=g,p[d.id]);if(void 0!==b&&(c.status.expand[b]=g),null!==m){if(b=p[d.children]||[],g)if(y){if(!b.length)return;L.nextAll(b.map(function(e,t,n){return'tr[lay-data-index="'+e[z]+'"]'}).join(",")).removeClass(B),layui.each(b,function(e,t){t[h]&&(!i||f||t[W]?t[W]&&M({dataIndex:t[z],trElem:a.find('tr[lay-data-index="'+t[z]+'"]').first(),tableViewElem:a,tableId:s,options:l},!0):M({dataIndex:t[z],trElem:a.find('tr[lay-data-index="'+t[z]+'"]').first(),tableViewElem:a,tableId:s,options:l},n,i,o,r))})}else{var w,x,A,C,k,_,S,E,T,$,D,L=(y=u.async||{}).url||l.url;if(y.enable&&p[h]&&!p[q])return p[q]="loading",v.html('<i class="layui-icon layui-icon-loading layui-anim layui-anim-loop layui-anim-rotate"></i>'),w=function(e){p[q]="success",p[d.children]=e,c.initData(p[d.children],p[z]),M(t,!0,!f&&i,o,r)},A=y.format,"function"===layui.type(A)?A(p,l,w):(x=R.extend({},y.where||l.where),A=y.autoParam,layui.each(A,function(e,t){t=t.split("="),x[t[0].trim()]=p[(t[1]||t[0]).trim()]}),(A=y.contentType||l.contentType)&&0==A.indexOf("application/json")&&(x=JSON.stringify(x)),T=y.method||l.method,C=y.dataType||l.dataType,k=y.jsonpCallback||l.jsonpCallback,_=y.headers||l.headers,S=y.parseData||l.parseData,E=y.response||l.response,R.ajax({type:T||"get",url:L,contentType:A,data:x,dataType:C||"json",jsonpCallback:k,headers:_||{},success:function(e){(e="function"==typeof S&&S.call(l,e)||e)[E.statusName]!=E.statusCode?(p[q]="error",v.html('<i class="layui-icon layui-icon-refresh"></i>')):w(e[E.dataName])},error:function(e,t){p[q]="error","function"==typeof l.error&&l.error(e,t)}})),m;p[U]=!0,b.length&&(!l.initSort||l.url&&!l.autoSort||((y=l.initSort).type?layui.sort(b,y.field,"desc"===y.type,!0):layui.sort(b,O.config.indexName,null,!0)),c.initData(p[d.children],p[z]),T=O.getTrHtml(s,b,null,null,e),$={trs:R(T.trs.join("")),trs_fixed:R(T.trs_fixed.join("")),trs_fixed_r:R(T.trs_fixed_r.join(""))},D=(e.split("-").length-1||0)+1,layui.each(b,function(e,t){$.trs.eq(e).attr({"data-index":t[z],"lay-data-index":t[z],"data-level":D}),$.trs_fixed.eq(e).attr({"data-index":t[z],"lay-data-index":t[z],"data-level":D}),$.trs_fixed_r.eq(e).attr({"data-index":t[z],"lay-data-index":t[z],"data-level":D})}),a.find(j).find('tbody tr[lay-data-index="'+e+'"]').after($.trs),a.find(H).find('tbody tr[lay-data-index="'+e+'"]').after($.trs_fixed),a.find(F).find('tbody tr[lay-data-index="'+e+'"]').after($.trs_fixed_r),c.renderTreeTable($.trs,D),i)&&!f&&layui.each(b,function(e,t){M({dataIndex:t[z],trElem:a.find('tr[lay-data-index="'+t[z]+'"]').first(),tableViewElem:a,tableId:s,options:l},n,i,o,r)})}else c.isExpandAll=!1,(i&&!f?(layui.each(b,function(e,t){M({dataIndex:t[z],trElem:a.find('tr[lay-data-index="'+t[z]+'"]').first(),tableViewElem:a,tableId:s,options:l},n,i,o,r)}),a.find(b.map(function(e,t,n){return'tr[lay-data-index="'+e[z]+'"]'}).join(","))):(L=c.treeToFlat(b,p[d.id],e),a.find(L.map(function(e,t,n){return'tr[lay-data-index="'+e[z]+'"]'}).join(",")))).addClass(B);I("resize-"+s,function(){P.resize(s)},0)(),r&&"loading"!==p[q]&&(A=u.callback.onExpand,"function"===layui.type(A))&&A(s,p,g)}return m}function i(i){var t=i.config.id,o=N(t),n=i.data=P.getNodeDataByIndex(t,i.index),r=n[z],a=(i.dataIndex=r,i.update);i.update=function(){var e=arguments,t=(R.extend(o.getNodeDataByIndex(r),e[0]),a.apply(this,e)),n=i.config.tree.customName.name;return n in e[0]&&i.tr.find('td[data-field="'+n+'"]').children("div.layui-table-cell").removeClass("layui-table-tree-item"),o.renderTreeTable(i.tr,i.tr.attr("data-level"),!1),t},i.del=function(){P.removeNode(t,n)},i.setRowChecked=function(e){P.setRowChecked(t,{index:n,checked:e})}}var r,R=layui.$,g=layui.form,O=layui.table,p=layui.hint(),P={config:{},on:O.on,eachCols:O.eachCols,index:O.index,set:function(e){return this.config=R.extend({},this.config,e),this},resize:O.resize,getOptions:O.getOptions,hideCol:O.hideCol,renderData:O.renderData},a=function(){var n=this,e=n.config,i=e.id||e.index;return{config:e,reload:function(e,t){n.reload.call(n,e,t)},reloadData:function(e,t){P.reloadData(i,e,t)}}},B="layui-hide",j=".layui-table-main",H=".layui-table-fixed-l",F=".layui-table-fixed-r",s="layui-table-checked",m="layui-table-tree",z="LAY_DATA_INDEX",y="LAY_DATA_INDEX_HISTORY",d="LAY_PARENT_INDEX",v="LAY_CHECKBOX_HALF",W="LAY_EXPAND",U="LAY_HAS_EXPANDED",q="LAY_ASYNC_STATUS",l=["all","parent","children","none"],h=function(i,o,e){var r=O.cache[i];layui.each(e||r,function(e,t){var n=t[z]||"";-1!==n.indexOf("-")&&(r[n]=t),t[o]&&h(i,o,t[o])})},r=(t.prototype.init=function(){var e=this.config,t=e.tree.data.cascade;-1===l.indexOf(t)&&(e.tree.data.cascade="all");var n=(t=O.render(R.extend({},e,{data:[],url:"",done:null}))).config.id;(a.that[n]=this).tableIns=t,o(n,e)},t.prototype.config={tree:{customName:{children:"children",isParent:"isParent",name:"name",id:"id",pid:"parentId",icon:"icon"},view:{indent:14,flexIconClose:'<i class="layui-icon layui-icon-triangle-r"></i>',flexIconOpen:'<i class="layui-icon layui-icon-triangle-d"></i>',showIcon:!0,icon:"",iconClose:'<i class="layui-icon layui-icon-folder"></i>',iconOpen:'<i class="layui-icon layui-icon-folder-open"></i>',iconLeaf:'<i class="layui-icon layui-icon-leaf"></i>',showFlexIconIfNotParent:!1,dblClickExpand:!0,expandAllDefault:!1},data:{isSimpleData:!1,rootPid:null,cascade:"all"},async:{enable:!1,url:"",type:null,contentType:null,headers:null,where:null,autoParam:[]},callback:{beforeExpand:null,onExpand:null}}},t.prototype.getOptions=function(){return this.tableIns?O.getOptions(this.tableIns.config.id):this.config},t.prototype.flatToTree=function(e){var n,i,o,t,r,a,s,l=(u=this.getOptions()).tree,c=l.customName,u=u.id;return u=e=e||O.cache[u],n=c.id,t=l.data.rootPid,n=n||"id",i=c.pid||"parentId",o=c.children||"children",s={},layui.each(u,function(e,t){r=n+t[n],s[r]=R.extend({},t),s[r][o]=[]}),layui.each(s,function(e,t){(a=n+t[i])&&s[a]&&s[a][o].push(t)}),Object.keys(s).map(function(e){return s[e]}).filter(function(e){return t?e[i]===t:!e[i]})},t.prototype.treeToFlat=function(e,i,o){var r=this,a=r.getOptions().tree.customName,s=a.children,l=a.pid,c=[];return layui.each(e,function(e,t){var e=(o?o+"-":"")+e,n=R.extend({},t);n[l]=t[l]||i,c.push(n),c=c.concat(r.treeToFlat(t[s],t[a.id],e))}),c},t.prototype.getTreeNode=function(e){var t=this;return e?(t.getOptions().tree.customName,{data:e,dataIndex:e[z],getParentNode:function(){return t.getNodeByIndex(e[d])}}):p.error("找不到节点数据")},t.prototype.getNodeByIndex=function(t){var n,e,i=this,o=i.getNodeDataByIndex(t);return o?((e=i.getOptions()).tree.customName.parent,n=e.id,(e={data:o,dataIndex:o[z],getParentNode:function(){return i.getNodeByIndex(o[d])},update:function(e){return P.updateNode(n,t,e)},remove:function(){return P.removeNode(n,t)},expand:function(e){return P.expandNode(n,R.extend({},e,{index:t}))},setChecked:function(e){return P.setRowChecked(n,R.extend({},e,{index:t}))}}).dataIndex=t,e):p.error("找不到节点数据")},t.prototype.getNodeById=function(n){var i=(e=this.getOptions()).tree.customName.id,o="",e=P.getData(e.id,!0);if(layui.each(e,function(e,t){if(t[i]===n)return o=t[z],!0}),o)return this.getNodeByIndex(o)},t.prototype.getNodeDataByIndex=function(e,t,n){var i=this.getOptions(),o=i.tree,r=(i=O.cache[i.id])[e];if("delete"!==n&&r)return R.extend(r,n),t?R.extend({},r):r;for(var a=i,s=String(e).split("-"),l=0,c=o.customName.children;l<s.length;l++){if(n&&l===s.length-1){if("delete"===n)return(l?a[c]:a).splice(s[l],1)[0];R.extend((l?a[c]:a)[s[l]],n)}a=(l?a[c]:a)[s[l]]}return t?R.extend({},a):a},P.getNodeDataByIndex=function(e,t){if(e=N(e))return e.getNodeDataByIndex(t,!0)},t.prototype.initData=function(e,n){var i=this,t=(o=i.getOptions()).tree,o=o.id;e=e||i.getTableData();var r=(t=t.customName).isParent,a=t.children;return layui.each(e,function(e,t){r in t||(t[r]=!(!t[a]||!t[a].length)),t[y]=t[z],t[d]=n=n||"",e=t[z]=(n?n+"-":"")+e,i.initData(t[a]||[],e)}),h(o,a,e),e},{}),b=(P.expandNode=function(e,t){var n,i,o;if(e=N(e))return n=(t=t||{}).index,i=t.expandFlag,o=t.inherit,t=t.callbackFlag,e=e.getOptions().elem.next(),M({trElem:e.find('tr[lay-data-index="'+n+'"]').first()},i,o,null,t)},P.expandAll=function(n,e){if("boolean"!==layui.type(e))return p.error("expandAll 的展开状态参数只接收true/false");var t=N(n);if(t){t.isExpandAll=e;var i=(d=t.getOptions()).tree,o=d.elem.next(),r=i.customName.isParent,a=i.customName.id,s=i.view.showFlexIconIfNotParent;if(e){if(e=P.getData(n,!0),i.async.enable){var l=!0;if(layui.each(e,function(e,t){if(t[r]&&!t[q])return!(l=!1)}),!l)return void layui.each(P.getData(n),function(e,t){P.expandNode(n,{index:t[z],expandFlag:!0,inherit:!0})})}var c=!0;if(layui.each(e,function(e,t){if(t[r]&&!t[U])return!(c=!1)}),c)t.updateStatus(null,function(e){(e[r]||s)&&(e[W]=!0,void 0!==e[a])&&(t.status.expand[e[a]]=!0)}),o.find('tbody tr[data-level!="0"]').removeClass(B),o.find(".layui-table-tree-flexIcon").html(i.view.flexIconOpen),i.view.showIcon&&o.find(".layui-table-tree-nodeIcon:not(.layui-table-tree-iconCustom,.layui-table-tree-iconLeaf)").html(i.view.iconOpen);else{if(t.updateStatus(null,function(e){(e[r]||s)&&(e[W]=!0,e[U]=!0,void 0!==e[a])&&(t.status.expand[e[a]]=!0)}),d.initSort&&d.initSort.type&&d.autoSort)return P.sort(n);var u,d=O.getTrHtml(n,e),h={trs:R(d.trs.join("")),trs_fixed:R(d.trs_fixed.join("")),trs_fixed_r:R(d.trs_fixed_r.join(""))};layui.each(e,function(e,t){var n=t[z].split("-").length-1;u={"data-index":t[z],"lay-data-index":t[z],"data-level":n},h.trs.eq(e).attr(u),h.trs_fixed.eq(e).attr(u),h.trs_fixed_r.eq(e).attr(u)}),layui.each(["main","fixed-l","fixed-r"],function(e,t){o.find(".layui-table-"+t+" tbody").html(h[["trs","trs_fixed","trs_fixed_r"][e]])}),t.renderTreeTable(o,0,!1)}}else t.updateStatus(null,function(e){(e[r]||s)&&(e[W]=!1,void 0!==e[a])&&(t.status.expand[e[a]]=!1)}),o.find('.layui-table-box tbody tr[data-level!="0"]').addClass(B),o.find(".layui-table-tree-flexIcon").html(i.view.flexIconClose),i.view.showIcon&&o.find(".layui-table-tree-nodeIcon:not(.layui-table-tree-iconCustom,.layui-table-tree-iconLeaf)").html(i.view.iconClose);P.resize(n)}},t.prototype.renderTreeTable=function(e,t,n){var i=this,o=i.getOptions(),r=o.elem.next(),a=(r.hasClass(m)||r.addClass(m),o.id),s=o.tree||{},l=(s.data,s.view||{}),c=s.customName||{},u=c.isParent,d=(r.attr("lay-filter"),i),h=((t=t||0)||(r.find(".layui-table-body tr:not([data-level])").attr("data-level",t),layui.each(O.cache[a],function(e,t){r.find('.layui-table-main tbody tr[data-level="0"]:eq('+e+")").attr("lay-data-index",t[z]),r.find('.layui-table-fixed-l tbody tr[data-level="0"]:eq('+e+")").attr("lay-data-index",t[z]),r.find('.layui-table-fixed-r tbody tr[data-level="0"]:eq('+e+")").attr("lay-data-index",t[z])})),null),p=c.name,f=l.indent||14;if(layui.each(e.find('td[data-field="'+p+'"]'),function(e,t){var n,i,o=(t=R(t)).closest("tr");(t=t.children(".layui-table-cell")).hasClass("layui-table-tree-item")||(i=o.attr("lay-data-index"))&&(o=r.find('tr[lay-data-index="'+i+'"]'),(n=d.getNodeDataByIndex(i))[W]&&n[u]&&((h=h||{})[i]=!0),n[v]&&o.find('input[type="checkbox"][name="layTableCheckbox"]').prop("indeterminate",!0),i=t.html(),(t=o.find('td[data-field="'+p+'"]>div.layui-table-cell')).addClass("layui-table-tree-item"),t.html(['<div class="layui-inline layui-table-tree-flexIcon" ','style="',"margin-left: "+f*o.attr("data-level")+"px;",n[u]||l.showFlexIconIfNotParent?"":" visibility: hidden;",'">',n[W]?l.flexIconOpen:l.flexIconClose,"</div>",l.showIcon?'<div class="layui-inline layui-table-tree-nodeIcon'+(n[c.icon]||l.icon?" layui-table-tree-iconCustom":"")+(n[u]?"":" layui-table-tree-iconLeaf")+'">'+(n[c.icon]||l.icon||(n[u]?n[W]?l.iconOpen:l.iconClose:l.iconLeaf)||"")+"</div>":"",i].join("")).find(".layui-table-tree-flexIcon").on("click",function(e){layui.stope(e),M({trElem:o},null,null,null,!0)}))}),!t&&s.view.expandAllDefault&&void 0===i.isExpandAll)return P.expandAll(a,!0);(!1!==n&&h?(layui.each(h,function(e,t){(e=r.find('tr[lay-data-index="'+e+'"]')).find(".layui-table-tree-flexIcon").html(l.flexIconOpen),M({trElem:e.first()},!0)}
vendor: 4,376 bytes, line 2
2),I("renderTreeTable2-"+a,function(){g.render(R('.layui-table-tree[lay-id="'+a+'"]'))},0)):I("renderTreeTable-"+a,function(){o.hasNumberCol&&b(i),g.render(R('.layui-table-tree[lay-id="'+a+'"]'))},0))()},function(n){var e=n.getOptions(),t=e.elem.next(),i=0,o=t.find(".layui-table-main tbody tr"),r=t.find(".layui-table-fixed-l tbody tr"),a=t.find(".layui-table-fixed-r tbody tr");layui.each(n.treeToFlat(O.cache[e.id]),function(e,t){t.LAY_HIDE||(n.getNodeDataByIndex(t[z]).LAY_NUM=++i,o.eq(e).find(".laytable-cell-numbers").html(i),r.eq(e).find(".laytable-cell-numbers").html(i),a.eq(e).find(".laytable-cell-numbers").html(i))})}),f=(t.prototype.render=function(e){this.tableIns=O["reloadData"===e?"reloadData":"reload"](this.tableIns.config.id,R.extend(!0,{},this.config)),this.config=this.tableIns.config},t.prototype.reload=function(e,t,n){var i=this;e=e||{},delete i.haveInit,layui.each(e,function(e,t){"array"===layui.type(t)&&delete i.config[e]}),o(i.getOptions().id,e,n||!0),i.config=R.extend(t,{},i.config,e),i.render(n)},P.reloadData=function(){var e=R.extend(!0,[],arguments);return e[3]="reloadData",P.reload.apply(null,e)},function(e,n,i,o){var r=[];return layui.each(e,function(e,t){"function"===layui.type(n)?n(t):R.extend(t,n),r.push(R.extend({},t)),o||(r=r.concat(f(t[i],n,i,o)))}),r}),u=(t.prototype.updateStatus=function(e,t,n){var i=this.getOptions(),o=i.tree;return e=e||O.cache[i.id],f(e,t,o.customName.children,n)},t.prototype.getTableData=function(){var e=this.getOptions();return O.cache[e.id]},P.updateStatus=function(e,t,n){var i=(e=N(e)).getOptions();return n=n||(i.url?O.cache[i.id]:i.data),e.updateStatus(n,t)},P.sort=function(e){var t,n,o,r,i,a=N(e);a&&(i=(t=a.getOptions()).tree,n=P.getData(e),o=i.customName.children,r=function(e,n,i){layui.sort(e,n,i,!0),layui.each(e,function(e,t){r(t[o]||[],n,i)})},t.autoSort)&&((i=t.initSort).type?r(n,i.field,"desc"===i.type):r(n,O.config.indexName,null),O.cache[e]=n,a.initData(n),P.renderData(e))},P.updateNode=function(e,n,t){var i,o,r,a,s,l=N(e);l&&((a=l.getOptions()).tree,a=(i=a.elem.next()).find('tr[lay-data-index="'+n+'"]'),o=a.attr("data-index"),r=a.attr("data-level"),t)&&(a=l.getNodeDataByIndex(n,!1,t),s=O.getTrHtml(e,[a]),layui.each(["main","fixed-l","fixed-r"],function(e,t){i.find(".layui-table-"+t+' tbody tr[lay-data-index="'+n+'"]').replaceWith(R(s[["trs","trs_fixed","trs_fixed_r"][e]].join("")).attr({"data-index":o,"lay-data-index":n,"data-level":r}))}),l.renderTreeTable(i.find('tr[lay-data-index="'+n+'"]'),r))},P.removeNode=function(e,t){var n,i,o,r,a,s=N(e);s&&(a=(n=s.getOptions()).tree,i=n.elem.next(),o=[],t=s.getNodeDataByIndex("string"===layui.type(t)?t:t[z],!1,"delete"),r=s.getNodeDataByIndex(t[d]),s.updateCheckStatus(r),r=s.treeToFlat([t],t[a.customName.pid],t[d]),layui.each(r,function(e,t){o.push('tr[lay-data-index="'+t[z]+'"]')}),i.find(o.join(",")).remove(),a=s.initData(),layui.each(s.treeToFlat(a),function(e,t){t[y]&&t[y]!==t[z]&&i.find('tr[lay-data-index="'+t[y]+'"]').attr({"data-index":t[z],"lay-data-index":t[z]})}),layui.each(O.cache[e],function(e,t){i.find('tr[data-level="0"][lay-data-index="'+t[z]+'"]').attr("data-index",e)}),n.hasNumberCol&&b(s),P.resize(e))},P.addNodes=function(e,t){var n=N(e);if(n){var i=(m=n.getOptions()).tree,o=m.elem.next(),r=O.config.checkName,a=(t=t||{}).parentIndex,s=t.index,l=t.data,t=t.focus,c=(a="number"===layui.type(a)?a.toString():a)?n.getNodeDataByIndex(a):null,s="number"===layui.type(s)?s:-1,l=R.extend(!0,[],layui.isArray(l)?l:[l]);if(layui.each(l,function(e,t){r in t||!c||(t[r]=c[r])}),n.getTableData(),c){var u=i.customName.isParent,d=i.customName.children,h=(c[u]=!0,(h=c[d])?(p=h.splice(-1===s?h.length:s),c[d]=h.concat(l,p)):c[d]=l),d=(n.updateStatus(h,function(e){(e[u]||i.view.showFlexIconIfNotParent)&&(e[U]=!1)}),n.treeToFlat(h));o.find(d.map(function(e){return'tr[lay-data-index="'+e[z]+'"]'}).join(",")).remove(),n.initData(),c[U]=!1,c[q]="local",M({trElem:o.find('tr[lay-data-index="'+a+'"]')},!0)}else{var p=O.cache[e].splice(-1===s?O.cache[e].length:s);if(O.cache[e]=O.cache[e].concat(l,p),m.url||(m.page?(h=m.page,m.data.splice.apply(m.data,[h.limit*(h.curr-1),h.limit].concat(O.cache[e]))):m.data=O.cache[e]),n.initData(),o.find(".layui-none").length)return O.renderData(e),l;var f,d=O.getTrHtml(e,l),g={trs:R(d.trs.join("")),trs_fixed:R(d.trs_fixed.join("")),trs_fixed_r:R(d.trs_fixed_r.join(""))}
2,a=(layui.each(l,function(e,t){f={"data-index":t[z],"lay-data-index":t[z],"data-level":"0"},g.trs.eq(e).attr(f),g.trs_fixed.eq(e).attr(f),g.trs_fixed_r.eq(e).attr(f)}),parseInt(l[0][z])-1),h=o.find(j),m=o.find(H),d=o.find(F);-1==a?(h.find('tr[data-level="0"][data-index="0"]').before(g.trs),m.find('tr[data-level="0"][data-index="0"]').before(g.trs_fixed),d.find('tr[data-level="0"][data-index="0"]').before(g.trs_fixed_r)):-1===s?(h.find("tbody").append(g.trs),m.find("tbody").append(g.trs_fixed),d.find("tbody").append(g.trs_fixed_r)):(a=p[0][y],h.find('tr[data-level="0"][data-index="'+a+'"]').before(g.trs),m.find('tr[data-level="0"][data-index="'+a+'"]').before(g.trs_fixed),d.find('tr[data-level="0"][data-index="'+a+'"]').before(g.trs_fixed_r)),layui.each(O.cache[e],function(e,t){o.find('tr[data-level="0"][lay-data-index="'+t[z]+'"]').attr("data-index",e)}),n.renderTreeTable(o.find(l.map(function(e,t,n){return'tr[lay-data-index="'+e[z]+'"]'}).join(",")))}return n.updateCheckStatus(c),P.resize(e),t&&o.find(j).find('tr[lay-data-index="'+l[0][z]+'"]').get(0).scrollIntoViewIfNeeded(),l}},P.checkStatus=function(e,i){var o,t,n,r=N(e);if(r)return r=r.getOptions().tree,o=O.config.checkName,t=P.getData(e,!0).filter(function(e,t,n){return e[o]||i&&e[v]}),n=!0,layui.each("all"===r.data.cascade?O.cache[e]:P.getData(e,!0),function(e,t){if(!t[o])return!(n=!1)}),{data:t,isAll:n}},P.on("sort",function(e){var t=(e=e.config).elem.next(),e=e.id;t.hasClass(m)&&P.sort(e)}),P.on("row",function(e){e.config.elem.next().hasClass(m)&&i(e)}),P.on("rowDouble",function(e){var t=e.config,n=t.elem.next();t.id,n.hasClass(m)&&(i(e),(t.tree||{}).view.dblClickExpand)&&M({trElem:e.tr.first()},null,null,null,!0)}),P.on("rowContextmenu",function(e){var t=e.config,n=t.elem.next();t.id,n.hasClass(m)&&i(e)}),P.on("tool",function(e){var t=e.config,n=t.elem.next();t.id,n.hasClass(m)&&i(e)}),P.on("edit",function(e){var t=e.config,n=t.elem.next();t.id,n.hasClass(m)&&(i(e),e.field===t.tree.customName.name)&&((n={})[e.field]=e.value,e.update(n))}),P.on("radio",function(e){var t=(n=e.config).elem.next(),n=n.id;t.hasClass(m)&&(t=N(n),i(e),u.call(t,e.tr,e.checked))}),t.prototype.setRowCheckedClass=function(e,t){var n=this.getOptions(),i=(e.data("index"),n.elem.next());e[t?"addClass":"removeClass"](s),e.each(function(){var e=R(this).data("index");i.find('.layui-table-fixed-r tbody tr[data-index="'+e+'"]')[t?"addClass":"removeClass"](s)})},t.prototype.updateCheckStatus=function(e,t){var n,i,o,r,a,s,l,c=this,u=c.getOptions();return!!u.hasChecboxCol&&(n=u.tree,i=u.id,o=u.elem.next(),r=O.config.checkName,"all"!==(a=n.data.cascade)&&"parent"!==a||!e||(a=c.updateParentCheckStatus(e,"boolean"===layui.type(t)?t:null),layui.each(a,function(e,t){var n=o.find('tr[lay-data-index="'+t[z]+'"]  input[name="layTableCheckbox"]:not(:disabled)'),i=t[r];c.setRowCheckedClass(n.closest("tr"),i),g.render(n.prop({checked:i,indeterminate:t[v]}))})),l=!(s=!0),e=(e="all"===n.data.cascade?O.cache[i]:P.getData(i,!0)).filter(function(e){return!e[u.disabledName]}),layui.each(e,function(e,t){if((t[r]||t[v])&&(l=!0),t[r]||(s=!1),l&&!s)return!0}),l=l&&!s,g.render(o.find('input[name="layTableCheckbox"][lay-filter="layTableAllChoose"]').prop({checked:s,indeterminate:l})),s)},t.prototype.updateParentCheckStatus=function(n,i){var o,e=(t=this.getOptions()).tree,t=t.id,r=O.config.checkName,e=e.customName.children,a=[];return!(n[v]=!1)===i?n[e].length?layui.each(n[e],function(e,t){if(!t[r])return i=!1,n[v]=!0}):i=!1:!1===i?layui.each(n[e],function(e,t){if(t[r]||t[v])return n[v]=!0}):(i=!1,o=0,layui.each(n[e],function(e,t){t[r]&&o++}),i=n[e].length?n[e].length===o:n[r],n[v]=!i&&0<o),n[r]=i,a.push(R.extend({},n)),n[d]?a.concat(this.updateParentCheckStatus(O.cache[t][n[d]],i)):a},function(e,t,n){var i=this,o=(l=i.getOptions()).tree,r=l.id,a=l.elem.next(),s=(e.length?e:a).find(".laytable-cell-radio, .laytable-cell-checkbox").children("input").last(),l="radio"===s.attr("type");if(n)n=function(){function e(e){layui.stope(e)}s.parent().on("click",e),s.next().click(),s.parent().off("click",e)},l?t&&!s.prop("checked")&&n():"boolean"===layui.type(t)&&s.prop("checked")===t||n();else{var c,n=i.getNodeDataByIndex(e.attr("data-index")),u=O.config.checkName;if(!l)return t="boolean"===layui.type(t)?t:!n[u],l=i.updateStatus(n?[n]:O.cache[r],function(e){e[O.config.disabledName]||(e[u]=t,e[v]=!1)},n&&-1!==["parent","none"].indexOf(o.data.cascade)),r=a.find(l.map(function(e){return'tr[lay-data-index="'+e[z]+'"] input[name="layTableCheckbox"]:not(:disabled)'}).join(",")),i.setRowCheckedClass(r.closest("tr"),t),g.render(r.prop({checked:t,indeterminate:!1}
2)),n&&n[d]&&(c=i.getNodeDataByIndex(n[d])),i.updateCheckStatus(c,t);n&&(i.updateStatus(null,function(e){var t;e[u]&&(t=a.find('tr[lay-data-index="'+e[z]+'"] input[type="radio"][lay-type="layTableRadio"]'),e[u]=!1,i.setRowCheckedClass(t.closest("tr"),!1),g.render(t.prop("checked",!1)))}),n[u]=t,i.setRowCheckedClass(e,t),i.setRowCheckedClass(e.siblings(),!1),g.render(e.find('input[type="radio"][lay-type="layTableRadio"]').prop("checked",t)))}});P.on("checkbox",function(e){var t=(n=e.config).elem.next(),n=n.id;t.hasClass(m)&&(t=N(n),n=e.checked,i(e),e.isAll=u.call(t,e.tr,n))}),P.setRowChecked=function(n,e){var t,i,o,r,a,s,l,c=N(n);c&&(t=c.getOptions().elem.next(),o=(e=e||{}).index,i=e.checked,e=e.callbackFlag,o="string"===layui.type(o)?o:o[z],s=c.getNodeDataByIndex(o))&&(r=function(e){l.push(e),t.find('tr[lay-data-index="'+e+'"]').length||(e=c.getNodeDataByIndex(e)[d])&&r(e)},(a=t.find('tr[lay-data-index="'+o+'"]')).length||(s=s[d],l=[],r(s),layui.each(l.reverse(),function(e,t){P.expandNode(n,{index:t,expandFlag:!0})}),a=t.find('tr[lay-data-index="'+o+'"]')),u.call(c,a,i,e))},P.checkAllNodes=function(e,t){var n;(e=N(e))&&(n=e.getOptions().elem.next(),u.call(e,n.find('tr[data-index="NONE"]'),!!t))},P.getData=function(e,t){var n,i=N(e);if(i)return n=[],layui.each(R.extend(!0,[],O.cache[e]||[]),function(e,t){n.push(t)}),t?i.treeToFlat(n):n},P.reloadAsyncNode=function(n,e){var t,i,o=N(n);o&&(t=o.getOptions().tree).async&&t.async.enable&&(i=o.getNodeDataByIndex(e))&&(i[U]=!1,i[W]=!1,i[q]=!1,layui.each(o.treeToFlat(i[t.customName.children]).reverse(),function(e,t){P.removeNode(n,t[z])}),P.expandNode(n,{index:e,expandFlag:!0,callbackFlag:!0}))},P.getNodeById=function(e,t){if(e=N(e))return e.getNodeById(t)},P.getNodesByFilter=function(e,t,n){var i,o,r,a=N(e);if(a)return o=a.getOptions(),i=(n=n||{}).isSingle,n=(n=n.parentNode)&&n.data,o=a.treeToFlat(n?n[o.tree.customName.children]||[]:O.cache[e]).filter(t),r=[],layui.each(o,function(e,t){if(r.push(a.getNodeByIndex(t[z])),i)return!0}),r},a.that={},P.reload=function(e,t,n,i){if(e=N(e))return e.reload(t,n,i),a.call(e)},P.render=function(e){return e=new t(e),a.call(e)},e("treeTable",P)}),layui.define(["form","util"],function(e){function i(){var t=this,e=t.config,n=e.id||t.index;return i.that[n]=t,{config:i.config[n]=e,reload:function(e){t.reload.call(t,e)},getChecked:function(){return t.getChecked.call(t)},setChecked:function(e){return t.setChecked.call(t,e)}}}function t(e){this.index=++r.index,this.config=p.extend({},this.config,r.config,e),this.render()}var p=layui.$,n=layui.form,f=layui.layer,g=layui.util,o="tree",r={config:{customName:{id:"id",title:"title",children:"children"}},index:layui.tree?layui.tree.index+1e4:0,set:function(e){return this.config=p.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,o,e,t)}},m="layui-hide",d="layui-disabled",y="layui-tree-set",v="layui-tree-iconClick",b="layui-icon-addition",w="layui-icon-subtraction",x="layui-tree-entry",A="layui-tree-main",C="layui-tree-txt",k="layui-tree-pack",_="layui-tree-spread",S="layui-tree-setLineShort",E="layui-tree-showLine",T="layui-tree-lineExtend";t.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},t.prototype.reload=function(e){var n=this;layui.each(e,function(e,t){"array"===layui.type(t)&&delete n.config[e]}),n.config=p.extend(!0,{},n.config,e),n.render()},t.prototype.render=function(){var e=this,t=e.config,n=(t.customName=p.extend({},r.config.customName,t.customName),e.checkids=[],p('<div class="layui-tree layui-border-box'+(t.showCheckbox?" layui-form":"")+(t.showLine?" layui-tree-line":"")+'" lay-filter="LAY-tree-'+e.index+'"></div>')),i=(e.tree(n),t.elem=p(t.elem));if(i[0]){if(e.key=t.id||e.index,e.elem=n,e.elemNone=p('<div class="layui-tree-emptyText">'+t.text.none+"</div>"),i.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);t.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=p(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(S),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(S)}),e.events()}},t.prototype.renderForm=function(e){n.render(e,"LAY-tree-"+this.index)},t.prototype.tree=function(s,e){var l=this,c=l.config,u=c.customName,e=e||c.data;layui.each(e,function(e,t){var n,i,o=t[u.children]&&0<t[u.children].length,r=p('<div class="layui-tree-pack" '+(t.spread?'style="display: block;"':"")+"></div>"),a=p(['<div data-id="'+t[u.id]+'" class="layui-tree-set'+(t.spread?" layui-tree-spread":"")+(t.checked?" layui-tree-checkedFirst":"")+'">','<div class="layui-tree-entry">','<div class="layui-tree-main">',c.showLine?o?'<span class="layui-tree-iconClick layui-tree-icon"><i class="layui-icon '+(t.spread?"layui-icon-subtraction":"layui-icon-addition")+'"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-icon layui-icon-file"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-tree-iconArrow '+(o?"":m)+'"></i></span>',c.showCheckbox?'<input type="checkbox" name="'+(t.field||"layuiTreeCheck_"+t[u.id])+'" same="layuiTreeCheck" lay-skin="primary" '+(t.disabled?"disabled":"")+' value="'+t[u.id]+'">':"",c.isJump&&t.href?'<a href="'+t.href+'" target="_blank" class="'+C+'">'+(t[u.title]||t.label||c.text.defaultNodeName)+"</a>":'<span class="'+C+(t.disabled?" "+d:"")+'">'+(t[u.title]||t.label||c.text.defaultNodeName)+"</span>","</div>",c.edit?(n={add:'<i class="layui-icon layui-icon-add-1"  data-type="add"></i>',update:'<i class="layui-icon layui-icon-edit" data-type="update"></i>',del:'<i class="layui-icon layui-icon-delete" data-type="del"></i>'},i=['<div class="layui-btn-group layui-tree-btnGroup">'],!0===c.edit&&(c.edit=["update","del"]),"object"==typeof c.edit?(layui.each(c.edit,function(e,t){i.push(n[t]||"")}),i.join("")+"</div>"):void 0):"","</div></div>"].join(""));o&&(a.append(r),l.tree(r,t[u.children])),s.append(a),a.prev("."+y)[0]&&a.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),o||a.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),l.spread(a,t),c.showCheckbox&&(t.checked&&l.checkids.push(t[u.id]),l.checkClick(a,t)),c.edit&&l.operate(a,t)})},t.prototype.spread=function(i,o){var r=this,a=r.config,e=(s=i.children("."+x)).children("."+A),t=e.find('input[same="layuiTreeCheck"]'),n=s.find("."+v),s=s.find("."+C),l=a.onlyIconControl?n:e,c="";l.on("click",function(e){var t=i.children("."+k),n=(l.children(".layui-icon")[0]?l:l.find(".layui-tree-icon")).children(".layui-icon");t[0]?i.hasClass(_)?(i.removeClass(_),t.slideUp(200),n.removeClass(w).addClass(b),r.updateFieldValue(o,"spread",!1)):(i.addClass(_),t.slideDown(200),n.addClass(w).removeClass(b),r.updateFieldValue(o,"spread",!0),a.accordion&&((t=i.siblings("."+y)).removeClass(_),t.children("."+k).slideUp(200),t.find(".layui-tree-icon").children(".layui-icon").removeClass(w).addClass(b))):c="normal"}),s.on("click",function(){p(this).hasClass(d)||(c=i.hasClass(_)?a.onlyIconControl?"open":"close":a.onlyIconControl?"close":"open",t[0]&&r.updateFieldValue(o,"checked",t.prop("checked")),a.click&&a.click({elem:i,state:c,data:o}))})},t.prototype.updateFieldValue=function(e,t,n){t in e&&(e[t]=n)},t.prototype.setCheckbox=function(e,t,n){var o,i=this,r=i.config.customName,a=n.prop("checked");n.prop("disabled")||("object"!=typeof t[r.children]&&!e.find("."+k)[0]||e.find("."+k).find('input[same="layuiTreeCheck"]').each(function(e){this.disabled||((e=t[r.children][e])&&i.updateFieldValue(e,"checked",a),i.updateFieldValue(this,"checked",a))}),(o=function(e){var t,n,i;e.parents("."+y)[0]&&(n=(e=e.parent("."+k)).parent(),i=e.prev().find('input[same="layuiTreeCheck"]'),a?i.prop("checked",a):(e.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(t=!0)}),t||i.prop("checked",!1)),o(n))})(e),i.renderForm("checkbox"))},t.prototype.checkClick=function(n,i){var o=this,r=o.config;n.children("."+x).children("."+A).on("click",'input[same="layuiTreeCheck"]+',function(e){layui.stope(e);var t=(e=p(this).prev()).prop("checked");e.prop("disabled")||(o.setCheckbox(n,i,e),o.updateFieldValue(i,"checked",t),r.oncheck&&r.oncheck({elem:n,checked:t,data:i}))})},t.prototype.operate=function(l,r){var c=this,u=c.config,d=u.customName,e=l.children("."+x),h=e.children("."+A);e.children(".layui-tree-btnGroup").on("click",".layui-icon",function(e){layui.stope(e);var t,n,i,o,e=p(this).data("type"),a=l.children("."+k),s={data:r,type:e,elem:l};"add"==e?(a[0]||(u.showLine?(h.find("."+v).addClass("layui-tree-icon"),h.find("."+v).
2children(".layui-icon").addClass(b).removeClass("layui-icon-file")):h.find(".layui-tree-iconArrow").removeClass(m),l.append('<div class="layui-tree-pack"></div>')),i=u.operate&&u.operate(s),(o={})[d.title]=u.text.defaultNodeName,o[d.id]=i,c.tree(l.children("."+k),[o]),u.showLine&&(a[0]?(a.hasClass(T)||a.addClass(T),l.find("."+k).each(function(){p(this).children("."+y).last().addClass(S)}),(a.children("."+y).last().prev().hasClass(S)?a.children("."+y).last().prev():a.children("."+y).last()).removeClass(S),!l.parent("."+k)[0]&&l.next()[0]&&a.children("."+y).last().removeClass(S)):(i=l.siblings("."+y),n=1,o=l.parent("."+k),layui.each(i,function(e,t){p(t).children("."+k)[0]||(n=0)}),(1==n?(i.children("."+k).addClass(E),i.children("."+k).children("."+y).removeClass(S),l.children("."+k).addClass(E),o.removeClass(T),o.children("."+y).last().children("."+k).children("."+y).last()):l.children("."+k).children("."+y)).addClass(S))),u.showCheckbox&&(h.find('input[same="layuiTreeCheck"]')[0].checked&&(l.children("."+k).children("."+y).last().find('input[same="layuiTreeCheck"]')[0].checked=!0),c.renderForm("checkbox"))):"update"==e?(i=h.children("."+C).html(),h.children("."+C).html(""),h.append('<input type="text" class="layui-tree-editInput">'),h.children(".layui-tree-editInput").val(g.unescape(i)).focus(),t=function(e){var t=e.val().trim()||u.text.defaultNodeName;e.remove(),h.children("."+C).html(t),s.data[d.title]=t,u.operate&&u.operate(s)},h.children(".layui-tree-editInput").blur(function(){t(p(this))}),h.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),t(p(this)))})):f.confirm('确认删除该节点 "<span style="color: #999;">'+(r[d.title]||"")+'</span>" 吗?',function(e){var r,n,t;u.operate&&u.operate(s),s.status="remove",f.close(e),l.prev("."+y)[0]||l.next("."+y)[0]||l.parent("."+k)[0]?(l.siblings("."+y).children("."+x)[0]?(u.showCheckbox&&(r=function(e){var t,n,i,o;e.parents("."+y)[0]&&(t=e.siblings("."+y).children("."+x),n=(e=e.parent("."+k).prev()).find('input[same="layuiTreeCheck"]')[0],i=1,(o=0)==n.checked)&&(t.each(function(e,t){0!=(t=p(t).find('input[same="layuiTreeCheck"]')[0]).checked||t.disabled||(i=0),t.disabled||(o=1)}),1==i)&&1==o&&(n.checked=!0,c.renderForm("checkbox"),r(e.parent("."+y)))})(l),u.showLine&&(e=l.siblings("."+y),n=1,t=l.parent("."+k),layui.each(e,function(e,t){p(t).children("."+k)[0]||(n=0)}),1==n?(a[0]||(t.removeClass(T),e.children("."+k).addClass(E),e.children("."+k).children("."+y).removeClass(S)),(l.next()[0]?t.children("."+y).last():l.prev()).children("."+k).children("."+y).last().addClass(S),l.next()[0]||l.parents("."+y)[1]||l.parents("."+y).eq(0).next()[0]||l.prev("."+y).addClass(S)):!l.next()[0]&&l.hasClass(S)&&l.prev().addClass(S))):(e=l.parent("."+k).prev(),u.showLine?(e.find("."+v).removeClass("layui-tree-icon"),e.find("."+v).children(".layui-icon").removeClass(w).addClass("layui-icon-file"),(t=e.parents("."+k).eq(0)).addClass(T),t.children("."+y).each(function(){p(this).children("."+k).children("."+y).last().addClass(S)})):e.find(".layui-tree-iconArrow").addClass(m),l.parents("."+y).eq(0).removeClass(_),l.parent("."+k).remove()),l.remove()):(l.remove(),c.elem.append(c.elemNone))})})},t.prototype.events=function(){var t=this,o=t.config;t.elem.find(".layui-tree-checkedFirst"),t.setChecked(t.checkids),t.elem.find(".layui-tree-search").on("keyup",function(){var n=(e=p(this)).val(),e=e.nextAll(),i=[];e.find("."+C).each(function(){var t,e=p(this).parents("."+x);-1!=p(this).html().indexOf(n)&&(i.push(p(this).parent()),(t=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+k)[0]&&t(e.parent("."+k).parent("."+y))})(e.parent("."+y)))}),e.find("."+x).each(function(){var e=p(this).parent("."+y);e.hasClass("layui-tree-searchShow")||e.addClass(m)}),0==e.find(".layui-tree-searchShow").length&&t.elem.append(t.elemNone),o.onsearch&&o.onsearch({elem:i})}),t.elem.find(".layui-tree-search").on("keydown",function(){p(this).nextAll().find("."+x).each(function(){p(this).parent("."+y).removeClass("layui-tree-searchShow "+m)}),p(".layui-tree-emptyText")[0]&&p(".layui-tree-emptyText").remove()})},t.prototype.getChecked=function(){var o=this,e=o.config,r=e.customName,t=[],n=[],a=(o.elem.find(".layui-form-checked").each(function(){t.push(p(this).prev()[0].value)}),function(e,i){layui.each(e,function(e,n){layui.each(t,function(e,t){if(n[r.id]==t)return o.updateFieldValue(n,"checked",!0),delete(t=p.extend({},n))[r.children],i.push(t),n[r.children]&&(t[r.children]=[],a(n[r.children],t[r.children])),!0})})});return a(p.extend({},e.data),n),n},t.prototype.setChecked=function(r){this.config,this.elem.find("."+y).each(function(e,t){var n=p(this).data("id"),i=p(t).children("."+x).find('input[same="layuiTreeCheck"]'),o=i.next();if("number"==typeof r){if(n.toString()==r.toString())return i[0].checked||o.click(),!1}else"object"==typeof r&&layui.each(r,function(e,t){if(t.toString()==n.toString()&&!i[0].checked)return o.click(),!0})})},i.that={},i.config={},r.reload=function(e,t){return(e=i.that[e]).reload(t),i.call(e)},r.getChecked=function(e){return i.that[e].getChecked()},r.setChecked=function(e,t){return i.that[e].setChecked(t)},r.render=function(e){return e=new t(e),i.call(e)},e(o,r)}),layui.define(["laytpl","form"],function(e){function i(){var t=this,e=t.config,n=e.id||t.index;return i.that[n]=t,{config:i.config[n]=e,reload:function(e){t.reload.call(t,e)},getData:function(){return t.getData.call(t)}}}function t(e){return['<div class="layui-transfer-box" data-index="'+(e=e||{}).index+'">','<div class="layui-transfer-header">','<input type="checkbox" name="'+e.checkAllName+'" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{= d.data.title['+e.index+"] || 'list"+(e.index+1)+"' }}\">","</div>","{{# if(d.data.showSearch){ }}",'<div class="layui-transfer-search">','<i class="layui-icon layui-icon-search"></i>','<input type="text" class="layui-input" placeholder="关键词搜索">',"</div>","{{# } }}",'<ul class="layui-transfer-data"></ul>',"</div>"].join("")}function n(e){this.index=++s.index,this.config=c.extend({},this.config,s.config,e),this.render()}var c=layui.$,o=layui.laytpl,r=layui.form,a="transfer",s={config:{},index:layui[a]?layui[a].index+1e4:0,set:function(e){return this.config=c.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,a,e,t)}},u="layui-hide",d="layui-btn-disabled",l="layui-none",h="layui-transfer-box",p="layui-transfer-header",f="layui-transfer-search",g="layui-transfer-data",m=['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{= d.index }}">',t({index:0,checkAllName:"layTransferLeftCheckAll"}),'<div class="layui-transfer-active">','<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="0">','<i class="layui-icon layui-icon-next"></i>',"</button>",'<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="1">','<i class="layui-icon layui-icon-prev"></i>',"</button>","</div>",t({index:1,checkAllName:"layTransferRightCheckAll"}),"</div>"].join("");n.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},n.prototype.reload=function(e){this.config=c.extend({},this.config,e),this.render()},n.prototype.render=function(){var e=this,t=e.config,n=e.elem=c(o(m,{open:"{{",close:"}}"}).render({data:t,index:e.index})),i=t.elem=c(t.elem);i[0]&&(t.data=t.data||[],t.value=t.value||[],t.id="id"in t?t.id:elem.attr("id")||e.index,e.key=t.
2id,i.html(e.elem),e.layBox=e.elem.find("."+h),e.layHeader=e.elem.find("."+p),e.laySearch=e.elem.find("."+f),e.layData=n.find("."+g),e.layBtn=n.find(".layui-transfer-active .layui-btn"),e.layBox.css({width:t.width,height:t.height}),e.layData.css({height:(i=t.height-e.layHeader.outerHeight(),t.showSearch&&(i-=e.laySearch.outerHeight()),i-2)}),e.renderData(),e.events())},n.prototype.renderData=function(){var e=this.config,r=[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}];this.parseData(function(n){var i=n.selected?1:0,o=["<li>",'<input type="checkbox" name="'+r[i].checkName+'" lay-skin="primary" lay-filter="layTransferCheckbox" title="'+n.title+'"'+(n.disabled?" disabled":"")+(n.checked?" checked":"")+' value="'+n.value+'">',"</li>"].join("");i?layui.each(e.value,function(e,t){t==n.value&&n.selected&&(r[i].views[e]=o)}):r[i].views.push(o),delete n.selected}),this.layData.eq(0).html(r[0].views.join("")),this.layData.eq(1).html(r[1].views.join("")),this.renderCheckBtn()},n.prototype.renderForm=function(e){r.render(e,"LAY-transfer-"+this.index)},n.prototype.renderCheckBtn=function(a){var s=this,l=s.config;a=a||{},s.layBox.each(function(e){var t=(n=c(this)).find("."+g),n=n.find("."+p).find('input[type="checkbox"]'),i=t.find('input[type="checkbox"]'),o=0,r=!1;i.each(function(){var e=c(this).data("hide");(this.checked||this.disabled||e)&&o++,this.checked&&!e&&(r=!0)}),n.prop("checked",r&&o===i.length),s.layBtn.eq(e)[r?"removeClass":"addClass"](d),a.stopNone||(i=t.children("li:not(."+u+")").length,s.noneView(t,i?"":l.text.none))}),s.renderForm("checkbox")},n.prototype.noneView=function(e,t){var n=c('<p class="layui-none">'+(t||"")+"</p>");e.find("."+l)[0]&&e.find("."+l).remove(),t.replace(/\s/g,"")&&e.append(n)},n.prototype.setValue=function(){var e=this.config,t=[];return this.layBox.eq(1).find("."+g+' input[type="checkbox"]').each(function(){c(this).data("hide")||t.push(this.value)}),e.value=t,this},n.prototype.parseData=function(t){var i=this.config,o=[];
2return layui.each(i.data,function(e,n){n=("function"==typeof i.parseData?i.parseData(n):n)||n,o.push(n=c.extend({},n)),layui.each(i.value,function(e,t){t==n.value&&(n.selected=!0)}),t&&t(n)}),i.data=o,this},n.prototype.getData=function(e){var t=this.config,i=[];return this.setValue(),layui.each(e||t.value,function(e,n){layui.each(t.data,function(e,t){delete t.selected,n==t.value&&i.push(t)})}),i},n.prototype.transfer=function(e,t){var n,i=this,o=i.config,r=i.layBox.eq(e),a=[];t?((n=t.find('input[type="checkbox"]'))[0].checked=!1,r.siblings("."+h).find("."+g).append(t.clone()),t.remove(),a.push(n[0].value),i.setValue()):r.each(function(e){c(this).find("."+g).children("li").each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=t.data("hide");t[0].checked&&!n&&(t[0].checked=!1,r.siblings("."+h).find("."+g).append(e.clone()),e.remove(),a.push(t[0].value)),i.setValue()})}),i.renderCheckBtn(),""!==(t=r.siblings("."+h).find("."+f+" input")).val()&&t.trigger("keyup"),o.onchange&&o.onchange(i.getData(a),e)},n.prototype.events=function(){var o=this,r=o.config;o.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var e=c(this).prev(),t=e[0].checked,n=e.parents("."+h).eq(0).find("."+g);e[0].disabled||("all"===e.attr("lay-type")&&n.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=t)}),setTimeout(function(){o.renderCheckBtn({stopNone:!0})},0))}),o.elem.on("dblclick","."+g+">li",function(e){var t=c(this),n=t.children('input[type="checkbox"]'),i=t.parent().parent().data("index");n[0].disabled||!1!==("function"==typeof r.dblclick?r.dblclick({elem:t,data:o.getData([n[0].value])[0],index:i}):null)&&o.transfer(i,t)}),o.layBtn.on("click",function(){var e=c(this),t=e.data("index");e.hasClass(d)||o.transfer(t)}),o.laySearch.find("input").on("keyup",function(){var i=this.value,e=c(this).parents("."+f).eq(0).siblings("."+g),t=((t=e.children("li")).each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=t[0].title;"cs"!==r.showSearch&&(n=n.toLowerCase(),i=i.toLowerCase()),e[(n=-1!==n.indexOf(i))?"removeClass":"addClass"](u),t.data("hide",!n)}),o.renderCheckBtn(),t.length===e.children("li."+u).length);o.noneView(e,t?r.text.searchNone:"")})},i.that={},i.config={},s.reload=function(e,t){return(e=i.that[e]).reload(t),i.call(e)},s.getData=function(e){return i.that[e].getData()},s.render=function(e){return e=new n(e),i.call(e)},e(a,s)}),layui.define(["jquery","lay"],function(e){function t(e){this.config=o.extend({},this.config,i.config,e),this.render()}var o=layui.$,a=layui.lay,i=(layui.hint(),layui.device(),{config:{},set:function(e){return this.config=o.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,s,e,t)}}),s="carousel",l="layui-this",c="layui-carousel-left",u="layui-carousel-right",d="layui-carousel-prev",h="layui-carousel-next",r="layui-carousel-arrow",p="layui-carousel-ind";t.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},t.prototype.render=function(){var e=this,t=e.config,n=o(t.elem);if(1<n.length)return layui.each(n,function(){i.render(o.extend({},t,{elem:this}))}),e;o.extend(t,a.options(n[0])),t.elem=o(t.elem),t.elem[0]&&(e.elemItem=t.elem.find(">*[carousel-item]>*"),t.index<0&&(t.index=0),t.index>=e.elemItem.length&&(t.index=e.elemItem.length-1),t.interval<800&&(t.interval=800),t.full?t.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):t.elem.css({width:t.width,height:t.height}),t.elem.attr("lay-anim",t.anim),e.elemItem.eq(t.index).addClass(l),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},t.prototype.reload=function(e){clearInterval(this.timer),this.config=o.extend({},this.config,e),this.render()},t.prototype.prevIndex=function(){var e=this.config.index-1;return e<0?this.elemItem.length-1:e},t.prototype.nextIndex=function(){var e=this.config.index+1;return e>=this.elemItem.length?0:e},t.prototype.addIndex=function(e){var t=this.config;t.index=t.index+(e=e||1),t.index>=this.elemItem.length&&(t.index=0)},t.prototype.subIndex=function(e){var t=this.config;t.index=t.index-(e=e||1),t.index<0&&(t.index=this.elemItem.length-1)},t.prototype.autoplay=function(){var e=this,t=e.config;t.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},t.interval))},t.prototype.arrow=function(){var t=this,e=t.config,n=o(['<button class="layui-icon '+r+'" lay-type="sub">'+("updown"===e.anim?"&#xe619;":"&#xe603;")+"</button>",'<button class="layui-icon '+r+'" lay-type="add">'+("updown"===e.anim?"&#xe61a;":"&#xe602;")+"</button>"].join(""));e.elem.attr("lay-arrow",e.arrow),e.elem.find("."+r)[0]&&e.elem.find("."+r).remove(),e.elem.append(n),n.on("click",function(){var e=o(this).attr("lay-type");t.slide(e)})},t.prototype.goto=function(e){var t=this.config;e>t.index?this.slide("add",e-t.index):e<t.index&&this.slide("sub",t.index-e)},t.prototype.indicator=function(){var t,e=this,n=e.config,i=e.elemInd=o(['<div class="'+p+'"><ul>',(t=[],layui.each(e.elemItem,function(e){t.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),t.join("")),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+p)[0]&&n.elem.find("."+p).remove(),n.elem.append(i),"updown"===n.anim&&i.css("margin-top",-i.height()/2),i.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){e.goto(o(this).index())})},t.prototype.slide=function(e,t){var n=this,i=n.elemItem,o=n.config,r=o.index,a=o.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(t),i.eq(o.index).addClass(d),setTimeout(function(){i.eq(r).addClass(u),i.eq(o.index).addClass(u)},50)):(n.addIndex(t),i.eq(o.index).addClass(h),setTimeout(function(){i.eq(r).addClass(c),i.eq(o.index).addClass(c)},50)),setTimeout(function(){i.removeClass(l+" "+d+" "+h+" "+c+" "+u),i.eq(o.index).addClass(l),n.haveSlide=!1},350),n.elemInd.find("li").eq(o.index).addClass(l).siblings().removeClass(l),n.haveSlide=!0,e={
2index:o.index,prevIndex:r,item:i.eq(o.index)},"function"==typeof o.change&&o.change(e),layui.event.call(this,s,"change("+a+")",e))},t.prototype.events=function(){var i,o,r=this,e=r.config;e.elem.data("haveEvents")||(e.elem.on("mouseenter touchstart",function(){"always"!==r.config.autoplay&&clearInterval(r.timer)}).on("mouseleave touchend",function(){"always"!==r.config.autoplay&&r.autoplay()}),i=e.elem,o="updown"===e.anim,a.touchSwipe(i,{onTouchEnd:function(e,t){var n=Date.now()-t.timeStart,t=o?t.distanceY:t.distanceX;(.25<Math.abs(t/n)||Math.abs(t)>i[o?"height":"width"]()/3)&&r.slide(0<t?"":"sub")}}),e.elem.data("haveEvents",!0))},i.render=function(e){return new t(e)},e(s,i)}),layui.define(["jquery","lay"],function(e){function t(e){this.index=++c.index,this.config=s.extend({},this.config,c.config,e),this.render()}var s=layui.jquery,l=layui.lay,c={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){return this.config=s.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,n,e,t)}},n="rate",u="layui-icon-rate",d="layui-icon-rate-solid",a="layui-icon-rate-half",h="layui-icon-rate-solid layui-icon-rate-half",p="layui-icon-rate layui-icon-rate-half";t.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},t.prototype.render=function(){var e=this.config,t=s(e.elem);if(1<t.length)return layui.each(t,function(){c.render(s.extend({},e,{elem:this}))}),this;s.extend(e,l.options(t[0]));for(var n=e.theme?'style="color: '+e.theme+';"':"",i=(e.elem=s(e.elem),e.value>e.length&&(e.value=e.length),parseInt(e.value)===e.value||e.half||(e.value=Math.ceil(e.value)-e.value<.5?Math.ceil(e.value):Math.floor(e.value)),'<ul class="layui-rate" '+(e.readonly?"readonly":"")+">"),o=1;o<=e.length;o++){var r='<li class="layui-inline"><i class="layui-icon '+(o>Math.floor(e.value)?u:d)+'" '+n+"></i></li>";e.half&&parseInt(e.value)!==e.value&&o==Math.ceil(e.value)?i=i+'<li><i class="layui-icon layui-icon-rate-half" '+n+"></i></li>":i+=r}i+="</ul>"+(e.text?'<span class="layui-inline">'+e.value+"星":"")+"</span>";var a=(t=e.elem).next(".layui-rate");a[0]&&a.remove(),this.elemTemp=s(i),e.span=this.elemTemp.next("span"),e.setText&&e.setText(e.value),t.html(this.elemTemp),t.addClass("layui-inline"),e.readonly||this.action()},t.prototype.setvalue=function(e){this.config.value=e,this.render()},t.prototype.action=function(){var r=this.config,i=this.elemTemp,o=i.find("i").width(),n=i.children("li");n.each(function(e){var t=e+1,n=s(this);n.on("click",function(e){r.value=t,r.half&&e.pageX-s(this).offset().left<=o/2&&(r.value=r.value-.5),r.text&&i.next("span").text(r.value+"星"),r.choose&&r.choose(r.value),r.setText&&r.setText(r.value)}),n.on("mousemove",function(e){i.find("i").each(function(){s(this).addClass(u).removeClass(h)}),i.find("i:lt("+t+")").each(function(){s(this).addClass(d).removeClass(p)}),r.half&&e.pageX-s(this).offset().left<=o/2&&n.children("i").addClass(a).removeClass(d)}),n.on("mouseleave",function(){i.find("i").each(function(){s(this).addClass(u).removeClass(h)}),i.find("i:lt("+Math.floor(r.value)+")").each(function(){s(this).addClass(d).removeClass(p)}),r.half&&parseInt(r.value)!==r.value&&i.children("li:eq("+Math.floor(r.value)+")").children("i").addClass(a).removeClass("layui-icon-rate-solid layui-icon-rate")})}),l.touchSwipe(i,{onTouchMove:function(e,t){var o;Date.now()-t.timeStart<=200||(t=e.touches[0].pageX,e=i.width()/r.length,t=(t-i.offset().left)/e,(o=(o=(e=t%1)<=.5&&r.half?t-e+.5:Math.ceil(t))>r.length?r.length:o)<0&&(o=0),n.each(function(e){var t=s(this).children("i"),n=Math.ceil(o)-e==1,i=Math.ceil(o)>e,e=o-e==.5;i?(t.addClass(d).removeClass(p),r.half&&e&&t.addClass(a).removeClass(d)):t.addClass(u).removeClass(h),t.toggleClass("layui-rate-hover",n)}),r.value=o,r.text&&i.next("span").text(r.value+"星"),r.setText&&r.setText(r.value))},onTouchEnd:function(e,t){Date.now()-t.timeStart<=200||(i.find("i").removeClass("layui-rate-hover"),r.choose&&r.choose(r.value),r.setText&&r.setText(r.value))}})},t.prototype.events=function(){},c.render=function(e){return e=new t(e),function(){var t=this;return{setvalue:function(e){t.setvalue.call(t,e)},config:t.config}}.call(e)},e(n,c)}),layui.define("jquery",function(e){function t(e){}
2var y=layui.$;t.prototype.load=function(e){var o,r,a,t,s,l,n,c,u,d,h,p,i,f,g=0,m=y((e=e||{}).elem);if(m[0])return s=y(e.scrollElem||document),l="mb"in e?e.mb:50,n=!("isAuto"in e)||e.isAuto,c=e.end||"没有更多了",u="top"===(e.direction||"bottom"),d=e.scrollElem&&e.scrollElem!==document,p=y('<div class="layui-flow-more"><a href="javascript:;">'+(h="<cite>加载更多</cite>")+"</a></div>"),m.find(".layui-flow-more")[0]||m[u?"prepend":"append"](p),i=function(e,t){var n=d?s.prop("scrollHeight"):document.documentElement.scrollHeight,i=s.scrollTop();e=y(e),p[u?"after":"before"](e),(t=0==t||null)?p.html(c):p.find("a").html(h),r=t,o=null,a&&a(),u&&(e=d?s.prop("scrollHeight"):document.documentElement.scrollHeight,1===g?s.scrollTop(e):1<g&&s.scrollTop(i+(e-n)))},(f=function(){o=!0,p.find("a").html('<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>'),"function"==typeof e.done&&e.done(++g,i)})(),p.find("a").on("click",function(){y(this),r||o||f()}),e.isLazyimg&&(a=this.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem,direction:e.direction})),n&&s.on("scroll",function(){var n=y(this),i=n.scrollTop();t&&clearTimeout(t),!r&&m.width()&&(t=setTimeout(function(){var e=(d?n:y(window)).height(),t=d?n.prop("scrollHeight"):document.documentElement.scrollHeight;(u?i<=l:t-i-e<=l)&&!o&&f()},100))}),this},t.prototype.lazyimg=function(e){var t,l=this,c=0,u=y((e=e||{}).scrollElem||document),d=e.elem||"img",r="top"===(e.direction||"bottom"),h=e.scrollElem&&e.scrollElem!==document,p=function(t,e){var n,i=u.scrollTop(),e=i+e,o=h?t.offset().top-u.offset().top+i:t.offset().top;(r?o+t.height():o)>=i&&o<=e&&t.attr("lay-src")&&(n=t.attr("lay-src"),layui.img(n,function(){var e=l.lazyimg.elem.eq(c);t.attr("src",n).removeAttr("lay-src"),e[0]&&a(e),c++},function(){l.lazyimg.elem.eq(c),t.removeAttr("lay-src")}))},a=function(e,t){var n=(h?t||u:y(window)).height(),i=u.scrollTop(),o=i+n;if(l.lazyimg.elem=y(d),e)p(e,n);else for(var r=0;r<l.lazyimg.elem.length;r++){var a=l.lazyimg.elem.eq(r),s=h?a.offset().top-u.offset().top+i:a.offset().top;if(p(a,n),c=r,o<s)break}};return a(),u.on("scroll",function(){var e=y(this);t&&clearTimeout(t),t=setTimeout(function(){a(null,e)},50)}),a},e("flow",new t)}),layui.define(["lay","util","element","form"],function(e){function T(e){return String(e).replace(/\s+$/,"").replace(/^\n|\n$/,"")}var $=layui.$,D=layui.util,L=layui.element,N=layui.form,I=layui.layer,M=(layui.hint(),{ELEM_VIEW:"layui-code-view",ELEM_TAB:"layui-tab",ELEM_HEADER:"layui-code
2-header",ELEM_FULL:"layui-code-full",ELEM_PREVIEW:"layui-code-preview",ELEM_ITEM:"layui-code-item",ELEM_SHOW:"layui-show",ELEM_LINE:"layui-code-line",ELEM_LINE_NUM:"layui-code-line-number",ELEM_LN_MODE:"layui-code-ln-mode",CDDE_DATA_CLASS:"LayuiCodeDataClass",LINE_RAW_WIDTH:45}),R={elem:"",about:"",ln:!0,header:!1,encode:!0,copy:!0,text:{code:D.escape("</>"),preview:"Preview"},wordWrap:!0,lang:"text",highlighter:!1,langMarker:!1},O=layui.code?layui.code.index+1e4:0;e("code",function(i,e){var o,r,t,n,a,s,l,c,u,d,h,p,f,g,m,y,v,b,w,x,A,C,k,_,S={config:i=$.extend(!0,{},R,i),reload:function(e){layui.code(this.updateOptions(e))},updateOptions:function(e){return delete(e=e||{}).elem,$.extend(!0,i,e)},reloadCode:function(e){layui.code(this.updateOptions(e),"reloadCode")}},E=$(i.elem);return 1<E.length?layui.each(i.obverse?E:E.get().reverse(),function(){layui.code($.extend({},i,{elem:this}),e)}):(o=i.elem=$(i.elem))[0]&&($.extend(!0,i,lay.options(o[0]),(r={},layui.each(["title","height","encode","skin","about"],function(e,t){var n=o.attr("lay-"+t);"string"==typeof n&&(r[t]=n)}),r)),i.encode=(i.encode||i.preview)&&!i.codeRender,i.code=i.code||(t=[],o.children("textarea").each(function(){t.push(T(this.value))}),0===t.length&&t.push(T(o.html())),t.join("")),E=function(e){"function"==typeof i.codeRender&&(e=i.codeRender(String(e),i));var t=String(e).split(/\r?\n/g);return{lines:t,html:e=$.map(t,function(e,t){return['<div class="'+M.ELEM_LINE+'">',i.ln?['<div class="'+M.ELEM_LINE_NUM+'">',D.digit(t+1)+".","</div>
2"].join(""):"",'<div class="layui-code-line-content">',e||" ","</div>","</div>"].join("")})}},n=i.code,a=function(e){return"function"==typeof i.codeParse?i.codeParse(e,i):e},"reloadCode"===e?o.children(".layui-code-wrap").html(E(a(n)).html):(s=layui.code.index=++O,o.attr("lay-code-index",s),(x=M.CDDE_DATA_CLASS in o.data())&&o.attr("class",o.data(M.CDDE_DATA_CLASS)||""),x||o.data(M.CDDE_DATA_CLASS,o.attr("class")),l={copy:{className:"file-b",title:["复制代码"],event:function(e){var t=D.unescape(a(i.code));lay.clipboard.writeText({text:t,done:function(){I.msg("已复制",{icon:1})},error:function(){I.msg("复制失败",{icon:2})}}),"function"==typeof i.onCopy&&i.onCopy(t)}}},C=o.parent("."+M.ELEM_PREVIEW),k=C.children("."+M.ELEM_TAB),_=C.children("."+M.ELEM_ITEM+"-preview"),k.remove(),_.remove(),C[0]&&o.unwrap(),i.preview&&(x="LAY-CODE-DF-"+s,g=i.layout||["code","preview"],c="iframe"===i.preview,f=$('<div class="'+M.ELEM_PREVIEW+'">'),A=$('<div class="layui-tab layui-tab-brief">'),u=$('<div class="layui-tab-title">'),w=$('<div class="'+[M.ELEM_ITEM,M.ELEM_ITEM+"-preview","layui-border"].join(" ")+'">
2'),d=$('<div class="layui-code-tools"></div>'),i.id&&f.attr("id",i.id),f.addClass(i.className),A.attr("lay-filter",x),layui.each(g,function(e,t){var n=$('<li lay-id="'+t+'">');0===e&&n.addClass("layui-this"),n.html(i.text[t]),u.append(n)}),$.extend(l,{full:{className:"screen-full",title:["最大化显示","还原显示"],event:function(e){var t=(e=e.elem).closest("."+M.ELEM_PREVIEW),n="layui-icon-"+this.className,i="layui-icon-screen-restore",o=this.title,r=$("html,body"),a="layui-scrollbar-hide";e.hasClass(n)?(t.addClass(M.ELEM_FULL),e.removeClass(n).addClass(i),e.attr("title",o[1]),r.addClass(a)):(t.removeClass(M.ELEM_FULL),e.removeClass(i).addClass(n),e.attr("title",o[0]),r.removeClass(a))}},window:{className:"release",title:["在新窗口预览"],event:function(e){D.openWin({content:a(i.code)})}}}),i.copy&&("array"===layui.type(i.tools)?-1===i.tools.indexOf("copy")&&i.tools.unshift("copy"):i.tools=["copy"]),d.on("click",">i",function(){var e=(t=$(this)).data("type"),t={elem:t,type:e,options:i,rawCode:i.code,finalCode:D.unescape(a(i.code))};l[e]&&"function"==typeof l[e].event&&l[e].event(t),"function"==typeof i.toolsEvent&&i.toolsEvent(t)}),i.addTools&&i.tools&&(i.tools=[].concat(i.tools,i.addTools)),layui.each(i.tools,function(e,t){var n="object"==typeof t,i=n?t:l[t]||{className:t,title:[t]},o=i.className||i.type,r=i.title||[""];(n=n?i.type||o:t)&&(l[n]||((t={})[n]=i,$.extend(l,t)),d.append('<i class="layui-icon layui-icon-'+o+'" data-type="'+n+'" title="'+r[0]+'"></i>'))}),o.addClass(M.ELEM_ITEM).wrap(f),A.append(u),i.tools&&A.append(d),o.before(A),c&&w.html('<iframe allowtransparency="true" frameborder="0"></iframe>'),h=function(e){var t=e.children("iframe")[0];c&&t?t.srcdoc=a(i.code):e.html(i.code),setTimeout(function(){"function"==typeof i.done&&i.done({container:e,options:i,render:function(){N.render(e.find(".layui-form")),L.render()}})},3)},"preview"===g[0]?(w.addClass(M.ELEM_SHOW),o.before(w),h(w)):o.addClass(M.ELEM_SHOW).after(w),i.previewStyle=[i.style,i.previewStyle].join(""),w.attr("style",i.previewStyle),L.on("tab("+x+")",function(e){var t=$(this),n=$(e.elem).closest("."+M.ELEM_PREVIEW).find("."+M.ELEM_ITEM),e=n.eq(e.index);n.removeClass(M.ELEM_SHOW),e.addClass(M.ELEM_SHOW),"preview"===t.attr("lay-id")&&h(e),b()}
vendor: 1,520 bytes, line 2
2)),p=$('<code class="layui-code-wrap"></code>'),o.addClass((f=["layui-code-view layui-border-box"],i.wordWrap||f.push("layui-code-nowrap"),f.join(" "))),(A=i.theme||i.skin)&&(o.removeClass("layui-code-theme-dark layui-code-theme-light"),o.addClass("layui-code-theme-"+A)),i.highlighter&&o.addClass([i.highlighter,"language-"+i.lang,"layui-code-hl"].join(" ")),g=E(i.encode?D.escape(a(n)):n),m=g.lines,o.html(p.html(g.html)),i.ln&&o.append('<div class="layui-code-ln-side"></div>'),i.height&&p.css("max-height",i.height),i.codeStyle=[i.style,i.codeStyle].join(""),i.codeStyle&&p.attr("style",function(e,t){return(t||"")+i.codeStyle}),y=[{selector:">.layui-code-wrap>.layui-code-line{}",setValue:function(e,t){e.style["padding-left"]=t+"px"}},{selector:">.layui-code-wrap>.layui-code-line>.layui-code-line-number{}",setValue:function(e,t){e.style.width=t+"px"}},{selector:">.layui-code-ln-side{}",setValue:function(e,t){e.style.width=t+"px"}}],v=lay.style({target:o[0],id:"DF-code-"+s,text:$.map($.map(y,function(e){return e.selector}),function(e,t){return['.layui-code-view[lay-code-index="'+s+'"]',e].join(" ")}).join("")}),b=function e(){var t,n;return i.ln&&(t=Math.floor(m.length/100),n=p.children("."+M.ELEM_LINE).last().children("."+M.ELEM_LINE_NUM).outerWidth(),o.addClass(M.ELEM_LN_MODE),t)&&M.LINE_RAW_WIDTH<n&&lay.getStyleRules(v,function(e,t){try{y[t].setValue(e,n)}catch(e){}}),e}(),i.header&&((w=$('<div class="'+M.ELEM_HEADER+'"></div>')).html(i.title||i.text.code),o.prepend(w)),x=$('<div class="layui-code
2-fixbar"></div>'),i.copy&&!i.preview&&((A=$(['<span class="layui-code-copy">','<i class="layui-icon layui-icon-file-b" title="复制"></i>',"</span>"].join(""))).on("click",function(){l.copy.event()}),x.append(A)),i.langMarker&&x.append('<span class="layui-code-lang-marker">'+i.lang+"</span>"),i.about&&x.append(i.about),o.append(x),i.preview||setTimeout(function(){"function"==typeof i.done&&i.done({})},3),i.elem.length===1+s&&"function"==typeof i.allDone&&i.allDone())),S})}),layui["layui.all"]||layui.addcss("modules/code.css?v=6","skincodecss"),(r=>{var t={initTree:function(e){var t=r.extend({},this.treegrid.defaults,e);return this.each(function(){var e=r(this);e.treegrid("setTreeContainer",r(this)),e.treegrid("setSettings",t),t.getRootNodes.apply(this,[r(this)]).treegrid("initNode",t),e.treegrid("getRootNodes").treegrid("render")})},initNode:function(t){return this.each(function(){var e=r(this);e.treegrid("setTreeContainer",t.getTreeGridContainer.apply(this)),e.treegrid("getChildNodes").treegrid("initNode",t),e.treegrid("initExpander").treegrid("initIndent").treegrid("initEvents").treegrid("initState").treegrid("initChangeEvent").treegrid("initSettingsEvents")})},initChangeEvent:function(){var e=r(this);return e.on("change",function(){var e=r(this);e.treegrid("render"),e.treegrid("getSetting","saveState")&&e.treegrid("saveState")}),e},initEvents:function(){var e=r(this),t=e.treegrid("getSetting","getExpander").apply(this);return e.on("collapse",function(){var e=r(this);e.removeClass("treegrid-expanded"),e.addClass("treegrid-collapsed"),t.html(util.icon("fa-duotone fa-regular fa-chevrons-down me-1"))}),e.on("expand",function(){var e=r(this);e.removeClass("treegrid-collapsed"),e.addClass("treegrid-expanded"),t.html(util.icon("fa-duotone fa-regular fa-chevrons-up me-1"))}),e},initSettingsEvents:function(){var e=r(this);return e.on("change",function(){var e=r(this);"function"==typeof e.treegrid("getSetting","onChange")&&e.treegrid("getSetting","onChange").apply(e)}),e.on("collapse",function(){var e=r(this);"function"==typeof e.treegrid("getSetting","onCollapse")&&e.treegrid("getSetting","onCollapse").apply(e)}),e.on("expand",function(){var e=r(this);"function"==typeof e.treegrid("getSetting","onExpand")&&e.treegrid("getSetting","onExpand").apply(e)}),e},initExpander:function(){var e=r(this),t=e.find("td").get(e.treegrid("getSetting","treeColumn")),n=e.treegrid("getSetting","expanderTemplate"),i=e.treegrid("getSetting","getExpander").apply(this);return i&&i.remove(),r(n).prependTo(t).click(function(){r(r(this).closest("tr")).treegrid("toggle")}),e},initIndent:function(){for(var e=r(this),t=(e.find(".treegrid-indent").remove(),e.treegrid("getSetting","indentTemplate")),n=e.find(".treegrid-expander"),i=e.treegrid("getDepth"),o=0;o<i;o++)r(t).insertBefore(n);return e},initState:function(){var e=r(this);return e.treegrid("getSetting","saveState")&&!e.treegrid("isFirstInit")?e.treegrid("restoreState"):"expanded"===e.treegrid("getSetting","initialState")?e.treegrid("expand"):e.treegrid("collapse"),e},isFirstInit:function(){var e=r(this).treegrid("getTreeContainer");return void 0===e.data("first_init")&&e.data("first_init",void 0===r.cookie(e.treegrid("getSetting","saveStateName"))),e.data("first_init")},saveState:function(){var e,t,n=r(this);return"cookie"===n.treegrid("getSetting","saveStateMethod")&&(e=""===(e=r.cookie(n.treegrid("getSetting","saveStateName"))||"")?[]:e.split(","),t=n.treegrid("getNodeId"),n.treegrid("isExpanded")?-1===r.inArray(t,e)&&e.push(t):n.treegrid("isCollapsed")&&-1!==r.inArray(t,e)&&e.splice(r.inArray(t,e),1),r.cookie(n.treegrid("getSetting","saveStateName"),e.join(","))),n},restoreState:function(){var e,t=r(this);return"cookie"===t.treegrid("getSetting","saveStateMethod")&&(e=r.cookie(t.treegrid("getSetting","saveStateName")).split(","),-1!==r.inArray(t.treegrid("getNodeId"),e)?t.treegrid("expand"):t.treegrid("collapse")),t},getSetting:function(e){return r(this).treegrid("getTreeContainer")?r(this).treegrid("getTreeContainer").data("settings")[e]:null},setSettings:function(e){r(this).treegrid("getTreeContainer").data("settings",e)},getTreeContainer:function(){return r(this).data("treegrid")},setTreeContainer:function(e){return r(this).data("treegrid",e)},getRootNodes:function(){return r(this).treegrid("getSetting","getRootNodes").apply(this,[r(this).treegrid("getTreeContainer")])},getAllNodes:function(){return r(this).treegrid("getSetting","getAllNodes").apply(this,[r(this).treegrid("getTreeContainer")])},isNode:function(){return null!==r(this).treegrid("getNodeId")},getNodeId:function(){return null===r(this).treegrid("getSetting","getNodeId")?null:r(this).treegrid("getSetting","getNodeId").apply(this)},getParentNodeId:function(){return r(this).treegrid("getSetting","getParentNodeId").apply(this)},getParentNode:function(){return null===r(this).treegrid("getParentNodeId")?null:r(this).treegrid("getSetting","getNodeById").apply(this,[r(this).treegrid("getParentNodeId"),r(this).treegrid("getTreeContainer")])},getChildNodes:function(){return r(this).treegrid("getSetting","getChildNodes").apply(this,[r(this).treegrid("getNodeId"),r(this).treegrid("getTreeContainer")])},getDepth:function(){return null===r(this).treegrid("getParentNode")?0:r(this).treegrid("getParentNode").treegrid("getDepth")+1}
2,isRoot:function(){return 0===r(this).treegrid("getDepth")},isLeaf:function(){return 0===r(this).treegrid("getChildNodes").length},isLast:function(){if(r(this).treegrid("isNode")){var e=r(this).treegrid("getParentNode");if(null===e){if(r(this).treegrid("getNodeId")===r(this).treegrid("getRootNodes").last().treegrid("getNodeId"))return!0}else if(r(this).treegrid("getNodeId")===e.treegrid("getChildNodes").last().treegrid("getNodeId"))return!0}return!1},isFirst:function(){if(r(this).treegrid("isNode")){var e=r(this).treegrid("getParentNode");if(null===e){if(r(this).treegrid("getNodeId")===r(this).treegrid("getRootNodes").first().treegrid("getNodeId"))return!0}else if(r(this).treegrid("getNodeId")===e.treegrid("getChildNodes").first().treegrid("getNodeId"))return!0}return!1},isExpanded:function(){return r(this).hasClass("treegrid-expanded")},isCollapsed:function(){return r(this).hasClass("treegrid-collapsed")},isOneOfParentsCollapsed:function(){var e=r(this);return!e.treegrid("isRoot")&&(!!e.treegrid("getParentNode").treegrid("isCollapsed")||e.treegrid("getParentNode").treegrid("isOneOfParentsCollapsed"))},expand:function(){return this.treegrid("isLeaf")||this.treegrid("isExpanded")||(this.trigger("expand"),this.trigger("change")),this},expandAll:function(){var e=r(this);return e.treegrid("getRootNodes").treegrid("expandRecursive"),e},expandRecursive:function(){return r(this).each(function(){var e=r(this);e.treegrid("expand"),e.treegrid("isLeaf")||e.treegrid("getChildNodes").treegrid("expandRecursive")})},collapse:function(){return r(this).each(function(){var e=r(this);e.treegrid("isLeaf")||e.treegrid("isCollapsed")||(e.trigger("collapse"),e.trigger("change"))})},collapseAll:function(){var e=r(this);return e.treegrid("getRootNodes").treegrid("collapseRecursive"),e},collapseRecursive:function(){return r(this).each(function(){var e=r(this);e.treegrid("collapse"),e.treegrid("isLeaf")||e.treegrid("getChildNodes").treegrid("collapseRecursive")})},toggle:function(){var e=r(this);return e.treegrid("isExpanded")?e.treegrid("collapse"):e.treegrid("expand"),e},render:function(){return r(this).each(function(){var e=r(this);e.treegrid("isOneOfParentsCollapsed")?e.hide():e.show(),e.treegrid("isLeaf")||(e.treegrid("renderExpander"),e.treegrid("getChildNodes").treegrid("render"))})},renderExpander:function(){return r(this).each(function(){var e=r(this),t=e.treegrid("getSetting","getExpander").apply(this);t?e.treegrid("isCollapsed")?(t.removeClass(e.treegrid("getSetting","expanderExpandedClass")),t.addClass(e.treegrid("getSetting","expanderCollapsedClass")),t.html(util.icon("fa-duotone fa-regular fa-chevrons-up me-1"))):(t.removeClass(e.treegrid("getSetting","expanderCollapsedClass")),t.addClass(e.treegrid("getSetting","expanderExpandedClass")),t.html(util.icon("fa-duotone fa-regular fa-chevrons-down me-1"))):(e.treegrid("initExpander"),e.treegrid("renderExpander"))})}};r.fn.treegrid=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void r.error("Method with name "+e+" does not exists for jQuery.treegrid"):t.initTree.apply(this,arguments)},r.fn.treegrid.defaults={initialState:"expanded",saveState:!1,saveStateMethod:"cookie",saveStateName:"tree-grid-state",expanderTemplate:'<span class="treegrid-expander"></span>',indentTemplate:'<span class="treegrid-indent"></span>',expanderExpandedClass:"treegrid-expander-expanded",expanderCollapsedClass:"treegrid-expander-collapsed",treeColumn:0,getExpander:function(){return r(this).find(".treegrid-expander")},getNodeId:function(){var e=/treegrid-([A-Za-z0-9_-]+)/;return e.test(r(this).attr("class"))?e.exec(r(this).attr("class"))[1]:null},getParentNodeId:function(){var e=/treegrid-parent-([A-Za-z0-9_-]+)/;return e.test(r(this).attr("class"))?e.exec(r(this).attr("class"))[1]:null},getNodeById:function(e,t){return t.find("tr."+("treegrid-"+e))},getChildNodes:function(e,t){return t.find("tr."+("treegrid-parent-"+e))},getTreeGridContainer:function(){return r(this).closest("table")},getRootNodes:function(e){e=r.grep(e.find("tr"),function(e){e=r(e).attr("class");return/treegrid-([A-Za-z0-9_-]+)/.test(e)&&!/treegrid-parent-([A-Za-z0-9_-]+)/.test(e)});return r(e)},getAllNodes:function(e){e=r.grep(e.find("tr"),function(e){e=r(e).attr("class");return/treegrid-([A-Za-z0-9_-]+)/.test(e)});return r(e)},onCollapse:null,onExpand:null,onChange:null}})(jQuery),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()})(this,function(){let i=new Map,O={set(e,t,n){i.has(e)||i.set(e,new Map);e=i.get(e);e.has(t)||0===e.size?e.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(e.keys())[0]}.`)},get:(e,t)=>i.has(e)&&i.get(e).get(t)||null,remove(e,t){var n;i.has(e)&&((n=i.get(e)).delete(t),0===n.size)&&i.delete(e)}},P="transitionend",B=e=>e=e&&window.CSS&&window.CSS.escape?e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t)):e,j=e=>{e.dispatchEvent(new Event(P))},a=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,o=e=>a(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(B(e)):null,r=t=>
2{if(!a(t)||0===t.getClientRects().length)return!1;let e="visible"===getComputedStyle(t).getPropertyValue("visibility"),n=t.closest("details:not([open])");if(n&&n!==t){let e=t.closest("summary");if(e&&e.parentNode!==n)return!1;if(null===e)return!1}return e},s=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),H=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?H(e.parentNode):null:null},F=()=>{},z=e=>{e.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,U=[],l=()=>"rtl"===document.documentElement.dir,e=i=>{var e=()=>{let n=W();if(n){let e=i.NAME,t=n.fn[e];n.fn[e]=i.jQueryInterface,n.fn[e].Constructor=i,n.fn[e].noConflict=()=>(n.fn[e]=t,i.jQueryInterface)}};"loading"===document.readyState?(U.length||document.addEventListener("DOMContentLoaded",()=>{for(var e of U)e()}),U.push(e)):e()},c=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,q=(i,o,e=!0)=>{if(e){e=(()=>{if(!o)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(o);var n=Number.parseFloat(e),i=Number.parseFloat(t);return n||i?(e=e.split(",")[0],t=t.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(t))):0})()+5;let t=!1,n=({target:e})=>{e===o&&(t=!0,o.removeEventListener(P,n),c(i))};o.addEventListener(P,n),setTimeout(()=>{t||j(o)},e)}else c(i)},V=(e,t,n,i)=>{var o=e.length;let r=e.indexOf(t);return-1===r?!n&&i?e[o-1]:e[0]:(r+=n?1:-1,i&&(r=(r+o)%o),e[Math.max(0,Math.min(r,o-1))])},Y=/[^.]*(?=\..*)\.|.*/,K=/\..*/,G=/::\d+$/,Q={}
2,X=1,J={mouseenter:"mouseover",mouseleave:"mouseout"},Z=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ee(e,t){return t&&t+"::"+X++||e.uidEvent||X++}function te(e){var t=ee(e);return e.uidEvent=t,Q[t]=Q[t]||{},Q[t]}function ne(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function ie(e,t,n){var i="string"==typeof t,t=!i&&t||n;let o=ae(e);return[i,t,o=Z.has(o)?o:e]}function oe(i,o,r,a,s){if("string"==typeof o&&i){let[e,t,n]=ie(o,r,a);if(o in J){let e=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};t=e(t)}var a=te(i),a=a[n]||(a[n]={}),l=ne(a,t,e?r:null);if(l)return l.oneOff=l.oneOff&&s;var c,u,d,h,p,l=ee(t,o.replace(Y,"")),o=e?(d=i,h=r,p=t,function t(n){var i=d.querySelectorAll(h);for(let e=n.target;e&&e!==this;e=e.parentNode)for(var o of i)if(o===e)return se(n,{delegateTarget:e}),t.oneOff&&f.off(d,n.type,h,p),p.apply(e,[n])}):(c=i,u=t,function e(t){return se(t,{delegateTarget:c}),e.oneOff&&f.off(c,t.type,u),u.apply(c,[t])});o.delegationSelector=e?r:null,o.callable=t,o.oneOff=s,a[o.uidEvent=l]=o,i.addEventListener(n,o,e)}}function re(e,t,n,i,o){i=ne(t[n],i,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function ae(e){return e=e.replace(K,""),J[e]||e}let f={on(e,t,n,i){oe(e,t,n,i,!1)},one(e,t,n,i){oe(e,t,n,i,!0)},off(s,l,c,u){if("string"==typeof l&&s){let[e,t,i]=ie(l,c,u),o=i!==l,r=te(s),a=r[i]||{},n=l.startsWith(".");if(void 0===t){if(n)for(let e of Object.keys(r)){d=void 0;h=void 0;p=void 0;f=void 0;y=void 0;g=void 0;m=void 0;var d=s;var h=r;var p=e;var f=l.slice(1);var g,m,y=h[p]||{};for([g,m]of Object.entries(y))g.includes(f)&&re(d,h,p,m.callable,m.delegationSelector)}for(let[t,n]of Object.entries(a)){let e=t.replace(G,"");o&&!l.includes(e)||re(s,r,i,n.callable,n.delegationSelector)}}else Object.keys(a).length&&re(s,r,i,t,e?c:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;var i=W();let o=null,r=!0,a=!0,s=!1;t!==ae(t)&&i&&(o=i.Event(t,n),i(e).trigger(o),r=!o.isPropagationStopped(),a=!o.isImmediatePropagationStopped(),s=o.isDefaultPrevented());i=se(new Event(t,{bubbles:r,cancelable:!0}),n);return s&&i.preventDefault(),a&&e.dispatchEvent(i),i.defaultPrevented&&o&&o.preventDefault(),i}};function se(n,i={}){for(let[e,t]of Object.entries(i))try{n[e]=t}catch(i){Object.defineProperty(n,e,{configurable:!0,get:()=>t})}return n}function le(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ce(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}let u={setDataAttribute(e,t,n){e.setAttribute("data-bs-"+ce(t),n)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+ce(t))},getDataAttributes(t){if(!t)return{};var n,i={};for(n of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=n.replace(/^bs/,"");i[e=e.charAt(0).toLowerCase()+e.slice(1)]=le(t.dataset[n])}return i},getDataAttribute:(e,t)=>le(e.getAttribute("data-bs-"+ce(t)))};class ue{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){var n=a(t)?u.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...a(t)?u.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(n,e=this.constructor.DefaultType){for(var[i,o]of Object.entries(e)){let e=n[i],t=a(e)?"element":null==(r=e)?""+r:Object.prototype.toString.call(r).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(t))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${t}" but expected type "${o}".`)}var r}}class t extends ue{constructor(e,t){super(),(e=o(e))&&(this._element=e,this._config=this._getConfig(t),O.set(this._element,this.constructor.DATA_KEY,this))}dispose(){O.remove(this._element,this.constructor.DATA_KEY),f.off(this._element,this.constructor.EVENT_KEY);for(var e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){q(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return O.get(o(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.7"}static get DATA_KEY(){return"bs."+this.NAME}static get EVENT_KEY(){return"."+this.DATA_KEY}static eventName(e){return""+e+this.EVENT_KEY}}let de=t=>{let n=t.getAttribute("data-bs-target");if(!n||"#"===n){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),n=e&&"#"!==e?e.trim():null}return n?n.split(",").map(e=>B(e)).join(","):null}
2,d={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){var n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!s(e)&&r(e))},getSelectorFromElement(e){e=de(e);return e&&d.findOne(e)?e:null},getElementFromSelector(e){e=de(e);return e?d.findOne(e):null},getMultipleElementsFromSelector(e){e=de(e);return e?d.find(e):[]}},he=(t,n="hide")=>{let e="click.dismiss"+t.EVENT_KEY,i=t.NAME;f.on(document,e,`[data-bs-dismiss="${i}"]`,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),s(this)||(e=d.getElementFromSelector(this)||this.closest("."+i),t.getOrCreateInstance(e)[n]())})};class pe extends t{static get NAME(){return"alert"}close(){var e;f.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),f.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=pe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}he(pe,"close"),e(pe);let fe='[data-bs-toggle="button"]';class ge extends t{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=ge.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}f.on(document,"click.bs.button.data-api",fe,e=>{e.preventDefault();e=e.target.closest(fe);ge.getOrCreateInstance(e).toggle()}),e(ge);let n=".bs.swipe",me=(n,n,n,n,n,{endCallback:null,leftCallback:null,rightCallback:null}),ye={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ve extends ue{constructor(e,t){super(),(this._element=e)&&ve.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return me}static get DefaultType(){return ye}static get NAME(){return"swipe"}dispose(){f.off(this._element,n)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),c(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){var e=Math.abs(this._deltaX);e<=40||(e=e/this._deltaX,this._deltaX=0,e&&c(0<e?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(f.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),f.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(f.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),f.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),f.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}let be=".bs.carousel",we="next",h="prev",p="left",xe="right",Ae="slid"+be,Ce="active",ke=".carousel-item",_e=(ke,{ArrowLeft:xe,ArrowRight:p}),Se={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ee={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Te extends t{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=d.findOne(".carousel-indicators",this._element),this._addEventListeners(),"carousel"===this._config.ride&&this.cycle()}static get Default(){return Se}static get DefaultType(){return Ee}static get NAME(){return"carousel"}next(){this._slide(we)}nextWhenVisible(){!document.hidden&&r(this._element)&&this.next()}prev(){this._slide(h)}pause(){this._isSliding&&j(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?f.one(this._element,Ae,()=>this.cycle()):this.cycle())}to(e){var t,n=this._getItems();e>n.length-1||e<0||(this._isSliding?f.one(this._element,Ae,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=t<e?we:h,this._slide(t,n[e])))}
2dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&f.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(f.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),f.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&ve.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of d.find(".carousel-item img",this._element))f.on(e,"dragstart.bs.carousel",e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(p)),rightCallback:()=>this._slide(this._directionToOrder(xe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ve(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=_e[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){var t;this._indicatorsElement&&((t=d.findOne(".active",this._indicatorsElement)).classList.remove(Ce),t.removeAttribute("aria-current"),t=d.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement))&&(t.classList.add(Ce),t.setAttribute("aria-current","true"))}_updateInterval(){var e=this._activeElement||this._getActive();e&&(e=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=e||this._config.defaultInterval)}_slide(t,s=null){if(!this._isSliding){let o=this._getActive(),r=t===we,a=s||V(this._getItems(),o,r,this._config.wrap);if(a!==o){let n=this._getItemIndex(a),i=e=>f.trigger(this._element,e,{relatedTarget:a,direction:this._orderToDirection(t),from:this._getItemIndex(o),to:n});if(!i("slide.bs.carousel").defaultPrevented&&o&&a){s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(n),this._activeElement=a;let e=r?"carousel-item-start":"carousel-item-end",t=r?"carousel-item-next":"carousel-item-prev";a.classList.add(t),z(a),o.classList.add(e),a.classList.add(e),this._queueCallback(()=>{a.classList.remove(e,t),a.classList.add(Ce),o.classList.remove(Ce,t,e),this._isSliding=!1,i(Ae)},o,this._isAnimated()),s&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return d.findOne(".active.carousel-item",this._element)}_getItems(){return d.find(ke,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return l()?e===p?h:we:e===p?we:h}_orderToDirection(e){return l()?e===h?p:xe:e===h?xe:p}static jQueryInterface(t){return this.each(function(){var e=Te.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}f.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){var t=d.getElementFromSelector(this);t&&t.classList.contains("carousel")&&(e.preventDefault(),e=Te.getOrCreateInstance(t),(t=this.getAttribute("data-bs-slide-to"))?e.to(t):"next"===u.getDataAttribute(this,"slide")?e.next():e.prev(),e._maybeEnableCycle())}),f.on(window,"load.bs.carousel.data-api",()=>{var e;for(e of d.find('[data-bs-ride="carousel"]'))Te.getOrCreateInstance(e)}),e(Te);let g="collapse",$e="collapsing",De=(g,g,'[data-bs-toggle="collapse"]'),Le={parent:null,toggle:!0},Ne={parent:"(null|element)",toggle:"boolean"};class Ie extends t{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let i=d.find(De);for(let n of i){let e=d.getSelectorFromElement(n),t=d.find(e).filter(e=>e===this._element);null!==e&&t.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Le}static get DefaultType(){return Ne}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let t=[];if(!((t=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>Ie.getOrCreateInstance(e,{toggle:!1})):t).length&&t[0]._isTransitioning||f.trigger(this._element,"show.bs.collapse").defaultPrevented)){for(let e of t)e.hide();let e=this._getDimension();this._element.classList.remove(g),this._element.classList.add($e),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;var n="scroll"+(e[0].toUpperCase()+e.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove($e),this._element.classList.add(g,"show"),this._element.style[e]="",f.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[e]=this._element[n]+"px"}}}
2hide(){if(!this._isTransitioning&&this._isShown()&&!f.trigger(this._element,"hide.bs.collapse").defaultPrevented){let e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",z(this._element),this._element.classList.add($e),this._element.classList.remove(g,"show");for(let e of this._triggerArray){var t=d.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove($e),this._element.classList.add(g),f.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}_isShown(e=this._element){return e.classList.contains("show")}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=o(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent){let e=this._getFirstLevelChildren(De);for(var t of e){let e=d.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}}_getFirstLevelChildren(e){let t=d.find(":scope .collapse .collapse",this._config.parent);return d.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(var n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(t){let n={};return"string"==typeof t&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){var e=Ie.getOrCreateInstance(this,n);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.collapse.data-api",De,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(let e of d.getMultipleElementsFromSelector(this))Ie.getOrCreateInstance(e,{toggle:!1}).toggle()}),e(Ie);var E="top",T="bottom",$="right",D="left",Me="auto",L=[E,T,$,D],N="start",b="end",Re="clippingParents",Oe="viewport",m="popper",Pe="reference",Be=L.reduce(function(e,t){return e.concat([t+"-"+N,t+"-"+b])},[]),je=[].concat(L,[Me]).reduce(function(e,t){return e.concat([t,t+"-"+N,t+"-"+b])},[]),He="beforeRead",Fe="beforeMain",ze="beforeWrite",We="afterWrite",Ue=[He,"read","afterRead",Fe,"main","afterMain",ze,"write",We];function y(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function v(e){return e instanceof w(e).Element||e instanceof Element}function x(e){return e instanceof w(e).HTMLElement||e instanceof HTMLElement}function qe(e){return"undefined"!=typeof ShadowRoot&&(e instanceof w(e).ShadowRoot||e instanceof ShadowRoot)}var Ve={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var o=e.state;Object.keys(o.elements).forEach(function(e){var t=o.styles[e]||{},n=o.attributes[e]||{},i=o.elements[e];x(i)&&y(i)&&(Object.assign(i.style,t),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var i=e.state,o={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,o.popper),i.styles=o,i.elements.arrow&&Object.assign(i.elements.arrow.style,o.arrow),function(){Object.keys(i.elements).forEach(function(e){var t=i.elements[e],n=i.attributes[e]||{},e=Object.keys((i.styles.hasOwnProperty(e)?i.styles:o)[e]).reduce(function(e,t){return e[t]="",e},{});x(t)&&y(t)&&(Object.assign(t.style,e),Object.keys(n).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]};function I(e){return e.split("-")[0]}var S=Math.max,Ye=Math.min,Ke=Math.round;function Ge(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Qe(){return!/^((?!chrome|android).)*safari/i.test(Ge())}function Xe(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),o=1,r=1,t=(t&&x(e)&&(o=0<e.offsetWidth&&Ke(i.width)/e.offsetWidth||1,r=0<e.offsetHeight&&Ke(i.height)/e.offsetHeight||1),(v(e)?w(e):window).visualVie
2wport),e=!Qe()&&n,n=(i.left+(e&&t?t.offsetLeft:0))/o,e=(i.top+(e&&t?t.offsetTop:0))/r,t=i.width/o,o=i.height/r;return{width:t,height:o,top:e,right:n+t,bottom:e+o,left:n,x:n,y:e}}function Je(e){var t=Xe(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ze(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&qe(n)){var i=t;do{if(i&&e.isSameNode(i))return!0}while(i=i.parentNode||i.host)}return!1}function A(e){return w(e).getComputedStyle(e)}function C(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function et(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(qe(e)?e.host:null)||C(e)}function tt(e){return x(e)&&"fixed"!==A(e).position?e.offsetParent:null}function nt(e){for(var t,n=w(e),i=tt(e);i&&(t=i,0<=["table","td","th"].indexOf(y(t)))&&"static"===A(i).position;)i=tt(i);return(!i||"html"!==y(i)&&("body"!==y(i)||"static"!==A(i).position))&&(i||(e=>{var t=/firefox/i.test(Ge());if(!/Trident/i.test(Ge())||!x(e)||"fixed"!==A(e).position){var n=et(e);for(qe(n)&&(n=n.host);x(n)&&["html","body"].indexOf(y(n))<0;){var i=A(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}}return null})(e))||n}function it(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function ot(e,t,n){return S(e,Ye(t,n))}function rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function at(n,e){return e.reduce(function(e,t){return e[t]=n,e},{})}var st={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,i,o,r=e.state,a=e.name,e=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=I(r.placement),u=it(c),c=0<=[D,$].indexOf(c)?"height":"width";s&&l&&(e=rt("number"!=typeof(e="function"==typeof(e=e.padding)?e(Object.assign({},r.rects,{placement:r.placement})):e)?e:at(e,L)),t=Je(s),o="y"===u?E:D,i="y"===u?T:$,n=r.rects.reference[c]+r.rects.reference[u]-l[u]-r.rects.popper[c],l=l[u]-r.rects.reference[u],s=(s=nt(s))?"y"===u?s.clientHeight||0:s.clientWidth||0:0,o=e[o],e=s-t[c]-e[i],o=ot(o,i=s/2-t[c]/2+(n/2-l/2),e),r.modifiersData[a]=((s={})[u]=o,s.centerOffset=o-i,s))},effect:function(e){var t=e.state,e=e.options.element,e=void 0===e?"[data-popper-arrow]":e;null!=e&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Ze(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lt(e){return e.split("-")[1]}var ct={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ut(e){var t=e.popper,n=e.popperRect,i=e.placement,o=e.variation,r=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,e=e.isFixed,u=r.x,u=void 0===u?0:u,d=r.y,d=void 0===d?0:d,h="function"==typeof c?c({x:u,y:d}):{x:u,y:d},u=h.x,d=h.y,h=r.hasOwnProperty("x"),r=r.hasOwnProperty("y"),p=D,f=E,g=window;l&&(y="clientHeight",m="clientWidth",(v=nt(t))===w(t)&&"static"!==A(v=C(t)).position&&"absolute"===a&&(y="scrollHeight",m="scrollWidth"),i!==E&&(i!==D&&i!==$||o!==b)||(f=T,d=(d-((e&&v===g&&g.visualViewport?g.visualViewport.height:v[y])-n.height))*(s?1:-1)),i!==D&&(i!==E&&i!==T||o!==b)||(p=$,u=(u-((e&&v===g&&g.visualViewport?g.visualViewport.width:v[m])-n.width))*(s?1:-1)));var m,y=Object.assign({position:a},l&&ct),v=!0===c?(i={x:u,y:d},o=w(t),e=i.y,o=o.devicePixelRatio||1,{x:Ke(i.x*o)/o||0,y:Ke(e*o)/o||0}):{x:u,y:d};return u=v.x,d=v.y,s?Object.assign({},y,((m={})[f]=r?"0":"",m[p]=h?"0":"",m.transform=(g.devicePixelRatio||1)<=1?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",m)):Object.assign({},y,((n={})[f]=r?d+"px":"",n[p]=h?u+"px":"",n.transform="",n))}var dt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,n=e.gpuAcceleration,n=void 0===n||n,i=e.adaptive,i=void 0===i||i,e=e.roundOffsets,e=void 0===e||e,n={placement:I(t.placement),variation:lt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},n,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},n,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ht={passive:!0},pt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,e=e.options,i=e.scroll,o=void 0===i||i,i=e.resize,r=void 0===i||i,a=w(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);
2return o&&s.forEach(function(e){e.addEventListener("scroll",n.update,ht)}),r&&a.addEventListener("resize",n.update,ht),function(){o&&s.forEach(function(e){e.removeEventListener("scroll",n.update,ht)}),r&&a.removeEventListener("resize",n.update,ht)}},data:{}},ft={left:"right",right:"left",bottom:"top",top:"bottom"};function gt(e){return e.replace(/left|right|bottom|top/g,function(e){return ft[e]})}var mt={start:"end",end:"start"};function yt(e){return e.replace(/start|end/g,function(e){return mt[e]})}function vt(e){e=w(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bt(e){return Xe(C(e)).left+vt(e).scrollLeft}function wt(e){var e=A(e),t=e.overflow;return/auto|scroll|overlay|hidden/.test(t+e.overflowY+e.overflowX)}function xt(e,t){void 0===t&&(t=[]);var n=function e(t){return 0<=["html","body","#document"].indexOf(y(t))?t.ownerDocument.body:x(t)&&wt(t)?t:e(et(t))}(e),e=n===(null==(e=e.ownerDocument)?void 0:e.body),i=w(n),i=e?[i].concat(i.visualViewport||[],wt(n)?n:[]):n,n=t.concat(i);return e?n:n.concat(xt(et(i)))}function At(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ct(e,t,n){return t===Oe?At((o=n,a=w(i=e),s=C(i),a=a.visualViewport,l=s.clientWidth,s=s.clientHeight,u=c=0,a&&(l=a.width,s=a.height,(r=Qe())||!r&&"fixed"===o)&&(c=a.offsetLeft,u=a.offsetTop),{width:l,height:s,x:c+bt(i),y:u})):v(t)?((o=Xe(r=t,!1,"fixed"===n)).top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o):At((a=C(e),l=C(a),s=vt(a),c=null==(c=a.ownerDocument)?void 0:c.body,i=S(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),u=S(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),a=-s.scrollLeft+bt(a),s=-s.scrollTop,"rtl"===A(c||l).direction&&(a+=S(l.clientWidth,c?c.clientWidth:0)-i),{width:i,height:u,x:a,y:s}));var i,o,r,a,s,l,c,u}function kt(e){var t,n=e.reference,i=e.element,e=e.placement,o=e?I(e):null,e=e?lt(e):null,r=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2;switch(o){case E:t={x:r,y:n.y-i.height};break;case T:t={x:r,y:n.y+n.height};break;case $:t={x:n.x+n.width,y:a};break;case D:t={x:n.x-i.width,y:a};break;default:t={x:n.x,y:n.y}}var s=o?it(o):null;if(null!=s){var l="y"===s?"height":"width";switch(e){case N:t[s]=t[s]-(n[l]/2-i[l]/2);break;case b:t[s]=t[s]+(n[l]/2-i[l]/2)}}return t}function _t(e,t){var n,i,o,r,a,s,t=t=void 0===t?{}:t,l=t.placement,l=void 0===l?e.placement:l,c=t.strategy,c=void 0===c?e.strategy:c,u=t.boundary,u=void 0===u?Re:u,d=t.rootBoundary,d=void 0===d?Oe:d,h=t.elementContext,h=void 0===h?m:h,p=t.altBoundary,p=void 0!==p&&p,t=t.padding,t=void 0===t?0:t,t=rt("number"!=typeof t?t:at(t,L)),f=e.rects.popper,p=e.elements[p?h===m?Pe:m:h],c=(n=v(p)?p:p.contextElement||C(e.elements.popper),p=d,i=c,r="clippingParents"===(d=u)?(a=xt(et(r=n)),v(o=0<=["absolute","fixed"].indexOf(A(r).position)&&x(r)?nt(r):r)?a.filter(function(e){return v(e)&&Ze(e,o)&&"body"!==y(e)}):[]):[].concat(d),a=[].concat(r,[p]),d=a[0],(p=a.reduce(function(e,t){t=Ct(n,t,i);return e.top=S(t.top,e.top),e.right=Ye(t.right,e.right),e.bottom=Ye(t.bottom,e.bottom),e.left=S(t.left,e.left),e},Ct(n,d,i))).width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p),u=Xe(e.elements.reference),d=kt({reference:u,element:f,placement:l}),p=At(Object.assign({},f,d)),f=h===m?p:u,g={top:c.top-f.top+t.top,bottom:f.bottom-c.bottom+t.bottom,left:c.left-f.left+t.left,right:f.right-c.right+t.right},d=e.modifiersData.offset;return h===m&&d&&(s=d[l],Object.keys(g).forEach(function(e){var t=0<=[$,T].indexOf(e)?1:-1,n=0<=[E,T].indexOf(e)?"y":"x";g[e]+=s[n]*t})),g}var St={name:"flip",enabled:!0,phase:"main",fn:function(e){var d=e.state,t=e.options,e=e.name;if(!d.modifiersData[e]._skip){for(var n=t.mainAxis,i=void 0===n||n,n=t.altAxis,o=void 0===n||n,n=t.fallbackPlacements,h=t.padding,p=t.boundary,f=t.rootBoundary,r=t.altBoundary,a=t.flipVariations,g=void 0===a||a,m=t.allowedAutoPlacements,a=d.options.placement,t=I(a),n=n||(t!==a&&g?I(n=a)===Me?[]:(t=gt(n),[yt(n),t,yt(t)]):[gt(a)]),s=[a].concat(n).reduce(function(e,t){return e.concat(I(t)===Me?(n=d,i=(e=e=void 0===(e={placement:t,boundary:p,rootBoundary:f,padding:h,flipVariations:g,allowedAutoPlacements:m})?{}:e).placement,o=e.boundary,r=e.rootBoundary,a=e.padding,s=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?je:e,c=lt(i),e=c?s?Be:Be.filter(function(e){return lt(e)===c}):L,u=(i=0===(i=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:i).reduce(function(e,t){return e[t]=_t(n,{placement:t,boundary:o,rootBoundary:r,padding:a})[I(t)],e},{}
2),Object.keys(u).sort(function(e,t){return u[e]-u[t]})):t);var n,i,o,r,a,s,l,c,u},[]),l=d.rects.reference,c=d.rects.popper,u=new Map,y=!0,v=s[0],b=0;b<s.length;b++){var w=s[b],x=I(w),A=lt(w)===N,C=0<=[E,T].indexOf(x),k=C?"width":"height",_=_t(d,{placement:w,boundary:p,rootBoundary:f,altBoundary:r,padding:h}),C=C?A?$:D:A?T:E,A=(l[k]>c[k]&&(C=gt(C)),gt(C)),k=[];if(i&&k.push(_[x]<=0),o&&k.push(_[C]<=0,_[A]<=0),k.every(function(e){return e})){v=w,y=!1;break}u.set(w,k)}if(y)for(var S=g?3:1;0<S&&"break"!==(t=>{var e=s.find(function(e){e=u.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return v=e,"break"})(S);S--);d.placement!==v&&(d.modifiersData[e]._skip=!0,d.placement=v,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Et(e,t,n){return{top:e.top-t.height-(n=void 0===n?{x:0,y:0}:n).y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tt(t){return[E,$,T,D].some(function(e){return 0<=t[e]})}var $t={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,r=_t(t,{elementContext:"reference"}),a=_t(t,{altBoundary:!0}),r=Et(r,n),n=Et(a,i,o),a=Tt(r),i=Tt(n);t.modifiersData[e]={referenceClippingOffsets:r,popperEscapeOffsets:n,isReferenceHidden:a,hasPopperEscaped:i},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":a,"data-popper-escaped":i})}},Dt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var a=e.state,t=e.name,e=e.options.offset,s=void 0===e?[0,0]:e,e=je.reduce(function(e,t){return e[t]=(t=t,n=a.rects,i=s,o=I(t),r=0<=[D,E].indexOf(o)?-1:1,n="function"==typeof i?i(Object.assign({},n,{placement:t})):i,t=n[0]||0,i=(n[1]||0)*r,0<=[D,$].indexOf(o)?{x:i,y:t}:{x:t,y:i}),e;var n,i,o,r},{}),n=e[a.placement],i=n.x,n=n.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=i,a.modifiersData.popperOffsets.y+=n),a.modifiersData[t]=e}},Lt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state;t.modifiersData[e.name]=kt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},Nt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,n,i,o,r,a,s,l,c,u=e.state,d=e.options,e=e.name,h=d.mainAxis,h=void 0===h||h,p=d.altAxis,p=void 0!==p&&p,f=d.tether,f=void 0===f||f,g=d.tetherOffset,g=void 0===g?0:g,d=_t(u,{boundary:d.boundary,rootBoundary:d.rootBoundary,padding:d.padding,altBoundary:d.altBoundary}),m=I(u.placement),y=lt(u.placement),v=!y,b=it(m),w="x"===b?"y":"x",x=u.modifiersData.popperOffsets,A=u.rects.reference,C=u.rects.popper,g="function"==typeof g?g(Object.assign({},u.rects,{placement:u.placement})):g,g="number"==typeof g?{mainAxis:g,altAxis:g}:Object.assign({mainAxis:0,altAxis:0},g),k=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,_={x:0,y:0};x&&(h&&(h="y"===b?"height":"width",a=(s=x[b])+d[n="y"===b?E:D],l=s-d[c="y"===b?T:$],t=f?-C[h]/2:0,o=(y===N?A:C)[h],y=y===N?-C[h]:-A[h],r=u.elements.arrow,r=f&&r?Je(r):{width:0,height:0},n=(i=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[n],i=i[c],c=ot(0,A[h],r[h]),r=v?A[h]/2-t-c-n-g.mainAxis:o-c-n-g.mainAxis,o=v?-A[h]/2+t+c+i+g.mainAxis:y+c+i+g.mainAxis,v=(n=u.elements.arrow&&nt(u.elements.arrow))?"y"===b?n.clientTop||0:n.clientLeft||0:0,y=s+o-(t=null!=(h=null==k?void 0:k[b])?h:0),c=ot(f?Ye(a,s+r-t-v):a,s,f?S(l,y):l),x[b]=c,_[b]=c-s),p&&(i="y"==w?"height":"width",o=(n=x[w])+d["x"===b?E:D],h=n-d["x"===b?T:$],r=-1!==[E,D].indexOf(m),v=null!=(t=null==k?void 0:k[w])?t:0,a=r?o:n-A[i]-C[i]-v+g.altAxis,y=r?n+A[i]+C[i]-v-g.altAxis:h,s=f&&r?(c=ot(a,n,l=y),l<c?l:c):ot(f?a:o,n,f?y:h),x[w]=s,_[w]=s-n),u.modifiersData[e]=_)},requiresIfExists:["offset"]};function It(e){var n=new Map,i=new Set,o=[];return e.forEach(function(e){n.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||function t(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){i.has(e)||(e=n.get(e))&&t(e)}),o.push(e)}(e)}),o}var Mt={placement:"bottom",modifiers:[],strategy:"absolute"};function Rt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Ot(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,l=void 0===t?[]:t,t=e.defaultOptions,c=void 0===t?Mt:t;return function(i,o,t){void 0===t&&(t=c);var n,r,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mt,c),modifiersData:{},elements:{reference:i,popper:o},attributes:{},styles:{}},a=[],f=!1,g={state:p,setOptions:function(e){e="function"==typeof e?e(p.options):e;s(),p.options=Object.assign({},c,p.options,e),p.scrollParents={reference:v(i)?xt(i):i.contextElement?xt(i.contextElement):[],popper:xt(o)};e=[].concat(l,p.options.modifiers),t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}
2),n=It(Object.keys(t).map(function(e){return t[e]}));var t,n,e=Ue.reduce(function(e,t){return e.concat(n.filter(function(e){return e.phase===t}))},[]);return p.orderedModifiers=e.filter(function(e){return e.enabled}),p.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,e=e.effect;"function"==typeof e&&(e=e({state:p,name:t,instance:g,options:void 0===n?{}:n}),a.push(e||function(){}))}),g.update()},forceUpdate:function(){if(!f){var e=p.elements,t=e.reference,e=e.popper;if(Rt(t,e)){p.rects={reference:(t=t,a=nt(e),void 0===(s="fixed"===p.options.strategy)&&(s=!1),l=x(a),c=x(a)&&(d=(c=a).getBoundingClientRect(),u=Ke(d.width)/c.offsetWidth||1,d=Ke(d.height)/c.offsetHeight||1,1!==u||1!==d),u=C(a),d=Xe(t,c,s),t={scrollLeft:0,scrollTop:0},h={x:0,y:0},!l&&s||("body"===y(a)&&!wt(u)||(t=(l=a)!==w(l)&&x(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:vt(l)),x(a)?((h=Xe(a,!0)).x+=a.clientLeft,h.y+=a.clientTop):u&&(h.x=bt(u))),{x:d.left+t.scrollLeft-h.x,y:d.top+t.scrollTop-h.y,width:d.width,height:d.height}),popper:Je(e)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(e){return p.modifiersData[e.name]=Object.assign({},e.data)});for(var n,i,o,r=0;r<p.orderedModifiers.length;r++)!0!==p.reset?(i=(n=p.orderedModifiers[r]).fn,o=n.options,"function"==typeof i&&(p=i({state:p,options:void 0===o?{}:o,name:n.name,instance:g})||p)):(p.reset=!1,r=-1)}}var a,s,l,c,u,d,h},update:(n=function(){return new Promise(function(e){g.forceUpdate(),e(p)})},function(){return r=r||new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(n())})})}),destroy:function(){s(),f=!0}};return Rt(i,o)&&g.setOptions(t).then(function(e){!f&&t.onFirstUpdate&&t.onFirstUpdate(e)}),g;function s(){a.forEach(function(e){return e()}),a=[]}}}var Pt=Ot(),Bt=Ot({defaultModifiers:[pt,Lt,dt,Ve]}),jt=Ot({defaultModifiers:[pt,Lt,dt,Ve,Dt,St,Nt,st,$t]});let Ht=Object.freeze(Object.defineProperty({__proto__:null,afterMain:"afterMain",afterRead:"afterRead",afterWrite:We,applyStyles:Ve,arrow:st,auto:Me,basePlacements:L,beforeMain:Fe,beforeRead:He,beforeWrite:ze,bottom:T,clippingParents:Re,computeStyles:dt,createPopper:jt,createPopperBase:Pt,createPopperLite:Bt,detectOverflow:_t,end:b,eventListeners:pt,flip:St,hide:$t,left:D,main:"main",modifierPhases:Ue,offset:Dt,placements:je,popper:m,popperGenerator:Ot,popperOffsets:Lt,preventOverflow:Nt,read:"read",reference:Pe,right:$,start:N,top:E,variationPlacements:Be,viewport:Oe,write:"write"},Symbol.toStringTag,{value:"Module"})),Ft=".bs.dropdown",zt=".data-api",Wt="click"+Ft+zt,Ut="keydown"+Ft+zt,qt="show",k='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Vt=(k,".dropdown-menu"),Yt=l()?"top-end":"top-start",Kt=l()?"top-start":"top-end",Gt=l()?"bottom-end":"bottom-start",Qt=l()?"bottom-start":"bottom-end",Xt=l()?"left-start":"right-start",Jt=l()?"right-start":"left-start",Zt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},en={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class _ extends t{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=d.next(this._element,Vt)[0]||d.prev(this._element,Vt)[0]||d.findOne(Vt,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Zt}static get DefaultType(){return en}static get NAME(){return"dropdown"}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!s(this._element)&&!this._isShown()){let e={relatedTarget:this._element};if(!f.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2navbar-nav"))for(let e of[].concat(...document.body.children))f.on(e,"mouseover",F);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(qt),this._element.classList.add(qt),f.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!s(this._element)&&this._isShown()&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!f.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))f.off(e,"mouseover",F);this._popper&&this._popper.destroy(),this._menu.classList.remove(qt),this._element.classList.remove(qt),this._element.setAttribute("aria-expanded","false"),u.removeDataAttribute(this._menu,"popper"),f.trigger(this._element,"hidden.bs.dropdown",e),this._element.focus()}}_getConfig(e){if("object"!=typeof(e=super._getConfig(e)).reference||a(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError("dropdown".toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(){if(void 0===Ht)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:a(this._config.reference)?e=o(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=jt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(qt)}_getPlacement(){var e,t=this._parent;return t.classList.contains("dropend")?Xt:t.classList.contains("dropstart")?Jt:t.classList.contains("dropup-center")?"top":t.classList.contains("dropdown-center")?"bottom":(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?Kt:Yt:e?Qt:Gt)}
2_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){let t=this._config.offset;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(u.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...c(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){var n=d.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>r(e));n.length&&V(n,t,"ArrowDown"===e,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=_.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2!==t.button&&("keyup"!==t.type||"Tab"===t.key)){let e=d.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show');for(var n of e){let e=_.getInstance(n);var i;e&&!1!==e._config.autoClose&&(i=(n=t.composedPath()).includes(e._menu),n.includes(e._element)||"inside"===e._config.autoClose&&!i||"outside"===e._config.autoClose&&i||e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName))||(n={relatedTarget:e._element},"click"===t.type&&(n.clickEvent=t),e._completeHide(n)))}}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=["ArrowUp","ArrowDown"].includes(e.key);!i&&!n||t&&!n||(e.preventDefault(),t=this.matches(k)?this:d.prev(this,k)[0]||d.next(this,k)[0]||d.findOne(k,e.delegateTarget.parentNode),n=_.getOrCreateInstance(t),i?(e.stopPropagation(),n.show(),n._selectMenuItem(e)):n._isShown()&&(e.stopPropagation(),n.hide(),t.focus()))}}f.on(document,Ut,k,_.dataApiKeydownHandler),f.on(document,Ut,Vt,_.dataApiKeydownHandler),f.on(document,Wt,_.clearMenus),f.on(document,"keyup.bs.dropdown.data-api",_.clearMenus),f.on(document,Wt,k,function(e){e.preventDefault(),_.getOrCreateInstance(this).toggle()}),e(_);let tn="mousedown.bs.backdrop",nn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},on={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class rn extends ue{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return nn}static get DefaultType(){return on}static get NAME(){return"backdrop"}show(e){var t;this._config.isVisible?(this._append(),t=this._getElement(),this._config.isAnimated&&z(t),t.classList.add("show"),this._emulateAnimation(()=>{c(e)})):c(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),c(e)})):c(e)}dispose(){this._isAppended&&(f.off(this._element,tn),this._element.remove(),this._isAppended=!1)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_configAfterMerge(e){return e.rootElement=o(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),f.on(e,tn,()=>{c(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){q(e,this._getElement(),this._config.isAnimated)}}let an=".bs.focustrap",sn=(an,an,{autofocus:!0,trapElement:null}),ln={autofocus:"boolean",trapElement:"element"};class cn extends ue{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return sn}static get DefaultType(){return ln}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),f.off(document,an),f.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),f.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,f.off(document,an))}_handleFocusin(e){var t=this._config.trapElement;e.target===document||e.target===t||t.contains(e.target)||(0===(e=d.focusableChildren(t)).length?t:"backward"===this._lastTabNavDirection?e[e.length-1]:e[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?"backward":"forward")}}let un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",dn=".sticky-top",hn="padding-right",pn="margin-right";class fn{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hn,e=>e+t),this._setElementAttributes(un,hn,e=>e+t),this._setElementAttributes(dn,pn,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,hn),this._resetElementAttributes(un,hn),this._resetElementAttributes(dn,pn)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,i){let o=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+o||(this._saveInitialAttribute(e,n),t=window.getComputedStyle(e).getPropertyValue(n),e.style.setProperty(n,i(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var n=e.style.getPropertyValue(t);n&&u.setDataAttribute(e,t,n)}_resetElementAttributes(e,n){this._applyManipulationCallback(e,e=>{var t=u.getDataAttribute(e,n);null!==t?(u.removeDataAttribute(e,n),e.style.setProperty(n,t)):e.style.removeProperty(n)})}
2_applyManipulationCallback(e,t){if(a(e))t(e);else for(var n of d.find(e,this._element))t(n)}}let M=".bs.modal",gn=(M,M,"hidden"+M),mn="show"+M,yn=(M,M,M,M,M,M,"modal-open"),vn="modal-static",bn={backdrop:!0,focus:!0,keyboard:!0},wn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class xn extends t{constructor(e,t){super(e,t),this._dialog=d.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fn,this._addEventListeners()}static get Default(){return bn}static get DefaultType(){return wn}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||f.trigger(this._element,mn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(yn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||f.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){f.off(window,M),f.off(this._dialog,M),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new rn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new cn({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;var t=d.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),z(this._element),this._element.classList.add("show"),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,f.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){f.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),f.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),f.on(this._element,"mousedown.dismiss.bs.modal",t=>{f.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(yn),this._resetAdjustments(),this._scrollBar.reset(),f.trigger(this._element,gn)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(!f.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(vn)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(vn),this._queueCallback(()=>{this._element.classList.remove(vn),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=0<t;if(n&&!e){let e=l()?"paddingLeft":"paddingRight";this._element.style[e]=t+"px"}if(!n&&e){let e=l()?"paddingRight":"paddingLeft";this._element.style[e]=t+"px"}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){var e=xn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t](n)}})}}f.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){let t=d.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),f.one(t,mn,e=>{e.defaultPrevented||f.one(t,gn,()=>{r(this)&&this.focus()})});e=d.findOne(".modal.show");e&&xn.getInstance(e).hide(),xn.getOrCreateInstance(t).toggle(this)}),he(xn),e(xn);let An=".bs.offcanvas",Cn=".offcanvas.show",kn="hidePrevented"+An,_n="hidden"+An,Sn={backdrop:!0,keyboard:!0,scroll:!1},En={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class R extends t{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Sn}static get DefaultType(){return En}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||f.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add("showing"),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove("showing"),f.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||f.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fn).reset(),f.trigger(this._element,_n)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new rn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():f.trigger(this._element,kn)}:null})}_initializeFocusTrap(){return new cn({trapElement:this._element})}_addEventListeners(){f.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():f.trigger(this._element,kn))})}static jQueryInterface(t){return this.each(function(){var e=R.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}f.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=d.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),s(this)||(f.one(t,_n,()=>{r(this)&&this.focus()}),(e=d.findOne(Cn))&&e!==t&&R.getInstance(e).hide(),R.getOrCreateInstance(t).toggle(this))}),f.on(window,"load.bs.offcanvas.data-api",()=>{for(var e of d.find(Cn))R.getOrCreateInstance(e).show()}),f.on(window,"resize.bs.offcanvas",()=>{for(var e of d.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&R.getOrCreateInstance(e).hide()}),he(R),e(R);let Tn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},$n=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ln={allowList:Tn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Nn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},In={entry:"(string|element|function|null)",selector:"(string|element)"};class Mn extends ue{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Ln}static get DefaultType(){return Nn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>
2this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){var n=document.createElement("div");n.innerHTML=this._maybeSanitize(this._config.template);for(let[e,t]of Object.entries(this._config.content))this._setContent(n,t,e);let e=n.children[0],t=this._resolvePossibleFunction(this._config.extraClass);return t&&e.classList.add(...t.split(" ")),e}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(var[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},In)}_setContent(e,t,n){n=d.findOne(n,e);n&&((t=this._resolvePossibleFunction(t))?a(t)?this._putElementInTemplate(o(t),n):this._config.html?n.innerHTML=this._maybeSanitize(t):n.textContent=t:n.remove())}_maybeSanitize(n){if(this._config.sanitize){var i=n,o=this._config.allowList,r=this._config.sanitizeFn;if(!i.length)return i;if(r&&"function"==typeof r)return r(i);let e=(new window.DOMParser).parseFromString(i,"text/html"),t=[].concat(...e.body.querySelectorAll("*"));for(let i of t){let e=i.nodeName.toLowerCase();if(Object.keys(o).includes(e)){let t=[].concat(...i.attributes),n=[].concat(o["*"]||[],o[e]||[]);for(let e of t)((e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?!$n.has(n)||Boolean(Dn.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))})(e,n)||i.removeAttribute(e.nodeName)}else i.remove()}return e.body.innerHTML}return n}_resolvePossibleFunction(e){return c(e,[void 0,this])}_putElementInTemplate(e,t){this._config.html?(t.innerHTML="",t.append(e)):t.textContent=e.textContent}}let Rn=new Set(["sanitize","allowList","sanitizeFn"]),On="show",Pn="hide.bs.modal",Bn="hover",jn={AUTO:"auto",TOP:"top",RIGHT:l()?"left":"right",BOTTOM:"bottom",LEFT:l()?"right":"left"},Hn={allowList:Tn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Fn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class zn extends t{constructor(e,t){if(void 0===Ht)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Hn}static get DefaultType(){return Fn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),f.off(this._element.closest(".modal"),Pn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){let e=f.trigger(this._element,this.constructor.eventName("show")),t=(H(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();var n=this._getTipElement(),i=(this._element.setAttribute("aria-describedby",n.getAttribute("id")),this._config).container;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),f.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(On),"ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))f.on(e,"mouseover",F);this._queueCallback(()=>{f.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}
2hide(){if(this._isShown()&&!f.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(On),"ontouchstart"in document.documentElement)for(var e of[].concat(...document.body.children))f.off(e,"mouseover",F);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger[Bn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),f.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove("fade",On),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add("fade"),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Mn({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains("fade")}_isShown(){return this.tip&&this.tip.classList.contains(On)}_createPopper(e){var t=c(this._config.placement,[this,e,this._element]),t=jn[t.toUpperCase()];return jt(this._element,e,this._getPopperConfig(t))}_getOffset(){let t=this._config.offset;return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return c(e,[this._element,this._element])}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,...c(this._config.popperConfig,[void 0,e])}}_setListeners(){let e=this._config.trigger.split(" ");for(var n of e)if("click"===n)f.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{e=this._initializeOnDelegatedTarget(e);e._activeTrigger.click=!(e._isShown()&&e._activeTrigger.click),e.toggle()});else if("manual"!==n){let e=n===Bn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=n===Bn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");f.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?"focus":Bn]=!0,t._enter()}),f.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?"focus":Bn]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},f.on(this._element.closest(".modal"),Pn,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=u.getDataAttributes(this._element);for(let e of Object.keys(t))Rn.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:o(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){var e,t,n={};for([e,t]of Object.entries(this._config))this.constructor.Default[e]!==t&&(n[e]=t);return n.selector=!1,n.trigger="manual",n}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=zn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
2amed "${t}"`);e[t]()}})}}e(zn);let Wn={...zn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Un={...zn.DefaultType,content:"(null|string|element|function)"};class qn extends zn{static get Default(){return Wn}static get DefaultType(){return Un}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=qn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(qn);let Vn=".bs.scrollspy",Yn="click"+Vn,Kn="active",Gn="[href]",Qn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Xn={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends t{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Qn}static get DefaultType(){return Xn}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(var e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=o(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(f.off(this._config.target,Yn),f.on(this._config.target,Yn,Gn,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get("#"+e.target.id),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(var r of e)if(r.isIntersecting){let e=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&e){if(n(r),!i)return}else o||e||n(r)}else this._activeTarget=null,this._clearActiveClass(t(r))}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=d.find(Gn,this._config.target);for(var t of e)if(t.hash&&!s(t)){let e=d.findOne(decodeURI(t.hash),this._element);r(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(Kn),this._activateParents(e),f.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))d.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Kn);else for(var t of d.parents(e,".nav, .list-group"))for(let e of d.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))e.classList.add(Kn)}_clearActiveClass(e){e.classList.remove(Kn);var t=d.find("[href].active",e);for(let e of t)e.classList.remove(Kn)}static jQueryInterface(t){return this.each(function(){var e=Jn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
2amed "${t}"`);e[t]()}})}}f.on(window,"load.bs.scrollspy.data-api",()=>{for(var e of d.find('[data-bs-spy="scroll"]'))Jn.getOrCreateInstance(e)}),e(Jn);let Zn="ArrowRight",ei="active",ti=".dropdown-toggle",ni=`:not(${ti})`,ii='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',oi=`.nav-link${ni}, .list-group-item${ni}, [role="tab"]${ni}, `+ii;class ri extends t{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),f.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,n=this._element;this._elemIsActive(n)||(t=(e=this._getActiveElem())?f.trigger(e,"hide.bs.tab",{relatedTarget:n}):null,f.trigger(n,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,n),this._activate(n,e))}_activate(e,t){e&&(e.classList.add(ei),this._activate(d.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),f.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add("show")},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(ei),e.blur(),this._deactivate(d.getElementFromSelector(e)),this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),f.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove("show")},e,e.classList.contains("fade")))}_keydown(t){if(["ArrowLeft",Zn,"ArrowUp","ArrowDown","Home","End"].includes(t.key)){t.stopPropagation(),t.preventDefault();var n,i=this._getChildren().filter(e=>!s(e));let e;(e=["Home","End"].includes(t.key)?i["Home"===t.key?0:i.length-1]:(n=[Zn,"ArrowDown"].includes(t.key),V(i,t.target,n,!0)))&&(e.focus({preventScroll:!0}),ri.getOrCreateInstance(e).show())}}_getChildren(){return d.find(oi,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=d.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id)}_toggleDropDown(e,n){let i=this._getOuterElement(e);i.classList.contains("dropdown")&&((e=(e,t)=>{e=d.findOne(e,i);e&&e.classList.toggle(t,n)})(ti,ei),e(".dropdown-menu","show"),i.setAttribute("aria-expanded",n))}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(ei)}_getInnerElement(e){return e.matches(oi)?e:d.findOne(oi,e)}
2_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=ri.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}f.on(document,"click.bs.tab",ii,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),s(this)||ri.getOrCreateInstance(this).show()}),f.on(window,"load.bs.tab",()=>{for(var e of d.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))ri.getOrCreateInstance(e)}),e(ri);let ai="show",si="showing",li={animation:"boolean",autohide:"boolean",delay:"number"},ci={animation:!0,autohide:!0,delay:5e3};class ui extends t{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ci}static get DefaultType(){return li}static get NAME(){return"toast"}show(){f.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),z(this._element),this._element.classList.add(ai,si),this._queueCallback(()=>{this._element.classList.remove(si),f.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||f.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(si),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(si,ai),f.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ai),super.dispose()}isShown(){return this._element.classList.contains(ai)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():this._element===(e=e.relatedTarget)||this._element.contains(e)||this._maybeScheduleHide()}_setListeners(){f.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),f.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),f.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=ui.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return he(ui),e(ui),{Alert:pe,Button:ge,Carousel:Te,Collapse:Ie,Dropdown:_,Modal:xn,Offcanvas:R,Popover:qn,ScrollSpy:Jn,Tab:ri,Toast:ui,Tooltip:zn}}),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).BootstrapTable=t(e.jQuery)})(this,function(L){function O(e){e=(e=>{if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=typeof(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e);return"symbol"==typeof e?e:String(e)}function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,O(i.key),i)}}function H(e,t,n){t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1})}function M(e,t){return(e=>{if(Array.isArray(e))return e})(e)||((e,t)=>{var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}})(e,t)||z(e,t)||(()=>{throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function F(e){return(e=>{if(Array.isArray(e))return W(e)})(e)||(()=>{if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)})()||z(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function z(e,t){var n;if(e)return"string"==typeof e?W(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function N(e,t){var n,i,o,r,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(i=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){o=!0,n=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=z(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function U(e){return e&&e.Math===Math&&e}function e(e){try{return!!e()}catch(e){return!0}}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=U("object"==typeof globalThis&&globalThis)||U("object"==typeof window&&window)||U("object"==typeof self&&self)||U("object"==typeof t&&t)||U("object"==typeof t&&t)||function(){return this}()||Function("return this")(),q={},n=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),i=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),V=Function.prototype.call,Y=i?V.bind(V):function(){return V.apply(V,arguments)},o={},r={}.propertyIsEnumerable,K=Object.getOwnPropertyDescriptor,a=K&&!r.call({1:2},1);o.f=a?function(e){e=K(this,e);return!!e&&e.enumerable}:r;function G(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Q(e){return he(de(e),8,-1)}function X(e){return null==e}function J(e){if(me(e))throw new ye("Can't call method on "+e);return e}function Z(e){return ve(be(e))}function ee(e,t){return arguments.length<2?(n=Ce[e],ke(n)?n:void 0):Ce[e]&&Ce[e][t];var n}function te(e){try{return Me(e)}catch(e){return"Object"}}function ne(e){if(Re(e))return e;throw new Pe(Oe(e)+" is not a function")}function ie(e,t){return e=e[t],je(e)?void 0:Be(e)}function oe(t,n){try{qe(Ue,t,{value:n,configurable:!0,writable:!0})}catch(e){Ue[t]=n}return n}function re(e){return Ke(Ye(e))}function ae(e){return"Symbol("+(void 0===e?"":e)+")_"+Ze(++Xe+Je,36)}function s(e){return et(it,e)||(it[e]=tt&&et(nt,e)?nt[e]:ot("Symbol."+e)),it[e]}function se(e,t){if(!at(e)||st(e))return e;var n,i,o=lt(e,ut);if(o){if(o=rt(o,e,t=void 0===t?"default":t),!at(o)||st(o))return o;throw new ct("Can't convert object to primitive value")}if(o=e,"string"===(e=t=void 0===t?"number":t)&&Fe(n=o.toString)&&!ze(i=He(n,o)))return i;if(Fe(n=o.valueOf)&&!ze(i=He(n,o)))return i;if("string"!==e&&Fe(n=o.toString)&&!ze(i=He(n,o)))return i;throw new We("Can't convert object to primitive value")}function le(e){return e=dt(e,"string"),ht(e)?e:e+""}function ce(e){return ft?pt.createElement(e):{}}function l(e){if(kt(e))return e;throw new St(_t(e)+" is not an object")}var a=i,r=Function.prototype,ue=r.call,r=a&&r.bind.bind(ue,ue),a=a?r:function(e){return function(){return ue.apply(e,arguments)}},r=a,de=r({}.toString),he=r("".slice),r=e,pe=Q,fe=Object,ge=a("".split),r=r(function(){return!fe("z").propertyIsEnumerable(0)})?function(e){return"String"===pe(e)?ge(e,""):fe(e)}:fe,me=X,ye=TypeError,ve=r,be=J,c="object"==typeof document&&document.all,c={all:c,IS_HTMLDDA:void 0===c&&void 0!==c},we=c.all,u=c.IS_HTMLDDA?function(e){return"function"==typeof e||e===we}:function(e){return"function"==typeof e},xe=u,Ae=c.all,c=c.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:xe(e)||e===Ae}:function(e){return"object"==typeof e?null!==e:xe(e)},Ce=t,ke=u,_e=a({}.isPrototypeOf),Se="undefined"!=typeof navigator&&String(navigator.userAgent)||"",d=Se,h=t.process,p=t.Deno,h=h&&h.versions||p&&p.version,p=h&&h.v8,h=Ie=!(Ie=p?0<(f=p.split("."))[0]&&f[0]<4?1:+(f[0]+f[1]):Ie)&&d&&(!(f=d.match(/Edge\/(\d+)/))||74<=f[1])&&(f=d.match(/Chrome\/(\d+)/))?+f[1]:Ie,Ee=h,p=e,Te=t.String,d=!!Object.getOwnPropertySymbols&&!p(function(){var e=Symbol("symbol detection");return!Te(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ee&&Ee<41}),f=d&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$e=ee,De=u,Le=_e,Ne=Object,Ie=f?function(e){return"symbol"==typeof e}:function(e){var t=$e("Symbol");return De(t)&&Le(t.prototype,Ne(e))},Me=String,Re=u,Oe=te,Pe=TypeError,Be=ne,je=X,He=Y,Fe=u,ze=c,We=TypeError,p={exports:{}},Ue=t,qe=Object.defineProperty,g=oe,m="__core-js_shared__",g=t[m]||g(m,{}),Ve=g,m=((p.exports=function(e,t){return Ve[e]||(Ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"}
2),p.exports),Ye=J,Ke=Object,Ge=re,Qe=a({}.hasOwnProperty),p=Object.hasOwn||function(e,t){return Qe(Ge(e),t)},y=a,Xe=0,Je=Math.random(),Ze=y(1..toString),y=m,et=p,v=ae,tt=d,d=f,nt=t.Symbol,it=y("wks"),ot=d?nt.for||nt:nt&&nt.withoutSetter||v,rt=Y,at=c,st=Ie,lt=ie,ct=TypeError,ut=s("toPrimitive"),dt=se,ht=Ie,f=c,pt=t.document,ft=f(pt)&&f(pt.createElement),gt=ce,y=!n&&!e(function(){return 7!==Object.defineProperty(gt("div"),"a",{get:function(){return 7}}).a}),mt=Y,yt=o,vt=G,bt=Z,wt=le,xt=p,At=y,Ct=Object.getOwnPropertyDescriptor,d=(q.f=n?Ct:function(e,t){if(e=bt(e),t=wt(t),At)try{return Ct(e,t)}catch(e){}if(xt(e,t))return vt(!mt(yt.f,e,t),e[t])},{}),v=n&&e(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),kt=c,_t=String,St=TypeError,Et=y,Tt=l,$t=le,Dt=TypeError,Lt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,It=(d.f=n?v?function(e,t,n){var i;return Tt(e),t=$t(t),Tt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable&&(i=Nt(e,t))&&i.writable&&(e[t]=n.value,n={configurable:("configurable"in n?n:i).configurable,enumerable:("enumerable"in n?n:i).enumerable,writable:!1}),Lt(e,t,n)}:Lt:function(e,t,n){if(Tt(e),t=$t(t),Tt(n),Et)try{return Lt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Dt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},d),Mt=G,f=n?function(e,t,n){return It.f(e,t,Mt(1,n))}:function(e,t,n){return e[t]=n,e},y={exports:{}},Rt=n,Ot=p,b=Function.prototype,w=Rt&&Object.getOwnPropertyDescriptor,Ot=Ot(b,"name"),Ot={EXISTS:Ot,PROPER:Ot&&"something"===function(){}.name,CONFIGURABLE:Ot&&(!Rt||w(b,"name").configurable)},Rt=u,w=g,Pt=a(Function.toString);Rt(w.inspectSource)||(w.inspectSource=function(e){return Pt(e)});function Bt(e){return nn[e]||(nn[e]=tn(e))}function jt(e,t,n,i){var o=(i=i||{}).enumerable,r=void 0!==i.name?i.name:t;if(Sn(n)&&Tn(n,r,i),i.global)o?e[t]=n:$n(t,n);else{try{i.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:En.f(e,t,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e}function Ht(e){return(e=+e)!=e||0==e?0:Nn(e)}function Ft(e,t){return(e=In(e))<0?Mn(e+t,0):Rn(e,t)}function zt(e){return 0<e?Pn(On(e),9007199254740991):0}function Wt(e){return Bn(e.length)}function Ut(s){return function(e,t,n){var i,o=jn(e),r=Fn(o),a=Hn(n,r);if(s&&t!=t){for(;a<r;)if((i=o[a++])!=i)return!0}else for(;a<r;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function qt(e,t){var n,i=Wn(e),o=0,r=[];for(n in i)!zn(qn,n)&&zn(i,n)&&Vn(r,n);for(;t.length>o;)!zn(i,n=t[o++])||~Un(r,n)||Vn(r,n);return r}function Vt(e,t){return(e=li[si(e)])===ui||e!==ci&&(ri(t)?oi(t):!!t)}function x(e,t){var n,i,o,r,a=e.target,s=e.global,l=e.stat;if(n=s?di:l?di[a]||gi(a,{}):(di[a]||{}).prototype)for(i in t){if(o=t[i],r=e.dontCallGetSet?(r=hi(n,i))&&r.value:n[i],!mi(s?i:a+(l?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;u=c=void 0;for(var c=o,u=r,d=m=g=f=p=h=d=void 0,h=ti(u),p=ii.f,f=ni.f,g=0;g<h.length;g++){var m=h[g];ei(c,m)||d&&ei(d,m)||p(c,m,f(u,m))}}(e.sham||r&&r.sham)&&pi(o,"sham",!0),fi(n,i,o,e)}}function A(e){if("Symbol"===Ri(e))throw new TypeError("Cannot convert a Symbol value to a string");return Oi(e)}function Yt(t){return function(e){e=Bi(Pi(e));return 1&t&&(e=Hi(e,Fi,"")),e=2&t?Hi(e,zi,"$1"):e}}function Kt(e,t){var n=[][e];return!!n&&Vi(function(){n.call(null,t||function(){return 1},1)})}function Gt(){var e=Qi(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}var Qt,Xt,Jt,Zt,en,b=w.inspectSource,Rt=u,w=t.WeakMap,Rt=Rt(w)&&/native code/.test(String(w)),tn=ae,nn=m("keys"),w={},on=c,rn=f,an=p,sn=Bt,C=w,ln="Object already initialized",cn=t.TypeError,un=t.WeakMap,dn=Rt||g.state?((Jt=g.state||(g.state=new un)).get=Jt.get,Jt.has=Jt.has,Jt.set=Jt.set,Qt=function(e,t){if(Jt.has(e))throw new cn(ln);return t.facade=e,Jt.set(e,t),t},Xt=function(e){return Jt.get(e)||{}},function(e){return Jt.has(e)}):(C[Zt=sn("state")]=!0,Qt=function(e,t){if(an(e,Zt))throw new cn(ln);return t.facade=e,rn(e,Zt,t),t},Xt=function(e){return an(e,Zt)?e[Zt]:{}},function(e){return an(e,Zt)}),Rt={set:Qt,get:Xt,has:dn,enforce:function(e){return dn(e)?Xt(e):Qt(e,{})},getterFor:function(t){return function(e){if(on(e)&&(e=Xt(e)).type===t)return e;throw new cn("Incompatible receiver, "+t+" required")}}},g=a,un=e,hn=u,pn=p,fn=n,gn=Ot.CONFIGURABLE,mn=b,yn=Rt.enforce,vn=Rt.get,bn=String,wn=Object.defineProperty,xn=g("".slice),An=g("".replace),Cn=g([].join),kn=fn&&!un(function(){return 8!==wn(function(){},"length",{value:8}).length}),_n=String(String).split("String"),C=y.exports=function(e,t,n){"Symbol("===xn(bn(t),0,7)&&(t="["+An(bn(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!pn(e,"name")||gn&&e.name!==t)&&(fn?wn(e,"name",{value:t,configurable:!0}):e.name=t),kn&&n&&pn(n,"arity")&&e.length!==n.arity&&wn(e,"length",{value:n.arity});try{n&&pn(n,"constructor")&&n.constructor?fn&&wn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=yn(e);return pn(n,"source")||(n.source=Cn(_n,"string"==typeof t?t:"")),e},sn=(Function.prototype.toString=C(function(){return hn(this)&&vn(this).source||mn(this)}
2,"toString"),y.exports),Sn=u,En=d,Tn=sn,$n=oe,g={},Dn=Math.ceil,Ln=Math.floor,Nn=Math.trunc||function(e){e=+e;return(0<e?Ln:Dn)(e)},In=Ht,Mn=Math.max,Rn=Math.min,On=Ht,Pn=Math.min,Bn=zt,jn=Z,Hn=Ft,Fn=Wt,un={includes:Ut(!0),indexOf:Ut(!1)},zn=p,Wn=Z,Un=un.indexOf,qn=w,Vn=a([].push),C=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yn=qt,Kn=C.concat("length","prototype"),y=(g.f=Object.getOwnPropertyNames||function(e){return Yn(e,Kn)},{}),Gn=(y.f=Object.getOwnPropertySymbols,ee),Qn=g,Xn=y,Jn=l,Zn=a([].concat),Gn=Gn("Reflect","ownKeys")||function(e){var t=Qn.f(Jn(e)),n=Xn.f;return n?Zn(t,n(e)):t},ei=p,ti=Gn,ni=q,ii=d,oi=e,ri=u,ai=/#|\.prototype\./,si=Vt.normalize=function(e){return String(e).replace(ai,".").toLowerCase()},li=Vt.data={},ci=Vt.NATIVE="N",ui=Vt.POLYFILL="P",Gn=Vt,di=t,hi=q.f,pi=f,fi=jt,gi=oe,mi=Gn,yi=qt,vi=C,k=Object.keys||function(e){return yi(e,vi)},bi=n,wi=a,xi=Y,_=e,Ai=k,Ci=y,ki=o,_i=re,Si=r,Ei=Object.assign,Ti=Object.defineProperty,$i=wi([].concat),y=!Ei||_(function(){var e,t,n,i;return bi&&1!==Ei({b:1},Ei(Ti({},"a",{enumerable:!0,get:function(){Ti(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},i="abcdefghijklmnopqrst",(e={})[n=Symbol("assign detection")]=7,i.split("").forEach(function(e){t[e]=e}),7!==Ei({},e)[n])||Ai(Ei({},t)).join("")!==i})?function(e,t){for(var n=_i(e),i=arguments.length,o=1,r=Ci.f,a=ki.f;o<i;)for(var s,l=Si(arguments[o++]),c=r?$i(Ai(l),r(l)):Ai(l),u=c.length,d=0;d<u;)s=c[d++],bi&&!xi(a,l,s)||(n[s]=l[s]);return n}:Ei,wi=(x({target:"Object",stat:!0,arity:2,forced:Object.assign!==y},{assign:y}),{}),_=(wi[s("toStringTag")]="z","[object z]"===String(wi)),y=_,Di=u,Li=Q,Ni=s("toStringTag"),Ii=Object,Mi="Arguments"===Li(function(){return arguments}()),wi=y?Li:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=((e,t)=>{try{return e[t]}catch(e){}})(e=Ii(e),Ni))?t:Mi?Li(e):"Object"===(t=Li(e))&&Di(e.callee)?"Arguments":t},Ri=wi,Oi=String,y="\t\n\v\f\r                 \u2028\u2029\ufeff",Pi=J,Bi=A,ji=y,Hi=a("".replace),Fi=RegExp("^["+ji+"]+"),zi=RegExp("(^|[^"+ji+"])["+ji+"]+$"),ji={start:Yt(1),end:Yt(2),trim:Yt(3)},Wi=Ot.PROPER,S=e,Ui=y,qi=ji.trim,Vi=(x({target:"String",proto:!0,forced:(en="trim",S(function(){return!!Ui.trim()||"​…᠎"!=="​…᠎".trim()||Wi&&Ui.trim.name!==en}))},{trim:function(){return qi(this)}}),e),S=x,E=r,Yi=Z,Ki=Kt,Gi=a([].join),Qi=(S({target:"Array",proto:!0,forced:E!==Object||!Ki("join",",")},{join:function(e){return Gi(Yi(this),void 0===e?",":e)}}),l),S=e,Xi=t.RegExp,E=S(function(){var e=Xi("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),Ki=E||S(function(){return!Xi("a","y").sticky}),S={BROKEN_CARET:E||S(function(){var e=Xi("^r","gy");return e.lastIndex=2,null!==e.exec("str")}),MISSED_STICKY:Ki,UNSUPPORTED_Y:E},Ki={},Ji=d,Zi=l,eo=Z,to=k;Ki.f=n&&!v?Object.defineProperties:function(e,t){Zi(e);for(var n,i=eo(t),o=to(t),r=o.length,a=0;a<r;)Ji.f(e,n=o[a++],i[n]);return e};function no(){}function io(e){e.write(Mo("")),e.close();var t=e.parentWindow.Object;return e=null,t}function oo(e){if("Function"===tr(e))return nr(e)}function ro(n,e,t,i){var a,o=sr(n),s=!ar(function(){var e={};return e[o]=function(){return 7},7!==""[n](e)}),r=s&&!ar(function(){var e=!1,t=/a/;return"split"===n&&((t={}).constructor={},t.constructor[cr]=function(){return t},t.flags="",t[o]=/./[o]),t.exec=function(){return e=!0,null},t[o](""),!e});s&&r&&!t||(a=ir(/./[o]),r=e(o,""[n],function(e,t,n,i,o){var e=ir(e),r=t.exec;return r===rr||r===ur.exec?s&&!o?{done:!0,value:a(t,n,i)}
2:{done:!0,value:e(n,t,i)}:{done:!1}}),or(String.prototype,n,r[0]),or(ur,o,r[1])),i&&lr(ur[o],"sham",!0)}function ao(e){var t;return dr(e)&&(void 0!==(t=e[pr])?!!t:"RegExp"===hr(e))}function so(){}function lo(e){if(!fr(e))return!1;try{return vr(so,yr,e),!0}catch(e){return!1}}function co(e){if(!fr(e))return!1;switch(gr(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return xr||!!wr(br,mr(e))}catch(e){return!0}}function uo(o){return function(e,t){var n,e=$r(Dr(e)),t=Tr(t),i=e.length;return t<0||i<=t?o?"":void 0:(n=Nr(e,t))<55296||56319<n||t+1===i||(i=Nr(e,t+1))<56320||57343<i?o?Lr(e,t):n:o?Ir(e,t,t+2):i-56320+(n-55296<<10)+65536}}function ho(e,t,n){return t+(n?Mr(e,t).length:1)}function po(e,t,n){(t=Rr(t))in e?Or.f(e,t,Pr(0,n)):e[t]=n}function fo(e,t,n){for(var i=jr(e),o=Br(t,i),r=Br(void 0===n?i:n,i),a=Fr(zr(r-o,0)),s=0;o<r;o++,s++)Hr(a,s,e[o]);return a.length=s,a}function go(e,t){var n=e.exec;if(qr(n))return null!==(n=Wr(n,e,t))&&Ur(n),n;if("RegExp"===Vr(e))return Wr(Yr,e,t);throw new Kr("RegExp#exec called on incompatible receiver")}function mo(e,t){var n,e=_r(e).constructor;if(void 0===e||Sr(n=_r(e)[Er]))return t;if(Ar(e=n))return e;throw new kr(Cr(e)+" is not a constructor")}function yo(l){return function(e){for(var t,n=Ca(e),i=Aa(n),o=Sa&&null===xa(n),r=i.length,a=0,s=[];a<r;)t=i[a++],wa&&!(o?t in n:ka(n,t))||_a(s,l?[t,n[t]]:n[t]);return s}}function vo(e){$a[Ta][e]=!0}function bo(e){if(9007199254740991<e)throw Na("Maximum allowed index exceeded");return e}function wo(e,t){return new(void 0===(n=Ia(e=e)&&(n=e.constructor,Ma(n)&&(n===Pa||Ia(n.prototype))||Ra(n)&&null===(n=n[Oa]))?void 0:n)?Pa:n)(0===t?0:t);var n}function xo(t){return 51<=ja||!Ba(function(){var e=[];return(e.constructor={})[Ha]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Ao(f){var g=1===f,m=2===f,y=3===f,v=4===f,b=6===f,w=7===f,x=5===f||b;return function(e,t,n,i){for(var o,r,a,s,l=es(e),c=Za(l),u=ts(c),d=(s=n,Qa(a=t),void 0===s?a:Xa?Ja(a,s):function(){return a.apply(s,arguments)}),h=0,n=i||ns,p=g?n(e,u):m||w?n(e,0):void 0;h<u;h++)if((x||h in c)&&(r=d(o=c[h],h,l),f))if(g)p[h]=r;else if(r)switch(f){case 3:return!0;case 5:return o;case 6:return h;case 2:is(p,o)}else switch(f){case 4:return!1;case 7:is(p,o)}return b?-1:y||v?v:p}}function Co(e){if(ss(e))throw new ls("The method doesn't accept regular expressions");return e}function ko(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[cs]=!1,"/./"[t](n)}catch(t){}}return!1}function _o(t){if(t&&t.forEach!==ys)try{vs(t,"forEach",ys)}catch(e){t.forEach=ys}}var So,Eo,E=ee("document","documentElement"),To=l,$o=Ki,Do=C,v=w,Lo=E,No=ce,Io=Bt("IE_PROTO"),Mo=function(e){return"<script>"+e+"<\/script>"},Ro=function(){try{So=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ro="undefined"==typeof document||document.domain&&So?io(So):((t=No("iframe")).style.display="none",Lo.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Mo("document.F=Object")),e.close(),e.F);for(var n=Do.length;n--;)delete Ro.prototype[Do[n]];return Ro()},Ki=(v[Io]=!0,Object.create||function(e,t){var n;return null!==e?(no.prototype=To(e),n=new no,no.prototype=null,n[Io]=e):n=Ro(),void 0===t?n:$o.f(n,t)}),C=e,Oo=t.RegExp,w=C(function(){var e=Oo(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}),E=e,Po=t.RegExp,v=E(function(){var e=Po("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Bo=Y,C=a,jo=A,Ho=Gt,E=S,Fo=Ki,zo=Rt.get,T=w,$=v,Wo=m("native-string-replace",String.prototype.replace),Uo=RegExp.prototype.exec,qo=Uo,Vo=C("".charAt),Yo=C("".indexOf),Ko=C("".replace),Go=C("".slice),Qo=(m=/b*/g,Bo(Uo,C=/a/,"a"),Bo(Uo,m,"a"),0!==C.lastIndex||0!==m.lastIndex),Xo=E.BROKEN_CARET,Jo=void 0!==/()??/.exec("")[1],C=qo=Qo||Jo||Xo||T||$?function(e){var t,n,i,o,r,a,s=this,l=zo(s),e=jo(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,d=Bo(qo,c,e),s.lastIndex=c.lastIndex,d;var u=l.groups,c=Xo&&s.sticky,d=Bo(Ho,s),l=s.source,h=0,p=e;if(c&&(d=Ko(d,"y",""),-1===Yo(d,"g")&&(d+="g"),p=Go(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||(s.multiline,"\n"!==Vo(e,s.lastIndex-1)))&&(l="(?: "+l+")",p=" "+p,h++),t=new RegExp("^(?:"+l+")",d)),Jo&&(t=new RegExp("^"+l+"$(?!\\s)",d)),Qo&&(n=s.lastIndex),i=Bo(Uo,c?t:s,p),c?i?(i.input=Go(i.input,h),i[0]=Go(i[0],h),i.index=s.lastIndex,s.lastIndex+=i[0].length):s.lastIndex=0:Qo&&i&&(s.lastIndex=s.global?i.index+i[0].length:n),Jo&&i&&1<i.length&&Bo(Wo,i[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i&&u)for(i.groups=r=Fo(null),o=0;o<u.length;o++)r[(a=u[o])[0]]=i[a[1]];return i}:qo,m=(x({target:"RegExp",proto:!0,forced:/./.exec!==C},{exec:C}),i),E=Function.prototype,Zo=E.apply,er=E.call,T="object"==typeof Reflect&&Reflect.apply||(m?er.bind(Zo):function(){return er.apply(Zo,arguments)}),tr=Q,nr=a,ir=oo,or=jt,rr=C,ar=e,sr=s,lr=f,cr=sr("species"),ur=RegExp.prototype,dr=c,hr=Q,pr=s("match"),$=a,E=e,fr=u,gr=wi,mr=b,yr=[],vr=ee("Reflect","construct"),br=/^\s*(?:class|function)\b/,wr=$(br.exec),xr=!br.test(so),m=(co.sham=!0,!vr||E(function(){var e;return lo(lo.call)||!lo(Object)||!lo(function(){e=!0})||e})?co:lo),Ar=m,Cr=te,kr=TypeError,_r=l,Sr=X,Er=s("species"),b=a,Tr=Ht,$r=A,Dr=J,Lr=b("".charAt),Nr=b("".charCodeAt),Ir=b("".slice),Mr=(uo(!1),uo(!0)),Rr=le,Or=d,Pr=G,Br=Ft,jr=Wt,Hr=po,Fr=Array,zr=Math.max,Wr=Y,Ur=l,qr=u,Vr=Q,Yr=C,Kr=TypeError,Gr=T,Qr=Y,$=a,E=ro,Xr=l,Jr=X,Zr=ao,ea=J,ta=ho,na=zt,ia=A,oa=ie,ra=fo,aa=go,sa=C,b=e,la=S.UNSUPPORTED_Y,ca=Math.min,ua=[].push,da=$(/./.exec),ha=$(ua),pa=$("".slice),C=(E("split",function(o,f,g){var m="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var n=ia(ea(this)),i=void 0===t?4294967295:t>>>0;if(0==i)return[];if(void 0===e)return[n];if(!Zr(e))return Qr(f,n,e,i);for(var o,r,a,s=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,t+"g");(o=Qr(sa,c,n))&&!((r=c.lastIndex)>l&&(ha(s,pa(n,l,o.index)),1<o.length&&o.index<n.length&&Gr(ua,s,ra(o,1)),a=o[0].length,l=r,i<=s.length));)c.lastIndex===o.index&&c.lastIndex++;return l===n.length?!a&&da(c,"")||ha(s,""):ha(s,pa(n,l)),i<s.length?ra(s,0,i):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Qr(f,this,e,t)}:f;return[function(e,t){var n=ea(this),i=Jr(e)?void 0:oa(e,o);
2return i?Qr(i,e,n,t):Qr(m,ia(n),e,t)},function(e,t){var n=Xr(this),i=ia(e),e=g(m,n,i,t,m!==f);if(e.done)return e.value;var e=mo(n,RegExp),o=n.unicode,r=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(la?"g":"y"),a=new e(la?"^(?:"+n.source+")":n,r),s=void 0===t?4294967295:t>>>0;if(0==s)return[];if(0===i.length)return null===aa(a,i)?[i]:[];for(var l=0,c=0,u=[];c<i.length;){a.lastIndex=la?0:c;var d,h=aa(a,la?pa(i,c):i);if(null===h||(d=ca(na(a.lastIndex+(la?c:0)),i.length))===l)c=ta(i,c,o);else{if(ha(u,pa(i,l,c)),u.length===s)return u;for(var p=1;p<=h.length-1;p++)if(ha(u,h[p]),u.length===s)return u;c=l=d}}return ha(u,pa(i,l)),u}]},!!b(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),la),!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),fa=p,ga=u,ma=re,$=C,ya=Bt("IE_PROTO"),va=Object,ba=va.prototype,E=$?va.getPrototypeOf:function(e){var t,e=ma(e);return fa(e,ya)?e[ya]:(t=e.constructor,ga(t)&&e instanceof t?t.prototype:e instanceof va?ba:null)},wa=n,b=e,$=a,xa=E,Aa=k,Ca=Z,ka=$(o.f),_a=$([].push),Sa=wa&&b(function(){var e=Object.create(null);return e[2]=2,!ka(e,2)}),Ea=[yo(!0),yo(!1)][0],o=(x({target:"Object",stat:!0},{entries:function(e){return Ea(e)}}),s),$=Ki,b=d.f,Ta=o("unscopables"),$a=Array.prototype,Da=(void 0===$a[Ta]&&b($a,Ta,{configurable:!0,value:$(null)}),un.includes),o=vo,La=(x({target:"Array",proto:!0,forced:e(function(){return!Array(1).includes()})},{includes:function(e){return Da(this,e,1<arguments.length?arguments[1]:void 0)}}),o("includes"),Q),b=Array.isArray||function(e){return"Array"===La(e)},Na=TypeError,Ia=b,Ma=m,Ra=c,Oa=s("species"),Pa=Array,Ba=e,ja=h,Ha=s("species"),$=x,o=e,Fa=b,za=c,Wa=re,Ua=Wt,qa=bo,Va=po,Ya=wo,Ka=xo,D=h,Ga=s("isConcatSpreadable"),D=51<=D||!o(function(){var e=[];return e[Ga]=!1,e.concat()[0]!==e}),Qa=($({target:"Array",proto:!0,arity:1,forced:!D||!Ka("concat")},{concat:function(e){for(var t,n,i,o,r,a=Wa(this),s=Ya(a,0),l=0,c=-1,u=arguments.length;c<u;c++)if(o=i=-1===c?a:arguments[c],r=void 0,!za(o)||(void 0!==(r=o[Ga])?!r:!Fa(o)))qa(l+1),Va(s,l++,i);else for(n=Ua(i),qa(l+n),t=0;t<n;t++,l++)t in i&&Va(s,l,i[t]);return s.length=l,s}}),ne),Xa=i,Ja=oo(oo.bind),Za=r,es=re,ts=Wt,ns=wo,is=a([].push),o={forEach:Ao(0),map:Ao(1),filter:Ao(2),some:Ao(3),every:Ao(4),find:Ao(5),findIndex:Ao(6),filterReject:Ao(7)},$=x,os=o.find,D=vo,rs=!0,as=("find"in[]&&Array(1).find(function(){rs=!1}),$({target:"Array",proto:!0,forced:rs},{find:function(e){return os(this,e,1<arguments.length?arguments[1]:void 0)}}),D("find"),wi),ss=(_||jt(Object.prototype,"toString",_?{}.toString:function(){return"[object "+as(this)+"]"},{unsafe:!0}),ao),ls=TypeError,cs=s("match"),Ka=x,us=Co,ds=J,hs=A,i=ko,ps=a("".indexOf),r=(Ka({target:"String",proto:!0,forced:!i("includes")},{includes:function(e){return!!~ps(hs(ds(this)),hs(us(e)),1<arguments.length?arguments[1]:void 0)}}),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),$=ce("span").classList,D=$&&$.constructor&&$.constructor.prototype,wi=D===Object.prototype?void 0:D,fs=o.forEach,gs=t,ms=r,_=wi,ys=Kt("forEach")?[].forEach:function(e){return fs(this,e,1<arguments.length?arguments[1]:void 0)},vs=f;for(Eo in ms)ms[Eo]&&_o(gs[Eo]&&gs[Eo].prototype);_o(_);function bs(e,t){if(!delete e[t])throw new Ns("Cannot delete property "+Ls(t)+" of "+Ls(e))}function ws(e,t){var n=e.length,i=Ms(n/2);if(n<8){for(var o,r,a=e,s=t,l=a.length,c=1;c<l;){for(o=a[r=c];r&&0<s(a[r-1],o);)a[r]=a[--r];r!==c++&&(a[r]=o)}return a}for(var u=e,d=ws(Is(e,0,i),t),h=ws(Is(e,i),t),p=t,f=d.length,g=h.length,m=0,y=0;m<f||y<g;)u[m+y]=m<f&&y<g?p(d[m],h[y])<=0?d[m++]:h[y++]:m<f?d[m++]:h[y++];return u}var Ka=t,i=e,xs=A,As=ji.trim,Cs=a("".charAt),ks=Ka.parseFloat,$=Ka.Symbol,_s=$&&$.iterator,D=1/ks("\t\n\v\f\r                 \u2028\u2029\ufeff-0")!=-1/0||_s&&!i(function(){ks(Object(_s))})?function(e){var e=As(xs(e)),t=ks(e);return 0===t&&"-"===Cs(e,0)?-0:t}:ks,Ss=(x({global:!0,forced:parseFloat!==D},{parseFloat:D}),re),Es=k,_=(x({target:"Object",stat:!0,forced:e(function(){Es(1)})},{keys:function(e){return Es(Ss(e))}}),x),Ts=un.indexOf,Ka=Kt,$s=oo([].indexOf),Ds=!!$s&&1/$s([1],1,-0)<0,Ls=(_({target:"Array",proto:!0,forced:Ds||!Ka("indexOf")},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Ds?$s(this,e,t)||0:Ts(this,e,t)}}),te),Ns=TypeError,Is=fo,Ms=Math.floor,$=ws,i=Se.match(/firefox\/(\d+)/i),D=!!i&&+i[1],k=/MSIE|Trident/.test(Se),un=Se.match(/AppleWeb
2Kit\/(\d+)\./),_=!!un&&+un[1],Ka=x,i=a,Rs=ne,Os=re,Ps=Wt,Bs=bs,js=A,Se=e,Hs=$,un=Kt,Fs=D,zs=k,Ws=h,Us=_,qs=[],Vs=i(qs.sort),Ys=i(qs.push),$=Se(function(){qs.sort(void 0)}),D=Se(function(){qs.sort(null)}),k=un("sort"),Ks=!Se(function(){if(Ws)return Ws<70;if(!(Fs&&3<Fs)){if(zs)return!0;if(Us)return Us<603;for(var e,t,n,i="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)qs.push({k:e+n,v:t})}for(qs.sort(function(e,t){return t.v-e.v}),n=0;n<qs.length;n++)e=qs[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}),h=(Ka({target:"Array",proto:!0,forced:$||!D||!k||!Ks},{sort:function(e){void 0!==e&&Rs(e);var t=Os(this);if(Ks)return void 0===e?Vs(t):Vs(t,e);for(var n,i,o=[],r=Ps(t),a=0;a<r;a++)a in t&&Ys(o,t[a]);for(Hs(o,(i=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==i?+i(e,t)||0:js(e)>js(t)?1:-1})),n=Ps(o),a=0;a<n;)t[a]=o[a++];for(;a<r;)Bs(t,a++);return t}}),a),Gs=re,Qs=Math.floor,Xs=h("".charAt),Js=h("".replace),Zs=h("".slice),el=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,tl=/\$([$&'`]|\d{1,2})/g,nl=T,il=Y,_=a,i=ro,un=e,ol=l,rl=u,al=X,sl=Ht,ll=zt,cl=A,ul=J,dl=ho,hl=ie,pl=go,fl=s("replace"),gl=Math.max,ml=Math.min,yl=_([].concat),vl=_([].push),bl=_("".indexOf),wl=_("".slice),Se="$0"==="a".replace(/./,"$0"),xl=!!/./[fl]&&""===/./[fl]("a","$0"),Al=(i("replace",function(e,b,w){var x=xl?"$":"$0";return[function(e,t){var n=ul(this),i=al(e)?void 0:hl(e,fl);return i?il(i,e,n,t):il(b,cl(n),e,t)},function(e,t){var n=ol(this),i=cl(e);if("string"==typeof t&&-1===bl(t,x)&&-1===bl(t,"$<")){e=w(b,n,i,t);if(e.done)return e.value}var o=rl(t);o||(t=cl(t));var r,a=n.global;a&&(r=n.unicode,n.lastIndex=0);for(var s,l=[];null!==(s=pl(n,i))&&(vl(l,s),a);)""===cl(s[0])&&(n.lastIndex=dl(i,ll(n.lastIndex),r));for(var c,u="",d=0,h=0;h<l.length;h++){for(var p=cl((s=l[h])[0]),f=gl(ml(sl(s.index),i.length),0),g=[],m=1;m<s.length;m++)vl(g,void 0===(c=s[m])?c:String(c));var y=s.groups,v=o?(v=yl([p],g,f,i),void 0!==y&&vl(v,y),cl(nl(t,void 0,v))):((r,a,s,l,c,e)=>{var u=s+r.length,d=l.length,t=tl;return void 0!==c&&(c=Gs(c),t=el),Js(e,t,function(e,t){var n;switch(Xs(t,0)){case"$":return"$";case"&":return r;case"`":return Zs(a,0,s);case"'":return Zs(a,u);case"<":n=c[Zs(t,1,-1)];break;default:var i,o=+t;if(0==o)return e;if(d<o)return 0!==(i=Qs(o/10))&&i<=d?void 0===l[i-1]?Xs(t,1):l[i-1]+Xs(t,1):e;n=l[o-1]}return void 0===n?"":n})})(p,i,f,g,y,t);d<=f&&(u+=wl(i,d,f)+v,d=f+p.length)}return u+wl(i,d)}]},!!un(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!Se||xl),o.filter),Ka=(x({target:"Array",proto:!0,forced:!xo("filter")},{filter:function(e){return Al(this,e,1<arguments.length?arguments[1]:void 0)}}),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),Cl=Y,kl=l,_l=X,Sl=J,El=Ka,Tl=A,$l=ie,Dl=go;ro("search",function(i,o,r){return[function(e){var t=Sl(this),n=_l(e)?void 0:$l(e,i);return n?Cl(n,e,t):new RegExp(e)[i](Tl(t))},function(e){var t=kl(this),e=Tl(e),n=r(o,t,e);return n.done?n.value:(n=t.lastIndex,El(n,0)||(t.lastIndex=0),e=Dl(t,e),El(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]});function Ll(e,t,n){return Ql&&Kl(t=t.constructor)&&t!==n&&Gl(t=t.prototype)&&t!==n.prototype&&Ql(e,t),e}function Nl(e){var t=e.flags;return void 0!==t||"flags"in tc||Jl(e,"flags")||!Zl(tc,e)?t:Xl(ec,e)}var $=e,D=a,Il=A,Ml=ji.trim,k=y,Rl=t.parseInt,h=t.Symbol,Ol=h&&h.iterator,Pl=/^[+-]?0x/i,Bl=D(Pl.exec),T=8!==Rl(k+"08")||22!==Rl(k+"0x16")||Ol&&!$(function(){Rl(Object(Ol))})?function(e,t){e=Ml(Il(e));return Rl(e,t>>>0||(Bl(Pl,e)?16:10))}:Rl,jl=(x({global:!0,forced:parseInt!==T},{parseInt:T}),o.map),_=(x({target:"Array",proto:!0,forced:!xo("map")},{map:function(e){return jl(this,e,1<arguments.length?arguments[1]:void 0)}}),x),Hl=o.findIndex,i=vo,Fl=!0,zl=("findIndex"in[]&&Array(1).findIndex(function(){Fl=!1}),_({target:"Array",proto:!0,forced:Fl},{findIndex:function(e){return Hl(this,e,1<arguments.length?arguments[1]:void 0)}}),i("findIndex"),a),Wl=ne,Ul=u,ql=String,Vl=TypeError,Yl=l,un=Object.
2setPrototypeOf||("__proto__"in{}?(()=>{var n,i=!1,e={};try{(n=((e,t,n)=>{try{return zl(Wl(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}})(Object.prototype,"__proto__","set"))(e,[]),i=e instanceof Array}catch(n){}return function(e,t){return Yl(e),(e=>{if("object"==typeof e||Ul(e))return;throw new Vl("Can't set "+ql(e)+" as a prototype")})(t),i?n(e,t):e.__proto__=t,e}})():void 0),Kl=u,Gl=c,Ql=un,Xl=Y,Jl=p,Zl=_e,ec=Gt,tc=RegExp.prototype,nc=d.f,Se=sn,Ka=d,y=ee,h=n,D=s("species"),k=n,$=t,T=a,o=Gn,ic=Ll,oc=f,rc=Ki,_=g.f,ac=_e,sc=ao,lc=A,cc=Nl,i=S,sn=jt,S=e,uc=p,dc=Rt.enforce,hc=w,pc=v,fc=s("match"),gc=$.RegExp,mc=gc.prototype,yc=$.SyntaxError,vc=T(mc.exec),bc=T("".charAt),wc=T("".replace),xc=T("".indexOf),Ac=T("".slice),Cc=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,kc=/a/g,_c=/a/g,w=new gc(kc)!==kc,Sc=i.MISSED_STICKY,Ec=i.UNSUPPORTED_Y;if(o("RegExp",k&&(!w||Sc||hc||pc||S(function(){return _c[fc]=!1,gc(kc)!==kc||gc(_c)===_c||"/a/i"!==String(gc(kc,"i"))})))){for(var Tc=function(e,t){var n,i,o=ac(mc,this),r=sc(e),a=void 0===t,s=[],l=e;if(!o&&r&&a&&e.constructor===Tc)return e;if((r||ac(mc,e))&&(e=e.source,a)&&(t=cc(l)),e=void 0===e?"":lc(e),t=void 0===t?"":lc(t),l=e,r=t=hc&&"dotAll"in kc&&(n=!!t&&-1<xc(t,"s"))?wc(t,/s/g,""):t,Sc&&"sticky"in kc&&(i=!!t&&-1<xc(t,"y"))&&Ec&&(t=wc(t,/y/g,"")),pc&&(e=(a=(e=>{for(var t,n=e.length,i=0,o="",r=[],a=rc(null),s=!1,l=!1,c=0,u="";i<=n;i++){if("\\"===(t=bc(e,i)))t+=bc(e,++i);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:vc(Cc,Ac(e,i+1))&&(i+=2,l=!0),o+=t,c++;continue;case">"===t&&l:if(""===u||uc(a,u))throw new yc("Invalid capture group name");a[u]=!0,l=!(r[r.length]=[u,c]),u="";continue}l?u+=t:o+=t}return[o,r]})(e))[0],s=a[1]),a=ic(gc(e,t),o?this:mc,Tc),(n||i||s.length)&&(t=dc(a),n&&(t.dotAll=!0,t.raw=Tc((e=>{for(var t,n=e.length,i=0,o="",r=!1;i<=n;i++)"\\"!==(t=bc(e,i))?r||"."!==t?("["===t?r=!0:"]"===t&&(r=!1),o+=t):o+="[\\s\\S]":o+=t+bc(e,++i);return o}
2)(e),r)),i&&(t.sticky=!0),s.length)&&(t.groups=s),e!==l)try{oc(a,"source",""===l?"(?:)":l)}catch(e){}return a},$c=_(gc),Dc=0;$c.length>Dc;)((e,t,n)=>{n in e||nc(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})})(Tc,gc,$c[Dc++]);(mc.constructor=Tc).prototype=mc,sn($,"RegExp",Tc,{constructor:!0})}v=y(v="RegExp"),h&&v&&!v[D]&&(v=v,T=D,(i={configurable:!0,get:function(){return this}}).get&&Se(i.get,T,{getter:!0}),i.set&&Se(i.set,T,{setter:!0}),Ka.f(v,T,i));var o=Ot.PROPER,k=jt,Lc=l,Nc=A,w=e,Ic=Nl,Mc=RegExp.prototype.toString,S=w(function(){return"/a/b"!==Mc.call({source:"a",flags:"b"})}),_=o&&"toString"!==Mc.name,sn=((S||_)&&k(RegExp.prototype,"toString",function(){var e=Lc(this);return"/"+Nc(e.source)+"/"+Nc(Ic(e))},{unsafe:!0}),a([].slice)),$=x,Rc=b,Oc=m,Pc=c,Bc=Ft,jc=Wt,Hc=Z,Fc=po,y=s,zc=sn,h=xo("slice"),Wc=y("species"),Uc=Array,qc=Math.max;$({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,i,o,r=Hc(this),a=jc(r),s=Bc(e,a),l=Bc(void 0===t?a:t,a);if(Rc(r)&&(n=r.constructor,(n=Oc(n)&&(n===Uc||Rc(n.prototype))||Pc(n)&&null===(n=n[Wc])?void 0:n)===Uc||void 0===n))return zc(r,s,l);for(i=new(void 0===n?Uc:n)(qc(l-s,0)),o=0;s<l;s++,o++)s in r&&Fc(i,o,r[s]);return i.length=o,i}});var Vc,D={},Se=e,Ka=u,v=c,T=E,i=jt,Yc=s("iterator"),w=!1;[].keys&&("next"in(o=[].keys())?(S=T(T(o)))!==Object.prototype&&(Vc=S):w=!0);function Kc(e,t,n){(e=e&&!n?e.prototype:e)&&!Jc(e,Zc)&&Xc(e,Zc,{configurable:!0,value:t})}function Gc(){return this}function Qc(e,t){return{value:e,done:t}}Ka((Vc=!v(Vc)||Se(function(){var e={};return Vc[Yc].call(e)!==e})?{}:Vc)[Yc])||i(Vc,Yc,function(){return this});var _={IteratorPrototype:Vc,BUGGY_SAFARI_ITERATORS:w},Xc=d.f,Jc=p,Zc=s("toStringTag"),eu=_.IteratorPrototype,tu=Ki,nu=G,iu=Kc,ou=D,ru=function(){return this},au=x,su=Y,lu=u,cu=E,uu=un,du=Kc,hu=f,pu=jt,fu=D,gu=Ot.PROPER,mu=Ot.CONFIGURABLE,yu=_.IteratorPrototype,vu=_.BUGGY_SAFARI_ITERATORS,bu=s("iterator"),wu="values",xu=Z,k=vo,m=D,sn=Rt,y=d.f,$=n,Au="Array Iterator",Cu=sn.set,ku=sn.getterFor(Au),h=((e,t,n,i,o,r,a)=>{var s;function l(e){if(e===o&&m)return m;if(!vu&&e&&e in f)return f[e];switch(e){case"keys":case wu:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}s=t,s+=" Iterator",(c=n).prototype=tu(eu,{next:nu(+!h,i)}),iu(c,s,!1),ou[s]=ru;var c,u,d,h=t+" Iterator",p=!1,f=e.prototype,g=f[bu]||f["@@iterator"]||o&&f[o],m=!vu&&g||l(o);if((i="Array"===t&&f.entries||g)&&(c=cu(i.call(new e)))!==Object.prototype&&c.next&&(cu(c)!==yu&&(uu?uu(c,yu):lu(c[bu])||pu(c,bu,Gc)),du(c,h,!0)),gu&&o===wu&&g&&g.name!==wu&&(mu?hu(f,"name",wu):(p=!0,m=function(){return su(g,this)})),o)if(u={values:l(wu),keys:r?m:l("keys"),entries:l("entries")},a)for(d in u)!vu&&!p&&d in f||pu(f,d,u[d]);else au({target:t,proto:!0,forced:vu||p},u);return f[bu]!==m&&pu(f,bu,m,{name:o}),fu[t]=m,u})(Array,"Array",function(e,t){Cu(this,{type:Au,target:xu(e),index:0,kind:t})},function(){var e=ku(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Qc(void 0,!0);switch(e.kind){case"keys":return Qc(n,!1);case"values":return Qc(t[n],!1)}return Qc([n,t[n]],!1)},"values"),c=m.Arguments=m.Array;if(k("keys"),k("values"),k("entries"),$&&"values"!==c.name)try{y(c,"name",{value:"values"})}catch(L){}function _u(e,t){if(e){if(e[Nu]!==Iu)try{Du(e,Nu,Iu)}catch(t){e[Nu]=Iu}if(Lu(e,t,!0),Tu[t])for(var n in $u)if(e[n]!==$u[n])try{Du(e,n,$u[n])}catch(t){e[n]=$u[n]}}}var Su,Eu=t,Tu=r,T=wi,$u=h,Du=f,Lu=Kc,Nu=s("iterator"),Iu=$u.values;for(Su in Tu)_u(Eu[Su]&&Eu[Su].prototype,Su);_u(T,"DOMTokenList");function Mu(e){var t,e=arguments.length<1?0:rd((e=>"bigint"==typeof(e=Zu(e,"number"))?e:ud(e))(e));return Xu(ad,t=this)&&ed(function(){id(t)})?Qu(Object(e),this,Mu):e}var Ru=b,Ou=TypeError,Pu=Object.getOwnPropertyDescriptor,o=n&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),S=x,Bu=re,ju=Ft,Hu=Ht,Fu=Wt,zu=o?function(e,t){if(Ru(e)&&!Pu(e,"length").writable)throw new Ou("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},Wu=bo,Uu=wo,qu=po,Vu=bs,Ka=xo("splice"),Yu=Math.max,Ku=Math.min,v=(S({target:"Array",proto:!0,forced:!Ka},{splice:function(e,t){var n,i,o,r,a,s,l=Bu(this),c=Fu(l),u=ju(e,c),e=arguments.length;for(0===e?n=i=0:i=1===e?(n=0,c-u):(n=e-2,Ku(Yu(Hu(t),0),c-u)),Wu(c+n-i),o=Uu(l,i),r=0;r<i;r++)(a=u+r)in l&&qu(o,r,l[a]);if(n<(o.length=i)){for(r=u;r<c-i;r++)s=r+n,(a=r+i)in l?l[s]=l[a]:Vu(l,s);for(r=c;c-i+n<r;r--)Vu(l,r-1)}else if(i<n)for(r=c-i;u<r;r--)s=r+n-1,(a=r+i-1)in l?l[s]=l[a]:Vu(l,s);for(r=0;r<n;r++)l[r+u]=arguments[r+2];return zu(l,c-i+n),o}}),t),Se=a(1..valueOf),i=x,w=n,Ki=v,u=a,un=Gn,Gu=p,Qu=Ll,Xu=_e,Ju=Ie,Zu=se,ed=e,Ot=g.f,td=q.f,nd=d.f,id=Se,od=ji.trim,rd=t.Number,ad=(Ki.Number,rd.prototype),sd=t.TypeError,ld=u("".slice),cd=u("".charCodeAt),ud=function(e){var t,n,i,o,r,a,s,l=Zu(e,"number");if(Ju(l))throw new sd("Cannot convert a Symbol value to a number");if("string"==typeof l&&2<l.length)if(l=od(l),43===(e=cd(l,0))||45===e){if(88===(t=cd(l,2))||120===t)return NaN}else if(48===e){switch(cd(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(r=(o=ld(l,2)).length,a=0;a<r;a++)if((s=cd(o,a))<48||i<s)return NaN;return parseInt(o,n)}return+l},_=un("Number",!rd(" 0o1")||!rd("0b1")||rd("+0x1"));if(Mu.prototype=ad,_&&(ad.constructor=Mu),i({global:!0,constructor:!0,wrap:!0,forced:_},{Number:Mu}),_)for(var dd=Ki.Number,hd=rd,pd,fd=w?Ot(hd):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),gd=0;fd.length>gd;gd++)Gu(hd,pd=fd[gd])&&!Gu(dd,pd)&&nd(dd,pd,td(hd,pd));var D=x,md=b,yd=a([].reverse),Rt=[1,2],vd=(D({target:"Array",proto:!0,forced:String(Rt)===String(Rt.reverse())},{reverse:function(){return md(this)&&(this.length=this.length),yd(this)}}),re),bd=E,sn=C,wd=(x({target:"Object",stat:!0,forced:e(function(){bd(1)}),sham:!sn},{getPrototypeOf:function(e){return bd(vd(e))}}
2),Y),xd=l,Ad=X,Cd=zt,kd=A,_d=J,Sd=ie,Ed=ho,Td=go;ro("match",function(i,s,l){return[function(e){var t=_d(this),n=Ad(e)?void 0:Sd(e,i);return n?wd(n,e,t):new RegExp(e)[i](kd(t))},function(e){var t=xd(this),n=kd(e),e=l(s,t,n);if(e.done)return e.value;if(!t.global)return Td(t,n);for(var i=t.unicode,o=[],r=t.lastIndex=0;null!==(a=Td(t,n));){var a=kd(a[0]);""===(o[r]=a)&&(t.lastIndex=Ed(n,Cd(t.lastIndex),i)),r++}return 0===r?null:o}]});var m=x,k=oo,$=q.f,$d=zt,Dd=A,Ld=Co,Nd=J,y=ko,Id=k("".startsWith),Md=k("".slice),Rd=Math.min,c=y("startsWith"),wi=(m({target:"String",proto:!0,forced:!(!c&&(r=$(String.prototype,"startsWith"))&&!r.writable||c)},{startsWith:function(e){var t=Dd(Nd(this)),n=(Ld(e),$d(Rd(1<arguments.length?arguments[1]:void 0,t.length))),e=Dd(e);return Id?Id(t,e,n):Md(t,n,n+e.length)===e}}),x),h=oo,f=q.f,Od=zt,Pd=A,Bd=Co,jd=J,T=ko,Hd=h("".endsWith),Fd=h("".slice),zd=Math.min,o=T("endsWith"),R=(wi({target:"String",proto:!0,forced:!!(o||!(S=f(String.prototype,"endsWith"))||S.writable)&&!o},{endsWith:function(e){var t=Pd(jd(this)),n=(Bd(e),1<arguments.length?arguments[1]:void 0),i=t.length,n=void 0===n?i:zd(Od(n),i),i=Pd(e);return Hd?Hd(t,i,n):Fd(t,n-i.length,n)===i}}),{getBootstrapVersion:function(){var e=5;try{var t=L.fn.dropdown.Constructor.VERSION;void 0!==t&&(e=parseInt(t,10))}catch(e){}try{var n=bootstrap.Tooltip.VERSION;void 0!==n&&(e=parseInt(n,10))}catch(e){}return e},getIconsPrefix:function(e){return{bootstrap3:"glyphicon",bootstrap4:"fa",bootstrap5:"bi","bootstrap-table":"icon",bulma:"fa",foundation:"fa",materialize:"material-icons",semantic:"fa"}[e]||"fa"},getIcons:function(e){return{glyphicon:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},fa:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},bi:{paginationSwitchDown:"bi-caret-down-square",paginationSwitchUp:"bi-caret-up-square",refresh:"bi-arrow-clockwise",toggleOff:"bi-toggle-off",toggleOn:"bi-toggle-on",columns:"bi-list-ul",detailOpen:"bi-plus",detailClose:"bi-dash",fullscreen:"bi-arrows-move",search:"bi-search",clearSearch:"bi-trash"},icon:{paginationSwitchDown:"icon-arrow-up-circle",paginationSwitchUp:"icon-arrow-down-circle",refresh:"icon-refresh-cw",toggleOff:"icon-toggle-right",toggleOn:"icon-toggle-right",columns:"icon-list",detailOpen:"icon-plus",detailClose:"icon-minus",fullscreen:"icon-maximize",search:"icon-search",clearSearch:"icon-trash-2"},"material-icons":{paginationSwitchDown:"grid_on",paginationSwitchUp:"grid_off",refresh:"refresh",toggleOff:"tablet",toggleOn:"tablet_android",columns:"view_list",detailOpen:"add",detailClose:"remove",fullscreen:"fullscreen",sort:"sort",search:"search",clearSearch:"delete"}}[e]},getSearchInput:function(e){return"string"==typeof e.options.searchSelector?L(e.options.searchSelector):e.$toolbar.find(".search input")},extend:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o=n[0]||{},r=1,a=!1;for("boolean"==typeof o&&(a=o,o=n[r]||{},r++),"object"!==P(o)&&"function"!=typeof o&&(o={});r<n.length;r++){var s=n[r];if(null!=s)for(var l in s){var c,u,d=s[l];"__proto__"!==l&&o!==d&&(c=Array.isArray(d),a&&d&&(this.isObject(d)||c)?(u=o[l],c&&Array.isArray(u)&&u.every(function(e){return!t.isObject(e)&&!Array.isArray(e)})?o[l]=d:(c=c&&!Array.isArray(u)?[]:c||this.isObject(u)?u:{},o[l]=this.extend(a,c,d))):void 0!==d&&(o[l]=d))}}return o},sprintf:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var o=!0,r=0,e=e.replace(/%s/g,function(){var e=n[r++];return void 0===e?(o=!1,""):e});return o?e:""},isObject:function(e){if("object"!==P(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},isEmptyObject:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(e).length&&e.constructor===Object},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},getFieldTitle:function(e,t){var n,i=N(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.field===t)return o.title}}catch(e){i.e(e)}finally{i.f()}return""},setFieldIndex:function(e){var t,n=0,i=[],o=N(e[0]);try{for(o.s();!(t=o.n()).done;)n+=t.value.colspan||1}catch(e){o.e(e)}finally{o.f()}for(var r=0;r<e.length;r++){i[r]=[];for(var a=0;a<n;a++)i[r][a]=!1}for(var s=0;s<e.length;s++){var l,c=N(e[s]);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.rowspan||1,h=u.colspan||1,p=i[s].indexOf(!1);
2u.colspanIndex=p,1===h?(u.fieldIndex=p,void 0===u.field&&(u.field=p)):u.colspanGroup=u.colspan;for(var f=0;f<d;f++)for(var g=0;g<h;g++)i[s+f][p+g]=!0}}catch(e){c.e(e)}finally{c.f()}}},normalizeAccent:function(e){return"string"!=typeof e?e:e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(e,t){var n,i,o=(n=[]).concat.apply(n,F(e)),r=N(e);try{for(r.s();!(i=r.n()).done;){var a,s=N(i.value);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(1<l.colspanGroup){for(var c=0,u=l.colspanIndex;u<l.colspanIndex+l.colspanGroup;u++)(t=>{o.find(function(e){return e.fieldIndex===t}).visible&&c++})(u);l.colspan=c,l.visible=0<c}}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}if(!(e.length<2)){var d,h=N(t);try{for(h.s();!(d=h.n()).done;)(()=>{var t=d.value,e=o.filter(function(e){return e.fieldIndex===t.fieldIndex});if(1<e.length){var n,i=N(e);try{for(i.s();!(n=i.n()).done;)n.value.visible=t.visible}catch(t){i.e(t)}finally{i.f()}}})()}catch(e){h.e(e)}finally{h.f()}}},getScrollBarWidth:function(){var e,t,n;return void 0===this.cachedWidth&&(n=L("<div/>").addClass("fixed-table-scroll-inner"),(e=L("<div/>").addClass("fixed-table-scroll-outer")).append(n),L("body").append(e),t=n[0].offsetWidth,e.css("overflow","scroll"),t===(n=n[0].offsetWidth)&&(n=e[0].clientWidth),e.remove(),this.cachedWidth=t-n),this.cachedWidth},calculateObjectValue:function(e,t,n,i){var o=t;if("string"==typeof t){var r=t.split(".");if(1<r.length){var a,o=window,s=N(r);try{for(s.s();!(a=s.n()).done;)o=o[a.value]}catch(e){s.e(e)}finally{s.f()}}else o=window[t]}return null!==o&&"object"===P(o)?o:"function"==typeof o?o.apply(e,n||[]):!o&&"string"==typeof t&&n&&this.sprintf.apply(this,[t].concat(F(n)))?this.sprintf.apply(this,[t].concat(F(n))):i},compareObjects:function(e,t,n){var i=Object.keys(e),o=Object.keys(t);if(n&&i.length!==o.length)return!1;for(var r=0,a=i;r<a.length;r++){var s=a[r];if(o.includes(s)&&e[s]!==t[s])return!1}return!0},regexCompare:function(e,t){try{var n=t.match(/^\/(.*?)\/([gim]*)$/);if(-1!==e.toString().search(n?new RegExp(n[1],n[2]):new RegExp(t,"gim")))return!0}catch(e){}return!1},escapeApostrophe:function(e){return e.toString().replace(/'/g,"&#39;")},escapeHTML:function(e){return e&&e.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},unescapeHTML:function(e){return"string"==typeof e&&e?e.toString().replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'"):e},removeHTML:function(e){return e&&e.toString().replace(/(<([^>]+)>)/gi,"").replace(/&[#A-Za-z0-9]+;/gi,"").trim()},getRealDataAttr:function(e){for(var t=0,n=Object.entries(e);t<n.length;t++){var i=M(n[t],2),o=i[0],i=i[1],r=o.split(/(?=[A-Z])/).join("-").toLowerCase();r!==o&&(e[r]=i,delete e[o])}return e},getItemField:function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:void 0,o=e;if(void 0!==i&&(n=i),"string"!=typeof t||e.hasOwnProperty(t))return n?this.escapeHTML(e[t]):e[t];var r,a=N(t.split("."));try{for(a.s();!(r=a.n()).done;)o=o&&o[r.value]}catch(e){a.e(e)}finally{a.f()}return n?this.escapeHTML(o):o},isIEBrowser:function(){return navigator.userAgent.includes("MSIE ")||/Trident.*rv:11\./.test(navigator.userAgent)},findIndex:function(e,t){var n,i=N(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(JSON.stringify(o)===JSON.stringify(t))return e.indexOf(o)}}catch(e){i.e(e)}finally{i.f()}return-1},trToData:function(c,e){var u=this,t=[],d=[];return e.each(function(s,e){var e=L(e),l={};l._id=e.attr("id"),l._class=e.attr("class"),l._data=u.getRealDataAttr(e.data()),l._style=e.attr("style"),e.find(">td,>th").each(function(e,t){for(var t=L(t),n=+t.attr("colspan")||1,i=+t.attr("rowspan")||1,o=e;d[s]&&d[s][o];o++);for(var r=o;r<o+n;r++)for(var a=s;a<s+i;a++)d[a]||(d[a]=[]),d[a][r]=!0;e=c[o].field;l[e]=u.escapeApostrophe(t.html().trim()),l["_".concat(e,"_id")]=t.attr("id"),l["_".concat(e,"_class")]=t.attr("class"),l["_".concat(e,"_rowspan")]=t.attr("rowspan"),l["_".concat(e,"_colspan")]=t.attr("colspan"),l["_".concat(e,"_title")]=t.attr("title"),l["_".concat(e,"_data")]=u.getRealDataAttr(t.data()),l["_".concat(e,"_style")]=t.attr("style")}),t.push(l)}),t},sort:function(e,t,n,i,o,r){if(null==e&&(e=""),null==t&&(t=""),i.sortStable&&e===t&&(e=o,t=r),this.isNumeric(e)&&this.isNumeric(t))return(e=parseFloat(e))<(t=parseFloat(t))?-1*n:t<e?n:0;if(i.sortEmptyLast){if(""===e)return 1;if(""===t)return-1}return e===t?0:-1===(e="string"!=typeof e?e.toString():e).localeCompare(t)?-1*n:n},getEventName:function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"")||"".concat(+new Date).concat(~~(1e6*Math.random()));return"".concat(e,"-").concat(t)}
2,hasDetailViewIcon:function(e){return e.detailView&&e.detailViewIcon&&!e.cardView},getDetailViewIndexOffset:function(e){return this.hasDetailViewIcon(e)&&"right"!==e.detailViewAlign?1:0},checkAutoMergeCells:function(e){var t,n=N(e);try{for(n.s();!(t=n.n()).done;)for(var i=t.value,o=0,r=Object.keys(i);o<r.length;o++){var a=r[o];if(a.startsWith("_")&&(a.endsWith("_rowspan")||a.endsWith("_colspan")))return!0}}catch(e){n.e(e)}finally{n.f()}return!1},deepCopy:function(e){return void 0===e?e:this.extend(!0,Array.isArray(e)?[]:{},e)},debounce:function(i,o,r){var a;return function(){var e=this,t=arguments,n=r&&!a;clearTimeout(a),a=setTimeout(function(){a=null,r||i.apply(e,t)},o),n&&i.apply(e,t)}}}),Ka=R.getBootstrapVersion(),n={3:{classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",select:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],toolbarDropdownItem:'<li class="dropdown-item-marker" role="menuitem"><label>%s</label></li>',toolbarDropdownSeparator:'<li class="divider"></li>',pageDropdown:['<ul class="dropdown-menu" role="menu">',"</ul>"],pageDropdownItem:'<li role="menuitem" class="%s"><a href="#">%s</a></li>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<span class="input-group-btn">%s</span></div>',searchInput:'<input lay-ignore class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},4:{classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",select:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['<div class="dropdown-menu dropdown-menu-right">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s<div class="input-group-append">%s</div></div>',searchInput:'<input lay-ignore class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}},5:{classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",select:"form-select",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{dataToggle:"data-bs-toggle",toolbarDropdown:['<div class="dropdown-menu dropdown-menu-end">',"</div>"],toolbarDropdownItem:'<label class="dropdown-item dropdown-item-marker">%s</label>',pageDropdown:['<div class="dropdown-menu">',"</div>"],pageDropdownItem:'<a class="dropdown-item %s" href="#">%s</a>',toolbarDropdownSeparator:'<div class="dropdown-divider"></div>',dropdownCaret:'<span class="caret"></span>',pagination:['<ul class="pagination%s">',"</ul>"],paginationItem:'<li class="page-item%s"><a class="page-link" aria-label="%s" href="javascript:void(0)">%s</a></li>',icon:'<i class="%s %s"></i>',inputGroup:'<div class="input-group">%s%s</div>',searchInput:'<input lay-ignore class="%s%s" type="text" placeholder="%s">',searchButton:'<button class="%s" type="button" name="search" title="%s">%s %s</button>',searchClearButton:'<button class="%s" type="button" name="clearSearch" title="%s">%s %s</button>'}}}[Ka],v={height:void 0,classes:"table table-bordered table-hover",buttons:{},theadClasses:"",headerStyle:function(e){return{}},rowStyle:function(e,t){return{}},rowAttributes:function(e,t){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortEmptyLast:!1,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,sortResetPage:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cac
2he:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(e){return e},queryParamsType:"limit",responseHandler:function(e){return e},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",footerField:"footer",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchable:!1,searchHighlight:!1,searchOnEnterKey:!1,strictSearch:!1,regexSearch:!1,searchSelector:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(e){return{}},searchAccentNeutralise:!1,showColumns:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,escapeTitle:!0,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(e){e=e.tagName;return["A","BUTTON"].includes(e)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(e,t){return""},detailFilter:function(e,t){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:n.classes.buttonsPrefix,buttonsClass:n.classes.buttons,iconsPrefix:void 0,icons:{},iconSize:void 0,loadingFontSize:"auto",loadingTemplate:function(e){return'<span class="loading-wrap">
2\n      <span class="loading-text">'.concat(e,'</span>\n      <span class="animation-wrap"><span class="animation-dot"></span></span>\n      </span>\n    ')},onAll:function(e,t){return!1},onClickCell:function(e,t,n,i){return!1},onDblClickCell:function(e,t,n,i){return!1},onClickRow:function(e,t){return!1},onDblClickRow:function(e,t){return!1},onSort:function(e,t){return!1},onCheck:function(e){return!1},onUncheck:function(e){return!1},onCheckAll:function(e){return!1},onUncheckAll:function(e){return!1},onCheckSome:function(e){return!1},onUncheckSome:function(e){return!1},onLoadSuccess:function(e){return!1},onLoadError:function(e){return!1},onColumnSwitch:function(e,t){return!1},onColumnSwitchAll:function(e){return!1},onPageChange:function(e,t){return!1},onSearch:function(e){return!1},onToggle:function(e){return!1},onPreBody:function(e){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(e,t,n){return!1},onCollapseRow:function(e,t){return!1},onRefreshOptions:function(e){return!1},onRefresh:function(e){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1},onTogglePagination:function(e){return!1},onVirtualScroll:function(e,t){return!1}},Gn={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(e){return"".concat(e," rows per page")},formatShowingRows:function(e,t,n,i){return void 0!==i&&0<i&&n<i?"Showing ".concat(e," to ").concat(t," of ").concat(n," rows (filtered from ").concat(i," total rows)"):"Showing ".concat(e," to ").concat(t," of ").concat(n," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(e){return"to page ".concat(e)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(e){return"Showing ".concat(e," rows")},formatSearch:function(){return"Search"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},Wd=(Object.assign(v,Gn),{VERSION:"1.22.2",THEME:"bootstrap".concat(Ka),CONSTANTS:n,DEFAULTS:v,COLUMN_DEFAULTS:{field:void 0,title:void 0,titleTooltip:void 0,class:void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,switchable:!0,switchableLabel:void 0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,footerStyle:void 0,detailFormatter:void 0,searchFormatter:!0,searchHighlightFormatter:!1,escape:void 0,events:void 0},METHODS:["getOptions","refreshOptions","getData","getSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","sortBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],EVENTS:{"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","column-switch-all.bs.table":"onColumnSwitchAll","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody","toggle-pagination.bs.table":"onTogglePagination","virtual-scroll.bs.table":"onVirtualScroll"},LOCALES:{en:Gn,"en-US":Gn}}),Ud=(H(Vd,[{key:"initDOM",value:function(e,t){void 0===this.clusterHeight&&(this.cache.scrollTop=this.scrollEl.scrollTop,this.cache.data=this.contentEl.innerHTML=e[0]+e[0]+e[0],this.getRowsHeight(e));var e=this.initData(e,this.getNum(t)),n=e.rows.join(""),i=this.checkChanges("data",n),o=this.checkChanges("top",e.topOffset),r=this.checkChanges("bottom",e.bottomOffset),a=[];i&&o?(e.topOffset&&a.push(this.getExtra("top",e.topOffset)),a.push(n),e.bottomOffset&&a.push(this.getExtra("bottom",e.bottomOffset)),this.startIndex=e.start,this.endIndex=e.end,this.contentEl.innerHTML=a.join(""),t&&(this.contentEl.scrollTop=this.cache.scrollTop)):r&&(this.contentEl.lastChild.style.height="".concat(e.bottomOffset,"px"))}},{key:"getRowsHeight",value:function(){var e;void 0===this.itemHeight&&(e=(e=this.contentEl.children)[Math.floor(e.length/2)],this.itemHeight=e.offsetHeight),this.blockHeight=50*this.itemHeight,this.clusterRows=200,this.clusterHeight=4*this.blockHeight}},{key:"getNum",value:function(e){return this.scrollTop=(e?this.cache:this.scrollEl).scrollTop,Math.floor(this.scrollTop/(this.clusterHeight-this.blockHeight))||0}},{key:"initData",value:function(e,t){if(e.length<50)return{topOffset:0,bottomOffset:0,rowsAbove:0,rows:e};var t=Math.max((this.clusterRows-50)*t,0),n=t+this.clusterRows,i=Math.max(t*this.itemHeight,0),o=Math.max((e.length-n)*this.itemHeight,0),r=[],a=t;i<1&&a++;for(var s=t;s<n;s++)e[s]&&r.push(e[s]);return{start:t,end:n,topOffset:i,bottomOffset:o,rowsAbove:a,rows:r}}},{key:"checkChanges",value:function(e,t){var n=t!==this.cache[e];return this.cache[e]=t,n}},{key:"getExtra",value:function(e,t){var n=document.createElement("tr");return n.className="virtual-scroll-".concat(e),t&&(n.style.height="".concat(t,"px")),n.outerHTML}}]),Vd),I=(H(qd,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var e=this.options,t=(this.constants=Wd.CONSTANTS,this.constants.theme=L.fn.bootstrapTable.theme,this.constants.dataToggle=this.constants.html.dataToggle||"data-toggle",R.getIconsPrefix(L.fn.bootstrapTable.theme)),n=R.getIcons(t),t=("str
2ing"==typeof e.icons&&(e.icons=R.calculateObjectValue(null,e.icons)),e.iconsPrefix=e.iconsPrefix||L.fn.bootstrapTable.defaults.iconsPrefix||t,e.icons=Object.assign(n,L.fn.bootstrapTable.defaults.icons,e.icons),e.buttonsPrefix?"".concat(e.buttonsPrefix,"-"):"");this.constants.buttonsClass=[e.buttonsPrefix,t+e.buttonsClass,R.sprintf("".concat(t,"%s"),e.iconSize)].join(" ").trim(),this.buttons=R.calculateObjectValue(this,e.buttons,[],{}),"object"!==P(this.buttons)&&(this.buttons={})}},{key:"initLocale",value:function(){if(this.options.locale){var e=L.fn.bootstrapTable.locales,t=this.options.locale.split(/-|_/),n=(t[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),{});e[this.options.locale]?n=e[this.options.locale]:e[t.join("-")]?n=e[t.join("-")]:e[t[0]]&&(n=e[t[0]]);for(var i=0,o=Object.entries(n);i<o.length;i++){var r=M(o[i],2),a=r[0];this.options[a]===qd.DEFAULTS[a]&&(this.options[a]=r[1])}}}},{key:"initContainer",value:function(){var e=["top","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination clearfix"></div>':"",t=["bottom","both"].includes(this.options.paginationVAlign)?'<div class="fixed-table-pagination"></div>':"",n=R.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=L('\n      <div class="bootstrap-table '.concat(this.constants.theme,'">\n      <div class="fixed-table-toolbar"></div>\n      ').concat(e,'\n      <div class="fixed-table-container">\n      <div class="fixed-table-header"><table></table></div>\n      <div class="fixed-table-body">\n      <div class="fixed-table-loading">\n      ').concat(n,'\n      </div>\n      </div>\n      <div class="fixed-table-footer"></div>\n      </div>\n      ').concat(t,"\n      </div>\n    ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.options.buttonsToolbar?this.$toolbar=L("body").find(this.options.buttonsToolbar):this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('<div class="clearfix"></div>'),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('<div class="fixed-table-border"></div>'),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var e,i=this,n=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=L('<thead class="'.concat(this.options.theadClasses,'"></thead>')).appendTo(this.$el),this._headerTrClasses=[],this._headerTrStyles=[],this.$header.find("tr").each(function(e,t){var t=L(t),o=[];t.find("th").each(function(e,t){var n,t=L(t),i=(void 0!==t.data("field")&&t.data("field","".concat(t.data("field"))),Object.assign({},t.data()));for(n in i)L.fn.bootstrapTable.columnDefaults.hasOwnProperty(n)&&delete i[n];o.push(R.extend({},{_data:R.getRealDataAttr(i),title:t.html(),class:t.attr("class"),titleTooltip:t.attr("title"),rowspan:t.attr("rowspan")?+t.attr("rowspan"):void 0,colspan:t.attr("colspan")?+t.attr("colspan"):void 0},t.data()))}),n.push(o),t.attr("class")&&i._headerTrClasses.push(t.attr("class")),t.attr("style")&&i._headerTrStyles.push(t.attr("style"))}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=R.extend(!0,[],n,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],R.setFieldIndex(this.options.columns),this.options.columns.forEach(function(e,n){e.forEach(function(e,t){e=R.extend({},qd.COLUMN_DEFAULTS,e,{passed:e});void 0!==e.fieldIndex&&(i.columns[e.fieldIndex]=e,i.fieldsColumnsIndex[e.field]=e.fieldIndex),i.options.columns[n][t]=e})}),this.options.data.length||(e=R.trToData(this.columns,this.$el.find(">tbody>tr"))).length&&(this.options.data=e,this.fromHtml=!0),this.options.pagination&&"server"!==this.options.sidePagination||(this.footerData=R.trToData(this.columns,this.$el.find(">tfoot>tr"))),this.footerData&&this.$el.find("tfoot").html("<tr></tr>"),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var x=this,A={},i=[],e=(this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},R.updateFieldGroup(this.options.columns,this.columns),this.options.columns.forEach(function(e,b){var t,w=[],n=(w.push("<tr".concat(R.sprintf(' class="%s"',x._headerTrClasses[b])," ").concat(R.sprintf(' style="%s"',x._headerTrStyles[b]),">")),"");
20===b&&R.hasDetailViewIcon(x.options)&&(t=1<x.options.columns.length?' rowspan="'.concat(x.options.columns.length,'"'):"",n='<th class="detail"'.concat(t,'>\n          <div class="fht-cell"></div>\n          </th>')),n&&"right"!==x.options.detailViewAlign&&w.push(n),e.forEach(function(e,t){var n=R.sprintf(' class="%s"',e.class),i=e.widthUnit,o=parseFloat(e.width),r=e.halign||e.align,a=R.sprintf("text-align: %s; ",r),s=R.sprintf("text-align: %s; ",e.align),l=R.sprintf("vertical-align: %s; ",e.valign);if(l+=R.sprintf("width: %s; ",!e.checkbox&&!e.radio||o?o?o+i:void 0:e.showSelectTitle?void 0:"36px"),void 0!==e.fieldIndex||e.visible){var o=R.calculateObjectValue(null,x.options.headerStyle,[e]),c=[],u=[],i="";if(o&&o.css)for(var d=0,h=Object.entries(o.css);d<h.length;d++){var p=M(h[d],2),f=p[0],p=p[1];c.push("".concat(f,": ").concat(p))}if(o&&o.classes&&(i=R.sprintf(' class="%s"',e.class?[e.class,o.classes].join(" "):o.classes)),void 0!==e.fieldIndex){if(x.header.fields[e.fieldIndex]=e.field,x.header.styles[e.fieldIndex]=s+l,x.header.classes[e.fieldIndex]=n,x.header.formatters[e.fieldIndex]=e.formatter,x.header.detailFormatters[e.fieldIndex]=e.detailFormatter,x.header.events[e.fieldIndex]=e.events,x.header.sorters[e.fieldIndex]=e.sorter,x.header.sortNames[e.fieldIndex]=e.sortName,x.header.cellStyles[e.fieldIndex]=e.cellStyle,x.header.searchables[e.fieldIndex]=e.searchable,!e.visible)return;if(x.options.cardView&&!e.cardVisible)return;A[e.field]=e}if(0<Object.keys(e._data||{}).length)for(var g=0,m=Object.entries(e._data);g<m.length;g++){var y=M(m[g],2),v=y[0],y=y[1];u.push("data-".concat(v,"='").concat("object"===P(y)?JSON.stringify(y):y,"'"))}w.push("<th".concat(R.sprintf(' title="%s"',e.titleTooltip)),e.checkbox||e.radio?R.sprintf(' class="bs-checkbox %s"',e.class||""):i||n,R.sprintf(' style="%s"',a+l+c.join("; ")||void 0),R.sprintf(' rowspan="%s"',e.rowspan),R.sprintf(' colspan="%s"',e.colspan),R.sprintf(' data-field="%s"',e.field),0===t&&0<b?" data-not-first-th":"",0<u.length?u.join(" "):"",">"),w.push(R.sprintf('<div class="th-inner %s">',x.options.sortable&&e.sortable?"sortable".concat("center"===r?" sortable-center":""," both"):""));o=x.options.escape&&x.options.escapeTitle?R.escapeHTML(e.title):e.title,s=o;e.checkbox&&(o="",!x.options.singleSelect&&x.options.checkboxHeader&&(o='<label><input lay-ignore name="btSelectAll" type="checkbox" /><span></span></label>'),x.header.stateField=e.field),e.radio&&(o="",x.header.stateField=e.field),!o&&e.showSelectTitle&&(o+=s),w.push(o),w.push("</div>"),w.push('<div class="fht-cell"></div>'),w.push("</div>"),w.push("</th>")}}),n&&"right"===x.options.detailViewAlign&&w.push(n),w.push("</tr>"),3<w.length&&i.push(w.join(""))}),this.$header.html(i.join("")),this.$header.find("th[data-field]").each(function(e,t){L(t).data(A[L(t).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(e){var t=L(e.currentTarget);if(x.options.detailView&&!t.parent().hasClass("bs-checkbox")&&t.closest(".bootstrap-table")[0]!==x.$container[0])return!1;x.options.sortable&&t.parent().data().sortable&&x.onSort(e)}),R.getEventName("resize.bootstrap-table",this.$el.attr("id")));L(window).off(e),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),L(window).on(e,function(){return x.resetView()})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(e){e.stopPropagation();e=L(e.currentTarget).prop("checked");x[e?"checkAll":"uncheckAll"](),x.updateSelected()})}},{key:"initData",value:function(e,t){"append"===t?this.options.data=this.options.data.concat(e):"prepend"===t?this.options.data=[].concat(e).concat(this.options.data):(e=e||R.deepCopy(this.options.data),this.options.data=Array.isArray(e)?e:e[this.options.dataField]),this.data=F(this.options.data),this.options.sortReset&&(this.unsortedData=F(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var r=this,a=this.options.sortName,s="desc"===this.options.sortOrder?-1:1,l=this.header.fields.indexOf(this.options.sortName);-1!==l?(this.options.sortStable&&this.data.forEach(function(e,t){e.hasOwnProperty("_position")||(e._position=t)}),this.options.customSort?R.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(e,t){r.header.sortNames[l]&&(a=r.header.sortNames[l]);var n=R.getItemField(e,a,r.options.escape),i=R.getItemField(t,a,r.options.escape),o=R.calculateObjectValue(r.header,r.header.sorters[l],[n,i,e,t]);return void 0!==o?r.options.sortStable&&0===o?s*(e._position-t._position):s*o:R.sort(n,i,s,r.options,e._position,t._position)}),void 0!==this.options.sortClass&&(clearTimeout(0),setTimeout(function(){r.$el.removeClass(r.options.sortClass);var e=r.$header.find('[data-field="'.concat(r.options.sortName,'"]')).index();r.$el.find("tr td:nth-child(".concat(e+1,")")).addClass(r.options.sortClass)},250))):this.options.sortReset&&(this.data=F(this.unsortedData))}},{key:"sortBy",value:function(e){this.options.sortName=e.field,this.options.sortOrder=e.hasOwnProperty("sortOrder")?e.sortOrder:"asc",this._sort()}},{key:"onSort",value:function(e){var t,n,i=e.type,e=e.currentTarget,i="keypress"===i?L(e):L(e).parent(),e=this.$header.find("th").eq(i.index());this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===i.data("field")?(t=this.options.sortOrder,n=this.columns[this.fieldsColumnsIndex[i.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[i.data("field")]].order,void 0===t?this.options.sortOrder="asc":"asc"===t?this.options.sortOrder=!this.options.sortReset||"asc"===n?"desc":void 0:"desc"===this.options.sortOrder&&(this.options.sortOrder=!this.options.sortReset||"desc"===n?"asc":void 0),void 0===this.options.sortOrder&&(this.options.sortName=void 0)):(this.options.sortName=i.data("field"),this.options.rememberOrder?this.options.sortOrder="asc"===i.data("order")?"desc":"asc":this.options.sortOrder=this.columns[this.fieldsColumnsIndex[i.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[i.data("field")]].order),i.add(e).data("order",this.options.sortOrder),this.getCaret(),this._sort()}},{key:"_sort",value:function(){"server"===this.options.sidePagination&&this.options.serverSort?(this.options.pageNumber=1,this.initServer(this.options.silentSort)):(this.options.pagination&&this.options.sortResetPage&&(this.options.pageNumber=1,this.initPagination()),this.trigger("sort",this.options.sortName,this.options.sortOrder),this.initSort(),this.initBody())}},{key:"initToolbar",value:function(){var a=this,s=this.options,e=[],n=0,l=0;this.$toolbar.find(".bs-bars").children().length&&L("body").append(L(s.toolbar)),this.$toolbar.html(""),"string"!=typeof s.toolbar&&"object"!==P(s.toolbar)||L(R.sprintf('<div class="bs-bars %s-%s"></div>',this.constants.classes.pull,s.toolbarAlign)).appendTo(this.$toolbar).append(L(s.toolbar)),e=['<div class="'.concat(["columns","columns-".concat(s.buttonsAlign),this.constants.classes.buttonsGroup,"".concat(this.constants.classes.pull,"-").concat(s.buttonsAlign)].join(" "),'">')],"string"==typeof s.buttonsOrder&&(s.buttonsOrder=s.buttonsOrder.replace(/\[|\]| |'/g,"").split(",")),this.buttons=Object.assign(this.buttons,{paginationSwitch:{text:s.pagination?s.formatPaginationSwitchUp():s.formatPaginationSwitchDown(),icon:s.pagination?s.icons.paginationSwitchDown:s.icons.paginationSwitchUp,render:!1,event:this.togglePagination,attributes:{"aria-label":s.formatPaginationSwitch(),title:s.formatPaginationSwitch()}},refresh:{text:s.formatRefresh(),icon:s.icons.refresh,render:!1,event:this.refresh,attributes:{"aria-label":s.formatRefresh(),title:s.formatRefresh()}},toggle:{text:s.formatToggleOn(),icon:s.icons.toggleOff,render:!1,event:this.toggleView,attributes:{"aria-label":s.formatToggleOn(),title:s.formatToggleOn()}},fullscreen:{text:s.formatFullscreen(),icon:s.icons.fullscreen,render:!1,event:this.toggleFullscreen,attributes:{"aria-label":s.formatFullscreen(),title:s.formatFullscreen()}},columns:{render:!1,html:function(){var e,o=[],r=(o.push('<div class="keep-open '.concat(a.constants.classes.buttonsDropdown,'">\n            <button class="').concat(a.constants.buttonsClass,' dropdown-toggle" type="button" ').concat(a.constants.dataToggle,'="dropdown"\n            aria-label="').concat(s.formatColumns(),'" title="').concat(s.formatColumns(),'">\n            ').concat(s.showButtonIcons?R.sprintf(a.constants.html.icon,s.iconsPrefix,s.icons.columns):"","\n            ").concat(s.showButtonText?s.formatColumns():"","\n            ").concat(a.constants.html.dropdownCaret,"\n            </button>\n            ").concat(a.constants.html.toolbarDropdown[0])),s.showColumnsSearch&&(o.push(R.sprintf(a.constants.html.toolbarDropdownItem,R.sprintf('<input lay-ignore type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">',a.constants.classes.input,s.formatSearch()))),o.push(a.constants.html.toolbarDropdownSeparator)),s.showColumnsToggleAll&&(e=a.getVisibleColumns().length===a.columns.filter(function(e){return!a.isSelectionColumn(e)}).length,o.push(R.sprintf(a.constants.html.toolbarDropdownItem,R.sprintf('<input lay-ignore type="checkbox" class="toggle-all" %s> <span>%s</span>',e?'checked="checked"':"",s.formatColumnsToggleAll()))),o.push(a.constants.html.toolbarDropdownSeparator)),0);return a.columns.forEach(function(e){e.visible&&r++}),a.columns.forEach(function(e,t){var n,i;a.isSelectionColumn(e)||s.cardView&&!e.cardVisible||(n=e.visible?' checked="checked"':"",i=r<=s.minimumCountColumns&&n?' disabled="disabled"':"",e.switchable&&(o.push(R.sprintf(a.constants.html.toolbarDropdownItem,R.sprintf('<input lay-ignore type="checkbox" data-field="%s" value="%s"%s%s> <span>%s</span>',e.field,t,n,i,e.switchableLabel||e.title))),l++))}),o.push(a.constants.html.toolbarDropdown[1],"</div>"),o.join("")}}});for(var t={},i=0,o=Object.entries(this.buttons);i<o.length;i++){var r=M(o[i],2),c=r[0],r=r[1],u=void 0;if(r.hasOwnProperty("html"))"function"==typeof r.html?u=r.html():"string"==typeof r.html&&(u=r.html);else{var d=this.constants.buttonsClass;if(r.hasOwnProperty("attributes")&&r.attributes.class&&(d+=" ".concat(r.attributes.class)),u='<button class="'.concat(d,'" type="button" name="').concat(c,'"'),r.hasOwnProperty("attributes"))for(var h=0,p=Object.entries(r.attributes);h<p.length;h++){var f=M(p[h],2),g=f[0],f=f[1];"class"!==g&&(u+=" ".concat(g,'="').concat(f,'"'))}u+=">",s.showButtonIcons&&r.hasOwnProperty("icon")&&(u+="".concat(R.sprintf(this.constants.html.icon,s.iconsPrefix,r.icon)," ")),s.showButtonText&&r.hasOwnProperty("text")&&(u+=r.text),u+="</button>"}t[c]=u;var d="show".concat(c.charAt(0).toUpperCase()).concat(c.substring(1)),m=s[d];!(!r.hasOwnProperty("render")||r.hasOwnProperty("render")&&r.render)||void 0!==m&&!0!==m||(s[d]=!0),s.buttonsOrder.includes(c)||s.buttonsOrder.push(c)}var y,v=N(s.buttonsOrder);try{for(v.s();!(y=v.n()).done;){var b=y.value;s["show".concat(b.charAt(0).toUpperCase()).concat(b.substring(1))]&&e.push(t[b])}}catch(e){v.e(e)}finally{v.f()}e.push("</div>"),(this.showToolbar||2<e.length)&&this.$toolbar.append(e.join(""));for(var w,x,A,C=0,k=Object.entries(this.buttons);C<k.length;C++)(()=>{var e,t=M(k[C],2),i=t[0];if((t=t[1]).hasOwnProperty("event")){if("function"==typeof t.event||"string"==typeof t.event)return e="string"==typeof t.event?window[t.event]:t.event,a.$toolbar.find('button[name="'.concat(i,'"]')).off("click").on("click",function(){return e.call(a)});for(var o=0,r=Object.entries(t.event);o<r.length;o++)(()=>{var e=M(r[o],2),t=e[0],n="string"==typeof(e=e[1])?window[e]:e;a.$toolbar.find('button[name="'.concat(i,'"]')).off(t).on(t,function(){return n.call(a)})})()}})();s.showColumns&&(w=(T=this.$toolbar.find(".keep-open")).find('input[type="checkbox"]:not(".toggle-all")'),x=T.find('input[type="checkbox"].toggle-all'),l<=s.minimumCountColumns&&T.find("input").prop("disabled",!0),T.find("li, label").off("click").on("click",function(e){e.stopImmediatePropagation()}),w.off("click").on("click",function(e){e=e.currentTarget,e=L(e);a._toggleColumn(e.val(),e.prop("checked"),!1),a.trigger("column-switch",e.data("field"),e.prop("checked")),x.prop("checked",w.filter(":checked").length===a.columns.filter(function(e){return!a.isSelectionColumn(e)}).length)}
2),x.off("click").on("click",function(e){e=e.currentTarget;a._toggleAllColumns(L(e).prop("checked")),a.trigger("column-switch-all",L(e).prop("checked"))}),s.showColumnsSearch)&&(S=T.find('[name="columnsSearch"]'),A=T.find(".dropdown-item-marker"),S.on("keyup paste change",function(e){var e=e.currentTarget,n=L(e).val().toLowerCase();A.show(),w.each(function(e,t){t=L(t).parents(".dropdown-item-marker");t.text().toLowerCase().includes(n)||t.hide()})}));function _(e){var t=e.is("select")?"change":"keyup drop blur mouseup";e.off(t).on(t,function(e){s.searchOnEnterKey&&13!==e.keyCode||[37,38,39,40].includes(e.keyCode)||(clearTimeout(n),n=setTimeout(function(){a.onSearch({currentTarget:e.currentTarget})},s.searchTimeOut))})}var S,E,T,$,D;(s.search||this.showSearchClearButton)&&"string"!=typeof s.searchSelector?(e=[],T=R.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,s.formatSearch(),s.showButtonIcons?R.sprintf(this.constants.html.icon,s.iconsPrefix,s.icons.search):"",s.showButtonText?s.formatSearch():""),S=R.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,s.formatClearSearch(),s.showButtonIcons?R.sprintf(this.constants.html.icon,s.iconsPrefix,s.icons.clearSearch):"",s.showButtonText?s.formatClearSearch():""),$=E='<input lay-ignore class="'.concat(this.constants.classes.input,"\n        ").concat(R.sprintf(" %s%s",this.constants.classes.inputPrefix,s.iconSize),'\n        search-input" type="search" aria-label="').concat(s.formatSearch(),'" placeholder="').concat(s.formatSearch(),'" autocomplete="off">'),(s.showSearchButton||s.showSearchClearButton)&&(T=(s.showSearchButton?T:"")+(s.showSearchClearButton?S:""),$=s.search?R.sprintf(this.constants.html.inputGroup,E,T):T),e.push(R.sprintf('\n        <div class="'.concat(this.constants.classes.pull,"-").concat(s.searchAlign," search ").concat(this.constants.classes.inputGroup,'">\n          %s\n        </div>\n      '),$)),this.$toolbar.append(e.join("")),D=R.getSearchInput(this),s.showSearchButton&&(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(){clearTimeout(n),n=setTimeout(function(){a.onSearch({currentTarget:D})},s.searchTimeOut)}),!s.searchOnEnterKey)||_(D),s.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){a.resetSearch()})):"string"==typeof s.searchSelector&&_(R.getSearchInput(this))}},{key:"onSearch",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.currentTarget,e=e.firedByInitSearchText,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];if(void 0!==t&&L(t).length&&n){n=L(t).val().trim();if(this.options.trimOnSearch&&L(t).val()!==n&&L(t).val(n),this.searchText===n)return;var i=R.getSearchInput(this),t=t instanceof jQuery?t:L(t);(t.is(i)||t.hasClass("search-input"))&&(this.searchText=n,this.options.searchText=n)}e||(this.options.pageNumber=1),this.initSearch(),e&&"client"!==this.options.sidePagination||this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var d,h,r,p,f=this;this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination&&(this.options.customSearch?this.data=R.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]):(d=this.searchText&&(this.fromHtml?R.escapeHTML(this.searchText):this.searchText),h=d?d.toLowerCase():"",r=R.isEmptyObject(this.filterColumns)?null:this.filterColumns,this.options.searchAccentNeutralise&&(h=R.normalizeAccent(h)),"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(e){return f.filterOptions.filterAlgorithm.apply(null,[e,r])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=r?this.options.data.filter(function(e){var t=f.filterOptions.filterAlgorithm;if("and"===t){for(var n in r)if(Array.isArray(r[n])&&!r[n].includes(e[n])||!Array.isArray(r[n])&&e[n]!==r[n])return!1}else if("or"===t){var i,o=!1;for(i in r)(Array.isArray(r[i])&&r[i].includes(e[i])||!Array.isArray(r[i])&&e[i]===r[i])&&(o=!0);return o}return!0}):F(this.options.data)),p=this.getVisibleFields(),this.data=h?this.data.filter(function(e,t){for(var n=0;n<f.header.fields.length;n++)if(f.header.searchables[n]&&(!f.options.visibleSearch||-1!==p.indexOf(f.header.fields[n]))){var i=R.isNumeric(f.header.fields[n])?parseInt(f.header.fields[n],10):f.header.fields[n],o=f.columns[f.fieldsColumnsIndex[i]],r=void 0;if("string"==typeof i)for(var r=e,a=i.split("."),s=0;s<a.length;s++){if(null===r[a[s]]){r=null;break}r=r[a[s]]}else r=e[i];if(f.options.searchAccentNeutralise&&(r=R.normalizeAccent(r)),"string"==typeof(r=o&&o.searchFormatter?R.calculateObjectValue(o,f.header.formatters[n],[r,e,t,o.field],r):r)||"number"==typeof r){if(f.options.strictSearch&&"".concat(r).toLowerCase()===h||f.options.regexSearch&&R.regexCompare(r,d))return!0;var i=/(?:(<=|=>|=<|>=|>|<)(?:\s+)?(-?\d+)?|(-?\d+)?(\s+)?(<=|=>|=<|>=|>
2|<))/gm.exec(f.searchText),l=!1;if(i){var o=i[1]||"".concat(i[5],"l"),i=i[2]||i[3],c=parseInt(r,10),u=parseInt(i,10);switch(o){case">":case"<l":l=u<c;break;case"<":case">l":l=c<u;break;case"<=":case"=<":case">=l":case"=>l":l=c<=u;break;case">=":case"=>":case"<=l":case"=<l":l=u<=c}}if(l||"".concat(r).toLowerCase().includes(h))return!0}}return!1}):this.data),this.options.sortReset&&(this.unsortedData=F(this.data)),this.initSort())}},{key:"initPagination",value:function(){var n=this,i=this.options;if(i.pagination){this.$pagination.show();var e,t,o,r,a,s=[],l=!1,c=this.getData({includeHiddenRows:!1}),u=(u="string"==typeof(u=i.pageList)?u.replace(/\[|\]| /g,"").toLowerCase().split(","):u).map(function(e){return"string"==typeof e?e.toLowerCase()===i.formatAllRows().toLowerCase()||["all","unlimited"].includes(e.toLowerCase())?i.formatAllRows():+e:e});if(this.paginationParts=i.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==i.sidePagination&&(i.totalRows=c.length),this.totalPages=0,i.totalRows&&(i.pageSize===i.formatAllRows()&&(i.pageSize=i.totalRows,l=!0),this.totalPages=1+~~((i.totalRows-1)/i.pageSize),i.totalPages=this.totalPages),0<this.totalPages&&i.pageNumber>this.totalPages&&(i.pageNumber=this.totalPages),this.pageFrom=(i.pageNumber-1)*i.pageSize+1,this.pageTo=i.pageNumber*i.pageSize,this.pageTo>i.totalRows&&(this.pageTo=i.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&s.push('<div class="'.concat(this.constants.classes.pull,"-").concat(i.paginationDetailHAlign,' pagination-detail">')),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort"))&&(c=this.paginationParts.includes("pageInfoShort")?i.formatDetailPagination(i.totalRows):i.formatShowingRows(this.pageFrom,this.pageTo,i.totalRows,i.totalNotFiltered),s.push('<span class="pagination-info">\n      '.concat(c,"\n      </span>"))),this.paginationParts.includes("pageSize")&&(s.push('<div class="page-list">'),a=['<div class="'.concat(this.constants.classes.paginationDropdown,'">\n        <button class="').concat(this.constants.buttonsClass,' dropdown-toggle" type="button" ').concat(this.constants.dataToggle,'="dropdown">\n        <span class="page-size">\n        ').concat(l?i.formatAllRows():i.pageSize,"\n        </span>\n        ").concat(this.constants.html.dropdownCaret,"\n        </button>\n        ").concat(this.constants.html.pageDropdown[0])],u.forEach(function(e,t){(!i.smartDisplay||0===t||u[t-1]<i.totalRows||e===i.formatAllRows())&&(t=l?e===i.formatAllRows()?n.constants.classes.dropdownActive:"":e===i.pageSize?n.constants.classes.dropdownActive:"",a.push(R.sprintf(n.constants.html.pageDropdownItem,t,e)))}),a.push("".concat(this.constants.html.pageDropdown[1],"</div>")),s.push(i.formatRecordsPerPage(a.join("")))),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&s.push("</div></div>"),this.paginationParts.includes("pageList")){s.push('<div class="'.concat(this.constants.classes.pull,"-").concat(i.paginationHAlign,' pagination">'),R.sprintf(this.constants.html.pagination[0],R.sprintf(" pagination-%s",i.iconSize)),R.sprintf(this.constants.html.paginationItem," page-pre",i.formatSRPaginationPreText(),i.paginationPreText)),t=this.totalPages<i.paginationSuccessivelySize?(p=1,this.totalPages):(p=i.pageNumber-i.paginationPagesBySide)+2*i.paginationPagesBySide,i.pageNumber<i.paginationSuccessivelySize-1&&(t=i.paginationSuccessivelySize),(p=i.paginationSuccessivelySize>this.totalPages-p?p-(i.paginationSuccessivelySize-(this.totalPages-p))+1:p)<1&&(p=1),t>this.totalPages&&(t=this.totalPages);var c=Math.round(i.paginationPagesBySide/2),d=function(e){return R.sprintf(n.constants.html.paginationItem,(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"")+(e===i.pageNumber?" ".concat(n.constants.classes.paginationActive):""),i.formatSRPaginationPageText(e),e)};if(1<p){var h=i.paginationPagesBySide;for(p<=h&&(h=p-1),e=1;e<=h;e++)s.push(d(e));p-1===h+1?s.push(d(e=p-1)):h<p-1&&(p-2*i.paginationPagesBySide>i.paginationPagesBySide&&i.paginationUseIntermediate?(e=Math.round((p-c)/2+c),s.push(d(e," page-intermediate"))):s.push(R.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(e=p;e<=t;e++)s.push(d(e));if(this.totalPages>t){var p=this.totalPages-(i.paginationPagesBySide-1);for(t+1===(p=p<=t?t+1:p)-1?s.push(d(e=t+1)):t+1<p&&(this.totalPages-t>2*i.paginationPagesBySide&&i.paginationUseIntermediate?(e=Math.round((this.totalPages-c-t)/2+t),s.push(d(e," page-intermediate"))):s.push(R.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),e=p;e<=this.totalPages;e++)s.push(d(e))}s.push(R.sprintf(this.constants.html.paginationItem," page-next",i.formatSRPaginationNextText(),i.paginationNextText)),s.push(this.constants.html.pagination[1],"</div>")}this.$pagination.html(s.join(""));c=["bottom","both"].includes(i.paginationVAlign)?" ".concat(this.constants.classes.dropup):"";this.$pagination.last().find(".page-list > div").addClass(c),i.onlyInfoPagination||(p=this.$pagination.find(".page-list a"),c=this.$pagination.find(".page-pre"),o=this.$pagination.find(".page-next"),r=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),i.smartDisplay&&(u.length<2||i.totalRows<=u[0])&&this.$pagination.find("div.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),i.paginationLoop||(1===i.pageNumber&&c.addClass("disabled"),i.pageNumber===this.totalPages&&o.addClass("disabled")),l&&(i.pageSize=i.formatAllRows()),p.off("click").on("click",function(e){return n.onPageListChange(e)}
2),c.off("click").on("click",function(e){return n.onPagePre(e)}),o.off("click").on("click",function(e){return n.onPageNext(e)}),r.off("click").on("click",function(e){return n.onPageNumber(e)}))}else this.$pagination.hide()}},{key:"updatePagination",value:function(e){e&&L(e.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(e){e.preventDefault();var t=L(e.currentTarget);return t.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=t.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+t.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(e),!1}},{key:"onPagePre",value:function(e){if(!L(e.target).hasClass("disabled"))return e.preventDefault(),this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(e),!1}},{key:"onPageNext",value:function(e){if(!L(e.target).hasClass("disabled"))return e.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(e),!1}},{key:"onPageNumber",value:function(e){if(e.preventDefault(),this.options.pageNumber!==+L(e.currentTarget).text())return this.options.pageNumber=+L(e.currentTarget).text(),this.updatePagination(e),!1}},{key:"initRow",value:function($,D,e,t){var L=this,N=[],n={},I=[],i="",o={},r=[];if(!(-1<R.findIndex(this.hiddenRows,$))){if((n=R.calculateObjectValue(this.options,this.options.rowStyle,[$,D],n))&&n.css)for(var a=0,s=Object.entries(n.css);a<s.length;a++){var l=M(s[a],2),c=l[0],l=l[1];I.push("".concat(c,": ").concat(l))}if(o=R.calculateObjectValue(this.options,this.options.rowAttributes,[$,D],o))for(var u=0,d=Object.entries(o);u<d.length;u++){var h=M(d[u],2),p=h[0],h=h[1];r.push("".concat(p,'="').concat(R.escapeHTML(h),'"'))}if($._data&&!R.isEmptyObject($._data))for(var f=0,g=Object.entries($._data);f<g.length;f++){var m=M(g[f],2),y=m[0],m=m[1];if("index"===y)return;i+=" data-".concat(y,"='").concat("object"===P(m)?JSON.stringify(m):m,"'")}N.push("<tr",R.sprintf(" %s",r.length?r.join(" "):void 0),R.sprintf(' id="%s"',Array.isArray($)?void 0:$._id),R.sprintf(' class="%s"',n.classes||(Array.isArray($)?void 0:$._class)),R.sprintf(' style="%s"',Array.isArray($)?void 0:$._style),' data-index="'.concat(D,'"'),R.sprintf(' data-uniqueid="%s"',R.getItemField($,this.options.uniqueId,!1)),R.sprintf(' data-has-detail-view="%s"',this.options.detailView&&R.calculateObjectValue(null,this.options.detailFilter,[D,$])?"true":void 0),R.sprintf("%s",i),">"),this.options.cardView&&N.push('<td colspan="'.concat(this.header.fields.length,'"><div class="card-views">'));o="";return R.hasDetailViewIcon(this.options)&&(o="<td>",R.calculateObjectValue(null,this.options.detailFilter,[D,$])&&(o+='\n          <a class="detail-icon" href="#">\n          '.concat(R.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n          </a>\n        ")),o+="</td>"),o&&"right"!==this.options.detailViewAlign&&N.push(o),this.header.fields.forEach(function(e,t){var n=L.columns[t],i="",o=R.getItemField($,e,L.options.escape,n.escape),r="",a="",s={},l="",c=L.header.classes[t],u="",d="",h="",p="",f="",g="";if((!L.fromHtml&&!L.autoMergeCells||void 0!==o||n.checkbox||n.radio)&&n.visible&&(!L.options.cardView||n.cardVisible)){if(I.concat([L.header.styles[t]]).length&&(d+="".concat(I.concat([L.header.styles[t]]).join("; "))),$["_".concat(e,"_style")]&&(d+="".concat($["_".concat(e,"_style")])),d&&(u=' style="'.concat(d,'"')),$["_".concat(e,"_id")]&&(l=R.sprintf(' id="%s"',$["_".concat(e,"_id")])),$["_".concat(e,"_class")]&&(c=R.sprintf(' class="%s"',$["_".concat(e,"_class")])),$["_".concat(e,"_rowspan")]&&(p=R.sprintf(' rowspan="%s"',$["_".concat(e,"_rowspan")])),$["_".concat(e,"_colspan")]&&(f=R.sprintf(' colspan="%s"',$["_".concat(e,"_colspan")])),$["_".concat(e,"_title")]&&(g=R.sprintf(' title="%s"',$["_".concat(e,"_title")])),(s=R.calculateObjectValue(L.header,L.header.cellStyles[t],[o,$,D,e],s)).classes&&(c=' class="'.concat(s.classes,'"')),s.css){for(var m=[],y=0,v=Object.entries(s.css);y<v.length;y++){var b=M(v[y],2),w=b[0],b=b[1];m.push("".concat(w,": ").concat(b))}u=' style="'.concat(m.concat(L.header.styles[t]).join("; "),'"')}var x,A,C,k,r=R.calculateObjectValue(n,L.header.formatters[t],[o,$,D,e],o);if(n.checkbox||n.radio||(r=null==r?L.options.undefinedText:r),n.searchable&&L.searchText&&L.options.searchHighlight&&!n.checkbox&&!n.radio&&(d="",k=L.searchText.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),L.options.searchAccentNeutralise&&(C=new RegExp("".concat(R.normalizeAccent(k)),"gmi").exec(R.normalizeAccent(r)))&&(k=r.substring(C.index,C.index+k.length)),C=new RegExp("(".concat(k,")"),"gim"),k="<mark>$1</mark>",d=r&&/<(?=.*? .*?\/ ?>|br|hr|input|!--|wbr)[a-z]+.*?>|<([a-z]+).*?<\/\1>/i.test(r)?(A=(x=(new DOMParser).parseFromString(r.toString(),"text/html").documentElement.textContent).replace(C,k),x=x.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r.replace(new RegExp("(>\\s*)(".concat(x,")(\\s*)"),"gm"),"$1".concat(A,"$3"))):r.toString().replace(C,k),r=R.calculateObjectValue(n,n.searchHighlightFormatter,[r,L.searchText],d)),$["_".concat(e,"_data")]&&!R.isEmptyObject($["_".concat(e,"_data")]))for(var _=0,S=Object.entries($["_".concat(e,"_data")]);_<S.length;_++){var E=M(S[_],2),T=E[0],E=E[1];if("index"===T)return;h+=" data-".concat(T,'="').concat(E,'"')}n.checkbox||n.radio?(a=n.checkbox?"checkbox":"",a=n.radio?"radio":a,x=n.class||"",A=R.isObject(r)&&r.hasOwnProperty("checked")?r.checked:(!0===r||o)&&!1!==r,C=!n.checkboxEnabled||r&&r.disabled,i=[L.options.cardView?'<div class="card-view '.concat(x,'">'):'<td class="bs-checkbox '.concat(x,'"').concat(c).concat(u,">"),'<label>\n            <input lay-ignore\n            data-index="'.concat(D,'"\n            name="').concat(L.options.selectItemName,'"\n            type="').concat(a,'"\n            ').concat(R.sprintf('value="%s"',$[L.options.idField]),"\n            ").concat(R.sprintf('checked="%s"',A?"checked":void 0),"\n            ").concat(R.sprintf('disabled="%s"',C?"disabled":void 0)," />
2\n            <span></span>\n            </label>"),L.header.formatters[t]&&"string"==typeof r?r:"",L.options.cardView?"</div>":"</td>"].join(""),$[L.header.stateField]=!0===r||!!o||r&&r.checked):L.options.cardView?(k=L.options.showHeader?'<span class="card-view-title '.concat(s.classes||"",'"').concat(u,">").concat(R.getFieldTitle(L.columns,e),"</span>"):"",i='<div class="card-view">'.concat(k,'<span class="card-view-value ').concat(s.classes||"",'"').concat(u,">").concat(r,"</span></div>"),L.options.smartDisplay&&""===r&&(i='<div class="card-view"></div>')):i="<td".concat(l).concat(c).concat(u).concat(h).concat(p).concat(f).concat(g,">").concat(r,"</td>"),N.push(i)}}),o&&"right"===this.options.detailViewAlign&&N.push(o),this.options.cardView&&N.push("</div></td>"),N.push("</tr>"),N.join("")}}},{key:"initBody",value:function(e,t){var n=this,i=this.getData(),o=(this.trigger("pre-body",i),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=L("<tbody></tbody>").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=i.length),[]),r=L(document.createDocumentFragment()),a=!1,s=[];this.autoMergeCells=R.checkAutoMergeCells(i.slice(this.pageFrom-1,this.pageTo));for(var l=this.pageFrom-1;l<this.pageTo;l++){var c,u=i[l],d=this.initRow(u,l,i,r),a=a||!!d;d&&"string"==typeof d&&((c=this.options.uniqueId)&&u.hasOwnProperty(c)&&(u=u[c],(c=this.$body.find(R.sprintf('> tr[data-uniqueid="%s"][data-has-detail-view]',u)).next()).is("tr.detail-view"))&&(s.push(l),t&&u===t||(d+=c[0].outerHTML)),this.options.virtualScroll?o.push(d):r.append(d))}a?this.options.virtualScroll?(this.virtualScroll&&this.virtualScroll.destroy(),this.virtualScroll=new Ud({rows:o,fixedScroll:e,scrollEl:this.$tableBody[0],contentEl:this.$body[0],itemHeight:this.options.virtualScrollItemHeight,callback:function(e,t){n.fitHeader(),n.initBodyEvent(),n.trigger("virtual-scroll",e,t)}})):this.$body.html(r):this.$body.html('<tr class="no-records-found">'.concat(R.sprintf('<td colspan="%s">%s</td>',this.getVisibleFields().length+R.getDetailViewIndexOffset(this.options),this.options.formatNoMatches()),"</tr>")),s.forEach(function(e){n.expandRow(e)}),e||this.scrollTo(0),this.initBodyEvent(),this.initFooter(),this.resetView(),this.updateSelected(),"server"!==this.options.sidePagination&&(this.options.totalRows=i.length),this.trigger("post-body",i)}},{key:"initBodyEvent",value:function(){var c=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(e){var t,n,i,o,r,a,s=L(e.currentTarget);s.find(".detail-icon").length||s.index()-R.getDetailViewIndexOffset(c.options)<0||(t=s.parent(),r=L(e.target).parents(".card-views").children(),o=L(e.target).parents(".card-view"),n=t.data("index"),i=c.data[n],r=c.options.cardView?r.index(o):s[0].cellIndex,o=c.getVisibleFields()[r-R.getDetailViewIndexOffset(c.options)],r=c.columns[c.fieldsColumnsIndex[o]],a=R.getItemField(i,o,c.options.escape,r.escape),c.trigger("click"===e.type?"click-cell":"dbl-click-cell",o,a,i,s),c.trigger("click"===e.type?"click-row":"dbl-click-row",i,t,o),"click"===e.type&&c.options.clickToSelect&&r.clickToSelect&&!R.calculateObjectValue(c.options,c.options.ignoreClickToSelectOn,[e.target])&&(a=t.find(R.sprintf('[name="%s"]',c.options.selectItemName))).length&&a[0].click(),"click"===e.type&&c.options.detailViewByClick&&c.toggleDetailView(n,c.header.detailFormatters[c.fieldsColumnsIndex[o]]))}).off("mousedown").on("mousedown",function(e){c.multipleSelectRowCtrlKey=e.ctrlKey||e.metaKey,c.multipleSelectRowShiftKey=e.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(e){return e.preventDefault(),c.toggleDetailView(L(e.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(R.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(e){e.stopImmediatePropagation();e=L(e.currentTarget);c._toggleCheck(e.prop("checked"),e.data("index"))}),this.header.events.forEach(function(e,t){var n=e;
2if(n){if(!(n="string"==typeof n?R.calculateObjectValue(null,n):n))throw new Error("Unknown event in the scope: ".concat(e));var s=c.header.fields[t],l=c.getVisibleFields().indexOf(s);if(-1!==l){l+=R.getDetailViewIndexOffset(c.options);for(var i in n)(r=>{if(!n.hasOwnProperty(r))return;var a=n[r];c.$body.find(">tr:not(.no-records-found)").each(function(e,t){var o=L(t),t=o.find(c.options.cardView?".card-views>.card-view":">td").eq(l),n=r.indexOf(" "),i=r.substring(0,n),n=r.substring(n+1);t.find(n).off(i).on(i,function(e){var t=o.data("index"),n=c.data[t],i=n[s];a.apply(c,[e,i,n,t])})})})(i)}}})}},{key:"initServer",value:function(i,e,t){var o=this,n={},r=this.header.fields.indexOf(this.options.sortName),a={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[r]&&(a.sortName=this.header.sortNames[r]),this.options.pagination&&"server"===this.options.sidePagination&&(a.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,a.pageNumber=this.options.pageNumber),t||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(a={search:a.searchText,sort:a.sortName,order:a.sortOrder},this.options.pagination)&&"server"===this.options.sidePagination&&(a.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),a.limit=this.options.pageSize,0!==a.limit&&this.options.pageSize!==this.options.formatAllRows()||delete a.limit),this.options.search&&"server"===this.options.sidePagination&&this.options.searchable&&this.columns.filter(function(e){return e.searchable}).length){a.searchable=[];var s,l=N(this.columns);try{for(l.s();!(s=l.n()).done;){var c=s.value;!c.checkbox&&c.searchable&&(this.options.visibleSearch&&c.visible||!this.options.visibleSearch)&&a.searchable.push(c.field)}}catch(e){l.e(e)}finally{l.f()}}if(R.isEmptyObject(this.filterColumnsPartial)||(a.filter=JSON.stringify(this.filterColumnsPartial,null)),R.extend(a,e||{}),!1!==(n=R.calculateObjectValue(this.options,this.options.queryParams,[a],n)))return i||this.showLoading(),r=R.extend({},R.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:t||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(n):n,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(e,t,n){e=R.calculateObjectValue(o.options,o.options.responseHandler,[e,n],e);o.load(e),o.trigger("load-success",e,n&&n.status,n),i||o.hideLoading(),"server"===o.options.sidePagination&&1<o.options.pageNumber&&0<e[o.options.totalField]&&!e[o.options.dataField].length&&o.updatePagination()},error:function(e){var t;e&&0===e.status&&o._xhrAbort?o._xhrAbort=!1:(t=[],"server"===o.options.sidePagination&&((t={})[o.options.totalField]=0,t[o.options.dataField]=[]),o.load(t),o.trigger("load-error",e&&e.status,e),i||o.hideLoading())}}),this.options.ajax?R.calculateObjectValue(this,this.options.ajax,[r],null):(this._xhr&&4!==this._xhr.readyState&&(this._xhrAbort=!0,this._xhr.abort()),this._xhr=L.ajax(r)),n}}},{key:"initSearchText",value:function(){var e;this.options.search&&(this.searchText="")!==this.options.searchText&&((e=R.getSearchInput(this)).val(this.options.searchText),this.onSearch({currentTarget:e,firedByInitSearchText:!0}))}},{key:"getCaret",value:function(){var n=this;this.$header.find("th").each(function(e,t){L(t).find(".sortable").removeClass("desc asc").addClass(L(t).data("field")===n.options.sortName?n.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var e=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.each(function(e,t){L(t).closest("tr")[L(t).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var n=this;this.$selectItem.each(function(e,t){n.data[L(t).data("index")][n.header.stateField]=L(t).prop("checked")})}},{key:"resetRows",value:function(){var e,t=N(this.data);try{for(t.s();!(e=t.n()).done;){var n=e.value;this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(n[this.header.stateField]=!1)}}catch(e){t.e(e)}finally{t.f()}this.initHiddenRows()}},{key:"trigger",value:function(e){for(var t,e="".concat(e,".bs.table"),n=arguments.length,i=new Array(1<n?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=this.options)[qd.EVENTS[e]].apply(t,[].concat(i,[this])),this.$el.trigger(L.Event(e,{sender:this}),i),(t=this.options).onAll.apply(t,[e].concat([].concat(i,[this]))),this.$el.trigger(L.Event("all.bs.table",{sender:this}),[e,i])}},{key:"resetHeader",value:function(){var e=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return e.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var o=this;if(this.$el.is(":hidden"))this.timeoutId_=setTimeout(function(){return o.fitHeader()},100);else{var e=this.$tableBody.get(0),e=this.hasScrollBar&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?R.getScrollBarWidth():0,t=(this.$el.css("margin-top",-this.$header.outerHeight()),this.$tableHeader.find(":focus")),t=(0<t.length&&0<(t=t.parents("th")).length&&void 0!==(t=t.attr("data-field"))&&0<(t=this.$header.find("[data-field='".concat(t,"']"))).length&&t.find(":input").addClass("focus-temp"),this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",e).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth()),L(".focus-temp:visible:eq(0)"));0<t.length&&(t.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(e,t){o.$header_.find(R.sprintf('th[data-field="%s"]',L(t).data("field"))).data(L(t).data())});for(var r=this.getVisibleFields(),a=this.$header_.find("th"),n=this.$body.find(">
2tr:not(.no-records-found,.virtual-scroll-top)").eq(0);n.length&&n.find('>td[colspan]:not([colspan="1"])').length;)n=n.next();var s=n.find("> *").length;n.find("> *").each(function(e,t){var n,i,t=L(t);R.hasDetailViewIcon(o.options)&&(0===e&&"right"!==o.options.detailViewAlign||e===s-1&&"right"===o.options.detailViewAlign)?(i=(n=a.filter(".detail")).innerWidth()-n.find(".fht-cell").width(),n.find(".fht-cell").width(t.innerWidth()-i)):(n=e-R.getDetailViewIndexOffset(o.options),e=(i=1<(i=o.$header_.find(R.sprintf('th[data-field="%s"]',r[n]))).length?L(a[t[0].cellIndex]):i).innerWidth()-i.find(".fht-cell").width(),i.find(".fht-cell").width(t.innerWidth()-e))}),this.horizontalScroll(),this.trigger("post-header")}}},{key:"initFooter",value:function(){if(this.options.showFooter&&!this.options.cardView){var e=this.getData(),t=[],n="";(n=R.hasDetailViewIcon(this.options)?'<th class="detail"><div class="th-inner"></div><div class="fht-cell"></div></th>':n)&&"right"!==this.options.detailViewAlign&&t.push(n);var i,o=N(this.columns);try{for(o.s();!(i=o.n()).done;){var r,a,s=i.value,l=[],c={},u=R.sprintf(' class="%s"',s.class);if(s.visible&&(!(this.footerData&&0<this.footerData.length)||s.field in this.footerData[0])){if(this.options.cardView&&!s.cardVisible)return;if(r=R.sprintf("text-align: %s; ",s.falign||s.align),a=R.sprintf("vertical-align: %s; ",s.valign),(c=R.calculateObjectValue(null,s.footerStyle||this.options.footerStyle,[s]))&&c.css)for(var d=0,h=Object.entries(c.css);d<h.length;d++){var p=M(h[d],2),f=p[0],g=p[1];l.push("".concat(f,": ").concat(g))}c&&c.classes&&(u=R.sprintf(' class="%s"',s.class?[s.class,c.classes].join(" "):c.classes)),t.push("<th",u,R.sprintf(' style="%s"',r+a+l.concat().join("; ")||void 0));var m=0,y=((m=this.footerData&&0<this.footerData.length?this.footerData[0]["_".concat(s.field,"_colspan")]||0:m)&&t.push(' colspan="'.concat(m,'" ')),t.push(">"),t.push('<div class="th-inner">'),"");this.footerData&&0<this.footerData.length&&(y=this.footerData[0][s.field]||""),t.push(R.calculateObjectValue(s,s.footerFormatter,[e,y],y)),t.push("</div>"),t.push('<div class="fht-cell"></div>'),t.push("</div>"),t.push("</th>")}}}catch(e){o.e(e)}finally{o.f()}n&&"right"===this.options.detailViewAlign&&t.push(n),this.options.height||this.$tableFooter.length||(this.$el.append("<tfoot><tr></tr></tfoot>"),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").length||this.$tableFooter.html("<table><thead><tr></tr></thead></table>"),this.$tableFooter.find("tr").html(t.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var o=this;if(this.$el.is(":hidden"))setTimeout(function(){return o.fitFooter()},100);else{var e=this.$tableBody.get(0),e=this.hasScrollBar&&e.scrollHeight>e.clientHeight+this.$header.outerHeight()?R.getScrollBarWidth():0,r=(this.$tableFooter.css("margin-right",e).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class")),this.$tableFooter.find("th")),t=this.$body.find(">tr:first-child:not(.no-records-found)");for(r.find(".fht-cell").width("auto");t.length&&t.find('>td[colspan]:not([colspan="1"])').length;)t=t.next();var a=t.find("> *").length;t.find("> *").each(function(e,t){var n,i,t=L(t);R.hasDetailViewIcon(o.options)&&(0===e&&"left"===o.options.detailViewAlign||e===a-1&&"right"===o.options.detailViewAlign)?(i=(n=r.filter(".detail")).innerWidth()-n.find(".fht-cell").width(),n.find(".fht-cell").width(t.innerWidth()-i)):(i=(n=r.eq(e)).innerWidth()-n.find(".fht-cell").width(),n.find(".fht-cell").width(t.innerWidth()-i))}),this.horizontalScroll()}}},{key:"horizontalScroll",value:function(){var t=this;this.$tableBody.off("scroll").on("scroll",function(){var e=t.$tableBody.scrollLeft();t.options.showHeader&&t.options.height&&t.$tableHeader.scrollLeft(e),t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(e),t.trigger("scroll-body",t.$tableBody)})}},{key:"getVisibleFields",value:function(){var e,t=[],n=N(this.header.fields);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=this.columns[this.fieldsColumnsIndex[i]];o&&o.visible&&(!this.options.cardView||o.cardVisible)&&t.push(i)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var e=R.extend({},this.options);return delete e.data,R.extend(!0,{},e)}},{key:"refreshOptions",value:function(e){R.compareObjects(this.options,e,!0)||(this.options=R.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(e){var t,a=this,n=this.options.data;return!(this.searchText||this.options.customSearch||void 0!==this.options.sortName||this.enableCustomSort)&&R.isEmptyObject(this.filterColumns)&&"function"!=typeof this.options.filterOptions.filterAlgorithm&&R.isEmptyObject(this.filterColumnsPartial)||e&&e.unfiltered||(n=this.data),e&&!e.includeHiddenRows&&(t=this.getHiddenRows(),n=n.filter(function(e){return-1===R.findIndex(t,e)})),e&&e.useCurrentPage&&(n=n.slice(this.pageFrom-1,this.pageTo)),e&&e.formatted&&n.forEac
2h(function(e){for(var t=0,n=Object.entries(e);t<n.length;t++){var i=M(n[t],2),o=i[0],i=i[1],r=a.columns[a.fieldsColumnsIndex[o]];if(!r)return;e[o]=R.calculateObjectValue(r,a.header.formatters[r.fieldIndex],[i,e,e.index,r.field],i)}}),n}},{key:"getSelections",value:function(){var t=this;return(this.options.maintainMetaData?this.options:this).data.filter(function(e){return!0===e[t.header.stateField]})}},{key:"load",value:function(e){var t;this.options.pagination&&"server"===this.options.sidePagination&&(this.options.totalRows=e[this.options.totalField],this.options.totalNotFiltered=e[this.options.totalNotFilteredField],this.footerData=e[this.options.footerField]?[e[this.options.footerField]]:void 0),t=e.fixedScroll,e=Array.isArray(e)?e:e[this.options.dataField],this.initData(e),this.initSearch(),this.initPagination(),this.initBody(t)}},{key:"append",value:function(e){this.initData(e,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"prepend",value:function(e){this.initData(e,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"remove",value:function(e){for(var t=0,n=this.options.data.length-1;0<=n;n--){var i=this.options.data[n],o=R.getItemField(i,e.field,this.options.escape,i.escape);void 0===o&&"$index"!==e.field||(!i.hasOwnProperty(e.field)&&"$index"===e.field&&e.values.includes(n)||e.values.includes(o))&&(t++,this.options.data.splice(n,1))}t&&("server"===this.options.sidePagination&&(this.options.totalRows-=t,this.data=F(this.options.data)),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"removeAll",value:function(){0<this.options.data.length&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(this.options.data.splice(e.index,0,e.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(e){var t,n=N(Array.isArray(e)?e:[e]);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.hasOwnProperty("index")&&i.hasOwnProperty("row")&&(i.hasOwnProperty("replace")&&i.replace?this.options.data[i.index]=i.row:R.extend(this.options.data[i.index],i.row))}}catch(e){n.e(e)}finally{n.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(e){for(var t=this.options.uniqueId,n=e,i=null,o=this.options.data.length-1;0<=o;o--){var r=this.options.data[o],a=R.getItemField(r,t,this.options.escape,r.escape);if(void 0!==a&&("string"==typeof a?n=n.toString():"number"==typeof a&&(Number(a)===a&&a%1==0?n=parseInt(n,10):a===Number(a)&&0!==a&&(n=parseFloat(n))),a===n)){i=r;break}}return i}},{key:"updateByUniqueId",value:function(e){var t,n=null,i=N(Array.isArray(e)?e:[e]);try{for(i.s();!(t=i.n()).done;){var o,r=t.value;r.hasOwnProperty("id")&&r.hasOwnProperty("row")&&-1!==(o=this.options.data.indexOf(this.getRowByUniqueId(r.id)))&&(r.hasOwnProperty("replace")&&r.replace?this.options.data[o]=r.row:R.extend(this.options.data[o],r.row),n=r.id)}}catch(e){i.e(e)}finally{i.f()}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0,n)}},{key:"removeByUniqueId",value:function(e){var t=this.options.data.length,e=this.getRowByUniqueId(e);e&&this.options.data.splice(this.options.data.indexOf(e),1),t!==this.options.data.length&&("server"===this.options.sidePagination&&(--this.options.totalRows,this.data=F(this.options.data)),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"_updateCellOnly",value:function(e,t){var n=this.initRow(this.options.data[t],t),e=this.getVisibleFields().indexOf(e);-1!==e&&(e+=R.getDetailViewIndexOffset(this.options),this.$body.find(">tr[data-index=".concat(t,"]")).find(">td:eq(".concat(e,")")).replaceWith(L(n).find(">td:eq(".concat(e,")"))),this.initBodyEvent(),this.initFooter(),this.resetView(),this.updateSelected())}},{key:"updateCell",value:function(e){e.hasOwnProperty("index")&&e.hasOwnProperty("field")&&e.hasOwnProperty("value")&&(this.options.data[e.index][e.field]=e.value,!1!==e.reinit?(this.initSort(),this.initBody(!0)):this._updateCellOnly(e.field,e.index))}},{key:"updateCellByUniqueId",value:function(e){var i=this;
2(Array.isArray(e)?e:[e]).forEach(function(e){var t=e.id,n=e.field,e=e.value,t=i.options.data.indexOf(i.getRowByUniqueId(t));-1!==t&&(i.options.data[t][n]=e)}),!1!==e.reinit?(this.initSort(),this.initBody(!0)):this._updateCellOnly(e.field,this.options.data.indexOf(this.getRowByUniqueId(e.id)))}},{key:"showRow",value:function(e){this._toggleRow(e,!0)}},{key:"hideRow",value:function(e){this._toggleRow(e,!1)}},{key:"_toggleRow",value:function(e,t){var n;e.hasOwnProperty("index")?n=this.getData()[e.index]:e.hasOwnProperty("uniqueId")&&(n=this.getRowByUniqueId(e.uniqueId)),n&&(e=R.findIndex(this.hiddenRows,n),t||-1!==e?t&&-1<e&&this.hiddenRows.splice(e,1):this.hiddenRows.push(n),this.initBody(!0),this.initPagination())}},{key:"getHiddenRows",value:function(e){if(!e){var t,n=[],i=N(this.getData());try{for(i.s();!(t=i.n()).done;){var o=t.value;this.hiddenRows.includes(o)&&n.push(o)}}catch(e){i.e(e)}finally{i.f()}return this.hiddenRows=n}this.initHiddenRows(),this.initBody(!0),this.initPagination()}},{key:"showColumn",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach(function(e){t._toggleColumn(t.fieldsColumnsIndex[e],
2!0,!0)})}},{key:"hideColumn",value:function(e){var t=this;(Array.isArray(e)?e:[e]).forEach(function(e){t._toggleColumn(t.fieldsColumnsIndex[e],!1,!0)})}},{key:"_toggleColumn",value:function(e,t,n){var i;-1!==e&&this.columns[e].visible!==t&&(this.columns[e].visible=t,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)&&(i=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1),n&&i.filter(R.sprintf('[value="%s"]',e)).prop("checked",t),i.filter(":checked").length<=this.options.minimumCountColumns&&i.filter(":checked").prop("disabled",!0))}},{key:"getVisibleColumns",value:function(){var t=this;return this.columns.filter(function(e){return e.visible&&!t.isSelectionColumn(e)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(e){return!e.visible})}},{key:"isSelectionColumn",value:function(e){return e.radio||e.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(t){var e,n,i=this,o=N(this.columns.slice().reverse());try{for(o.s();!(e=o.n()).done;){var r=e.value;!r.switchable||!t&&this.options.showColumns&&this.getVisibleColumns().filter(function(e){return e.switchable}).length===this.options.minimumCountColumns||(r.visible=t)}}catch(e){o.e(e)}finally{o.f()}this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns&&(n=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1),t?n.prop("checked",t):n.get().reverse().forEach(function(e){n.filter(":checked").length>i.options.minimumCountColumns&&L(e).prop("checked",t)}),n.filter(":checked").length<=this.options.minimumCountColumns)&&n.filter(":checked").prop("disabled",!0)}},{key:"mergeCells",value:function(e){var t,n,i=e.index,o=this.getVisibleFields().indexOf(e.field),r=e.rowspan||1,a=e.colspan||1,s=this.$body.find(">tr[data-index]"),e=(o+=R.getDetailViewIndexOffset(this.options),s.eq(i).find(">td").eq(o));if(!(i<0||o<0||i>=this.data.length)){for(t=i;t<i+r;t++)for(n=o;n<o+a;n++)s.eq(t).find(">td").eq(n).hide();e.attr("rowspan",r).attr("colspan",a).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(e){var t=this.getSelections(),n=(this.$selectAll.add(this.$selectAll_).prop("checked",e),this.$selectItem.filter(":enabled").prop("checked",e),this.updateRows(),this.updateSelected(),this.get
2Selections());e?this.trigger("check-all",n,t):this.trigger("uncheck-all",n,t)}},{key:"checkInvert",value:function(){var e=this.$selectItem.filter(":enabled"),t=e.filter(":checked");e.each(function(e,t){L(t).prop("checked",!L(t).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",t),t=this.getSelections(),this.trigger("check-some",t)}},{key:"check",value:function(e){this._toggleCheck(!0,e)}},{key:"uncheck",value:function(e){this._toggleCheck(!1,e)}},{key:"_toggleCheck",value:function(e,t){var n=this.$selectItem.filter('[data-index="'.concat(t,'"]')),i=this.data[t];if(n.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){var o,r=N(this.options.data);try{for(r.s();!(o=r.n()).done;)o.value[this.header.stateField]=!1}catch(e){r.e(e)}finally{r.f()}this.$selectItem.filter(":checked").not(n).prop("checked",!1)}if(i[this.header.stateField]=e,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&0<=this.multipleSelectRowLastSelectedIndex)for(var i=M(this.multipleSelectRowLastSelectedIndex<t?[this.multipleSelectRowLastSelectedIndex,t]:[t,this.multipleSelectRowLastSelectedIndex],2),a=i[0],s=i[1],l=a+1;l<s;l++)this.data[l][this.header.stateField]=!0,this.$selectItem.filter('[data-index="'.concat(l,'"]')).prop("checked",!0);this.multipleSelectRowCtrlKey=!1,this.multipleSelectRowShiftKey=!1,this.multipleSelectRowLastSelectedIndex=e?t:-1}n.prop("checked",e),this.updateSelected(),this.trigger(e?"check":"uncheck",this.data[t],n)}},{key:"checkBy",value:function(e){this._toggleCheckBy(!0,e)}},{key:"uncheckBy",value:function(e){this._toggleCheckBy(!1,e)}},{key:"_toggleCheckBy",value:function(i,o){var r,a=this;o.hasOwnProperty("field")&&o.hasOwnProperty("values")&&(r=[],this.data.forEach(function(e,t){if(!e.hasOwnProperty(o.field))return!1;var n;o.values.includes(e[o.field])&&(t=a.$selectItem.filter(":enabled").filter(R.sprintf('[data-index="%s"]',t)),n=!!o.hasOwnProperty("onlyCurrentPage")&&o.onlyCurrentPage,!(t=i?t.not(":checked"):t.filter(":checked")).length&&n||(t.prop("checked",i),e[a.header.stateField]=i,r.push(e),a.trigger(i?"check":"uncheck",e,t)))}),this.updateSelected(),this.trigger(i?"check-some":"uncheck-some",r))}},{key:"refresh",value:function(e){e&&e.url&&(this.options.url=e.url),e&&e.pageNumber&&(this.options.pageNumber=e.pageNumber),e&&e.pageSize&&(this.options.pageSize=e.pageSize),this.trigger("refresh",this.initServer(e&&e.silent,e&&e.query,e&&e.url))}},{key:"destroy",value:function(){this.$el.insertBefore(this.$container),L(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"");var e=R.getEventName("resize.bootstrap-table",this.$el.attr("id"));L(window).off(e)}},{key:"resetView",value:function(e){var t,n,i=0;e&&e.height&&(this.options.height=e.height),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),this.options.height&&(e=this.$tableBody.get(0),this.hasScrollBar=e.scrollWidth>e.clientWidth),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),i+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height)&&(i+=this.$tableFooter.outerHeight(!0)),this.$container.hasClass("fullscreen")?(this.$tableContainer.css("height",""),this.$tableContainer.css("width","")):this.options.height&&(this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height","")),e=this.$toolbar.outerHeight(!0),t=this.$pagination.outerHeight(!0),e=this.options.height-e-t,n=(t=this.$tableBody.find(">table")).outerHeight(),this.$tableContainer.css("height","".concat(e,"px")),this.$tableBorder)&&t.is(":visible")&&(e=e-n-2,this.hasScrollBar&&(e-=R.getScrollBarWidth()),this.$tableBorder.css("width","".concat(t.outerWidth(),"px")),this.$tableBorder.css("height","".concat(e,"px"))),this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(i,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.toggleClass("open",!0);var e=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(e=.04*this.$tableLoading.width(),e=Math.max(12,e),e=Math.min(32,e),e="".concat(e,"px")),this.$tableLoading.find(".loading-text").css("font-size",e)}},{key:"hideLoading",value:function(){this.$tableLoading.toggleClass("open",!1)}},{key:"togglePagination",value:function(){this.options.pagination=!this.options.pagination;var e=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",t=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"";this.$toolbar.find('button[name="paginationSwitch"]').html("".concat(R.sprintf(this.constants.html.icon,this.options.iconsPrefix,e)," ").concat(t)),this.updatePagination(),this.trigger("toggle-pagination",this.options.pagination)}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){this.options.cardView=!this.options.cardView,this.initHeader();var e=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",t
2=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"";this.$toolbar.find('button[name="toggle"]').html("".concat(R.sprintf(this.constants.html.icon,this.options.iconsPrefix,e)," ").concat(t)).attr("aria-label",t).attr("title",t),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(e){var t=R.getSearchInput(this),e=e||"";t.val(e),this.searchText=e,this.onSearch({currentTarget:t},!1)}},{key:"filterBy",value:function(e,t){this.filterOptions=R.isEmptyObject(t)?this.options.filterOptions:R.extend(this.options.filterOptions,t),this.filterColumns=R.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function(e){var t={unit:"px",value:0},n=("object"===P(e)?t=Object.assign(t,e):"string"==typeof e&&"bottom"===e?t.value=this.$tableBody[0].scrollHeight:"string"!=typeof e&&"number"!=typeof e||(t.value=e),t.value);"rows"===t.unit&&(n=0,this.$body.find("> tr:lt(".concat(t.value,")")).each(function(e,t){n+=L(t).outerHeight(!0)})),this.$tableBody.scrollTop(n)}},{key:"getScrollPosition",value:function(){return this.$tableBody.scrollTop()}},{key:"selectPage",value:function(e){0<e&&e<=this.options.totalPages&&(this.options.pageNumber=e,this.updatePagination())}},{key:"prevPage",value:function(){1<this.options.pageNumber&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())}},{key:"toggleDetailView",value:function(e,t){this.$body.find(R.sprintf('> tr[data-index="%s"]',e)).next().is("tr.detail-view")?this.collapseRow(e):this.expandRow(e,t),this.resetView()}},{key:"expandRow",value:function(e,t){var n=this.data[e],i=this.$body.find(R.sprintf('> tr[data-index="%s"][data-has-detail-view]',e));this.options.detailViewIcon&&i.find("a.detail-icon").html(R.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),i.next().is("tr.detail-view")||(i.after(R.sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>',i.children("td").length)),i=i.next().find("td"),t=t||this.options.detailFormatter,t=R.calculateObjectValue(this.options,t,[e,n,i],""),1===i.length&&i.append(t),this.trigger("expand-row",e,n,i))}},{key:"expandRowByUniqueId",value:function(e){e=this.getRowByUniqueId(e);e&&this.expandRow(this.data.indexOf(e))}},{key:"collapseRow",value:function(e){var t=this.data[e],n=this.$body.find(R.sprintf('> tr[data-index="%s"][data-has-detail-view]',e));n.next().is("tr.detail-view")&&(this.options.detailViewIcon&&n.find("a.detail-icon").html(R.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",e,t,n.next()),n.next().remove())}},{key:"collapseRowByUniqueId",value:function(e){e=this.getRowByUniqueId(e);e&&this.collapseRow(this.data.indexOf(e))}},{key:"expandAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),t=0;t<e.length;t++)this.expandRow(L(e[t]).data("index"))}},{key:"collapseAllRows",value:function(){for(var e=this.$body.find("> tr[data-index][data-has-detail-view]"),t=0;t<e.length;t++)this.collapseRow(L(e[t]).data("index"))}},{key:"updateColumnTitle",value:function(n){n.hasOwnProperty("field")&&n.hasOwnProperty("title")&&(this.columns[this.fieldsColumnsIndex[n.field]].title=this.options.escape&&this.options.escapeTitle?R.escapeHTML(n.title):n.title,this.columns[this.fieldsColumnsIndex[n.field]].visible)&&(this.$header.find("th[data-field]").each(function(e,t){if(L(t).data("field")===n.field)return L(L(t).find(".th-inner")[0]).text(n.title),!1}),this.resetView())}},{key:"updateFormatText",value:function(e,t){/^format/.test(e)&&this.options[e]&&("string"==typeof t?this.options[e]=function(){return t}:"function"==typeof t&&(this.options[e]=t),this.initToolbar(),this.initPagination(),this.initBody())}}]),qd);function qd(e,t){B(this,qd),this.options=t,this.$el=L(e),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0}function Vd(e){function t(){n.lastCluster!==(n.lastCluster=n.getNum())&&(n.initDOM(n.rows),n.callback(n.startIndex,n.endIndex))}var n=this;B(this,Vd),this.rows=e.rows,this.scrollEl=e.scrollEl,this.contentEl=e.contentEl,this.callback=e.callback,this.itemHeight=e.itemHeight,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows,e.fixedScroll),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;this.scrollEl.addEventListener("scroll",t,!1),this.destroy=function(){n.contentEl.innerHtml="",n.scrollEl.removeEventListener("scroll",t,!1)}}return I.VERSION=Wd.VERSION,I.DEFAULTS=Wd.DEFAULTS,I.LOCALES=Wd.LOCALES,I.COLUMN_DEFAULTS=Wd.COLUMN_DEFAULTS,I.METHODS=Wd.METHODS,I.EVENTS=Wd.EVENTS,L.BootstrapTable=I,L.fn.bootstrapTable=function(o){for(var r,e=arguments.length,a=new Array(1<e?e-1:0),t=1;t<e;t++)a[t-1]=arguments[t];return this.each(function(e,t){var n,i=L(t).data("bootstrap.table");if("string"==typeof o){if(Wd.METHODS.includes(o))return i?(r=i[o].apply(i,a),void("destroy"===o&&L(t).removeData("bootstrap.table"))):void 0;throw new Error("Unknown method: ".concat(o))}i?console.warn("You cannot initialize the table more than once!"):(n=R.extend(!0,{},I.DEFAULTS,L(t).data(),"object"===P(o)&&o),i=new L.BootstrapTable(t,n),L(t).data("bootstrap.table",i),i.init())}),void 0===r?this:r},L.fn.bootstrapTable.Constructor=I,L.fn.bootstrapTable.theme=Wd.THEME,L.fn.bootstrapTable.VERSION=Wd.VERSION,L.fn.bootstrapTable.defaults=I.DEFAULTS,L.fn.bootstrapTable.columnDefaults=I.COLUMN_DEFAULTS,L.fn.bootstrapTable.events=I.EVENTS,L.fn.bootstrapTable.locales=I.LOCALES,L.fn.bootstrapTable.methods=I.METHODS,L.fn.bootstrapTable.utils=R,L(function(){L('[data-toggle="table"]').bootstrapTable()}),I}),((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(("undefined"!=typeof globalThis?globalThis:e||self).jQuery)})(this,function(d){function O(e){e=(e=>{if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=typeof(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")})(e);return"symbol"==typeof e?e:String(e)}function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,O(i.key),i)}}
2function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function j(n){var i=(()=>{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t=h(n),t=(e=i?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!=typeof e&&"function"!=typeof e){if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===(e=t))throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=((e,t)=>{for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e})(e,t);if(i)return(i=Object.getOwnPropertyDescriptor(i,t)).get?i.get.call(arguments.length<3?e:n):i.value}).apply(this,arguments)}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function F(e,t){var n,i,o,r,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return o=!(i=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){o=!0,n=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw n}}};if(Array.isArray(e)||(a=(e=>{var t;if(e)return"string"==typeof e?H(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?H(e,void 0):void 0})(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(e){return e&&e.Math===Math&&e}function t(e){try{return!!e()}catch(e){return!0}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")(),i={},o=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}),z=!t(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),r=Function.prototype.call,a=z?r.bind(r):function(){return r.apply(r,arguments)},s={},l={}.propertyIsEnumerable,W=Object.getOwnPropertyDescriptor,c=W&&!l.call({1:2},1);s.f=c?function(e){e=W(this,e);return!!e&&e.enumerable}:l;function U(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function q(e){return oe(ie(e),8,-1)}function V(e){return null==e}function Y(e){if(le(e))throw new ce("Can't call method on "+e);return e}function K(e){return ue(de(e))}function G(e,t){return arguments.length<2?(n=ge[e],me(n)?n:void 0):ge[e]&&ge[e][t];var n}function Q(e){if(ke(e))return e;throw new _e((e=>{try{return Ce(e)}catch(e){return"Object"}})(e)+" is not a function")}function X(t,n){try{Ie(Ne,t,{value:n,configurable:!0,writable:!0})}catch(e){Ne[t]=n}return n}function J(e){return Oe(Re(e))}function Z(e){return"Symbol("+(void 0===e?"":e)+")_"+Fe(++je+He,36)}function u(e){return ze(Ue,e)||(Ue[e]=We&&ze(_,e)?_[e]:qe("Symbol."+e)),Ue[e]}function ee(e){return e=((e,t)=>{if(!Ye(e)||Ke(e))return e;var n=Ge(e,Je);if(n){if(n=Ve(n,e,t=void 0===t?"default":t),!Ye(n)||Ke(n))return n;throw new Xe("Can't convert object to primitive value")}return Qe(e,t=void 0===t?"number":t)})(e,"string"),Ze(e)?e:e+""}function te(e){if(ut(e))return e;throw new ht(dt(e)+" is not an object")}var c=z,l=Function.prototype,ne=l.call,l=c&&l.bind.bind(ne,ne),c=c?l:function(e){return function(){return ne.apply(e,arguments)}},l=c,ie=l({}.toString),oe=l("".slice),l=t,re=q,ae=Object,se=c("".split),l=l(function(){return!ae("z").propertyIsEnumerable(0)})?function(e){return"String"===re(e)?se(e,""):ae(e)}
2:ae,le=V,ce=TypeError,ue=l,de=Y,f="object"==typeof document&&document.all,f={all:f,IS_HTMLDDA:void 0===f&&void 0!==f},he=f.all,g=f.IS_HTMLDDA?function(e){return"function"==typeof e||e===he}:function(e){return"function"==typeof e},pe=g,fe=f.all,f=f.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:pe(e)||e===fe}:function(e){return"object"==typeof e?null!==e:pe(e)},ge=n,me=g,m=c({}.isPrototypeOf),y=n,v="undefined"!=typeof navigator&&String(navigator.userAgent)||"",b=y.process,y=y.Deno,b=b&&b.versions||y&&y.version,y=b&&b.v8,b=x=!(x=y?0<(w=y.split("."))[0]&&w[0]<4?1:+(w[0]+w[1]):x)&&v&&(!(w=v.match(/Edge\/(\d+)/))||74<=w[1])&&(w=v.match(/Chrome\/(\d+)/))?+w[1]:x,ye=b,y=t,ve=n.String,v=!!Object.getOwnPropertySymbols&&!y(function(){var e=Symbol("symbol detection");return!ve(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ye&&ye<41}),w=v&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,be=G,we=g,xe=m,Ae=Object,x=w?function(e){return"symbol"==typeof e}:function(e){var t=be("Symbol");return we(t)&&xe(t.prototype,Ae(e))},Ce=String,ke=g,_e=TypeError,Se=Q,Ee=V,Te=a,$e=g,De=f,Le=TypeError,y={exports:{}},Ne=n,Ie=Object.defineProperty,m=X,A="__core-js_shared__",m=n[A]||m(A,{}),Me=m,A=((y.exports=function(e,t){return Me[e]||(Me[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"}),y.exports),Re=Y,Oe=Object,Pe=J,Be=c({}.hasOwnProperty),y=Object.hasOwn||function(e,t){return Be(Pe(e),t)},C=c,je=0,He=Math.random(),Fe=C(1..toString),C=A,ze=y,k=Z,We=v,v=w,_=n.Symbol,Ue=C("wks"),qe=v?_.for||_:_&&_.withoutSetter||k,Ve=a,Ye=f,Ke=x,Ge=function(e,t){e=e[t];return Ee(e)?void 0:Se(e)},Qe=function(e,t){var n,i;if("string"===t&&$e(n=e.toString)&&!De(i=Te(n,e)))return i;if($e(n=e.valueOf)&&!De(i=Te(n,e)))return i;if("string"!==t&&$e(n=e.toString)&&!De(i=Te(n,e)))return i;throw new Le("Can't convert object to primitive value")},Xe=TypeError,Je=u("toPrimitive"),Ze=x,w=f,et=n.document,tt=w(et)&&w(et.createElement),C=!o&&!t(function(){return 7!==Object.defineProperty(tt?et.createElement("div"):{},"a",{get:function(){return 7}}).a}),nt=a,it=s,ot=U,rt=K,at=ee,st=y,lt=C,ct=Object.getOwnPropertyDescriptor,v=(i.f=o?ct:function(e,t){if(e=rt(e),t=at(t),lt)try{return ct(e,t)}catch(e){}if(st(e,t))return ot(!nt(it.f,e,t),e[t])},{}),k=o&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ut=f,dt=String,ht=TypeError,pt=C,ft=te,gt=ee,mt=TypeError,yt=Object.defineProperty,vt=Object.getOwnPropertyDescriptor,bt=(v.f=o?k?function(e,t,n){var i;return ft(e),t=gt(t),ft(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable&&(i=vt(e,t))&&i.writable&&(e[t]=n.value,n={configurable:("configurable"in n?n:i).configurable,enumerable:("enumerable"in n?n:i).enumerable,writable:!1}),yt(e,t,n)}:yt:function(e,t,n){if(ft(e),t=gt(t),ft(n),pt)try{return yt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new mt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},v),wt=U,x=o?function(e,t,n){return bt.f(e,t,wt(1,n))}:function(e,t,n){return e[t]=n,e},w={exports:{}},C=o,k=y,xt=Function.prototype,S=C&&Object.getOwnPropertyDescriptor,k=k(xt,"name"),k={EXISTS:k,PROPER:k&&"something"===function(){}.name,CONFIGURABLE:k&&(!C||S(xt,"name").configurable)},C=g,S=m,At=c(Function.toString);C(S.inspectSource)||(S.inspectSource=function(e){return At(e)});var Ct,E,T,$,xt=S.inspectSource,C=g,S=n.WeakMap,C=C(S)&&/native code/.test(String(S)),S=Z,A=A("keys"),D={},kt=f,_t=x,St=y,Et=D,Tt="Object already initialized",$t=n.TypeError,L=n.WeakMap,Dt=C||m.state?((T=m.state||(m.state=new L)).get=T.get,T.has=T.has,T.set=T.set,Ct=function(e,t){if(T.has(e))throw new $t(Tt);return t.facade=e,T.set(e,t),t},E=function(e){return T.get(e)||{}},function(e){return T.has(e)}):(Et[$=A[C="state"]||(A[C]=S(C))]=!0,Ct=function(e,t){if(St(e,$))throw new $t(Tt);return t.facade=e,_t(e,$,t),t},E=function(e){return St(e,$)?e[$]:{}},function(e){return St(e,$)}),m={set:Ct,get:E,has:Dt,enforce:function(e){return Dt(e)?E(e):Ct(e,{})},getterFor:function(t){return function(e){if(kt(e)&&(e=E(e)).type===t)return e;throw new $t("Incompatible receiver, "+t+" required")}}},L=c,Et=t,Lt=g,Nt=y,It=o,Mt=k.CONFIGURABLE,Rt=xt,Ot=m.enforce,Pt=m.get,Bt=String,jt=Object.defineProperty,Ht=L("".slice),Ft=L("".replace),zt=L([].join),Wt
2=It&&!Et(function(){return 8!==jt(function(){},"length",{value:8}).length}),Ut=String(String).split("String"),A=w.exports=function(e,t,n){"Symbol("===Ht(Bt(t),0,7)&&(t="["+Ft(Bt(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Nt(e,"name")||Mt&&e.name!==t)&&(It?jt(e,"name",{value:t,configurable:!0}):e.name=t),Wt&&n&&Nt(n,"arity")&&e.length!==n.arity&&jt(e,"length",{value:n.arity});try{n&&Nt(n,"constructor")&&n.constructor?It&&jt(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=Ot(e);return Nt(n,"source")||(n.source=zt(Ut,"string"==typeof t?t:"")),e};Function.prototype.toString=A(function(){return Lt(this)&&Pt(this).source||Rt(this)},"toString");function qt(e,t,n,i){var o=(i=i||{}).enumerable,r=void 0!==i.name?i.name:t;if(sn(n)&&cn(n,r,i),i.global)o?e[t]=n:un(t,n);else{try{i.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:ln.f(e,t,{value:n,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return e}function Vt(e){return(e=+e)!=e||0==e?0:pn(e)}function Yt(e){return 0<(e=e.length)?vn(yn(e),9007199254740991):0}function Kt(s){return function(e,t,n){var i,o=bn(e),r=wn(o),a=((e,t)=>(e=fn(e))<0?gn(e+t,0):mn(e,t))(n,r);if(s&&t!=t){for(;a<r;)if((i=o[a++])!=i)return!0}else for(;a<r;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function Gt(e,t){var n,i=An(e),o=0,r=[];for(n in i)!xn(kn,n)&&xn(i,n)&&_n(r,n);for(;t.length>o;)!xn(i,n=t[o++])||~Cn(r,n)||_n(r,n);return r}function N(e,t){return(e=Hn[jn(e)])===zn||e!==Fn&&(Pn(t)?On(t):!!t)}function Qt(e,t){var n,i,o,r,a=e.target,s=e.global,l=e.stat;if(n=s?Wn:l?Wn[a]||Yn(a,{}):(Wn[a]||{}).prototype)for(i in t){if(o=t[i],r=e.dontCallGetSet?(r=Un(n,i))&&r.value:n[i],!Kn(s?i:a+(l?".":"#")+i,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;u=c=void 0;for(var c=o,u=r,d=m=g=f=p=h=d=void 0,h=In(u),p=Rn.f,f=Mn.f,g=0;g<h.length;g++){var m=h[g];Nn(c,m)||d&&Nn(d,m)||p(c,m,f(u,m))}}(e.sham||r&&r.sham)&&qn(o,"sham",!0),Vn(n,i,o,e)}}function Xt(){}function I(e){if(!mi(e))return!1;try{return wi(Xt,bi,e),!0}catch(e){return!1}}function Jt(e){if(!mi(e))return!1;switch(yi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ci||!!Ai(xi,vi(e))}catch(e){return!0}}function Zt(e,t){return new(void 0===(n=ki(e=e)&&(n=e.constructor,_i(n)&&(n===Ti||ki(n.prototype))||Si(n)&&null===(n=n[Ei]))?void 0:n)?Ti:n)(0===t?0:t);var n}function en(t){return 51<=Di||!$i(function(){var e=[];return(e.constructor={})[Li]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function tn(e){if(9007199254740991<e)throw si("Maximum allowed index exceeded")}function nn(e,t,n){(t=li(t))in e?ci.f(e,t,ui(0,n)):e[t]=n}function on(e){if("Function"===Bi(e))return ji(e)}function M(f){var g=1===f,m=2===f,y=3===f,v=4===f,b=6===f,w=7===f,x=5===f||b;return function(e,t,n,i){for(var o,r,a,s,l=Ui(e),c=Wi(l),u=qi(c),d=(s=n,Hi(a=t),void 0===s?a:Fi?zi(a,s):function(){return a.apply(s,arguments)}),h=0,n=i||Vi,p=g?n(e,u):m||w?n(e,0):void 0;h<u;h++)if((x||h in c)&&(r=d(o=c[h],h,l),f))if(g)p[h]=r;else if(r)switch(f){case 3:return!0;case 5:return o;case 6:return h;case 2:Yi(p,o)}else switch(f){case 4:return!1;case 7:Yi(p,o)}return b?-1:y||v?v:p}}var rn,an,sn=g,ln=v,cn=w.exports,un=X,S={},dn=Math.ceil,hn=Math.floor,pn=Math.trunc||function(e){e=+e;return(0<e?hn:dn)(e)},fn=Vt,gn=Math.max,mn=Math.min,yn=Vt,vn=Math.min,bn=K,wn=Yt,C={includes:Kt(!0),indexOf:Kt(!1)},xn=y,An=K,Cn=C.indexOf,kn=D,_n=c([].push),k=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Sn=Gt,En=k.concat("length","prototype"),m=(S.f=Object.getOwnPropertyNames||function(e){return Sn(e,En)},{}),L=(m.f=Object.getOwnPropertySymbols,G),Tn=S,$n=m,Dn=te,Ln=c([].concat),Et=L("Reflect","ownKeys")||function(e){var t=Tn.f(Dn(e)),n=$n.f;return n?Ln(t,n(e)):t},Nn=y,In=Et,Mn=i,Rn=v,On=t,Pn=g,Bn=/#|\.prototype\./,jn=N.normalize=function(e){return String(e).replace(Bn,".").toLowerCase()},Hn=N.data={},Fn=N.NATIVE="N",zn=N.POLYFILL="P",Wn=n,Un=i.f,qn=x,Vn=qt,Yn=X,Kn=N,Gn=Gt,Qn=k,A=Object.keys||function(e){return Gn(e,Qn)},Xn=o,w=c,Jn=a,C=t,Zn=A,ei=m,ti=s,ni=J,ii=l,R=Object.assign,oi=Object.defineProperty,ri=w([].concat),D=!R||C(function(){var e,t,n,i;return Xn&&1!==R({b:1},R(oi({},"a",{enumerable:!0,get:function(){oi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},i="abcdefghijklmnopqrst",(e={})[n=Symbol("assign detection")]=7,i.split("").forEach(function(e){t[e]=e}),7!==R({},e)[n])||Zn(R({},t)).join("")!==i})?function(e,t){for(var n=ni(e),i=arguments.length,o=1,r=ei.f,a=ti.f;o<i;)for(var s,l=ii(arguments[o++]),c=r?ri(Zn(l),r(l)):Zn(l),u=c.length,d=0;d<u;)s=c[d++],Xn&&!Jn(a,l,s)||(n[s]=l[s]);return n}:R,ai=(Qt({target:"Object",stat:!0,arity:2,forced:Object.assign!==D},{assign:D}),q),S=Array.isArray||function(e){return"Array"===ai(e)},si=TypeError,li=ee,ci=v,ui=U,L={},y=(L[u("toStringTag")]="z","[object z]"===String(L)),Et=y,di=g,hi=q,pi=u("toStringTag"),fi=Object,gi="Arguments"===hi(function(){return arguments}()),n=Et?hi:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=((e,t)=>{try{return e[t]}catch(e){}})(e=fi(e),pi))?t:gi?hi(e):"Object"===(t=hi(e))&&di(e.callee)?"Arguments":t},i=c,x=t,mi=g,yi=n,vi=xt,bi=[],wi=G("Reflect","construct"),xi=/^\s*(?:class|function)\b/,Ai=i(xi.exec),Ci=!xi.test(Xt),k=(Jt.sham=!0,!wi||x(function(){var e;return I(I.call)||!I(Object)||!I(function(){e=!0})||e})?Jt:I),ki=S,_i=k,Si=f,Ei=u("species"),Ti=Array,$i=t,Di=b,Li=u("species"),o=Qt,a=t,Ni=S,Ii=f,Mi=J,Ri=Yt,Oi=Zt,A=en,m=b,Pi=u("isConcatSpreadable"),s=51<=m||!a(function(){var e=[];return e[Pi]=!1,e.concat()[0]!==e}),Bi=(o({target:"Array",proto:!0,arity:1,forced:!s||!A("concat")},{concat:function(e){for(var t,n,i,o,r,a=Mi(this),s=Oi(a,0),l=0,c=-1,u=arguments.length;c<u;c++)if(o=i=-1===c?a:arguments[c],r=void 0,!Ii(o)||(void 0!==(r=o[Pi])?!r:!Ni(o)))tn(l+1),nn(s,l++,i);else for(n=Ri(i),tn(l+n),t=0;t<n;t++,l++)t in i&&nn(s,l,i[t]);return s.length=l,s}}),q),ji=c,Hi=Q,Fi=z,zi=on(on.bind),Wi=l,Ui=J,qi=Yt,Vi=Zt,Yi=c([].push),Ki=[M(0),M(1),M(2),M(3),M(4),M(5),M(6),M(7)][2],Gi=(Qt({target:"Array",proto:!0,forced:!en("filter")},{filter:function(e){return Ki(this,e,1<arguments.length?arguments[1]:void 0)}}),n),w=(y||qt(Object.prototype,"toString",y?{}.toString:function(){return"[object "+Gi(this)+"]"},{unsafe:!0}),t),C=Qt,D=l,Qi=K,Xi=c([].join),Ji=(C({target:"Array",proto:!0,forced:D!==Object||(rn=",",!(!!(an=[]["join"])&&w(function(){an.call(null,rn||function(){return 1},1)})))},{join:function(e){return Xi(Qi(this),void 0===e?",":e)}}),d.fn.bootstrapTable.utils);Object.assign(d.fn.bootstrapTable.defaults,{treeEnable:!1,treeShow
2Field:null,idField:"id",parentIdField:"pid",rootParentId:null}),d.BootstrapTable=(()=>{var e=u,t=d.BootstrapTable;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t);var n=j(u);function u(){var e=this,t=u;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return P((e=u).prototype,[{key:"init",value:function(){var e;this._rowStyle=this.options.rowStyle;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=p(h(u.prototype),"init",this)).call.apply(e,[this].concat(n))}},{key:"initHeader",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=p(h(u.prototype),"initHeader",this)).call.apply(e,[this].concat(n));var o=this.options.treeShowField;if(o){var r,a=F(this.header.fields);try{for(a.s();!(r=a.n()).done;)if(o===r.value){this.treeEnable=!0;break}}catch(e){a.e(e)}finally{a.f()}}}},{key:"initBody",value:function(){var e;this.treeEnable&&(this.options.virtualScroll=!1);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=p(h(u.prototype),"initBody",this)).call.apply(e,[this].concat(n))}},{key:"initTr",value:function(t,e,n,i){var o=this,r=n.filter(function(e){return t[o.options.idField]===e[o.options.parentIdField]});i.append(p(h(u.prototype),"initRow",this).call(this,t,e,n,i));for(var a=r.length-1,s=0;s<=a;s++){var l=r[s],c=Ji.extend(!0,{},t);l._level=c._level+1,l._parent=c,s===a&&(l._last=1),this.options.rowStyle=function(e,t){var t=o._rowStyle(e,t),n=e[o.options.idField]||0,e=e[o.options.parentIdField]||0;return t.classes=[t.classes||"","treegrid-".concat(n),"treegrid-parent-".concat(e)].join(" "),t},this.initTr(l,d.inArray(l,n),n,i)}}},{key:"initRow",value:function(e,t,n,i){var o=this;return this.treeEnable?!(this.options.rootParentId!==e[this.options.parentIdField]&&e[this.options.parentIdField]||(void 0===e._level&&(e._level=0),this.options.rowStyle=function(e,t){t=o._rowStyle(e,t),e=e[o.options.idField]||0;return t.classes=[t.classes||"","treegrid-".concat(e)].join(" "),t},this.initTr(e,t,n,i),0)):p(h(u.prototype),"initRow",this).call(this,e,t,n,i)}},{key:"destroy",value:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=p(h(u.prototype),"destroy",this)).call.apply(e,[this].concat(n)),this.options.rowStyle=this._rowStyle}}]),Object.defineProperty(e,"prototype",{writable:!1}),u})()});class Form{constructor(i){this.widget={num:0},this.attribute={num:0},this.tab=[],this.unique=util.generateRandStr(8),this.data={},this.opt=i,this.form={},this.disposables=[],this.disposedControls=new WeakSet,this.layuiEvents=[],this.tipIndexes=new Set,this.isDestroyed=!1,["basePath","workerPath","modePath","themePath"].forEach(e=>{ace.config.set(e,"/assets/common/js/editor/code/lib")}),i.tab.forEach((e,t)=>{!0===e.hide&&(e.name="");let n=`<div class="layui-card-body"><form class="layui-form layui-form-pane ${this.unique+t}" lay-filter="${this.unique+t}">`;e.form.forEach((e,t)=>{switch(e.title&&(e.title=i18n(e.title)),e.placeholder&&(e.placeholder=i18n(e.placeholder)),e.name=util.replaceDotWithHyphen(e.name),i.hasOwnProperty("assign")&&util.checkPropertyExistence(i.assign,e.name)&&(e.default=util.parseStringObject(i.assign,e.name)),this.data[e.name]={hide:e.hide?" hide":"",titleHide:e.title?"":"hide",blockMarginZero:e.title?"":"margin-left-zero"},(this.form[e.name]=e).type){case"input":case"date":n+=this.inputHtml(e,"text");break;case"number":n+=this.inputHtml(e,"number");break;case"password":n+=this.inputHtml(e,"password");break;case"checkbox":case"radio":case"widget":n+=this.getBlockHtml(e,util.icon("icon-loading","icon-spin","icon-18px"));break;case"attribute":n+=this.getBlockHtml(e);break;case"select":n+=this.selectHtml(e);break;case"switch":n+=this.switchHtml(e);break;case"textarea":n+=this.textareaHtml(e);break;case"editor":e.uploadUrl||(e.uploadUrl="/admin/api/upload/send"),n+=this.editorHtml(e);break;case"editorv2":e.uploadUrl||(e.uploadUrl="/admin/api/upload/send"),n+=this.editorv2Html(e);break;case"html":n+=this.htmlHtml(e);break;case"image":e.uploadUrl||(e.uploadUrl="/admin/api/upload/send"),e.photoAlbumUrl||(e.photoAlbumUrl="/admin/api/upload/get"),n+=this.imageHtml(e);break;case"file":e.uploadUrl||(e.uploadUrl="/admin/api/upload/send"),n+=this.fileHtml(e);break;case"treeCheckbox":n+=this.treeCheckboxHtml(e);break;case"treeSelect":n+=this.treeSelectHtml(e);break;
2case"custom":n+=this.getBlockHtml(e)}}),n+="</form></div>",e.name&&(e.name=i18n(e.name)),this.tab.push({title:e.name,content:n})})}setIndex(e){this.index=e}getIndex(){return this.index}escapeAttribute(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(e??"").replace(/[&<>"']/g,e=>t[e])}registerDisposable(e,t=null){return!e&&"function"!=typeof t||(t={control:e,cleanup:t,disposed:!1},this.isDestroyed?this.disposeRecord(t,new Set):this.disposables.push(t)),e}registerLayuiEvent(e,t,n,i){return this.isDestroyed?null:(this.layuiEvents.push({module:t,event:n}),e.on(n,i))}trackTip(e){return null!=e&&this.tipIndexes.add(e),e}closeTip(e){null!=e&&(layer.close(e),this.tipIndexes.delete(e))}disposeControl(t,e){if(t){if("object"==typeof t||"function"==typeof t){if(e.has(t)||this.disposedControls.has(t))return;e.add(t),this.disposedControls.add(t)}var n,i=t.cm&&"function"==typeof t.cm.getWrapperElement?t.cm:"function"==typeof t.getWrapperElement?t:null;if(i){i!==t&&e.add(i);try{"function"==typeof i.toTextArea?i.toTextArea():(n=i.getWrapperElement())&&n.parentNode&&n.parentNode.removeChild(n)}catch(e){util.debug("Form CodeMirror destroy skipped: "+this.unique,"#ff4f33")}}var o=["destroy","dispose","unmount","closed"];for(let e=0;e<o.length;e++)if("function"==typeof t[o[e]]){try{t[o[e]]()}catch(e){util.debug("Form control destroy skipped: "+this.unique,"#ff4f33")}break}}}disposeRecord(e,t){if(e&&!e.disposed){e.disposed=!0;try{"function"==typeof e.cleanup?e.cleanup(e.control):"function"==typeof e.control?e.control():this.disposeControl(e.control,t)}catch(e){util.debug("Form disposable destroy skipped: "+this.unique,"#ff4f33")}}}getMap(e=null){e=util.replaceDotWithHyphen(e);var t=cache.get(this.unique);return e?t[e]:t}setData(e,t){let n=cache.get(this.unique);(n=n||{})[e]=t,cache.set(this.unique,n)}validator(){var t=this.getData();for(let e=0;e<this.opt.tab.length;e++){var n=this.opt.tab[e];for(let e=0;e<n.form.length;e++){var i=n.form[e],o=util.parseStringObject(t,util.replaceDotWithHyphen(i.name));if(!0===i.required&&""===o)return layer.msg(`「${i.title?util.plainText(i.title):i.name}」`+i18n("不能为空值")),!1;if(i.regex&&o)if(!new RegExp(i.regex.value).test(o))return layer.msg(""+i.regex.message),!1}}return!0}getBlockHtml(e,t=""){var n=e.title||"";return`<div class="layui-form-item block-${e.name} ${this.data[e.name].hide}">
3            <label class="layui-form-label ${this.data[e.name].titleHide}">${n}${!0===e.required?util.icon("fa-duotone fa-regular fa-asterisk text-danger fs-10 ms-1 icon-top-2"):""}</label>
4            <div class="${this.data[e.name].blockMarginZero} layui-input-block component-${e.name} component-content" >
5            ${t}
6            </div>
7            </div>`}inputHtml(e,t="text"){var n="password"===t?' autocomplete="new-password" autocapitalize="none" spellcheck="false"':"";return this.getBlockHtml(e,`<input ${e.disabled?"disabled":""} name="${this.escapeAttribute(e.name)}" placeholder="${this.escapeAttribute(e.placeholder)}" type="${this.escapeAttribute(t)}" class="layui-input" value="${this.escapeAttribute(e.default)}"${n}>`)}selectHtml(e){return this.getBlockHtml(e,`<select lay-filter="${this.escapeAttribute(this.unique+e.name)}" name="${this.escapeAttribute(e.name)}" ${e.search?' lay-search=""':""}><option value="">${this.escapeAttribute(e.placeholder??i18n("请选择"))}</option></select>`)}switchHtml(e){return this.getBlockHtml(e,`<input lay-filter="${this.escapeAttribute(this.unique+e.name)}" name="${this.escapeAttribute(e.name)}" type="checkbox" lay-skin="switch" ${1==e.default?"checked":""} lay-text="${this.escapeAttribute(e.placeholder??"ON|OFF")}" value="1">`)}textareaHtml(e){return this.getBlockHtml(e,`<textarea ${e.disabled?"disabled":""} ${e.hasOwnProperty("height")?'style="height:'+(Number.isInteger(e.height)?e.height+"px":e.height)+'"':""} name="${this.escapeAttribute(e.name)}" placeholder="${this.escapeAttribute(e.placeholder)}" class="layui-textarea">${this.escapeAttribute(e.default)}</textarea>`)}editorHtml(e){return this.getBlockHtml(e,`<div class="editor-wrapper"><div><button data-type="0" class="button-switch-${this.escapeAttribute(e.name)}
7" type="button" style="width: 100%;border: none;background: rgba(255, 255, 255, 0.35);border-radius: 5px 5px 0 0;color: #c9b8b8;"><i class="fa-duotone fa-regular fa-code me-1"></i>HTML</button></div><div class="editor-content"><div class="toolbar-container"></div><div class="editor-container"></div></div><textarea class="text-container" style="display: none;" name="${this.escapeAttribute(e.name)}">${this.escapeAttribute(e.default)}</textarea></div>`)}htmlHtml(e){return this.getBlockHtml(e,`<div  style="width: 100%;height: ${e.height?Number.isInteger(e.height)?e.height+"px":e.height:"400px"}" id="${this.unique}-${e.name}-editor"></div>`)}imageHtml(e){var t=e.title;let n=e.title||"";e.photoAlbumUrl&&n&&(n+=`<a class="photo-album" style="position: relative;top: 2px;cursor:pointer;">${util.icon("fa-duotone fa-regular fa-image text-success ms-1 fs-5")}</a>`),n+=`<a class="external-input" style="position: relative;top: 2px;cursor:pointer;">${util.icon("fa-duotone fa-regular fa-link ms-1 fs-5 text-primary")}</a>`,e.title=n;var i=this.getBlockHtml(e,`<input name="${this.escapeAttribute(e.name)}" placeholder="${this.escapeAttribute(i18n("输入网络图片地址"))}" type="text" class="layui-input" value="${this.escapeAttribute(e.default)}" style="display: none;"><div class="image-render"></div>`);return e.title=t,i}fileHtml(e){return this.getBlockHtml(e,`<input name="${this.escapeAttribute(e.name)}" placeholder="${this.escapeAttribute(i18n("输入文件网络地址"))}" type="text" class="layui-input" value="${this.escapeAttribute(e.default)}" style="display: none;"><div class="file-render"></div>`)}treeCheckboxHtml(e){return this.getBlockHtml(e,'<div class="treeCheckbox"></div>')}treeSelectHtml(e){return this.getBlockHtml(e,`<input type="text" lay-filter="${this.escapeAttribute(this.unique+e.name)}" class="layui-input tree-select"><input name="${this.escapeAttribute(e.name)}"  type="hidden" class="layui-input" value="${this.escapeAttribute(e.default)}">`)}
7hide(e){$("."+this.unique+" .block-"+util.replaceDotWithHyphen(e)).hide()}show(e){$("."+this.unique+" .block-"+util.replaceDotWithHyphen(e)).fadeIn(100)}setInput(e,t){e=util.replaceDotWithHyphen(e),$("."+this.unique+" input[name="+e+"]").val(t),this.triggerOtherPopupChange(e,t)}setCustom(e,t){e=util.replaceDotWithHyphen(e),$(`.${this.unique} .component-`+e).html(t),this.triggerOtherPopupChange(e,t)}getCustomDom(e){return e=util.replaceDotWithHyphen(e),$(`.${this.unique} .component-`+e)}setTextarea(e,t){e=util.replaceDotWithHyphen(e),$("."+this.unique+" textarea[name="+e+"]").val(t),this.triggerOtherPopupChange(e,t)}appendTextarea(e,t){e=util.replaceDotWithHyphen(e),$(`.${this.unique} textarea[name=${e}]`).append(t+"\n"),this.triggerOtherPopupChange(e,t)}clearComponent(e){e=util.replaceDotWithHyphen(e);e=$("."+this.unique+" .component-"+e);e.html(""),layui.form.render(e)}addCheckbox(e,t,n,i=!1,o=!1,r=!1){var a=this.form[e],s=(e=util.replaceDotWithHyphen(e),$("."+this.unique+" .component-"+e));s.append("<input "+(o?"disabled":"")+" "+(a.tag?'lay-skin="tag"':"")+'  lay-filter="'+this.escapeAttribute(this.unique+e)+'"  type="checkbox" '+(i?"checked":"")+' value="'+this.escapeAttribute(t)+'" name="'+this.escapeAttribute(e)+'[]" title="'+this.escapeAttribute(String(n??"").replace(/(<([^>]+)>)/gi,""))+'">'),r||layui.form.render(s.find("input"))}setCheckbox(e,t,n){e=util.replaceDotWithHyphen(e);var i=$("."+this.unique+" .component-"+e+" input[value="+t+"]");i.prop("checked",n),layui.form.render(i),this.triggerOtherPopupChange(e,t,n)}delCheckbox(e,t){e=util.replaceDotWithHyphen(e);t=$("."+this.unique+" .component-"+e+" input[value="+t+"]");t.next().remove(),t.remove(),layui.form.render($("."+this.unique+" .component-"+e+" input[type=checkbox]"))}addRadio(e,t,n,i=!1,o=!1){e=util.replaceDotWithHyphen(e);var r=$("."+this.unique+" .component-"+e);r.append("<input "+(o?"disabled":"")+' lay-filter="'+this.escapeAttribute(this.unique+e)+'"  type="radio" '+(i?"checked":"")+' value="'+this.escapeAttribute(t)+'" name="'+this.escapeAttribute(e)+'" title="'+this.escapeAttribute(String(n??"").replace(/(<([^>]+)>)/gi,""))+'">'),layui.form.render(r.find("input"))}setRadio(e,t,n){e=util.replaceDotWithHyphen(e);var i=$("."+this.unique+" .component-"+e+" input[type=radio]"),o=$("."+this.unique+" .component-"+e+" input[value="+t+"]");i.prop("checked",!1),o.prop("checked",n),layui.form.render(i),this.triggerOtherPopupChange(e,t)}delRadio(e,t){e=util.replaceDotWithHyphen(e);t=$("."+this.unique+" .component-"+e+" input[value="+t+"]");t.next().remove(),t.remove(),layui.form.render($("."+this.unique+" .component-"+e+" input[type=radio]"))}addOption(e,t,n,i=!1,o=!1){e=util.replaceDotWithHyphen(e);e=$("."+this.unique+" .component-"+e+" select");e.append('<option value="'+this.escapeAttribute(t)+'"  '+(i?"selected":"")+">"+this.escapeAttribute(String(n??"").replace(/(<([^>]+)>)/gi,""))+"</option>"),o||layui.form.render(e)}delOption(e,t){e=util.replaceDotWithHyphen(e),$("."+this.unique+" .component-"+e+" select option[value="+t+"]").remove(),layui.form.render($("."+this.unique+" .component-"+e+" select"))}clearOption(e){e=util.replaceDotWithHyphen(e);var t=$("."+this.unique+" .component-"+e+" select");t.html('<option value="">'+this.escapeAttribute(this.form[e].placeholder??i18n("请选择"))+"</option>"),layui.form.render(t)}setSelected(e,t){e=util.replaceDotWithHyphen(e);var n=$("."+this.unique+" .component-"+e+" select");n.val(t),layui.form.render(n),this.triggerOtherPopupChange(e,t)}addWidget(e,t=null,n={}){e=util.replaceDotWithHyphen(e);var i=e=>this.escapeAttribute(e),o=(this.widget.num++,util.generateRandStr(12));let r=this,a=!0;t||(t=$("."+this.unique+" .component-"+e),a=!1);var s="select"==n.type||"checkbox"==n.type||"radio"==n.type,l="<option "+("text"==n.type?"selected":"")+' value="text">'+i18n("文本框")+"</option><option "+("password"==n.type?"selected":"")+' value="password">'+i18n("密码框")+"</option><option "+("number"==n.type?"selected":"")+' value="number">'+i18n("数字框")+"</option><option "+("select"==n.type?"selected":"")+' value="select">'+i18n("下拉框")+"</option><option "+("checkbox"==n.type?"selected":"")+' value="checkbox">'+i18n("多选框")+"</option><option "+("radio"==n.type?"selected":"")+' value="radio">'+i18n("单选框")+"</option><option "+("textarea"==n.type?"selected":"")+' value="textarea">'+i18n("文本域")+"</option>",l='<div class="widget-block widget-block-'+o+'"><div class="widget-head"><span class="widget-title"><i class="fa-duotone fa-regular fa-pen-field"></i>'+i18n("控件")+'</span><span class="widget-btn widget-del widget-del-'+o+'" title="'+i18n("删除该控件")+'"><i class="fa-duotone fa-regular fa-trash-can"></i></span></div><div class="widget-grid"><div class="widget-field"><label>'+i18n("类型")+'</label><div class="widget-general"><select name="type-'+i(e)+'[]" lay-filter="widget-type-'+o+'">'+l+'</select></div></div><div class="widget-field"><label>'+i18n("控件名称")+'</label><input type="text" name="title-'+i(e)+'[]" placeholder="'+i(i18n("如:游戏账号"))+'" class="layui-input" value="'+i(n.hasOwnProperty("cn")?n.cn:"")+'"></div><div class="widget-field"><label>'+i18n("字段名(英文)")+'</label><input type="text" name="name-'+i(e)+'[]" placeholder="'+i(i18n("如:username"))+'" class="layui-input" value="'+i(n.name)+'"></div><div class="widget-field"><label>'+i18n("提示文字")+'</label><input type="text" name="placeholder-'+i(e)+'[]" placeholder="'+i(i18n("购买时输入框内的浅色提示"))+'" class="layui-input" value="'+i(n.placeholder)+'"></div></div><div class="widget-field widget-data-field widget-data-'+o+'"'+(s?"":' style="display:none"')+"><label>"+i18n("可选项配置")+'</label><div class="widget-options widget-options-'+o+'"></div><span class="widget-option-add widget-option-add-'+o+'"><i class="fa-duotone fa-regular fa-plus"></i> '+i18n("添加选项")+'</span><textarea name="data-'+i(e)+'[]" class="widget-data-sync widget-data-sync-'+o+'" style="display:none"></textarea></div><div class="widget-advanced"><span class="widget-advanced-toggle"><i class="fa-duotone fa-regular fa-chevron-right"></i>'+i18n("高级设置(选填)")+'</span><div class="widget-advanced-body"><div class="widget-grid"><div class="widget-field"><label>'+i18n("正则校验")+'</label><input type="text" name="regex-'+i(e)+'[]" placeholder="'+i(i18n("如:^\\d{5,11}$"))+'" class="layui-input" value="'+i(n.regex)+'"></div><div class="widget-field"><label>'+i18n("校验失败提示")+'</label><input type="text" name="error-'+i(e)+'[]" placeholder="'+i(i18n("格式不正确时的提示"))+'" class="layui-input" value="'+i(n.error)+'"></div></div></div></div></div>';a?t.after(l):t.append(l);let c=$(".widget-data-"+o),u=(this.registerLayuiEvent(layui.form,"form","select(widget-type-"+o+")",e=>{switch(e.value){case"select":case"checkbox":case"radio":c.show(150);break;default:c.hide(150)}}),$(".widget-del-"+o).click(function(){if(r.widget.num<=1)layer.msg("(⁎˃ᆺ˂)"+i18n("饶命,请留下最后一只独苗"));else{let e=$(this).closest(".widget-block");e.fadeOut("fast",function(){e.remove(),r.widget.num--})}}
7),$(".widget-block-"+o+" .widget-advanced-toggle").click(function(){$(this).closest(".widget-advanced").toggleClass("open")}),$(".widget-options-"+o)),d=$(".widget-data-sync-"+o);function h(){let n=[];u.find(".widget-option-row").each(function(){var e=($(this).find(".widget-opt-label").val()||"").trim(),t=($(this).find(".widget-opt-value").val()||"").trim();""!==e&&""!==t&&n.push(e+"="+t)}),d.val(n.join(","))}function p(e,t){var n=$('<div class="widget-option-row"><div class="widget-field"><input type="text" class="layui-input widget-opt-label" placeholder="'+i18n("如:大熊猫")+'"><label>'+i18n("显示名称")+'</label></div><div class="widget-field"><input type="text" class="layui-input widget-opt-value" placeholder="'+i18n("如:dxm")+'"><label>'+i18n("值")+'</label></div><span class="widget-btn widget-opt-del" title="'+i18n("删除选项")+'"><i class="fa-duotone fa-regular fa-xmark"></i></span></div>');n.find(".widget-opt-label").val(e||""),n.find(".widget-opt-value").val(t||""),u.append(n),n.find("input").on("input",h),n.find(".widget-opt-del").on("click",function(){$(this).closest(".widget-option-row").remove(),h()})}s=(n.dict??"").trim();s?s.split(",").forEach(function(e){var t;(e=e.trim())&&p(0<=(t=e.indexOf("="))?e.slice(0,t).trim():e,0<=t?e.slice(t+1).trim():"")}):p("",""),h(),$(".widget-option-add-"+o).on("click",function(){p("","")}),$(".widget-block-"+o).show(150),layui.form.render()}addAttribute(t,e=null,i={}){t=util.replaceDotWithHyphen(t);var o=this.escapeAttribute(t),n=(this.attribute.num++,util.generateRandStr(12));let r=this,a=!0,s=(e||(e=$("."+this.unique+" .component-"+t),a=!1),(this.attributeConfig||{})[t]||{}),l;if(Array.isArray(s.valueDict)&&s.valueDict.length){let n="";s.valueDict.forEach(e=>{var t=String(e.id);n+='<option value="'+this.escapeAttribute(t)+'"'+(String(i.value)===t?" selected":"")+">"+this.escapeAttribute(i18n(e.name))+"</option>"}),l='<select name="value-'+o+'[]" lay-ignore class="layui-input widget-general widget-w500">'+n+"</select> "}else l='<input value="'+this.escapeAttribute(i.value)+'" name="value-'+o+'[]" type="text" placeholder="'+this.escapeAttribute(i18n(s.valuePlaceholder||"属性内容"))+'" class="layui-input widget-general widget-w500"> ';o='<div class="widget-block widget-block-'+n+'">'+(s.sortable?'<span class="widget-attr-handle" title="'+this.escapeAttribute(i18n("拖动排序"))+'">⠿</span>':"")+'<input value="'+this.escapeAttribute(i.name)+'" name="name-'+o+'[]" type="text" placeholder="'+this.escapeAttribute(i18n(s.namePlaceholder||"属性名称"))+'" class="layui-input widget-general widget-w220"> '+l+'<div style="display: inline-block;margin-left: 2px;"><i class="layui-icon widget-add-'+n+'" style="color: #23a148;cursor: pointer;font-size: 16px;font-weight: bold;">&#xe61f;</i> <i class="layui-icon widget-del-'+n+'" style="color: #eb8181;cursor: pointer;font-size: 16px;font-weight: bold;">&#x1006;</i></div></div>';a?e.after(o):e.append(o),$(".widget-add-"+n).click(function(){r.addAttribute(t,$(this).parent().parent(),{})}),$(".widget-del-"+n).click(function(){if(!s.allowEmpty&&r.attribute.num<=1)layer.msg("(⁎˃ᆺ˂)"+i18n("饶命,请留下最后一只独苗"));else{let e=$(this).parent().parent();e.fadeOut("fast",function(){e.remove(),r.attribute.num--,s.allowEmpty&&r.syncAttributeEmptyState(t)})}}),$(".widget-block-"+n).show(150),s.sortable&&this.bindAttributeDrag($(".widget-block-"+n),t),layui.form.render()}bindAttributeDrag(o,e){let u=$("."+this.unique+" .component-"+e);e=o.find(".widget-attr-handle");if(e.length){let c=()=>Array.prototype.slice.call(u[0].querySelectorAll(".widget-block"));e.on("pointerdown",function(e){e.preventDefault();let r=o[0],t=e.originalEvent.clientY,a=0,s=0,l=(r.classList.add("is-dragging"),u[0].classList.add("is-sorting"),()=>{r.style.transform="translateY("+(a+s)+"px)"}),n=e=>{a=e.clientY-t,l();let o=e.clientY;c().forEach(e=>{if(e!==r){var t=e.getBoundingClientRect(),t=t.top+t.height/2,i=e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING,n=e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING;if(o<t&&i||o>t&&n){let n=new Map;
7c().forEach(e=>n.set(e,e.getBoundingClientRect().top));i=r.getBoundingClientRect().top;o<t?e.parentNode.insertBefore(r,e):e.parentNode.insertBefore(r,e.nextSibling),r.style.transform="",s=i-r.getBoundingClientRect().top-a,l(),c().forEach(e=>{var t;e!==r&&n.has(e)&&(t=n.get(e)-e.getBoundingClientRect().top)&&(e.style.transition="none",e.style.transform="translateY("+t+"px)",requestAnimationFrame(()=>{e.style.transition="transform .18s cubic-bezier(.2,0,0,1)",e.style.transform=""}))})}}})},i=()=>{document.removeEventListener("pointermove",n),document.removeEventListener("pointerup",i),document.removeEventListener("pointercancel",i),r.style.transition="transform .18s cubic-bezier(.2,0,0,1)",r.style.transform="",u[0].classList.remove("is-sorting"),setTimeout(()=>{r.classList.remove("is-dragging"),r.style.transition="",c().forEach(e=>{e.style.transition="",e.style.transform=""})},190)};document.addEventListener("pointermove",n),document.addEventListener("pointerup",i),document.addEventListener("pointercancel",i)})}}setSwitch(e,t){e=util.replaceDotWithHyphen(e);var n=$("."+this.unique+" .component-"+e+" input[type=checkbox]");n.prop("checked",t),layui.form.render(n),this.triggerOtherPopupChange(e,t)}setEditor(e,t){e=util.replaceDotWithHyphen(e),cache.get(this.unique+e).setHtml(t)}
7setHtml(e,t){e=util.replaceDotWithHyphen(e),cache.get(this.unique+e).setValue(t)}triggerOtherPopupChange(e,...t){e=util.replaceDotWithHyphen(e);e=this.form[e];e&&e.change&&e.change(this,...t)}setImage(e,t){e=util.replaceDotWithHyphen(e);let n=this.form[e];$(`.${this.unique} .component-${n.name} input[name=${n.name}]`).val(t),this.uploadImage({container:`.${this.unique} .component-${n.name} .image-render`,imageUrl:t,title:n.placeholder,height:n.height,uploadUrl:n.uploadUrl,input:`.${this.unique} .component-${n.name} input[name=${n.name}]`,change:(e,t)=>{this.setData(n.name,e),n.change&&n.change(this,e,t)}})}uploadImage(t={}){if(this.isDestroyed)return null;var e,n=layui.upload;let i=$(t.container),o=$(t.input);t.imageUrl?(e=Number(t.height??200),(r=$("<img>",{class:"image-upload",alt:String(t.title??"")}).attr("src",String(t.imageUrl))).css("height",(Number.isFinite(e)&&0<e?e:200)+"px"),i.empty().append(r)):((e=$("<button>",{type:"button",class:"layui-btn btn-upload image-upload"})).append(util.icon("fa-duotone fa-regular fa-camera me-1 text-white fs-5")),e.append(document.createTextNode(String(t.title??""))),i.empty().append(e));var r=n.render({elem:t.container+" .image-upload",url:util.appendParamToUrl(t.uploadUrl,"mime=image"),accept:"images",acceptMime:"image/*",exts:"jpg|png|gif|bmp|jpeg|ico|webp",size:51200,done:e=>{this.isDestroyed||(200===e.code?(t.imageUrl=e.data.url,o.val(e.data.url),t.change&&t.change(e.data.url,e.data)):(t.imageUrl=null,layer.msg(e.msg)),this.uploadImage(t))},progress:e=>{var t;this.isDestroyed||(t=e+"%",i.html('<div class="layui-progress layui-progress-fileUpload" lay-showpercent="true"><div class="layui-progress-bar" lay-percent="'+t+'" style="width: '+t+';"><span class="layui-progress-text">'+(100<=e?"RTX4090TI渲染中..":t)+"</span></div></div>"))}});return this.registerDisposable(r),r}uploadFile(t={}){if(this.isDestroyed)return null;var e=layui.upload;let o=$(t.container),n=$(t.input),r,i,a,s=(t.title=t.fileUrl?t.fileUrl.split("/").pop():t.title,"btn-upload");t.form.title||(s="btn-upload-plus");var l=$("<button>",{type:"button","data-percentage":"0",class:"layui-btn "+s+" file-upload"}),c=(l.append($("<i>",{class:"layui-icon layui-icon-file-b"})),l.append(document.createTextNode(" ")),l.append($("<span>",{class:"file-text"}).text(String(t.title??""))),o.empty().append(l),{elem:t.container+" .file-upload",url:util.appendParamToUrl(t.uploadUrl,"mime=other"),accept:"file",acceptMime:"*/*",done:e=>{this.isDestroyed||(200===e.code?(n.val(e.data.url),t.change&&t.change(e.data.url,e.data),t.fileUrl=e.data.url):(t.fileUrl=null,layer.msg(e.msg)),this.uploadFile(t))},before:e=>{if(this.isDestroyed)return!1;r=(new Date).getTime();e=e.pushFile();i=e[Object.keys(e)[0]],a=i.size,o.find(".file-upload").attr("disabled",!0)},progress:t=>{if(!this.isDestroyed){var n=util.getUploadProgress(a,r,t/100),i=o.find(".file-upload");let e='<span class="block-size-22 text-color-d044f1">'+util.icon("icon-round-loading","icon-spin")+" 进度:"+t+'%</span><span class="block-size-22 text-color-ff7991">'+util.icon("icon-119")+" 上行:"+n.speed+'</span><span class="block-size-34 text-color-6079ff">'+util.icon("icon-wenjianjia")+" 已上传:"+n.size+'</span><span class="block-size-22 text-color-f38815">'+util.icon("icon-shijian")+" 已用时:"+n.time+"</span>";i.css("width","100%"),util.updateProgress(i,t),100<=t&&(i.attr("disabled",!1),e="正在读取文件信息.."),i.html(e)}}});if(t.form.setting)for(var u in t.form.setting)c[u]=t.form.setting[u];l=e.render(c);return this.registerDisposable(l),l}getTab(){return this.tab}getUnique(){return this.unique}getData(e=null){let l={},c=this;this.opt.tab.forEach((e,t)=>{e=(Array.isArray(e.form)?e.form:[]).filter(e=>!0===e?.preserveLiteral&&"string"==typeof e.name).map(e=>e.name),t=util.arrayToObject($("."+c.unique+t).serializeArray(),e);l=Object.assign(l,t)}),this.opt.tab.forEach((e,t)=>{e.form.forEach((a,e)=>{switch(a.type){case"checkbox":case"treeCheckbox":l.hasOwnProperty(a.name)||(l[a.name]=[]);break;case"treeSelect":!0!==a.clearToZero||l.hasOwnProperty(a.name)||(l[a.name]=0),this.opt.hasOwnProperty("assign")&&this.opt.assign.id==l[a.name]&&delete l[a.name];break;case"switch":l.hasOwnProperty(a.name)||(l[a.name]=0);break;case"input":var t=cache.get(c.unique+a.name+"color"),s=cache.get(c.unique+a.name+"bold");if(t||s){let e="";t&&(e+="color: "+t+";"),s&&(e+="font-weight: bold;
7"),l[a.name]="<span style='"+e+"'>"+l[a.name]+"</span>"}break;case"widget":let n=[];l["name-"+a.name].forEach((e,t)=>{""!=e&&n.push({cn:l["title-"+a.name][t],name:e,placeholder:l["placeholder-"+a.name][t],type:l["type-"+a.name][t],regex:l["regex-"+a.name][t],error:l["error-"+a.name][t],dict:l["data-"+a.name][t]})}),delete l["title-"+a.name],delete l["placeholder-"+a.name],delete l["type-"+a.name],delete l["regex-"+a.name],delete l["error-"+a.name],delete l["name-"+a.name],delete l["data-"+a.name],l[a.name]=encodeURIComponent(JSON.stringify(n));break;case"attribute":let i=[],o=[].concat(l["name-"+a.name]||[]),r=[].concat(l["value-"+a.name]||[]);o.forEach((e,t)=>{""!=e&&i.push({name:o[t],value:r[t]})}),delete l["name-"+a.name],delete l["value-"+a.name],l[a.name]=encodeURIComponent(JSON.stringify(i));break;case"html":l[a.name]=this.getMap(a.name);break;case"editorv2":t=cache.get(c.unique+a.name+"-editorv2");t&&"function"==typeof t.getHTML&&(l[a.name]=t.getHTML())}!1===a.submit&&delete l[a.name]})}),this.opt.hasOwnProperty("assign")&&this.opt.assign.hasOwnProperty("id")&&(l.id=this.opt.assign.id);var t=util.parseNestedKeysFromJSON(l);return delete t.btSelectAll,delete t.btSelectItem,e?util.parseStringObject(t,util.replaceDotWithHyphen(e)):t}registerEvent(){if(!this.isDestroyed){let n=this.opt;n.tab.forEach((e,t)=>{e.form.forEach((e,t)=>{n.hasOwnProperty("assign")&&util.checkPropertyExistence(n.assign,e.name)&&(e.default=util.parseStringObject(n.assign,e.name));switch(this.setData(e.name,e.default),e.type){case"input":case"number":case"password":this.inputRegister(e);break;case"date":this.dateRegister(e);break;case"textarea":this.textareaRegister(e);break;case"checkbox":this.checkboxRegister(e);break;case"radio":this.radioRegister(e);break;case"switch":this.switchRegister(e);break;case"select":this.selectRegister(e);break;case"editor":this.editorRegister(e);break;case"editorv2":this.editorv2Register(e);break;case"html":this.htmlRegister(e);break;case"image":this.imageRegister(e);break;case"file":this.fileRegister(e);break;case"treeCheckbox":this.treeCheckboxRegister(e);break;case"treeSelect":this.treeSelectRegister(e);break;case"widget":this.widgetRegister(e);break;case"attribute":this.attributeRegister(e);break;case"custom":this.customRegister(e)}this.tipsRegister(e),this.registerBlockCss(e)})}),layui.form.render()}}tipsRegister(i){if(i.tips){var o=$("."+this.unique+" .component-"+i.name);if("mobile"===document.documentElement.getAttribute("data-admin-layout")){let n=String(i18n(i.tips)??"").replace(/<br\s*\/?>/gi,"\n");
7void o.each(function(){var e=$(this);let t=e.closest(".layui-form-item").children(".admin-mobile-form-help").filter(function(){return $(this).attr("data-admin-mobile-help-for")===i.name}).first();t.length||(t=$("<small>",{class:"admin-mobile-form-help","data-admin-mobile-help-for":i.name}),e.after(t)),t.text(n)})}else{let e=this,t=0;o.hover(function(){t=e.trackTip(layer.tips(i18n(i.tips),this,{tips:[1,"#501536"],time:0}))},function(){e.closeTip(t)})}}}inputRegister(t){var e=$("."+this.unique+" input[name="+t.name+"]");let n=this;e.change(function(){var e=$(this).val();n.setData(t.name,e),t.change&&t.change(n,e)}),t.complete&&t.complete(this,e.val())}dateRegister(t){var e=$(`.${this.unique} input[name=${t.name}]`);let n=this;var i=layui.laydate.render({elem:`.${this.unique} input[name=${t.name}]`,type:"datetime"});this.registerDisposable(i),e.change(function(){var e=$(this).val();n.setData(t.name,e),t.change&&t.change(n,e)}),t.complete&&t.complete(this,e.val())}textareaRegister(t){let n=$("."+this.unique+" textarea[name="+t.name+"]"),i=this;
7n.change(function(){var e=$(this).val();i.setData(t.name,e),t.change&&t.change(i,e,n)}),t.complete&&t.complete(i,n.val(),n)}checkboxRegister(t){let n=this,i=[];util.checkPropertyExistence(this.opt.assign,t.name)?i=util.parseStringObject(this.opt.assign,t.name)??[]:"object"==typeof t.default&&(i=t.default),_Dict.advanced(t.dict,e=>{n.isDestroyed||(n.clearComponent(t.name),e.forEach(e=>{n.addCheckbox(t.name,e.id,e.name,-1!==i.indexOf(e.id)||-1!==i.indexOf(e.id.toString()),!!t.disable&&t.disable.includes(e.id),!0)}),n.registerLayuiEvent(layui.form,"form","checkbox("+n.unique+t.name+")",e=>{n.setData(t.name,e),t.change&&t.change(n,e.value,e.elem.checked)}),t.complete&&t.complete(n,t.default??[]),layui.form.render())})}radioRegister(i){let o=this;_Dict.advanced(i.dict,e=>{if(!o.isDestroyed){let n=null;o.clearComponent(i.name),e.forEach((e,t)=>{t=e.id==i.default||0==t;t&&(n=e.id),o.addRadio(i.name,e.id,e.name,t,!!i.disable&&i.disable.includes(e.id))}),i.complete&&i.complete(o,n)}}),this.registerLayuiEvent(layui.form,"form","radio("+o.unique+i.name+")",e=>{o.setData(i.name,e.value),i.change&&i.change(o,e.value)}),layui.form.render()}switchRegister(t){let n=this;this.registerLayuiEvent(layui.form,"form","switch("+n.unique+t.name+")",e=>{n.setData(t.name,e.elem.checked),t.change&&t.change(n,e.elem.checked)}),t.complete&&t.complete(n,"1"==t.default),layui.form.render()}selectRegister(n){let i=this;_Dict.advanced(n.dict,e=>{i.isDestroyed||(e.forEach((e,t)=>{i.addOption(n.name,e.id,e.name,e.id==n.default,!0)}),n.complete&&n.complete(i,n.default??null),layui.form.render())}),this.registerLayuiEvent(layui.form,"form","select("+i.unique+n.name+")",e=>{i.setData(n.name,e.value),n.change&&n.change(i,e.value),setTimeout(()=>{var e=document.querySelector("."+i.unique+" .component-"+n.name+" .layui-select-title .layui-input");e&&e.dispatchEvent(new Event("input",{bubbles:!0}))},0)})}editorRegister(n){let i=this,e=window.wangEditor,o=new e(`.${i.unique} .component-${n.name} .editor-container`),r=$("."+i.unique+" .component-"+n.name+" .text-container"),a=$("."+i.unique+" .component-"+n.name+" .html-container"),s=$("."+i.unique+" .component-"+n.name+" .editor-content"),l=$("."+i.unique+" .component-"+n.name+" .editor-wrapper"),c=null;o.config.onchange=function(e){r.val(e)},o.config.zIndex=0,o.config.uploadFileName="file",o.config.uploadImgServer=n.uploadUrl+"?mime=image",o.config.uploadImgAccept=["jpg","jpeg","png","gif","bmp","webp"],o.config.uploadImgMaxLength=1,o.config.uploadImgTimeout=6e4,o.config.uploadImgMaxSize=52428800,o.config.uploadImgHooks={customInsert:function(e,t){200!=t.code?layer.msg(t.msg):e(t.data.url)},error:function(e,t,n){layer.msg(i18n("图片上传失败,文件可能过大"))}},o.config.uploadVideoServer=n.uploadUrl+"?mime=video",o.config.uploadVideoName="file",o.config.uploadVideoHooks={customInsert:function(e,t){200!=t.code?layer.msg(t.msg):e(t.data.url)},error:function(e,t,n){layer.msg(i18n("视频上传失败,文件可能过大"))}},n.hasOwnProperty("height")?o.config.height=n.height:o.config.height=480,o.create(),n.default&&o.txt.html(n.default),n.default&&r.val(n.default),$("."+i.unique+" .component-"+n.name+" .button-switch-"+n.name).click(function(){var e,t=$(this);(0==t.attr("data-type")?(e=1e3<$(`.${i.unique} .component-${n.name} .editor-container .w-e-toolbar`).width()?40:80,t.attr("data-type",1),t.html('<i class="fa-duotone fa-regular fa-pen-paintbrush me-1"></i>'+i18n("写作")),l.append(`<div id="${i.unique}-${n.name}-html" style="margin-top:10px;width:100%;height: ${n.height?n.height+e+"px":480+e+"px"} "></div>`),c=ace.edit(`${i.unique}-${n.name}-html`,{theme:"ace/theme/chrome",mode:"ace/mode/html"}),i.registerDisposable(c),c.getSession().setUseWrapMode(!0),c.setOption("showPrintMargin",!1),c.setValue(r.val()),c.getSession().on("change",function(e){var t=c.getValue();r.val(t),n.change&&n.change(i,t)}),s.hide(),a):(t.attr("data-type",0),t.html('<i class="fa-duotone fa-regular fa-code me-1"></i>HTML'),o.txt.html(r.val()),c&&i.disposeControl(c,new Set),c=null,$(`#${i.unique}-${n.name}-html`).remove(),s)).fadeIn(150)}),n.complete&&n.complete(i,n.default),cache.set(i.unique+n.name,o),this.registerDisposable(o),layui.form.render()}editorv2Html(e){return this.getBlockHtml(e,EditorV2.buildHtml({name:e.name,placeholder:e.placeholder,allowHtmlSource:e.allowHtmlSource,allowRawHtml:e.allowRawHtml}))}editorv2Register(t){let n=this;
7var e=$(`.${n.unique} .block-${t.name} > .component-${t.name} > .ev2-editor`).get(0);if(!e)throw new Error("EditorV2 field target not found: "+t.name);e=EditorV2.register(e,{name:t.name,uploadUrl:t.uploadUrl,height:t.height,value:t.default,allowHtmlSource:t.allowHtmlSource,allowRawHtml:t.allowRawHtml,onChange:e=>{t.change&&t.change(n,e)}});t.complete&&t.complete(n,e.getHTML()),cache.set(n.unique+t.name,e.cm),cache.set(n.unique+t.name+"-editorv2",e),this.registerDisposable(e),layui.form.render()}htmlRegister(n){let i=this,o=(["html","javascript","css"].includes(n.language??"html")&&util.loadScripts(`/assets/common/js/editor/code/lib/beautify/${n.language??"html"}.js`),ace.edit(`${this.unique}-${n.name}-editor`,{theme:"ace/theme/chrome",mode:"ace/mode/"+(n.language??"html")}));o.commands.addCommand({name:"formatCode",bindKey:{win:"Ctrl-Alt-L",mac:"Command-Option-L"},exec:function(e){let t=e.getValue();switch(n.language??"html"){case"html":t=html_beautify(t,{indent_size:2});break;case"javascript":t=js_beautify(t,{indent_size:2});break;case"css":t=css_beautify(t,{indent_size:2})}e.setValue(t,-1)}}),!0===n.autoWrap&&o.getSession().setUseWrapMode(!0),o.setOption("showPrintMargin",!1),o.getSession().on("change",function(e){var t=o.getValue();i.setData(n.name,t),n.change&&n.change(i,t)}),n.default&&o.setValue(n.default),n.default&&i.setData(n.name,n.default),n.complete&&n.complete(i,n.default),n.disabled&&(o.setReadOnly(!0),o.renderer.$cursorLayer.element.style.display="none"),cache.set(this.unique+n.name,o),this.registerDisposable(o)}imageRegister(o){let r=this;this.uploadImage({container:`.${r.unique} .component-${o.name} .image-render`,imageUrl:o.default,title:o.placeholder,height:o.height,uploadUrl:o.uploadUrl,input:$(`.${r.unique} .component-${o.name} input[name=${o.name}]`),change:(e,t)=>
7{r.setData(o.name,e),o.change&&o.change(r,e,t)}}),o.complete&&o.complete(r,o.default);let e,t;var n=$(`.${r.unique} .block-${o.name} .external-input`);n.click(()=>{var e=$(`.${this.unique} .component-${o.name} input[name=${o.name}]`).val();component.popup({submit:(e,t)=>{e.url?(r.setImage(o.name,e.url),o.change&&o.change(r,e.url,{append:{thumb_url:e.url}}),layer.close(t)):layer.msg(i18n("外链不能为空"))},tab:[{name:util.icon("fa-duotone fa-regular fa-link")+" 设置外部图片链接",form:[{title:!1,name:"url",type:"input",placeholder:"图片外链,需要 http:// 或 https:// 开头",tips:"图片外链,需要 http:// 或 https:// 开头",default:e}]}],autoPosition:!0,height:"auto",width:"560px",maxmin:!1,shadeClose:!0,assign:{}})}),n.hover(function(){t=r.trackTip(layer.tips(i18n("外部链接"),this,{tips:[2,"#501536"],time:0}))},function(){r.closeTip(t)}),o.photoAlbumUrl&&((n=$(`.${r.unique} .block-${o.name} .photo-album`)).click(function(){let i=null;component.popup({submit:!1,tab:[{name:util.icon("fa-duotone fa-regular fa-image")+" 相册",form:[{name:"photo_album",type:"custom",complete:(e,t)=>{t.html('<div class="block-content"><table id="photo-album-table"></table>');t=new Table(o.photoAlbumUrl,t.find("#photo-album-table"));t.setPagination(30,[30,50,200,500,1e3]),t.setWhere("equal-type","image"),t.setWhere("display_scope",1),t.setColumns([{field:"path",title:"",formatter:(e,t)=>`<img class="photo-album-selected" src="${t.thumb_url??e}">`,events:{"click .photo-album-selected":(e,t,n)=>{r.setImage(o.name,t),layer.close(i),o.change&&o.change(r,t,{append:{thumb_url:n.thumb_url??t}})}}}]),t.render()}}]}],assign:{},autoPosition:!0,shadeClose:!0,maxmin:!1,width:"800px",renderComplete:(e,t)=>{i=t,$(`.${e} .layui-card-body`).css("padding-top","0").find(".block-content").css("padding","0")}})}),n.hover(function(){e=r.trackTip(layer.tips(i18n("相册"),this,{tips:[2,"#501536"],time:0}))},function(){r.closeTip(e)})),layui.form.render()}fileRegister(n){this.uploadFile({form:n,container:"."+this.unique+" .component-"+n.name+" .file-render",fileUrl:n.default,title:n.placeholder,height:n.height,uploadUrl:n.uploadUrl,input:"."+this.unique+" .component-"+n.name+" input[name="+n.name+"]",change:(e,t)=>
7{this.setData(n.name,e),n.change&&n.change(e,t)}}),n.complete&&n.complete(this,n.default),layui.form.render()}treeCheckboxRegister(i){let o=this;_Dict.advanced(i.dict,e=>{if(!o.isDestroyed){let n="."+o.unique+" .component-"+i.name+" .treeCheckbox";layui.authtree.render(n,e,{inputname:i.name+"[]",layfilter:o.unique+i.name,childKey:"children",valueKey:"id",theme:"auth-skin-universal",autowidth:!0,openchecked:!1,autochecked:!0,checkedKey:i.default??[]}),o.registerLayuiEvent(layui.authtree,"authtree","change("+o.unique+i.name+")",function(e){var t=e&&Array.isArray(e.checked)?e.checked:layui.authtree.getChecked(n);o.setData(i.name,t),i.change&&i.change(o,t,e)}),i.complete&&i.complete(o,i.default)}}),layui.form.render()}treeSelectRegister(n){if(!0!==n.clearToZero||Array.isArray(n.dict)){let t=this;var e=layui.treeSelect.render({elem:"."+t.unique+" .component-"+n.name+" .tree-select",data:n.dict,placeholder:n.placeholder,search:!0,parent:n?.parent??!0,click:function(e){t.isDestroyed||($("."+t.unique+"  .component-"+n.name+" input[name="+n.name+"]").val(e.current.id),n.change&&n.change(t,e.current.id),setTimeout(()=>{var e=document.querySelector("."+t.unique+" .component-"+n.name+" .layui-select-title .layui-input");e&&e.dispatchEvent(new Event("input",{bubbles:!0}))},0))},success:function(e){t.isDestroyed||(n.default&&layui.treeSelect.checkNode(t.unique+n.name,parseInt(n.default)),n.complete&&n.complete(t,n.default))}});this.registerDisposable(e),layui.form.render()}else{let t=this;void _Dict.advanced(n.dict,e=>{t.isDestroyed||(n.dict=[{id:0,name:i18n("不设置父级,作为顶级分类"),fontCss:{color:"var(--md-primary)","font-weight":"600"}}].concat(Array.isArray(e)?e:[]),t.treeSelectRegister(n))})}}decodeEncodedJson(e){return"string"==typeof e&&/^%(?:5B|7B)/i.test(e)?decodeURIComponent(e):e}widgetRegister(t){this.clearComponent(t.name);var e=util.replaceDotWithHyphen(t.name);let n=[];try{n=t.default?JSON.parse(this.decodeEncodedJson(t.default)):[]}catch(e){n=[]}(n=Array.isArray(n)?n:[]).length<=0?this.addWidget(t.name):n.forEach(e=>{this.addWidget(t.name,null,e)});let i=$("."+this.unique+" .component-"+e);$("."+this.unique+" .widget-add-control").remove();e=$('<button type="button" class="widget-add-control"><i class="fa-duotone fa-regular fa-plus"></i> '+i18n("添加控件")+"</button>");i.after(e),e.on("click",()=>{var e=i.find(".widget-block").last();e.length?this.addWidget(t.name,e,{}):this.addWidget(t.name)}),t.complete&&t.complete(this,t.default),layui.form.render()}attributeRegister(t){var e=util.replaceDotWithHyphen(t.name);this.attributeConfig=this.attributeConfig||{},this.attributeConfig[e]={namePlaceholder:t.namePlaceholder,valuePlaceholder:t.valuePlaceholder,valueDict:t.valueDict,allowEmpty:!0===t.allowEmpty,sortable:!0===t.sortable};let n=[];try{n=t.default?JSON.parse(this.decodeEncodedJson(t.default)):[]}catch(e){n=[]}(n=Array.isArray(n)?n:[]).length<=0?this.attributeConfig[e].allowEmpty||this.addAttribute(t.name):n.forEach(e=>{this.addAttribute(t.name,null,e)}),this.attributeConfig[e].allowEmpty&&this.mountAttributeAdder(t.name),t.complete&&t.complete(this,t.default),layui.form.render()}mountAttributeAdder(t){let n=util.replaceDotWithHyphen(t),i=this,o=$("."+this.unique+" .component-"+n);o.find(".widget-attr-adder").length||(o.append('<a href="#" data-acg-noop class="widget-attr-adder"><i class="layui-icon">&#xe61f;</i> '+i18n("添加")+"</a>"),o.find(".widget-attr-adder").click(function(){var e=o.find(".widget-block").last();e.length?i.addAttribute(t,e,{}):i.addAttribute(t),i.syncAttributeEmptyState(n)}),this.syncAttributeEmptyState(n))}syncAttributeEmptyState(e){var e=$("."+this.unique+" .component-"+util.replaceDotWithHyphen(e)),t=e.find(".widget-attr-adder"),n=(t.appendTo(e),0===e.find(".widget-block").length),i=e.find(".widget-attr-empty");n&&!i.length?t.before('<span class="widget-attr-empty">'+i18n("未设置")+"</span>"):n||i.remove(),e.closest(".layui-form-item").toggleClass("is-attr-empty",n)}customRegister(e){e=e.complete&&e.complete(this,$("."+this.unique+" .component-"+e.name));this.registerDisposable(e)}createForm(e,t,n="after"){e.title&&(e.title=i18n(e.title)),e.name=util.replaceDotWithHyphen(e.name),this.data[e.name]={hide:e.hide?" hide":"",titleHide:e.title?"":"hide",blockMarginZero:e.title?"":"margin-left-zero"};let i="";switch(e.type){case"input":case"date":i=this.inputHtml(e,"text");break;case"number":i=this.inputHtml(e,"number");break;case"password":i=this.inputHtml(e,"password");break;case"textarea":i=this.textareaHtml(e);break;case"checkbox":case"radio":i=this.getBlockHtml(e,util.icon("icon-loading","icon-spin","icon-18px"));break;case"switch":i=this.switchHtml(e);break;case"select":i=this.selectHtml(e);break;case"editor":i=this.editorHtml(e);break;case"html":i=this.htmlHtml(e);break;case"image":i=this.imageHtml(e);break;case"file":i=this.fileHtml(e);break;case"treeCheckbox":i=this.treeCheckboxHtml(e);break;case"treeSelect":i=this.treeSelectHtml(e);break;
7case"widget":case"custom":i=this.getBlockHtml(e)}t=$("."+this.unique+" .block-"+t);switch("after"==n?t.after(i):t.before(i),e.type){case"input":case"number":case"password":this.inputRegister(e);break;case"date":this.dateRegister(e);break;case"textarea":this.textareaRegister(e);break;case"checkbox":this.checkboxRegister(e);break;case"radio":this.radioRegister(e);break;case"switch":this.switchRegister(e);break;case"select":this.selectRegister(e);break;case"editor":this.editorRegister(e);break;case"html":this.htmlRegister(e);break;case"image":this.imageRegister(e);break;case"file":this.fileRegister(e);break;case"treeCheckbox":this.treeCheckboxRegister(e);break;case"treeSelect":this.treeSelectRegister(e);break;case"widget":this.widgetRegister(e);break;case"custom":this.customRegister(e)}layui.form.render(),this.form[e.name]=e}removeForm(e){$("."+this.unique+" .block-"+e).remove()}destroy(){if(!this.isDestroyed){this.isDestroyed=!0,this.tipIndexes.forEach(e=>{try{layer.close(e)}catch(e){util.debug("Form tip destroy skipped: "+this.unique,"#ff4f33")}}),this.tipIndexes.clear(),"undefined"!=typeof layui&&"function"==typeof layui.off&&this.layuiEvents.forEach(e=>{try{layui.off(e.event,e.module)}catch(e){util.debug("Form layui event destroy skipped: "+this.unique,"#ff4f33")}}),this.layuiEvents=[];let n=$(),i=(this.tab.forEach((e,t)=>{n=n.add("."+this.unique+t)}),new Set);void 0!==Table&&"function"==typeof Table.destroyAll&&n.each(function(){Table.destroyAll(this)}),n.find(".layui-treeSelect").add(n.filter(".layui-treeSelect")).each(function(){var e=$
7(this),t=e.find(".layui-select-title").attr("id"),n=e.find(".layui-select-title input").attr("id"),i=e.find(".layui-treeSelect-body").attr("id");if(t&&$("body").off("click","#"+t),n&&$("body").off("input propertychange","#"+n),e.attr("id")&&$("body").off("click","#"+e.attr("id")+" .layui-anim"),i&&$.fn.zTree&&"function"==typeof $.fn.zTree.destroy)try{$.fn.zTree.destroy(i)}catch(e){util.debug("Form treeSelect destroy skipped: "+i,"#ff4f33")}e.siblings(".tree-select").show(),e.remove()}),"undefined"!=typeof layui&&layui.authtree&&Object.values(this.form).forEach(e=>{if("treeCheckbox"===e.type){let t="."+this.unique+" .component-"+e.name+" .treeCheckbox";["renderedTrees","checkedNode","notCheckedNode","lastCheckedNode","lastNotCheckedNode"].forEach(e=>{layui.authtree[e]&&delete layui.authtree[e][t]})}}),n.find(".ace_editor").add(n.filter(".ace_editor")).each((e,t)=>{this.disposeControl(t.env&&t.env.editor,i)}),this.disposables.forEach(e=>this.disposeRecord(e,i)),("undefined"!=typeof cache&&cache.caches?Object.keys(cache.caches).filter(e=>e===this.unique||0===e.indexOf(this.unique)):[]).forEach(e=>{this.disposeControl(cache.get(e),i),cache.del(e)}),n.find("[lay-key]").each(function(){let e=$(this).attr("lay-key");$(".layui-laydate").filter(function(){return $(this).attr("lay-key")===e||this.id==="layui-laydate"+e}).remove()}
7),n.each(function(){var e=$(this);e.find("*").addBack().stop(!0,!0).off(),e.find('input.layui-upload-file[type="file"]').remove()}),this.disposables=[],this.tab=[],this.data={},this.form={},this.opt={tab:[]},this.index=null}return this}getDomHeight(e){return $("."+this.unique+" .block-"+e).height()}registerBlockCss(e){var t=$("."+this.unique+" .block-"+e.name);if(e.css)for(var n in e.css)t.css(n,e.css[n])}}class Search{escapeAttribute(e){let t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return String(e??"").replace(/[&<>"']/g,e=>t[e])}constructor(e,t,n=null,i=!0){this.unique=util.generateRandStr(8),this.opt=t,this.item={},this.controls={},this.click=n,this.isDestroyed=!1,this.layuiEvents=[],e.append('<form class="layui-form-item layui-form table-search '+this.unique+'"></form>');let o=$("."+this.unique);(this.$instance=o).on("submit",function(e){return e.preventDefault(),!1}),t.forEach(e=>{switch(e.title=i18n(e.title),(this.item[e.name]=e).type){case"input":o.append(this.inputHtml(e)),this.inputRegister(e);break;case"date":o.append(this.dateHtml(e)),this.dateRegister(e);break;case"select":o.append(this.selectHtml(e)),this.selectRegister(e);break;case"remoteSelect":o.append(this.remoteSelectHtml(e)),this.remoteSelectRegister(e);break;case"treeSelect":o.append(this.treeSelectHtml(e)),this.treeSelectRegister(e)}}),i&&this.registerButton(o)}createSearch(e,t,n="after"){e.title=i18n(e.title),this.item[e.name]=e,this.opt.push(e);var i=$("."+this.unique+" .e-"+t);let o;switch(e.type){case"input":o=this.inputHtml(e),"after"==n?i.after(o):i.before(o),this.inputRegister(e);break;case"date":o=this.dateHtml(e),"after"==n?i.after(o):i.before(o),this.dateRegister(e);break;case"select":o=this.selectHtml(e),"after"==n?i.after(o):i.before(o),this.selectRegister(e);break;case"remoteSelect":o=this.remoteSelectHtml(e),"after"==n?i.after(o):i.before(o),this.remoteSelectRegister(e);break;case"treeSelect":o=this.treeSelectHtml(e),"after"==n?i.after(o):i.before(o),this.treeSelectRegister(e)}}removeSearch(t){this.#disposeControl(t),$("."+this.unique+" .e-"+t)?.remove(),delete this.item[t],delete this.controls[t],this.opt=this.opt.filter(e=>e.name!==t)}getWidth(e){return e.hasOwnProperty("width")?util.isPc()?(e=String(e.width??"").trim(),/^\d+(?:\.\d+)?(?:px|rem|em|%|vw)?$/i.test(e)?'style="width:'+(/[a-z%]$/i.test(e)?e:e+"px")+';"':""):'style="width:100%;"':""}getClass(e){e=String(e?.align??"").toLowerCase();return["left","center","right","start","end"].includes(e)?"text-"+e:""}getInputHints(e){var t=String(e.inputmode??e.inputMode??"").toLowerCase(),e=String(e.enterkeyhint??e.enterKeyHint??"").toLowerCase();let n="";return["none","text","decimal","numeric","tel","search","email","url"].includes(t)&&(n+=` inputmode="${t}"`),["enter","done","go","next","previous","search","send"].includes(e)&&(n+=` enterkeyhint="${e}"`),n}inputHtml(e){return`<div class="layui-input-inline ${e.hide?"hide":""} e-${this.escapeAttribute(e.name)} mui-sf" ${this.getWidth(e)}>
8                    <input type="text" class="layui-input ${this.getClass(e)}" ${this.getWidth(e)} placeholder=" " name="${this.escapeAttribute(e.name)}" value="${this.escapeAttribute(e.default)}"${this.getInputHints(e)}>
9                    <label class="mui-sf__label">${this.escapeAttribute(e.title)}</label>
10                </div>`}inputRegister(e){let t=this;$("."+this.unique+" input[name="+e.name+"]").on("input",function(){e.change&&e.change(t,this.value)}).on("keydown",function(e){13===e.keyCode&&$(this).parent().parent().find(".query-button").click()})}dateHtml(e){var t=e.name.replace("between","betweenStart"),n=e.name.replace("between","betweenEnd"),i=this.getWidth(e),o="";return(o+='<div class="layui-input-inline '+(e.hide?"hide":"")+" e-"+this.escapeAttribute(e.name)+' mui-sf" '+i+'>\n    <input type="text" class="layui-input between-date-'+this.escapeAttribute(e.name)+'" name="'+this.escapeAttribute(t)+'" placeholder=" " value="">\n    <label class="mui-sf__label">'+this.escapeAttribute(i18n("从")+" "+e.title)+"</label>\n</div>")+('<div class="layui-input-inline text-center '+(e.hide?"hide":"")+" e-"+this.escapeAttribute(e.name)+'" style="width: 10px;">~</div>')+('<div class="layui-input-inline '+(e.hide?"hide":"")+" e-"+this.escapeAttribute(e.name)+' mui-sf" '+i+'>\n    <input type="text" class="layui-input between-date-'+this.escapeAttribute(e.name)+'" name="'+this.escapeAttribute(n)+'" placeholder=" " value="">\n    <label class="mui-sf__label">'+this.escapeAttribute(i18n("到")+" "+e.title)+"</label>\n</div>")}dateRegister(e){this.controls[e.name]=layui.laydate.render({elem:"."+this.unique+" .between-date-"+e.name,type:"datetime"})}selectHtml(e){return'<div class="layui-input-inline '+(e.hide?"hide":"")+" e-"+this.escapeAttribute(e.name)+' mui-sf mui-sf--select" '+this.getWidth(e)+'>\n                    <select lay-filter="'+this.escapeAttribute(this.unique+e.name)+'" '+(!0===e.search?'lay-search=""':"")+'  name="'+this.escapeAttribute(e.name)+'"></select>\n                    <label class="mui-sf__label">'+this.escapeAttribute(e.title)+"</label>\n                        </div>"}selectReload(e,t=null){e=this.item[e];t&&(e.dict=t),this.selectRegister(e)}selectRegister(n){let t=this,i=$("."+this.unique+" select[name="+n.name+"]"),o=(i.html(`<option value="">${i18n("全部")}</option>`),n.hasOwnProperty("dict")&&_Dict.advanced(n.dict,e=>
10{this.isDestroyed||(e.forEach(e=>{var t=$("<option>").val(e.id).text(String(e.name??"").replace(/(<([^>]+)>)/gi,""));t.prop("selected",parseInt(n.default)===parseInt(e.id)),i.append(t)}),layui.form.render())}),"select("+t.unique+n.name+")");"function"==typeof layui.off&&layui.off(o,"form"),this.layuiEvents=this.layuiEvents.filter(e=>e.event!==o||"form"!==e.module),this.layuiEvents.push({module:"form",event:o}),layui.form.on(o,e=>{t.isDestroyed||n.change&&n.change(t,e.value)}),n.complete&&n.complete(t)}selectAddOption(e,t,n){$("."+this.unique+" select[name="+e+"]").append($("<option>").val(t).text(String(n??"").replace(/(<([^>]+)>)/gi,""))),layui.form.render()}selectClearOption(e){var t=this.item[e];$("."+this.unique+" select[name="+e+"]").empty().append($("<option>").val("").text(String(t.title??""))),layui.form.render()}remoteSelectHtml(e){return'<div class="layui-input-inline '+(e.hide?"hide":"")+" e-"+this.escapeAttribute(e.name)+' mui-sf mui-sf--select" '+this.getWidth(e)+'>\n                    <span class="'+this.escapeAttribute(e.name)+'"></span>\n                    <label class="mui-sf__label">'+this.escapeAttribute(e.title)+"</label>\n                        </div>"}getBlockHtml(e,t){return`<div class="layui-input-inline ${e.hide?"hide":""} e-${e.name}"  ${this.getWidth(e)}>${t}</div>`}treeSelectHtml(e){return`<div class="layui-input-inline ${e.hide?"hide":""} e-${this.escapeAttribute(e.name)} mui-sf mui-sf--select" ${this.getWidth(e)}>
11                    <span class="tree-${this.escapeAttribute(e.name)}"></span>
12                    <label class="mui-sf__label">${this.escapeAttribute(e.title)}</label>
13                </div>`}treeSelectReload(e,t=null){e=this.item[e];t&&(e.dict=t),this.treeSelectRegister(e)}treeSelectRegister(t){let n=this;$("."+this.unique+" .tree-"+t.name).html(`<input type="text" lay-filter="${this.escapeAttribute(this.unique+t.name)}" class="layui-input ${this.escapeAttribute(this.unique+t.name)}"><input name="${this.escapeAttribute(t.name)}" type="hidden" class="layui-input">`),this.controls[t.name]=layui.treeSelect.render({elem:"."+n.unique+t.name,data:t.dict,placeholder:i18n("全部"),search:!0,click:function(e){n.isDestroyed||($("."+n.unique+" input[name="+t.name+"]").val(e.current.id),t.change&&t.change(n,e.current.id))},success:function(e){n.isDestroyed}}),layui.form.render()}remoteSelectRegister(i){let t=this;this.controls[i.name]=xmSelect.render({el:"."+this.unique+" ."+i.name,size:"mini",style:{height:"28px"},radio:!0,autoRow:!0,name:i.name,tips:i18n(i.placeholder||"全部"),searchTips:i.title,filterable:!0,remoteSearch:!0,language:"zn",remoteMethod:(e,n,t)=>!this.isDestroyed&&e?void _Dict.advanced(i.dict+"&keywords="+e,e=>{if(this.isDestroyed)return n([]);let t=[];e.forEach(e=>{t.push({name:String(e.name??"").replace(/(<([^>]+)>)/gi,""),value:e.id})}),n(t)}):n([]),on:function(e){t.isDestroyed||0<e.change.length&&i.change&&i.change(t,e.change[0].value,e.isAdd)}}),i.complete&&i.complete(t)}registerButton(e){e.append('<div class="layui-input-inline"><button type="button" class="layui-btn layui-btn-primary layui-btn-sm query-button"><i class="fa-duotone fa-regular fa-magnifying-glass"></i> <span class="btn-name">'+i18n("查询")+"</span></button></div>"),$("."+this.unique+" .query-button").click(()=>{this.submit()})}resetButton(){$("."+this.unique+" .query-button .btn-name").html(i18n("查询"))}getData(){return util.paramsToJSONObject($("."+this.unique).serialize())}definitions(){return this.opt.map(e=>Object.assign({},e,"date"===e.type?{fields:{start:e.name.replace("between","betweenStart"),end:e.name.replace("between","betweenEnd")}}:{}))}getDefinitions(){return this.definitions()}value(e=null){var t,n=this.getData();return null===e?n:"date"===(t=this.item[e])?.type?{start:n[t.name.replace("between","betweenStart")]??"",end:n[t.name.replace("between","betweenEnd")]??""}:n[e]}getValue(e=null){return this.value(e)}#findDefinition(t){return this.item[t]||this.opt.find(e=>"date"===e.type&&[e.name.replace("between","betweenStart"),e.name.replace("between","betweenEnd")].includes(t))}#field(n){return this.$instance.find("[name]").filter((e,t)=>
13t.name===n)}#setField(e,t,n=!1){var i=this.#findDefinition(e),t=null==t?"":t;let o=!1;if("remoteSelect"===i?.type&&e===i.name){var r=this.controls[i.name];if(r?.setValue){let e=Array.isArray(t)?t:""===t?[]:[t];e=e.map(e=>e&&"object"==typeof e?e:{name:String(e),value:e}),r.setValue(e,null,n),o=n}else this.#field(e).val(t)}else if(this.#field(e).val(t),"treeSelect"===i?.type&&e===i.name){r=this.unique+i.name,e=this.$instance.find(".tree-"+i.name+' input[type="text"]');if(""===t)e.val("");else try{this.controls[i.name]?.checkNode(r,t)}catch(e){util.debug("Search treeSelect value not found: "+t,"#ff4f33")}}n&&!o&&"function"==typeof i?.change&&i.change(this,t)}set(e,t=null,i=!1){if(e&&"object"==typeof e&&!Array.isArray(e)){let n="boolean"==typeof t?t:i;Object.entries(e).forEach(([e,t])=>{this.set(e,t,n)})}else{var n,o,r,a,s=this.item[e];"date"===s?.type?(n=s.name.replace("between","betweenStart"),o=s.name.replace("between","betweenEnd"),r=Array.isArray(t)?t[0]:t?.start??"",a=Array.isArray(t)?t[1]:t?.end??"",this.#setField(n,r,!1),this.#setField(o,a,!1),i&&"function"==typeof s.change&&s.change(this,{start:r,end:a})):this.#setField(e,t,i),layui.form.render()}return this}setValue(e,t=null,n=!1){return this.set(e,t,n)}reset(e=!1){return this.opt.forEach(e=>{"date"===e.type?this.set(e.name,e.default??["",""]):this.set(e.name,e.default??"")}),this.resetButton(),e&&this.submit(),this}submit(){var e;return this.isDestroyed?{}:(e=this.getData(),this.$instance.find(".query-button .btn-name").html(i18n("搜索中")+".."),"function"==typeof this.click&&this.click(e),e)}#disposeControl(t){var e=this.controls[t];try{"function"==typeof e?.destroy?e.destroy():"function"==typeof e?.closed?e.closed():"function"==typeof e?.close&&e.close()}catch(e){util.debug("Search control destroy skipped: "+t,"#ff4f33")}delete this.controls[t]}destroy(){return this.isDestroyed||(this.isDestroyed=!0,"undefined"!=typeof layui&&"function"==typeof layui.off&&this.layuiEvents.forEach(e=>{try{layui.off(e.event,e.module)}catch(e){}}),this.layuiEvents=[],Object.keys(this.controls).forEach(e=>this.#disposeControl(e)),this.$instance.find(".layui-treeSelect").each(function(){var e=$
13(this),t=e.find(".layui-select-title").attr("id"),n=e.find(".layui-select-title input").attr("id"),i=e.find(".layui-treeSelect-body").attr("id");if(t&&$("body").off("click","#"+t),n&&$("body").off("input propertychange","#"+n),e.attr("id")&&$("body").off("click","#"+e.attr("id")+" .layui-anim"),i&&$.fn.zTree&&"function"==typeof $.fn.zTree.destroy)try{$.fn.zTree.destroy(i)}catch(e){}}),this.$instance.find("[lay-key]").each(function(){let e=$(this).attr("lay-key");$(".layui-laydate").filter(function(){return $(this).attr("lay-key")===e||this.id==="layui-laydate"+e}).remove()}),this.$instance.find("*").addBack().stop(!0,!0).off(),this.$instance.remove(),this.controls={},this.item={},this.opt=[],this.click=null),this}hide(e){$("."+this.unique+" .e-"+e).fadeOut(100)}show(e){$("."+this.unique+" .e-"+e).fadeIn(100)}}function escapeTableHtml(e){return String(e??"").replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"})[e])}function renderTableDictionaryValue(e,t){var n,e=e?.jquery?e:$(e);e?.length&&(t=String(t??""),"function"==typeof(n=window.SeattleTheme?.safeInlineHtml)?(n=n(t),e.html(n||escapeTableHtml(util.plainText(t)||"-"))):e.text(util.plainText(t)||"-"))}(n=>{var i={};function o(e){var t;return(i[e]||(t=i[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}o.m=n,o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="./",o(o.s=214)})({1:function(e,t,n){function r(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function a(e){return(e=>{if(Array.isArray(e))return i(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)})(e)||(e=>{var t;if(e)return"string"==typeof e?i(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,void 0):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e){return e.nodeType?e:document.querySelector(e)}function s(){for(var e=[],t=0;t<arguments.length;t++)e.push("".concat(t+1,". ").concat(arguments[t]));console.warn(e.join("\n"))}function l(e){return"[object Array]"==Object.prototype.toString.call(e)}function c(e){return"[object Function]"==Object.prototype.toString.call(e)}function u(e){return e-=0,e=isNaN(e)?0:e}function d(e,t){for(var n in t)e[n]=e[n]&&"[object Object]"===e[n].toString()&&t[n]&&"[object Object]"===t[n].toString()?d(e[n],t[n]):e[n]=t[n];return e}function h(n,i,e){for(var o=e.value,r=a(i),t=0;t<n.length;t++)(e=>{var t=n[e];i.find(function(e){return e[o]==t[o]})||r.push(t)})(t);return r}function p(){return-1!=navigator.userAgent.indexOf("Mac OS")?"mac":"win"}function f(e,n,i,o){var r,a,s;e&&l(e)&&(r=o.children,a=o.selected,s=o.value,e.forEach(function(t){t.__node[a]||n.find(function(e){return e[s]===t[s]})?i.push(t):f(t[r],n,i,o)}))}function g(e,n,i){if(e&&l(e))return e.map(function(t){return t=function(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
13e%2?r(Object(o),!0).forEach(function(e){var t,n;t=i,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}({},t),i.forEach(function(e){return delete t[e]}),t[n]=g(t[n],n,i),t})}function m(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],a=this,s=!1;return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s||(s=!0,r||i.call.apply(i,[a].concat(t)),setTimeout(function(){r&&i.call.apply(i,[a].concat(t)),s=!1},o))}}n.d(t,"g",function(){return o}),n.d(t,"k",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"b",function(){return d}),n.d(t,"f",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"j",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"h",function(){return m})},106:function(e,t){e.exports=function(e){var n,i,t="undefined"!=typeof window&&window.location;if(t)return e&&"string"==typeof e?(n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/"),e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(e=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:i+t.replace(/^\.\//,""),"url("+JSON.stringify(e)+")")})):e;throw new Error("fixUrls requires window.location")}},214:function(e,t,i){i.r(t),function(e){i(216),i(217),i(219);var t=i(42),n=i(1);window.addEventListener("click",function(){Object.keys(t.b).forEach(function(e){e=t.b[e];e&&e.closed&&e.closed()})}),window.addEventListener("scroll",Object(n.h)(function(){Object.keys(t.b).forEach(function(e){e=t.b[e];e&&e.calcPosition&&e.calcPosition()})})),"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?e.exports=t.c:"function"==typeof define&&i(221)?define(xmSelect):window.layui&&layui.define&&layui.define(function(e){e("xmSelect",t.c)}),window.xmSelect=t.c}.call(this,i(215)(e))},215:function(e,t){e.exports=function(e){var t;return e.webpackPolyfill||((t=Object.create(e)).children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1),t}},216:function(e,t){Array.prototype.map||(Array.prototype.map=function(e,t){var n,i,o,r,a=Object(this),s=a.length>>>0;for(t&&(n=t),i=new Array(s),o=0;o<s;)o in a&&(r=a[o],r=e.call(n,r,o,a),i[o]=r),o++;return i}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,i;if(null==this)throw new TypeError("this is null or not defined");var o,r=Object(this),a=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(n=t),i=0;i<a;)i in r&&(o=r[i],e.call(n,o,i,r)),i++}),Array.prototype.filter||(Array.prototype.filter=function(e){if(null==this)throw new TypeError;var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i,o=[],r=arguments[1],a=0;a<n;a++)a in t&&(i=t[a],e.call(r,i,a,t))&&o.push(i);return o}
13),Array.prototype.find||(Array.prototype.find=function(e){return e&&(this.filter(e)||[])[0]}),Array.prototype.findIndex||(Array.prototype.findIndex=function(e){for(var t,n=Object(this),i=n.length>>>0,o=arguments[1],r=0;r<i;r++)if(t=n[r],e.call(o,t,r,n))return r;return-1})},217:function(e,t,n){var i=n(218);"string"==typeof i&&(i=[[e.i,i,""]]);n(28)(i,{hmr:!0,transform:void 0,insertInto:void 0}),i.locals&&(e.exports=i.locals)},218:function(e,t,n){(t=n(27)(!1)).push([e.i,'@font-face {\n  font-family: "xm-iconfont";\n  \n  /* IE9 */\n  src: url(\'data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAksAAsAAAAAEYAAAAjeAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEUgqTXI8lATYCJAM0CxwABCAFhG0HgTwbZQ4jEbaCkVIj+4sD3sS6BFAp9ka91ulVG4leTC/+h+3V+zyRYCTyREKkcZ+D5/u137lPdveLGJBMunoiNPOQPBMq0/FQtEKIkMRDZng69d+hOiQumAr7bJdBOEzMTU77s78mhbI58aCg7ebCs4LBTgCk+cD/4ZqWUHebipp7al3tyKOjwCV/hVyw9PdzaktxI7IMQs26/1N8gV4DI0bVut3UhCaflGGgwM3oTXg1IfRMbCsmrEnriJVeYM2eXHII4KdMMzL4OoACHgZBCTasITcReDUBE8kWPLMTCGoQaDV+eKpUPQI49r8vP6BTPIDCaiBSml3oOQX0voNPebv/u2P0AUfP1w0s5EADzYBZsNdByylo2eVq/NtRdgFpovQR5x2CIwmIZeik6/u0T/m/A7RJP00sCmmyksj/kwc+LC5BFBqDEMDDjwPiANDB9MpJTXwHmsO3YyBwWDA4OFwwJLRcRgAOBUYMDg0mHRwGTAYozsV0AgWYruDwwExDHfzwKWf4OurQ9jzQDtoF+wpistfBfluQ5bQiiJa4ZQoKhShLiMayBbyg05AIkYBoIBJEEApQy/FwYv4HchADIUBXl61dW6mpwIgyp7p8PrHddieSjhY9oqTxyPB/FGNYDklpfYh8VtaoqSgb0bKoGB17CuVUp9Ll2nS2UpNGMSw9hyirA7C6+QLyByIQS0sSSmxvArC5odZmYZMxZSiBR5OkQl0uiufxMH5eL8t3u0d4XKyuq6EMdcpNe2+oXA8p9yPa+4T1PM7+A54tc7tpl2vcAHAftnhZj2chy1CyaCRFsyMqQ5nkNnskEt2yxxZinPsOZjFm4+XWvKqLkfCGS1k4MNP82isxSMf7ZsGYvQVCNAeSSVtzWCxRdXGxyZlA2CvCEevuO7y9M2z2NWH8icydzq/qAJSp1lGvDWFp6Nw3xChJowPD+76nU+upQk6Kw9jI0Rgym9Ct8VlxMI3CSIaDCZja5tDYt0/EYra4tn0Kp3v8Rdezk8svcy1mKhoSvNcZz3LKlUe777Gmval0s7bzAc0k13LGk896V9DuvNn34N0ebKgItkQgOomuJtgQPChNI4cwa7CEWCvfk5QjJFlem6i3SfVShWi5LTFRG+JwdCNpSqbpRFwrtb1TbcRkJi/AbJJQOmfCdnswLNGVM7qqSRO1zO0Q0j5Vr3cYQ07HB0MX6KoIZhx+D9Djs2C5bXtVwvbgJHtSCIL7hjFJme4sZDdS5IlJdKUO1Qt8opn0trBafz3AX933kmCRgyMEWGZjMAkRKhwmIHJGR4ruwFCdWKYzrap2R/mvd2UKajzRAZu88pGAD90Y+02kTFCKrBSXwGGJ3wRcPCdIppTxSmHOfESRwIli0S5J/8AYDCxTGh4XZua4xvfvGx320rDK2qA8g5FlS7pWNLx71+BwgA/KZ5I0aeKmNeCNoNPl8qNHu8uHHzqaKc86fHi4vPuRI4ny+I/vjxw+clh4HXVCFvVnVFx07EHZwVhSRliTTMWSEi0h6YuS6DxCRmiin0B3L4ry6cvR0ijYexFdBL3wGQM0YOrUAZCBkLOBBtQ+xdk7omfgUv+u++admyUeXduyxLM+r/+49rPfhgEZor6GymToNYksNsZyC7ntwAH0928UpgMpxpF0ydNlsMMBw7QsxTCmu0Hf3F+/+vb99Yumhb+e9R0LBNm+4O+hu7lQ5bGjI9j5G88qQ5SLFyuEC7cwd25xoYo2j4eA4bhpM7TZhPtmc+uhVEVSMYXLWh0bfjI8dvUpvDUocPZmU4kwwOfc83wB5wPehrpD3waApbwW+fgRrZXcxw+mB/3woZT+8JFMYwRMIy2k/18qhqcKpjYeYSnIACaUoRDu0e3kQFh98R5fiI8oJqwwGZSJDSbehLzZs7zIeWTQ4UGOIs2c4j2/Q/tn7n7j9juO33On6WhURCT/wO6Y3QdmWFY0Ef6JUeGRggO7ZbtaZlh5RYKWXbLPBLc3l/5h4A0mu3ZXTZ+u6t6VHMAzZhxak50T+24NnRuaOmehRkXlqVR5lIpuwezUUDUdCuJysv8Z/0/8uNE1s7jIJIubFWnI/x7g4nAZx79yYpFoAOU3a9iwT1O/GxUxPY0ljVPv9EukI3qNrl/So2YfzasqHCroNjS0+w0tlPlsYfC6v/01ixquizJH1Kd/VK+OS3iS3rTJWmqsMPdU3B3oFyC9RSumWE/0gG36IjTysfH51IJ/5oOgNYu6p4yb5Fdufhr/Kjtu0oSyYP/WJQrz35aNFnMhtFcwb55NlNnH8Wdu1b+XZA9zqlZrhdPo/V3uBhiUlQ66h0LhbAmFYIncdFOpVMh6Fl7peqy5Z2ZdQBITO2x1Asj1dRFjIBMC3hbuUh8Ooc4W03EjAdo8UL/t0oUfyU8630bmMcw/vqDNAsC9BQD4OqCgH+ljy0UhJB8AAJA+8EmArxk5gnRLik90AElf8rBm+IMvBTWnucb3+0o0ARk+r0ZBv8sU01nnSmP45/H8Dp8C8X+iE9e+ZvXymK/sQJ5/DuqhYKebPnKmPqLYuDcIMWS2/Rjxp2s8Do821LVn6A/xMK1RKvBLK5gyDsZ5uQ6bYusmx2yqLFe4lECHDPcFhojmckuAbnCI6Cn308RI6AAJdtCICQLQyBHKhSgX5YowN6BBPIEB8VxuSfNncpAuutzPnCSiDHDEo+DsKQBPoJi4MpRktepIs2zjO5h84IEMM3ffECKSZU1ZHxfewEI4h494MuuUNNOBjuw18QKHAzEXaAcylS3m3baq9MpnKenYmfEUgCdbXTHEtTVKsvruNGv9/DuYfOAhcuKu9TeEiA9nNJTUDOUbbVkn3sv2eDJrEnVrpvcHOjJeqRsOcpYYLuxoBzKVtCOm3ZaKbtJcurw+e/zN6c7Pd6r4gqUo0WLEiiOueOITvwQkKCEJM9nO3F60y5HkqLhdqUyXZtK3lqwReQ+G40O92UhOt0x/KmKM+u7LTPMzoEBOCYtiUPfSjODiuFXjSDm2idzAoc4Tj9bs2eJYDOU7HQA=\') format(\'woff2\');\n  /* iOS 4.1- */\n}\n.xm-iconfont {\n  font-family: "xm-iconfont" !important;\n  font-size: 16px;\n  font-style: normal;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.xm-icon-quanxuan:before {\n  content: "\\e62c";\n}\n.xm-icon-caidan:before {\n  content: "\\e610";\n}\n.xm-icon-fanxuan:before {\n  content: "\\e837";\n}\n.xm-icon-pifu:before {\n  content: "\\e668";\n}\n.xm-icon-qingkong:before {\n  content: "\\e63e";\n}\n.xm-icon-sousuo:before {\n  content: "\\e600";\n}\n.xm-icon-danx:before {\n  content: "\\e62b";\n}\n.xm-icon-duox:before {\n  content: "\\e613";\n}\n.xm-icon-close:before {\n  content: "\\e601";\n}\n.xm-icon-expand:before {\n  content: "\\e641";\n}\n.xm-icon-banxuan:before {\n  content: "\\e60d";\n}\n',""]),e.exports=t},219:function(e,t,n){var i=n(220);"string"==typeof i&&(i=[[e.i,i,""]]);n(28)(i,{hmr:!0,transform:void 0,insertInto:void 0}),i.locals&&(e.exports=i.locals)}
13,220:function(e,t,n){(t=n(27)(!1)).push([e.i,"@-webkit-keyframes xm-upbit {\n  from {\n    -webkit-transform: translate3d(0, 30px, 0);\n    opacity: 0.3;\n  }\n  to {\n    -webkit-transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n@keyframes xm-upbit {\n  from {\n    transform: translate3d(0, 30px, 0);\n    opacity: 0.3;\n  }\n  to {\n    transform: translate3d(0, 0, 0);\n    opacity: 1;\n  }\n}\n@-webkit-keyframes loader {\n  0% {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n@keyframes loader {\n  0% {\n    -webkit-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\nxm-select {\n  background-color: #FFF;\n  position: relative;\n  border: 1px solid #E6E6E6;\n  border-radius: 2px;\n  display: block;\n  width: 100%;\n  cursor: pointer;\n  outline: none;\n}\nxm-select * {\n  margin: 0;\n  padding: 0;\n  box-sizing: border-box;\n  font-size: 14px;\n  font-weight: 400;\n  text-overflow: ellipsis;\n  user-select: none;\n  -ms-user-select: none;\n  -moz-user-select: none;\n  -webkit-user-select: none;\n}\nxm-select:hover,\nxm-select:focus {\n  border-color: #C0C4CC;\n}\nxm-select > .xm-tips {\n  color: #999999;\n  padding: 0 10px;\n  position: absolute;\n  display: flex;\n  height: 100%;\n  align-items: center;\n}\nxm-select > .xm-icon {\n  display: inline-block;\n  overflow: hidden;\n  position: absolute;\n  width: 0;\n  height: 0;\n  right: 10px;\n  top: 50%;\n  margin-top: -3px;\n  cursor: pointer;\n  border: 6px dashed transparent;\n  border-top-color: #C2C2C2;\n  border-top-style: solid;\n  transition: all 0.3s;\n  -webkit-transition: all 0.3s;\n}\nxm-select > .xm-icon-expand {\n  margin-top: -9px;\n  transform: rotate(180deg);\n}\nxm-select > .xm-label.single-row {\n  position: absolute;\n  top: 0;\n  bottom: 0px;\n  left: 0px;\n  right: 30px;\n  overflow: auto hidden;\n}\nxm-select > .xm-label.single-row .scroll {\n  overflow-y: hidden;\n}\nxm-select > .xm-label.single-row .label-content {\n  flex-wrap: nowrap;\n  white-space: nowrap;\n}\nxm-select > .xm-label.auto-row .label-content {\n  flex-wrap: wrap;\n  padding-right: 30px !important;\n}\nxm-select > .xm-label.auto-row .xm-label-block > span {\n  white-space: unset;\n  height: 100%;\n}\nxm-select > .xm-label .scroll .label-content {\n  display: flex;\n  padding: 3px 10px;\n}\nxm-select > .xm-label .xm-label-block {\n  display: flex;\n  position: relative;\n  padding: 0px 5px;\n  margin: 2px 5px 2px 0;\n  border-radius: 3px;\n  align-items: baseline;\n  color: #FFF;\n}\nxm-select > .xm-label .xm-label-block > span {\n  display: flex;\n  color: #FFF;\n  white-space: nowrap;\n}\nxm-select > .xm-label .xm-label-block > i {\n  color: #FFF;\n  margin-left: 8px;\n  font-size: 12px;\n  cursor: pointer;\n  display: flex;\n}\nxm-select > .xm-label .xm-label-block.disabled {\n  background-color: #C2C2C2 !important;\n  cursor: no-drop !important;\n}\nxm-select > .xm-label .xm-label-block.disabled > i {\n  cursor: no-drop !important;\n}\nxm-select > .xm-body {\n  position: absolute;\n  left: 0;\n  top: 42px;\n  padding: 5px 0;\n  z-index: 999;\n  width: 100%;\n  min-width: fit-content;\n  border: 1px solid #E6E6E6;\n  background-color: #fff;\n  border-radius: 2px;\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);\n  animation-name: xm-upbit;\n  animation-duration: 0.3s;\n  animation-fill-mode: both;\n}\nxm-select > .xm-body .scroll-body {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\nxm-select > .xm-body .scroll-body::-webkit-scrollbar {\n  width: 8px;\n}\nxm-select > .xm-body .scroll-body::-webkit-scrollbar-track {\n  -webkit-border-radius: 2em;\n  -moz-border-radius: 2em;\n  -ms-border-radius: 2em;\n  border-radius: 2em;\n  background-color: #FFF;\n}\nxm-select > .xm-body .scroll-body::-webkit-scrollbar-thumb {\n  -webkit-border-radius: 2em;\n  -moz-border-radius: 2em;\n  -ms-border-radius: 2em;\n  border-radius: 2em;\n  background-color: #C2C2C2;\n}\nxm-select > .xm-body.up {\n  top: auto;\n  bottom: 42px;\n}\nxm-select > .xm-body.relative {\n  position: relative;\n  display: block !important;\n  top: 0;\n  box-shadow: none;\n  border: none;\n  animation-name: none;\n  animation-duration: 0;\n  min-width: 100%;\n}\nxm-select > .xm-body .xm-group {\n  cursor: default;\n}\nxm-select > .xm-body .xm-group-item {\n  display: inline-block;\n  cursor: pointer;\n  padding: 0 10px;\n  color: #999;\n  font-size: 12px;\n}\nxm-select > .xm-body .xm-option {\n  display: flex;\n  align-items: center;\n  position: relative;\n  padding: 0 10px;\n  cursor: pointer;\n}\nxm-select > .xm-body .xm-option-icon {\n  color: transparent;\n  display: flex;\n  border: 1px solid #E6E6E6;\n  border-radius: 3px;\n  justify-content: center;\n  align-items: center;\n}\nxm-select > .xm-body .xm-option-icon.xm-custom-icon {\n  color: unset;\n  border: unset;\n}\nxm-select > .xm-body .xm-option-icon-hidden {\n  margin-right: -10px;\n}\nxm-select > .xm-body .xm-option-icon.xm-icon-danx {\n  border-radius: 100%;\n}\nxm-select > .xm-body .xm-option-content {\n  display: flex;\n  position: relative;\n  padding-left: 15px;\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  color: #666;\n  width: calc(100% - 20px);\n}\nxm-select > .xm-body .xm-option.hide-icon .xm-option-content {\n  padding-left: 0;\n}\nxm-select > .xm-body .xm-option.selected.hide-icon .xm-option-content {\n  color: #FFF !important;\n}\nxm-select > .xm-body .xm-option .loader {\n  width: 0.8em;\n  height: 0.8em;\n  margin-right: 6px;\n  color: #C2C2C2;
13\n}\nxm-select > .xm-body .xm-select-empty {\n  text-align: center;\n  color: #999;\n}\nxm-select > .xm-body .disabled {\n  cursor: no-drop;\n}\nxm-select > .xm-body .disabled:hover {\n  background-color: #FFF;\n}\nxm-select > .xm-body .disabled .xm-option-icon {\n  border-color: #C2C2C2 !important;\n}\nxm-select > .xm-body .disabled .xm-option-content {\n  color: #C2C2C2 !important;\n}\nxm-select > .xm-body .disabled.selected > .xm-option-icon {\n  color: #C2C2C2 !important;\n}\nxm-select > .xm-body .xm-search {\n  background-color: #FFF !important;\n  position: relative;\n  padding: 0 10px;\n  margin-bottom: 5px;\n  cursor: pointer;\n}\nxm-select > .xm-body .xm-search > i {\n  position: absolute;\n  color: #666;\n}\nxm-select > .xm-body .xm-search-input {\n  border: none;\n  border-bottom: 1px solid #E6E6E6;\n  padding-left: 27px;\n  cursor: text;\n}\nxm-select > .xm-body .xm-paging {\n  padding: 0 10px;\n  display: flex;\n  margin-top: 5px;\n}\nxm-select > .xm-body .xm-paging > span:first-child {\n  border-radius: 2px 0 0 2px;\n}\nxm-select > .xm-body .xm-paging > span:last-child {\n  border-radius: 0 2px 2px 0;\n}\nxm-select > .xm-body .xm-paging > span {\n  display: flex;\n  flex: auto;\n  justify-content: center;\n  vertical-align: middle;\n  margin: 0 -1px 0 0;\n  background-color: #fff;\n  color: #333;\n  font-size: 12px;\n  border: 1px solid #e2e2e2;\n  flex-wrap: nowrap;\n  width: 100%;\n  overflow: hidden;\n  min-width: 50px;\n}\nxm-select > .xm-body .xm-toolbar {\n  padding: 0 10px;\n  display: flex;\n  margin: -3px 0;\n  cursor: default;\n}\nxm-select > .xm-body .xm-toolbar .toolbar-tag {\n  cursor: pointer;\n  display: flex;\n  margin-right: 20px;\n  color: #666;\n  align-items: baseline;\n}\nxm-select > .xm-body .xm-toolbar .toolbar-tag:hover {\n  opacity: 0.8;\n}\nxm-select > .xm-body .xm-toolbar .toolbar-tag:active {\n  opacity: 1;\n}\nxm-select > .xm-body .xm-toolbar .toolbar-tag > i {\n  margin-right: 2px;\n  font-size: 14px;\n}\nxm-select > .xm-body .xm-toolbar .toolbar-tag:last-child {\n  margin-right: 0;\n}\nxm-select > .xm-body .xm-body-custom {\n  line-height: initial;\n  cursor: default;\n}\nxm-select > .xm-body .xm-body-custom * {\n  box-sizing: initial;\n}\nxm-select > .xm-body .xm-tree {\n  position: relative;\n}\nxm-select > .xm-body .xm-tree-icon {\n  display: inline-block;\n  margin-right: 3px;\n  cursor: pointer;\n  border: 6px dashed transparent;\n  border-left-color: #C2C2C2;\n  border-left-style: solid;\n  transition: all 0.3s;\n  -webkit-transition: all 0.3s;\n  z-index: 2;\n  visibility: hidden;\n}\nxm-select > .xm-body .xm-tree-icon.expand {\n  margin-top: 3px;\n  margin-right: 5px;\n  margin-left: -2px;\n  transform: rotate(90deg);\n}\nxm-select > .xm-body .xm-tree-icon.xm-visible {\n  visibility: visible;\n}\nxm-select > .xm-body .xm-tree .left-line {\n  position: absolute;\n  left: 13px;\n  width: 0;\n  z-index: 1;\n  border-left: 1px dotted #c0c4cc !important;\n}\nxm-select > .xm-body .xm-tree .top-line {\n  position: absolute;\n  left: 13px;\n  height: 0;\n  z-index: 1;\n  border-top: 1px dotted #c0c4cc !important;\n}\nxm-select > .xm-body .xm-tree .xm-tree-icon + .top-line {\n  margin-left: 1px;\n}\nxm-select > .xm-body .scroll-body > .xm-tree > .xm-option > .top-line,\nxm-select > .xm-body .scroll-body > .xm-option > .top-line {\n  width: 0 !important;\n}\nxm-select > .xm-body .xm-cascader-box {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: 0;\n  padding: 5px 0;\n  border: 1px solid #E6E6E6;\n  background-color: #fff;\n  border-radius: 2px;\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);\n  margin: -1px;\n}\nxm-select > .xm-body .xm-cascader-box::before {\n  content: ' ';\n  position: absolute;\n  width: 0;\n  height: 0;\n  border: 6px solid transparent;\n  border-right-color: #E6E6E6;\n  top: 10px;\n  left: -12px;\n}\nxm-select > .xm-body .xm-cascader-box::after {\n  content: ' ';\n  position: absolute;\n  width: 0;\n  height: 0;\n  border: 6px solid transparent;\n  border-right-color: #fff;\n  top: 10px;\n  left: -11px;\n}\nxm-select > .xm-body .xm-cascader-scroll {\n  height: 100%;\n  overflow-x: hidden;\n  overflow-y: auto;\n}\nxm-select > .xm-body.cascader {\n  width: unset;\n  min-width: unset;\n}\nxm-select > .xm-body.cascader .xm-option-content {\n  padding-left: 8px;\n}\nxm-select > .xm-body.cascader .disabled .xm-right-arrow {\n  color: #C2C2C2 !important;\n}\nxm-select > .xm-body.cascader .hide-icon.disabled .xm-right-arrow {\n  color: #999 !important;\n}
13\nxm-select .xm-input {\n  cursor: pointer;\n  border-radius: 2px;\n  border-width: 1px;\n  border-style: solid;\n  border-color: #E6E6E6;\n  display: block;\n  width: 100%;\n  box-sizing: border-box;\n  background-color: #FFF;\n  line-height: 1.3;\n  padding-left: 10px;\n  outline: 0;\n  user-select: text;\n  -ms-user-select: text;\n  -moz-user-select: text;\n  -webkit-user-select: text;\n}\nxm-select .dis {\n  display: none;\n}\nxm-select .loading {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background-color: rgba(255, 255, 255, 0.6);\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\nxm-select .loader {\n  border: 0.2em dotted currentcolor;\n  border-radius: 50%;\n  -webkit-animation: 1s loader linear infinite;\n  animation: 1s loader linear infinite;\n  display: inline-block;\n  width: 1em;\n  height: 1em;\n  color: inherit;\n  vertical-align: middle;\n  pointer-events: none;\n}\nxm-select .xm-select-default {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  border: none;\n  visibility: hidden;\n}\nxm-select .xm-select-disabled {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  bottom: 0;\n  cursor: no-drop;\n  z-index: 2;\n  opacity: 0.3;\n  background-color: #FFF;\n}\nxm-select .item--divided {\n  border-top: 1px solid #ebeef5;\n  width: calc(100% - 20px);\n  cursor: initial;\n}\nxm-select .xm-right-arrow {\n  position: absolute;\n  color: #666;\n  right: 5px;\n  top: -1px;\n  font-weight: 700;\n  transform: scale(0.6, 1);\n}\nxm-select .xm-right-arrow::after {\n  content: '>';\n}\nxm-select[size='large'] {\n  min-height: 40px;\n  line-height: 40px;\n}\nxm-select[size='large'] .xm-input {\n  height: 40px;\n}\nxm-select[size='large'] .xm-label .scroll .label-content {\n  line-height: 34px;\n}\nxm-select[size='large'] .xm-label .xm-label-block {\n  height: 30px;\n  line-height: 30px;\n}\nxm-select[size='large'] .xm-body .xm-option .xm-option-icon {\n  height: 20px;\n  width: 20px;\n  font-size: 20px;\n}\nxm-select[size='large'] .xm-paging > span {\n  height: 34px;\n  line-height: 34px;\n}\nxm-select[size='large'] .xm-tree .left-line {\n  height: 100%;\n  bottom: 20px;\n}\nxm-select[size='large'] .xm-tree .left-line-group {\n  height: calc(100% - 40px);\n}\nxm-select[size='large'] .xm-tree .xm-tree-icon.xm-hidden + .top-line {\n  top: 19px;\n}\nxm-select[size='large'] .item--divided {\n  margin: 10px;\n}\nxm-select {\n  min-height: 36px;\n  line-height: 36px;\n}\nxm-select .xm-input {\n  height: 36px;\n}\nxm-select .xm-label .scroll .label-content {\n  line-height: 30px;\n}\nxm-select .xm-label .xm-label-block {\n  height: 26px;\n  line-height: 26px;\n}\nxm-select .xm-body .xm-option .xm-option-icon {\n  height: 18px;\n  width: 18px;\n  font-size: 18px;\n}\nxm-select .xm-paging > span {\n  height: 30px;\n  line-height: 30px;\n}\nxm-select .xm-tree .left-line {\n  height: 100%;\n  bottom: 18px;\n}\nxm-select .xm-tree .left-line-group {\n  height: calc(100% - 36px);\n}\nxm-select .xm-tree .xm-tree-icon.xm-hidden + .top-line {\n  top: 17px;\n}\nxm-select .item--divided {\n  margin: 9px;\n}\nxm-select[size='small'] {\n  min-height: 32px;\n  line-height: 32px;\n}\nxm-select[size='small'] .xm-input {\n  height: 32px;\n}\nxm-select[size='small'] .xm-label .scroll .label-content {\n  line-height: 26px;\n}\nxm-select[size='small'] .xm-label .xm-label-block {\n  height: 22px;\n  line-height: 22px;\n}\nxm-select[size='small'] .xm-body .xm-option .xm-option-icon {\n  height: 16px;\n  width: 16px;\n  font-size: 16px;\n}\nxm-select[size='small'] .xm-paging > span {\n  height: 26px;\n  line-height: 26px;\n}\nxm-select[size='small'] .xm-tree .left-line {\n  height: 100%;\n  bottom: 16px;\n}\nxm-select[size='small'] .xm-tree .left-line-group {\n  height: calc(100% - 32px);\n}\nxm-select[size='small'] .xm-tree .xm-tree-icon.xm-hidden + .top-line {\n  top: 15px;\n}\nxm-select[size='small'] .item--divided {\n  margin: 8px;\n}\nxm-select[size='mini'] {\n  min-height: 28px;\n  line-height: 28px;\n}\nxm-select[size='mini'] .xm-input {\n  height: 28px;\n}\nxm-select[size='mini'] .xm-label .scroll .label-content {\n  line-height: 22px;\n}\nxm-select[size='mini'] .xm-label .xm-label-block {\n  height: 18px;\n  line-height: 18px;\n}\nxm-select[size='mini'] .xm-body .xm-option .xm-option-icon {\n  height: 14px;\n  width: 14px;\n  font-size: 14px;\n}\nxm-select[size='mini'] .xm-paging > span {\n  height: 22px;\n  line-height: 22px;\n}\nxm-select[size='mini'] .xm-tree .left-line {\n  height: 100%;\n  bottom: 14px;\n}\nxm-select[size='mini'] .xm-tree .left-line-group {\n  height: calc(100% - 28px);\n}\nxm-select[size='mini'] .xm-tree .xm-tree-icon.xm-hidden + .top-line {\n  top: 13px;\n}\nxm-select[size='mini'] .item--divided {\n  margin: 7px;\n}\n.layui-form-pane xm-select {\n  margin: -1px -1px -1px 0;\n}\n",""]),e.exports=t},221:function(t,e){!function(e){t.exports=e}.call(this,{})},27:function(e,t,n){e.exports=function(r){var l=[];return l.toString=function(){return this.map(function(e){n=e[1]||"";var t,n,i,o=(i=e[3])?(r&&"function"==typeof btoa?(t=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t),t="/*# ".concat(t," */"),o=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}),[n].concat(o).concat([t])):[n]).join("\n"):n;return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o}).join("")},l.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);n&&i[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),l.push(s))}},l}},28:function(e,t,i){var n,o,r,l={},a=(n=function(){return window&&document&&document.all&&!window.atob},r={},function(e,t){if("function"==typeof e)return e();if(void 0===r[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}r[e]=t}return r[e]}),s=null,c=0,u=[],d=i(106);function h(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(v(i.parts[r],t))}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(v(i.parts[r],t));l[i.id]={id:i.id,refs:1,parts:a}}}}function p(e,t){for(var n=[],i={},o=0;o<e.length;
13o++){var r=e[o],a=t.base?r[0]+t.base:r[0],r={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(r):n.push(i[a]={id:a,parts:[r]})}return n}function f(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");i=a(e.insertAt.before,n);n.insertBefore(t,i)}}function g(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=u.indexOf(e)))&&u.splice(e,1)}function m(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce&&(t=i.nc)&&(e.attrs.nonce=t),y(n,e.attrs),f(e,n),n}function y(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function v(t,e){var n,i,o,r,a;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}return o=e.singleton?(r=c++,n=s=s||m(e),i=x.bind(null,n,r,!1),x.bind(null,n,r,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,a=document.createElement("link"),void 0===r.attrs.type&&(r.attrs.type="text/css"),r.attrs.rel="stylesheet",y(a,r.attrs),f(r,a),n=a,i=function(e,t,n){var i=n.css,n=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&n,t=((t.convertToAbsoluteUrls||o)&&(i=d(i)),n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),new Blob([i],{type:"text/css"})),o=e.href;e.href=URL.createObjectURL(t),o&&URL.revokeObjectURL(o)}.bind(null,n,e),function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),i=function(e,t){var n=t.css,t=t.media;if(t&&e.setAttribute("media",t),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){g(n)}),i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):o()}}e.exports=function(e,a){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"==typeof a.attrs?a.attrs:{},a.singleton||"boolean"==typeof a.singleton||(a.singleton=function(){return o=void 0===o?n.apply(this,arguments):o}()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var s=p(e,a);return h(s,a),function(e){for(var t,n=[],i=0;i<s.length;i++){var o=s[i];(t=l[o.id]).refs--,n.push(t)}for(e&&h(p(e,a),a),i=0;i<n.length;i++)if(0===(t=n[i]).refs){for(var r=0;r<t.parts.length;r++)t.parts[r]();delete l[t.id]}}};b=[];var b,w=function(e,t){return b[e]=t,b.filter(Boolean).join("\n")};function x(e,t,n,i){var n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=w(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},37:function(e){e.exports=JSON.parse('{"a":"xm-select","b":"1.2.4","c":"https://maplemei.gitee.io/xm-select"}')},42:function(I,e,t){t.d(e,"b",function(){return L}),t.d(e,"d",function(){return He}),t.d(e,"a",function(){return N});var x,n,M,R,i=t(37),P=t(1),A={},C=[],O=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function k(e,t){for(var n in t)e[n]=t[n];return e}function H(e){var t=e.parentNode;t&&t.removeChild(e)}function B(e,t,n){var i,o=arguments,r={};for(i in t)"key"!==i&&"ref"!==i&&(r[i]=t[i]);if(3<arguments.length)for(n=[n],i=3;i<arguments.length;i++)n.push(o[i]);if(null!=n&&(r.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===r[i]&&(r[i]=e.defaultProps[i]);return b(e,r,t&&t.key,t&&t.ref,null)}function b(e,t,n,i,o){e={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o};return null==o&&(e.__v=e),x.vnode&&x.vnode(e),e}function _(e){return e.children}function S(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?w(e):null}function o(e){(e.__d||(e.__d=!0,!n.push(e))||r.__r++)&&R===x.debounceRendering||((R=x.debounceRendering)||M)(r)}function r(){for(var e;r.__r=n.length;)e=n.sort(function(e,t){return e.__v.__b-t.__v.__b}),n=[],e.some(function(e){var t,n,i,o,r;e.__d&&(o=(i=(e=e).__v).__e,r=e.__P)&&(t=[],n=T(r,i,(n=k({},i)).__v=n,e.__n,void 0!==r.ownerSVGElement,null,t,null==o?w(i):o),q(t,i),n!=o)&&function e(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return e(t)}}(i)})}function F(e,t,n,i,o,r,a,s,l,c){var u,d,h,p,f,g,m,y=i&&i.__k||C,v=y.length;for(l==A&&(l=null!=a?a[0]:v?w(i,0):null),n.__k=[],u=0;u<t.length;u++)if(null!=(p=n.__k[u]=null==(p=t[u])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p?b(null,p,null,
13null,p):Array.isArray(p)?b(_,{children:p},null,null,null):null!=p.__e||null!=p.__c?b(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=y[u])||h&&p.key==h.key&&p.type===h.type)y[u]=void 0;else for(d=0;d<v;d++){if((h=y[d])&&p.key==h.key&&p.type===h.type){y[d]=void 0;break}h=null}f=T(e,p,h=h||A,o,r,a,s,l,c),(d=p.ref)&&h.ref!=d&&(m=m||[],h.ref&&m.push(h.ref,null,p),m.push(d,p.__c||f,p)),null!=f?(null==g&&(g=f),l=z(e,p,h,y,a,f,l),"option"==n.type?e.value="":"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=w(h))}if(n.__e=g,null!=a&&"function"!=typeof n.type)for(u=a.length;u--;)null!=a[u]&&H(a[u]);for(u=v;u--;)null!=y[u]&&function e(t,n,i){var o,r,a;if(x.unmount&&x.unmount(t),!(o=t.ref)||o.current&&o.current!==t.__e||V(o,null,n),i||"function"==typeof t.type||(i=null!=(r=t.__e)),t.__e=t.__d=void 0,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){x.__e(t,n)}o.base=o.__P=null}if(o=t.__k)for(a=0;a<o.length;a++)o[a]&&e(o[a],n,i);null!=r&&H(r)}(y[u],y[u]);if(m)for(u=0;u<m.length;u++)V(m[u],m[++u],m[++u])}function z(e,t,n,i,o,r,a){var s,l,c;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(o==n||r!=a||null==r.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(r),s=null;else{for(l=a,c=0;(l=l.nextSibling)&&c<i.length;c+=2)if(l==r)break e;e.insertBefore(r,a),s=a}return void 0!==s?s:r.nextSibling}function W(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]="number"==typeof n&&!1===O.test(t)?n+"px":null==n?"":n}function E(e,t,n,i,o){var r,a,s,l,c;if(o?"className"===t&&(t="class"):"class"===t&&(t="className"),"style"===t)if(r=e.style,"string"==typeof n)r.cssText=n;else{if("string"==typeof i&&(r.cssText="",i=null),i)for(l in i)n&&l in n||W(r,l,"");if(n)for(c in n)i&&n[c]===i[c]||W(r,c,n[c])}else"o"===t[0]&&"n"===t[1]?(a=t!==(t=t.replace(/Capture$/,"")),t=((s=t.toLowerCase())in e?s:t).slice(2),n?(i||e.addEventListener(t,U,a),(e.l||(e.l={}))[t]=n):e.removeEventListener(t,U,a)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&!o&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(t!==(t=t.replace(/^xlink:?/,""))?null==n||!1===n?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function U(e){this.l[e.type](x.event?x.event(e):e)}function T(e,t,n,i,o,r,a,s,l){var c,u,d,h,p,f,g,m,y,v,b,w=t.type;if(void 0!==t.constructor)return null;(c=x.__b)&&c(t);try{e:if("function"==typeof w){if(m=t.props,y=(c=w.contextType)&&i[c.__c],v=c?y?y.props.value:c.__:i,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?t.__c=u=new w(m,v):(t.__c=u=new S(m,v),u.constructor=w,u.render=Y),y&&y.sub(u),u.props=m,u.state||(u.state={}),u.context=v,u.__n=i,d=u.__d=!0,u.__h=[]),null==u.__s&&(u.__s=u.state),null!=w.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=k({},u.__s)),k(u.__s,w.getDerivedStateFromProps(m,u.__s))),h=u.props,p=u.state,d)null==w.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(null==w.getDerivedStateFromProps&&m!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(m,v),!u.__e&&null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(m,u.__s,v)||t.__v===n.__v){u.props=m,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),(u.__v=t).__e=n.__e,t.__k=n.__k,u.__h.length&&a.push(u),function e(t,n,i){for(var o,r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,o.__e)&&("function"==typeof o.type&&1<o.__k.length&&e(o,n,i),n=z(i,o,o,t.__k,null,o.__e,n),"function"==typeof t.type)&&(t.__d=n)}(t,s,e);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(m,u.__s,v),null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(h,p,f)})}u.context=v,u.props=m,u.state=u.__s,(c=x.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,null!=u.getChildContext&&(i=k(k({},i),u.getChildContext())),d||null==u.getSnapshotBeforeUpdate||(f=u.getSnapshotBeforeUpdate(h,p)),b=null!=c&&c.type==_&&null==c.key?c.props.children:c,F(e,Array.isArray(b)?b:[b],t,n,i,o,r,a,s,l),u.base=t.__e,u.__h.length&&a.push(u),g&&(u.__E=u.__=null),u.__e=!1}else null==r&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=((e,t,n,i,o,r,a,s)=>{var l,c,u,d,h,p=n.props,f=t.props;if(o="svg"===t.type||o,null!=r)for(l=0;l<r.length;l++)if(null!=(c=r[l])&&((null===t.type?3===c.nodeType:c.localName===t.type)||e==c)){e=c,r[l]=null;break}if(null==e){if(null===t.type)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",t.type):document.createElement(t.type,f.is&&{is:f.
13is}),r=null,s=!1}if(null===t.type)p!==f&&e.data!=f&&(e.data=f);else{if(null!=r&&(r=C.slice.call(e.childNodes)),u=(p=n.props||A).dangerouslySetInnerHTML,d=f.dangerouslySetInnerHTML,!s){if(null!=r)for(p={},h=0;h<e.attributes.length;h++)p[e.attributes[h].name]=e.attributes[h].value;!d&&!u||d&&u&&d.__html==u.__html||(e.innerHTML=d&&d.__html||"")}((e,t,n,i,o)=>{for(var r in n)"children"===r||"key"===r||r in t||E(e,r,null,n[r],i);for(r in t)o&&"function"!=typeof t[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===t[r]||E(e,r,t[r],n[r],i)})(e,f,p,o,s),d?t.__k=[]:(l=t.props.children,F(e,Array.isArray(l)?l:[l],t,n,i,"foreignObject"!==t.type&&o,r,a,A,s)),s||("value"in f&&void 0!==(l=f.value)&&l!==e.value&&E(e,"value",l,p.value,!1),"checked"in f&&void 0!==(l=f.checked)&&l!==e.checked&&E(e,"checked",l,p.checked,!1))}return e})(n.__e,t,n,i,o,r,a,l);(c=x.diffed)&&c(t)}catch(e){t.__v=null,x.__e(e,t,n)}return t.__e}function q(e,t){x.__c&&x.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){x.__e(e,t.__v)}})}function V(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){x.__e(e,n)}}function Y(e,t,n){return this.constructor(e,n)}function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function G(e){return(e=>{if(Array.isArray(e))return a(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)})(e)||(e=>{var t;if(e)return"string"==typeof e?a(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,void 0):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Q(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function J(n){var i=(()=>{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t=s(n),t=(e=i?(e=s(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==K(e)&&"function"!=typeof e){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}return e}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}x={__e:function(e,t){for(var n,i;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(i=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(i=!0,n.componentDidCatch(e)),i)return o(n.__E=n)}catch(t){e=t}throw e}},S.prototype.setState=function(e,t){var n=this.__s!==this.state?this.__s:this.__s=k({},this.state);(e="function"==typeof e?e(n,this.props):e)&&k(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),o(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),o(this))},S.prototype.render=_,n=[],M="function"==typeof Promise?Promise.prototype.then.bind(Prom
13ise.resolve()):setTimeout,r.__r=0;var Z=A,ee=(()=>{var e=i,t=S;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),X(e,t);var n=J(i);function i(e){if(this instanceof i)return n.call(this,e);throw new TypeError("Cannot call a class as a function")}return Q(i.prototype,[{key:"iconClick",value:function(e,t,n,i){this.props.ck(e,t,n,!0),i.stopPropagation()}},{key:"scrollFunc",value:function(e){if(0==e.wheelDeltaX){for(var t=this.labelRef.getElementsByClassName("xm-label-block"),n=10,i=0;i<t.length;i++)n+=t[i].getBoundingClientRect().width+5;var o=this.labelRef.getBoundingClientRect().width,o=o<n?n-o:o,e=this.labelRef.scrollLeft+e.deltaY;this.labelRef.scrollLeft=e=o<(e=e<0?0:e)?o:e}}},{key:"blur",value:function(){var e=this.base.querySelector(".label-search-input");e&&e.blur()}},{key:"labelDrag",value:function(e,t){for(var n=t.type,i=t.target;;){if(!i||"I"===i.tagName)return;if("DIV"===i.tagName&&"fixed"!==i.style.position)break;i=i.parentNode}if(console.log(t),"mousedown"===n){var o=i.cloneNode(!0),r=t.pageX,a=t.pageY,s=t.offsetX,l=t.offsetY;console.log(r,a,s,l),o.style.position="fixed",o.style.left=r-s+"px",o.style.top=a-l+"px",i.appendChild(o),console.log(o),o.onmousemove=function(e){o.style.left=e.pageX-s+"px",o.style.top=e.pageY-l+"px"},o.mouseup=function(){o.parentNode.removeChild(o),o.onmousemove=null,o.mouseup=null,o.mouseleave=null},o.mouseleave=function(){console.log("mouseleave")}}else if("mouseup"===n)for(var c=i.childNodes,u=0;u<c.length;u++){var d=c[u];if("DIV"===d.tagName){i.removeChild(d),d.onmousemove=null;break}}t.stopPropagation()}},{key:"componentDidMount",value:function(){this.labelRef.addEventListener&&this.labelRef.addEventListener("DOMMouseScroll",this.scrollFunc.bind(this),!1),this.labelRef.attachEvent&&this.labelRef.attachEvent("onmousewheel",this.scrollFunc.bind(this)),this.labelRef.onmousewheel=this.scrollFunc.bind(this)}},{key:"render",value:function(e){var n,i,o=this,t=e.data,r=e.prop,a=e.theme,s=e.sels,l=e.autoRow,c=e.tree,u=r.name,d=r.disabled,h=e.model.label,p=h.type,f=h[p],h=s,c=(c.show&&c.strict&&c.simple&&(h=[],Object(P.j)(t,s,h,r)),""),s=!0,r=h.map(function(e){return e[u]}).join(",");return"text"===p?c=h.map(function(e){return"".concat(f.left).concat(e[u]).concat(f.right)}).join(f.separator):"block"===p?(s=!1,n=G(h),i={backgroundColor:a.color},a=f.showCount<=0?n.length:f.showCount,c=n.splice(0,a).map(function(e){var t={width:f.showIcon?"calc(100% - 20px)":"100%"};return B("div",{class:["xm-label-block",e[d]?"disabled":""].join(" "),style:i},f.template&&Object(P.e)(f.template)?B("span",{style:t,dangerouslySetInnerHTML:{__html:f.template(e,n)}}):B("span",{style:t},e[u]),f.showIcon&&B("i",{class:"xm-iconfont xm-icon-close",onClick:o.iconClick.bind(o,e,!0,e[d])}))}),n.length&&c.push(B("div",{class:"xm-label-block",style:i},"+ ",n.length))):c="search"==p?(s=!1,a="",h.length&&(a=h[0][u]),B("input",{class:"label-search-input",type:"text",placeholder:e.searchTips,style:{width:"100%",border:"none"},value:a,onInput:function(e){o.props.onReset(e,"labelSearch")},onCompositionstart:function(e){o.props.onReset(e,"labelSearch")},compositionupdate:function(e){o.props.onReset(e,"labelSearch")},compositionend:function(e){o.props.onReset(e,"labelSearch")},onClick:function(e){e.stopPropagation()}})):h.length&&f&&f.template?f.template(t,h):h.map(function(e){return e[u]}).join(","),B("div",{class:["xm-label",l?"auto-row":"single-row"].join(" ")},B("div",{class:"scroll",ref:function(e){return o.labelRef=e}},s?B("div",{class:"label-content",dangerouslySetInnerHTML:{__html:c}}):B("div",{class:"label-content",title:r},c)))}}]),i})();function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function ie(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
13e%2?ne(Object(o),!0).forEach(function(e){var t,n;t=i,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}function oe(e){return(e=>{if(Array.isArray(e))return l(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)})(e)||(e=>{var t;if(e)return"string"==typeof e?l(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,void 0):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function re(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function se(n){var i=(()=>{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t=c(n),t=(e=i?(e=c(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==te(e)&&"function"!=typeof e){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}return e}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j={},le=(()=>{var e=i,t=S;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),ae(e,t);var n=se(i);function i(e){if(this instanceof i)return(e=n.call(this,e)).setState({filterValue:"",remote:!0,loading:!1,pageIndex:1,totalSize:0,val:j}),e.searchCid=0,e.inputOver=!0,e.__value="",e.tempData=[],e.size=0,e;throw new TypeError("Cannot call a class as a function")}return re(i.prototype,[{key:"optionClick",value:function(e,t,n,i){this.props.ck(e,t,n),this.focus(),this.blockClick(i)}},{key:"groupClick",value:function(e,t){var n=this.props.prop,i=n.click,o=n.disabled,i=e[i],n=e[n.children].filter(function(e){return!e[o]});"SELECT"===i?this.props.onReset(n,"append"):"CLEAR"===i?this.props.onReset(n,"delete"):"AUTO"===i?this.props.onReset(n,"auto"):Object(P.e)(i)&&i(e),this.focus(),this.blockClick(t)}},{key:"blockClick",value:function(e){e.stopPropagation()}},{key:"pagePrevClick",value:function(){0<arguments.length&&void 0!==arguments[0]||this.size;var e=this.state.pageIndex;e<=1||(this.changePageIndex(e-1),this.props.pageRemote&&this.postData(e-1,!0))}},{key:"pageNextClick",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.size,t=this.state.pageIndex;e<=t||(this.changePageIndex(t+1),this.props.pageRemote&&this.postData(t+1,!0))}},{key:"changePageIndex",value:function(e){this.setState({pageIndex:e})}}
13,{key:"labelSearch",value:function(e){"input"==e.type?this.searchInput(e):this.handleComposition(e)}},{key:"searchInput",value:function(e){var t=this,e=e.target.value;e!==this.__value&&(this.searchCid&&clearTimeout(this.searchCid),this.inputOver)&&(this.__value=e,this.searchCid=setTimeout(function(){t.callback=!0,t.setState({filterValue:t.__value,remote:!0,pageIndex:1})},this.props.delay))}},{key:"focus",value:function(){this.searchInputRef&&this.searchInputRef.focus()}},{key:"blur",value:function(){this.searchInputRef&&this.searchInputRef.blur()}},{key:"handleComposition",value:function(e){var t=e.type;"compositionstart"===t?(this.inputOver=!1,this.searchCid&&clearTimeout(this.searchCid)):"compositionend"===t&&(this.inputOver=!0,this.searchInput(e))}},{key:"postData",value:function(){var n=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.state.pageIndex;(this.state.remote||1<arguments.length&&void 0!==arguments[1]&&arguments[1])&&(this.callback=!1,this.setState({loading:!0,remote:!1}),this.blur(),this.props.remoteMethod(this.state.filterValue,function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;setTimeout(function(){n.focus(),n.callback=!0,n.setState({loading:!1,totalSize:t}),n.props.onReset(e,"data")},10)},this.props.show,e))}},{key:"keydown",value:function(e,t){var n,i,o,r,a,s,l=this,c=t.keyCode;"div"===e&&(27===c||9===c?this.props.onReset(!1,"close"):37===c?this.pagePrevClick():39===c&&this.pageNextClick()),this.props.enableKeyboard&&(e=this.props.prop,n=e.value,i=e.optgroup,o=e.disabled,-1!=(s=(e=this.tempData.filter(function(e){return!e[i]&&!e[o]})).length-1))&&(r=e.findIndex(function(e){return e[n]===l.state.val}),38===c?(r<=0?r=s:0<r&&--r,a=e[r][n],this.setState({val:a}),this.viewTo(a)):40===c?(-1===r||r===s?r=0:r<s&&(r+=1),a=e[r][n],this.setState({val:a}),this.viewTo(a)):c===this.props.selectedKeyCode&&this.state.val!=j&&(s=e[r],this.optionClick(s,-1!=this.props.sels.findIndex(function(e){return e[n]===l.state.val}),s[o],t)))}},{key:"viewTo",value:function(e){null!=this.base&&(e=this.base.querySelector('.xm-option[value="'.concat(e,'"]')))&&e.scrollIntoView(!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.props.show!=e.show&&(e.show?setTimeout(function(){"search"!==e.model.label.type&&(e.filterable?t:t.base).focus()},0):(this.setState({filterValue:"",val:j}),this.__value="",this.searchInputRef&&(this.searchInputRef.value=""),this.props.onReset("","labelSearchBlur"))),this.props.__update!=e.__update&&this.setState({remote:!0})}},{key:"render",value:function(l){var e,c=this,u=l.data,t=l.flatData,r=l.prop,d=l.template,h=l.theme,p=l.radio,f=l.sels,n=l.empty,i=l.filterable,o=l.filterMethod,a=l.remoteSearch,s=l.searchTips,g=l.create,m=l.pageRemote,y=l.max,v=l.enableKeyboard,b=l.enableHoverFirst,w=r.name,x=r.value,A=r.disabled,C=r.children,k=r.optgroup,_=Object(P.b)([],t);if((m||i&&a)&&this.postData(),i&&!a&&!m){for(var _=_.filter(function(e,t){return e[k]?(delete e.__del,!0):o(c.state.filterValue,e,t,r)}),S=0;S<_.length-1;S++){var E=_[S],O=_[S+1];E[k]&&O[k]&&(_[S].__del=!0)}_.length&&_[_.length-1][k]&&(_[_.length-1].__del=!0),_=_.filter(function(e){return!e.__del}),e=this.state.filterValue&&Object(P.e)(g)}var T,$,t=B("div",{class:i&&"search"!=l.model.label.type?"xm-search":"xm-search dis"},B("i",{class:"xm-iconfont xm-icon-sousuo"}),B("input",{class:"xm-input xm-search-input",placeholder:s})),D={},a=(_.filter(function(e){return e[k]}).forEach(function(e,t){(D[t]=e)[C].forEach(function(e){return e.__group__index=t})}),_=_.filter(function(e){return!e[k]}),"");l.paging?((i=(i=m?this.state.totalSize:Math.floor((_.length-1)/l.pageSize)+1)<=0?1:i)<(s=this.state.pageIndex)&&(s=i),0<i&&s<=0&&(s=1),m||(m=(s-1)*l.pageSize,_=_.slice(m,m+l.pageSize)),m={cursor:"no-drop",color:"#d2d2d2"},T={},$={},s<=1&&(T=m),s==i&&($=m),this.state.pageIndex!==s&&this.changePageIndex(s),this.size=i,a=B("div",{class:"xm-paging"},B("span",{style:T,onClick:this.pagePrevClick.bind(this,i)},l.languageProp.paging.prev),B("span",null,this.state.pageIndex," / ",i),B("span",{style:$,onClick:this.pageNextClick.bind(this,i)},l.languageProp.paging.next))):0<l.showCount&&(_=_.slice(0,l.showCount));var L,N=[],I={__tmp:!0},M=(I[k]=!0,_.forEach(function(e){var t=D[e.__group__index];delete e.__group__index,(t=L&&!t?I:t)!=L&&(L=t)&&N.push(L),N.push(e)}),_=N,e&&null!=(e=g(this.state.filterValue,Object(P.b)([],_)))&&_.splice.apply(_,[0,0].concat(oe((Object(P.d)(e)?e:[e]).map(function(e){return ie(ie({},e),{},{__node:{}})}
13)))),Object(P.b)([],_)),m=(this.tempData=M,B("div",{class:"xm-toolbar"},l.toolbar.list.map(function(e){function t(e){"mouseenter"===e.type&&(e.target.style.color=h.color),"mouseleave"===e.type&&(e.target.style.color="")}var n=l.languageProp.toolbar[e],i="ALL"===e?{icon:"xm-iconfont xm-icon-quanxuan",name:n,method:function(e){var t=r.optgroup,n=r.disabled,e=e.filter(function(e){return!e[t]}).filter(function(e){return!e[n]}),i=f.filter(function(e){return e[r.disabled]}),i=p?i.length?i:e.slice(0,1):0<y?i.length>=y?i:Object(P.f)(e.slice(0,y-i.length),i,r):Object(P.f)(e,f,r);c.props.onReset(i,"sels")}}:"CLEAR"===e?{icon:"xm-iconfont xm-icon-qingkong",name:n,method:function(e){c.props.onReset(f.filter(function(e){return e[r.disabled]}),"sels")}}:"REVERSE"===e?{icon:"xm-iconfont xm-icon-fanxuan",name:n,method:function(e){var t=r.optgroup,n=r.disabled,i=e.filter(function(e){return!e[t]}).filter(function(e){return!e[n]}),o=[],e=(f.forEach(function(t){var e=i.findIndex(function(e){return e[x]===t[x]});-1==e?o.push(t):i.splice(e,1)}),o.filter(function(e){return e[r.disabled]})),e=p?e.length?e:i.slice(0,1):0<y?e.length>=y?e:Object(P.f)(i.slice(0,y-e.length),e,r):Object(P.f)(i,o,r);c.props.onReset(e,"sels")}}:e;return B("div",{class:"toolbar-tag",style:{},onClick:function(){Object(P.e)(i.method)&&i.method(M),c.focus()},onMouseEnter:t,onMouseLeave:t},l.toolbar.showIcon&&B("i",{class:i.icon}),B("span",null,i.name))}).filter(function(e){return e}))),R="hidden"!=l.model.icon;return(_=_.map(function(e){return e[k]?e.__tmp?B("div",{class:"item--divided"}):B("div",{class:"xm-group"},B("div",{class:"xm-group-item",onClick:c.groupClick.bind(c,e)},e[w])):(n=e,e=!!f.find(function(e){return e[x]==n[x]}),i=e?{color:h.color,border:"none"}:{borderColor:h.color},o={},v&&n[x]===c.state.val&&(o.backgroundColor=h.hover),!R&&e&&(o.backgroundColor=h.color,n[A])&&(o.backgroundColor="#C2C2C2"),a=["xm-option",n[A]?" disabled":"",e?" selected":"",R?"show-icon":"hide-icon"].join(" "),s=["xm-option-icon",(r=l.iconfont.select,s=l.iconfont.unselect,(r?!e&&s?s+" xm-custom-icon":r:0)||"xm-iconfont "+(p?"xm-icon-danx":"xm-icon-duox"))].join(" "),B("div",{class:a,style:o,value:n[x],onClick:c.optionClick.bind(c,n,e,n[A]),onMouseEnter:t,onMouseLeave:t},R&&B("i",{class:s,style:i}),B("div",{class:"xm-option-content",dangerouslySetInnerHTML:{__html:d({data:u,item:n,arr:f,name:n[w],value:n[x]})}})));function t(e){"mouseenter"===e.type?n[A]||(v?c.setState({val:n[x]}):e.target.style.backgroundColor=h.hover):"mouseleave"!==e.type||n[A]||v||(e.target.style.backgroundColor="")}var n,i,o,r,a,s})).length?b&&this.state.val==j&&this.keydown("div",{keyCode:40}):(l.pageEmptyShow||(a=""),_.push(B("div",{class:"xm-select-empty"},n))),B("div",{onClick:this.blockClick,tabindex:"1",style:"outline: none;"},B("div",null,l.toolbar.show&&m,t,B("div",{class:"scroll-body",style:{maxHeight:l.height}},_),l.paging&&a),this.state.loading&&B("div",{class:"loading"},B("span",{class:"loader"})))}},{key:"componentDidMount",value:function(){var e=this.base.querySelector(".xm-search-input");e&&(e.addEventListener("compositionstart",this.handleComposition.bind(this)),e.addEventListener("compositionupdate",this.handleComposition.bind(this)),e.addEventListener("compositionend",this.handleComposition.bind(this)),e.addEventListener("input",this.searchInput.bind(this)),this.searchInputRef=e),this.base.addEventListener("keydown",this.keydown.bind(this,"div"))}},{key:"componentDidUpdate",value:function(){var e;this.callback&&(this.callback=!1,e=this.props.filterDone,Object(P.e)(e))&&e(this.state.filterValue,this.tempData||[])}}]),i})();function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function de(e,t){return(de=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function he(n){var i=(()=>
13{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t=u(n),t=(e=i?(e=u(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==ce(e)&&"function"!=typeof e){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}return e}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=(()=>{var e=i,t=S;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),de(e,t);var n=he(i);function i(e){if(this instanceof i)return n.call(this,e);throw new TypeError("Cannot call a class as a function")}return ue(i.prototype,[{key:"blockClick",value:function(e){e.stopPropagation()}},{key:"shouldComponentUpdate",value:function(){return!this.prepare}},{key:"render",value:function(e){return this.prepare=!0,B("div",{onClick:this.blockClick,class:"xm-body-custom"},B("div",{class:"scroll-body",style:{maxHeight:e.height}},B("div",{style:"margin: 5px 0",dangerouslySetInnerHTML:{__html:e.content}})))}}]),i})();function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(n){var i=(()=>{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t=d(n),t=(e=i?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==fe(e)&&"function"!=typeof e){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}return e}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve={},be=(()=>{var e=i,t=S;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),me(e,t);var n=ye(i);function i(e){if(this instanceof i)return(e=n.call(this,e)).state={expandedKeys:[],filterValue:"",remote:!0,loading:!1,val:ve},e.searchCid=0,e.inputOver=!0,e.__value="",e.tempData=[],e.__skipAutoExpand="",e;throw new TypeError("Cannot call a class as a function")}return ge(i.prototype,[{key:"init",value:function(e){var t=e.tree,i=e.dataObj,n=e.flatData,e=e.prop,o=e.value,r=e.optgroup,a=[];!0===t.expandedKeys?a=n.filter(function(e){return!0===e[r]}).map(function(e){return e[o]}):!1!==t.expandedKeys&&t.expandedKeys.forEach(function(e){a.push(e);for(var n=i[e];n;)(()=>{var t=n[o];-1===a.findIndex(function(e){return e===t})&&a.push(t),n=n.__node.parent})()}),this.setState({expandedKeys:a})}},{key:"blockClick",value:function(e){e.stopPropagation()}},{key:"optionClick",value:function(t,e,n,i,o){var r=this;if("line"===i){if(!0===t.__node.loading)return;var a=this.props,s=a.tree,l=a.prop,c=a.sels,a=s.clickExpand,u=s.clickCheck,d=o.target&&Object(P.e)(o.target.getAttribute)&&"expand"===o.target.getAttribute("type");if(a||d){if(!s.lazy&&!t[l.optgroup])return void this.props.ck(t,e,n);var h=t[this.props.prop.value],a=this.state.expandedKeys,d=a.findIndex(function(e){return e===h}),d=(-1===d?a.push(h):a.splice(d,1),this.setState({expandedKeys:a}),t[l.children]);s.lazy&&d&&0===d.length&&!1!==t.__node.loading&&(t.__node.loading=!0,s.load(t,function(e){t.__node.loading=!1,t[l.children]=r.handlerData(e,l.children),t[l.selected]=-1!=c.findIndex(function(e){return e[l.value]===t[l.value]}),r.props.onReset(c,"treeData")}))}else u&&(i="checkbox")}
13"checkbox"===i&&this.props.ck(t,e,n),this.blockClick(o)}},{key:"handlerData",value:function(e,t){var n=this;return e.map(function(e){return e.__node={},e[t]&&(e[t]=n.handlerData(e[t],t)),e})}},{key:"searchInput",value:function(e){var t=this,e=e.target.value;e!==this.__value&&(clearTimeout(this.searchCid),this.inputOver)&&(this.__value=e,this.searchCid=setTimeout(function(){t.callback=!0,t.setState({filterValue:t.__value,remote:!0})},this.props.delay))}},{key:"focus",value:function(){this.searchInputRef&&this.searchInputRef.focus()}},{key:"blur",value:function(){this.searchInputRef&&this.searchInputRef.blur()}},{key:"handleComposition",value:function(e){var t=e.type;"compositionstart"===t?(this.inputOver=!1,clearTimeout(this.searchCid)):"compositionend"===t&&(this.inputOver=!0,this.searchInput(e))}},{key:"filterData",value:function(e,o,r){var a=this,t=this.props,s=t.prop,l=t.filterMethod,c=t.tree,u=s.children,d=s.optgroup,h=s.value;return e.forEach(function(t,e){var n,i,e=!!o&&!l(o,t,e,s);c.strict?i=!1:e=i=!1!==r&&e,t[d]&&(n=a.filterData(t[u],o,i),n=!!o&&0===n.filter(function(e){return!e.__node.hidn}).length,(e=(c.strict||i)&&n)||a.__skipAutoExpand==o||(i=a.state.expandedKeys,o&&-1===i.findIndex(function(e){return e===t[h]})&&(i.push(t[h]),a.setState({expandedKeys:i})),a.__skipAutoExpand=o)),t.__node.hidn=e}),e}},{key:"postData",value:function(){var n=this;this.state.remote&&(this.callback=!1,this.setState({loading:!0,remote:!1}),this.blur(),this.props.remoteMethod(this.state.filterValue,function(e,t){n.focus(),n.callback=!0,n.setState({loading:!1,totalSize:t}),n.props.onReset(e,"data")},this.props.show,1))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.props.show!=e.show&&(e.show?setTimeout(function(){return t.focus()},0):(this.setState({filterValue:"",val:ve}),this.__value="",this.__skipAutoExpand="",this.searchInputRef&&(this.searchInputRef.value="")))}},{key:"componentWillMount",value:function(){this.init(this.props)}},{key:"render",value:function(o,e){function r(t,e,n){function i(e){"mouseenter"===e.type?t[A]||(b?d.setState({val:t[x]}):e.target.style.backgroundColor=p.hover):"mouseleave"!==e.type||t[A]||b||(e.target.style.backgroundColor="")}var o=!!h.find(function(e){return e[x]==t[x]}),r=t[A],a=!0===t.__node.half,s=(y.strict&&(o=o||a||t.__node.selected,r=r||t.__node.disabled),o?{color:p.color,border:"none"}:{borderColor:p.color}),l={paddingLeft:e+"px"},r=(b&&t[x]===d.state.val&&(l.backgroundColor=p.hover),!k&&o&&(l.backgroundColor=p.color,r)&&(l.backgroundColor="#C2C2C2"),["xm-option",r?" disabled":"",o?" selected":"",k?"show-icon":"hide-icon"].join(" ")),a=0!==n&&"hidden"===v.parent?"xm-option-icon-hidden":["xm-option-icon",(a?v.half?v.half+" xm-custom-icon":0:0!==n&&v.parent?v.parent+" xm-custom-icon":o?v.select||0:v.unselect?v.unselect+" xm-custom-icon":0)||"xm-iconfont "+(f?"xm-icon-danx":y.strict&&a?"xm-icon-banxuan":"xm-icon-duox")].join(" "),c=["xm-tree-icon",n?"expand":"",t[C]&&(0<t[C].length||y.lazy&&!1!==t.__node.loading)?"xm-visible":"xm-hidden"].join(" "),u=[];return y.showFolderIcon&&(u.push(B("i",{class:c,type:"expand"})),y.showLine)&&(n&&u.push(B("i",{class:"left-line",style:{left:e-y.indent+3+"px"}})),u.push(B("i",{class:"top-line",style:{left:e-y.indent+3+"px",width:y.indent+(0===n?10:-2)+"px"}}))),B("div",{class:r,style:l,value:t[x],onClick:d.optionClick.bind(d,t,o,t[A],"line"),onMouseEnter:i,onMouseLeave:i},u,t.__node.loading&&B("span",{class:"loader"}),k&&B("i",{class:a,style:s,onClick:d.optionClick.bind(d,t,o,t[A],"checkbox")}),B("div",{class:"xm-option-content",dangerouslySetInnerHTML:{__html:g({data:m,item:t,arr:h,name:t[w],value:t[x]})}}))}var d=this,a=(e.expandedKeys,o.prop),e=o.empty,h=o.sels,p=o.theme,f=o.radio,g=o.template,m=o.data,y=o.tree,t=o.filterable,n=o.searchTips,v=o.iconfont,b=o.enableKeyboard,w=a.name,x=a.value,A=a.disabled,C=a.children,i=a.optgroup,k="hidden"!=o.model.icon,s=(t&&(o.remoteSearch?this.postData():this.filterData(m,this.state.filterValue)),Object(P.b)([],m)),l=Object(P.b)([],h),c=(this.tempData=s,m.map(function(e){return function t(n,i){var e,o;if(!n.__node.hidn)return e=n[C],i+=y.indent,e?(o=-1!==d.state.expandedKeys.findIndex(function(e){return n[x]===e}),0===e.length&&(o=!1),B("div",{class:"xm-tree"},y.showFolderIcon&&y.showLine&&o&&0<e.length&&B("i",{class:"left-line left-line-group",style:{left:i+3+"px"}}),r(n,i,0!==e.length||y.lazy&&(y.lazy,!1!==n.__node.loading)?o:0),o&&B("div",{class:"xm-tree-box"},e.map(function(e){return t(e,i)})))):r(n,i,0)}(e,10-y.indent)}
13).filter(function(e){return e}));function u(t,e){e.forEach(function(e){e[i]?(y.strict||"hidden"===v.parent||t.push(e),u(t,e[C])):t.push(e)})}var _=B("div",{class:"xm-toolbar"},o.toolbar.list.map(function(e){function t(e){"mouseenter"===e.type&&(e.target.style.color=p.color),"mouseleave"===e.type&&(e.target.style.color="")}var n=o.languageProp.toolbar[e],i="ALL"===e?{icon:"xm-iconfont xm-icon-quanxuan",name:n,method:function(e){var t=[];u(t,e),t=t.filter(function(e){return!e[A]&&!e.__node.hidn}),d.props.onReset(f?t.slice(0,1):Object(P.f)(t,h,a),"treeData")}}:"CLEAR"===e?{icon:"xm-iconfont xm-icon-qingkong",name:n,method:function(e){d.props.onReset(h.filter(function(e){return e[a.disabled]}),"treeData")}}:"REVERSE"===e?{icon:"xm-iconfont xm-icon-fanxuan",name:n,method:function(e){var n=[],i=(u(n,e),n=n.filter(function(e){return!e[A]&&!e.__node.hidn}),[]);h.forEach(function(t){var e=n.findIndex(function(e){return e[x]===t[x]});-1==e?i.push(t):n.splice(e,1)}),d.props.onReset(f?i.slice(0,1):Object(P.f)(n,i,a),"treeData")}}:e;return B("div",{class:"toolbar-tag",onClick:function(){Object(P.e)(i.method)&&i.method(s,l)},onMouseEnter:t,onMouseLeave:t},o.toolbar.showIcon&&B("i",{class:i.icon}),B("span",null,i.name))}).filter(function(e){return e})),t=B("div",{class:t?"xm-search":"xm-search dis"},B("i",{class:"xm-iconfont xm-icon-sousuo"}),B("input",{class:"xm-input xm-search-input",placeholder:n}));return c.length||c.push(B("div",{class:"xm-select-empty"},e)),B("div",{onClick:this.blockClick,class:"xm-body-tree"},o.toolbar.show&&_,t,B("div",{class:"scroll-body",style:{maxHeight:o.height}},c),this.state.loading&&B("div",{class:"loading"},B("span",{class:"loader"})))}},{key:"componentDidMount",value:function(){var e=this.base.querySelector(".xm-search-input");e&&(e.addEventListener("compositionstart",this.handleComposition.bind(this)),e.addEventListener("compositionupdate",this.handleComposition.bind(this)),e.addEventListener("compositionend",this.handleComposition.bind(this)),e.addEventListener("input",this.searchInput.bind(this)),this.searchInputRef=e)}},{key:"componentDidUpdate",value:function(){var e;this.callback&&(this.callback=!1,e=this.props.filterDone,Object(P.e)(e))&&e(this.state.filterValue,this.tempData||[])}}]),i})();function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ce(n){var i=(()=>{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t=h(n),t=(e=i?(e=h(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(!e||"object"!==we(e)&&"function"!=typeof e){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}return e}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=(()=>{var e=i,t=S;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ae(e,t);var n=Ce(i);function i(e){if(this instanceof i)return(e=n.call(this,e)).state={expand:[]},e;throw new TypeError("Cannot call a class as a function")}return xe(i.prototype,[{key:"blockClick",value:function(e){e.stopPropagation()}},{key:"optionClick",value:function(e,t,n,i,o,r){if("line"===i){if(!e.optgroup&&n)return;if(!0===e.__node.loading)return;var a=this.props;if(!a.cascader.lazy&&!e[a.prop.optgroup])return void this.props.ck(e,t,n);a=this.state.expand.slice(0,o+1);a[o]=e[this.props.prop.value],this.setState({expand:a})}else"checkbox"===i&&this.props.ck(e,t,n);this.blockClick(r)}},{key:"componentWillReceiveProps",value:function(e){}},{key:"componentWillMount",value:function(){}},{key:"render",value:function(f,e){function g(e,t,n){var i=e[S];t=t+A.indent+6;
13(a=i&&m.state.expand[n]===e[k])&&$.push(B("div",{class:"xm-cascader-box",index:n%4,style:{left:t+"px",width:A.indent+"px"}},B("div",{class:"xm-cascader-scroll scroll-body"},i.map(function(e){return g(e,t,n+1)}))));var o=e,i=n,e=a;function r(e){"mouseenter"===e.type?o[_]||m.setState({val:o[k]}):"mouseleave"===e.type&&m.setState({val:""})}var a=!!y.find(function(e){return e[k]==o[k]}),s=o[_],l=!0===o.__node.half,c=(A.strict&&(a=a||l||o.__node.selected,s=s||o.__node.disabled),a?{color:v.color,border:"none"}:{borderColor:v.color}),u=o[S]&&0<o[S].length,d={backgroundColor:"transparent"},h=["xm-option",s?" disabled":"",a?" selected":"",T?"show-icon":"hide-icon"].join(" "),u=u&&"hidden"===f.iconfont.parent?"xm-option-icon-hidden":["xm-option-icon",(l?f.iconfont.half?f.iconfont.half+" xm-custom-icon":0:u&&f.iconfont.parent?f.iconfont.parent+" xm-custom-icon":a?f.iconfont.select||0:f.iconfont.unselect?f.iconfont.unselect+" xm-custom-icon":0)||"xm-iconfont "+(b?"xm-icon-danx":A.strict&&l?"xm-icon-banxuan":"xm-icon-duox")].join(" "),l=(o[k]===m.state.val&&(d.backgroundColor=v.hover),!T&&a&&(d.backgroundColor=v.color,s)&&(d.backgroundColor="#C2C2C2"),{}),p={};return e&&(l.color=v.color,l.fontWeight=700,p.color=v.color),B("div",{class:h,style:d,value:o[k],onClick:m.optionClick.bind(m,o,a,s,"line",i),onMouseEnter:r,onMouseLeave:r},T&&B("i",{class:u,style:c,onClick:m.optionClick.bind(m,o,a,s,"checkbox",i)}),B("div",{class:"xm-option-content",style:l,dangerouslySetInnerHTML:{__html:w({data:x,item:o,arr:y,name:o[C],value:o[k]})}}),o[E]&&B("div",{class:"xm-right-arrow",style:p}))}var m=this,t=f.prop,n=f.empty,y=f.sels,v=f.theme,b=f.radio,w=f.template,x=f.data,A=f.cascader,C=t.name,k=t.value,_=t.disabled,S=t.children,E=t.optgroup,T="hidden"!=f.model.icon,$=[],t=x.map(function(e){return g(e,2,0)}).concat($).filter(function(e){return e});return t.length||t.push(B("div",{class:"xm-select-empty"},n)),B("div",{onClick:this.blockClick,class:"xm-body-cascader scroll-body",style:{width:A.indent+"px",maxHeight:f.height}},t)}},{key:"componentDidMount",value:function(){this.props.onReset("cascader","class")}}]),i})();function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function $(e){return(e=>{if(Array.isArray(e))return p(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)})(e)||(e=>{var t;if(e)return"string"==typeof e?p(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,void 0):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _e(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function y(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(o),!0).forEach(function(e){var t,n;t=i,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):_e(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(i){var o=(()=>
13{if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}})();return function(){var e,t,n=g(i);return e=o?(e=g(this).constructor,Reflect.construct(n,arguments,e)):n.apply(this,arguments),n=this,!(t=e)||"object"!==f(t)&&"function"!=typeof t?$e(n):t}}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=(()=>{var e=i,t=S;if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Ee(e,t);var n=Te(i);function i(e){var t;if(this instanceof i)return t=n.call(this,e),N[e.el]=$e(t),t.state=t.initState(),t.bodyView=null,t;throw new TypeError("Cannot call a class as a function")}return Se(i.prototype,[{key:"initState",value:function(){return{data:[],dataObj:{},flatData:[],sels:[],show:!1,tmpColor:"",bodyClass:"",time:0}}},{key:"init",value:function(e,t){var n,i,o=e.data,r=e.prop,a=e.initValue,s=e.radio,l=e.tree,e=e.cascader;return t&&(this.load(o,i={},t=[],null,0,a?a.map(function(e){return"object"===f(e)?e[r.value]:e}):null),n=this.exchangeValue(a||Object.keys(i).filter(function(e){return!0===i[e][r.selected]}),i),s&&1<n.length&&(n=n.slice(0,1),l.show&&l.strict||e.show&&e.strict)&&this.clearAndReset(o,n,!1),this.setState({sels:n,dataObj:i,flatData:t})),this.setState({data:o}),n}},{key:"upDate",value:function(e,n){var t=this.state.dataObj,i=this.props,o=i.prop,r=i.tree,a=i.cascader,s=o.value,l=o.disabled,c=o.children;e.map(function(e){return t["object"===f(e)?e[s]:e]}).filter(function(e){return e}).forEach(function(e){if(e[l]=!n,r.show&&r.strict||a.show&&a.strict){if(n)for(var t=e;t;)t[l]=!1,t=t.__node.parent;!function e(t){t[l]=!n;t=t[c];t&&Object(P.d)(t)&&t.forEach(e)}(e)}}),this.setState({dataObj:t})}},{key:"exchangeValue",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.state.dataObj,i=this.props,o=i.prop,r=i.tree,i=i.cascader,a=o.children,s=o.value,l=e.map(function(e){return"object"===f(e)?y(y({},e),{},{__node:{}}):n[e]}).filter(function(e){return e}),o=$(l);return(r.show&&r.strict||i.show&&i.strict)&&(e=function e(n,t){t=t[a];t&&Object(P.d)(t)&&t.forEach(function(t){-1===l.findIndex(function(e){return e[s]===t[s]})&&n.push(t),e(n,t)})},(r={})[a]=l,e(o,r),o=o.filter(function(e){return!0!==e[t.props.prop.optgroup]})),o}},{key:"value",value:function(e,t,n,i){var o=!(4<arguments.length&&void 0!==arguments[4])||arguments[4],r=(!1!==t&&!0!==t&&(t=this.state.show),this.props),a=r.prop,s=r.tree,r=r.cascader,e=this.exchangeValue(e);this.checkMax(e,e,!0)||((s.show&&s.strict||r.show&&r.strict)&&(s=this.state.data,this.clearAndReset(s,e,!1),e=this.init({data:s,prop:a},!0)),this.resetSelectValue(e,i||e,o,n),this.setState({show:t}))}},{key:"clearAndReset",value:function(e,o,r){var a=this,t=this.props.prop,s=t.selected,l=t.disabled,c=t.children,u=t.value;e.forEach(function(t){t[s]=-1!=o.findIndex(function(e){return e[u]===t[u]})||r;var e,n,i=t[c];i&&Object(P.d)(i)&&0<i.length&&(a.clearAndReset(i,o,t[s]),e=i.length,n=i.filter(function(e){return!0===e[s]||!0===e.__node.selected}).length,t.__node.selected=n===e,t.__node.half=0<n&&n<e||0<i.filter(function(e){return!0===e.__node.half}).length,t.__node.disabled=i.filter(function(e){return!0===e[l]||!0===e.__node.disabled}).length===e)})}},{key:"load",value:function(e,o,r,a){var s=this,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,c=5<arguments.length?arguments[5]:void 0,t=this.props,n=t.prop,u=t.tree,d=t.cascader,h=n.children,p=n.optgroup,f=n.value,g=n.selected,m=n.disabled;e.forEach(function(t){t.__node={parent:a,level:l,loading:t.__node&&t.__node.loading},c&&(delete t[g],c.find(function(e){return e===t[f]}))&&(t[g]=!0),o[t[f]]=t,r.push(t);var e,n,i=t[h];i&&Object(P.d)(i)&&0<(e=i.length)&&(s.load(i,o,r,t,l+1,c),t[p]=!0,(u.show&&u.strict||d.show&&d.strict)&&(!0===t[g]&&(delete t[g],i.forEac
13h(function(e){return e[g]=!0})),!0===t[m])&&(delete t[m],i.forEach(function(e){return e[m]=!0})),n=i.filter(function(e){return!0===e[g]||!0===e.__node.selected}).length,t.__node.selected=n===e,t.__node.half=0<n&&n<e||0<i.filter(function(e){return!0===e.__node.half}).length,t.__node.disabled=i.filter(function(e){return!0===e[m]||!0===e.__node.disabled}).length===e)})}},{key:"resetSelectValue",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length?arguments[2]:void 0,i=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],o=this.props.on;if(Object(P.e)(o)&&this.prepare&&i){i=o({arr:e,change:t,isAdd:n});if(Object(P.d)(i))return this.value(i,null,!1)}this.setState({sels:e})}},{key:"updateBorderColor",value:function(e){this.setState({tmpColor:e})}},{key:"treeHandler",value:function(n,e,i,o,r){var t,a=this,s=this.props.prop,l=s.value,c=s.disabled,u=s.optgroup,s=e[s.children];s.filter(function(e){return!(e[c]||e.__node.disabled)}).forEach(function(t){var e;t[u]?a.treeHandler(n,t,i,o,r):(e=n.findIndex(function(e){return e[l]==t[l]}),"del"===o?-1!=e&&(n.splice(e,1),i.push(t)):"half"!==o&&"add"!==o||-1==e&&(n.push(t),i.push(t)))}),r&&(t=s.length,s=s.filter(function(t){return-1!==n.findIndex(function(e){return e[l]===t[l]})||!0===t.__node.selected}).length,e.__node.selected=s===t,e.__node.half=0<s&&s<t)}},{key:"checkMax",value:function(e,t,n){var i=this.props,o=i.max,r=i.maxMethod,i=i.theme,o=Object(P.i)(o),n=(n?t.length:(Object(P.d)(e)?e.length:1)+t.length)>o;if(0<o&&n)return this.updateBorderColor(i.maxColor),r&&Object(P.e)(r)&&r(t,e),!0}},{key:"itemClick",value:function(t,e,n,i){var o=this.props,r=(o.theme,o.prop),a=o.radio,s=o.repeat,l=o.clickClose,c=o.tree,u=o.cascader,o=o.data,d=$(this.state.sels),h=r.value,p=r.children;if(!n){if(t[r.optgroup]&&(c.show&&c.strict||u.show&&u.strict)){t[p];var f,n=[],r=!0;if(t.__node.selected?r=!(f="del"):t.__node.half?(this.treeHandler(d,t,n,f="half"),0===n.length&&(r=!(f="del"))):f="add","half"!=f&&this.treeHandler(d,t,n,f),this.checkMax(n,d))return;d=$(this.state.sels),this.treeHandler(d,t,n=[],f,!0),this.resetSelectValue(d,n,r),this.setState({data:this.state.data})}else if(!e||s&&!i){if(this.checkMax(t,d))return;d=a?[t]:[].concat($(d),[t]),this.clearAndReset(o,d,e),this.resetSelectValue(d,[t],!e)}else{c=d.findIndex(function(e){return e[h]==t[h]});-1!=c&&(d.splice(c,1),this.resetSelectValue(d,[t],!e))}var g=t.__node.parent;if(g){for(;g;){var m=g[p],y=m.length,v=m.filter(function(t){return-1!==d.findIndex(function(e){return e[h]===t[h]})||!0===t.__node.selected}).length;g.__node.selected=v===y,g.__node.half=0<v&&v<y||0<m.filter(function(e){return!0===e.__node.half}).length,g=g.__node.parent}this.setState({data:this.state.data})}l&&!i&&this.onClick()}}},{key:"onClick",value:function(e){var t=this;if("relative"!==this.props.model.type)if(this.props.disabled)!1!==this.state.show&&this.setState({show:!1});else{var n=!this.state.show;if(n){if(this.props.show&&0==this.props.show())return;Object.keys(L).filter(function(e){return e!=t.props.el}
13).forEach(function(e){return L[e].closed()})}else{if(this.props.hide&&0==this.props.hide())return;this.bodyView.scroll&&this.bodyView.scroll(0,0)}this.setState({show:n}),e&&e.stopPropagation()}}},{key:"onReset",value:function(e,t){var n,i=this;"data"===t?(n=e.filter(function(e){return!0===e[i.props.prop.selected]}),this.resetSelectValue(Object(P.f)(n,this.state.sels,this.props.prop),n,!0),this.load(e,{},n=[]),this.setState({data:e,flatData:n})):"sels"===t?this.resetSelectValue(e,e,!0):"append"===t?this.append(e):"delete"===t?this.del(e):"auto"===t?this.auto(e):"treeData"===t?this.value(e,null,!0,!1,!1):"close"===t?this.onClick():"class"===t?this.setState({bodyClass:e}):"labelSearchBlur"===t?this.labelRef.blur(e):"labelSearch"===t&&this.generalRef.labelSearch(e)}},{key:"append",value:function(e){e=this.exchangeValue(e);this.value(Object(P.f)(e,this.state.sels,this.props.prop),this.props.show,!0,e)}},{key:"del",value:function(e){var n=this.props.prop.value,i=this.state.sels,e=this.exchangeValue(e);e.forEach(function(t){var e=i.findIndex(function(e){return e[n]===t[n]});-1!=e&&i.splice(e,1)}),this.value(i,this.props.show,!0,e,!1)}},{key:"auto",value:function(e){var n=this,i=this.props.prop.value;e.filter(function(t){return-1!=n.state.sels.findIndex(function(e){return e[i]===t[i]})}).length==e.length?this.del(e):this.append(e)}},{key:"changeExpandedKeys",value:function(e){var t=this.props,n=t.tree,i=this.state,o=i.dataObj;n.show&&this.treeRef.init({dataObj:o,flatData:i.flatData,prop:t.prop,tree:{expandedKeys:e}})}},{key:"calcPosition",value:function(){var e;return this.state.show&&"fixed"===this.props.model.type?(e=this.base.getBoundingClientRect(),10<Date.now()-this.state.time&&this.setState({time:Date.now()}),{position:"fixed",left:e.x,top:e.y+e.height+4,width:e.width}):{}}},{key:"componentWillReceiveProps",value:function(e){this.init(e,e.updateData)}},{key:"componentWillMount",value:function(){this.init(this.props,!0)}},{key:"render",value:function(e,t){var n=this,i=e.theme,o=e.prop,r=e.content,a=e.disabled,s=e.tree,l=e.submitConversion,i={borderColor:i.color},c=t.data,u=t.dataObj,d=t.flatData,h=t.sels,p=t.show,f=t.tmpColor,t=t.bodyClass,g=(a&&(p=!1),{style:y(y({},e.style),p?i:{}),onClick:this.onClick.bind(this),ua:Object(P.a)(),size:e.size,tabindex:1}),i=(f&&(g.style.borderColor=f,setTimeout(function(){g.style.borderColor="",n.updateBorderColor("")},300)),o.value,y(y({},e),{},{data:c,sels:h,ck:this.itemClick.bind(this),title:h.map(function(e){return e[o.name]}).join(","),onReset:this.onReset.bind(this)})),f=y(y({},e),{},{data:c,dataObj:u,flatData:d,sels:h,ck:this.itemClick.bind(this),show:p,onReset:this.onReset.bind(this)}),c=r?B(pe,f):s.show?B(be,m({},f,{ref:function(e){return n.treeRef=e}})):e.cascader.show?B(ke,f):B(le,m({},f,{ref:function(e){return n.generalRef=e}})),u=this.calcPosition();return B("xm-select",g,B("input",{class:"xm-select-default","lay-verify":e.layVerify,"lay-verType":e.layVerType,"lay-reqText":e.layReqText,name:e.name,value:l(h,o)}),B("i",{class:p?"xm-icon xm-icon-expand":"xm-icon"}),0===h.length&&B("div",{class:"xm-tips"},e.tips),B(ee,m({},i,{ref:function(e){return n.labelRef=e}})),B("div",{class:["xm-body",t,e.model.type,p?"":"dis"].join(" "),style:u,ref:function(e){return n.bodyView=e}},c),a&&B("div",{class:"xm-select-disabled"}))}},{key:"componentDidMount",value:function(){var t=this,e=(this.prepare=!0,this.base.addEventListener("keydown",function(e){13===e.keyCode&&t.onClick(e)}),this.input=this.base.querySelector(".xm-select-default"),window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver);e&&new e(function(e){e.forEach(function(e){"attributes"==e.type&&"class"===e.attributeName&&-1!==t.input.className.indexOf("layui-form-danger")&&(t.input.className="xm-select-default",t.base.style.borderColor=t.props.theme.maxColor,t.base.scrollIntoView)&&t.base.scrollIntoView({behavior:"smooth"})})}).observe(this.input,{attributes:!0});for(var n=this.base;n;){if("FORM"===n.tagName){var i=n.querySelector('button[type="reset"]');i&&i.addEventListener("click",function(e){t.init(t.props,!0)});break}n=n.parentElement}e=this.props.done;e&&e()}},{key:"componentDidUpdate",value:function(){var e,t,n=this.props,i=n.direction,n=n.model;"relative"!==n.type&&"fixed"!==n.type&&(n=this.base.getBoundingClientRect(),"auto"===i&&(this.bodyView.style.display="block",this.bodyView.style.visibility="hidden",t=this.bodyView.getBoundingClientRect().height,this.bodyView.style.display="",this.bodyView.style.visibility="",e=n.y||n.top||0,i=t<(t=document.documentElement.clientHeight-e-n.height-20)||e<t?"down":"up"),"down"==i?(this.bodyView.style.top=n.height+4+"px",this.bodyView.style.bottom="auto"):(this.bodyView.style.top="auto",this.bodyView.style.bottom=n.height+4+"px"))}}]),i})(),Le={tips:"请选择",empty:"暂无数据",searchTips:"请选择",toolbar:{ALL:"全选",CLEAR:"清空",REVERSE:"反选",SEARCH:"搜索"},paging:{prev:"上一页",next:"下一页"}},Ne={zn:Le,en:{tips:"please selected",empty:"no data",searchTips:"please search",toolbar:{ALL:"select all",CLEAR:"clear",REVERSE:"invert select",SEARCH:"search"},paging:{prev:"prev",next:"next"}}};function Ie(t,e){var n,i=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)),i}function Me(i){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};
13e%2?Ie(Object(o),!0).forEach(function(e){var t,n;t=i,n=o[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(o)):Ie(Object(o)).forEach(function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(o,e))})}return i}function Re(){return(Re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Pe(v.prototype,[{key:"init",value:function(e){this.options=function(e){var e=0<arguments.length&&void 0!==e?e:"zn",t=Ne[e]||Le;return{language:e,languageProp:t,data:[],content:"",name:"select",layVerify:"",layVerType:"",layReqText:"",size:"medium",disabled:!1,initValue:null,create:null,tips:t.tips,empty:t.empty,delay:500,searchTips:t.searchTips,filterable:!1,filterMethod:function(e,t,n,i){return!e||-1!=t[i.name].indexOf(e)},remoteSearch:!1,remoteMethod:function(e,t){t([])},direction:"auto",style:{},height:"200px",autoRow:!1,paging:!1,pageSize:10,pageEmptyShow:!0,pageRemote:!1,radio:!1,repeat:!1,clickClose:!1,max:0,maxMethod:function(e,t){},showCount:0,enableKeyboard:!0,enableHoverFirst:!0,selectedKeyCode:13,toolbar:{show:!1,showIcon:!0,list:["ALL","CLEAR"]},tree:{show:!1,showFolderIcon:!0,showLine:!0,indent:20,expandedKeys:[],strict:!0,lazy:!1,load:null,simple:!1,nodeType:"__node_type",clickExpand:!0,clickCheck:!0},cascader:{show:!1,indent:100,strict:!0},prop:{name:"name",value:"value",selected:"selected",disabled:"disabled",children:"children",optgroup:"optgroup",click:"click"},theme:{color:"#28d34d",maxColor:"#e54d42",hover:"#f2f2f2"},model:{label:{type:"block",text:{left:"",right:"",separator:", "},block:{showCount:0,showIcon:!0,template:null},count:{template:function(e,t){return"已选中 ".concat(t.length," 项, 共 ").concat(e.length," 项")}}},icon:"show",type:"absolute"},iconfont:{select:"",unselect:"",half:"",parent:""},show:function(){},hide:function(){},template:function(e){return e.item,e.name},on:function(e){e.arr},submitConversion:function(e,t){return e.map(function(e){return e[t.value]}).join(",")},done:function(){}}}(e.language),this.update(e)}},{key:"update",value:function(){var e,t,n,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o=!!i.data,r=(this.options=Object(P.b)(this.options,i),this.options.__render_success=!1,this.options.dom);if(r){var a=this.options.data||[];if("function"==typeof a&&(a=a(),this.options.data=a),Object(P.d)(a))return a=B(De,Re({},this.options,{__update:Date.now(),updateData:o})),o=r,x.__&&x.__(a,o),t=(r=e===Z)?null:e&&e.__k||o.__k,a=B(_,null,[a]),n=[],T(o,(!r&&e||o).__k=a,t||A,A,void 0!==o.ownerSVGElement,e&&!r?[e]:!t&&o.childNodes.length?C.slice.call(o.childNodes):null,n,e||A,r),q(n,a),this.options.__render_success=!0,this;Object(P.k)("data数据必须为数组类型, 不能是".concat("undefined"==typeof data?"undefined":Oe(data),"类型"))}else Object(P.k)("没有找到渲染对象: ".concat(i.el,", 请检查"))}},{key:"reset",value:function(){var e=this.options.el;return this.init(He[e]),N[e].init(this.options,!0),this}},{key:"opened",value:function(){var e=N[this.options.el];return e.state.show||e.onClick(),this}},{key:"closed",value:function(){var e=N[this.options.el];return e.state.show&&e.onClick(),this}},{key:"getValue",value:function(e){var t=this,n=this.options,i=n.tree,o=n.prop,n=n.data,r=N[this.options.el].state.sels,a=r,i=(i.show&&i.strict&&i.simple&&(a=[],Object(P.j)(n,r,a,o)),Object(P.c)(a,o.children,["__node"]));return"name"===e?i.map(function(e){return e[t.options.prop.name]}):"nameStr"===e?i.map(function(e){return e[t.options.prop.name]}).join(","):"value"===e?i.map(function(e){return e[t.options.prop.value]}):"valueStr"===e?i.map(function(e){return e[t.options.prop.value]}).join(","):i}},{key:"setValue",value:function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(Object(P.d)(e))return N[this.options.el].value(this.options.radio?e.slice(0,1):e,t,n),this;Object(P.k)("请传入数组结构...")}},{key:"append",value:function(e){if(Object(P.d)(e))return N[this.options.el].append(e),this;Object(P.k)("请传入数组结构...")}},{key:"delete",value:function(e){if(Object(P.d)(e))return N[this.options.el].del(e),this;Object(P.k)("请传入数组结构...")}},{key:"warning",value:function(e){e=e||this.options.theme.maxColor;return!0===(1<arguments.length&&void 0!==arguments[1]&&arguments[1])?N[this.options.el].base.style.borderColor=e:N[this.options.el].updateBorderColor(e),this}},{key:"getTreeValue",value:function(e,t){var n=this.options,i=n.tree,o=n.prop,r=o.value;if(!i.show&&!n.cascader.show)return this.getValue(e);for(var a=N[this.options.el].state.sels,s=[],l=i.nodeType,c=function(t,e){s.find(function(e){return e[r]===t[r]})||((t=Me({},t))[l]=e,s.push(t))},u=0;u<a.length;u++){var d=Me({},a[u]);for(c(d,"leaf");d=d.__node.parent;){var h=d.__node,p=h.half,h=h.selected;!e&&h?c(d,"parent"):t&&p&&!h&&c(d,"half")}}return Object(P.c)(s,o.children,["__node"])}},{key:"changeExpandedKeys",value:function(e){return N[this.options.el].changeExpandedKeys(e),this}},{key:"enable",value:function(e){if(Object(P.d)(e)){if(0!==e.length)return N[this.options.el].upDate(e,!0),this}else Object(P.k)("请传入数组结构...")}},{key:"disable",value:function(e){if(Object(P.d)(e)){if(0!==e.length)return N[this.options.el].upDate(e,!1),this}else Object(P.k)("请传入数组结构...")}},{key:"scroll",value:function(e){e=this.options.dom.querySelector('.xm-option[value="'.concat(e,'"]'));return e&&e.scrollIntoView(!1),this}},{key:"calcPosition",value:function(){return N[this.options.el].calcPosition(),this}}]);var Be=v;function v(e){if(!(this instanceof v))throw new TypeError("Cannot call a class as a function");this.init(e)}function je(e){return(e=>{if(Array.isArray(e))return D(e)})(e)||(e=>{if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)})(e)||(e=>{var t;if(e)return"string"==typeof e?D(e,void 0):"Map"===(t="Object"===(t=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?D(e,void 0):void 0})(e)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var L={},He={},N={};e.c={name:i.a,version:i.b,doc:i.c,KeyCode:{Enter:13,Space:32},render:function(e){var t=e.el,n=(e.dom=Object(P.g)(t),t.nodeType&&(n="DOM_RENDER_"+Date.now()+"_"+Math.random(),t.setAttribute(i.a,n),t="[".concat(i.a,"='").concat(n,"']"),e.el=t),He[t]=e,new Be(e));return n&&n.options.__render_success&&(L[t]=n),n},get:function(t,e){var n;switch(Object.prototype.toString.call(t)){case"[object String]":t&&(n=function(e){return e===t});break;case"[object RegExp]":n=function(e){return t.test(e)};break;case"[object Function]":n=t}var i=Object.keys(L),i=(n?i.filter(n):i).map(function(e){return L[e]}).filter(function(e){return Object(P.g)(e.options.el)});return e?i[0]:i},batch:function(e,t){var n=Array.prototype.slice.call(arguments);return n.splice(0,2),this.get(e).map(function(e){return e[t].apply(e,je(n))})},arr2tree:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"pid",s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"id",l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"children",c=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,u={};return safety(e).filter(function(e){var t,n=e[s],i=e[a],o=u[n],r=u[i];return o&&(e[l]=o[l]),u[n]=e,r||(o=[],(n=l)in(t={})?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,r=t,u[i]=r),r.push(e),s==c})}}}}),layui.define(["form","jquery"],function(exports){var jQuery=layui.jquery,$=jQuery,form=layui.form,_MOD="treeSelect",trss={},TreeSelect=function(){this.v="1.0.0"},obj=(!function($){var settings={},roots={},caches={},_consts={className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch",NAME:"node_name"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove",SELECTED:"ztree_selected",UNSELECTED:"ztree_unselected"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_setting={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{isParent:"isParent",children:"children",name:"name",title:"",url:"url",icon:"icon"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",headers:{},xhrFields:{}
13,url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},_initRoot=function(e){var t=data.getRoot(e);t||data.setRoot(e,t={}),data.nodeChildren(e,t,[]),t.expandTriggerFlag=!1,t.curSelectedList=[],t.noSelection=!0,t.createdNodes=[],t.zId=0,t._ver=(new Date).getTime()},_initCache=function(e){var t=data.getCache(e);t||data.setCache(e,t={}),t.nodes=[],t.doms=[]},_bindEvent=function(a){var e=a.treeObj,t=consts.event;e.bind(t.NODECREATED,function(e,t,n){tools.apply(a.callback.onNodeCreated,[e,t,n])}),e.bind(t.CLICK,function(e,t,n,i,o){tools.apply(a.callback.onClick,[t,n,i,o])}),e.bind(t.EXPAND,function(e,t,n){tools.apply(a.callback.onExpand,[e,t,n])}),e.bind(t.COLLAPSE,function(e,t,n){tools.apply(a.callback.onCollapse,[e,t,n])}),e.bind(t.ASYNC_SUCCESS,function(e,t,n,i){tools.apply(a.callback.onAsyncSuccess,[e,t,n,i])}),e.bind(t.ASYNC_ERROR,function(e,t,n,i,o,r){tools.apply(a.callback.onAsyncError,[e,t,n,i,o,r])}),e.bind(t.REMOVE,function(e,t,n){tools.apply(a.callback.onRemove,[e,t,n])}),e.bind(t.SELECTED,function(e,t,n){tools.apply(a.callback.onSelected,[t,n])}),e.bind(t.UNSELECTED,function(e,t,n){tools.apply(a.callback.onUnSelected,[t,n])})},_unbindEvent=function(e){var e=e.treeObj,t=consts.event;e.unbind(t.NODECREATED).unbind(t.CLICK).unbind(t.EXPAND).unbind(t.COLLAPSE).unbind(t.ASYNC_SUCCESS).unbind(t.ASYNC_ERROR).unbind(t.REMOVE).unbind(t.SELECTED).unbind(t.UNSELECTED)},_eventProxy=function(e){var t=e.target,n=data.getSetting(e.data.treeId),i="",o=null,r="",a="",s=null,l=null,c=null;if(tools.eqs(e.type,"mousedown")?a="mousedown":tools.eqs(e.type,"mouseup")?a="mouseup":tools.eqs(e.type,"contextmenu")?a="contextmenu":tools.eqs(e.type,"click")?tools.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+consts.id.SWITCH)?(i=tools.getNodeMainDom(t).id,r="switchNode"):(c=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(i=tools.getNodeMainDom(c).id,r="clickNode"):tools.eqs(e.type,"dblclick")&&(a="dblclick",c=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))&&(i=tools.getNodeMainDom(c).id,r="switchNode"),0<(i=0<a.length&&0==i.length&&(c=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]))?tools.getNodeMainDom(c).id:i).length)switch(o=data.getNodeCache(n,i),r){case"switchNode":data.nodeIsParent(n,o)&&(tools.eqs(e.type,"click")||tools.eqs(e.type,"dblclick")&&tools.apply(n.view.dblClickExpand,[n.treeId,o],n.view.dblClickExpand))?s=handler.onSwitchNode:r="";break;case"clickNode":s=handler.onClickNode}switch(a){case"mousedown":l=handler.onZTreeMousedown;break;case"mouseup":l=handler.onZTreeMouseup;break;case"dblclick":l=handler.onZTreeDblclick;break;case"contextmenu":l=handler.onZTreeContextmenu}return{stop:!1,node:o,nodeEventType:r,nodeEventCallback:s,treeEventType:a,treeEventCallback:l}},_initNode=function(e,t,n,i,o,r,a){var s,l;
13n&&(s=data.getRoot(e),l=data.nodeChildren(e,n),n.level=t,n.tId=e.treeId+"_"+ ++s.zId,n.parentTId=i?i.tId:null,n.open="string"==typeof n.open?tools.eqs(n.open,"true"):!!n.open,t=data.nodeIsParent(e,n),tools.isArray(l)&&!(!1===t||"string"==typeof t&&tools.eqs(t,"false"))?(data.nodeIsParent(e,n,!0),n.zAsync=!0):(t=data.nodeIsParent(e,n,t),n.open=!(!t||e.async.enable)&&n.open,n.zAsync=!t),n.isFirstNode=o,n.isLastNode=r,n.getParentNode=function(){return data.getNodeCache(e,n.parentTId)},n.getPreNode=function(){return data.getPreNode(e,n)},n.getNextNode=function(){return data.getNextNode(e,n)},n.getIndex=function(){return data.getNodeIndex(e,n)},n.getPath=function(){return data.getNodePath(e,n)},n.isAjaxing=!1,data.fixPIdKeyValue(e,n))},_init={bind:[_bindEvent],unbind:[_unbindEvent],caches:[_initCache],nodes:[_initNode],proxys:[_eventProxy],roots:[_initRoot],beforeA:[],afterA:[],innerBeforeA:[],innerAfterA:[],zTreeTools:[]},data={addNodeCache:function(e,t){data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=t},getNodeCacheId:function(e){return e.substring(e.lastIndexOf("_")+1)},addAfterA:function(e){_init.afterA.push(e)},addBeforeA:function(e){_init.beforeA.push(e)},addInnerAfterA:function(e){_init.innerAfterA.push(e)},addInnerBeforeA:function(e){_init.innerBeforeA.push(e)},addInitBind:function(e){_init.bind.push(e)},addInitUnBind:function(e){_init.unbind.push(e)},addInitCache:function(e){_init.caches.push(e)},addInitNode:function(e){_init.nodes.push(e)},addInitProxy:function(e,t){t?_init.proxys.splice(0,0,e):_init.proxys.push(e)},addInitRoot:function(e){_init.roots.push(e)},addNodesData:function(e,t,n,i){var o=data.nodeChildren(e,t);o?n>=o.length&&(n=-1):(o=data.nodeChildren(e,t,[]),n=-1),0<o.length&&0===n?(o[0].isFirstNode=!1,view.setNodeLineIcos(e,o[0])):0<o.length&&n<0&&(o[o.length-1].isLastNode=!1,view.setNodeLineIcos(e,o[o.length-1])),data.nodeIsParent(e,t,!0),n<0?data.nodeChildren(e,t,o.concat(i)):(e=[n,0].concat(i),o.splice.apply(o,e))},addSelectedNode:function(e,t){var n=data.getRoot(e);data.isSelectedNode(e,t)||n.curSelectedList.push(t)},addCreatedNode:function(e,t){(e.callback.onNodeCreated||e.view.addDiyDom)&&data.getRoot(e).createdNodes.push(t)},addZTreeTools:function(e){_init.zTreeTools.push(e)},exSetting:function(e){$.extend(!0,_setting,e)},fixPIdKeyValue:function(e,t){e.data.simpleData.enable&&(t[e.data.simpleData.pIdKey]=t.parentTId?t.getParentNode()[e.data.simpleData.idKey]:e.data.simpleData.rootPId)},getAfterA:function(e,t,n){for(var i=0,o=_init.afterA.length;i<o;i++)_init.afterA[i].apply(this,arguments)},getBeforeA:function(e,t,n){for(var i=0,o=_init.beforeA.length;i<o;i++)_init.beforeA[i].apply(this,arguments)},getInnerAfterA:function(e,t,n){for(var i=0,o=_init.innerAfterA.length;i<o;i++)_init.innerAfterA[i].apply(this,arguments)},getInnerBeforeA:function(e,t,n){for(var i=0,o=_init.innerBeforeA.length;i<o;i++)_init.innerBeforeA[i].apply(this,arguments)},getCache:function(e){return caches[e.treeId]},getNodeIndex:function(e,t){if(!t)return null;for(var n=t.parentTId?t.getParentNode():data.getRoot(e),i=data.nodeChildren(e,n
13),o=0,r=i.length-1;o<=r;o++)if(i[o]===t)return o;return-1},getNextNode:function(e,t){if(t)for(var n=t.parentTId?t.getParentNode():data.getRoot(e),i=data.nodeChildren(e,n),o=0,r=i.length-1;o<=r;o++)if(i[o]===t)return o==r?null:i[o+1];return null},getNodeByParam:function(e,t,n,i){if(t&&n)for(var o=0,r=t.length;o<r;o++){var a=t[o];if(a[n]==i)return t[o];a=data.nodeChildren(e,a),a=data.getNodeByParam(e,a,n,i);if(a)return a}return null},getNodeCache:function(e,t){return t&&caches[e.treeId].nodes[data.getNodeCacheId(t)]||null},getNodePath:function(e,t){var n;return t?((n=t.parentTId?t.getParentNode().getPath():[])&&n.push(t),n):null},getNodes:function(e){return data.nodeChildren(e,data.getRoot(e))},getNodesByParam:function(e,t,n,i){if(!t||!n)return[];for(var o=[],r=0,a=t.length;r<a;r++)var s=t[r],s=(s[n]==i&&o.push(s),data.nodeChildren(e,s)),o=o.concat(data.getNodesByParam(e,s,n,i));return o},getNodesByParamFuzzy:function(e,t,n,i){if(!t||!n)return[];var o=[];i=i.toLowerCase();for(var r=0,a=t.length;r<a;r++)var s=t[r],s=("string"==typeof s[n]&&-1<t[r][n].toLowerCase().indexOf(i)&&o.push(s),data.nodeChildren(e,s)),o=o.concat(data.getNodesByParamFuzzy(e,s,n,i));return o},getNodesByFilter:function(e,t,n,i,o){if(!t)return i?null:[];for(var r=i?null:[],a=0,s=t.length;a<s;a++){var l=t[a];if(tools.apply(n,[l,o],!1)){if(i)return l;r.push(l)}l=data.nodeChildren(e,l),l=data.getNodesByFilter(e,l,n,i,o);if(i&&l)return l;r=i?l:r.concat(l)}return r},getPreNode:function(e,t){if(t)for(var n=t.parentTId?t.getParentNode():data.getRoot(e),i=data.nodeChildren(e,n
13),o=0,r=i.length;o<r;o++)if(i[o]===t)return 0==o?null:i[o-1];return null},getRoot:function(e){return e?roots[e.treeId]:null},getRoots:function(){return roots},getSetting:function(e){return settings[e]},getSettings:function(){return settings},getZTreeTools:function(e){e=this.getRoot(this.getSetting(e));return e?e.treeTools:null},initCache:function(e){for(var t=0,n=_init.caches.length;t<n;t++)_init.caches[t].apply(this,arguments)},initNode:function(e,t,n,i,o,r){for(var a=0,s=_init.nodes.length;a<s;a++)_init.nodes[a].apply(this,arguments)},initRoot:function(e){for(var t=0,n=_init.roots.length;t<n;t++)_init.roots[t].apply(this,arguments)},isSelectedNode:function(e,t){for(var n=data.getRoot(e),i=0,o=n.curSelectedList.length;i<o;i++)if(t===n.curSelectedList[i])return!0;return!1},nodeChildren:function(e,t,n){return t?(e=e.data.key.children,void 0!==n&&(t[e]=n),t[e]):null},nodeIsParent:function(e,t,n){return!!t&&(e=e.data.key.isParent,void 0!==n&&("string"==typeof n&&(n=tools.eqs(n,"true")),t[e]=n=!!n),t[e])},nodeName:function(e,t,n){e=e.data.key.name;return void 0!==n&&(t[e]=n),""+t[e]},nodeTitle:function(e,t){return""+t[""===e.data.key.title?e.data.key.name:e.data.key.title]},removeNodeCache:function(e,t){var n=data.nodeChildren(e,t);if(n)for(var i=0,o=n.length;i<o;i++)data.removeNodeCache(e,n[i]);data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=null},removeSelectedNode:function(e,t){for(var n=data.getRoot(e),i=0,o=n.curSelectedList.length;i<o;i++)t!==n.curSelectedList[i]&&data.getNodeCache(e,n.curSelectedList[i].tId)||(n.curSelectedList.splice(i,1),e.treeObj.trigger(consts.event.UNSELECTED,[e.treeId,t]),i--,o--)},setCache:function(e,t){caches[e.treeId]=t},setRoot:function(e,t){roots[e.treeId]=t},setZTreeTools:function(e,t){for(var n=0,i=_init.zTreeTools.length;n<i;n++)_init.zTreeTools[n].apply(this,arguments)},transformToArrayFormat:function(t,e){if(!e)return[];var n=[];if(tools.isArray(e))for(var i=0,o=e.length;i<o;i++)r(e[i]);else r(e);return n;function r(e){n.push(e);e=data.nodeChildren(t,e);e&&(n=n.concat(data.transformToArrayFormat(t,e)))}},transformTozTreeFormat:function(e,t){var n=e.data.simpleData.idKey,i=e.data.simpleData.pIdKey;if(!n||""==n||!t)return[];if(tools.isArray(t)){for(var o=[],r={},a=0,s=t.length;a<s;a++)r[t[a][n]]=t[a];for(a=0,s=t.length;a<s;a++){var l=r[t[a][i]];(l&&t[a][n]!=t[a][i]?data.nodeChildren(e,l)||data.nodeChildren(e,l,[]):o).push(t[a])}return o}return[t]}},event={bindEvent:function(e){for(var t=0,n=_init.bind.length;t<n;t++)_init.bind[t].apply(this,arguments)},unbindEvent:function(e){for(var t=0,n=_init.unbind.length;t<n;t++)_init.unbind[t].apply(this,arguments)},bindTree:function(e){var t={treeId:e.treeId},n=e.treeObj;e.view.txtSelectedEnable||n.bind("selectstart",handler.onSelectStart).css({"-moz-user-select":"-moz-none"}),n.bind("click",t,event.proxy),n.bind("dblclick",t,event.proxy),n.bind("mouseover",t,event.proxy),n.bind("mouseout",t,event.proxy),n.bind("mousedown",t,event.proxy),n.bind("mouseup",t,event.proxy),n.bind("contextmenu",t,event.proxy)},unbindTree:function(e){e.treeObj.unbind("selectstart",handler.onSelectStart).unbind("click",event.proxy).unbind("dblclick",event.proxy).unbind("mouseover",event.proxy).unbind("mouseout",event.proxy).unbind("mousedown",event.proxy).unbind("mouseup",event.proxy).unbind("contextmenu",event.proxy)},doProxy:function(e){for(var t=[],n=0,i=_init.proxys.length;n<i;n++){var o=_init.proxys[n].apply(this,arguments);if(t.push(o),o.stop)break}return t},proxy:function(e){var t=data.getSetting(e.data.treeId);if(!tools.uCanDo(t,e))return!0;for(var n=event.doProxy(e),i=!0,o=0,r=n.length;o<r;o++){var a=n[o];a.nodeEventCallback&&(i=a.nodeEventCallback.apply(a,[e,a.node])&&i),a.treeEventCallback&&(i=a.treeEventCallback.apply(a,[e,a.node])&&i)}return i}},handler={onSwitchNode:function(e,t){e=data.getSetting(e.data.treeId);if(t.open){if(0==tools.apply(e.callback.beforeCollapse,[e.treeId,t],!0))return!0}else if(0==tools.apply(e.callback.beforeExpand,[e.treeId,t],!0))return!0;return data.getRoot(e).expandTriggerFlag=!0,view.switchNode(e,t),!0},onClickNode:function(e,t){var n=data.getSetting(e.data.treeId),i=n.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&data.isSelectedNode(n,t)?0:n.view.autoCancelSelected&&(e.ctrlKey||e.metaKey)&&n.view.selectedMulti?2:1;return 0!=tools.apply(n.callback.beforeClick,[n.treeId,t,i],!0)&&(0==i?view.cancelPreSelectedNode(n,t):view.selectNode(n,t,2==i),n.treeObj.trigger(consts.event.CLICK,[e,n.treeId,t,i])),!0},onZTreeMousedown:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeMouseDown,[n.treeId,t],!0)&&tools.apply(n.callback.onMouseDown,[e,n.treeId,t]),!0},onZTreeMouseup:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeMouseUp,[n.treeId,t],!0)&&tools.apply(n.callback.onMouseUp,[e,n.treeId,t]),!0},onZTreeDblclick:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeDblClick,[n.treeId,t],!0)&&tools.apply(n.callback.onDblClick,[e,n.treeId,t]),!0},onZTreeContextmenu:function(e,t){var n=data.getSetting(e.data.treeId);return tools.apply(n.callback.beforeRightClick,[n.treeId,t],!0)&&tools.apply(n.callback.onRightClick,[e,n.treeId,t]),"function"!=typeof n.callback.onRightClick},onSelectStart:function(e){e=e.originalEvent.srcElement.nodeName.toLowerCase();return"input"===e||"textarea"===e}},tools={apply:function(e,t,n){return"function"==typeof e?e.apply(zt,t||[]):n},canAsync:function(e,t){var n=data.nodeChildren(e,t),i=data.nodeIsParent(e,t);return e.async.enable&&t&&i&&!(t.zAsync||n&&0<n.length)},clone:function(e){if(null===e)return null;var t,n=tools.isArray(e)?[]:{};for(t in e)n[t]=e[t]instanceof Date?new Date(e[t].getTime()):"object"==typeof e[t]?tools.clone(e[t]):e[t];return n},eqs:function(e,t){return e.toLowerCase()===t.toLowerCase()},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isElement:function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},$:function(e,t,n){return t&&"string"!=typeof t&&(n=t,t=""),"string"==typeof e?$(e,n?n.treeObj.get(0).ownerDocument:null):$("#"+e.tId+t,n?n.treeObj:null)},getMDom:function(e,t,n){if(t)for(;t&&t.id!==e.treeId;){for(var i=0,o=n.length;t.tagName&&i<o;i++)if(tools.eqs(t.tagName,n[i].tagName)&&null!==t.getAttribute(n[i].attrName))return t;t=t.parentNode}return null},getNodeMainDom:function(e){return $(e).parent("li").get(0)||$(e).parentsUntil("li").parent().get(0)},isChildOrSelf:function(e,t){return 0<$(e).closest("#"+t).length},uCanDo:function(e,t){return!0}},view={addNodes:function(e,t,n,i,o){var r,a,s=data.nodeIsParent(e,t);e.data.keep.leaf&&t&&!s||(tools.isArray(i)||(i=[i]),e.data.simpleData.enable&&(i=data.transformTozTreeFormat(e,i)),t?(s=$$(t,consts.id.SWITCH,e),r=$$(t,consts.id.ICON,e),a=$$(t,consts.id.UL,e),t.open||(view.replaceSwitchClass(t,s,consts.folder.CLOSE),view.replaceIcoClass(t,r,consts.folder.CLOSE),t.open=!1,a.css({display:"none"})),data.addNodesData(e,t,n,i),view.createNodes(e,t.level+1,i,t,n),o||view.expandCollapseParentNode(e,t,!0)):(data.addNodesData(e,data.getRoot(e),n,i),view.createNodes(e,0,i,null,n)))},appendNodes:function(e,t,n,i,o,r,a){if(!n)return[];var s=[],l=i||data.getRoot(e),c=data.nodeChildren(e,l);(!c||o>=c.length-n.length)&&(o=-1);for(var u=0,d=n.length;u<d;u++){var h=n[u],p=(r&&(p=(0===o||c.length==n.length)&&0==u,f=o<0&&u==n.length-1,data.initNode(e,t,h,i,p,f,a),data.addNodeCache(e,h)),data.nodeIsParent(e,h)),f=[],g=data.nodeChildren(e,h);g&&0<g.length&&(f=view.appendNodes(e,t+1,g,h,-1,r,a&&h.open)),a&&(view.makeDOMNodeMainBefore(s,e,h),view.makeDOMNodeLine(s,e,h),data.getBeforeA(e,h,s),view.makeDOMNodeNameBefore(s,e,h),data.getInnerBeforeA(e,h,s),view.makeDOMNodeIcon(s,e,h),data.getInnerAfterA(e,h,s),view.makeDOMNodeNameAfter(s,e,h),data.getAfterA(e,h,s),p&&h.open&&view.makeUlHtml(e,h,s,f.join("")),view.makeDOMNodeMainAfter(s,e,h),data.addCreatedNode(e,h))}return s},appendParentULDom:function(e,t){var n=[],i=$$(t,e),o=(!i.get(0)&&t.parentTId&&(view.appendParentULDom(e,t.getParentNode()),i=$$(t,e)),$$(t,consts.id.UL,e)),o=(o.get(0)&&o.remove(),data.nodeChildren(e,t)),o=view.appendNodes(e,t.level+1,o,t,-1,!1,!0);view.makeUlHtml(e,t,n,o.join("")),i.append(n.join(""))},asyncNode:function(setting,node,isSilent,callback){var i,l,isParent=data.nodeIsParent(setting,node),icoObj;if(node&&!isParent)return tools.apply(callback),!1;if(node&&node.isAjaxing)return!1;if(0==tools.apply(setting.callback.beforeAsync,[setting.treeId,node],!0))return tools.apply(callback),!1;node&&(node.isAjaxing=!0,icoObj=$$(node,consts.id.ICON,setting),icoObj.attr({style:"",class:consts.className.BUTTON+" "+consts.className.ICO_LOADING}));for(var tmpParam={},autoParam=tools.apply(setting.async.autoParam,[setting.treeId,node],setting.async.autoParam),i=0,l=autoParam.length;node&&i<l;i++){var pKey=autoParam[i].split("="),spKey=pKey;1<pKey.length&&(spKey=pKey[1],pKey=pKey[0]),tmpParam[spKey]=node[pKey]}var otherParam=tools.apply(setting.async.otherParam,[setting.treeId,node],setting.async.otherParam);if(tools.isArray(otherParam))for(i=0,l=otherParam.length;i<l;i+=2)tmpParam[otherParam[i]]=otherParam[i+1];else for(var p in otherParam)tmpParam[p]=otherParam[p];var _tmpV=data.getRoot(setting)._ver;
13return $.ajax({contentType:setting.async.contentType,cache:!1,type:setting.async.type,url:tools.apply(setting.async.url,[setting.treeId,node],setting.async.url),data:-1<setting.async.contentType.indexOf("application/json")?JSON.stringify(tmpParam):tmpParam,dataType:setting.async.dataType,headers:setting.async.headers,xhrFields:setting.async.xhrFields,success:function(msg){if(_tmpV==data.getRoot(setting)._ver){var newNodes=[];try{newNodes=msg&&0!=msg.length?"string"==typeof msg?eval("("+msg+")"):msg:[]}catch(err){newNodes=msg}node&&(node.isAjaxing=null,node.zAsync=!0),view.setNodeLineIcos(setting,node),newNodes&&""!==newNodes?(newNodes=tools.apply(setting.async.dataFilter,[setting.treeId,node,newNodes],newNodes),view.addNodes(setting,node,-1,newNodes?tools.clone(newNodes):[],!!isSilent)):view.addNodes(setting,node,-1,[],!!isSilent),setting.treeObj.trigger(consts.event.ASYNC_SUCCESS,[setting.treeId,node,msg]),tools.apply(callback)}},error:function(e,t,n){_tmpV==data.getRoot(setting)._ver&&(node&&(node.isAjaxing=null),view.setNodeLineIcos(setting,node),setting.treeObj.trigger(consts.event.ASYNC_ERROR,[setting.treeId,node,e,t,n]))}}),!0},cancelPreSelectedNode:function(e,t,n){for(var i,o=data.getRoot(e).curSelectedList,r=o.length-1;0<=r;r--)if(t===(i=o[r])||!t&&(!n||n!==i)){if($$(i,consts.id.A,e).removeClass(consts.node.CURSELECTED),t){data.removeSelectedNode(e,t);break}o.splice(r,1),e.treeObj.trigger(consts.event.UNSELECTED,[e.treeId,i])}},createNodeCallback:function(e){if(e.callback.onNodeCreated||e.view.addDiyDom)for(var t=data.getRoot(e);0<t.createdNodes.length;){var n=t.createdNodes.shift();tools.apply(e.view.addDiyDom,[e.treeId,n]),e.callback.onNodeCreated&&e.treeObj.trigger(consts.event.NODECREATED,[e.treeId,n])}},createNodes:function(e,t,n,i,o){var r,a,s,l;n&&0!=n.length&&(a=data.getRoot(e),r=!i||i.open||!!$$(data.nodeChildren(e,i)[0],e).get(0),a.createdNodes=[],a=view.appendNodes(e,t,n,i,o,!0,r),i?(t=$$(i,consts.id.UL,e)).get(0)&&(s=t):s=e.treeObj,s&&(0<=o&&(l=s.children()[o]),0<=o&&l?$(l).before(a.join("")):s.append(a.join(""))),view.createNodeCallback(e))},destroy:function(e){e&&(data.initCache(e),data.initRoot(e),event.unbindTree(e),event.unbindEvent(e),e.treeObj.empty(),delete settings[e.treeId])},expandCollapseNode:function(e,t,n,i,o){var r,a,s,l,c=data.getRoot(e);t&&(a=data.nodeChildren(e,t),s=data.nodeIsParent(e,t),c.expandTriggerFlag&&(r=o,o=function(){r&&r(),t.open?e.treeObj.trigger(consts.event.EXPAND,[e.treeId,t]):e.treeObj.trigger(consts.event.COLLAPSE,[e.treeId,t])},c.expandTriggerFlag=!1),!t.open&&s&&(!$$(t,consts.id.UL,e).get(0)||a&&0<a.length&&!$$(a[0],e).get(0))&&(view.appendParentULDom(e,t),view.createNodeCallback(e)),t.open!=n)&&(c=$$(t,consts.id.UL,e),n=$$(t,consts.id.SWITCH,e),l=$$(t,consts.id.ICON,e),s)?(t.open=!t.open,t.iconOpen&&t.iconClose&&l.attr("style",view.makeNodeIcoStyle(e,t)),t.open?(view.replaceSwitchClass(t,n,consts.folder.OPEN),view.replaceIcoClass(t,l,consts.folder.OPEN),0!=i&&""!=e.view.expandSpeed&&a&&0<a.length?c.slideDown(e.view.expandSpeed,o):(c.show(),tools.apply(o,[]))):(view.replaceSwitchClass(t,n,consts.folder.CLOSE),view.replaceIcoClass(t,l,consts.folder.CLOSE),0!=i&&""!=e.view.expandSpeed&&a&&0<a.length?c.slideUp(e.view.expandSpeed,o):(c.hide(),tools.apply(o,[])))):tools.apply(o,[])},expandCollapseParentNode:function(e,t,n,i,o){t&&(t.parentTId?(view.expandCollapseNode(e,t,n,i),t.parentTId&&view.expandCollapseParentNode(e,t.getParentNode(),n,i,o)):view.expandCollapseNode(e,t,n,i,o))},expandCollapseSonNode:function(e,t,n,i,o){var r=data.getRoot(e),a=t?data.nodeChildren(e,t):data.nodeChildren(e,r),s=!t&&i,r=data.getRoot(e).expandTriggerFlag;if(data.getRoot(e).expandTriggerFlag=!1,a)for(var l=0,c=a.length;l<c;l++)a[l]&&view.expandCollapseSonNode(e,a[l],n,s);data.getRoot(e).expandTriggerFlag=r,view.expandCollapseNode(e,t,n,i,o)},isSelectedNode:function(e,t){if(t)for(var n=data.getRoot(e).curSelectedList,i=n.length-1;0<=i;i--)if(t===n[i])return!0;return!1},makeDOMNodeIcon:function(e,t,n){var i=data.nodeName(t,n),i=t.view.nameIsHTML?i:i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");e.push("<span id='",n.tId,consts.id.ICON,"' title='' treeNode",consts.id.ICON," class='",view.makeNodeIcoClass(t,n),"' style='",view.makeNodeIcoStyle(t,n),"'></span><span id='",n.tId,consts.id.SPAN,"' class='",consts.className.NAME,"'>",i,"</span>")},makeDOMNodeLine:function(e,t,n){e.push("<span id='",n.tId,consts.id.SWITCH,"' title='' class='",view.makeNodeLineClass(t,n),"' treeNode",consts.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(e,t,n){e.push("</li>")},makeDOMNodeMainBefore:function(e,t,n){e.push("<li id='",n.tId,"' class='",consts.className.LEVEL,n.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(e,t,n){e.push("</a>")},makeDOMNodeNameBefore:function(e,t,n){var i,o=data.nodeTitle(t,n),r=view.makeNodeUrl(t,n),a=view.makeNodeFontCss(t,n),s=[];for(i in a)s.push(i,":",a[i],";");e.push("<a id='",n.tId,consts.id.A,"' class='",consts.className.LEVEL,n.level,"' treeNode",consts.id.A,n.click?' onclick="'+n.click+'"':""," ",null!=r&&0<r.length?"href='"+r+"'":""," target='",view.makeNodeTarget(n),"' style='",s.join(""),"'"),tools.apply(t.view.showTitle,[t.treeId,n],t.view.showTitle)&&o&&e.push("title='",o.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'"),e.push(">")},makeNodeFontCss:function(e,t){t=tools.apply(e.view.fontCss,[e.treeId,t],e.view.fontCss);return t&&"function"!=typeof t?t:{}},makeNodeIcoClass:function(e,t){var n=["ico"];return t.isAjaxing||(e=data.nodeIsParent(e,t),n[0]=(t.iconSkin?t.iconSkin+"_":"")+n[0],n.push(e?t.open?consts.folder.OPEN:consts.folder.CLOSE:consts.folder.DOCU)),consts.className.BUTTON+" "+n.join("_")},makeNodeIcoStyle:function(e,t){var n,i=[];return t.isAjaxing||((n=data.nodeIsParent(e,t)&&t.iconOpen&&t.iconClose?t.open?t.iconOpen:t.
13iconClose:t[e.data.key.icon])&&i.push("background:url(",n,") 0 0 no-repeat;"),0!=e.view.showIcon&&tools.apply(e.view.showIcon,[e.treeId,t],!0))||i.push("width:0px;height:0px;"),i.join("")},makeNodeLineClass:function(e,t){var n=[];return e.view.showLine?0==t.level&&t.isFirstNode&&t.isLastNode?n.push(consts.line.ROOT):0==t.level&&t.isFirstNode?n.push(consts.line.ROOTS):t.isLastNode?n.push(consts.line.BOTTOM):n.push(consts.line.CENTER):n.push(consts.line.NOLINE),data.nodeIsParent(e,t)?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU),view.makeNodeLineClassEx(t)+n.join("_")},makeNodeLineClassEx:function(e){return consts.className.BUTTON+" "+consts.className.LEVEL+e.level+" "+consts.className.SWITCH+" "},makeNodeTarget:function(e){return e.target||"_blank"},makeNodeUrl:function(e,t){e=e.data.key.url;return t[e]||null},makeUlHtml:function(e,t,n,i){n.push("<ul id='",t.tId,consts.id.UL,"' class='",consts.className.LEVEL,t.level," ",view.makeUlLineClass(e,t),"' style='display:",t.open?"block":"none","'>"),n.push(i),n.push("</ul>")},makeUlLineClass:function(e,t){return e.view.showLine&&!t.isLastNode?consts.line.LINE:""},removeChildNodes:function(e,t){if(t){var n=data.nodeChildren(e,t);if(n){for(var i,o,r=0,a=n.length;r<a;r++)data.removeNodeCache(e,n[r]);data.removeSelectedNode(e),delete t[e.data.key.children],e.data.keep.parent?$$(t,consts.id.UL,e).empty():(data.nodeIsParent(e,t,!1),t.open=!1,i=$$(t,consts.id.SWITCH,e),o=$$(t,consts.id.ICON,e),view.replaceSwitchClass(t,i,consts.folder.DOCU),view.replaceIcoClass(t,o,consts.folder.DOCU),$$(t,consts.id.UL,e).remove())}}},scrollIntoView:function(e,t){var n;t&&("undefined"==typeof Element?(e=e.treeObj.get(0).getBoundingClientRect(),((n=t.getBoundingClientRect()).top<e.top||n.bottom>e.bottom||n.right>e.right||n.left<e.left)&&t.scrollIntoView()):(Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(n){function e(e,t){return{start:e,length:t,end:e+t}}function t(e,t){return!1===n||t.start<e.end&&e.start<t.end?Math.max(e.end-t.length,Math.min(t.start,e.start)):(e.start+e.end-t.length)/2}function o(n,i){return{x:n,y:i,translate:function(e,t){return o(n+e,i+t)}}}function i(e,t){for(;e;)t=t.translate(e.offsetLeft,e.offsetTop),e=e.offsetParent;return t}for(var r,a=i(this,o(0,0)),s=o(this.offsetWidth,this.offsetHeight),l=this.parentNode;l instanceof HTMLElement;)r=i(l,o(l.clientLeft,l.clientTop)),l.scrollLeft=t(e(a.x-r.x,s.x),e(l.scrollLeft,l.clientWidth)),l.scrollTop=t(e(a.y-r.y,s.y),e(l.scrollTop,l.clientHeight)),a=a.translate(-l.scrollLeft,-l.scrollTop),l=l.parentNode}),t.scrollIntoViewIfNeeded()))},setFirstNode:function(e,t){e=data.nodeChildren(e,t);0<e.length&&(e[0].isFirstNode=!0)},setLastNode:function(e,t){e=data.nodeChildren(e,t);0<e.length&&(e[e.length-1].isLastNode=!0)},removeNode:function(e,t){var n=data.getRoot(e),i=t.parentTId?t.getParentNode():n;if(t.isFirstNode=!1,t.isLastNode=!1,t.getPreNode=function(){return null},t.getNextNode=function(){return null},data.getNodeCache(e,t.tId)){$$(t,e).remove(),data.removeNodeCache(e,t),data.removeSelectedNode(e,t);for(var o=data.nodeChildren(e,i),r=0,a=o.length;r<a;r++)if(o[r].tId==t.tId){o.splice(r,1);break}view.setFirstNode(e,i),view.setLastNode(e,i);var s,l,c,u=o.length;e.data.keep.parent||0!=u?e.view.showLine&&0<u&&(u=o[u-1],s=$$(u,consts.id.UL,e),l=$$(u,consts.id.SWITCH,e),c=$$(u,consts.id.ICON,e),i==n?1==o.length?view.replaceSwitchClass(u,l,consts.line.ROOT):(n=$$(o[0],consts.id.SWITCH,e),view.replaceSwitchClass(o[0],n,consts.line.ROOTS),view.replaceSwitchClass(u,l,consts.line.BOTTOM)):view.replaceSwitchClass(u,l,consts.line.BOTTOM),s.removeClass(consts.line.LINE)):(data.nodeIsParent(e,i,!1),i.open=!1,delete i[e.data.key.children],s=$$(i,consts.id.UL,e),l=$$(i,consts.id.SWITCH,e),c=$$(i,consts.id.ICON,e),view.replaceSwitchClass(i,l,consts.folder.DOCU),view.replaceIcoClass(i,c,consts.folder.DOCU),s.css("display","none"))}},replaceIcoClass:function(e,t,n){if(t&&!e.isAjaxing){e=t.attr("class");if(null!=e){var i=e.split("_");switch(n){case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:i[i.length-1]=n}t.attr("class",i.join("_"))}}},replaceSwitchClass:function(e,t,n){if(t){var i=t.attr("class");if(null!=i){var o=i.split("_");switch(n){case consts.line.ROOT:case consts.line.ROOTS:case consts.line.CENTER:case consts.line.BOTTOM:case consts.line.NOLINE:o[0]=view.makeNodeLineClassEx(e)+n;break;case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:o[1]=n}t.attr("class",o.join("_")),n!==consts.folder.DOCU?t.removeAttr("disabled"):t.attr("disabled","disabled")}}},selectNode:function(e,t,n){n||view.cancelPreSelectedNode(e,null,t),$$(t,consts.id.A,e).addClass(consts.node.CURSELECTED),data.addSelectedNode(e,t),e.treeObj.trigger(consts.event.SELECTED,[e.treeId,t])},setNodeFontCss:function(e,t){var n=$$(t,consts.id.A,e),e=view.makeNodeFontCss(e,t);e&&n.css(e)},setNodeLineIcos:function(e,t){var n,i,o,r;t&&(n=$$(t,consts.id.SWITCH,e),i=$$(t,consts.id.UL,e),o=$$(t,consts.id.ICON,e),0==(r=view.makeUlLineClass(e,t)).length?i.removeClass(consts.line.LINE):i.addClass(r),n.attr("class",view.makeNodeLineClass(e,t)),data.nodeIsParent(e,t)?n.removeAttr("disabled"):n.attr("disabled","disabled"),o.removeAttr("style"),o.attr("style",view.makeNodeIcoStyle(e,t)),o.attr("class",view.makeNodeIcoClass(e,t)))},setNodeName:function(e,t){var n=data.nodeTitle(e,t),i=$$(t,consts.id.SPAN,e);i.empty(),e.view.nameIsHTML?i.html(data.nodeName(e,t)):i.text(data.nodeName(e,t)),tools.apply(e.view.showTitle,[e.treeId,t],e.view.showTitle)&&$$(t,consts.id.A,e).attr("title",n||"")},setNodeTarget:function(e,t){$$(t,consts.id.A,e).attr("target",view.makeNodeTarget(t))},setNodeUrl:function(e,t){var n=$$(t,consts.id.A,e),e=view.makeNodeUrl(e,t);null==e||0==e.length?n.removeAttr("href"):n.attr("href",e)},switchNode:function(e,t){t.open||!tools.canAsync(e,t)?view.expandCollapseNode(e,t,!t.open):e.async.enable?view.asyncNode(e,t)||view.expandCollapseNode(e,t,!t.open):t&&view.expandCollapseNode(e,t,!t.open)}},zt=($.fn.zTree={consts:_consts,_z:{tools:tools,view:view,event:event,data:data},getZTreeObj:function(e){e=data.getZTreeTools(e);return e||null},destroy:function(e){if(e&&0<e.length)view.destroy(data.getSetting(e));else for(var t in settings)view.destroy(settings[t])},init:function(e,t,n){var l=tools.clone(_setting),t=($.extend(!0,l,t),l.treeId=e.attr("id"),l.treeObj=e,l.treeObj.empty(),settings[l.treeId]=l,void 0===document.body.style.maxHeight&&(l.view.expandSpeed=""),data.initRoot(l),data.getRoot(l)),r=(n=n?tools.clone(tools.isArray(n)?n:[n]):[],l.data.simpleData.enable?data.nodeChildren(l,t,data.transformTozTreeFormat(l,n)):data.nodeChildren(l,t,n
13),data.initCache(l),event.unbindTree(l),event.bindTree(l),event.unbindEvent(l),event.bindEvent(l),{setting:l,addNodes:function(e,t,n,i){e=e||null;var o,r=data.nodeIsParent(l,e);return(!e||r||!l.data.keep.leaf)&&(r=parseInt(t,10),t=isNaN(r)?(i=!!n,n=t,-1):r,n)?(o=tools.clone(tools.isArray(n)?n:[n]),tools.canAsync(l,e)?view.asyncNode(l,e,i,a):a(),o):null;function a(){view.addNodes(l,e,t,o,1==i)}},cancelSelectedNode:function(e){view.cancelPreSelectedNode(l,e)},destroy:function(){view.destroy(l)},expandAll:function(e){return view.expandCollapseSonNode(l,null,e=!!e,!0),e},expandNode:function(t,e,n,i,o){return t&&data.nodeIsParent(l,t)&&(!0!==e&&!1!==e&&(e=!t.open),!(o=!!o)||!e||0!=tools.apply(l.callback.beforeExpand,[l.treeId,t],!0))&&(!o||e||0!=tools.apply(l.callback.beforeCollapse,[l.treeId,t],!0))&&(e&&t.parentTId&&view.expandCollapseParentNode(l,t.getParentNode(),e,!1),e!==t.open||n)?(data.getRoot(l).expandTriggerFlag=o,!tools.canAsync(l,t)&&n?view.expandCollapseSonNode(l,t,e,!0,r):(t.open=!e,view.switchNode(this.setting,t),r()),e):null;function r(){var e=$$(t,l).get(0);e&&!1!==i&&view.scrollIntoView(l,e)}},getNodes:function(){return data.getNodes(l)},getNodeByParam:function(e,t,n){return e?data.getNodeByParam(l,n?data.nodeChildren(l,n):data.getNodes(l),e,t):null},getNodeByTId:function(e){return data.getNodeCache(l,e)},getNodesByParam:function(e,t,n){return e?data.getNodesByParam(l,n?data.nodeChildren(l,n):data.getNodes(l),e,t):null},getNodesByParamFuzzy:function(e,t,n){return e?data.getNodesByParamFuzzy(l,n?data.nodeChildren(l,n):data.getNodes(l),e,t):null},getNodesByFilter:function(e,t,n,i){return t=!!t,e&&"function"==typeof e?data.getNodesByFilter(l,n?data.nodeChildren(l,n):data.getNodes(l),e,t,i):t?null:[]},getNodeIndex:function(e){if(!e)return null;for(var t=e.parentTId?e.getParentNode():data.getRoot(l),n=data.nodeChildren(l,t),i=0,o=n.length;i<o;i++)if(n[i]==e)return i;return-1},getSelectedNodes:function(){for(var e=[],t=data.getRoot(l).curSelectedList,n=0,i=t.length;n<i;n++)e.push(t[n]);return e},isSelectedNode:function(e){return data.isSelectedNode(l,e)},reAsyncChildNodesPromise:function(n,i,o){return new Promise(function(e,t){try{r.reAsyncChildNodes(n,i,o,function(){e(n)})}catch(e){t(e)}})},reAsyncChildNodes:function(e,t,n,i){if(this.setting.async.enable){var o=!e;if(o&&(e=data.getRoot(l)),"refresh"==t){for(var r=data.nodeChildren(l,e),a=0,s=r?r.length:0;a<s;a++)data.removeNodeCache(l,r[a]);data.removeSelectedNode(l),data.nodeChildren(l,e,[]),(o?this.setting.treeObj:$$(e,consts.id.UL,l)).empty()}view.asyncNode(this.setting,o?null:e,!!n,i)}},refresh:function(){this.setting.treeObj.empty();var e=data.getRoot(l),t=data.nodeChildren(l,e);data.initRoot(l),data.nodeChildren(l,e,t),data.initCache(l),view.createNodes(l,0,data.nodeChildren(l,e),null,-1)},removeChildNodes:function(e){var t;return e&&(t=data.nodeChildren(l,e),view.removeChildNodes(l,e),t)||null},removeNode:function(e,t){!e||(t=!!t)&&0==tools.apply(l.callback.beforeRemove,[l.treeId,e],!0)||(view.removeNode(l,e),t&&this.setting.treeObj.trigger(consts.event.REMOVE,[l.treeId,e]))},selectNode:function(t,e,n){if(t&&tools.uCanDo(l)){if(e=l.view.selectedMulti&&e,t.parentTId)view.expandCollapseParentNode(l,t.getParentNode(),!0,!1,function(){var e;n||(e=$$(t,l).get(0),view.scrollIntoView(l,e))});else if(!n)try{$$(t,l).focus().blur()}catch(e){}view.selectNode(l,t,e)}},transformTozTreeNodes:function(e){return data.transformTozTreeFormat(l,e)},transformToArray:function(e){return data.transformToArrayFormat(l,e)}
13,updateNode:function(e,t){e&&$$(e,l).get(0)&&tools.uCanDo(l)&&(view.setNodeName(l,e),view.setNodeTarget(l,e),view.setNodeUrl(l,e),view.setNodeLineIcos(l,e),view.setNodeFontCss(l,e))}}),e=(t.treeTools=r,data.setZTreeTools(l,r),data.nodeChildren(l,t));return e&&0<e.length?view.createNodes(l,0,e,null,-1):l.async.enable&&l.async.url&&""!==l.async.url&&view.asyncNode(l),r}},$.fn.zTree),$$=tools.$,consts=zt.consts}(jQuery),(e=>{var t={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},n={check:{enable:!1,autoCheckTrigger:!1,chkStyle:t.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:t.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}},s=function(e,t){var n,i;return!0!==t.chkDisabled&&(n=p.getSetting(e.data.treeId),0!=u.apply(n.callback.beforeCheck,[n.treeId,t],!0)&&(i=p.nodeChecked(n,t),p.nodeChecked(n,t,!i),h.checkNodeRelation(n,t),i=f(t,d.id.CHECK,n),h.setChkClass(n,i,t),h.repairParentChkClassWithSelf(n,t),n.treeObj.trigger(d.event.CHECK,[e,n.treeId,t])),!0)},l=function(e,t){var n;return!0!==t.chkDisabled&&(e=p.getSetting(e.data.treeId),n=f(t,d.id.CHECK,e),t.check_Focus=!0,h.setChkClass(e,n,t),!0)},c=function(e,t){var n;return!0!==t.chkDisabled&&(e=p.getSetting(e.data.treeId),n=f(t,d.id.CHECK,e),t.check_Focus=!1,h.setChkClass(e,n,t),!0)},i={tools:{},view:{checkNodeRelation:function(e,t){var n=d.radio,i=p.nodeChecked(e,t);if(e.check.chkStyle==n.STYLE){var o=p.getRadioCheckedList(e);if(i)if(e.check.radioType==n.TYPE_ALL){for(s=o.length-1;0<=s;s--){var r=o[s];p.nodeChecked(e,r)&&r!=t&&(p.nodeChecked(e,r,!1),o.splice(s,1),h.setChkClass(e,f(r,d.id.CHECK,e),r),r.parentTId!=t.parentTId)&&h.repairParentChkClassWithSelf(e,r)}o.push(t)}else for(var a=t.parentTId?t.getParentNode():p.getRoot(e),s=0,l=(c=p.nodeChildren(e,a)).length;s<l;s++)r=c[s],p.nodeChecked(e,r)&&r!=t&&(p.nodeChecked(e,r,!1),h.setChkClass(e,f(r,d.id.CHECK,e),r));else if(e.check.radioType==n.TYPE_ALL)for(s=0,l=o.length;s<l;s++)if(t==o[s]){o.splice(s,1);break}}else{var c=p.nodeChildren(e,t);i&&(!c||0==c.length||-1<e.check.chkboxType.Y.indexOf("s"))&&h.setSonNodeCheckBox(e,t,!0),i||c&&0!=c.length&&!(-1<e.check.chkboxType.N.indexOf("s"))||h.setSonNodeCheckBox(e,t,!1),i&&-1<e.check.chkboxType.Y.indexOf("p")&&h.setParentNodeCheckBox(e,t,!0),!i&&-1<e.check.chkboxType.N.indexOf("p")&&h.setParentNodeCheckBox(e,t,!1)}},makeChkClass:function(e,t){var n=d.checkbox,i=d.radio,o="",r=p.nodeChecked(e,t),o=!0===t.chkDisabled?n.DISABLED:t.halfCheck?n.PART:e.check.chkStyle!=i.STYLE&&r?2===t.check_Child_State||-1===t.check_Child_State?n.FULL:n.PART:t.check_Child_State<1?n.FULL:n.PART,i=e.check.chkStyle+"_"+(r?n.TRUE:n.FALSE)+"_"+o,i=t.check_Focus&&!0!==t.chkDisabled?i+"_"+n.FOCUS:i;return d.className.BUTTON+" "+n.DEFAULT+" "+i},repairAllChk:function(e,t){if(e.check.enable&&e.check.chkStyle===d.checkbox.STYLE)for(var n=p.getRoot(e),i=p.nodeChildren(e,n
13),o=0,r=i.length;o<r;o++){var a=i[o];!0!==a.nocheck&&!0!==a.chkDisabled&&p.nodeChecked(e,a,t),h.setSonNodeCheckBox(e,a,t)}},repairChkClass:function(e,t){var n;t&&(p.makeChkFlag(e,t),!0!==t.nocheck)&&(n=f(t,d.id.CHECK,e),h.setChkClass(e,n,t))},repairParentChkClass:function(e,t){t&&t.parentTId&&(t=t.getParentNode(),h.repairChkClass(e,t),h.repairParentChkClass(e,t))},repairParentChkClassWithSelf:function(e,t){var n;t&&((n=p.nodeChildren(e,t))&&0<n.length?h.repairParentChkClass(e,n[0]):h.repairParentChkClass(e,t))},repairSonChkDisabled:function(e,t,n,i){if(t){t.chkDisabled!=n&&(t.chkDisabled=n),h.repairChkClass(e,t);var o=p.nodeChildren(e,t);if(o&&i)for(var r=0,a=o.length;r<a;r++){var s=o[r];h.repairSonChkDisabled(e,s,n,i)}}},repairParentChkDisabled:function(e,t,n,i){t&&(t.chkDisabled!=n&&i&&(t.chkDisabled=n),h.repairChkClass(e,t),h.repairParentChkDisabled(e,t.getParentNode(),n,i))},setChkClass:function(e,t,n){t&&(!0===n.nocheck?t.hide():t.show(),t.attr("class",h.makeChkClass(e,n)))},setParentNodeCheckBox:function(e,t,n,i){var o=f(t,d.id.CHECK,e);if(i=i||t,p.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled&&(p.nodeChecked(e,t,n),h.setChkClass(e,o,t),e.check.autoCheckTrigger)&&t!=i&&e.treeObj.trigger(d.event.CHECK,[null,e.treeId,t]),t.parentTId){var r=!0;if(!n)for(var a=p.nodeChildren(e,t.getParentNode()),s=0,l=a.length;s<l;s++){var c=a[s],u=p.nodeChecked(e,c);if(!0!==c.nocheck&&!0!==c.chkDisabled&&u||(!0===c.nocheck||!0===c.chkDisabled)&&0<c.check_Child_State){r=!1;break}}r&&h.setParentNodeCheckBox(e,t.getParentNode(),n,i)}},setSonNodeCheckBox:function(e,t,n,i){if(t){var o=f(t,d.id.CHECK,e),r=(i=i||t,!1),a=p.nodeChildren(e,t);if(a)for(var s=0,l=a.length;s<l;s++){var c=a[s];h.setSonNodeCheckBox(e,c,n,i),!0===c.chkDisabled&&(r=!0)}t!=p.getRoot(e)&&!0!==t.chkDisabled&&(r&&!0!==t.nocheck&&p.makeChkFlag(e,t),!0!==t.nocheck&&!0!==t.chkDisabled?(p.nodeChecked(e,t,n),r||(t.check_Child_State=a&&0<a.length?n?2:0:-1)):t.check_Child_State=-1,h.setChkClass(e,o,t),e.check.autoCheckTrigger)&&t!=i&&!0!==t.nocheck&&!0!==t.chkDisabled&&e.treeObj.trigger(d.event.CHECK,[null,e.treeId,t])}}},event:{},data:{getRadioCheckedList:function(e){for(var t=p.getRoot(e).radioCheckedList,n=0,i=t.length;n<i;n++)p.getNodeCache(e,t[n].tId)||(t.splice(n,1),n--,i--);return t},getCheckStatus:function(e,t){var n;return!e.check.enable||t.nocheck||t.chkDisabled?null:{checked:n=p.nodeChecked(e,t),half:t.halfCheck||(e.check.chkStyle==d.radio.STYLE?2===t.check_Child_State:n?-1<t.check_Child_State&&t.check_Child_State<2:0<t.check_Child_State)}},getTreeCheckedNodes:function(e,t,n,i){if(!t)return[];var o=n&&e.check.chkStyle==d.radio.STYLE&&e.check.radioType==d.radio.TYPE_ALL;i=i||[];for(var r=0,a=t.length;r<a;r++){var s=t[r],l=p.nodeChildren(e,s),c=p.nodeChecked(e,s);if(!0!==s.nocheck&&!0!==s.chkDisabled&&c==n&&(i.push(s),o))break;if(p.getTreeCheckedNodes(e,l,n,i),o&&0<i.length)break}return i},getTreeChangeCheckedNodes:function(e,t,n){if(!t)return[];n=n||[];for(var i=0,o=t.length;i<o;i++){var r=t[i],a=p.nodeChildren(e,r),s=p.nodeChecked(e,r);!0!==r.nocheck&&!0!==r.chkDisabled&&s!=r.checkedOld&&n.push(r),p.getTreeChangeCheckedNodes(e,a,n)}return n},makeChkFlag:function(e,t){if(t){var n=-1,i=p.nodeChildren(e,t);if(i)for(var o=0,r=i.length;o<r;o++){var a=i[o],s=p.nodeChecked(e,a),l=-1;if(e.check.chkStyle==d.radio.STYLE){if(2==(l=!0===a.nocheck||!0===a.chkDisabled?a.check_Child_State:!0===a.halfCheck||s||0<a.check_Child_State?2:0)){n=2;break}0==l&&(n=0)}else if(e.check.chkStyle==d.checkbox.STYLE){if(1===(l=!0===a.nocheck||!0===a.chkDisabled?a.check_Child_State:!0===a.halfCheck?1:s?-1===a.check_Child_State||2===a.check_Child_State?2:1:0<a.check_Child_State?1:0)){n=1;break}if(2===l&&-1<n&&0<o&&l!==n){n=1;break}if(2===n&&-1<l&&l<2){n=1;break}-1<l&&(n=l)}}t.check_Child_State=n}}}};e.extend(!0,e.fn.zTree.consts,t),e.extend(!0,e.fn.zTree._z,i);var u=(t=e.fn.zTree)._z.tools,d=t.consts,h=t._z.view,p=t._z.data,f=(t._z.event,u.$),r=(p.nodeChecked=function(e,t,n){return!!t&&(e=e.data.key.checked,void 0!==n&&("string"==typeof n&&(n=u.eqs(n,"true")),t[e]=n=!!n),t[e])},p.exSetting(n),p.addInitBind(function(o){var e=o.treeObj,t=d.event;e.bind(t.CHECK,function(e,t,n,i){e.srcEvent=t,u.apply(o.callback.onCheck,[e,n,i])})}),p.addInitUnBind(function(e){var e=e.treeObj,t=d.event;e.unbind(t.CHECK)}),p.addInitCache(function(e){}),p.addInitNode(function(e,t,n,i,o,r,a){var s;n&&(s=p.nodeChecked(e,n),s=p.nodeChecked(e,n,s),n.checkedOld=s,"string"==typeof n.nocheck&&(n.noc
13heck=u.eqs(n.nocheck,"true")),n.nocheck=!!n.nocheck||e.check.nocheckInherit&&i&&!!i.nocheck,"string"==typeof n.chkDisabled&&(n.chkDisabled=u.eqs(n.chkDisabled,"true")),n.chkDisabled=!!n.chkDisabled||e.check.chkDisabledInherit&&i&&!!i.chkDisabled,"string"==typeof n.halfCheck&&(n.halfCheck=u.eqs(n.halfCheck,"true")),n.halfCheck=!!n.halfCheck,n.check_Child_State=-1,n.check_Focus=!1,n.getCheckStatus=function(){return p.getCheckStatus(e,n)},e.check.chkStyle==d.radio.STYLE)&&e.check.radioType==d.radio.TYPE_ALL&&s&&p.getRoot(e).radioCheckedList.push(n)}),p.addInitProxy(function(e){var t=e.target,n=p.getSetting(e.data.treeId),i="",o=null,r="",a=null;if(u.eqs(e.type,"mouseover")?n.check.enable&&u.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+d.id.CHECK)&&(i=u.getNodeMainDom(t).id,r="mouseoverCheck"):u.eqs(e.type,"mouseout")?n.check.enable&&u.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+d.id.CHECK)&&(i=u.getNodeMainDom(t).id,r="mouseoutCheck"):u.eqs(e.type,"click")&&n.check.enable&&u.eqs(t.tagName,"span")&&null!==t.getAttribute("treeNode"+d.id.CHECK)&&(i=u.getNodeMainDom(t).id,r="checkNode"),0<i.length)switch(o=p.getNodeCache(n,i),r){case"checkNode":a=s;break;case"mouseoverCheck":a=l;break;case"mouseoutCheck":a=c}return{stop:"checkNode"===r,node:o,nodeEventType:r,nodeEventCallback:a,treeEventType:"",treeEventCallback:null}},!0),p.addInitRoot(function(e){p.getRoot(e).radioCheckedList=[]}),p.addBeforeA(function(e,t,n){e.check.enable&&(p.makeChkFlag(e,t),n.push("<span ID='",t.tId,d.id.CHECK,"' class='",h.makeChkClass(e,t),"' treeNode",d.id.CHECK,!0===t.nocheck?" style='display:none;'":"","></span>"))}),p.addZTreeTools(function(r,i){i.checkNode=function(e,t,n,i){var o=p.nodeChecked(r,e);!0===e.chkDisabled||(i=!!i,o===(t=!0!==t&&!1!==t?!o:t)&&!n)||i&&0==u.apply(this.setting.callback.beforeCheck,[this.setting.treeId,e],!0)||u.uCanDo(this.setting)&&this.setting.check.enable&&!0!==e.nocheck&&(p.nodeChecked(r,e,t),o=f(e,d.id.CHECK,this.setting),!n&&this.setting.check.chkStyle!==d.radio.STYLE||h.checkNodeRelation(this.setting,e),h.setChkClass(this.setting,o,e),h.repairParentChkClassWithSelf(this.setting,e),i)&&this.setting.treeObj.trigger(d.event.CHECK,[null,this.setting.treeId,e])},i.checkAllNodes=function(e){h.repairAllChk(this.setting,!!e)},i.getCheckedNodes=function(e){var e=!1!==e,t=p.nodeChildren(r,p.getRoot(this.setting));return p.getTreeCheckedNodes(this.setting,t,e)},i.getChangeCheckedNodes=function(){var e=p.nodeChildren(r,p.getRoot(this.setting));return p.getTreeChangeCheckedNodes(this.setting,e)},i.setChkDisabled=function(e,t,n,i){n=!!n,h.repairSonChkDisabled(this.setting,e,t=!!t,i=!!i),h.repairParentChkDisabled(this.setting,e.getParentNode(),t,n)};var o=i.updateNode;i.updateNode=function(e,t){var n;o&&o.apply(i,arguments),e&&this.setting.check.enable&&f(e,this.setting).get(0)&&u.uCanDo(this.setting)&&(n=f(e,d.id.CHECK,this.setting),1!=t&&this.setting.check.chkStyle!==d.radio.STYLE||h.checkNodeRelation(this.setting,e),h.setChkClass(this.setting,n,e),h.repairParentChkClassWithSelf(this.setting,e))}}),h.createNodes),o=(h.createNodes=function(e,t,n,i,o){r&&r.apply(h,arguments),n&&h.repairParentChkClassWithSelf(e,i)},h.removeNode),g=(h.removeNode=function(e,t){var n=t.getParentNode();o&&o.apply(h,arguments),t&&n&&(h.repairChkClass(e,n),h.repairParentChkClass(e,n))},h.appendNodes);h.appendNodes=function(e,t,n,i,o,r,a){var s="";return g&&(s=g.apply(h,arguments)),i&&p.makeChkFlag(e,i),s}})(jQuery),(K=>{var G={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},c={onHoverOverNode:function(e,t){var n=Z.getSetting(e.data.treeId),i=Z.getRoot(n);i.curHoverNode!=t&&c.onHoverOutNode(e),J.addHoverDom(n,i.curHoverNode=t)},onHoverOutNode:function(e,t){var e=Z.getSetting(e.data.treeId),n=Z.getRoot(e);n.curHoverNode&&!Z.isSelectedNode(e,n.curHoverNode)&&(J.removeTreeDom(e,n.curHoverNode),n.curHoverNode=null)},onMousedownNode:function(e,t){var n,i,E=Z.getSetting(e.data.treeId),T=Z.getRoot(E),$=Z.getRoots();if(2!=e.button&&E.edit.enable&&(E.edit.drag.isCopy||E.edit.drag.isMove)){var o=e.target,r=Z.getRoot(E).curSelectedList,D=[];if(Z.isSelectedNode(E,t))for(n=0,i=r.length;n<i;n++){if(r[n].editNameFlag&&Q.eqs(o.tagName,"input")&&null!==o.getAttribute("treeNode"+X.id.INPUT))return!0;
13if(D.push(r[n]),D[0].parentTId!==r[n].parentTId){D=[t];break}}else D=[t];J.editNodeBlur=!0,J.cancelCurEditNode(E);var L,N,I,M,R,O=K(E.treeObj.get(0).ownerDocument),P=K(E.treeObj.get(0).ownerDocument.body),B=!1,j=E,l=E,H=null,F=null,z=null,W=X.move.TYPE_INNER,U=e.clientX,q=e.clientY,V=(new Date).getTime();Q.uCanDo(E)&&O.bind("mousemove",c),O.bind("mouseup",Y),O.bind("selectstart",u)}return!0;function c(e){if(0==T.dragFlag&&Math.abs(U-e.clientX)<E.edit.drag.minMoveSize&&Math.abs(q-e.clientY)<E.edit.drag.minMoveSize)return!0;var t,n;if(P.css("cursor","pointer"),0==T.dragFlag){if(0==Q.apply(E.callback.beforeDrag,[E.treeId,D],!0))return Y(e),!0;for(s=0,l=D.length;s<l;s++)0==s&&(T.dragNodeShowBefore=[]),t=D[s],Z.nodeIsParent(E,t)&&t.open?(J.expandCollapseNode(E,t,!t.open),T.dragNodeShowBefore[t.tId]=!0):T.dragNodeShowBefore[t.tId]=!1;T.dragFlag=1,$.showHoverDom=!1,Q.showIfameMask(E,!0);var i=!0,o=-1;if(1<D.length)for(var r=D[0].parentTId?Z.nodeChildren(E,D[0].getParentNode()):Z.getNodes(E),a=[],s=0,l=r.length;s<l;s++)if(void 0!==T.dragNodeShowBefore[r[s].tId]&&(i&&-1<o&&o+1!==s&&(i=!1),a.push(r[s]),o=s),D.length===a.length){D=a;break}for(i&&(M=D[0].getPreNode(),R=D[D.length-1].getNextNode()),L=ee("<ul class='zTreeDragUL'></ul>",E),s=0,l=D.length;s<l;s++)(t=D[s]).editNameFlag=!1,J.selectNode(E,t,0<s),J.removeTreeDom(E,t),s>E.edit.drag.maxShowNodeNum-1||((n=ee("<li id='"+t.tId+"_tmp'></li>",E)).append(ee(t,X.id.A,E).clone()),n.css("padding","0"),n.children("#"+t.tId+X.id.A).removeClass(X.node.CURSELECTED),L.append(n),s==E.edit.drag.maxShowNodeNum-1&&(n=ee("<li id='"+t.tId+"_moretmp'><a>  ...  </a></li>",E),L.append(n)));L.attr("id",D[0].tId+X.id.UL+"_tmp"),L.addClass(E.treeObj.attr("class")),L.appendTo(P),(N=ee("<span class='tmpzTreeMove_arrow'></span>",E)).attr("id","zTreeMove_arrow_tmp"),N.appendTo(P),E.treeObj.trigger(X.event.DRAG,[e,E.treeId,D])}if(1==T.dragFlag){I&&N.attr("id")==e.target.id&&z&&e.clientX+O.scrollLeft()+2>K("#"+z+X.id.A,I).offset().left?(d=K("#"+z+X.id.A,I),e.target=0<d.length?d.get(0):e.target):I&&(I.removeClass(X.node.TMPTARGET_TREE),z)&&K("#"+z+X.id.A,I).removeClass(X.node.TMPTARGET_NODE+"_"+X.move.TYPE_PREV).removeClass(X.node.TMPTARGET_NODE+"_"+G.move.TYPE_NEXT).removeClass(X.node.TMPTARGET_NODE+"_"+G.move.TYPE_INNER),z=I=null,B=!1,j=E;var c,u=Z.getSettings();for(c in u)u[c].treeId&&u[c].edit.enable&&u[c].treeId!=E.treeId&&(e.target.id==u[c].treeId||0<K(e.target).parents("#"+u[c].treeId).length)&&(B=!0,j=u[c]);var d=O.scrollTop(),h=O.scrollLeft(),p=j.treeObj.offset(),f=j.treeObj.get(0).scrollHeight,g=j.treeObj.get(0).scrollWidth,m=e.clientY+d-p.top,y=j.treeObj.height()+p.top-e.clientY-d,v=e.clientX+h-p.left,p=j.treeObj.width()+p.left-e.clientX-h,b=m<E.edit.drag.borderMax&&m>E.edit.drag.borderMin,w=y<E.edit.drag.borderMax&&y>E.edit.drag.borderMin,x=v<E.edit.drag.borderMax&&v>E.edit.drag.borderMin,A=p<E.edit.drag.borderMax&&p>E.edit.drag.borderMin,m=m>E.edit.drag.borderMin&&y>E.edit.drag.borderMin&&v>E.edit.drag.borderMin&&p>E.edit.drag.borderMin,y=b&&j.treeObj.scrollTop()<=0,v=w&&j.treeObj.scrollTop()+j.treeObj.height()+10>=f,p=x&&j.treeObj.scrollLeft()<=0,f=A&&j.treeObj.scrollLeft()+j.treeObj.width()+10>=g;if(e.target&&Q.isChildOrSelf(e.target,j.treeId)){for(var C=e.target;C&&C.tagName&&!Q.eqs(C.tagName,"li")&&C.id!=j.treeId;)C=C.parentNode;var k=!0;for(s=0,l=D.length;s<l;s++){if(t=D[s],C.id===t.tId){k=!1;break}if(0<ee(t,E).find("#"+C.id).length){k=!1;break}}k&&e.target&&Q.isChildOrSelf(e.target,C.id+X.id.A)&&(I=K(C),z=C.id)}t=D[0],m&&Q.isChildOrSelf(e.target,j.treeId)&&(!I&&(e.target.id==j.treeId||y||v||p||f)&&(B||!B&&t.parentTId)&&(I=j.treeObj),b?j.treeObj.scrollTop(j.treeObj.scrollTop()-10):w&&j.treeObj.scrollTop(j.treeObj.scrollTop()+10),x?j.treeObj.scrollLeft(j.treeObj.scrollLeft()-10):A&&j.treeObj.scrollLeft(j.treeObj.scrollLeft()+10),I)&&I!=j.treeObj&&I.offset().left<j.treeObj.offset().left&&j.treeObj.scrollLeft(j.treeObj.scrollLeft()+I.offset().left-j.treeObj.offset().left),L.css({top:e.clientY+d+3+"px",left:e.clientX+h+3+"px"});var _,g=0,m=0;function S(){I=null,z="",W=X.move.TYPE_INNER,N.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null)}I&&I.attr("id")!=j.treeId?(_=null==z?null:Z.getNodeCache(j,z),y=(e.ctrlKey||e.metaKey)&&E.edit.drag.isMove&&E.edit.drag.isCopy||!E.edit.drag.isMove&&E.edit.drag.isCopy,v=!(!M||z!==M.tId),p=!(!R||z!==R.tId),f=t.parentTId&&t.parentTId==z,b=(y||!p)&&Q.apply(j.edit.drag.prev,[j.treeId,D,_],!!j.edit.drag.prev),w=(y||!v)&&Q.apply(j.edit.drag.next,[j.treeId,D,_],!!j.edit.drag.next),x=(y||!f)&&!(j.data.keep.leaf&&!Z.nodeIsParent(E,_))&&Q.apply(j.edit.drag.inner,[j.treeId,D,_],!!j.edit.drag.inner),b||w||x?(A=K("#"+z+X.id.A,I),h=_.isLastNode?null:K("#"+_.getNextNode().tId+X.id.A,I.next()),p=A.offset().top,v=A.offset().left,y=b?x?.25:w?.5:1:-1,f=w?x?.75:b?.5:0:-1,d=(e.clientY+d-p)/A.height(),(1==y||d<=y&&-.2<=d)&&b?(g=1-N.width(),m=p-N.height()/2,W=X.move.TYPE_PREV):(0==f||f<=d&&d<=1.2)&&w?(g=1-N.width(),m=null==h||Z.nodeIsParent(E,_)&&_.open?p+A.height()-N.height()/2:h.offset().top-N.height()/2,W=X.move.TYPE_NEXT):x?(g=5-N.width(),m=p,W=X.move.TYPE_INNER):S(),I&&(N.css({display:"block",top:m+"px",left:v+g+"px"}),A.addClass(X.node.TMPTARGET_NODE+"_"+W),H==z&&F==W||(V=(new Date).getTime()),_)&&Z.nodeIsParent(E,_)&&W==X.move.TYPE_INNER&&(y=!0,window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId!==_.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===_.tId&&(y=!1),y)&&(window.zTreeMoveTimer=setTimeout(function(){W==X.move.TYPE_INNER&&_&&Z.nodeIsParent(E,_)&&!_.open&&(new Date).getTime()-V>j.edit.drag.autoOpenTime&&Q.apply(j.callback.beforeDragOpen,[j.treeId,_],!0)&&(J.switchNode(j,_),j.edit.drag.autoExpandTrigger)&&j.treeObj.trigger(X.event.EXPAND,[j.treeId,_])},j.edit.drag.autoOpenTime+50),window.zTreeMoveTargetNodeTId=_.tId)):S()):(W=X.move.TYPE_INNER,I&&Q.apply(j.edit.drag.inner,[j.treeId,D,null],!!j.edit.drag.inner)?I.addClass(X.node.TMPTARGET_TREE):I=null,N.css({display:"none"}),window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null)),H=z,F=W,E.treeObj.trigger(X.event.DRAGMOVE,[e,E.treeId,D])}return!1}function Y(i){if(window.zTreeMoveTimer&&(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null),F=H=null,O.unbind("mousemove",c),O.unbind("mouseup",Y),O.unbind("selectstart",u),P.css("cursor",""),I&&(I.removeClass(X.node.TMPTARGET_TREE),z)&&K("#"+z+X.id.A,I).removeClass(X.node.TMPTARGET_NODE+"_"+X.move.TYPE_PREV).removeClass(X.node.TMPTARGET_NODE+"_"+G.move.TYPE_NEXT).removeClass(X.node.TMPTARGET_NODE+"_"+G.move.TYPE_INNER),Q.showIfameMask(E,!1),$.showHoverDom=!0,0!=T.dragFlag){for(var e,t=T.dragFlag=0,n=D.length;t<n;t++)e=D[t],Z.nodeIsParent(E,e)&&T.dragNodeShowBefore[e.tId]&&!e.open&&(J.expandCollapseNode(E,e,!e.open),delete T.dragNodeShowBefore[e.tId]);L&&L.remove(),N&&N.remove();var o,r,a=(i.ctrlKey||i.metaKey)&&E.edit.drag.isMove&&E.edit.drag.isCopy||!E.edit.drag.isMove&&E.edit.drag.isCopy;(I=!a&&I&&z&&D[0].parentTId&&z==D[0].parentTId&&W==X.move.TYPE_INNER?null:I)?(o=null==z?null:Z.getNodeCache(j,z),0==Q.apply(E.callback.beforeDrop,[j.treeId,D,o,W,a],!0)?J.selectNodes(l,D):(r=a?Q.clone(D):D,W==X.move.TYPE_INNER&&Q.canAsync(j,o)?J.asyncNode(j,o,!1,s):s())):(J.selectNodes(l,D),E.treeObj.trigger(X.event.DROP,[i,E.treeId,D,null,
13null,null]))}function s(){if(B){if(!a)for(var e=0,t=D.length;e<t;e++)J.removeNode(E,D[e]);W==X.move.TYPE_INNER?J.addNodes(j,o,-1,r):J.addNodes(j,o.getParentNode(),W==X.move.TYPE_PREV?o.getIndex():o.getIndex()+1,r)}else if(a&&W==X.move.TYPE_INNER)J.addNodes(j,o,-1,r);else if(a)J.addNodes(j,o.getParentNode(),W==X.move.TYPE_PREV?o.getIndex():o.getIndex()+1,r);else if(W!=X.move.TYPE_NEXT)for(e=0,t=r.length;e<t;e++)J.moveNode(j,o,r[e],W,!1);else for(e=-1,t=r.length-1;e<t;t--)J.moveNode(j,o,r[t],W,!1);J.selectNodes(j,r);var n=ee(r[0],E).get(0);J.scrollIntoView(E,n),E.treeObj.trigger(X.event.DROP,[i,j.treeId,r,o,W,a])}}function u(){return!1}}},e={tools:{getAbs:function(e){var e=e.getBoundingClientRect(),t=document.body.scrollTop+document.documentElement.scrollTop,n=document.body.scrollLeft+document.documentElement.scrollLeft;return[e.left+n,e.top+t]},inputFocus:function(e){e.get(0)&&(e.focus(),Q.setCursorPosition(e.get(0),e.val().length))},inputSelect:function(e){e.get(0)&&(e.focus(),e.select())},setCursorPosition:function(e,t){e.setSelectionRange?(e.focus(),e.setSelectionRange(t,t)):e.createTextRange&&((e=e.createTextRange()).collapse(!0),e.moveEnd("character",t),e.moveStart("character",t),e.select())},showIfameMask:function(e,t){for(var n=Z.getRoot(e);0<n.dragMaskList.length;)n.dragMaskList[0].remove(),n.dragMaskList.shift();if(t)for(var i=ee("iframe",e),o=0,r=i.length;o<r;o++){var a=i.get(o),s=Q.getAbs(a),s=ee("<div id='zTreeMask_"+o+"' class='zTreeMask' style='top:"+s[1]+"px; left:"+s[0]+"px; width:"+a.offsetWidth+"px; height:"+a.offsetHeight+"px;'></div>",e);s.appendTo(ee("body",e)),n.dragMaskList.push(s)}}},view:{addEditBtn:function(e,t){var n,i;t.editNameFlag||0<ee(t,X.id.EDIT,e).length||Q.apply(e.edit.showRenameBtn,[e.treeId,t],e.edit.showRenameBtn)&&(n=ee(t,X.id.A,e),i="<span class='"+X.className.BUTTON+" edit' id='"+t.tId+X.id.EDIT+"' title='"+Q.apply(e.edit.renameTitle,[e.treeId,t],e.edit.renameTitle)+"' treeNode"+X.id.EDIT+" style='display:none;'></span>",n.append(i),ee(t,X.id.EDIT,e).bind("click",function(){return Q.uCanDo(e)&&0!=Q.apply(e.callback.beforeEditName,[e.treeId,t],!0)&&J.editNode(e,t),!1}).show())},addRemoveBtn:function(e,t){var n,i;t.editNameFlag||0<ee(t,X.id.REMOVE,e).length||Q.apply(e.edit.showRemoveBtn,[e.treeId,t],e.edit.showRemoveBtn)&&(n=ee(t,X.id.A,e),i="<span class='"+X.className.BUTTON+" remove' id='"+t.tId+X.id.REMOVE+"' title='"+Q.apply(e.edit.removeTitle,[e.treeId,t],e.edit.removeTitle)+"' treeNode"+X.id.REMOVE+" style='display:none;'></span>",n.append(i),ee(t,X.id.REMOVE,e).bind("click",function(){return Q.uCanDo(e)&&0!=Q.apply(e.callback.beforeRemove,[e.treeId,t],!0)&&(J.removeNode(e,t),e.treeObj.trigger(X.event.REMOVE,[e.treeId,t])),!1}).bind("mousedown",function(e){return!0}).show())},addHoverDom:function(e,t){Z.getRoots().showHoverDom&&(t.isHover=!0,e.edit.enable&&(J.addEditBtn(e,t),J.addRemoveBtn(e,t)),Q.apply(e.view.addHoverDom,[e.treeId,t]))},cancelCurEditNode:function(e,t,n){var i=Z.getRoot(e),o=i.curEditNode;if(o){var r=i.curEditInput,t=t||(n?Z.nodeName(e,o):r.val());if(!1===Q.apply(e.callback.beforeRename,[e.treeId,o,t,n],!0))return!1;Z.nodeName(e,o,t),ee(o,X.id.A,e).removeClass(X.node.CURSELECTED_EDIT),r.unbind(),J.setNodeName(e,o),o.editNameFlag=!1,i.curEditNode=null,i.curEditInput=null,J.selectNode(e,o,!1),e.treeObj.trigger(X.event.RENAME,[e.treeId,o,n])}return i.noSelection=!0},editNode:function(t,e){var n,i=Z.getRoot(t);J.editNodeBlur=!1,Z.isSelectedNode(t,e)&&i.curEditNode==e&&e.editNameFlag?setTimeout(function(){Q.inputFocus(i.curEditInput)},0):(e.editNameFlag=!0,J.removeTreeDom(t,e),J.cancelCurEditNode(t),J.selectNode(t,e,!1),ee(e,X.id.SPAN,t).html("<input type=text class='rename' id='"+e.tId+X.id.INPUT+"' treeNode"+X.id.INPUT+" >"),(n=ee(e,X.id.INPUT,t)).attr("value",Z.nodeName(t,e)),t.edit.editNameSelectAll?Q.inputSelect(n):Q.inputFocus(n),n.bind("blur",function(e){J.editNodeBlur||J.cancelCurEditNode(t)}).bind("keydown",function(e){"13"==e.keyCode?(J.editNodeBlur=!0,J.cancelCurEditNode(t)):"27"==e.keyCode&&J.cancelCurEditNode(t,null,!0)}).bind("click",function(e){return!1}).bind("dblclick",function(e){return!1}),ee(e,X.id.A,t).addClass(X.node.CURSELECTED_EDIT),i.curEditInput=n,i.noSelection=!1,i.curEditNode=e)},moveNode:function(e,t,n,i,o,r){var a=Z.getRoot(e);
13if(t!=n&&(!e.data.keep.leaf||!t||Z.nodeIsParent(e,t)||i!=X.move.TYPE_INNER)){var s=n.parentTId?n.getParentNode():a,l=null===t||t==a,a=(l&&(i=X.move.TYPE_INNER),(t=l&&null===t?a:t).parentTId?t.getParentNode():a),l=((i=i!=X.move.TYPE_PREV&&i!=X.move.TYPE_NEXT?X.move.TYPE_INNER:i)==X.move.TYPE_INNER&&(l?n.parentTId=null:(Z.nodeIsParent(e,t)||(Z.nodeIsParent(e,t,!0),t.open=!!t.open,J.setNodeLineIcos(e,t)),n.parentTId=t.tId)),p=l?f=e.treeObj:(r||i!=X.move.TYPE_INNER?r||J.expandCollapseNode(e,t.getParentNode(),!0,!1):J.expandCollapseNode(e,t,!0,!1),f=ee(t,e),p=ee(t,X.id.UL,e),f.get(0)&&!p.get(0)&&(J.makeUlHtml(e,t,l=[],""),f.append(l.join(""))),ee(t,X.id.UL,e)),ee(n,e));l.get(0)?f.get(0)||l.remove():l=J.appendNodes(e,n.level,[n],null,-1,!1,!0).join(""),p.get(0)&&i==X.move.TYPE_INNER?p.append(l):f.get(0)&&i==X.move.TYPE_PREV?f.before(l):f.get(0)&&i==X.move.TYPE_NEXT&&f.after(l);var c,u,d=-1,h=0,p=null,f=null,l=n.level,g=Z.nodeChildren(e,s),m=Z.nodeChildren(e,a),a=Z.nodeChildren(e,t);if(n.isFirstNode)d=0,1<g.length&&((p=g[1]).isFirstNode=!0);else if(n.isLastNode)(p=g[(d=g.length-1)-1]).isLastNode=!0;else for(c=0,u=g.length;c<u;c++)if(g[c].tId==n.tId){d=c;break}if(0<=d&&g.splice(d,1),i!=X.move.TYPE_INNER)for(c=0,u=m.length;c<u;c++)m[c].tId==t.tId&&(h=c);i==X.move.TYPE_INNER?(0<(a=a||Z.nodeChildren(e,t,[])).length&&((f=a[a.length-1]).isLastNode=!1),a.splice(a.length,0,n),n.isLastNode=!0,n.isFirstNode=1==a.length):t.isFirstNode&&i==X.move.TYPE_PREV?(m.splice(h,0,n),(f=t).isFirstNode=!1,n.parentTId=t.parentTId,n.isFirstNode=!0,n.isLastNode=!1):t.isLastNode&&i==X.move.TYPE_NEXT?(m.splice(h+1,0,n),(f=t).isLastNode=!1,n.parentTId=t.parentTId,n.isFirstNode=!1,n.isLastNode=!0):(i==X.move.TYPE_PREV?m.splice(h,0,n):m.splice(h+1,0,n),n.parentTId=t.parentTId,n.isFirstNode=!1,n.isLastNode=!1),Z.fixPIdKeyValue(e,n),Z.setSonNodeLevel(e,n.getParentNode(),n),J.setNodeLineIcos(e,n),J.repairNodeLevelClass(e,n,l),!e.data.keep.parent&&g.length<1?(Z.nodeIsParent(e,s,!1),s.open=!1,a=ee(s,X.id.UL,e),i=ee(s,X.id.SWITCH,e),l=ee(s,X.id.ICON,e),J.replaceSwitchClass(s,i,X.folder.DOCU),J.replaceIcoClass(s,l,X.folder.DOCU),a.css("display","none")):p&&J.setNodeLineIcos(e,p),f&&J.setNodeLineIcos(e,f),e.check&&e.check.enable&&J.repairChkClass&&(J.repairChkClass(e,s),J.repairParentChkClassWithSelf(e,s),s!=n.parent)&&J.repairParentChkClassWithSelf(e,n),r||J.expandCollapseParentNode(e,n.getParentNode(),!0,o)}},removeEditBtn:function(e,t){ee(t,X.id.EDIT,e).unbind().remove()},removeRemoveBtn:function(e,t){ee(t,X.id.REMOVE,e).unbind().remove()},removeTreeDom:function(e,t){t.isHover=!1,J.removeEditBtn(e,t),J.removeRemoveBtn(e,t),Q.apply(e.view.removeHoverDom,[e.treeId,t])},repairNodeLevelClass:function(e,t,n){var i,o;n!==t.level&&(i=ee(t,e),o=ee(t,X.id.A,e),e=ee(t,X.id.UL,e),n=X.className.LEVEL+n,t=X.className.LEVEL+t.level,i.removeClass(n),i.addClass(t),o.removeClass(n),o.addClass(t),e.removeClass(n),e.addClass(t))},selectNodes:function(e,t){for(var n=0,i=t.length;n<i;n++)J.selectNode(e,t[n],0<n)}},event:{},data:{setSonNodeLevel:function(e,t,n){if(n){var i=Z.nodeChildren(e,n
13);if(n.level=t?t.level+1:0,i)for(var o=0,r=i.length;o<r;o++)i[o]&&Z.setSonNodeLevel(e,n,i[o])}}}};K.extend(!0,K.fn.zTree.consts,G),K.extend(!0,K.fn.zTree._z,e);var Q=(e=K.fn.zTree)._z.tools,X=e.consts,J=e._z.view,Z=e._z.data,ee=(e._z.event,Q.$),r=(Z.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null,beforeRename:null,onDrag:null,onDragMove:null,onDrop:null,onRename:null}}),Z.addInitBind(function(s){var e=s.treeObj,t=X.event;e.bind(t.RENAME,function(e,t,n,i){Q.apply(s.callback.onRename,[e,t,n,i])}),e.bind(t.DRAG,function(e,t,n,i){Q.apply(s.callback.onDrag,[t,n,i])}),e.bind(t.DRAGMOVE,function(e,t,n,i){Q.apply(s.callback.onDragMove,[t,n,i])}),e.bind(t.DROP,function(e,t,n,i,o,r,a){Q.apply(s.callback.onDrop,[t,n,i,o,r,a])})}),Z.addInitUnBind(function(e){var e=e.treeObj,t=X.event;e.unbind(t.RENAME),e.unbind(t.DRAG),e.unbind(t.DRAGMOVE),e.unbind(t.DROP)}),Z.addInitCache(function(e){}),Z.addInitNode(function(e,t,n,i,o,r,a){n&&(n.isHover=!1,n.editNameFlag=!1)}),Z.addInitProxy(function(e){var t=e.target,n=Z.getSetting(e.data.treeId),i=e.relatedTarget,o="",r=null,a="",s=null,l=null;if(Q.eqs(e.type,"mouseover")?(l=Q.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+X.id.A}]))&&(o=Q.getNodeMainDom(l).id,a="hoverOverNode"):Q.eqs(e.type,"mouseout")?(l=Q.getMDom(n,i,[{tagName:"a",attrName:"treeNode"+X.id.A}]))||(o="remove",a="hoverOutNode"):Q.eqs(e.type,"mousedown")&&(l=Q.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+X.id.A}]))&&(o=Q.getNodeMainDom(l).id,a="mousedownNode"),0<o.length)switch(r=Z.getNodeCache(n,o),a){case"mousedownNode":s=c.onMousedownNode;break;case"hoverOverNode":s=c.onHoverOverNode;break;case"hoverOutNode":s=c.onHoverOutNode}return{stop:!1,node:r,nodeEventType:a,nodeEventCallback:s,treeEventType:"",treeEventCallback:null}}),Z.addInitRoot(function(e){var e=Z.getRoot(e),t=Z.getRoots();e.curEditNode=null,e.curEditInput=null,e.curHoverNode=null,e.dragFlag=0,e.dragNodeShowBefore=[],e.dragMaskList=new Array,t.showHoverDom=!0}),Z.addZTreeTools(function(l,e){e.cancelEditName=function(e){Z.getRoot(this.setting).curEditNode&&J.cancelCurEditNode(this.setting,e||null,!0)},e.copyNode=function(e,t,n,i){var o,r,a;return!t||(o=Z.nodeIsParent(l,e),e&&!o&&this.setting.data.keep.leaf&&n===X.move.TYPE_INNER)?null:(r=this,a=Q.clone(t),e||(e=null,n=X.move.TYPE_INNER),n==X.move.TYPE_INNER?Q.canAsync(this.setting,e)?J.asyncNode(this.setting,e,i,s):s():(J.addNodes(this.setting,e.parentNode,-1,[a],i),J.moveNode(this.setting,e,a,n,!1,i)),a);function s(){J.addNodes(r.setting,e,-1,[a],i)}},e.editName=function(e){e&&e.tId&&e===Z.getNodeCache(this.setting,e.tId)&&(e.parentTId&&J.expandCollapseParentNode(this.setting,e.getParentNode(),!0),J.editNode(this.setting,e))},e.moveNode=function(e,t,n,i){if(t){var o=Z.nodeIsParent(l,e);if(e&&!o&&this.setting.data.keep.leaf&&n===X.move.TYPE_INNER)return null;if(e&&(t.parentTId==e.tId&&n==X.move.TYPE_INNER||0<ee(t,this.setting).find("#"+e.tId).length))return null;e=e||null;var r=this;Q.canAsync(this.setting,e)&&n===X.move.TYPE_INNER?J.asyncNode(this.setting,e,i,a):a()}return t;function a(){J.moveNode(r.setting,e,t,n,!1,i)}},e.setEditable=function(e){return this.setting.edit.enable=e,this.refresh()}}),J.cancelPreSelectedNode),a=(J.cancelPreSelectedNode=function(e,t){for(var n=Z.getRoot(e).curSelectedList,i=0,o=n.length;i<o&&(t&&t!==n[i]||(J.removeTreeDom(e,n[i]),!t));i++);r&&r.apply(J,arguments)},J.createNodes),n=(J.createNodes=function(e,t,n,i,o){a&&a.apply(J,arguments),n&&J.repairParentChkClassWithSelf&&J.repairParentChkClassWithSelf(e,i)},J.makeNodeUrl),i=(J.makeNodeUrl=function(e,t){return e.edit.enable?null:n.apply(J,arguments)},J.removeNode),o=(J.removeNode=function(e,t){e=Z.getRoot(e);e.curEditNode===t&&(e.curEditNode=null),i&&i.apply(J,arguments)},J.selectNode),s=(J.selectNode=function(e,t,n){var i=Z.getRoot(e);return!(Z.isSelectedNode(e,t)&&i.curEditNode==t&&t.editNameFlag||(o&&o.apply(J,arguments),J.addHoverDom(e,t),0))},Q.uCanDo);Q.uCanDo=function(e,t){e=Z.getRoot(e);return!(!t||!(Q.eqs(t.type,"mouseover")||Q.eqs(t.type,"mouseout")||Q.eqs(t.type,"mousedown")||Q.eqs(t.type,"mouseup")))||(e.curEditNode&&(J.editNodeBlur=!1,e.curEditInput.focus()),!e.curEditNode&&(!s||s.apply(J,arguments)))}})(jQuery),TreeSelect.prototype.render=function(e){var t=e.elem,n=e.data,o=e.click,i=e.success,r=e.parent,a=void 0===e.placeholder?"请选择":e.placeholder,s=void 0!==e.search&&e.search,e=(new Date).getTime()+"-"+Math.random().toString(36).slice(2,8),l={},c=!1,u=".treeSelect-"+e,d="layui-form-selected",h=void 0,p="treeSelect-input-"+e,f="layui-treeSelect-"+e,g="layui-select-title-"+e,m="layui-treeSelect-body-"+e,y="layui-treeSelect-search-ed",v={init:function(){return _Dict.advanced(n,e=>{c||(l=e,v.hideElem().input().toggleSelect().loadCss().preventEvent(),$.fn.zTree.init($("#"+m),v.setting(),e),s&&v.searchParam(),h=$.fn.zTree.getZTreeObj(m),i&&i({treeId:f,data:e}))}),v},setting:function(){return{view:{fontCss:function(e,t){return t.fontCss||{}}},callback:{onClick:v.onClick,onExpand:v.onExpand,onCollapse:v.onCollapse}}},onCollapse:function(){v.focusInput()},onExpand:function(){v.focusInput()},focusInput:function(){$("#"+p).focus()},onClick:function(e,t,n){var i;if(!0!==n?.isParent||!1!==r)return i=n.name,$("#"+g+" input").val(i),$("#"+f).removeClass(d),o&&o({data:l,current:n,treeId:f}),v},hideElem:function(){return $(t).hide(),v},input:function(){var e="",e='<div class="layui-treeSelect layui-unselect layui-form-select" id="'+f+'"><div class="layui-select-title" id="'+g+'"> <input type="text" id="'+p+'" placeholder="'+a+'" value="" '+(e=s?e:"readonly")+' class="layui-input layui-unselect"><i class="layui-edge"></i></div><div class="layui-anim layui-anim-upbit" style=""><div class="layui-treeSelect-body ztree" id="'+m+'"></div></div></div>';return $(t).parent().append(e),v},toggleSelect:function(){return v.event("click","#"+g,function(e){var t=$("#"+f);t.hasClass(d)?(t.removeClass(d),$("#"+p).blur()):($(".layui-form-select").removeClass(d),t.addClass(d)),e.stopPropagation()}
13),$(document).off("click"+u).on("click"+u,function(){var e=$("#"+f);e.hasClass(d)&&(e.removeClass(d),$("#"+p).blur())}),v},searchParam:function(){s&&v.event("input propertychange","#"+p,function(e){var e=e.target,e=$(e).val(),t=($("#"+f+" li."+y).removeClass(y),h.getNodesByParamFuzzy("name",e,null));if(""!==e){v.checkNodes(t);for(var n=$("#"+f+" li[treenode]"),i=0;i<n.length;i++){var o=n.eq(i);o.hasClass(y)?o.show():o.hide()}}else $("#"+f+" li[treenode]").show()})},checkNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.parentTId,n=n.tId;null!==i&&($("#"+i).addClass(y),i=h.getNodesByParam("tId",i,null),h.expandNode(i[0],!0,!1,!0)),$("#"+n).addClass(y)}},preventEvent:function(){return v.event("click","#"+f+" .layui-anim",function(e){e.stopPropagation()}),v},loadCss:function(){var e=$("head");return 0===e.find("style[ztree]").length&&e.append($("<style ztree>").append('.ztree *{padding:0;margin:0;font-size:12px;font-family:Verdana,Arial,Helvetica,AppleGothic,sans-serif}.ztree{margin:0;padding:5px;color:#333}.ztree li{padding:0;margin:0;list-style:none;line-height:14px;text-align:left;white-space:nowrap;outline:0}.ztree li ul{margin:0;padding:0 0 0 18px}.ztree li ul.line{background:url(./img/line_conn.gif) 0 0 repeat-y;}.ztree li a{padding:1px 3px 0 0;margin:0;cursor:pointer;height:17px;color:#333;background-color:transparent;text-decoration:none;vertical-align:top;display:inline-block}.ztree li a:hover{text-decoration:underline}.ztree li a.curSelectedNode{padding-top:0px;background-color:#FFE6B0;color:black;height:16px;border:1px #FFB951 solid;opacity:0.8;}.ztree li a.curSelectedNode_Edit{padding-top:0px;background-color:#FFE6B0;color:black;height:16px;border:1px #FFB951 solid;opacity:0.8;}.ztree li a.tmpTargetNode_inner{padding-top:0px;background-color:#316AC5;color:white;height:16px;border:1px #316AC5 solid;opacity:0.8;filter:alpha(opacity=80)}.ztree li a.tmpTargetNode_prev{}.ztree li a.tmpTargetNode_next{}.ztree li a input.rename{height:14px;width:80px;padding:0;margin:0;font-size:12px;border:1px #7EC4CC solid;*border:0px}.ztree li span{line-height:16px;margin-right:2px}.ztree li span.button{line-height:0;margin:0;width:16px;height:16px;display:inline-block;vertical-align:middle;border:0 none;cursor:pointer;outline:none;background-color:transparent;background-repeat:no-repeat;background-attachment:scroll;background-image:url("./img/zTreeStandard.png");*background-image:url("./img/zTreeStandard.gif")}.ztree li span.button.chk{width:13px;height:13px;margin:0 3px 0 0;cursor:auto}.ztree li span.button.chk.checkbox_false_full{background-position:0 0}.ztree li span.button.chk.checkbox_false_full_focus{background-position:0 -14px}.ztree li span.button.chk.checkbox_false_part{background-position:0 -28px}.ztree li span.button.chk.checkbox_false_part_focus{background-position:0 -42px}.ztree li span.button.chk.checkbox_false_disable{background-position:0 -56px}.ztree li span.button.chk.checkbox_true_full{background-position:-14px 0}.ztree li span.button.chk.checkbox_true_full_focus{background-position:-14px -14px}.ztree li span.button.chk.checkbox_true_part{background-position:-14px -28px}.ztree li span.button.chk.checkbox_true_part_focus{background-position:-14px -42px}.ztree li span.button.chk.checkbox_true_disable{background-position:-14px -56px}.ztree li span.button.chk.radio_false_full{background-position:-28px 0}.ztree li span.button.chk.radio_false_full_focus{background-position:-28px -14px}.ztree li span.button.chk.radio_false_part{background-position:-28px -28px}.ztree li span.button.chk.radio_false_part_focus{background-position:-28px -42px}.ztree li span.button.chk.radio_false_disable{background-position:-28px -56px}.ztree li span.button.chk.radio_true_full{background-position:-42px 0}.ztree li span.button.chk.radio_true_full_focus{background-position:-42px -14px}.ztree li span.button.chk.radio_true_part{background-position:-42px -28px}.ztree li span.button.chk.radio_true_part_focus{background-position:-42px -42px}.ztree li span.button.chk.radio_true_disable{background-position:-42px -56px}.ztree li span.button.switch{width:18px;height:18px}.ztree li span.button.root_open{background-position:-92px -54px}.ztree li span.button.root_close{background-position:-74px -54px}.ztree li span.button.roots_open{background-position:-92px 0}.ztree li span.button.roots_close{background-position:-74px 0}.ztree li span.button.center_open{background-position:-92px -18px}.ztree li span.button.center_close{background-position:-74px -18px}.ztree li span.button.bottom_open{background-position:-92px -36px}.ztree li span.button.bottom_close{background-position:-74px -36px}.ztree li span.button.noline_open{background-position:-92px -72px}.ztree li span.button.noline_close{background-position:-74px -72px}.ztree li span.button.root_docu{background:none;}.ztree li span.button.roots_docu{background-position:-56px 0}.ztree li span.button.center_docu{background-position:-56px -18px}.ztree li span.button.bottom_docu{background-position:-56px -36px}.ztree li span.button.noline_docu{background:none;}.ztree li span.button.ico_open{margin-right:2px;background-position:-110px -16px;vertical-align:top;*vertical-align:middle}.ztree li span.button.ico_close{margin-right:2px;background-position:-110px 0;vertical-align:top;*vertical-align:middle}.ztree li span.button.ico_docu{margin-right:2px;background-position:-110px -32px;vertical-align:top;*vertical-align:middle}.ztree li span.button.edit{margin-right:2px;background-position:-110px -48px;vertical-align:top;*vertical-align:middle}.ztree li span.button.remove{margin-right:2px;background-position:-110px -64px;vertical-align:top;*vertical-align:middle}.ztree li span.button.ico_loading{margin-right:2px;background:url(./img/loading.gif) no-repeat scroll 0 0 transparent;vertical-align:top;*vertical-align:middle}ul.tmpTargetzTree{background-color:#FFE6B0;opacity:0.8;filter:alpha(opacity=80)}span.tmpzTreeMove_arrow{width:16px;height:16px;display:inline-block;padding:0;margin:2px 0 0 1px;border:0 none;position:absolute;background-color:transparent;background-repeat:no-repeat;background-attachment:scroll;background-position:-110px -80px;background-image:url("./img/zTreeStandard.png");*background-image:url("./img/zTreeStandard.gif")}ul.ztree.zTreeDragUL{margin:0;padding:0;position:absolute;width:auto;height:auto;overflow:hidden;background-color:#cfcfcf;border:1px #00B83F dotted;opacity:0.8;filter:alpha(opacity=80)}.zTreeMask{z-index:10000;background-color:#cfcfcf;opacity:0.0;filter:alpha(opacity=0);position:absolute}').append('.layui-treeSelect .ztree li span.button{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:none;line-height:inherit;}.layui-treeSelect .ztree li span.button.ico_open{display:none;}.layui-treeSelect .ztree li span.button.ico_close{display:none;}.layui-treeSelect .ztree li span.button.ico_docu:before{content:"\\e621";}.layui-treeSelect .ztree li span.button.bottom_close:before,.layui-treeSelect .ztree li span.button.center_close:before,.layui-treeSelect .ztree li span.button.roots_close:before,.layui-treeSelect .ztree li span.button.root_close:before{content:"\\e623";}.layui-treeSelect .ztree li span.button.bottom_open:before,.layui-treeSelect .ztree li span.button.roots_open:before,.layui-treeSelect .ztree li span.button.center_open:before,.layui-treeSelect .ztree li span.button.root_open:before{content:"\\e625";}.layui-treeSelect .ztree li a:hover{text-decoration:none;}.layui-treeSelect .ztree *{font-size:14px;}.layui-treeSelect .ztree li{line-height:inherit;padding:2px 0;}.layui-treeSelect .ztree li span.button.switch{position:relative;top:-7px;}.layui-treeSelect .ztree li a,.ztree li span{line-height:18px;height:inherit;}
13.layui-treeSelect .ztree li a.curSelectedNode{color:#5FB878;background:none;border:none;height:inherit;padding-top:1px;}.layui-treeSelect .ztree li ul.line{background:none;}.layui-treeSelect .layui-anim::-webkit-scrollbar{width:6px;height:6px;background-color:#F5F5F5;}.layui-treeSelect .layui-anim::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(107,98,98,0.3);border-radius:10px;background-color:#F5F5F5;}.layui-treeSelect .layui-anim::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 6px rgba(107,98,98,0.3);background-color:#555;}.layui-treeSelect.layui-form-select .layui-anim{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:9999;min-width:100%;border:1px solid #d2d2d2;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px 2px 10px 10px;box-shadow:0 2px 4px rgba(0,0,0,.12);box-sizing:border-box;}.layui-treeSelect.layui-form-selected .layui-anim{display:block;}')),v},event:function(e,t,n){e=String(e).split(/\s+/).filter(Boolean).map(function(e){return e+u}).join(" ");$("body").on(e,t,n)},destroy:function(){if(!c){if(c=!0,$("body").off(u),$(document).off(u),$.fn.zTree&&"function"==typeof $.fn.zTree.destroy)try{$.fn.zTree.destroy(m)}catch(e){}$("#"+f).remove(),$(t).show()}}},e=(v.init(),new TreeSelect);return e.destroy=v.destroy,e},TreeSelect.prototype.refresh=function(e){obj.treeObj(e).reAsyncChildNodes(null,"refresh")},TreeSelect.prototype.checkNode=function(e,t){var n=obj.filter(e),i=n.parent().find(".layui-select-title input"),e=obj.treeObj(e),t=e.getNodeByParam("id",t,null),o=t.name;i.val(o),n.find("a[treenode_a]").removeClass("curSelectedNode"),e.selectNode(t)},TreeSelect.prototype.zTree=function(e){return obj.treeObj(e)},{filter:function(e){return e||layui.hint().error("filter 不能为空"),$("*[lay-filter="+e+"]").next()},treeObj:function(e){e=obj.filter(e).parent().find(".layui-treeSelect-body").attr("id");return $.fn.zTree.getZTreeObj(e)}}),mod=new TreeSelect;exports(_MOD,mod)}),layui.define(["jquery","form"],function(e){var v=layui.jquery,n=layui.form,a="authtree",b={openIconContent:"",closeIconContent:"",checkType:"checkbox",checkedIconContent:"",halfCheckedIconContent:"",notCheckedIconContent:"",checkedNode:{},notCheckedNode:{},lastCheckedNode:{},lastNotCheckedNode:{},renderedTrees:{},on:function(e,t){return layui.onevent.call(this,a,e,t)},render:function(i,e,t){var n=t.inputname||"menuids[]",o=(t.inputname=n,t.layfilter||"checkauth"),r=(t.layfilter=o,t.openall||!1),a=(t.openall=r,t.dblshow||!1),s=(t.dblshow=a,t.dbltimeout||120),l=(t.dbltimeout=s,void 0===t.openchecked||t.openchecked),c=(t.openchecked=l,void 0===t.autoclose||t.autoclose),u=(t.autoclose=c,void 0===t.autochecked||t.autochecked),d=(t.autochecked=u,void 0!==t.hidechoose&&t.hidechoose),d=(t.hidechoose=d,void 0!==t.halfchoose&&t.halfchoose),d=(t.halfchoose=d,void 0!==t.collapseLeafNode&&t.collapseLeafNode),h=(t.collapseLeafNode=d,t.prefixChildStr=t.prefixChildStr||"├─",t.checkType=t.checkType||"checkbox",this.checkType=t.checkType,t.checkSkin=t.checkSkin||"primary",t.theme=t.theme||"",t.themePath=t.themePath||"layui_exts/tree_themes/",t.openIconContent=t.openIconContent||"&#xe625;",this.openIconContent=t.openIconContent,t.closeIconContent=t.closeIconContent||"&#xe623;",this.closeIconContent=t.closeIconContent,t.checkedIconContent=t.checkedIconContent||"e605",this.checkedIconContent=t.checkedIconContent,t.halfCheckedIconContent=t.halfCheckedIconContent||"e605",this.halfCheckedIconContent=t.halfCheckedIconContent,t.notCheckedIconContent=t.notCheckedIconContent||"&#xe605;",this.notCheckedIconContent=t.notCheckedIconContent,t.checkedKey=t.checkedKey||"checked",t.childKey=t.childKey||"list",t.disabledKey=t.disabledKey||"disabled",t.nameKey=t.nameKey||"name",t.valueKey=t.valueKey||"value",a||(t.dbltimeout,s=0),b.renderedTrees[i]={trees:e,opt:t},"string"==typeof t.theme&&""!==t.theme&&(v(i).addClass(t.theme),layui.link("/assets/common/css/"+t.theme+".css")),t.hidechoose&&v(i).addClass("auth-tree-hidechoose"),v(i).html(b.renderAuth(e,0,{inputname:n,layfilter:o,openall:r,openchecked:l,checkType:this.checkType,prefixChildStr:t.prefixChildStr,checkedKey:t.checkedKey,childKey:t.childKey,disabledKey:t.disabledKey,nameKey:t.nameKey,valueKey:t.valueKey,collapseLeafNode:t.collapseLeafNode})),l&&b.showChecked(i),b._renderForm(i),b._saveNodeStatus(i),b.autoWidth(i),0);v(i).find(".auth-single:first").unbind("click").on("click",".layui-form-checkbox,.layui-form-radio",function(e){var n=this;return clearTimeout(h),h=setTimeout(function(){var e=v(n).prev(),t=e.is(":checked"),t=(u&&(t&&e.parents(".auth-child").prev().find('.authtree-checkitem:not(:disabled)[type="checkbox"]').prop("checked",!0),e.parent().next().find('.authtree-checkitem:not(:disabled)[type="checkbox"]').prop("checked",t)),!c||t||b._autoclose(v(n).parent()),b._renderForm(i),b._saveNodeStatus(i));b._triggerEvent(i,"change",{othis:v(n),oinput:e,value:e.val(),checked:t.checked,notChecked:t.notChecked,lastChecked:t.lastChecked,lastNotChecked:t.lastNotChecked})},s),!1}),v(i).unbind("click").on("click",".auth-icon",function(){b.iconToggle(i,this)}),v(i).find(".auth-single:first").unbind("dblclick").on("dblclick",".layui-form-checkbox,.layui-form-radio",function(e){b._triggerEvent(i,"dblclick",{othis:v(this),elem:v(this).prev(),value:v(this).prev().val()}),a&&(clearTimeout(h),b.iconToggle(i,v(this).prevAll(".auth-icon:first")))}).on("selectstart",function(){return!1})},_autoclose:function(e){var e=v(e).parent().parent(),t=e.parent().prev();if(!t.hasClass("auth-status"))return!1;0===e.find('div>.auth-status>input.authtree-checkitem:not(:disabled)[type="checkbox"]:checked').length&&(t.find('.authtree-checkitem:not(:disabled)[type="checkbox"]').prop("checked",!1),this._autoclose(t))},iconToggle:function(e,t){var t=v(t),n=t.parent().parent().find(".auth-child:first");return t.is(".active")?(t.removeClass("active").html(b.closeIconContent),n.slideUp("fast")):(t.addClass("active").html(b.openIconContent),n.slideDown("fast")),b._triggerEvent(e,"deptChange"),!1},renderAuth:function(e,l,c){var u=c.inputname,d=c.layfilter,h=c.openall,p='<div class="auth-single">',f=c.childKey,g=c.nameKey,m=c.valueKey,y=this;return layui.each(e,function(e,t){var n=!t[f]||!t[f].length&&v.isEmptyObject(t[f].length)?0:1,i=n?b.renderAuth(t[f],l+1,c):"",o=h||c.openchecked&&t.checked,r=y._getStatusByDynamicKey(t,c.checkedKey,c.valueKey),a=y._getStatusByDynamicKey(t,c.disabledKey,c.valueKey),s=!n&&c.collapseLeafNode;p=(p+=s?'<div class="auth-row auth-skin"><div class="auth-row-item auth-status" style="display: flex;flex-direction: row;align-items: flex-end;">'+(n?"":'<i class="layui-icon auth-leaf" style="opacity:0;color: transparent;">&#xe626;</i>'):'<div class="auth-skin"><div class="auth-status" style="display: flex;flex-direction: row;align-items: flex-end;"> '+(n?'<i class="layui-icon auth-icon '+(o?"active":"")+'" style="cursor:pointer;">'+(o?b.openIconContent:b.closeIconContent)+"</i>":'<i class="layui-icon auth-leaf" style="opacity:0;color: transparent;">&#xe626;</i>')+(0<l?'<span class="auth-prefix">'+c.prefixChildStr+" </span>":""))+'<input class="authtree-checkitem" type="'+c.checkType+'" name="'+u+'" title="'+t[g]+'" value="'+t[m]+'" lay-skin="primary" lay-filter="'+d+'" '+(r?' checked="checked"':"")+(a?" disabled":"")+'> </div> <div class="auth-child" style="'+(o?"":"display:none;")+'"> '+i+"</div></div>"}),p+="</div>"},_getStatusByDynamicKey:function(e,t,n){return"string"==typeof t||"number"==typeof t?e[t]:"object"==typeof t&&-1!==v.inArray(e[n],t)},showChecked:function(e){v(e).find(".authtree-checkitem:checked").parents(".auth-child").show()},listConvert:function(e,t){return t.primaryKey=t.primaryKey||"id",t.parentKey=t.parentKey||"pid",t.startPid=t.startPid||0,t.authType=t.authType||"type",t.currentDept=t.currentDept?parseInt(t.currentDept):0,t.maxDept=t.maxDept||100,t.childKey=t.childKey||"list",t.checkedKey=t.checkedKey||"checked",t.disabledKey=t.disabledKey||"disabled",t.nameKey=t.nameKey||"name",t.valueKey=t.valueKey||"id",this._listToTree(e,t.startPid,t.currentDept,t)},_listToTree:function(e,t,n,i){if(i.maxDept<n)return[];var o,r,a,s,l=[];for(o in e)e.hasOwnProperty(o)&&void 0!==(r=e[o])[i.parentKey]&&r[i.parentKey]===t&&(s={},0<(a=this._listToTree(e,r[i.primaryKey],n+1,i)).length&&(s[i.childKey]=a),s.name=r[i.nameKey],s.value=r[i.valueKey],s.type=r[i.authType]||0,s.checked=this._getStatusByDynamicKey(r,i.checkedKey,i.valueKey),s.disabled=this._getStatusByDynamicKey(r,i.disabledKey,i.valueKey),l.push(s));return l},treeConvertSelect:function(e,t){return"number"!=typeof e.length||e.length<=0?[]:(t.currentDept=t.currentDept?parseInt(t.currentDept):0,t.childKey=t.childKey||"list",t.nameKey=t.valueKey||"name",t.valueKey=t.valueKey||"value",t.checkedKey=t.checkedKey||"checked",t.disabledKey=t.disabledKey||"disabled",t.prefixChildStr=t.prefixChildStr||"├─ ",t.prefixNoChildStr=t.prefixNoChildStr||"● ",t.prefixDeptStr=t.prefixDeptStr||" ",t.prefixFirstEmpty=t.prefixFirstEmpty||"  ",this._treeToSelect(e,t.currentDept,t))},_treeToSelect:function(e,t,n){for(var i,o,r,a,s=[],l="",c=0;c<t;c++)l+=n.prefixDeptStr;for(i in e)e.hasOwnProperty(i)&&(o=0,r=e[i],n.childKey in r&&r[n.childKey]&&0<r[n.childKey].length&&(o=1),a=r[n.nameKey],a=o?n.prefixChildStr+a:1<t?n.prefixNoChildStr+a:n.prefixFirstEmpty+a,s.push({name:l+a,value:r[n.valueKey],checked:this._getStatusByDynamicKey(r,n.checkedKey,n.valueKey),disabled:this._getStatusByDynamicKey(r,n.disabledKey,n.valueKey)}),o)&&(a=this._treeToSelect(r[n.childKey],t+1,n),s.push.apply(s,a));return s},autoWidthAll:function(){for(var e in this.renderedTrees)this.renderedTrees.hasOwnProperty(e)&&this.autoWidth(e)},autoWidth:function(e){var n=this.getRenderedInfo(e).opt;v(e).css({whiteSpace:"nowrap",maxWidth:"100%"}),v(e).find(".layui-form-checkbox,.layui-form-radio,.layui-form-audio").each(function(e,t){v(this).find("span").width(),v(this).find("i").width();v(this).is(":hidden")&&(v("body").append('<div id="layui-authtree-get-width">'+v(this).html()+"</div>"),v("#layui-authtree-get-width").find("span").width(),v("#layui-authtree-get-width").find("i").width(),v("#layui-authtree-get-width").remove()),n.hidechoose&&(v(this).prevAll("i").css({zIndex:2}),v(this).css({position:"relative",left:function(){return"-"+v(this).css("padding-left")}}).find("i").hide())})},autoNodeRender:function(e){this.getRenderedInfo(e).opt.halfchoose&&this._nodeRenderByParent(v(e).find(".auth-single")),document.styleSheets[0].addRule(e+" .layui-icon-ok:before","content: "+this.checkedIconContent)},_nodeRenderByParent:function(e){},_triggerEvent:function(e,t,n){var i=this.getRenderedInfo(e),o=v(e);if(!i)return!1;var r=i.opt,i={opt:r,tree:i.trees,dst:e,othis:o};n&&"object"==typeof n&&(i=v.extend(i,n)),layui.event.call(o,a,t+"("+e+")",i),layui.event.call(o,a,t+"("+r.layfilter+")",i)},getRenderedInfo:function(e){return this.renderedTrees[e]},_getRenderType:function(e){e=this.getRenderedInfo(e);return e&&e.opt&&"radio"===e.opt.checkType?"radio":"checkbox"}
13,_renderForm:function(e){var t=this._getRenderType(e),e=v(e).closest("form[lay-filter]").attr("lay-filter");e?n.render(t,e):n.render(t)},getMaxDept:function(e){for(var t=v(e),n=0;t.length&&n<1e5&&(t=this._getNext(t)).length;)n++;return n},checkAll:function(e){v(e).find(".authtree-checkitem:not(:disabled):not(:checked)").prop("checked",!0),b._renderForm(e);var t=b._saveNodeStatus(e);b._triggerEvent(e,"change",{checked:t.checked,notChecked:t.notChecked,lastChecked:t.lastChecked,lastNotChecked:t.lastNotChecked}),b._triggerEvent(e,"checkAll")},uncheckAll:function(e){v(e).find(".authtree-checkitem:not(:disabled):checked").prop("checked",!1),b._renderForm(e);var t=b._saveNodeStatus(e);b._triggerEvent(e,"change",{checked:t.checked,notChecked:t.notChecked,lastChecked:t.lastChecked,lastNotChecked:t.lastNotChecked}),b._triggerEvent(e,"uncheckAll")},showAll:function(e){this.showDept(e,this.getMaxDept(e))},closeAll:function(e){this.closeDept(e,1)},toggleAll:function(e){this._shownDept(2)?this.closeDept(e):this.showAll(e)},showDept:function(e,t){for(var n=v(e),i=1;i<t&&(n=this._getNext(n)).length;i++)this._showSingle(n);b._triggerEvent(e,"deptChange",{dept:t})},closeDept:function(e,t){for(var n=v(e),i=0;i<t;i++)n=this._getNext(n);for(;n.length;)this._closeSingle(n),n=this._getNext(n);b._triggerEvent(e,"deptChange",{dept:t})},_saveNodeStatus:function(e){var n=[],i=[],o=[],r=[],t=this.checkedNode[e]||[],a=this.notCheckedNode[e]||[],s={},l={};return layui.each(t,function(e,t){s[t]=!0}),layui.each(a,function(e,t){l[t]=!0}),v(e).find(".authtree-checkitem").each(function(e,t){t.checked?(n.push(t.value),l[t.value]&&o.push(t.value)):(i.push(t.value),s[t.value]&&r.push(t.value))}),this.lastCheckedNode[e]=o,this.lastNotCheckedNode[e]=r,this.checkedNode[e]=n,this.notCheckedNode[e]=i,{checked:n,notChecked:i,lastChecked:o,lastNotChecked:r}},_shownDept:function(e,t){for(var n=v(e),i=0;i<t;i++)n=this._getNext(n);return!n.is(":hidden")},_getNext:function(e){return v(e).find(".auth-single:first>div>.auth-child")},_showSingle:function(e){layui.each(e,function(e,t){var t=v(t).find(".auth-single:first").parent(),n=t.prev();n.find(".auth-icon").hasClass("active")||(t.show(),n.find(".auth-icon").addClass("active").html(b.openIconContent))})},_closeSingle:function(e){var e=v(e).find(".auth-single:first").parent(),t=e.prev();t.find(".auth-icon").hasClass("active")&&(e.hide(),t.find(".auth-icon").removeClass("active").html(b.closeIconContent))},getLeaf:function(e){var e=v(e).find(".auth-leaf").parent().find(".authtree-checkitem:checked"),n=[];return e.each(function(e,t){n.push(t.value)}),n},getAll:function(e){var e=v(e).find(".authtree-checkitem"),n=[];return e.each(function(e,t){n.push(t.value)}),n},getLastChecked:function(e){return this.lastCheckedNode[e]||[]},_getLastChecked:function(e,t,n){var i,o=t,r=[];for(i in o)-1!==v.inArray(o[i],this.notCheckedNode[e])&&r.push(o[i]);return r},getChecked:function(e){var e=v(e).find(".authtree-checkitem:checked"),n=[];return e.each(function(e,t){n.push(t.value)}),n},getLastNotChecked:function(e){return this.lastNotCheckedNode[e]||[]},_getLastNotChecked:function(e,t,n){var i,o=n,r=[];for(i in o)-1!==v.inArray(o[i],this.checkedNode[e])&&r.push(o[i]);return r},getNotChecked:function(e){var e=v(e).find(".authtree-checkitem:not(:checked)"),n=[];return e.each(function(e,t){n.push(t.value)}),n}};e("authtree",b)}),(()=>{var e=window.jQuery;e&&e.fn&&e.fn.bootstrapTable&&!e.fn.bootstrapTable.__acgCommonLocale&&(e.fn.bootstrapTable.__acgCommonLocale=!0,e.extend(e.fn.bootstrapTable.defaults,{formatNoMatches:function(){return'<div class="component-table-empty"><span class="component-table-empty__icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16v14H4z"></path><path d="M4 13h4l2 3h4l2-3h4"></path></svg></span><span>'+i18n("暂无数据")+"</span></div>"},formatLoadingMessage:function(){return i18n("正在加载")+".."},formatShowingRows:function(e,t,n){return 0<n?i18n("显示第 {from} - {to} 条,共 {total} 条").replace("{from}",e).replace("{to}",t).replace("{total}",n):i18n("共 0 条")},formatRecordsPerPage:function(e){return i18n("每页 {n} 条").replace("{n}",e)}}))})();class Table{static getInstances(){return Table.instances??=new Set,Table.instances}static destroyAll(e=null){let n=e?.jquery?e.get(0):e;
13Array.from(Table.getInstances()).forEach(e=>{var t=e.$table?.get(0);n&&t&&n!==t&&!$.contains(n,t)||e.destroy()})}#handleStateButtonClick(e,t){$(`.${t.unique}-query .table-switch-state button`).removeClass("active"),e.addClass("active");var e=e.attr("data-value"),n={},i="equal-"+t.stateField;n[i]=void 0!==e?e:"",t.search?.item?.[i]&&"function"==typeof t.search.setValue&&t.search.setValue(i,n[i],!1),t.reload({pageNumber:1,query:n}),t.#scheduleLifecycleUpdate("state")}#isRowDetailOpen(e){return 0<this.$table.find('tr[data-index="'+e+'"]').next(".detail-view").length}#createRequest(){"string"==typeof this.queryUrl?(this.options.url=this.queryUrl,this.options.method="post"):this.options.data=this.queryUrl}constructor(e,t){this.options={container:t},this.columns=[],this.handleColumns={},this.$deleteSelector=null,this.$table=$(t),this.queryParams=null,this.secret=CryptoJS.MD5((new Date).getTime().toString()).toString(),this.unique=util.generateRandStr(8),this.eventNamespace=".adminTable"+this.unique,this.floatEventNamespace=".adminTableFloat"+this.unique,this.isRendered=!1,this.isDestroyed=!1,this.isDestroying=!1,this.hasEmittedReady=!1,this.lifecycleTimer=null,this.switchEventRegistered=!1,this.loadState={status:Array.isArray(e)?"success":"idle",error:null},this.mobileDictCache=new Map,this.mobileDictRequests=new Set,this.detail=null,this.isShowDetail=!1,this.floatMessage=null,this.isFloatMessage=!1,this.floatMessageMap={},this.isShowButtonDetail=!1,this.buttonDetail={},this.isColumnDetail=!1,this.columnDetail=null,this.isShowToolbar=!1,this.layuiForm=layui.form,this.search=null,this.$table.append(`<div class="${this.unique}-query"></div>`),this.$toolbar=$(`.${this.unique}-query`),this.$state=null,this.stateField=null,this.pagination={size:10,list:[10,20,50,100,500,1e3]},this.isPagination=!0,this.singleSelect=!1,this.cardView=!1,this.fn={complete:[],response:[]},this.queryUrl=e,this.updateUrl=null,this.response=null,this.handleData={},"object"==typeof this.queryUrl&&this.queryUrl.forEach(e=>{this.handleData[e.id]=e}),this.isTreeTable=!1,this.$table.data("adminTable",this),Table.getInstances().add(this)}setWhere(e,t){this.queryParams||(this.queryParams={}),this.queryParams[e]=t}setParamsFilter(e){this.paramsFilter="function"==typeof e?e:null}setColumns(n){var e=getVar("HACK_ROUTE_TABLE_COLUMNS");e instanceof Array&&e.forEach(t=>{if(this.queryUrl===t.route)for(let e=0;e<n.length;e++)n[e].field===t.field&&("after"===t.direction?n.splice(e+1,0,evalResults(t.code)):(n.splice(e,0,evalResults(t.code)),e++))}),this.columns=this.columns.concat(this.#getPreprocessColumns(n))}setPagination(e,t){this.pagination.size=e,this.pagination.list=t}disablePagination(){this.isPagination=!1}setDetail(e){this.isShowDetail=!0,this.columns.unshift(this.#getPreprocessColumn({field:"detail_view",title:"",width:55,type:"button",buttons:[{icon:"fa-duotone fa-regular fa-plus",class:"detail-view",click:(e,t,n,i)=>{let o=$(e.currentTarget);this.#isRowDetailOpen(i)?(this.$table.bootstrapTable("collapseRow",i),o.fadeOut(100,function(){o.html(util.icon("fa-duotone fa-regular fa-plus")).fadeIn(100)})):(this.$table.bootstrapTable("expandRow",i),o.fadeOut(100,function(){o.html(util.icon("fa-duotone fa-regular fa-minus")).fadeIn(100)}))}}]})),this.detail=e}setFloatMessage(e){this.isFloatMessage=!0,this.floatMessage=e}setButtonDetail(e){this.isShowButtonDetail=!0,this.buttonDetail=e,this.columns.unshift(this.#getPreprocessColumn({field:"detail_view",title:"",width:55,type:"button",buttons:[{icon:"fa-duotone fa-regular fa-circle-info",tips:"更多信息",class:"text-primary",click:(e,t,r,n)=>{let a='<table class="table table-bordered table-hover"><tbody>';this.buttonDetail.forEach(e=>{var t=escapeTableHtml(e.title?i18n(e.title):""),n=util.parseStringObject(r,util.replaceDotWithHyphen(e.field)),i="function"==typeof e.formatter;let o=i?e.formatter(n,r):n??"-";if(e.dict){let n=util.generateRandStr(10);a+=`<tr><td>${t}</td><td><span class="${n}">${util.icon("fa-duotone fa-regular fa-spinner icon-spin")}</span></td></tr>`,_Dict.advanced(e.dict,e=>{e.forEach(t=>{t.id==o&&util.timer(()=>new Promise(e=>{0<$("."+n).length?(renderTableDictionaryValue($("."+n),t.name),e(!1)):e(!0)}),50,!0)})})}else""!==o&&null!=o||(o="-"),i||(o=escapeTableHtml(o)),a+=`<tr><td>${t}</td><td>${o}</td></tr>`}),a+="</tbody></table>",component.popup({submit:!1,shadeClose:!0,maxmin:!1,tab:[{name:util.plainText(r.name),form:[{title:!1,name:"custom",type:"custom",complete:(e,t)=>
13{t.html(a)}}]}],autoPosition:!0,content:{css:{height:"auto",overflow:"inherit"}},height:"auto",width:"400px",done:()=>{}})}}]}))}setColumnDetail(e){if(e&&e.column){var t="click"===e.trigger?"click":"dblclick";let o=i18n(e.hint??("dblclick"==t?"双击查看详细信息":"单击查看详细信息")),r=this.unique+"-coldetail-tip";this.isColumnDetail=!0,this.columnDetail={column:e.column,trigger:t,fields:e.fields||[],title:e.title,header:!1!==e.header};var n=this.handleColumns[e.column];if(n){let i=n.formatter;n.formatter=(e,t)=>{let n;return`<div class="md-detail-trigger">${(n="function"==typeof i?i(e,t):""===e||null==e?"-":e)??""}</div>`},n.fn={formatter:n.formatter};var a=n.events||{};a[t+" .md-detail-trigger"]=(e,t,n,i)=>{this.#openColumnDetail(n)},a["mouseenter .md-detail-trigger"]=(e,t,n,i)=>{cache.set(r,layer.tips(o,e.currentTarget,{tips:[1,"#501536"],time:0}))},a["mouseleave .md-detail-trigger"]=(e,t,n,i)=>{layer.close(cache.get(r))},n.events=a}else util.debug("setColumnDetail: 未找到列 -> "+e.column,"#ff4f33")}}#openColumnDetail(r){var e=this.columnDetail;let a="",n=(e.fields.forEach(e=>{var t=escapeTableHtml(e.title?i18n(e.title):""),n=util.parseStringObject(r,util.replaceDotWithHyphen(e.field)),i="function"==typeof e.formatter;let o=i?e.formatter(n,r):n??"-";if(e.dict){let n=util.generateRandStr(10);a+=`<div class="md-detail__row"><span class="md-detail__label">${t}</span><span class="md-detail__value"><span class="${n}">${util.icon("fa-duotone fa-regular fa-spinner icon-spin")}</span></span></div>`,_Dict.advanced(e.dict,e=>{e.forEach(t=>{t.id==o&&util.timer(()=>new Promise(e=>{0<$("."+n).length?(renderTableDictionaryValue($("."+n),t.name),e(!1)):e(!0)}),50,!0)})})}else""!==o&&null!=o||(o="-"),i||(o=escapeTableHtml(o)),a+=`<div class="md-detail__row"><span class="md-detail__label">${t}</span><span class="md-detail__value">${o}</span></div>`}),`<div class="md-detail">${e.header&&"function"==typeof window.mdUserCell?`<div class="md-detail__header">${mdUserCell(r)}</div>`:""}<div class="md-detail__body">${a}</div></div>`),t=e.title;t=(t="function"==typeof t?t(r):t)?i18n(t):r?.username??r?.name??i18n("详细信息");var i=window.AdminMobile;if(!0===i?.isEnabled?.()&&"function"==typeof i.openSheet){var o=document.createElement("div"),i=(o.className="admin-mobile-table-detail",o.innerHTML=n,i.openSheet({id:"table-column-detail-"+this.unique,title:util.plainText(t),subtitle:i18n("完整信息"),content:o,fullScreen:8<e.fields.length,shadeClose:!0}));if(!0===i||!0===i?.handled)return i}component.popup({submit:!1,shadeClose:!0,maxmin:!1,tab:[{name:util.plainText(t),form:[{title:!1,name:"custom",type:"custom",complete:(e,t)=>{t.html(n)}}]}],autoPosition:!0,content:{css:{height:"auto",overflow:"inherit"}},height:"auto",width:"460px"})}enableCardView(){this.cardView=!0}setSearch(n,e=!0){var t=getVar("HACK_ROUTE_TABLE_SEARCH");t instanceof Array&&t.forEach(t=>{if(this.queryUrl===t.route)for(let e=0;e<n.length;e++)n[e].name===t.name&&("after"===t.direction?n.splice(e+1,0,evalResults(t.code)):(n.splice(e,0,evalResults(t.code)),e++))}),this.isShowToolbar=!0,this.search=new Search(this.$toolbar,n,e=>{this.$table.bootstrapTable("refresh",{silent:!1,pageNumber:1,query:e})},e)}setUpdate(e){this.updateUrl=e}#getFieldValue(e,t){t=String(t??"").trim();if(e&&t)return util.parseStringObject(e,util.replaceDotWithHyphen(t))}#setFieldValue(e,t,n){t=String(t??"").trim();if(!e||!t)return!1;t=util.replaceDotWithHyphen(t).split("-").filter(Boolean);if(!t.length)return!1;let i=e;return t.slice(0,-1).forEach(e=>{i[e]&&"object"==typeof i[e]||(i[e]={}),i=i[e]}),i[t[t.length-1]]=n,!0}#idObjToList(e=[]){let t=this.options.idField||"id";return e.map(e=>this.#getFieldValue(e,t))}fullTextSearch(t){this.$table.find("tbody").find("tr").each(function(){var e=$
13(this).text().toLowerCase();$(this).toggle(e.includes(t))})}getSelections(){return this.$table.bootstrapTable("getSelections")}getSelectionIds(){return this.#idObjToList(this.getSelections())}getSearchData(){return this.search?.getData()??{}}getColumns(){return this.columns.map(i=>Object.assign({},i,{buttons:Array.isArray(i.buttons)?i.buttons.map(e=>Object.assign({},e)):i.buttons,mobileHidden:"button"===i.type||Array.isArray(i.buttons),mobileFormatter:(e,t,n)=>this.#mobileDisplayValue(i,t,n,e)}))}#mobileRawValue(e,t){if(e?.field)return util.parseStringObject(t,util.replaceDotWithHyphen(e.field))}#mobileDictValue(t,n){var e=_Dict.result(t.dict,n);return void 0!==e?e:(e=this.mobileDictCache.get(t)?.find(e=>e.id==n))?e.name:(this.mobileDictRequests.has(t)||(this.mobileDictRequests.add(t),_Dict.advanced(t.dict,e=>{this.mobileDictCache.set(t,Array.isArray(e)?e:[]),this.#scheduleLifecycleUpdate("dict")})),n)}#mobileRenderedValue(t,e){var n;return this.isRendered&&!this.isDestroyed&&t?.field&&(n=this.$table.find("thead th").toArray().findIndex(e=>String($(e).attr("data-field")??"")===String(t.field)),e=this.$table.find(`tbody > tr[data-index="${e}"]`).first(),(e=0<=n?e.children("td").eq(n):$()).length)?(n=e.find("input.metadata-text, textarea.metadata-text").first()).length?{found:!0,value:n.val()}:(n=e.find("select.metadata-select").first()).length?{found:!0,value:n.find("option:selected").text()}:((n=e.get(0).cloneNode(!0)).querySelectorAll("script, style, input, select, textarea, button").forEach(e=>e.remove()),n.querySelectorAll("br").forEach(e=>e.replaceWith(document.createTextNode(" · "))),n.querySelectorAll(".md-pair__row, .md-detail__row, .md-user-cell__id, .md-user-cell__sub, .md-file__note").forEach(e=>{e.after(document.createTextNode(" · "))}),(e=(n.textContent||"").replace(/\s*·\s*(?:·\s*)+/g," · ").replace(/^\s*·|·\s*$/g,"").replace(/\s+/g," ").trim())?{found:!0,value:e}:(n=(e=n.querySelector("img[alt], img[title]"))?.getAttribute("alt")||e?.getAttribute("title"))?{found:!0,value:n}:{found:!1,value:void 0}):{found:!1,value:void 0}}#mobileDisplayValue(e,t,n=0,i=void 0){if(!e||"button"===e.type||Array.isArray(e.buttons))return null;if("function"==typeof e.show&&!e.show(t))return"-";let o=void 0===i?this.#mobileRawValue(e,t):i;var i=e.hasOwnProperty("dict"),r=e?.fn?.formatter;if("function"==typeof r&&(e.type||!i))try{o=r(o,t,n)}catch(e){util.debug("Table mobile formatter failed: "+this.unique,"#ff4f33")}return"switch"===e.type?(r=String(e.text??i18n("开启|关闭")).split("|"),1==o||!0===o?i18n(r[0]||"开启"):i18n(r[1]||"关闭")):i?this.#mobileDictValue(e,o):o}getMobileDisplayValue(e,t,n=0){var e="string"==typeof e?this.handleColumns[e]:this.handleColumns[e?.field]??e,i=this.#mobileRenderedValue(e,n);return i.found?i.value:this.#mobileDisplayValue(e,t,n)}getRows(){if(this.isRendered&&!this.isDestroyed)try{return this.$table.bootstrapTable("getData")||[]}catch(e){util.debug("Table data is not available: "+this.unique,"#ff4f33")}return Array.isArray(this.queryUrl)?this.queryUrl:[]}getData(){return this.getRows()}getPagination(){let e=this.options;if(this.isRendered&&!this.isDestroyed)try{e=this.$table.bootstrapTable("getOptions")||e}catch(e){util.debug("Table pagination is not available: "+this.unique,"#ff4f33")}var t=Number(e.pageSize||this.pagination.size||0),n=Number(e.pageNumber||1),i=Number(e.totalRows??this.response?.data?.total??this.getRows().length??0);return{enabled:this.isPagination,pageNumber:n,pageSize:t,total:i,totalPages:this.isPagination&&0<t?Math.ceil(i/t):0<i?1:0}}#getSelectionRowState(e,n,i){let t=!1,o=!0;var r=(e,t)=>{if("function"!=typeof e)return e??t;try{return e(n,i)}catch(e){return util.debug("Table selection rule failed: "+this.unique,"#ff4f33"),t}};t=Boolean(r(e?.disabled,!1)),o=!1!==r(e?.selectable,!0);let a="btSelectItem";if(this.isRendered&&!this.isDestroyed)try{a=this.$table.bootstrapTable("getOptions")?.selectItemName||a}catch(e){util.debug("Table selection options are not available: "+this.unique,"#ff4f33")}var r=this.isRendered&&!this.isDestroyed?this.$table.find(`tbody > tr[data-index="${i}"] input[type="checkbox"], tbody > tr[data-index="${i}"] input[type="radio"]`).filter((e,t)=>
13t.name===a).first():$(),s=(r.length||!1!==e?.checkboxEnabled||(t=!0),e?.fn?.formatter??e?.formatter);if(!r.length&&"function"==typeof s)try{var l=s(e?.field?util.parseStringObject(n,util.replaceDotWithHyphen(e.field)):void 0,n,i);l&&"object"==typeof l&&(t=t||Boolean(l.disabled),!1===l.selectable)&&(o=!1)}catch(e){util.debug("Table selection formatter failed: "+this.unique,"#ff4f33")}return r.length&&(t=t||!0===r.prop("disabled")),o=o&&!t,{row:n,index:i,disabled:!o,selectable:o}}getSelectionState(){let t=[],n=this.columns.find(e=>!0===e?.checkbox||!0===e?.radio);var e=this.getRows();let i=this.options.idField||"id";if(this.isRendered&&!this.isDestroyed)try{t=this.getSelections()}catch(e){t=[]}let o=(e,t)=>e===t||(e=this.#getFieldValue(e,i),t=this.#getFieldValue(t,i),void 0!==e&&void 0!==t&&e==t),r=n?e.map((e,t)=>this.#getSelectionRowState(n,e,t)):[],a=t.filter(t=>{var e=r.find(e=>o(e.row,t));return!e||e.selectable});return r.forEach(t=>{t.selected=a.some(e=>o(t.row,e)),t.id=this.#getFieldValue(t.row,i)}),{enabled:Boolean(n),rows:a,ids:this.#idObjToList(a),single:this.singleSelect||!0===n?.radio,type:!0===n?.radio?"radio":n?"checkbox":null,field:n?.field??i,idField:i,rowStates:r,selectableRows:r.filter(e=>e.selectable).map(e=>e.row),disabledRows:r.filter(e=>e.disabled).map(e=>e.row)}}getLoadState(){var e=this.loadState.status,t=()=>this.refresh(!1);return{status:e,loading:"loading"===e,success:"success"===e,error:"error"===e?this.loadState.error:null,refresh:t,retry:t}}#renderDetail(o){if(this.isShowDetail){if("function"==typeof this.detail)return this.detail(o);if(Array.isArray(this.detail)){let i='<table class="open-detail-view"><tbody>';return this.detail.forEach(e=>{var t=escapeTableHtml(e.title?i18n(e.title):""),n=util.replaceDotWithHyphen(e.field),n=util.parseStringObject(o,n),e="function"==typeof e.formatter?e.formatter(n,o):escapeTableHtml(n??"-");e&&"-"!==e&&(i+="<tr><td>"+t+"</td><td>"+e+"</td></tr>")}),i+"</tbody></table>"}}return""}getDetail(){return{enabled:this.isShowDetail||this.isShowButtonDetail||this.isColumnDetail,definition:this.detail,button:this.isShowButtonDetail?this.buttonDetail:null,column:this.isColumnDetail?this.columnDetail:null,render:e=>this.#renderDetail(e),displayValue:(t,n,i=0)=>{if(t?.field){let e=util.parseStringObject(n,util.replaceDotWithHyphen(t.field));if("function"==typeof t.formatter)try{e=t.formatter(e,n,i)}catch(e){util.debug("Table detail formatter failed: "+this.unique,"#ff4f33")}return e=t.hasOwnProperty("dict")?this.#mobileDictValue(t,e):e}},open:e=>!!this.isColumnDetail&&(this.#openColumnDetail(e),!0)}}#actionIsDangerous(e){e=[e.class,e.icon,e.title,e.tips].filter(Boolean).join(" ");return/(?:text-danger|btn-danger|trash|circle-exclamation|删除|移除|清空|清理|驳回|拒绝|卸载|解绑|禁用|停用|停止|永久)/i.test(e)}getActions(){let r=[];return this.columns.forEach(o=>{Array.isArray(o.buttons)&&o.buttons.forEach((t,e)=>{let i=o.field+":"+e;var n=this.#actionIsDangerous(t);r.push({id:i,field:o.field,index:e,title:i18n(t.title??t.tips??""),icon:t.icon??"",class:t.class??"",danger:n,category:t.category??(n?"danger":!0===t.primary?"primary":"more"),definition:Object.assign({},t),show:e=>!0!==t.hide&&!("function"==typeof o.show&&!o.show(e))&&("function"!=typeof t.show||t.show(e)),invoke:(e,t,n=null)=>this.runAction(i,t,e,n)})})}),r}#findRow(n){var e=this.getRows();let i=this.options.idField||"id",o=-1;if(n&&"object"==typeof n){o=e.indexOf(n);let t=this.#getFieldValue(n,i);o<0&&void 0!==t&&(o=e.findIndex(e=>this.#getFieldValue(e,i)==t))}else o=e.findIndex(e=>this.#getFieldValue(e,i)==n);return{row:0<=o?e[o]:null,index:o}}#getActionTarget(t,e,n,i,o){if(this.isRendered&&!this.isDestroyed&&0<=o){var r=this.$table.find("thead th").toArray().findIndex(e=>String($(e).attr("data-field")??"")===String(t.field)),o=this.$table.find(`tbody > tr[data-index="${o}"]`).first();let e=0<=r?o.children("td").eq(r).find(".index-"+n).first().get(0):null;if(e)return e}o=document.createElement("span"),r=this.#getFieldValue(i,this.options.idField||"id");null!=r&&o.setAttribute("data-id",String(r));let a=document.createElement("a");a.setAttribute("type","button"),a.setAttribute("role","button"),a.setAttribute("tabindex","0"),a.className=["a-badge-glass",e.class,"index-"+n,"me-1","mb-1"].filter(
13Boolean).join(" "),e.icon&&((i=document.createElement("i")).className=e.icon,a.append(i,document.createTextNode(" ")));r=document.createElement("span");return r.className="btn-title",r.textContent=i18n(e.title??""),a.append(r),o.append(a),a}runAction(e,t,n=null,i=null){let[o,r]=String(e).split(":");var e=this.columns.find(e=>String(e.field)===o),a=e?.buttons?.[Number(r)],s=this.#findRow(t),t=s.row||(t&&"object"==typeof t?t:null),i=i??s.index;return!(!a||!t||"function"==typeof e.show&&!e.show(t)||!0===a.hide||"function"==typeof a.show&&!a.show(t))&&"function"==typeof a.click&&(s=this.#getActionTarget(e,a,Number(r),t,i),e=n||$.Event("click",{target:s,currentTarget:s,delegateTarget:s}),n=this.#getFieldValue(t,o),a.click(e,n,t,i))}updateField(e,t,n,i={}){var o,e=this.#findRow(e);return!!e.row&&(i="boolean"==typeof i?i:!0===i.reload,!!this.#setFieldValue(e.row,t,n))&&(o=this.options.idField||"id",void 0!==(o=this.#getFieldValue(e.row,o))&&(this.handleData[o]=e.row),this.#updateDatabase(n,t,o,i),this.isRendered&&!this.isDestroyed&&0<=e.index&&this.$table.bootstrapTable("updateCell",{index:e.index,field:t,value:n,reinit:!0}),this.#scheduleLifecycleUpdate("inline-update"),!0)}updateRow(n,e,i={}){return!(!e||"object"!=typeof e)&&Object.entries(e).every(([e,t])=>this.updateField(n,e,t,i))}setRowSelected(e,t=!0){var n,e=this.#findRow(e);return!(!e.row||!this.isRendered||this.isDestroyed||!(n=this.columns.find(e=>!0===e?.checkbox||!0===e?.radio))||t&&!this.#getSelectionRowState(n,e.row,e.index).selectable||(n=this.options.idField||"id",this.$table.bootstrapTable(t?"checkBy":"uncheckBy",{field:n,values:[this.#getFieldValue(e.row,n)]}),0))}getMobileSnapshot(e=""){return{id:this.unique,queryUrl:this.queryUrl,element:this.$table.get(0),columns:this.getColumns(),rows:this.getRows(),pagination:this.getPagination(),selection:this.getSelectionState(),detail:this.getDetail(),actions:this.getActions(),search:this.search?{definitions:this.search.definitions(),value:this.search.value(),instance:this.search}:null,state:this.stateField?this.getState():null,status:this.getLoadState(),refresh:()=>this.refresh(!1),displayValue:(e,t,n=0)=>this.getMobileDisplayValue(e,t,n),reason:e}}#emitLifecycle(e,t){var n=this.getMobileSnapshot(t),n={table:this,snapshot:n,reason:t},t=$.Event("admin:table:"+e);t.detail=n,this.$table.trigger(t,[n])}#scheduleLifecycleUpdate(e){this.isDestroyed||(clearTimeout(this.lifecycleTimer),this.lifecycleTimer=setTimeout(()=>{this.lifecycleTimer=null,this.hasEmittedReady&&this.#emitLifecycle("update",e)},0))}#setLoadState(e,t=null,n="load-state"){this.loadState={status:e,error:t},this.hasEmittedReady?this.#scheduleLifecycleUpdate(n):"error"===e&&this.isRendered&&!this.isDestroyed&&(this.hasEmittedReady=!0,this.#emitLifecycle("ready",n))}setDeleteSelector(e,t){this.$deleteSelector=$(e),this.$deleteSelector.off(this.eventNamespace).on("click"+this.eventNamespace,()=>{var e=this.#idObjToList(this.getSelections());0==e.length?message.alert("请勾选您希望删除的数据项","error"):"function"==typeof t?t(e):"string"==typeof t&&this.#deleteDatabase(t,e,()=>{this.refresh()})})}getState(){var e=this.$state?.find("button").toArray()??[],t=e.map(e=>{var t=$(e);return{value:t.attr("data-value")??"",label:t.text().trim(),active:t.hasClass("active"),button:e}}),n=t.find(e=>e.active);return{field:this.stateField,value:n?.value??"",options:t,buttons:e,select:e=>this.selectState(e)}}selectState(e=""){let t=String(e??"");e=this.$state?.find("button").toArray().find(e=>String($(e).attr("data-value")??"")===t);return!!e&&(this.#handleStateButtonClick($(e),this),!0)}setState(e,t){let n=this;this.isShowToolbar=!0,this.$toolbar.append(`<div class="table-switch-state ${null!=this.search?"mt-26":""}"><button type="button" class="active">${i18n("全部")}</button></div>`),this.$state=this.$toolbar.find(".table-switch-state"),this.$state.find("button").click(function(){n.#handleStateButtonClick($(this),n)}),this.stateField=e,_Dict.advanced(t,e=>{e.forEach(e=>{e=$(`<button type="button" data-value="${e.id}">${util.plainText(e.name)}</button>`);e.click(function(){n.#handleStateButtonClick($(this),n)}),this.$state.append(e)}),this.#scheduleLifecycleUpdate("state-options")})}getExpandedRows(){let e=[];return this.isTreeTable&&this.$table.find("tr").each(function(){$(this).hasClass("treegrid-expanded")&&e.push($(this).data("id"))}),e}
13restoreExpandedRows(e){e.forEach(e=>{this.$table.find(`[data-id="${e}"]`).treegrid("expand")})}setTree(t=1,e="name",n="id",i="pid",o=!0){this.options.parentIdField=i,this.options.treeShowField=e,this.options.treeShowFieldIndex=t,this.options.idField=n,this.isTreeTable=!0;let r=this;this.onComplete(()=>{var e=this.$table.bootstrapTable("getOptions").columns;e&&e[0][1].visible&&(e={treeColumn:t,onChange:function(){r.$table.bootstrapTable("resetView")}},o||(e.initialState="collapsed"),this.$table.treegrid(e))})}enableSingleSelect(){this.singleSelect=!0}onResponse(e){this.fn.response.push(e)}onComplete(e){this.fn.complete.push(e)}#getPreprocessColumn(l){let e=l?.type,t=l.hasOwnProperty("dict"),o=l.reload?'reload="true"':"";switch(l?.title&&(l.title=i18n(l.title)),l.hasOwnProperty("sort")&&!0===l.sort&&(l.title=l.title+` <span style='cursor: pointer;' data-field='${l.field}' class='btn-sort'><i class="fa-duotone fa-regular fa-arrow-up-arrow-down"></i></span>`),"function"==typeof l.formatter&&(l.fn={formatter:l.formatter}),l.hasOwnProperty("class")&&(l.cellStyle={classes:l.class}),e){case"input":l.formatter=(e,t)=>"function"!=typeof l.show||l.show(t)?(""!==e&&null!=e||(e="-"),"function"==typeof l?.fn?.formatter&&(e=l.fn.formatter(e,t)),`<input class="metadata-text" data-field="${l.field}" data-id="${t.id}" type="text" value="${e}"  ${o}>`):"-";break;case"switch":l.formatter=(e,t)=>{if("function"==typeof l.show&&!l.show(t))return"-";l.text&&(l.text=i18n(l.text)),"function"==typeof l?.fn?.formatter&&(e=l.fn.formatter(e,t));var n=l.text?` lay-text="${l.text}" `:"";return`<div class="nowrap layui-form ${l.text?"layui-switch-text":""}"><input ${1==e?"checked":""} data-field="${l.field}" data-id="${t.id}" lay-filter="${this.unique}-switch" type="checkbox" lay-skin="switch" ${n} ${o}></div>`};break;case"select":l.formatter=(n,e)=>{if("function"==typeof l.show&&!l.show(e))return"-";"function"==typeof l?.fn?.formatter&&(n=l.fn.formatter(n,e));let i=`<select lay-ignore class="metadata-select" data-field="${l.field}" data-id="${e.id}" ${o}>`;return _Dict.advanced(l.dict,e=>{e.forEach(e=>{var t=String(n)===String(e.id)?"selected":"";i+=`<option value="${e.id}" ${t}>${e.name}</option>`})}),i+"</select>"};break;case"button":let a={},s="";l.buttons.forEach((o,e)=>{let r=this.unique+"-button-hover-"+e,t=o.hide?" hide ":"",n=o.class??"";var i=(o.icon??"").match(/\btext-(?:danger|success|primary|warning|info|secondary|dark)\b/);i&&!n.includes(i[0])&&(n=(n+" "+i[0]).trim()),s+=`<a type="button" role="button" tabindex="0" data-btn-title="${o.title??""}" class="a-badge-glass ${t+n} me-1 mb-1 index-${e}">${o.icon?`<i class="${o.icon}"></i> `:""}<span class="btn-title">${i18n(o.title??"")}</span></a>`,a["click .index-"+e]=o.click,a["keydown .index-"+e]=function(e,t,n,i){["Enter"," "].includes(e.key)&&(e.preventDefault(),o.click)&&o.click(e,t,n,i)},a["mouseenter .index-"+e]=function(e,t,n,i){o.tips&&(o.tips=i18n(o.tips),cache.set(r,layer.tips(o.tips,e.currentTarget,{tips:[1,"#501536"],time:0}))),o.mouseenter&&o.mouseenter(e,t,n,i)},a["mouseleave .index-"+e]=function(e,t,n,i){o.tips&&layer.close(cache.get(r)),o.mouseleave&&o.mouseleave(e,t,n,i)}}),l.formatter=(e,o)=>{if("function"==typeof l.show&&!l.show(o))return"-";let r=s;return l.buttons.forEach((t,n)=>{var e=!t.show||t.show(o),i=new RegExp(`<a[^>]*\\bindex-${n}\\b[^>]*>[\\s\\S]*?</a>`,"g");r=e?(r="function"==typeof t?.formatter?r.replace(i,()=>{var e=t.formatter(o);return r?`<span class="index-${n}">${e??""}</span>`:""}):r)&&`<span data-id="${o.id}">${r}</span>`:r.replace(i,"")}),""===r?"<span class='text-gray'>-</span>":r},l.events=a;break;case"image":let n=l.style??"";l.formatter=(e,t)=>"function"==typeof l.show&&!l.show(t)||""===(e="function"==typeof l?.fn?.formatter?l.fn.formatter(e,t):e)||null==e?"-":`<img style="${n}" class="render-image" role="button" tabindex="0" src="${e}" data-id="${t.id}" alt="${i18n("放大图片")}">`;break;default:t?l.formatter=(t,e)=>{if("function"==typeof l.show&&!l.show(e))return"-";e=_Dict.result(l.dict,t);if(null!=e)return e;let n=util.generateRandStr(10);return _Dict.advanced(l.dict,e=>
13{e.forEach(e=>{e.id==t&&renderTableDictionaryValue($("."+n).parent("td"),e.name)})}),util.icon("fa-duotone fa-regular fa-spinner icon-spin "+n)}:l.hasOwnProperty("formatter")||(l.formatter=function(e,t){return"function"!=typeof l.show||l.show(t)?e?escapeTableHtml(i18n(e)):""===e?"-":null==e?e:escapeTableHtml(e):"-"})}return this.handleColumns[l.field]=l}#getPreprocessColumns(e){for(var t in e)e[t]=this.#getPreprocessColumn(e[t]);return e}#createOptions(){this.options=Object.assign(this.options,{pageSize:this.pagination.size,pageList:this.pagination.list,showRefresh:!1,cache:!0,iconsPrefix:"fa",showToggle:!1,toolbar:this.isShowToolbar?`.${this.unique}-query`:"",cardView:this.cardView,pagination:this.isPagination,pageNumber:1,singleSelect:this.singleSelect,sidePagination:"server",contentType:"application/x-www-form-urlencoded",dataType:"json",processData:!1,queryParamsType:"limit",detailViewIcon:!1,detailView:this.isShowDetail,columns:this.columns,queryParams:e=>{if(this.#setLoadState("loading",null,"loading"),e.page=e.offset/e.limit+1,this.queryParams)for(var t in e)this.queryParams[t]=e[t];else this.queryParams=e;var n,i=this.search?.getData();if(i)for(var o in i)""!==i[o]?this.queryParams[o]=i[o]:delete this.queryParams[o];return util.debug("POST(↑):"+this.queryUrl,"#ff4f33",this.queryParams),this.paramsFilter?(n=Object.assign({},this.queryParams),this.paramsFilter(n)||n):this.queryParams},responseHandler:(t,e)=>(this.search?.resetButton(),(this.response=t)?.data?.list&&t.data.list.forEach(e=>{this.handleData[e.id]=e}),util.debug("POST(↓):"+this.queryUrl,"#0bbf4a",t),this.fn.response.forEach(e=>{"function"==typeof e&&e(t)}),{total:t.data.total,rows:t.data.list}),detailFormatter:(e,t,n)=>this.#renderDetail(t),onPostBody:()=>{this.fn.complete.forEach(e=>{"function"==typeof e&&e(this.$table,this.unique,this.response)});let n=this,i=!1;this.isFloatMessage&&($(document).off(this.floatEventNamespace).on("keydown"+this.floatEventNamespace,function(e){if("Control"===e.key&&0<$(".lock-hotkeys").length&&!1===i&&(i=!0,$(".lock-hotkeys").html(`${i18n("按")}Shift${i18n("或")}<b style="cursor: pointer;" class="lock-hotkeys-cancel text-primary">${i18n("点我关闭")}</b>`).css("color","#40e440")),"Shift"===e.key&&!0===i)for(var t in i=!1,n.floatMessageMap)layer.close(n.floatMessageMap[t]),delete n.floatMessageMap[t]}),$(document).on("click"+this.floatEventNamespace,".lock-hotkeys-cancel",function(){for(var e in i=!1,n.floatMessageMap)layer.close(n.floatMessageMap[e]),delete n.floatMessageMap[e]}),this.$table.find("tbody tr").off(this.floatEventNamespace).on("mouseenter"+this.floatEventNamespace,function(){if(!i){var e=$(this).data("index");let r=n.$table.bootstrapTable("getData")[e],a=`<b style="color: #ff2e2e;" class="lock-hotkeys">${i18n("按")}Ctrl${i18n("锁住窗口")}</b><br>`;n.floatMessage.forEach(e=>{var t=escapeTableHtml(e.title?i18n(e.title):""),n=util.parseStringObject(r,util.replaceDotWithHyphen(e.field)),i="function"==typeof e.formatter;let o=i?e.formatter(n,r):n??"-";if(e.dict){let n=util.generateRandStr(10);a+=t+":"+`<span class="${n}">${util.icon("fa-duotone fa-regular fa-spinner icon-spin")}</span><br>`,_Dict.advanced(e.dict,e=>{e.forEach(t=>{t.id==o&&util.timer(()=>new Promise(e=>{0<$("."+n).length?(renderTableDictionaryValue($("."+n),t.name),e(!1)):e(!0)}),50,!0)})})}else""!==o&&null!=o||(o="-"),i||(o=escapeTableHtml(o)),a+=t+":"+o+"\n"}),r?.id&&(n.floatMessageMap[r?.id]=layer.tips(a.replaceAll("\n","<br>"),this,{tips:1,time:0,maxWidth:920}))}}).on("mouseleave"+this.floatEventNamespace,function(){var e;i||(e=$(this).data("index"),(e=n.$table.bootstrapTable("getData")[e])?.id&&layer.close(n.floatMessageMap[e?.id]),e?.id&&delete n.floatMessageMap[e?.id])})),this.#loadTableSuccess(),this.hasEmittedReady?this.#scheduleLifecycleUpdate("data"):(this.hasEmittedReady=!0,this.#emitLifecycle("ready","render"))},rowAttributes:function(e,t){return{"data-id":e.id}},onLoadSuccess:e=>{let t=this.options.idField||"id";e.rows.forEach(e=>{!0===e.checked&&this.$table.bootstrapTable("checkBy",{field:t,values:[this.#getFieldValue(e,t)]})}),this.#setLoadState("success",null,"load-success")},onLoadError:(e,t)=>
13{this.#setLoadState("error",{status:Number(e)||t?.status||0,message:t?.statusText||i18n("数据加载失败")},"load-error")}})}#getData(e){return this.handleData.hasOwnProperty(e)?this.handleData[e]:null}#triggerChange(e,t,n){t=this.handleColumns[t];"function"==typeof t?.change&&t.change(e,this.#getData(n))}#updateDatabase(e,t,n,i=!1){var o;this.#triggerChange(e,t,n),null!=this.updateUrl&&((o={})[t]=e,o.id=n,"function"==typeof this.updateUrl?this.updateUrl(o):"string"==typeof this.updateUrl&&util.post(this.updateUrl,o,e=>{message.success("已更新 (。•ᴗ-)"),i&&this.refresh(!0)},e=>{message.error(e?.msg),this.refresh(!0)}))}#deleteDatabase(e,t,n=null){message.ask("一旦数据被遗弃,您将无法恢复它!",()=>{util.post(e,{list:t},e=>{message.alert("您选择的数据已被系统永久删除。","success"),n&&n(e)})})}refresh(t=!0){if(!this.isDestroyed&&this.isRendered){let e=this.getExpandedRows();this.$table.bootstrapTable("refresh",{silent:t}),this.isTreeTable&&this.$table.one("post-body.bs.table"+this.eventNamespace,()=>{this.restoreExpandedRows(e)})}}reload(e){!this.isDestroyed&&this.isRendered&&this.$table.bootstrapTable("refresh",Object.assign({silent:!0},e))}#loadTableSuccess(){this.$table.addClass(this.unique);let i=this;$(`.${this.unique} .metadata-text`).off(this.eventNamespace).on("change"+this.eventNamespace,function(){i.updateField($(this).attr("data-id"),$(this).attr("data-field"),this.value,{reload:"true"===$(this).attr("reload")})}),$(`.${this.unique} .metadata-select`).off(this.eventNamespace).on("change"+this.eventNamespace,function(){i.updateField($(this).attr("data-id"),$(this).attr("data-field"),this.value,{reload:"true"===$(this).attr("reload")})}),this.switchEventRegistered||(e=`switch(${this.unique}-switch)`,"undefined"!=typeof layui&&"function"==typeof layui.off&&layui.off(e,"form"),this.layuiForm.on(e,function(e){i.isDestroyed||i.updateField($(e.elem).attr("data-id"),$(e.elem).attr("data-field"),e.elem.checked?1:0,{reload:"true"===$(e.elem).attr("reload")})}),this.switchEventRegistered=!0),$(`.${this.unique} .render-image`).off(this.eventNamespace).on(`click${this.eventNamespace} keydown`+this.eventNamespace,function(e){"keydown"===e.type&&!["Enter"," "].includes(e.key)||(e.preventDefault(),component.previewImage($(this).attr("src")))});var e=$(`.${this.unique} .btn-sort`);
13e.off("click"),e.click(function(){var e=$(this).attr("data-field"),t=i.unique+"_sort_"+e;let n=cache.has(t)?parseInt(cache.get(t)):0;3<=n&&(n=0);$(this).html(util.icon(["fa-duotone fa-regular fa-arrow-up-1-9","fa-duotone fa-regular fa-arrow-up-9-1","fa-duotone fa-regular fa-arrow-up-arrow-down"][n])),i.reload({pageNumber:1,query:{sort_rule:["asc","desc",""][n],sort_field:e}}),n++,cache.set(t,n)}),this.layuiForm.render()}#registerGlobalEvent(){this.$table.off(this.eventNamespace),this.$table.on(`check.bs.table${this.eventNamespace} uncheck.bs.table${this.eventNamespace} `+`check-all.bs.table${this.eventNamespace} uncheck-all.bs.table`+this.eventNamespace,(e,r)=>{if(this.isTreeTable&&["check","uncheck"].includes(e.type)){let t="check"===e.type,n=this.options.idField||"id",i=this.options.parentIdField||"pid",o=this.#getFieldValue(r,n);this.$table.bootstrapTable("getData",{useCurrentPage:!1}).filter(e=>this.#getFieldValue(e,i)===o).forEach(e=>{this.$table.bootstrapTable(t?"checkBy":"uncheckBy",{field:n,values:[this.#getFieldValue(e,n)]})})}this.#scheduleLifecycleUpdate("selection")})}render(){return this.isRendered||this.isDestroyed||(this.isRendered=!0,"string"==typeof this.queryUrl&&(this.loadState={status:"loading",error:null}),this.$table.data("adminTable",this),Table.getInstances().add(this),this.#createOptions(),this.#createRequest(),this.$table.bootstrapTable(this.options),this.#registerGlobalEvent()),this}destroy(){if(!this.isDestroyed&&!this.isDestroying){if(this.isDestroying=!0,clearTimeout(this.lifecycleTimer),this.lifecycleTimer=null,this.hasEmittedReady&&this.#emitLifecycle("destroy","destroy"),this.isDestroyed=!0,$(document).off(this.eventNamespace).off(this.floatEventNamespace),this.$deleteSelector?.off(this.eventNamespace),this.$table.off(this.eventNamespace).off(this.floatEventNamespace),Object.values(this.floatMessageMap).forEach(e=>layer.close(e)),this.floatMessageMap={},this.mobileDictCache.clear(),this.mobileDictRequests.clear(),this.switchEventRegistered&&"undefined"!=typeof layui&&"function"==typeof layui.off)try{layui.off(`switch(${this.unique}-switch)`,"form")}catch(e){util.debug("Table switch event destroy skipped: "+this.unique,"#ff4f33")}if(this.switchEventRegistered=!1,this.search?.destroy(),this.isRendered)try{this.$table.bootstrapTable("destroy")}catch(e){util.debug("Table destroy skipped: "+this.unique,"#ff4f33")}this.isRendered=!1,this.isDestroying=!1,this.$table.removeData("adminTable"),Table.getInstances().delete(this)}}}(n=>{"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)})(function(t){(e=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:e)&&e.requirejs||(e?l=e:e={},g={},m={},y={},v={},i=Object.prototype.hasOwnProperty,o=[].slice,b=/\.js$/,p=function(e,t){var n,i,o=u(e),r=o[0],t=t[1];return e=o[1],r&&(n=A(r=c(r,t))),r?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return c(e,i)})):c(e,t):(r=(o=u(e=c(e,t)))[0],e=o[1],r&&(n=A(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},f={require:function(e){return x(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},r=function(e,t,n,i){var o,r,a,s,l,c=[],u=typeof n,d=C(i=i||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,s=0;s<t.length;s+=1)if("require"===(r=(a=p(t[s],d)).f))c[s]=f.require(e);else if("exports"===r)c[s]=f.exports(e),l=!0;else if("module"===r)o=c[s]=f.module(e);else if(w(g,r)||w(m,r)||w(v,r))c[s]=A(r);else{if(!a.p)throw new Error(e+" missing "+r);a.p.load(a.n,x(i,!0),(t=>function(e){g[t]=e})(r),{}),c[s]=g[r]}u=n?n.apply(g[e],c):void 0,e&&(o&&o.exports!==h&&o.exports!==g[e]?g[e]=o.exports:u===h&&l||(g[e]=u))}else e&&(g[e]=n)},s=l=a=function(e,t,n,i,o){if("string"==typeof e)return f[e]?f[e](t):A(p(e,C(t)).f);if(!e.splice){if((y=e).deps&&a(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=o),i?r(h,e,t,n):setTimeout(function(){r(h,e,t,n)},4),a},a.config=function(e){return a(e)},s._defined=g,(n=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(g,e)||w(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=s,e.require=l,e.define=n),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(r){var i={};function c(e){var t,n=e.prototype,i=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&i.push(t);return i}function e(){this.listeners={}}i.Extend=function(e,t){var n,i={}.hasOwnProperty;function o(){this.constructor=e}for(n in t)i.call(t,n)&&(e[n]=t[n]);return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e},i.Decorate=function(i,o){var e=c(o),t=c(i);function r(){var e=Array.prototype.unshift,t=o.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=o.prototype.constructor),n.apply(this,arguments)}o.displayName=i.displayName,r.prototype=new function(){this.constructor=r};for(var n=0;n<t.length;n++){var a=t[n];r.prototype[a]=i.prototype[a]}for(var s=0;s<e.length;s++){var l=e[s];r.prototype[l]=(e=>{var t=function(){},n=(e in r.prototype&&(t=r.prototype[e]),o.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}})(l)}return r},e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
13);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=r(t),i=t.style.overflowX,o=t.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){var n;"1.7"===r.fn.jquery.substr(0,3)&&(n=r(),r.map(t,function(e){n=n.add(e)}),t=n),e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){e=i.GetUniqueElementId(e);i.__cache[e]||(i.__cache[e]={}),i.__cache[e][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:r(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(u,d){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return d.Extend(i,d.Observable),i.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],i=this.option(i);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=u.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<u.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t,n=document.createElement("li"),i=(n.className="select2-results__option",{role:"option","aria-selected":"false"}),o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&o.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==e.id&&delete i["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(i.role="group",i["aria-label"]=e.text,delete i["aria-selected"]),i)n.setAttribute(t,i[t]);if(e.children){var o=u(n),r=document.createElement("strong");r.className="select2-results__group",u(r),this.template(e,r);for(var a=[],s=0;s<e.children.length;s++){var l=e.children[s],l=this.option(l);a.push(l)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});c.append(a),o.append(r),o.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},i.prototype.bind=function(t,e){var o=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){o.clear(),o.append(e.data),t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("results:append",function(e){o.append(e.data),t.isOpen()&&o.setClasses()}),t.on("query",function(e){o.hideMessages(),o.showLoading(e)}
vendor: 4,824 bytes, line 13
13),t.on("select",function(){t.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect"))&&o.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect"))&&o.highlightFirstItem()}),t.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),t.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=o.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),"true"==t.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=o.getHighlightedResults(),n=o.$results.find("[aria-selected]"),i=n.index(t);i<=0||(i=i-1,0===t.length&&(i=0),(t=n.eq(i)).trigger("mouseenter"),n=o.$results.offset().top,t=t.offset().top,e=o.$results.scrollTop()+(t-n),0===i?o.$results.scrollTop(0):t-n<0&&o.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=o.getHighlightedResults(),i=o.$results.find("[aria-selected]"),n=i.index(n)+1;n>=i.length||((i=i.eq(n)).trigger("mouseenter"),e=o.$results.offset().top+o.$results.outerHeight(!1),i=i.offset().top+i.outerHeight(!1),t=o.$results.scrollTop()+i-e,0===n?o.$results.scrollTop(0):e<i&&o.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){o.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=o.$results.height();t?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=u(this),n=d.GetData(this,"data");"true"!==t.attr("aria-selected")?o.trigger("select",{originalEvent:e,data:n}):o.options.get("multiple")?o.trigger("unselect",{originalEvent:e,data:n}):o.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=d.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:t,element:u(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e,t,n,i,o=this.getHighlightedResults();0!==o.length&&(e=this.$results.find("[aria-selected]").index(o),t=this.$results.offset().top,i=o.offset().top,n=this.$results.scrollTop()+(i-t),i=i-t,n-=2*o.outerHeight(!1),e<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=i(n):u(t).append(n)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,o){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return i.Extend(r,i.Observable),r.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},r.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===o.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","fal
13se"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},r.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},r.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var n=this,i=(o.__super__.bind.apply(this,arguments),t.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){var t,n;0!==e.length?(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,s){function o(e,t){o.__super__.constructor.apply(this,arguments)}return s.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=s.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=this.selectionContainer(),r=this.display(i,o),r=(o.append(r),i.title||i.text);r&&o.attr("title",r),s.StoreData(o[0],"data",i),t.push(o)}var a=this.$selection.find(".select2-selection__rendered");s.appendMany(a,t)}},o}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},t}
vendor: 9,200 bytes, line 13
13),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(n,i,s){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=s.GetData(n[0],"data"),o=this.$element.val(),r=(this.$element.val(this.placeholder.id),{data:i});if(this.trigger("clear",r),r.prevented)this.$element.val(o);else{for(var a=0;a<i.length;a++)if(r={data:i[a]},this.trigger("unselect",r),r.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){e.call(this,t),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(e=this.options.get("translations").get("removeAllItems"),e=n('<span class="select2-selection__clear" title="'+e()+'">&times;</span>'),s.StoreData(e[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(e))},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(n,a,s){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>'),t=(this.$searchContainer=t,this.$search=t.find("input"),e.call(this));return this._transferTabIndex(),t},e.prototype.bind=function(e,t,n){var i=this,o=t.id+"-results",e=(e.call(this,t,n),t.on("open",function(){i.$search.attr("aria-controls",o),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===i.$search.val()&&0<(t=i.$searchContainer.prev(".select2-selection__choice")).length&&(t=a.GetData(t[0],"data"),i.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="",e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(a){function e(){}return e.prototype.bind=function(e,t,n){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],r=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==a.inArray(e,o)&&(n=a.Event("select2:"+e,{params:t=t||{}}),i.$element.trigger(n),-1!==a.inArray(e,r))&&(t.prevented=n.isDefaultPrevented())})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
13V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(n){function i(e,t){i.__super__.constructor.call(this)}return n.Extend(i,n.Observable),i.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},i.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},i.prototype.bind=function(e,t){},i.prototype.destroy=function(){},i.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},i}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,s){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=s(this),e=n.item(e);t.push(e)}),e(t)},n.prototype.select=function(o){var e,r=this;o.selected=!0,s(o.element).is("option")?(o.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element.prop("multiple")?this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var n=0;n<o.length;n++){var i=o[n].id;-1===s.inArray(i,t)&&t.push(i)}r.$element.val(t),r.$element.trigger("input").trigger("change")}):(e=o.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(o){var r=this;this.$element.prop("multiple")&&(o.selected=!1,s(o.element).is("option")?(o.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==o.id&&-1===s.inArray(i,t)&&t.push(i)}r.$element.val(t),r.$element.trigger("input").trigger("change")}))},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],i=this;this.$element.children().each(function(){var e=s(this);(e.is("option")||e.is("optgroup"))&&(e=i.item(e),null!==(e=i.matches(t,e)))&&n.push(e)}),e({results:n})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,n=s(t),e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),n},n.prototype.item=function(e){var t={};if(null==(t=a.GetData(e[0],"data"))){if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},n=e.children("option"),i=[],o=0;o<n.length;o++){var r=s(n[o]),r=this.item(r);i.push(r)}t.children=i}(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){return e!==Object(e)&&(e={id:e,text:e}),null!=(e=s.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),s.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,c,u){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return c.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e;0===this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()}).length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(u(this)).id}).get(),o=[];for(var r=0;r<e.length;r++){var a,s,l=this._normalizeItem(e[r]);0<=u.inArray(l.id,i)?(a=n.filter((e=>function(){return u(this).val()==e.id})(l)),s=this.item(a),s=u.extend(!0,{},l,s),s=this.option(s),a.replaceWith(s)):(a=this.option(l),l.children&&(s=this.convertToOptions(l.children),c.appendMany(a,s)),o.push(a))}return o},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,r){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){return r.extend({},{data:function(e){return r.extend({},e,{q:e.term})},transport:function(e,t,n){e=r.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(t,n){var i=this,o=(null!=this._request&&(r.isFunction(this._request.abort)&&this._request.abort(),this._request=null),r.extend({type:"GET"},this.ajaxOptions));function e(){var e=o.transport(o,function(e){e=i.processResults(e,t);i.options.get("debug")&&window.console&&console.error&&(e&&e.results&&r.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(s){function e(e,t,n){var i=n.get("tags"),o=n.get("createTag"),o=(void 0!==o&&(this.createTag=o),n.get("insertTag"));if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),s.isArray(i))for(var r=0;r<i.length;
vendor: 9,005 bytes, line 13
13r++){var a=i[r],a=this._normalizeItem(a),a=this.option(a);this.$element.append(a)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,o=0;o<i.length;o++){var r=i[o],a=null!=r.children&&!e({results:r.children},!0);if((r.text||"").toUpperCase()===(c.term||"").toUpperCase()||a)return!n&&(t.data=i,void u(t))}if(n)return!0;var s,l=d.createTag(c);null!=l&&((s=d.option(l)).attr("data-select2-tag",!0),d.addOptions([s]),d.insertTag(i,l)),t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){t=s.trim(t.term);return""===t?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||s(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this,o=(t.term=t.term||"",this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);i.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=i.option(t)).attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([e])),i.trigger("select",{data:t})}));o.term!==t.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),t.term=o.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var o=n.get("tokenSeparators")||[],r=t.term,a=0,s=this.createTag||function(e){return{id:e.term,text:e.term}};a<r.length;){var l=r[a];-1!==c.inArray(l,o)&&(l=r.substr(0,a),null!=(l=s(c.extend({},t,{term:l}))))?(i(l),r=r.substr(a+1)||"",a=0):a++}return{term:r}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(r,e){function t(){}return t.prototype.render=function(e){var e=e.call(this),t=r('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=t,this.$search=t.find("input"),e.prepend(t),e},t.prototype.bind=function(e,t,n){var i=this,o=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",o),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,a){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.
13select2."+t.id,o="resize.select2."+t.id,t="orientationchange.select2."+t.id,r=this.$container.parents().filter(a.hasScroll);r.each(function(){a.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),r.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(i+" "+o+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),u(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset(),r=(o.bottom=o.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)}),a=(r.top=o.top,r.bottom=o.top+r.height,this.$dropdown.outerHeight(!1)),s=e.scrollTop(),e=e.scrollTop()+e.height(),s=s<o.top-a,e=e>o.bottom+a,o={left:o.left,top:r.bottom},l=this.$dropdownParent,c=("static"===l.css("position")&&(l=l.offsetParent()),{top:0,left:0});(u.contains(document.body,l[0])||l[0].isConnected)&&(c=l.offset()),o.top-=c.top,o.left-=c.left,t||n||(i="below"),e||!s||t?!s&&e&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(o.top=r.top-c.top-a),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(o)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(l,r,a,s,c,u,d,h,p,f,g,t,m,y,v,b,w,x,A,C,k,_,S,E,T,$,D,L,e){function n(){this.reset()}return n.prototype.apply=function(e){var t;null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,A)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,C)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,w)),null!=e.query&&(t=r(e.amdBase+"compat/query"),e.dataAdapter=f.Decorate(e.dataAdapter,t)),null!=e.initSelection)&&(t=r(e.amdBase+"compat/initSelection"),e.dataAdapter=f.Decorate(e.dataAdapter,t)),null==e.resultsAdapter&&(e.resultsAdapter=a,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,D)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=k:(t=f.Decorate(k,_),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,$)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,L)),null==e.dropdownCssClass&&null==e.dropdownCss&&null==e.adaptDropdownCssClass||(t=r(e.amdBase+"compat/dropdownCss"),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,t)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=c:e.selectionAdapter=s,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),null==e.containerCssClass&&null==e.containerCss&&null==e.adaptC
13ontainerCssClass||(t=r(e.amdBase+"compat/containerCss"),e.selectionAdapter=f.Decorate(e.selectionAdapter,t)),e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var n=[],i=0;i<e.language.length;i++){var o=e.language[i];-1===n.indexOf(o)&&n.push(o)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function s(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(""===l.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=l.extend(!0,{},n),o=n.children.length-1;0<=o;o--)null==e(t,n.children[o])&&i.children.splice(o,1);return 0<i.children.length?i:e(t,i)}var r=s(n.text).toUpperCase(),a=s(t.term).toUpperCase();return-1<r.indexOf(a)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,o=t.prop("lang"),t=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(t));return e.language=o,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=l.isArray(e)?e:[e],i=[],o=0;o<n.length;o++)i.push(n[o]),"string"==typeof n[o]&&0<n[o].indexOf("-")&&(t=n[o].split("-")[0],i.push(t));return i},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var o=new g,r=e[i];if("string"==typeof r)try{o=g.loadPath(r)}catch(e){try{r=this.defaults.amdLanguageBase+r,o=g.loadPath(r)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else o=l.isPlainObject(r)?new g(r):r;n.extend(o)}return n},n.prototype.set=function(e,t){var n={},e=(n[l.camelCase(e)]=t,f._convertData(n));l.extend(!0,this.defaults,e)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(n,c,i,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")&&(e=n(this.get("amdBase")+"compat/inputData"),this.options.dataAdapter=u.Decorate(this.options.dataAdapter,e))}return e.prototype.fromElement=function(e){var t=["select2"],n=(null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl"))),{});function i(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var r,a=e[0].attributes[o].name;"data-"==a.substr(0,"data-".length)&&(a=a.substring("data-".length),r=u.GetData(e[0],a),n[a.replace(/-([a-z])/g,i)]=r)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var s,l=c.extend(!0,{},u.GetData(e[0]),n);for(s in l=u._convertData(l))-1<c.inArray(s,t)||(c.isPlainObject(this.options[s])?c.extend(this.options[s],l[s]):this.options[s]=l[s]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(r,o,a,i){function s(e,t){null!=a.GetData(e[0],"select2")&&a.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new o(t=t||{},e),s.__super__.constructor.call(this);var t=e.attr("tabindex")||0,t=(a.StoreData(e[0],"old-tabindex",t),e.attr("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),i=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),a.StoreData(e[0],"select2",this),e.data("select2",this)}return a.Extend(s,a.Observable),s.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+a.generateChars(2):a.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},s.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},s.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(i=this._resolveWidth(e,"style"))?i:this._resolveWidth(e,"element");
13if("element"==t)return(i=e.outerWidth(!1))<=0?"auto":i+"px";if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var i=e.attr("style");if("string"==typeof i)for(var o=i.split(";"),r=0,a=o.length;r<a;r+=1){var s=o[r].replace(/\s/g,"").match(n);if(null!==s&&1<=s.length)return s[1]}return null},s.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},s.prototype._registerDomEvents=function(){var t=this,e=(this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=a.bind(this._syncAttributes,this),this._syncS=a.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA),window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver);null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},s.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},s.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===r.inArray(e,i)&&n.trigger(e,t)})},s.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},s.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},s.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},s.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},s.prototype._isChangeMutation=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var o=0;o<t.addedNodes.length;o++)t.addedNodes[o].selected&&(n=!0);else t.removedNodes&&0<t.removedNodes.length?n=!0:r.isArray(t)&&r.each(t,function(e,t){if(i._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},s.prototype._syncSubtree=function(e,t){var e=this._isChangeMutation(e,t),n=this;e&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},s.prototype.trigger=function(e,t){var n=s.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var o={prevented:!1,name:e,args:t};if(n.call(this,i[e],o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},s.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},s.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},s.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},s.prototype.isEnabled=function(){return!this.isDisabled()},s.prototype.isDisabled=function(){return this.options.get("disabled")},s.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},s.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")}
13,s.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},s.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element.prop("disabled",e)},s.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},s.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];r.isArray(e)&&(e=r.map(e,function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},s.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",a.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),a.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},s.prototype.render=function(){var e=r('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),a.StoreData(e[0],"element",this.$element),e},s}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,e,r,t,a){var s;return null==o.fn.select2&&(s=["open","close","destroy"],o.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=o.extend(!0,{},t);new r(o(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=a.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<o.inArray(t,s)?this:n}),null==o.fn.select2.defaults&&(o.fn.select2.defaults=t),r});var e,n,h,r,a,p,f,g,m,y,v,i,o,b,s={define:e.define,require:e.require},l=s.require("jquery.select2");function w(e,t){return i.call(e,t)}function c(e,t){var n,i,o,r,a,s,l,c,u,d,h=t&&t.split("/"),p=y.map,f=p&&p["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[t])&&(e[t]=e[t].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),c=0;c<e.length;c++)if("."===(d=e[c]))e.splice(c,1),--c;else if(".."===d){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;0<c&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((h||f)&&p){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),h)for(u=h.length;0<u;--u)if(o=(o=p[h.slice(0,u).join("/")])&&o[i]){r=o,a=c;break}if(r)break;!s&&f&&f[i]&&(s=f[i],l=c)}!r&&s&&(r=s,a=l),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function x(t,n){return function(){var e=o.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),a.apply(h,e.concat([t,n]))}}function A(e){var t;if(w(m,e)&&(t=m[e],delete m[e],v[e]=!0,r.apply(h,t)),w(g,e)||w(v,e))return g[e];throw new Error("No "+e)}function u(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function C(e){return e?u(e):[]}return t.fn.select2.amd=s,l}),cache={caches:{},set(e,t){this.caches[e]=t},get(e){return this.caches.hasOwnProperty(e)?this.caches[e]:null},has(e){return this.caches.hasOwnProperty(e)},del(e){delete this.caches[e]}},((e,t)=>{"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exp
13orts.wangEditor=t():e.wangEditor=t()})(window,function(){return i={},o.m=n=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return r}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return l}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return u}),n.d(t,"__generator",function(){return d}),n.d(t,"__createBinding",function(){return h}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return f}),n.d(t,"__read",function(){return g}),n.d(t,"__spread",function(){return m}),n.d(t,"__spreadArrays",function(){return y}),n.d(t,"__spreadArray",function(){return v}),n.d(t,"__await",function(){return b}),n.d(t,"__asyncGenerator",function(){return w}),n.d(t,"__asyncDelegator",function(){return x}),n.d(t,"__asyncValues",function(){return A}),n.d(t,"__makeTemplateObject",function(){return C}),n.d(t,"__importStar",function(){return _}),n.d(t,"__importDefault",function(){return S}),n.d(t,"__classPrivateFieldGet",function(){return E}),n.d(t,"__classPrivateFieldSet",function(){return T});var i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n}function s(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;0<=s;s--)(o=e[s])&&(a=(r<3?o(a):3<r?o(t,n,a):o(t,n))||a);return 3<r&&a&&Object.defineProperty(t,n,a),a}function l(n,i){return function(e,t){i(e,t,n)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})}function d(i,o){var r,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return l.label++,{value:t[1],done:!1};case 5:l.label++,a=t[1],t=[0];continue;case 7:t=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){l=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))l.label=t[1];else if(6===t[0]&&l.label<s[1])l.label=s[1],s=t;else{if(!(s&&l.label<s[2])){s[2]&&l.ops.pop(),l.trys.pop();continue}l.label=s[2],l.ops.push(t)}}t=o.call(i,l)}catch(e){t=[6,e],a=0}finally{r=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}var h=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){e[i=void 0===i?n:i]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||h(t,e,n)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);
13if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),o=0,t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function v(e,t){for(var n=0,i=t.length,o=e.length;n<i;n++,o++)e[o]=t[n];return e}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){var o,r,a;if(Symbol.asyncIterator)return o=n.apply(e,t||[]),r=[],a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a;throw new TypeError("Symbol.asyncIterator is not defined.");function i(i){o[i]&&(a[i]=function(n){return new Promise(function(e,t){1<r.push([i,n,e,t])||s(i,n)})})}function s(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(r[0][2],n)}catch(e){u(r[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),r.shift(),r.length&&s(r[0][0],r[0][1])}}function x(i){var o,e={};return t("next"),t("throw",function(e){throw e}),t("return"),e[Symbol.iterator]=function(){return this},e;function t(t,n){e[t]=i[t]?function(e){return(o=!o)?{value:b(i[t](e)),done:"return"===t}:n?n(e):e}:n}}function A(a){var e,t;if(Symbol.asyncIterator)return(t=a[Symbol.asyncIterator])?t.call(a):(a=f(a),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);throw new TypeError("Symbol.asyncIterator is not defined.");function n(r){e[r]=a[r]&&function(o){return new Promise(function(e,t){var n,i;o=a[r](o),n=e,e=t,i=o.done,t=o.value,Promise.resolve(t).then(function(e){n({value:e,done:i})},e)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&h(t,e,n);return k(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(t.has(e))return t.get(e);throw new TypeError("attempted to get private field on non-instance")}function T(e,t,n){if(t.has(e))return t.set(e,n),n;throw new TypeError("attempted to set private field on non-instance")}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(89)),l=i(n(4)),a=i(n(26)),s=i(n(17)),c=i(n(120)),u=i(n(27)),d=i(n(91)),h=i(n(70)),p=i(n(44)),f=i(n(57)),g=((0,o.default)(t,"__esModule",{value:!0}),t.DomElement=void 0,n(2)),m=n(6),y=[];function v(e){var t=[],e=(0,r.default)(e)?e:e.split(";");return(0,l.default)(e).call(e,function(e){2===(e=(0,a.default)(e=e.split(":")).call(e,function(e){return(0,s.default)(e).call(e)})).length&&t.push(e[0]+":"+e[1])}),t}(0,o.default)(w.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),w.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},w.prototype.clone=function(t){void 0===t&&(t=!1);var e,n=[];return(0,l.default)(e=this.elems).call(e,function(e){n.push(e.cloneNode(!!t))}),x(n)},w.prototype.get=function(e){var t=this.length;return t<=(e=void 0===e?0:e)&&(e%=t),x(this.elems[e])},w.prototype.first=function(){return this.get(0)},w.prototype.last=function(){var e=this.length;return this.get(e-1)},w.prototype.on=function(n,i,o){return n?("function"==typeof i&&(o=i,i=""),(0,l.default)(this).call(this,function(e){var t;i?(e.addEventListener(n,t=function(e){var t=e.target;t.matches(i)&&o.call(t,e)}),y.push({elem:e,selector:i,fn:o,agentFn:t})):e.addEventListener(n,o)})):this},w.prototype.off=function(r,a,s){return r?("function"==typeof a&&(s=a,a=""),
vendor: 10,763 bytes, line 13
13(0,l.default)(this).call(this,function(e){if(a){for(var t,n=-1,i=0;i<y.length;i++){var o=y[i];if(o.selector===a&&o.fn===s&&o.elem===e){n=i;break}}-1!==n&&(t=(0,d.default)(y).call(y,n,1)[0].agentFn,e.removeEventListener(r,t))}else e.removeEventListener(r,s)})):this},w.prototype.attr=function(t,n){return null==n?this.elems[0].getAttribute(t)||"":(0,l.default)(this).call(this,function(e){e.setAttribute(t,n)})},w.prototype.removeAttr=function(t){(0,l.default)(this).call(this,function(e){e.removeAttribute(t)})},w.prototype.addClass=function(n){return n?(0,l.default)(this).call(this,function(e){var t;e.className?(t=e.className.split(/\s/),t=(0,h.default)(t).call(t,function(e){return!!(0,s.default)(e).call(e)}),(0,u.default)(t).call(t,n)<0&&t.push(n),e.className=t.join(" ")):e.className=n}):this},w.prototype.removeClass=function(n){return n?(0,l.default)(this).call(this,function(e){var t;e.className&&(t=e.className.split(/\s/),t=(0,h.default)(t).call(t,function(e){return!(!(e=(0,s.default)(e).call(e))||e===n)}),e.className=t.join(" "))}):this},w.prototype.hasClass=function(e){var t;return!!e&&!!(t=this.elems[0]).className&&(t=t.className.split(/\s/),(0,p.default)(t).call(t,e))},w.prototype.css=function(n,e){var i=""==e?"":n+":"+e+";";return(0,l.default)(this).call(this,function(e){var t=(0,s.default)(t=e.getAttribute("style")||"").call(t);t?(t=v(t),t=(0,a.default)(t).call(t,function(e){return 0===(0,u.default)(e).call(e,n)?i:e}),i&&(0,u.default)(t).call(t,i)<0&&t.push(i),i||(t=v(t)),e.setAttribute("style",t.join("; "))):e.setAttribute("style",i)})},w.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},w.prototype.show=function(){return this.css("display","block")},w.prototype.hide=function(){return this.css("display","none")},w.prototype.children=function(){var e=this.elems[0];return e?x(e.children):null},w.prototype.childNodes=function(){var e=this.elems[0];return e?x(e.childNodes):null},w.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},w.prototype.append=function(e){return(0,l.default)(this).call(this,function(t){(0,l.default)(e).call(e,function(e){t.appendChild(e)})})},w.prototype.remove=function(){return(0,l.default)(this).call(this,function(e){var t;e.remove?e.remove():(t=e.parentElement)&&t.removeChild(e)})},w.prototype.isContain=function(e){var t=this.elems[0],e=e.elems[0];return t.contains(e)},w.prototype.getNodeName=function(){return this.elems[0].nodeName},w.prototype.getNode=function(e){return this.elems[e=void 0===e?0:e]},w.prototype.find=function(e){return x(this.elems[0].querySelectorAll(e))},w.prototype.text=function(t){return t?(0,l.default)(this).call(this,function(e){e.innerHTML=t}):this.elems[0].innerHTML.replace(/<[^>]+>/g,function(){return""})},w.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},w.prototype.val=function(){var e=this.elems[0];return(0,s.default)(e=e.value).call(e)},w.prototype.focus=function(){return(0,l.default)(this).call(this,function(e){e.focus()})},w.prototype.prev=function(){return x(this.elems[0].previousElementSibling)},w.prototype.next=function(){return x(this.elems[0].nextElementSibling)},w.prototype.getNextSibling=function(){return x(this.elems[0].nextSibling)},w.prototype.parent=function(){return x(this.elems[0].parentElement)},w.prototype.parentUntil=function(e,t){return"BODY"===(t=t||this.elems[0]).nodeName||null===(t=t.parentElement)?null:t.matches(e)?x(t):this.parentUntil(e,t)},w.prototype.parentUntilEditor=function(e,t,n){return x(n=n||this.elems[0]).equal(t.$textContainerElem)||x(n).equal(t.$toolbarElem)||null===(n=n.parentElement)?null:n.matches(e)?x(n):this.parentUntilEditor(e,t,n)},w.prototype.equal=function(e){return e instanceof w?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e},w.prototype.insertBefore=function(e){var n=x(e).elems[0];return n?(0,l.default)(this).call(this,function(e){var t=n.parentNode;null!=t&&t.insertBefore(e,n)}):this},w.prototype.insertAfter=function(e){var n=x(e).elems[0],i=n&&n.nextSibling;return n?(0,l.default)(this).call(this,function(e){var t=n.parentNode;i?t.insertBefore(e,i):t.appendChild(e)}):this},w.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},w.prototype.getNodeTop=function(e){var t;return this.length<1||(t=this.parent(),e.$textElem.equal(this))||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},w.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},w.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})};var b=w;function w(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,e){if(e instanceof w)return e;var t,n=[],i=e instanceof Node?e.nodeType:-1,o=(this.selector=e,1===i||9===i?n=[e]:(t=e)&&(t instanceof HTMLCollection||t instanceof NodeList)?n=m.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(t=(0,s.default)(i=e.replace("/\n/mg","")).call(i),n=0===(0,u.default)(t).call(t,"<")?(e=t,(i=document.createElement("div")).innerHTML=e,m.toArray(i=i.children)):(t=document.querySelectorAll(t),m.toArray(t))),n.length);if(!o)return this;for(var r=0;r<o;r++)this.elems.push(n[r]);this.length=o}}function x(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,f.default)(b).apply(b,g.__spreadArrays([void 0],e)))}t.DomElement=b,t.default=x},function(e,t,n){e.exports=n(180)},function(e,t,n){var f=n(8),g=n(71).f,m=n(100),y=n(9),v=n(39),b=n(19),w=n(16);e.exports=function(e,t){var n,i,o,r,a,s=e.target,l=e.global,c=e.stat,u=e.proto,d=l?f:c?f[s]:(f[s]||{}).prototype,h=l?y:y[s]||(y[s]={}),p=h.prototype;for(n in t)r=!m(l?n:s+(c?".":"#")+n,e.forced)&&d&&w(d,n),i=h[n],r&&(o=e.noTargetGet?(a=g(d,n))&&a.value:d[n]),a=r&&o?o:t[n],r&&typeof i==typeof a||(r=e.bind&&r?v(a,f):e.wrap&&r?(i=>{function e(e,t,n){if(this instanceof i){switch(arguments.length){case 0:return new i;case 1:return new i(e);case 2:return new i(e,t)}return new i(e,t,n)}return i.apply(this,arguments)}return e.prototype=i.prototype,e})(a):u&&"function"==typeof a?v(Function.call,a):a,(e.sham||a&&a.sham||i&&i.sham)&&b(r,"sham",!0),h[n]=r,u&&(w(y,r=s+"Prototype")||b(y,r,{}),y[r][n]=a,e.real)&&p&&!p[n]&&b(p,n,a))}},function(e,t,n){var i=n(0),o=i(n(92)),r=i(n(1)),a=i(n(256)),s=i(n(45)),l=i(n(46)),c=i(n(89)),u=i(n(26)),d=((0,r.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0,n(2)),n=(h.prototype.isIE=function(){return"ActiveXObject"in window},h.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},h);function h(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,a.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}t.UA=new n,t.getRandom=function(e){return(e=void 0===e?"":e)+(0,s.default)(e=Math.random().toString()).call(e,2)},t.replaceHtmlSymbol=function(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},t.replaceSpecialSymbol=function(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){for(var n,i=e.length||0,o=0;o<i&&(n=e[o],!1!==t.call(e,n,o));o++);},t.throttle=function(i,o){void 0===o&&(o=200);var r=!1;return function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,(0,l.default)(function(){r=!1,i.call.apply(i,d.__spreadArrays([e],t))},o))}},t.debounce=function(i,o){void 0===o&&(o=200);var r=0;return function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&window.clearTimeout(r),r=(0,l.default)(function(){r=0,i.call.apply(i,d.__spreadArrays([e],t))},o)}},t.isFunction=function(e){return"function"==typeof e},t.deepClone=function e(t){if("object"!==(0,o.default)(t)||"function"==typeof t||null===t)return t;var n,i;for(i in(0,c.default)(t)&&(n=[]),(0,c.default)(t)||(n={}),t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e(t[i]));return n},t.toArray=function(e){return(0,s.default)(Array.prototype).call(e)},t.getRandomCode=function(){var e;return(0,s.default)(e=Math.random().toString(36)).call(e,-5)},t.hexToRgb=function(e){return null==(e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?null:"rgb("+(e=(0,u.default)(e).call(e,function(e){return(0,a.default)(e,16)}))[1]+", "+e[2]+", "+e[3]+")"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=function(){},t.urlRegex=/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(n,e,t){!function(e){function t(e){return e&&e.Math==Math&&e}n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}.call(this,t(145))},function(e,t){e.exports={}},function(e,t,n){var i=n(8),o=n(74),r=n(16),a=n(64),s=n(76),n=n(105),l=o("wks"),c=i.Symbol,u=n?c:c&&c.withoutSetter||a;e.exports=function(e){return r(l,e)||(s&&r(c,e)?l[e]=c[e]:l[e]=u("Symbol."+e)),l[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(9),o=n(16),r=n(93),a=n(18).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||a(t,e,{value:r.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){n=n(11),e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var i=n(9);e.exports=function(e){return i[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var i=n(14),o=n(99),r=n(25),a=n(60),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(14),o=n(18),r=n(48);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,o){i={};var n,i,r=function(e){if(void 0===i[e]){var t=document.querySelector(e);
13if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}i[e]=t}return i[e]},c=[];function u(e){for(var t=-1,n=0;n<c.length;n++)if(c[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},i=[],o=0;o<e.length;o++){var r=e[o],a=t.base?r[0]+t.base:r[0],s=n[a]||0,l="".concat(a," ").concat(s);n[a]=s+1,s=u(l),r={css:r[1],media:r[2],sourceMap:r[3]},-1!==s?(c[s].references++,c[s].updater(r)):c.push({identifier:l,updater:((t,e)=>{var n,i,o,r=e.singleton?(o=f++,n=p=p||d(e),i=h.bind(null,n,o,!1),h.bind(null,n,o,!0)):(n=d(e),i=function(e,t,n){var i=n.css,o=n.media,n=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),n&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}.bind(null,n,e),function(){var e;null!==(e=n).parentNode&&e.parentNode.removeChild(e)});return i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):r()}})(r,t),references:1}),i.push(l)}return i}function d(e){var t,n=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce&&(t=o.nc)&&(i.nonce=t),Object.keys(i).forEac
13h(function(e){n.setAttribute(e,i[e])}),"function"==typeof e.insert)e.insert(n);else{if(!(e=r(e.insert||"head")))throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");e.appendChild(n)}return n}a=[];var a,l=function(e,t){return a[e]=t,a.filter(Boolean).join("\n")};function h(e,t,n,i){n=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css,e.styleSheet?e.styleSheet.cssText=l(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}var p=null,f=0;e.exports=function(e,r){(r=r||{}).singleton||"boolean"==typeof r.singleton||(r.singleton=n=void 0===n?Boolean(window&&document&&document.all&&!window.atob):n);var a=s(e=e||[],r);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<a.length;t++){var n=u(a[t]);c[n].references--}for(var e=s(e,r),i=0;i<a.length;i++){var o=u(a[i]);0===c[o].references&&(c[o].updater(),c.splice(o,1))}a=e}}}},function(e,t,n){e.exports=function(r){var l=[];return l.toString=function(){return this.map(function(e){n=(t=e)[1]||"";var t,n,i,o=(i=e[3])?(r&&"function"==typeof btoa?(o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),t="/*# ".concat(o," */"),o=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}),[n].concat(o).concat([t])):[n]).join("\n"):n;return e[2]?"@media ".concat(e[2]," {").concat(o,"}"):o}).join("")},l.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(var a=0;a<e.length;a++){var s=[].concat(e[a]);n&&i[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),l.push(s))}},l}},function(e,t,n){function a(e){throw e}var s=n(14),l=n(11),c=n(16),u=Object.defineProperty,d={};e.exports=function(e,t){var n,i,o,r;return c(d,e)?d[e]:(n=[][e],i=!!c(t=t||{},"ACCESSORS")&&t.ACCESSORS,o=c(t,0)?t[0]:a,r=c(t,1)?t[1]:void 0,d[e]=!!n&&!l(function(){if(i&&!s)return!0;var e={length:-1};i?u(e,1,{enumerable:!0,get:a}):e[1]=1,n.call(e,o,r)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,n=(o=n(2)).__importDefault(n(95)),o=(i=n.default,o.__extends(r,i),r);function r(e,t){return i.call(this,e,t)||this}t.default=o},function(e,t,n){var i=(o=n(0))(n(1)),s=o(n(4)),l=o(n(46));(0,i.default)(t,"__esModule",{value:!0});var c,u=(o=n(2)).__importDefault(n(3)),i=o.__importDefault(n(95)),d=o.__importDefault(n(133)),o=(c=i.default,o.__extends(r,c),r);function r(t,n,e){var i=c.call(this,t,n)||this;e.title=n.i18next.t("menus.dropListMenu."+e.title);var o,r="zh-CN"===n.config.lang?"":"w-e-drop-list-tl",a=(r&&"list"===e.type&&(0,s.default)(o=e.list).call(o,function(e){var t=e.$elem;0<(e=u.default(t.children())).length&&(e=null==e?void 0:e.getNodeName())&&"I"===e&&t.addClass(r)}),new d.default(i,e));return i.dropList=a,t.on("click",function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,s.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,function(e){return e()}),a.show())}).on("mouseleave",function(){t.css("z-index","auto"),a.hideTimeoutId=(0,l.default)(function(){a.hide()})}),i}t.default=o},function(e,t,n){var i=n(13);e.exports=function(e){if(i(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){var i=n(72),o=n(49);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(49);e.exports=function(e){return Object(i(e))}},function(e,t,n){var b=n(39),w=n(72),x=n(29),A=n(34),C=n(88),k=[].push,n=function(h){var p=1==h,f=2==h,g=3==h,m=4==h,y=6==h,v=5==h||y;return function(e,t,n,i){for(var o,r,a=x(e),s=w(a),l=b(t,n,3),c=A(s.length),u=0,i=i||C,d=p?i(e,c):f?i(e,0):void 0;u<c;u++)if((v||u in s)&&(r=l(o=s[u],u,a),h))if(p)d[u]=r;else if(r)switch(h){case 3:return!0;case 5:return o;case 6:return u;case 2:k.call(d,o)}else if(m)return!1;return y?-1:g||m?m:d}};e.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6)}},function(e,t,n){e.exports=n(283)},function(e,t,n){var i=(o=n(0))(n(1)),h=o(n(4)),p=o(n(31)),o=o(n(131)),f=((0,i.default)(t,"__esMo
13dule",{value:!0}),n(2)),g=f.__importDefault(n(3)),m=n(7),o=(y.prototype.create=function(){var e,t,n,r,a,i,o,s,l,c,u=this,d=this.menu;y.createdMenus.has(d)||(o=this.conf,c=this.$container,e=o.width||300,i=d.editor.$toolbarElem.getBoundingClientRect(),t=d.$elem.getBoundingClientRect(),n=i.height+i.top-t.top,i=(i.width-e)/2+i.left-t.left,300<Math.abs(i)&&(i=t.left<document.documentElement.clientWidth/2?-t.width/2:-e+t.width/2),c.css("width",e+"px").css("margin-top",n+"px").css("margin-left",i+"px").css("z-index",d.editor.zIndex.get("panel")),i=g.default('<i class="w-e-icon-close w-e-panel-close"></i>'),c.append(i),i.on("click",function(){u.remove()}),r=g.default('<ul class="w-e-panel-tab-title"></ul>'),a=g.default('<div class="w-e-panel-tab-content"></div>'),c.append(r).append(a),(i=o.height)&&a.css("height",i+"px").css("overflow-y","auto"),o=o.tabs||[],s=[],l=[],(0,h.default)(o).call(o,function(e,t){var n,i,o;e&&(n=e.title||"",e=e.tpl||"",i=g.default('<li class="w-e-item">'+n+"</li>"),r.append(i),o=g.default(e),a.append(o),s.push(i),l.push(o),0===t?(i.data("active",!0),i.addClass("w-e-active")):o.hide(),i.on("click",function(){i.data("active")||((0,h.default)(s).call(s,function(e){e.data("active",!1),e.removeClass("w-e-active")}),(0,h.default)(l).call(l,function(e){e.hide()}),i.data("active",!0),i.addClass("w-e-active"),o.show())}))}),c.on("click",function(e){e.stopPropagation()}),d.$elem.append(c),(0,h.default)(o).call(o,function(e,a){e&&(e=e.events||[],(0,h.default)(e).call(e,function(e){function t(t){return f.__awaiter(u,void 0,void 0,function(){return f.__generator(this,function(e){switch(e.label){case 0:return t.stopPropagation(),[4,o(t)];case 1:return e.sent()&&this.remove(),[2]}})})}var n=e.selector,i=e.type,o=e.fn||m.EMPTY_FN,r=l[a],e=null!=(e=e.bindEnter)&&e;(0,p.default)(r).call(r,n).on(i,t),e&&"click"===i&&r.on("keyup",function(e){13==e.keyCode&&t(e)})}))}),(c=(0,p.default)(c).call(c,"input[type=text],textarea")).length&&c.get(0).focus(),y.hideCurAllPanels(),d.setPanel(this),y.createdMenus.add(d))},y.prototype.remove=function(){var e=this.menu,t=this.$container;t&&t.remove(),y.createdMenus.delete(e)},y.hideCurAllPanels=function(){var e;0!==y.createdMenus.size&&(0,h.default)(e=y.createdMenus).call(e,function(e){(e=e.panel)&&e.remove()})},y.createdMenus=new o.default,y);function y(e,t){this.menu=e,this.conf=t,this.$container=g.default('<div class="w-e-panel-container"></div>'),(e=e.editor).txt.eventHooks.clickEvents.push(y.hideCurAllPanels),e.txt.eventHooks.toolbarClickEvents.push(y.hideCurAllPanels),e.txt.eventHooks.dropListMenuHoverEvents.push(y.hideCurAllPanels)}t.default=o},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(62),o=Math.min;e.exports=function(e){return 0<e?o(i(e),9007199254740991):0}},function(e,t,n){function i(e){return"function"==typeof e?e:void 0}var o=n(9),r=n(8);e.exports=function(e,t){return arguments.length<2?i(o[e])||i(r[e]):o[e]&&o[e][t]||r[e]&&r[e][t]}},function(e,t,n){var o=n(81),r=n(18).f,a=n(19),s=n(16),l=n(170),c=n(10)("toStringTag");e.exports=function(e,t,n,i){e&&(e=n?e:e.prototype,s(e,c)||r(e,c,{configurable:!0,value:t}),i)&&!o&&a(e,"toString",l)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,n=(o=n(2)).__importDefault(n(95)),o=(i=n.default,o.__extends(r,i),r.prototype.setPanel=function(e){this.panel=e},r);function r(e,t){return i.call(this,e,t)||this}t.default=o},function(e,t,n){var i=n(0),o=i(n(1)),l=i(n(4)),r=i(n(57)),u=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3))),o=(a.prototype.getPositionData=function(){var e,t,n=this.$container,i=0,o=document.documentElement.scrollTop,r=this.$targetElem.getBoundingClientRect(),a=this.editor.$textElem.getBoundingClientRect(),s=this.$targetElem.getOffsetData(),l=u.default(s.parent),c=this.editor.$textElem.elems[0].scrollTop;return this._isInsertTextContainer=l.equal(this.editor.$textContainerElem),t=this._isInsertTextContainer?(e=l.getBoundingClientRect().height,t=s.top,l=s.left,s=s.height,25<(c=t-c)?(i=c-20-15,n.addClass("w-e-tooltip-up")):(i=c+s+20<e?c+s+10:20+(0<c?c:0)+10,n.addClass("w-e-tooltip-down")),l<0?0:l):(r.top<20||r.top-a.top<20?(i=r.bottom+o+5,n.addClass("w-e-tooltip-down")):(i=r.top+o-20-15,n.addClass("w-e-tooltip-up")),r.left<0?0:r.left),{top:i,left:t}},a.prototype.appendMenus=function(){var o=this,e=this.conf,r=this.editor,a=this.$targetElem,s=this.$container;(0,l.default)(e).call(e,function(t,e){var n=t.$elem,i=u.default("<div></div>");i.addClass("w-e-tooltip-item-wrapper "),i.append(n),s.append(i),n.on("click",function(e){e.preventDefault(),t.onClick(r,a)&&o.remove()})})},a.prototype.create=function(){var e=this.editor,t=this.$container;this.appendMenus();var n=(i=this.getPositionData()).top,i=i.left;t.css("top",n+"px"),t.css("left",i+"px"),t.css("z-index",e.zIndex.get("tooltip")),(this._isInsertTextContainer?this.editor.$textContainerElem:u.default("body")).append(t),this._show=!0,e.beforeDestroy((0,r.default)(t=this.remove).call(t,this)),e.txt.eventHooks.onBlurEvents.push((0,r.default)(e=this.remove).call(e,this))},a.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,o.default)(a.prototype,"isShow",{get:function(){return this._show}
13,enumerable:!1,configurable:!0}),a);function a(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1,(n=u.default("<div></div>")).addClass("w-e-tooltip"),this.$container=n}t.default=o},function(e,t,n){var r=n(40);e.exports=function(i,o,e){if(r(i),void 0===o)return i;switch(e){case 0:return function(){return i.call(o)};case 1:return function(e){return i.call(o,e)};case 2:return function(e,t){return i.call(o,e,t)};case 3:return function(e,t,n){return i.call(o,e,t,n)}}return function(){return i.apply(o,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var i,o,r,a,s,l,c,u=n(165),d=n(8),h=n(13),p=n(19),f=n(16),g=n(63),n=n(51),d=d.WeakMap,m=u?(i=new d,o=i.get,r=i.has,a=i.set,s=function(e,t){return a.call(i,e,t),t},l=function(e){return o.call(i,e)||{}},function(e){return r.call(i,e)}):(n[c=g("state")]=!0,s=function(e,t){return p(e,c,t),t},l=function(e){return f(e,c)?e[c]:{}},function(e){return f(e,c)});e.exports={set:s,get:l,has:m,enforce:function(e){return m(e)?l(e):s(e,{})},getterFor:function(t){return function(e){if(h(e)&&(e=l(e)).type===t)return e;throw TypeError("Incompatible receiver, "+t+" required")}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(213)},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),o=((0,o.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0,n(2)),a=n(137),s=o.__importDefault(n(3));function l(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var n=[];return(0,r.default)(e).call(e,function(e){var t=e.getNodeName();t!==a.ListType.OrderedList&&t!==a.ListType.UnorderedList?n.push(e):e.prior?n.push(e.prior):null!=(e=e.children())&&(0,r.default)(e).call(e,function(e){n.push(s.default(e))})}),n},t.updateRange=function(e,t,n){var i=e.selection,e=document.createRange();1<t.length?(e.setStart(t.elems[0],0),e.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):e.selectNodeContents(t.elems[0]),n&&e.collapse(!1),i.saveRange(e),i.restoreSelection()},t.getStartPoint=function(e){return e.prior||s.default(null==(e=e.children())?void 0:e.elems[0])},t.getEndPoint=function(e){return e.prior||s.default(null==(e=e.children())?void 0:e.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=l,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,n,i){return void 0===i&&(i="li"),(0,r.default)(e).call(e,function(e){var t=l(i);t.innerHTML=e.html(),n.appendChild(t),e.remove()}),n}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(164).charAt,o=n(41),n=n(75),r="String Iterator",a=o.set,s=o.getterFor(r);n(String,"String",function(e){a(this,{type:r,string:String(e),index:0})},function(){var e=s(this),t=e.string,n=e.index;return n>=t.length?{value:void 0,done:!0}:(n=i(t,n),e.index+=n.length,{value:n,done:!1})})},function(e,t){e.exports={}},function(e,t,n){var i=n(106),o=n(80);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var o=n(19);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:o(e,t,n)}},function(e,t,n){n(173);var i,o=n(174),r=n(8),a=n(65),s=n(19),l=n(43),c=n(10)("toStringTag");for(i in o){var u=r[i];(u=u&&u.prototype)&&a(u)!==c&&s(u,c,i),l[i]=l.Array}},function(e,t,n){var i=n(33);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(11),o=n(10),r=n(86),a=o("species");e.exports=function(t){return 51<=r||!i(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(e,t,n){e.exports=n(222)}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var i=n(2).__importDefault(n(373)),n=function(e){this.options=e,this.selectionRangeElem=new i.default};t.ListHandle=n},function(e,t,n){var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);t.f=r?function(e){return!!(e=o(this,e))&&e.enumerable}:i},function(e,t,n){var o=n(13);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!o(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?i:n)(e)}},function(e,t,n){var i=n(74),o=n(64),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},function(e,t,n){var i=n(81),o=n(33),r=n(10)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=i?o:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(e=((e,t)=>{try{return e[t]}catch(e){}})(t=Object(e),r))?e:a?o(t):"Object"==(e=o(t))&&"function"==typeof t.callee?"Arguments":e}},function(e,t,n){function h(e,t){this.stopped=e,this.result=t}var p=n(25),f=n(111),g=n(34),m=n(39),y=n(112),v=n(113);(e.exports=function(e,t,n,i,o){var r,a,s,l,c,u,d=m(t,n,i?2:1);if(o)r=e;else{if("function"!=typeof(o=y(e)))throw TypeError("Target is not iterable");if(f(o)){for(a=0,s=g(e.length);a<s;a++)if((l=i?d(p(u=e[a])[0],u[1]):d(e[a]))&&l instanceof h)return l;return new h(!1)}r=o.call(e)}for(c=r.next;!(u=c.call(r)).done;)if("object"==typeof(l=v(r,d,u.value,i))&&l&&l instanceof h)return l;return new h(!1)}).stop=function(e){return new h(!0,e)}},function(e,t,n){var i=n(11);e.exports=function(e,t){var n=[][e];return!!n&&i(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){var i=n(60),o=n(18),r=n(48);e.exports=function(e,t,n){(t=i(t))in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){e.exports=n(209)},function(e,t,n){var i=n(14),o=n(59),r=n(48),a=n(28),s=n(60),l=n(16),c=n(99),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){var i=n(11),o=n(33),r="".split;e.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?r.call(e,""):Object(e)}:Object},function(e,t,n){var i=n(8),n=n(13),o=i.document,r=n(o)&&n(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){var i=n(42),o=n(102);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){function g(){return this}var m=n(5),y=n(167),v=n(104),b=n(171),w=n(36),x=n(19),A=n(53),i=n(10),C=n(42),k=n(43),_=(n=n(103)).IteratorPrototype,S=n.BUGGY_SAFARI_ITERATORS,E=i("iterator"),T="values";e.exports=function(e,t,n,i,o,r,a){function s(e){if(e===o&&f)return f;if(!S&&e in h)return h[e];switch(e){case"keys":case T:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}y(n,t,i);var l,c,u=t+" Iterator",d=!1,h=e.prototype,p=h[E]||h["@@iterator"]||o&&h[o],f=!S&&p||s(o);if((i="Array"==t&&h.entries||p)&&(e=v(i.call(new e)),_!==Object.prototype)&&e.next&&(C||v(e)===_||(b?b(e,_):"function"!=typeof e[E]&&x(e,E,g)),w(e,u,!0,!0),C)&&(k[u]=g),o==T&&p&&p.name!==T&&(d=!0,f=function(){return p.call(this)}),C&&!a||h[E]===f||x(h,E,f),k[t]=f,o)if(l={values:s(T),keys:r?f:s("keys"),entries:s("entries")},a)for(c in l)!S&&!d&&c in h||A(h,c,l[c]);else m({target:t,proto:!0,forced:S||d},l);return l}},function(e,t,n){n=n(11),e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},function(e,t,n){function i(){}function o(e){return"<script>"+e+"</"+p+">"}var r,a=n(25),s=n(169),l=n(80),c=n(51),u=n(107),d=n(73),n=n(63),h="prototype",p="script",f=n("IE_PROTO"),g=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g=r?((t=r).write(o("")),t.close(),n=t.parentWindow.Object,t=null,n):((e=d("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write(o("document.F=Object")),e.close(),e.F);for(var i=l.length;i--;)delete g[h][l[i]];return g()};c[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(i[h]=a(e),n=new i,i[h]=null,n[f]=e):n=g(),void 0===t?n:s(n,t)}},function(e,t,n){var l=n(28),c=n(34),u=n(79),n=function(s){return function(e,t,n){var i,o=l(e),r=c(o.length),a=u(n,r);if(s&&t!=t){for(;a<r;)if((i=o[a++])!=i)return!0}else for(;a<r;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}};e.exports={includes:n(!0),indexOf:n(!1)}},function(e,t,n){var i=n(62),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
13ing","toString","valueOf"]},function(e,t,n){var i={};i[n(10)("toStringTag")]="z",e.exports="[object z]"===String(i)},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n){if(e instanceof t)return e;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},function(e,t,n){n=n(35),e.exports=n("navigator","userAgent")||""},function(e,t,n){function i(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=o(n),this.reject=o(i)}var o=n(40);e.exports.f=function(e){return new i(e)}},function(e,t,n){var i,o,r=n(8),n=n(84);(r=(r=(r=r.process)&&r.versions)&&r.v8)?o=(i=r.split("."))[0]+i[1]:n&&(!(i=n.match(/Edge\/(\d+)/))||74<=i[1])&&(i=n.match(/Chrome\/(\d+)/))&&(o=i[1]),e.exports=o&&+o},function(e,t,n){var i=(T=n(0))(n(1)),o=T(n(4)),r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),a=r.__importDefault(n(3)),s=n(6),l=r.__importDefault(n(267)),c=r.__importDefault(n(280)),u=r.__importDefault(n(281)),d=r.__importDefault(n(282)),h=r.__importDefault(n(301)),p=r.__importStar(n(416)),f=r.__importDefault(n(417)),g=r.__importDefault(n(418)),m=r.__importDefault(n(419)),y=r.__importStar(n(420)),v=r.__importDefault(n(423)),b=r.__importDefault(n(424)),w=r.__importDefault(n(425)),x=r.__importDefault(n(427)),A=r.__importDefault(n(437)),C=r.__importDefault(n(440)),k=r.__importStar(n(441)),_=r.__importDefault(n(23)),S=r.__importDefault(n(133)),E=r.__importDefault(n(24)),T=r.__importDefault(n(32)),i=r.__importDefault(n(37)),n=r.__importDefault(n(38)),$=1,n=(D.prototype.initSelection=function(e){f.default(this,e)},D.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),m.default(this),p.default(this),this.txt.init(),this.menus.init(),y.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe(),k.default(this)},D.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},D.prototype.destroy=function(){var e,t=this;(0,o.default)(e=this.beforeDestroyHooks).call(e,function(e){return e.call(t)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},D.prototype.fullScreen=function(){y.setFullScreen(this)},D.prototype.unFullScreen=function(){y.setUnFullScreen(this)},D.prototype.scrollToHead=function(e){v.default(this,e)},D.registerMenu=function(e,t){t&&"function"==typeof t&&(D.globalCustomMenuConstructorList[e]=t)},D.prototype.registerPlugin=function(e,t){k.registerPlugin(e,t,this.pluginsFunctionList)},D.registerPlugin=function(e,t){k.registerPlugin(e,t,D.globalPluginsFunctionList)},D.$=a.default,D.BtnMenu=_.default,D.DropList=S.default,D.DropListMenu=E.default,D.Panel=T.default,D.PanelMenu=i.default,D.Tooltip=n.default,D.globalCustomMenuConstructorList={},D.globalPluginsFunctionList={},D);function D(e,t){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+$++,this.toolbarSelector=e,this.textSelector=t,p.selectorValidator(this),this.config=s.deepClone(l.default),this.$toolbarElem=a.default("<div></div>"),this.$textContainerElem=a.default("<div></div>"),this.$textElem=a.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new u.default(this),this.txt=new d.default(this),this.menus=new h.default(this),this.zIndex=new b.default,this.change=new w.default(this),this.history=new x.default(this),this.onSelectionChange=new C.default(this),t=(e=A.default(this)).disable,e=e.enable,this.disable=t,this.enable=e,this.isEnable=!0}t.default=n},function(e,t,n){var i=n(13),o=n(55),r=n(10)("species");e.exports=function(e,t){var n;return new(void 0===(n=o(e)&&("function"==typeof(n=e.constructor)&&(n===Array||o(n.prototype))||i(n)&&null===(n=n[r]))?void 0:n)?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var i=n(49),n="["+n(68)+"]",o=RegExp("^"+n+n+"*"),r=RegExp(n+n+"*$"),n=function(t){return function(e){return e=String(i(e)),1&t&&(e=e.replace(o,"")),e=2&t?e.replace(r,""):e}};e.exports={start:n(1),end:n(2),trim:n(3)}},function(e,t,n){e.exports=n(205)},function(t,e,n){var i=n(227),o=n(230);function r(e){return t.exports=r="function"==typeof o&&"symbol"==typeof i?function(e){return typeof e}:function(e){return e&&"function"==typeof o&&e.constructor===o&&e!==o.prototype?"symbol":typeof e},r(e)}t.exports=r},function(e,t,n){n=n(10),t.f=n},function(e,t,n){e.exports=n(306)},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=((0,o.default)(t,"__esMo
13dule",{value:!0}),n(2).__importDefault(n(32))),o=(s.prototype.clickHandler=function(e){},s.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},s.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,o.default)(s.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),s);function s(e,n){var i=this;this.$elem=e,this.editor=n,this._active=!1,e.on("click",function(e){var t;a.default.hideCurAllPanels(),(0,r.default)(t=n.txt.eventHooks.menuClickEvents).call(t,function(e){return e()}),e.stopPropagation(),null!=n.selection.getRange()&&i.clickHandler(e)})}t.default=o},function(e,t,n){var i=n(0),o=i(n(1)),A=i(n(57)),C=i(n(4)),k=i(n(27)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),_=n(6),S=o.__importDefault(n(135)),E=o.__importDefault(n(136)),n=(r.prototype.insertImg=function(e,t,n){function i(e,t){return o.i18next.t((t=void 0===t?"validate.":t)+e)}var o=this.editor,r=o.config,a=t?'alt="'+t+'" ':"",s=n?'data-href="'+encodeURIComponent(n)+'" ':"",l=(o.cmd.do("insertHTML",'<img src="'+e+'" '+a+s+'style="max-width:100%;" contenteditable="false"/>'),r.linkImgCallback(e,t,n),document.createElement("img"));l.onload=function(){l=null},l.onerror=function(){r.customAlert(i("插入图片错误"),"error","wangEditor: "+i("插入图片错误")+","+i("图片链接")+' "'+e+'",'+i("下载链接失败")),l=null},l.onabort=function(){return l=null},l.src=e},r.prototype.uploadImg=function(e){var o,i,r,t,a,s,n,l,c,u,d,h,p,f,g,m,y,v,b,w,x=this;e.length&&(o=this.editor,i=o.config,r=function(e){return o.i18next.t("validate."+e)},v=i.uploadImgServer,t=i.uploadImgShowBase64,s=(a=i.uploadImgMaxSize)/1024/1024,n=i.uploadImgMaxLength,l=i.uploadFileName,c=i.uploadImgParams,u=i.uploadImgParamsWithUrl,d=i.uploadImgHeaders,h=i.uploadImgHooks,p=i.uploadImgTimeout,w=i.withCredentials,(f=i.customUploadImg)||v||t)&&(g=[],m=[],_.arrForEach(e,function(e){var t,n,i;e&&(t=e.name||e.type.replace("/","."),n=e.size,t)&&n&&(i=o.config.uploadImgAccept.join("|"),!1!==new RegExp(".("+i+")$","i").test(t)?a<n?m.push("【"+t+"】"+r("大于")+" "+s+"M"):g.push(e):m.push("【"+t+"】"+r("不是图片")))}),m.length?i.customAlert(r("图片验证未通过")+": \n"+m.join("\n"),"warning"):0!==g.length?n<g.length?i.customAlert(r("一次最多上传")+n+r("张图片"),"warning"):f&&"function"==typeof f?f(g,(0,A.default)(b=this.insertImg).call(b,this)):(y=new FormData,(0,C.default)(g).call(g,function(e,t){var n=l||e.name;1<g.length&&(n+=t+1),y.append(n,e)}),v?(v=(b=v.split("#"))[0],b=b[1]||"",(0,C.default)(_).call(_,c,function(e,t){u&&(0<(0,k.default)(v).call(v,"?")?v+="&":v+="?",v=v+e+"="+t),y.append(e,t)}),b&&(v+="#"+b),"string"==typeof(w=S.default(v,{timeout:p,formData:y,headers:d,withCredentials:!!w,beforeSend:function(e){if(h.before)return h.before(e,o,g)},onTimeout:function(e){i.customAlert(r("上传图片超时"),"error"),h.timeout&&h.timeout(e,o)},onProgress:function(e,t){var n=new E.default(o);t.lengthComputable&&(e=t.loaded/t.total,n.show(e))},onError:function(e){i.customAlert(r("上传图片错误"),"error",r("上传图片错误")+","+r("服务器返回状态")+": "+e.status),h.error&&h.error(e,o)},onFail:function(e,t){i.customAlert(r("上传图片失败"),"error",r("上传图片返回结果错误")+(","+r("返回结果"))+": "+t),h.fail&&h.fail(e,o,t)},onSuccess:function(e,t){var n;h.customInsert?h.customInsert((0,A.default)(n=x.insertImg).call(n,x),t,o):"0"!=t.errno?(i.customAlert(r("上传图片失败"),"error",r("上传图片返回结果错误")+","+r("返回结果")+" errno="+t.errno),h.fail&&h.fail(e,o,t)):((0,C.default)(n=t.data).call(n,function(e){"string"==typeof e?x.insertImg(e):x.insertImg(e.url,e.alt,e.href)}),h.success&&h.success(e,o,t))}}))&&i.customAlert(w,"error")):t&&_.arrForEach(e,function(e){var t=x,n=new FileReader;n.readAsDataURL(e),n.onload=function(){var e;this.result&&(e=this.result.toString(),t.insertImg(e,e))}})):i.customAlert(r("传入的文件不合法"),"warning"))},r);function r(e){this.editor=e}t.default=n},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(410)),l=i(n(4)),a=i(n(45));function s(e){return!!e.length&&"w-e-todo"===e.attr("class")}function c(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function u(e,t,n){void 0===n&&(n=!0);var i=null==(o=e.nodeValue)?void 0:(0,a.default)(o).call(o,0,t),o=null==o?void 0:(0,a.default)(o).call(o,t);return n||(n=o,o=i,i=n),e.nodeValue=i,o}
13(0,o.default)(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=s,t.isAllTodo=function(e){if(0!==(e=e.selection.getSelectionRangeTopNodes()).length)return(0,r.default)(e).call(e,s)},t.getCursorNextNode=function n(e,i,o){var r,a,s;if(e.hasChildNodes())return r=e.cloneNode(),a=!1,""===i.nodeValue&&(a=!0),s=[],(0,l.default)(e=e.childNodes).call(e,function(e){var t;!c(e,i)&&a&&(r.appendChild(e.cloneNode(!0)),"BR"!==e.nodeName)&&s.push(e),c(e,i)&&(1===e.nodeType&&(t=n(e,i,o))&&""!==t.textContent&&null!=r&&r.appendChild(t),3===e.nodeType&&i.isEqualNode(e)&&(e=u(e,o),r.textContent=e),a=!0)}),(0,l.default)(s).call(s,function(e){e.remove()}),r},t.dealTextNode=u},function(e,t,n){(0,(o=n(0)(n(1))).default)(t,"__esModule",{value:!0});var i=n(430),o=((0,o.default)(r.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),r.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},r.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},r.prototype.revoke=function(e){this.isRe||(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},r.prototype.restore=function(e){this.isRe||(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},r);function r(e){this.maxSize=e,this.isRe=!1,this.data=new i.CeilStack(e),this.revokeData=new i.CeilStack(e)}t.default=o},function(e,t,n){var i=n(14),o=n(11),r=n(73);e.exports=!i&&!o(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(11),o=/#|\.prototype\./,r=(n=function(e,t){return(e=a[r(e)])==l||e!=s&&("function"==typeof t?i(t):!!t)}).normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=n.data={},s=n.NATIVE="N",l=n.POLYFILL="P";e.exports=n},function(e,t,n){var n=n(102),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,n){var i=n(8),o=n(166),n=i[n="__core-js_shared__"]||o(n,{});e.exports=n},function(e,t,n){var i,o=n(104),r=n(19),a=n(16),s=n(10),l=n(42),c=s("iterator"),n=!1;[].keys&&("next"in(s=[].keys())?(s=o(o(s)))!==Object.prototype&&(i=s):n=!0),null==i&&(i={}),l||a(i,c)||r(i,c,function(){return this}),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:n}},function(e,t,n){var i=n(16),o=n(29),r=n(63),n=n(168),a=r("IE_PROTO"),s=Object.prototype;e.exports=n?Object.getPrototypeOf:function(e){return e=o(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){n=n(76),e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var a=n(16),s=n(28),l=n(78).indexOf,c=n(51);e.exports=function(e,t){var n,i=s(e),o=0,r=[];for(n in i)!a(c,n)&&a(i,n)&&r.push(n);for(;t.length>o;)!a(i,n=t[o++])||~l(r,n)||r.push(n);return r}},function(e,t,n){n=n(35),e.exports=n("document","documentElement")},function(e,t,n){n=n(8),e.exports=n.Promise},function(e,t,n){var o=n(53);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:o(e,i,t[i],n);return e}},function(e,t,n){var i=n(35),o=n(18),r=n(10),a=n(14),s=r("species");e.exports=function(e){var t=i(e),e=o.f;a&&t&&!t[s]&&e(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var i=n(10),o=n(43),r=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[r]===e)}},function(e,t,n){var i=n(65),o=n(43),r=n(10)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t,n){var o=n(25);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(10)("iterator"),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[o]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i={};i[o]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var i=n(25),o=n(40),r=n(10)("species");e.exports=function(e,t){return void 0===(e=i(e).constructor)||null==(e=i(e)[r])?t:o(e)}},function(e,t,n){function i(e){var t;x.hasOwnProperty(e)&&(t=x[e],delete x[e],t())}function o(e){return function(){i(e)}}function r(e){i(e.data)}
vendor: 4,253 bytes, line 13
13var a,s=n(8),l=n(11),c=n(33),u=n(39),d=n(107),h=n(73),p=n(117),f=s.location,g=s.setImmediate,m=s.clearImmediate,y=s.process,v=s.MessageChannel,b=s.Dispatch,w=0,x={},A="onreadystatechange",n=function(e){s.postMessage(e+"",f.protocol+"//"+f.host)};g&&m||(g=function(e){for(var t=[],n=1;n<arguments.length;)t.push(arguments[n++]);return x[++w]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},a(w),w},m=function(e){delete x[e]},"process"==c(y)?a=function(e){y.nextTick(o(e))}:b&&b.now?a=function(e){b.now(o(e))}:v&&!p?(v=(p=new v).port2,p.port1.onmessage=r,a=u(v.postMessage,v,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||l(n)||"file:"===f.protocol?a=A in h("script")?function(e){d.appendChild(h("script"))[A]=function(){d.removeChild(this),i(e)}}:function(e){setTimeout(o(e),0)}:(a=n,s.addEventListener("message",r,!1))),e.exports={set:g,clear:m}},function(e,t,n){n=n(84),e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,n){var i=n(25),o=n(13),r=n(85);e.exports=function(e,t){return i(e),o(t)&&t.constructor===e?t:((0,(e=r.f(e)).resolve)(t),e.promise)}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){e.exports=n(197)},function(e,t,n){var d=n(5),h=n(8),p=n(122),f=n(11),g=n(19),m=n(66),y=n(83),v=n(13),b=n(36),w=n(18).f,x=n(30).forEach,A=n(14),C=(n=n(41)).set,k=n.getterFor;e.exports=function(n,e,t){var r,a,i=-1!==n.indexOf("Map"),s=-1!==n.indexOf("Weak"),o=i?"set":"add",l=h[n],c=l&&l.prototype,u={};return A&&"function"==typeof l&&(s||c.forEach&&!f(function(){(new l).entries().next()}))?(r=e(function(e,t){C(y(e,r,n),{type:n,collection:new l}),null!=t&&m(t,e[o],e,i)}),a=k(n),x(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(i){var o="add"==i||"set"==i;i in c&&(!s||"clear"!=i)&&g(r.prototype,i,function(e,t){var n=a(this).collection;return o||!s||v(e)?(t=n[i](0===e?0:e,t),o?this:t):"get"==i&&void 0})}),s||w(r.prototype,"size",{configurable:!0,get:function(){return a(this).collection.size}})):(r=t.getConstructor(e,n,i,o),p.REQUIRED=!0),b(r,n,!1,!0),u[n]=r,d({global:!0,forced:!0},u),s||t.setStrong(r,n,i),r}},function(e,t,n){function i(e){s(e,u,{value:{objectID:"O"+ ++d,weakData:{}}})}var o=n(51),r=n(13),a=n(16),s=n(18).f,l=n(64),c=n(200),u=l("meta"),d=0,h=Object.isExtensible||function(){return!0},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,u)){if(!h(e))return"F";if(!t)return"E";i(e)}return e[u].objectID},getWeakData:function(e,t){if(!a(e,u)){if(!h(e))return!0;if(!t)return!1;i(e)}return e[u].weakData},onFreeze:function(e){return c&&p.REQUIRED&&h(e)&&!a(e,u)&&i(e),e}};o[u]=!0},function(e,t,n){var c=n(18).f,u=n(77),d=n(109),h=n(39),p=n(83),f=n(66),a=n(75),s=n(110),g=n(14),m=n(122).fastKey,y=(n=n(41)).set,v=n.getterFor;e.exports={getConstructor:function(e,n,i,o){function r(e,t,n){var i,o=l(e),r=a(e,t);return r?r.value=n:(o.last=r={index:i=m(t,!0),key:t,value:n,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=r),n&&(n.next=r),g?o.size++:e.size++,"F"!==i&&(o.index[i]=r)),e}function a(e,t){var n,i=l(e);if("F"!==(e=m(t)))return i.index[e];for(n=i.first;n;n=n.next)if(n.key==t)return n}var s=e(function(e,t){p(e,s,n),y(e,{type:n,index:u(null),first:void 0,last:void 0,size:0}),g||(e.size=0),null!=t&&f(t,e[o],e,i)}),l=v(n);return d(s.prototype,{clear:function(){for(var e=l(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,g?e.size=0:this.size=0},delete:function(e){var t,n=l(this),i=a(this,e);return i&&(t=i.next,e=i.previous,delete n.index[i.index],i.removed=!0,e&&(e.next=t),t&&(t.previous=e),n.first==i&&(n.first=t),n.last==i&&(n.last=e),g?n.size--:this.size--),!!i},forEach:function(e,t){for(var n,i=l(this),o=h(e,1<arguments.length?t:void 0,3);n=n?n.next:i.first;)for(o(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!a(this,e)}}),d(s.prototype,i?{get:function(e){return(e=a(this,e))&&e.value},set:function(e,t){return r(this,0===e?0:e,t)}}:{add:function(e){return r(this,e=0===e?0:e,e)}}),g&&c(s.prototype,"size",{get:function(){return l(this).size}}
13),s},setStrong:function(e,t,n){var i=t+" Iterator",o=v(t),r=v(i);a(e,t,function(e,t){y(this,{type:i,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=r(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:e.target=void 0,done:!0}},n?"entries":"values",!n,!0),s(t)}}},function(e,t,n){n(12)("iterator")},function(e,t,n){var i=n(106),o=n(80).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){e.exports=n(268)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={zIndex:1e4}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),o=((0,o.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0,n(2)),a=n(6),s=o.__importDefault(n(292));function l(e){var t=e.clipboardData,e="",e=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain");return a.replaceHtmlSymbol(e)}t.getPasteText=l,t.getPasteHtml=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.clipboardData,o="";if(!(o=i?i.getData("text/html"):o)){if(!(e=l(e)))return"";o="<p>"+e+"</p>"}return o=(o=o.replace(/<(\d)/gm,function(e,t){return"&lt;"+t})).replace(/<(\/?meta.*?)>/gim,""),s.default(o,t,n)},t.getPasteImgs=function(e){var i=[];return l(e)||(e=null==(e=e.clipboardData)?void 0:e.items)&&(0,r.default)(a).call(a,e,function(e,t){var n=t.type;/image/i.test(n)&&i.push(t.getAsFile())}),i}},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){var i=n(0),o=i(n(1)),s=i(n(4)),l=i(n(46)),c=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3))),u=n(7),o=(r.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e,t,n=this.menu.$elem,i=this.$container;this._show||(this.rendered?i.show():(e=n.getBoundingClientRect().height||0,t=this.conf.width||100,i.css("margin-top",e+"px").css("width",t+"px"),n.append(i),this.rendered=!0),this._show=!0)},r.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,o.default)(r.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),r);function r(e,t){var i=this,n=(this.hideTimeoutId=0,this.menu=e,this.conf=t,c.default('<div class="w-e-droplist"></div>')),e=((o=c.default("<p>"+t.title+"</p>")).addClass("w-e-dp-title"),n.append(o),t.list||[]),o=t.type||"list",r=t.clickHandler||u.EMPTY_FN,a=c.default('<ul class="'+("list"===o?"w-e-list":"w-e-block")+'"></ul>');(0,s.default)(e).call(e,function(e){var t=e.$elem,n=e.value,e=c.default('<li class="w-e-item"></li>');t&&(e.append(t),a.append(e),e.on("click",function(e){r(n),e.stopPropagation(),i.hideTimeoutId=(0,l.default)(function(){i.hide()})}))}),n.append(a),n.on("mouseleave",function(){i.hideTimeoutId=(0,l.default)(function(){i.hide()})}),this.$container=n,this.rendered=!1,this._show=!1}t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length)&&"A"===e.getNodeName()}},function(e,t,n){var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(4)),s=((0,o.default)(t,"__esModule",{value:!0}),n(6));t.default=function(e,i){var o=new XMLHttpRequest;return o.open("POST",e),o.timeout=i.timeout||1e4,o.ontimeout=function(){console.error("wangEditor - 请求超时"),i.onTimeout&&i.onTimeout(o)},o.upload&&(o.upload.onprogress=function(e){var t=e.loaded/e.total;i.onProgress&&i.onProgress(t,e)}),i.headers&&(0,a.default)(s).call(s,i.headers,function(e,t){o.setRequestHeader(e,t)}),o.withCredentials=!!i.withCredentials,i.beforeSend&&(e=i.beforeSend(o))&&"object"===(0,r.default)(e)&&e.prevent?e.msg:(o.onreadystatechange=function(){if(4===o.readyState){var e=o.status;if(!(e<200||300<=e&&e<400))if(400<=e)console.error("wangEditor - XHR 报错,状态码 "+e),i.onError&&i.onError(o);else{var t,n=o.responseText;if("object"!==(0,r.default)(n))try{t=JSON.parse(n)}catch(e){return console.error("wangEditor - 返回结果不是 JSON 格式",n),void(i.onFail&&i.onFail(o,n))}else t=n;i.onSuccess(o,t)}}},o.send(i.formData||null),o)}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(342)),a=i(n(46)),s=((0,o.default)(t,"__esMo
13dule",{value:!0}),n(2).__importDefault(n(3))),n=(l.prototype.show=function(e){var t,n=this;this.isShow||(this.isShow=!0,t=this.$bar,this.$textContainer.append(t),100<(0,r.default)()-this.time&&e<=1&&(t.css("width",100*e+"%"),this.time=(0,r.default)()),(e=this.timeoutId)&&clearTimeout(e),this.timeoutId=(0,a.default)(function(){n.hide()},500))},l.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},l);function l(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=s.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var o,r=(s=n(2)).__importDefault(n(3)),i=s.__importDefault(n(24)),l=n(47),c=s.__importStar(n(371));(n=o=t.ListType||(t.ListType={})).OrderedList="OL",n.UnorderedList="UL";a=i.default,s.__extends(u,a),u.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},u.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},u.prototype.handleSelectionRangeNodes=function(e){var t,n=this.editor,i=n.selection,o=e.toLowerCase(),r=i.getSelectionContainerElem(),a=i.getSelectionStartElem().getNodeTop(n),s=i.getSelectionEndElem().getNodeTop(n);this.validator(a,s,n.$textElem)&&(i=null==(t=i.getRange())?void 0:t.collapsed,n.$textElem.equal(r)||(r=r.getNodeTop(n)),o={editor:n,listType:e,listTarget:o,$selectionElem:r,$startElem:a,$endElem:s},s=this.isOrderElem(r)?c.ClassType.Wrap:this.isOrderElem(a)&&this.isOrderElem(s)?c.ClassType.Join:this.isOrderElem(a)?c.ClassType.StartJoin:this.isOrderElem(s)?c.ClassType.EndJoin:c.ClassType.Other,t=new c.default(c.createListHandle(s,o,t)),l.updateRange(n,t.getSelectionRangeElem(),!!i))},u.prototype.isOrderElem=function(e){return(e=e.getNodeName())===o.OrderedList||e===o.UnorderedList},u.prototype.tryChangeActive=function(){};var a,s=u;function u(e){var t=this,n=r.default('<div class="w-e-menu" data-title="序列">\n                <i class="w-e-icon-list2"></i>\n            </div>'),i={width:130,title:"序列",type:"list",list:[{$elem:r.default('\n                        <p>\n                            <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.list.无序列表")+"\n                        <p>"),value:o.UnorderedList},{$elem:r.default('<p>\n                            <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.list.有序列表")+"\n                        <p>"),value:o.OrderedList}],clickHandler:function(e){t.command(e)}};return t=a.call(this,n,e,i)||this}t.default=s},function(e,t,n){e.exports=n(395)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length||"CODE"!=e.getNodeName()&&"PRE"!=e.getNodeName()&&"CODE"!=e.parent().getNodeName()&&"PRE"!=e.parent().getNodeName()&&!/hljs/.test(e.parent().attr("class")))}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(31)),a=((0,o.default)(t,"__esModule",{value:!0}),t.todo=void 0,n(2).__importDefault(n(3))),s=(l.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},l.prototype.getInput=function(){var e=this.$todo;return(0,r.default)(e).call(e,"input")},l.prototype.getInputContainer=function(){return this.getInput().parent()},l.prototype.getTodo=function(){return this.$todo},l);function l(e){this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a.default(this.template),this.$child=null==(e=null==e?void 0:e.childNodes())?void 0:e.clone(!0)}t.todo=s,t.default=function(e){return(e=new s(e)).init(),e}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=(n(146),n(148),n(152),n(154),n(156),n(158),n(160),i.__importDefault(n(87)));i.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=o.default},function(e,t,n){n=n(143),e.exports=n},function(e,t,n){n(144);var i=n(9).Object,e=e.exports=function(e,t,n){return i.defineProperty(e,t,n)};i.defineProperty.sham&&(e.sham=!0)},function(e,t,n){var i=n(5),o=n(14);i({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(18).f})},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(20),o=n(147);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}}
13,function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n  background-color: #fff;\n  /*表情菜单样式*/\n  /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n  font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n  font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n  font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n  font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n  font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n  font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n  cursor: pointer;\n  display: inline-block;\n  font-size: 18px;\n  padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n  padding: 0;\n  margin: 0;\n  box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n  cursor: pointer;\n  display: block;\n  height: 0px;\n  border: 0;\n  border-top: 3px solid #ccc;\n  margin: 20px 0;\n}\n.w-e-clear-fix:after {\n  content: "";\n  display: table;\n  clear: both;\n}\n.w-e-drop-list-item {\n  position: relative;\n  top: 1px;\n  padding-right: 7px;\n  color: #333 !important;\n}\n.w-e-drop-list-tl {\n  padding-left: 10px;\n  text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(149);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}},function(e,t,n){var i=n(21),o=n(150),n=n(151);t=i(!1),n=o(n),t.push([e.i,"@font-face {\n  font-family: 'w-e-icon';\n  src: url("+n+') format(\'truetype\');\n  font-weight: normal;\n  font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n  /* use !important to prevent issues with browser extensions that change fonts */\n  font-family: \'w-e-icon\' !important;\n  speak: none;\n  font-style: normal;\n  font-weight: normal;\n  font-variant: normal;\n  text-transform: none;\n  line-height: 1;\n  /* Better Font Rendering =========== */\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n  content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n  content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n  content: "\\f014";\n}\n.w-e-icon-header:before {\n  content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n  content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n  content: "\\f1fc";\n}\n.w-e-icon-image:before {\n  content: "\\e90d";\n}\n.w-e-icon-play:before {\n  content: "\\e912";\n}\n.w-e-icon-location:before {\n  content: "\\e947";\n}\n.w-e-icon-undo:before {\n  content: "\\e965";\n}\n.w-e-icon-redo:before {\n  content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n  content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n  content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n  content: "\\e9bb";\n}\n.w-e-icon-link:before {\n  content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n  content: "\\e9df";\n}\n.w-e-icon-bold:before {\n  content: "\\ea62";\n}\n.w-e-icon-underline:before {\n  content: "\\ea63";\n}\n.w-e-icon-italic:before {\n  content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n  content: "\\ea65";\n}\n.w-e-icon-table2:before {\n  content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n  content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n  content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n  content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n  content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n  content: "\\f120";\n}\n.w-e-icon-page-break:before {\n  content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n  content: "\\ea0d";\n}\n.w-e-icon-font:before {\n  content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n  content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n  content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n  content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n  content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n  content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n  content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n  content: "\\e901";\n}\n.w-e-icon-split-line:before {\n  content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n  content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){e.exports=function(e,t){return t=t||{}
13,"string"==typeof(e=e&&e.__esModule?e.default:e)&&(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes)?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e}},function(e,t,n){n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi1
135dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAA
13CgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var i=n(20),o=n(153);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n  display: flex;\n  padding: 0 6px;\n  flex-wrap: wrap;\n  position: relative;\n  /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n  position: relative;\n  display: flex;\n  width: 40px;\n  height: 40px;\n  align-items: center;\n  justify-content: center;\n  text-align: center;\n  cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n  color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n  background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n  color: #333;\n}\n.w-e-toolbar .w-e-active i {\n  color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n  color: #1e88e5;\n}\n.w-e-menu-tooltip {\n  position: absolute;\n  display: flex;\n  color: #f1f1f1;\n  background-color: rgba(0, 0, 0, 0.75);\n  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  padding: 4px 5px 6px;\n  justify-content: center;\n  align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n  content: "";\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n  content: "";\n  position: absolute;\n  bottom: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n  font-size: 14px;\n  margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(155);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n  position: relative;\n  height: 100%;\n}\n.w-e-text-container .w-e-progress {\n  position: absolute;\n  background-color: #1e88e5;\n  top: 0;\n  left: 0;\n  height: 1px;\n}\n.w-e-text-container .placeholder {\n  color: #D4D4D4;\n  position: absolute;\n  font-size: 11pt;\n  line-height: 22px;\n  left: 10px;\n  top: 10px;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  z-index: -1;\n}\n.w-e-text {\n  padding: 0 10px;\n  overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n  margin: 10px 0;\n  line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n  margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n  display: block;\n  border-left: 8px solid #d0e5f2;\n  padding: 5px 10px;\n  margin: 10px 0;\n  line-height: 1.4;\n  font-size: 100%;\n  background-color: #f1f1f1;\n}\n.w-e-text code {\n  display: inline-block;\n  background-color: #f1f1f1;\n  border-radius: 3px;\n  padding: 3px 5px;\n  margin: 0 3px;\n}\n.w-e-text pre code {\n  display: block;\n}\n.w-e-text table {\n  border-top: 1px solid #ccc;\n  border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n  border-bottom: 1px solid #ccc;\n  border-right: 1px solid #ccc;\n  padding: 3px 5px;\n  min-height: 30px;\n  height: 30px;\n}\n.w-e-text table th {\n  border-bottom: 2px solid #ccc;\n  text-align: center;\n  background-color: #f1f1f1;\n}\n.w-e-text:focus {\n  outline: none;\n}\n.w-e-text img {\n  cursor: pointer;\n}\n.w-e-text img:hover {\n  box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n  margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n  list-style: none;\n  font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n  position: relative;\n  left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n  position: absolute;\n  margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n  top: 50%;\n  margin-top: -6px;\n}\n.w-e-tooltip {\n  position: absolute;\n  display: flex;\n  color: #f1f1f1;\n  background-color: rgba(0, 0, 0, 0.75);\n  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n  border-radius: 4px;\n  padding: 4px 5px 6px;\n  justify-content: center;\n  align-items: center;\n}
13\n.w-e-tooltip-up::after {\n  content: "";\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n  content: "";\n  position: absolute;\n  bottom: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border: 5px solid rgba(0, 0, 0, 0);\n  border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n  cursor: pointer;\n  font-size: 14px;\n  margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n  color: #ccc;\n  text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(157);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n  position: absolute;\n  top: 0;\n  left: 50%;\n  border: 1px solid #ccc;\n  border-top: 0;\n  box-shadow: 1px 1px 2px #ccc;\n  color: #333;\n  background-color: #fff;\n  text-align: left;\n  /* 为 emotion panel 定制的样式 */\n  /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n  position: absolute;\n  right: 0;\n  top: 0;\n  padding: 5px;\n  margin: 2px 5px 0 0;\n  cursor: pointer;\n  color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n  color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n  list-style: none;\n  display: flex;\n  font-size: 14px;\n  margin: 2px 10px 0 10px;\n  border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n  padding: 3px 5px;\n  color: #999;\n  cursor: pointer;\n  margin: 0 3px;\n  position: relative;\n  top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n  color: #333;\n  border-bottom: 1px solid #333;\n  cursor: default;\n  font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n  padding: 10px 15px 10px 15px;\n  font-size: 16px;\n  /* 输入框的样式 */\n  /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n  outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n  width: 100%;\n  border: 1px solid #ccc;\n  padding: 5px;\n  margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n  border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n  border: none;\n  border-bottom: 1px solid #ccc;\n  font-size: 14px;\n  height: 20px;\n  color: #333;\n  text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n  width: 30px;\n  text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n  display: block;\n  width: 100%;\n  margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n  border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n  font-size: 14px;\n  color: #1e88e5;\n  border: none;\n  padding: 5px 10px;\n  background-color: #fff;\n  cursor: pointer;\n  border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n  float: left;\n  margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n  float: right;\n  margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n  color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n  color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n  background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n  
13content: "";\n  display: table;\n  clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n  cursor: pointer;\n  font-size: 18px;\n  padding: 0 3px;\n  display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n  text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n  display: inline-block;\n  color: #999;\n  cursor: pointer;\n  font-size: 60px;\n  line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n  color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var i=n(20),o=n(159);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n  position: absolute;\n  left: 0;\n  top: 0;\n  background-color: #fff;\n  border: 1px solid #f1f1f1;\n  border-right-color: #ccc;\n  border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n  text-align: center;\n  color: #999;\n  line-height: 2;\n  border-bottom: 1px solid #f1f1f1;\n  font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n  list-style: none;\n  line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n  color: #333;\n  padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n  background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n  list-style: none;\n  text-align: left;\n  padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n  display: inline-block;\n  padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n  background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){n=n(0)(n(161)),Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;0<=n&&t.item(n)!==this;n--);return-1<n}),n.default||(window.Promise=n.default)},function(e,t,n){e.exports=n(162)},function(e,t,n){n=n(163),e.exports=n},function(e,t,n){n(61),n(50),n(54),n(175),n(178),n(179),n=n(9),e.exports=n.Promise},function(e,t,n){var r=n(62),a=n(49),n=function(o){return function(e,t){var n=String(a(e)),i=r(t),e=n.length;return i<0||e<=i?o?"":void 0:(t=n.charCodeAt(i))<55296||56319<t||i+1===e||(e=n.charCodeAt(i+1))<56320||57343<e?o?n.charAt(i):t:o?n.slice(i,i+2):e-56320+(t-55296<<10)+65536}};e.exports={codeAt:n(!1),charAt:n(!0)}},function(e,t,n){var i=n(8),n=n(101),i=i.WeakMap;e.exports="function"==typeof i&&/native code/.test(n(i))},function(e,t,n){var i=n(8),o=n(19);e.exports=function(t,n){try{o(i,t,n)}catch(e){i[t]=n}return n}},function(e,t,n){function i(){return this}var o=n(103).IteratorPrototype,r=n(77),a=n(48),s=n(36),l=n(43);e.exports=function(e,t,n){return t+=" Iterator",e.prototype=r(o,{next:a(1,n)}),s(e,t,!1,!0),l[t]=i,e}},function(e,t,n){n=n(11),e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var i=n(14),a=n(18),s=n(25),l=n(52);e.exports=i?Object.defineProperties:function(e,t){s(e);for(var n,i=l(t),o=i.length,r=0;r<o;)a.f(e,n=i[r++],t[n]);return e}},function(e,t,n){var i=n(81),o=n(65);e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){var o=n(25),r=n(172);
vendor: 7,581 bytes, line 13
13e.exports=Object.setPrototypeOf||("__proto__"in{}?(()=>{var n,i=!1,e={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),i=e instanceof Array}catch(e){}return function(e,t){return o(e),r(t),i?n.call(e,t):e.__proto__=t,e}})():void 0)},function(e,t,n){var i=n(13);e.exports=function(e){if(i(e)||null===e)return e;throw TypeError("Can't set "+String(e)+" as a prototype")}},function(e,t,n){var i=n(28),o=n(82),r=n(43),a=n(41),n=n(75),s="Array Iterator",l=a.set,c=a.getterFor(s);e.exports=n(Array,"Array",function(e,t){l(this,{type:s,target:i(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(O,P,e){function g(e){var t;return!(!U(e)||"function"!=typeof(t=e.then))&&t}function r(d,h,p){var f;h.notified||(h.notified=!0,f=h.reactions,b(function(){for(var e=h.value,t=1==h.state,n=0;f.length>n;){var i,o,r,a=f[n++],s=t?a.ok:a.fail,l=a.resolve,c=a.reject,u=a.domain;try{s?(t||(2===h.rejection&&j(d,h),h.rejection=1),!0===s?i=e:(u&&u.enter(),i=s(e),u&&(u.exit(),r=!0)),i===a.promise?c($("Promise-chain cycle")):(o=g(i))?o.call(i,l,c):l(i)):c(e)}catch(e){u&&!r&&u.exit(),c(e)}}h.reactions=[],h.notified=!1,p&&!h.rejection&&B(d,h)}))}function o(e,t,n){var i;te?((i=D.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),d.dispatchEvent(i)):i={promise:t,reason:n},(t=d["on"+e])?t(i):e===ne&&G("Unhandled promise rejection",n)}function a(t,n,i,o){return function(e){t(n,i,e,o)}}function s(e,t,n,i){t.done||(t.done=!0,(t=i?i:t).value=n,t.state=2,r(e,t,!0))}function B(n,i){v.call(d,function(){var e,t=i.value;if(ie(i)&&(e=A(function(){M?L.emit("unhandledRejection",t,n):o(ne,n,t)}),i.rejection=M||ie(i)?2:1,e.error))throw e.value})}function j(e,t){v.call(d,function(){M?L.emit("rejectionHandled",e):o("rejectionhandled",e,t.value)})}var n,t,i,l,c=e(5),u=e(42),d=e(8),h=e(35),p=e(108),H=e(53),F=e(109),z=e(36),W=e(110),U=e(13),f=e(40),q=e(83),V=e(33),Y=e(101),m=e(66),y=e(114),K=e(115),v=e(116).set,b=e(176),w=e(118),G=e(177),x=e(85),A=e(119),C=e(41),k=e(100),Q=e(10),_=e(86),X=Q("species"),S="Promise",E=C.get,J=C.set,Z=C.getterFor(S),T=p,$=d.TypeError,D=d.document,L=d.process,N=h("fetch"),I=x.f,ee=I,M="process"==V(L),te=!!(D&&D.createEvent&&d.dispatchEvent),ne="unhandledrejection",y=(k=k(S,function(){if(Y(T)===String(T)){if(66===_)return!0;if(!M&&"function"!=typeof PromiseRejectionEvent)return!0}var e;return!(!u||T.prototype.finally)||!(51<=_&&/native code/.test(T)||(((e=T.resolve(1)).constructor={})[X]=t,e.then(function(){})instanceof t));function t(e){e(function(){},function(){})}}))||!y(function(e){T.all(e).catch(function(){})}),ie=function(e){return 1!==e.rejection&&!e.parent},R=function(n,i,e,t){if(!i.done){i.done=!0,t&&(i=t);try{if(n===e)throw $("Promise can't be resolved itself");var o=g(e);o?b(function(){var t={done:!1};try{o.call(e,a(R,n,t,i),a(s,n,t,i))}catch(e){s(n,t,e,i)}}):(i.value=e,i.state=1,r(n,i,!1))}catch(e){s(n,{done:!1},e,i)}}};k&&(T=function(e){q(this,T,S),f(e),n.call(this);var t=E(this);try{e(a(R,this,t),a(s,this,t))}catch(e){s(this,t,e)}},(n=function(){J(this,{type:S,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=F(T.prototype,{then:function(e,t){var n=Z(this),i=I(K(this,T));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=M?L.domain:void 0,n.parent=!0,n.reactions.push(i),0!=n.state&&r(this,n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),t=function(){var e=new n,t=E(e);this.promise=e,this.resolve=a(R,e,t),this.reject=a(s,e,t)},x.f=I=function(e){return e===T||e===i?new t:ee(e)},u||"function"!=typeof p||(l=p.prototype.then,H(p.prototype,"then",function(e,t){var n=this;return new T(function(e,t){l.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof N&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(){return w(T,N.apply(d,arguments))}}))),c({global:!0,wrap:!0,forced:k},{Promise:T}),z(T,S,!1,!0),W(S),i=h(S),c({target:S,stat:!0,forced:k},{reject:function(e){var t=I(this);return t.reject.call(void 0,e),t.promise}}),c({target:S,stat:!0,forced:u||k},{resolve:function(e){return w(u&&this===i?T:this,e)}}),c({target:S,stat:!0,forced:y},{all:function(e){var s=this,t=I(s),l=t.resolve,c=t.reject,n=A(function(){var i=f(s.resolve),o=[],r=0,a=1;m(e,function(e){var t=r++,n=!1;o.push(void 0),a++,i.call(s,e).then(function(e){n||(n=!0,o[t]=e,--a)||l(o)},c)}),--a||l(o)});return n.error&&c(n.value),t.promise},race:function(e){var n=this,i=I(n),o=i.reject,t=A(function(){var t=f(n.resolve);m(e,function(e){t.call(n,e).then(i.resolve,o)})});return t.error&&o(t.value),i.promise}})},function(e,t,n){var i,o,r,a,s,l,c,u,d=n(8),h=n(71).f,p=n(33),f=n(116).set,g=n(117),m=d.MutationObserver||d.WebKitMutationObserver,y=d.process,n=d.Promise,v="process"==p(y);(h=(h=h(d,"queueMicrotask"))&&h.value)||(i=function(){var e,t;for(v&&(e=y.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():r=void 0,e}}r=void 0,e&&e.enter()},a=v?function(){y.nextTick(i)}:m&&!g?(s=!0,l=document.createTextNode(""),new m(i).observe(l,{characterData:!0}),function(){l.data=s=!s}):n&&n.resolve?(c=n.resolve(void 0),u=c.then,function(){u.call(c,i)}):function(){f.call(d,i)}),e.exports=h||function(e){e={fn:e,next:void 0},r&&(r.next=e),o||(o=e,a()),r=e}},function(e,t,n){var i=n(8);e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var i=n(5),c=n(40),o=n(85),r=n(119),u=n(66);i({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=o.f(s),l=t.resolve,n=t.reject,i=r(function(){var i=c(s.resolve),o=[],r=0,a=1;u(e,function(e){var t=r++,n=!1;o.push(void 0),a++,i.call(s,e).then(function(e){n||(n=!0,o[t]={status:"fulfilled",value:e},--a)||l(o)},function(e){n||(n=!0,o[t]={status:"rejected",reason:e},--a)||l(o)})}),--a||l(o)});return i.error&&n(i.value),t.promise}})},function(e,t,n){var i=n(5),o=n(42),r=n(108),a=n(11),s=n(35),l=n(115),c=n(118),n=n(53);i({target:"Promise",proto:!0,real:!0,forced:!!r&&a(function(){r.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var n=l(this,s("Promise")),e="function"==typeof t;return this.then(e?function(e){return c(n,t()).then(function(){return e})}:t,e?function(e){return c(n,t()).then(function(){throw e})}:t)}}),o||"function"!=typeof r||r.prototype.finally||n(r.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){n(54);var i=n(181),o=n(65),r=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===r||e instanceof Array&&t===r.forEach||a.hasOwnProperty(o(e))?i:t}},function(e,t,n){n=n(182),e.exports=n},function(e,t,n){n(183),n=n(15),e.exports=n("Array").forEach},function(e,t,n){var i=n(5),n=n(184);i({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},function(e,t,n){var i=n(30).forEach,o=n(67),n=n(22),o=o("forEach"),n=n("forEac
13h");e.exports=o&&n?[].forEach:function(e,t){return i(this,e,1<arguments.length?t:void 0)}},function(e,t,n){n=n(186),e.exports=n},function(e,t,n){n(187),n=n(9),e.exports=n.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(55)})},function(e,t,n){n=n(189),e.exports=n},function(e,t,n){var i=n(190),o=Array.prototype;e.exports=function(e){var t=e.map;return e===o||e instanceof Array&&t===o.map?i:t}},function(e,t,n){n(191),n=n(15),e.exports=n("Array").map},function(e,t,n){var i=n(5),o=n(30).map,r=n(56),n=n(22),r=r("map"),n=n("map");i({target:"Array",proto:!0,forced:!r||!n},{map:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){n=n(193),e.exports=n},function(e,t,n){var i=n(194),o=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===o||e instanceof String&&t===o.trim?i:t}},function(e,t,n){n(195),n=n(15),e.exports=n("String").trim},function(e,t,n){var i=n(5),o=n(90).trim;i({target:"String",proto:!0,forced:n(196)("trim")},{trim:function(){return o(this)}})},function(e,t,n){var i=n(11),o=n(68);e.exports=function(e){return i(function(){return!!o[e]()||"​…᠎"!="​…᠎"[e]()||o[e].name!==e})}},function(e,t,n){n=n(198),e.exports=n},function(e,t,n){n(199),n(61),n(50),n(54),n=n(9),e.exports=n.Map},function(e,t,n){var i=n(121),n=n(123);e.exports=i("Map",function(t){return function(e){return t(this,arguments.length?e:void 0)}},n)},function(e,t,n){n=n(11),e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){n=n(202),e.exports=n},function(e,t,n){var i=n(203),o=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===o||e instanceof Array&&t===o.indexOf?i:t}},function(e,t,n){n(204),n=n(15),e.exports=n("Array").indexOf},function(e,t,n){var i=n(5),o=n(78).indexOf,r=n(67),n=n(22),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,r=r("indexOf"),n=n("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:s||!r||!n},{indexOf:function(e,t){return s?a.apply(this,arguments)||0:o(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){n=n(206),e.exports=n},function(e,t,n){var i=n(207),o=Array.prototype;e.exports=function(e){var t=e.splice;return e===o||e instanceof Array&&t===o.splice?i:t}},function(e,t,n){n(208),n=n(15),e.exports=n("Array").splice},function(e,t,n){var i=n(5),d=n(79),h=n(62),p=n(34),f=n(29),g=n(88),m=n(69),o=n(56),n=n(22),o=o("splice"),n=n("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,v=Math.min;i({target:"Array",proto:!0,forced:!o||!n},{splice:function(e,t){var n,i,o,r,a,s,l=f(this),c=p(l.length),u=d(e,c),e=arguments.length;if(0===e?n=i=0:i=1===e?(n=0,c-u):(n=e-2,v(y(h(t),0),c-u)),9007199254740991<c+n-i)throw TypeError("Maximum allowed length exceeded");for(o=g(l,i),r=0;r<i;r++)(a=u+r)in l&&m(o,r,l[a]);if(n<(o.length=i)){for(r=u;r<c-i;r++)s=r+n,(a=r+i)in l?l[s]=l[a]:delete l[s];for(r=c;c-i+n<r;r--)delete l[r-1]}else if(i<n)for(r=c-i;u<r;r--)s=r+n-1,(a=r+i-1)in l?l[s]=l[a]:delete l[s];for(r=0;r<n;r++)l[r+u]=arguments[r+2];return l.length=c-i+n,o}})},function(e,t,n){n=n(210),e.exports=n},function(e,t,n){var i=n(211),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||e instanceof Array&&t===o.filter?i:t}},function(e,t,n){n(212),n=n(15),e.exports=n("Array").filter},function(e,t,n){var i=n(5),o=n(30).filter,r=n(56),n=n(22),r=r("filter"),n=n("filter");i({target:"Array",proto:!0,forced:!r||!n},{filter:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){n=n(214),e.exports=n},function(e,t,n){var i=n(215),o=n(217),r=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===r||e instanceof Array&&t===r.includes?i:"string"==typeof e||e===a||e instanceof String&&t===a.includes?o:t}},function(e,t,n){n(216),n=n(15),e.exports=n("Array").includes},function(e,t,n){var i=n(5),o=n(78).includes,r=n(82);i({target:"Array",proto:!0,forced:!n(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),r("includes")},function(e,t,n){n(218),n=n(15),e.exports=n("String").includes},function(e,t,n){var i=n(5),o=n(219),r=n(49);i({target:"String",proto:!0,forced:!n(221)("includes")},{includes:function(e,t){return!!~String(r(this)).indexOf(o(e),1<arguments.length?t:void 0)}})},function(e,t,n){var i=n(220);e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var i=n(13),o=n(33),r=n(10)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(10)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[i]=!1,"/./"[t](n)}catch(e){}}return!1}},function(e,t,n){n=n(223),e.exports=n},function(e,t,n){var i=n(224),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||e instanceof Function&&t===o.bind?i:t}},function(e,t,n){n(225),n=n(15),e.exports=n("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(226)})},function(e,t,n){var i=n(40),o=n(13),u=[].slice,d={};e.exports=Function.bind||function(a){var s=i(this),l=u.call(arguments,1
13),c=function(){var e=l.concat(u.call(arguments));if(this instanceof c){var t=s,n=e.length,i=e;if(!(n in d)){for(var o=[],r=0;r<n;r++)o[r]="a["+r+"]";d[n]=Function("C,a","return new C("+o.join(",")+")")}return d[n](t,i)}return s.apply(a,e)};return o(s.prototype)&&(c.prototype=s.prototype),c}},function(e,t,n){e.exports=n(228)},function(e,t,n){n=n(229),e.exports=n},function(e,t,n){n(124),n(50),n(54),n=n(93),e.exports=n.f("iterator")},function(e,t,n){e.exports=n(231)},function(e,t,n){var i=n(232);n(251),n(252),n(253),n(254),n(255),e.exports=i},function(e,t,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(124),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n=n(9),e.exports=n.Symbol},function(e,t,n){var i=n(5),o=n(11),l=n(55),c=n(13),u=n(29),d=n(34),h=n(69),p=n(88),r=n(56),a=n(10),n=n(86),f=a("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",o=51<=n||!o(function(){var e=[];return e[f]=!1,e.concat()[0]!==e}),r=r("concat");i({target:"Array",proto:!0,forced:!o||!r},{concat:function(){for(var e,t,n,i=u(this),o=p(i,0),r=0,a=-1,s=arguments.length;a<s;a++)if((e=>{var t;if(c(e))return void 0!==(t=e[f])?t:l(e)})(n=-1===a?i:arguments[a])){if(t=d(n.length),g<r+t)throw TypeError(m);for(e=0;e<t;e++,r++)e in n&&h(o,r,n[e])}else{if(g<=r)throw TypeError(m);h(o,r++,n)}return o.length=r,o}})},function(O,P,e){function i(e,t){var n=$[e]=m(S[k]);return oe(n,{type:C,tag:e,description:t}),s||(n.description=t),n}function B(t,e){h(t);var n=p(e),e=U(n).concat(a(n));return x(e,function(e){s&&!r.call(n,e)||o(t,e,n[e])}),t}function o(e,t,n){return e===_&&o(D,t,n),h(e),t=f(t,!0),h(n),(d($,t)?(n.enumerable?(d(e,A)&&e[A][t]&&(e[A][t]=!1),n=m(n,{enumerable:g(0,!1)})):(d(e,A)||T(e,A,g(1,{})),e[A][t]=!0),M):T)(e,t,n)}function r(e){var t=f(e,!0),e=le.call(this,t);return!(this===_&&d($,t)&&!d(D,t))&&(!(e||!d(this,t)||!d($,t)||d(this,A)&&this[A][t])||e)}function a(e){var t=e===_,e=se(t?D:p(e)),n=[];return x(e,function(e){!d($,e)||t&&!d(_,e)||n.push($[e])}),n}var t=e(5),n=e(8),j=e(35),H=e(42),s=e(14),l=e(76),c=e(105),u=e(11),d=e(16),F=e(55),z=e(13),h=e(25),W=e(29),p=e(28),f=e(60),g=e(48),m=e(77),U=e(52),q=e(125),V=e(235),y=e(126),Y=e(71),K=e(18),G=e(59),Q=e(19),v=e(53),b=e(74),w=e(63),X=e(51),J=e(64),Z=e(10),ee=e(93),te=e(12),ne=e(36),ie=e(41),x=e(30).forEach,A=w("hidden"),C="Symbol",k="prototype",w=Z("toPrimitive"),oe=ie.set,re=ie.getterFor(C),_=Object[k],S=n.Symbol,E=j("JSON","stringify"),ae=Y.f,T=K.f,se=V.f,le=G.f,$=b("symbols"),D=b("op-symbol
13s"),L=b("string-to-symbol-registry"),N=b("symbol-to-string-registry"),b=b("wks"),I=!(n=n.QObject)||!n[k]||!n[k].findChild,M=s&&u(function(){return 7!=m(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=ae(_,t);i&&delete _[t],T(e,t,n),i&&e!==_&&T(_,t,i)}:T,R=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof S},n=function(e,t){var n=p(e),e=f(t,!0);if(n!==_||!d($,e)||d(D,e))return!(t=ae(n,e))||!d($,e)||d(n,A)&&n[A][e]||(t.enumerable=!0),t},c=function(e){var e=se(p(e)),t=[];return x(e,function(e){d($,e)||d(X,e)||t.push(e)}),t};l||(v((S=function(e){if(this instanceof S)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==e?String(e):void 0,t=J(e),n=function(e){this===_&&n.call(D,e),d(this,A)&&d(this[A],t)&&(this[A][t]=!1),M(this,t,g(1,e))};return s&&I&&M(_,t,{configurable:!0,set:n}),i(t,e)})[k],"toString",function(){return re(this).tag}),v(S,"withoutSetter",function(e){return i(J(e),e)}),G.f=r,K.f=o,Y.f=n,q.f=V.f=c,y.f=a,ee.f=function(e){return i(Z(e),e)},s&&(T(S[k],"description",{configurable:!0,get:function(){return re(this).description}}),H||v(_,"propertyIsEnumerable",r,{unsafe:!0}))),t({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:S}),x(U(b),function(e){te(e)}),t({target:C,stat:!0,forced:!l},{for:function(e){var t=String(e);return d(L,t)?L[t]:(e=S(t),L[t]=e,N[e]=t,e)},keyFor:function(e){if(!R(e))throw TypeError(e+" is not a symbol");if(d(N,e))return N[e]},useSetter:function(){I=!0},useSimple:function(){I=!1}}),t({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?m(e):B(m(e),t)},defineProperty:o,defineProperties:B,getOwnPropertyDescriptor:n}),t({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:c,getOwnPropertySymbols:a}),t({target:"Object",stat:!0,forced:u(function(){y.f(1)})},{getOwnPropertySymbols:function(e){return y.f(W(e))}}),E&&t({target:"JSON",stat:!0,forced:!l||u(function(){var e=S();return"[null]"!=E([e])||"{}"!=E({a:e})||"{}"!=E(Object(e))})},{stringify:function(e,t){for(var n,i=[e],o=1;o<arguments.length;)i.push(arguments[o++]);if((z(n=t)||void 0!==e)&&!R(e))return F(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!R(t))return t}),i[1]=t,E.apply(null,i)}}),S[k][w]||Q(S[k],w,S[k].valueOf),ne(S,C),X[A]=!0},function(e,t,n){var i=n(28),o=n(125).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!a||"[object Window]"!=r.call(e))return o(i(e));var t=e;try{return o(t)}catch(t){return a.slice()}}},function(e,t,n){n(12)("asyncIterator")},function(e,t){},function(e,t,n){n(12)("hasInstance")},function(e,t,n){n(12)("isConcatSpreadable")},function(e,t,n){n(12)("match")},function(e,t,n){n(12)("matchAll")},function(e,t,n){n(12)("replace")},function(e,t,n){n(12)("search")},function(e,t,n){n(12)("species")},function(e,t,n){n(12)("split")},function(e,t,n){n(12)("toPrimitive")},function(e,t,n){n(12)("toStringTag")},function(e,t,n){n(12)("unscopables")},function(e,t,n){n(36)(Math,"Math",!0)},function(e,t,n){var i=n(8);n(36)(i.JSON,"JSON",!0)},function(e,t,n){n(12)("asyncDispose")},function(e,t,n){n(12)("dispose")},function(e,t,n){n(12)("observable")},function(e,t,n){n(12)("patternMatch")},function(e,t,n){n(12)("replaceAll")},function(e,t,n){e.exports=n(257)},function(e,t,n){n=n(258),e.exports=n},function(e,t,n){n(259),n=n(9),e.exports=n.parseInt},function(e,t,n){var i=n(5),n=n(260);i({global:!0,forced:parseInt!=n},{parseInt:n})},function(e,t,n){var i=n(8),o=n(90).trim,n=n(68),r=i.parseInt,a=/^[+-]?0[Xx]/,n=8!==r(n+"08")||22!==r(n+"0x16");e.exports=n?function(e,t){return e=o(String(e)),r(e,t>>>0||(a.test(e)?16:10))}:r},function(e,t,n){n=n(262),e.exports=n},function(e,t,n){var i=n(263),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?i:t}},function(e,t,n){n(264),n=n(15),e.exports=n("Array").slice},function(e,t,n){var i=n(5),c=n(13),u=n(55),d=n(79),h=n(34),p=n(28),f=n(69),o=n(10),r=n(56),n=n(22),r=r("slice"),n=n("slice",{ACCESSORS:!0,0:0,1:2}),g=o("species"),m=[].slice,y=Math.max;i({target:"Array",proto:!0,forced:!r||!n},{slice:function(e,t){var n,i,o,r=p(this),a=h(r.length),s=d(e,a),l=d(void 0===t?a:t,a);if(u(r)&&((n="function"==typeof(n=r.constructor)&&(n===Array||u(n.prototype))||c(n)&&null===(n=n[g])?void 0:n)===Array||void 0===n))return m.call(r,s,l);for(i=new(void 0===n?Array:n)(y(l-s,0)),o=0;s<l;s++,o++)s in r&&f(i,o,r[s]);return i.length=o,i}})},function(e,t,n){n(266),n=n(9),e.exports=n.setTimeout},function(e,t,n){var i=n(5),o=n(8),r=n(84),a=[].slice,n=function(o){return function(e,t){var n=2<arguments.length,i=n?a.call(arguments,2):void 0;return o(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,t)}};i({global:!0,bind:!0,forced:/MSIE .\./.test(r)},{setTimeout:n(o.setTimeout),setInterval:n(o.setInterval)})},function(e,t,n){var i=(p=n(0))(n(1)),o=p(n(127)),r=((0,i.default)(t,"__esMo
13dule",{value:!0}),n(2)),a=r.__importDefault(n(272)),s=r.__importDefault(n(273)),l=r.__importDefault(n(128)),c=r.__importDefault(n(274)),u=r.__importDefault(n(275)),d=r.__importDefault(n(276)),h=r.__importDefault(n(129)),p=r.__importDefault(n(277)),i=r.__importDefault(n(278)),n=r.__importDefault(n(279)),n=(0,o.default)({},a.default,s.default,l.default,u.default,c.default,d.default,h.default,p.default,i.default,n.default,{linkCheck:function(){return!0}});t.default=n},function(e,t,n){n=n(269),e.exports=n},function(e,t,n){n(270),n=n(9),e.exports=n.Object.assign},function(e,t,n){var i=n(5),n=n(271);i({target:"Object",stat:!0,forced:Object.assign!==n},{assign:n})},function(e,t,n){var d=n(14),i=n(11),h=n(52),p=n(126),f=n(59),g=n(29),m=n(72),o=Object.assign,r=Object.defineProperty;e.exports=!o||i(function(){var e,t,n,i;return!(!d||1===o({b:1},o(r({},"a",{enumerable:!0,get:function(){r(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},i="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,i.split("").forEach(function(e){t[e]=e}),7!=o({},e)[n])||h(o({},t)).join("")!=i})?function(e){for(var t=g(e),n=arguments.length,i=1,o=p.f,r=f.f;i<n;)for(var a,s=m(arguments[i++]),l=o?h(s).concat(o(s)):h(s),c=l.length,u=0;u<c;)a=l[u++],d&&!r.call(s,a)||(t[a]=s[a]);return t}:o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),n=n(7),t.default={onchangeTimeout:200,onchange:null,onfocus:n.EMPTY_FN,onblur:n.EMPTY_FN,onCatalogChange:null,customAlert:function(e,t,n){window.alert(e),n&&console.error("wangEditor: "+n)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={styleWithCSS:!1}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),n=n(7),t.default={linkImgCheck:function(){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:n.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代ç 
13":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"undo","撤销":"redo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代ç 
13":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(6);t.default={compatibleMode:function(){return!(!i.UA.isIE()&&!i.UA.isOldEdge)},historyMaxSize:30}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),n=n(7),t.default={onlineVideoCheck:function(){return!0},onlineVideoCallback:n.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(17)),s=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3))),a=n(6),l=n(7),n=(c.prototype.getRange=function(){return this._currentRange},c.prototype.saveRange=function(e){var t,n,i;e?this._currentRange=e:0!==(i=window.getSelection()).rangeCount&&(t=i.getRangeAt(0),null!=(n=this.getSelectionContainerElem(t)))&&n.length&&"false"!==n.attr("contenteditable")&&!n.parentUntil("[contenteditable=false]")&&(i=(e=this.editor).$textElem).isContain(n)&&(i.elems[0]===n.elems[0]&&(0,r.default)(n=i.html()).call(n)===l.EMPTY_P&&(i=null==(i=i.children())?void 0:i.last(),e.selection.createRangeByElem(i,!0,!0),e.selection.restoreSelection()),this._currentRange=t)},c.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},c.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},c.prototype.getSelectionContainerElem=function(e){if(e=e||this._currentRange)return e=e.commonAncestorContainer,s.default(1===e.nodeType?e:e.parentNode)},c.prototype.getSelectionStartElem=function(e){if(e=e||this._currentRange)return e=e.startContainer,s.default(1===e.nodeType?e:e.parentNode)},c.prototype.getSelectionEndElem=function(e){if(e=e||this._currentRange)return e=e.endContainer,s.default(1===e.nodeType?e:e.parentNode)},c.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},c.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},c.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{a.UA.isWebkit()?(t.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=s.default("<strong>&#8203;</strong>"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},c.prototype.createRangeByElems=function(e,t){var n=(window.getSelection?window:document).getSelection();null!=n&&n.removeAllRanges(),(n=document.createRange()).setStart(e,0),n.setEnd(t,t.childNodes.length||1),this.saveRange(n),this.restoreSelection()},c.prototype.createRangeByElem=function(e,t,n){var i;e.length&&(i=e.elems[0],e=document.createRange(),n?e.selectNodeContents(i):e.selectNode(i),null!=t&&(e.collapse(t),t||(this.saveRange(e),this.editor.selection.moveCursor(i))),this.saveRange(e))},c.prototype.getSelectionRangeTopNodes=function(){var e=null==(t=this.getSelectionStartElem())?void 0:t.getNodeTop(this.editor),t=null==(t=this.getSelectionEndElem())?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(s.default(e),s.default(t))},c.prototype.moveCursor=function(e,t){var n=this.getRange(),i=3===e.nodeType?null==(i=e.nodeValue)?void 0:i.length:e.childNodes.length;!a.UA.isFirefox&&!a.UA.isIE()||0===i||3!==e.nodeType&&"BR"!==e.childNodes[i-1].nodeName||--i,i=null!=t?t:i,n&&e&&(n.setStart(e,i),n.setEnd(e,i),this.restoreSelection())},c.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},c.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},c.prototype.recordSelectionNodes=function(e,t){var n=[],i=!0;try{for(var o=e,r=this.editor.$textElem;i;){var a=null==o?void 0:o.getNodeTop(this.editor);"BODY"===a.getNodeName()&&(i=!1),0<a.length&&(n.push(s.default(o)),null!=t&&t.equal(a)||r.equal(a)?i=!1:o=a.getNextSibling())}}catch(e){i=!1}return n},c.prototype.setRangeToElem=function(e){var t=this.getRange();null!=t&&t.setStart(e,0),null!=t&&t.setEnd(e,0)},c);function c(e){this._currentRange=null,this.editor=e}t.default=n}
vendor: 4,103 bytes, line 13
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(2).__importDefault(n(3)),n=(i.prototype.do=function(e,t){var n=this.editor,i=(n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true"),n.selection);if(i.getRange()){switch(i.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t)}n.menus.changeActive(),i.saveRange(),i.restoreSelection()}},i.prototype.insertHTML=function(e){var t,n=this.editor,i=n.selection.getRange();null!=i&&(this.queryCommandSupported("insertHTML")?this.execCommand("insertHTML",e):i.insertNode&&(i.deleteContents(),0<o.default(e).elems.length?i.insertNode(o.default(e).elems[0]):((t=document.createElement("p")).appendChild(document.createTextNode(e)),i.insertNode(t)),n.selection.collapseRange()))},i.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},i.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},i.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},i.prototype.queryCommandState=function(e){return document.queryCommandState(e)},i.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},i);function i(e){this.editor=e}t.default=n},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(31)),a=i(n(4)),s=i(n(17)),l=i(n(27)),c=i(n(46));(0,o.default)(t,"__esModule",{value:!0});var u=(o=n(2)).__importDefault(n(3)),d=o.__importDefault(n(287)),h=n(6),p=o.__importDefault(n(299)),f=o.__importDefault(n(300)),g=n(7),n=(m.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},m.prototype.togglePlaceholder=function(){var e=this.html(),t=(0,r.default)(t=this.editor.$textContainerElem).call(t,".placeholder");t.hide(),this.editor.isComposing||e&&" "!==e||t.show()},m.prototype.clear=function(){this.html(g.EMPTY_P)},m.prototype.html=function(e){var t,n,i=this.editor,o=i.$textElem;if(null==e)return null!==(n=(t=(t=(t=(t=(t=o.html()).replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(g.EMPTY_P_LAST_REGEX,"")).replace(g.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi))&&(0,a.default)(n).call(n,function(e){e.match(/\/>/)||(t=t.replace(e,e.substring(0,e.length-1)+"/>"))}),t;""===(e=(0,s.default)(e).call(e))&&(e=g.EMPTY_P),0!==(0,l.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),o.html(e),i.initSelection()},m.prototype.setJSON=function(e){var t=f.default(e).children(),e=this.editor.$textElem;t&&e.replaceChildAll(t)},m.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},m.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.text().replace(/\u200b/gm,"");n.text("<p>"+e+"</p>"),t.initSelection()},m.prototype.append=function(e){var t=this.editor;0!==(0,l.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},m.prototype._saveRange=function(){var t=this.editor,n=t.$textElem,e=u.default(document);function i(){t.selection.saveRange(),t.menus.changeActive()}function o(){i(),e.off("mouseup",o)}function r(){e.on("mouseup",o),n.off("mouseleave",r)}n.on("keyup",i),n.on("click",function e(){i(),n.off("click",e)}),n.on("mousedown",function(){n.on("mouseleave",r)}),n.on("mouseup",function(e){n.off("mouseleave",r),(0,c.default)(function(){null!==t.selection.getRange()&&i()},0)})},m.prototype._bindEventHooks=function(){var i=this.editor,e=i.$textElem,o=this.eventHooks;function t(e){e.preventDefault()}e.on("click",function(t){var e=o.clickEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("keyup",function(t){var e;13===t.keyCode&&(e=o.enterUpEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keyup",function(t){var e=o.keyupEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("keydown",function(t){var e=o.keydownEvents;(0,c.default)(function(){(0,a.default)(e).call(e,function(e){return e(t)})})}),e.on("keyup",function(t){var e;8!==t.keyCode&&46!==t.keyCode||(e=o.deleteUpEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}
13),e.on("keydown",function(t){var e;8!==t.keyCode&&46!==t.keyCode||(e=o.deleteDownEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("paste",function(t){var e;h.UA.isIE()||(t.preventDefault(),e=o.pasteEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keydown",function(e){(i.isFocus||i.isCompatibleMode)&&(e.ctrlKey||e.metaKey)&&90===e.keyCode&&(e.preventDefault(),e.shiftKey?i.history.restore():i.history.revoke())}),e.on("keyup",function(t){var e;9===t.keyCode&&(t.preventDefault(),e=o.tabUpEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("keydown",function(t){var e;9===t.keyCode&&(t.preventDefault(),e=o.tabDownEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("scroll",h.throttle(function(t){var e=o.textScrollEvents;(0,a.default)(e).call(e,function(e){return e(t)})},100)),u.default(document).on("dragleave",t).on("drop",t).on("dragenter",t).on("dragover",t),i.beforeDestroy(function(){u.default(document).off("dragleave",t).off("drop",t).off("dragenter",t).off("dragover",t)}),e.on("drop",function(t){t.preventDefault();var e=o.dropEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),e.on("click",function(e){var t,n=null,e=e.target;"A"===(e=u.default(e)).getNodeName()?n=e:null!=(t=e.parentUntil("a"))&&(n=t),n&&(t=o.linkClickEvents,(0,a.default)(t).call(t,function(e){return e(n)}))}),e.on("click",function(e){var t=null,n=e.target;"IMG"!==(n=u.default(n)).getNodeName()||n.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=n),t&&(n=o.imgClickEvents,(0,a.default)(n).call(n,function(e){return e(t)}))}),e.on("click",function(e){var t,n=null,e=e.target;"PRE"===(e=u.default(e)).getNodeName()?n=e:null!==(t=e.parentUntil("pre"))&&(n=t),n&&(t=o.codeClickEvents,(0,a.default)(t).call(t,function(e){return e(n)}))}),e.on("click",function(e){var t=null,e=e.target,e=u.default(e);(t="HR"===e.getNodeName()?e:t)&&(i.selection.createRangeByElem(t),i.selection.restoreSelection(),e=o.splitLineEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),i.$toolbarElem.on("click",function(t){var e=o.toolbarClickEvents;(0,a.default)(e).call(e,function(e){return e(t)})}),i.$textContainerElem.on("mousedown",function(e){e=e.target,u.default(e).hasClass("w-e-img-drag-rb")&&(e=o.imgDragBarMouseDownEvents,(0,a.default)(e).call(e,function(e){return e()}))}),e.on("click",function(t){var n,e=t.target;(n=u.default(e).parentUntilEditor("TABLE",i,e))&&(e=o.tableClickEvents,(0,a.default)(e).call(e,function(e){return e(n,t)}))}),e.on("keydown",function(t){var e;13===t.keyCode&&(e=o.enterDownEvents,(0,a.default)(e).call(e,function(e){return e(t)}))}),e.on("click",function(e){var t=null,n=e.target;"VIDEO"===(n=u.default(n)).getNodeName()&&(e.stopPropagation(),t=n),t&&(n=o.videoClickEvents,(0,a.default)(n).call(n,function(e){return e(t)}))})},m);function m(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}t.default=n},function(e,t,n){n=n(284),e.exports=n},function(e,t,n){var i=n(285),o=Array.prototype;e.exports=function(e){var t=e.find;return e===o||e instanceof Array&&t===o.find?i:t}},function(e,t,n){n(286),n=n(15),e.exports=n("Array").find},function(e,t,n){var i=n(5),o=n(30).find,r=n(82),a=n(22),s=!0,a=a(n="find");n in[]&&Array(1).find(function(){s=!1}),i({target:"Array",proto:!0,forced:s||!a},{find:function(e,t){return o(this,e,1<arguments.length?t:void 0)}}),r(n)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(288)),r=i.__importStar(n(289)),a=i.__importDefault(n(290)),s=i.__importDefault(n(291)),l=i.__importDefault(n(298));t.default=function(e){var t=e.editor,e=e.eventHooks;o.default(t,e.enterUpEvents,e.enterDownEvents),r.default(t,e.deleteUpEvents,e.deleteDownEvents),r.cutToKeepP(t,e.keyupEvents),a.default(t,e.tabDownEvents),s.default(t,e.pasteEvents),l.default(t,e.imgClickEvents)}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(27)),o=((0,o.default)(t,"__esMo
13dule",{value:!0}),n(2)),a=n(7),s=o.__importDefault(n(3));t.default=function(i,e,t){function o(e){var t,n=s.default(a.EMPTY_P);n.insertBefore(e),(0<=(0,r.default)(t=e.html()).call(t,"<img")?n:(i.selection.createRangeByElem(n,!0,!0),i.selection.restoreSelection(),e)).remove()}e.push(function(){var e=i.$textElem,t=i.selection.getSelectionContainerElem(),n=t.parent();"<code><br></code>"===n.html()||"FONT"===t.getNodeName()&&""===t.text()&&"monospace"===t.attr("face")?o(n):!n.equal(e)||"P"===t.getNodeName()&&null===t.attr("data-we-empty-p")||t.text()||o(t)}),t.push(function(e){var t;i.selection.saveRange(null==(t=getSelection())?void 0:t.getRangeAt(0)),i.selection.getSelectionContainerElem().id===i.textElemId&&(e.preventDefault(),i.cmd.do("insertHTML","<p><br></p>"))})}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(17)),a=i(n(44)),o=((0,o.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0,n(2)),s=n(7),l=o.__importDefault(n(3));t.cutToKeepP=function(n,e){e.push(function(e){var t;88===e.keyCode&&(t=n.$textElem,(e=(0,r.default)(e=t.html().toLowerCase()).call(e))&&"<br>"!==e||(e=l.default(s.EMPTY_P),t.html(" "),t.append(e),n.selection.createRangeByElem(e,!1,!0),n.selection.restoreSelection(),n.selection.moveCursor(e.getNode(),0)))})},t.default=function(o,e,t){e.push(function(){var e=o.$textElem,t=o.$textElem.html(),n=o.$textElem.text(),i=(0,r.default)(t).call(t),t=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',s.EMPTY_P];!/^\s*$/.test(n)||i&&!(0,a.default)(t).call(t,i)||(e.html(s.EMPTY_P),e=e.getNode(),o.selection.createRangeByElems(e.childNodes[0],e.childNodes[0]),e=o.selection.getSelectionContainerElem(),o.selection.restoreSelection(),o.selection.moveCursor(e.getNode(),0))}),t.push(function(e){var t=o.$textElem;(0,r.default)(t=t.html().toLowerCase()).call(t)===s.EMPTY_P&&e.preventDefault()})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(n,e){e.push(function(){var e,t;n.cmd.queryCommandSupported("insertHTML")&&(e=n.selection.getSelectionContainerElem())&&(t=e.parent(),e=e.getNodeName(),t=t.getNodeName(),"CODE"==e||"CODE"===t||"PRE"===t||/hljs/.test(t)?n.cmd.do("insertHTML",n.config.languageTab):n.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;"))})}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(17)),h=((0,o.default)(t,"__esModule",{value:!0}),n(130)),p=n(6),f=n(7);function g(e){var e=(0,r.default)(t=e.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(t),t=document.createElement("div");return t.innerHTML=e,t.innerHTML.replace(/<p><\/p>/gim,"")}t.default=function(d,e){e.push(function(e){var t,n=d.config,i=n.pasteFilterStyle,o=n.pasteTextHandle,n=h.getPasteHtml(e,i,n.pasteIgnoreImg),r=(r=h.getPasteText(e)).replace(/\n/gm,"<br>"),a=d.selection.getSelectionContainerElem();if(a){var s,l,c=null==a?void 0:a.getNodeName(),u=null==a?void 0:a.getNodeTop(d),e="";if(u.elems[0]&&(e=null==u?void 0:u.getNodeName()),"CODE"===c||"PRE"===e)o&&p.isFunction(o)&&(r=""+(o(r)||"")),d.cmd.do("insertHTML",r.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,""));else{if(f.urlRegex.test(r)&&i)return o&&p.isFunction(o)&&(r=""+(o(r)||"")),c=f.urlRegex.exec(r)[0],e=r.replace(f.urlRegex,""),d.cmd.do("insertHTML",'<a href="'+c+'" target="_blank">'+c+"</a>"+e);if(n)try{o&&p.isFunction(o)&&(n=""+(o(n)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(n)&&i?d.cmd.do("insertHTML",""+g(r)):(e=>{var t;if(""!==e)return(t=document.createElement("div")).innerHTML=e,"P"===(null==(t=t.firstChild)?void 0:t.nodeName)})(s=g(n))?(l=d.$textElem,d.cmd.do("insertHTML",s),l.equal(a)?d.selection.createEmptyRange():null!=u&&u.length&&"P"===(t=u.elems[0]).nodeName&&"<br>"===t.innerHTML&&u.remove()):/^<img [^>]*src=['"]([^'"]+)[^>]*>$/g.test(s)||d.cmd.do("insertHTML",s)}catch(e){o&&p.isFunction(o)&&(r=""+(o(r)||"")),d.cmd.do("insertHTML",""+g(r))}}}})}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(17)),u=i(n(4)),d=i(n(44)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),h=n(293),p=o.__importDefault(n(297));function f(e,t){var n;return e=(0,r.default)(n=e.toLowerCase()).call(n),h.IGNORE_TAGS.has(e)||t&&"img"===e}t.default=function(e,a,s){void 0===a&&(a=!0),void 0===s&&(s=!1);var l=[],t="";function c(e){!(e=(0,r.default)(e).call(e))||h.EMPTY_TAGS.has(e)||(t=e)}(new p.default).parse(e,{startElement:function(e,t){var n,i,o,r;c(e),f(e,s)||(n=h.NECESSARY_ATTRS.get(e)||[],i=[],(0,u.default)(t).call(t,function(e){var t=e.name;"style"!==t?!1!==(0,d.default)(n).call(n,t)&&i.push(e):a||i.push(e)}),o=i,t="",t="<"+e,r=[],(0,u.default)(o).call(o,function(e){r.push(e.name+'="'+e.value+'"')}),t=(t=0<r.length?t+" "+r.join(" "):t)+(h.EMPTY_TAGS.has(e)?"/":"")+">",l.push(t))},characters:function(e){!e||f(t,s)||l.push(e)},endElement:function(e){f(e,s)||(l.push(e="</"+e+">"),t="")},comment:function(e){c(e)}});var e=l.join(""),n=/<span>(.*?)<\/span>/;return e.replace(/<span>.*?<\/span>/gi,function(e){return null==(e=e.match(n))?"":e[1]})}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(131)),n=i(n(120));
13(0,o.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new r.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new n.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new r.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new r.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){n=n(295),e.exports=n},function(e,t,n){n(296),n(61),n(50),n(54),n=n(9),e.exports=n.Set},function(e,t,n){var i=n(121),n=n(123);e.exports=i("Set",function(t){return function(e){return t(this,arguments.length?e:void 0)}},n)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var n,i,o=!1,r=this;0<e.length;)"\x3c!--"==e.substring(0,4)?o=-1==(i=e.indexOf("--\x3e"))||(this.contentHandler.comment(e.substring(4,i)),e=e.substring(i+3),!1):"</"==e.substring(0,2)?o=!this.endTagRe.test(e)||(RegExp.leftContext,n=RegExp.rightContext,RegExp.lastMatch.replace(this.endTagRe,function(){return r.parseEndTag.apply(r,arguments)}),e=n,!1):"<"==e.charAt(0)&&(o=!this.startTagRe.test(e)||(RegExp.leftContext,n=RegExp.rightContext,RegExp.lastMatch.replace(this.startTagRe,function(){return r.parseStartTag.apply(r,arguments)}),e=n,!1)),o&&(e=-1==(i=e.indexOf("<"))?(this.contentHandler.characters(e),""):(this.contentHandler.characters(e.substring(0,i)),e.substring(i))),o=!0},parseStartTag:function(e,t,n){n=this.parseAttributes(t,n),this.contentHandler.startElement(t,n)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(l,e){var c=this,u=[];return e.replace(this.attrRe,function(e,t,n,i,o,r,a,s){u.push(c.parseAttribute(l,e,t,n,i,o,r,a,s))}),u},parseAttribute:function(e,t,n){var i="";return arguments[7]?i=arguments[8]:arguments[5]?i=arguments[6]:arguments[3]&&(i=arguments[4]),{name:n,value:i||arguments[3]?i:null}}},e.exports=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(t,e){e.push(function(e){t.selection.createRangeByElem(e),t.selection.restoreSelection()})}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),u=n(6),d=o.__importDefault(n(3));t.default=function l(e){var c=[],e=e.childNodes()||[];return(0,r.default)(e).call(e,function(e){var t,n=e.nodeType;if(3===n&&(t=e.textContent||"",t=u.replaceHtmlSymbol(t)),1===n){(t={}).tag=e.nodeName.toLowerCase();for(var i=[],o=e.attributes,r=o.length||0,a=0;a<r;a++){var s=o[a];i.push({name:s.name,value:s.value})}t.attrs=i,t.children=l(d.default(e))}t&&c.push(t)}),c}},function(e,t,n){var i=n(0),r=i(n(92)),o=i(n(1)),a=i(n(4)),s=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3)));t.default=function i(e,t){var o=t=void 0===t?document.createElement("div"):t;return(0,a.default)(e).call(e,function(e){var t,n;"string"==typeof e&&(n=document.createTextNode(e)),"object"===(0,r.default)(e)&&(n=document.createElement(e.tag),(0,a.default)(t=e.attrs).call(t,function(e){s.default(n).attr(e.name,e.value)}),e.children)&&0<e.children.length&&i(e.children,n.getRootNode()),n&&o.appendChild(n)}),s.default(o)}},function(e,t,n){var i=n(0),o=i(n(1)),l=i(n(89)),c=i(n(70)),u=i(n(44)),d=i(n(302)),h=i(n(4)),p=i(n(94)),r=i(n(132)),f=i(n(46)),a=i(n(57));(0,o.default)(t,"__esModule",{value:!0});var g=(o=n(2)).__importDefault(n(87)),s=o.__importDefault(n(314)),m=o.__importDefault(n(3)),n=(y.prototype.extend=function(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)},y.prototype.init=function(){var n=this,e=this.editor.config,t=e.excludeMenus,i=(!1===(0,l.default)(t)&&(t=[]),e.menus=(0,c.default)(i=e.menus).call(i,function(e){return!1===(0,u.default)(t).call(t,e)}),(0,d.default)(g.default.globalCustomMenuConstructorList)),i=(0,c.default)(i).call(i,function(e){return(0,u.default)(t).call(t,e)});(0,h.default)(i).call(i,function(e){delete g.default.globalCustomMenuConstructorList[e]}),(0,h.default)(i=e.menus).call(i,function(e){var t=n.constructorList[e];n._initMenuList(e,t)});for(var o=0,r=(0,p.default)(g.default.globalCustomMenuConstructorList);o<r.length;o++){var a=r[o],s=a[0];this._initMenuList(s,a[1])}this._addToToolbar(),e.showMenuTooltips&&this._bindMenuTooltips()},y.prototype._initMenuList=function(t,e){var n;null!=e&&"function"==typeof e&&((0,r.default)(n=this.menuList).call(n,function(e){return e.key===t})?console.warn("菜单名称重复:"+t):((e=new e(this.editor)).key=t,this.menuList.push(e)))},y.prototype._bindMenuTooltips=function(){var o=this.editor,r=o.$toolbarElem,a=o.config.menuTooltipPosition,s=m.default('<div class="w-e-menu
13-tooltip w-e-menu-tooltip-'+a+'">\n            <div class="w-e-menu-tooltip-item-wrapper">\n              <div></div>\n            </div>\n          </div>'),l=(s.css("visibility","hidden"),r.append(s),s.css("z-index",o.zIndex.get("tooltip")),0);function c(){l&&clearTimeout(l)}function u(){c(),s.css("visibility","hidden")}r.on("mouseover",function(e){var t,n,i,e=e.target;!(e=m.default(e)).isContain(r)&&(null!=e.parentUntil(".w-e-droplist")?u():e.attr("data-title")?(i=e.attr("data-title"),n=e):null!=(t=e.parentUntil(".w-e-menu"))&&(i=t.attr("data-title"),n=t),i)&&n?(c(),t=n.getOffsetData(),s.text(o.i18next.t("menus.title."+i)),n=s.getOffsetData(),i=t.left+t.width/2-n.width/2,s.css("left",i+"px"),"up"===a?s.css("top",t.top-n.height-8+"px"):"down"===a&&s.css("top",t.top+t.height+8+"px"),l=(0,f.default)(function(){s.css("visibility","visible")},200)):u()}).on("mouseleave",function(){u()})},y.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,h.default)(e=this.menuList).call(e,function(e){(e=e.$elem)&&t.append(e)})},y.prototype.menuFind=function(e){for(var t=this.menuList,n=0,i=t.length;n<i;n++)if(t[n].key===e)return t[n];return t[0]},y.prototype.changeActive=function(){var e;(0,h.default)(e=this.menuList).call(e,function(e){var t;(0,f.default)((0,a.default)(t=e.tryChangeActive).call(t,e),100)})},y);function y(e){this.editor=e,this.menuList=[],this.constructorList=s.default}t.default=n},function(e,t,n){e.exports=n(303)},function(e,t,n){n=n(304),e.exports=n},function(e,t,n){n(305),n=n(9),e.exports=n.Object.keys},function(e,t,n){var i=n(5),o=n(29),r=n(52);i({target:"Object",stat:!0,forced:n(11)(function(){r(1)})},{keys:function(e){return r(o(e))}})},function(e,t,n){n=n(307),e.exports=n},function(e,t,n){n(308),n=n(9),e.exports=n.Object.entries},function(e,t,n){var i=n(5),o=n(309).entries;i({target:"Object",stat:!0},{entries:function(e){return o(e)}})},function(e,t,n){var l=n(14),c=n(52),u=n(28),d=n(59).f,n=function(s){return function(e){for(var t,n=u(e),i=c(n),o=i.length,r=0,a=[];r<o;)t=i[r++],l&&!d.call(n,t)||a.push(s?[t,n[t]]:n[t]);return a}};e.exports={entries:n(!0),values:n(!1)}},function(e,t,n){n=n(311),e.exports=n},function(e,t,n){var i=n(312),o=Array.prototype;e.exports=function(e){var t=e.some;return e===o||e instanceof Array&&t===o.some?i:t}},function(e,t,n){n(313),n=n(15),e.exports=n("Array").some},function(e,t,n){var i=n(5),o=n(30).some,r=n(67),n=n(22),r=r("some"),n=n("some");i({target:"Array",proto:!0,forced:!r||!n},{some:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(315)),r=i.__importDefault(n(316)),a=i.__importDefault(n(321)),s=i.__importDefault(n(326)),l=i.__importDefault(n(327)),c=i.__importDefault(n(328)),u=i.__importDefault(n(329)),d=i.__importDefault(n(331)),h=i.__importDefault(n(333)),p=i.__importDefault(n(334)),f=i.__importDefault(n(337)),g=i.__importDefault(n(338)),m=i.__importDefault(n(339)),y=i.__importDefault(n(350)),v=i.__importDefault(n(365)),b=i.__importDefault(n(369)),w=i.__importDefault(n(137)),x=i.__importDefault(n(378)),A=i.__importDefault(n(380)),C=i.__importDefault(n(381)),k=i.__importDefault(n(382)),_=i.__importDefault(n(401)),S=i.__importDefault(n(406)),n=i.__importDefault(n(409));t.default={bold:o.default,head:r.default,italic:s.default,link:a.default,underline:l.default,strikeThrough:c.default,fontName:u.default,fontSize:d.default,justify:h.default,quote:p.default,backColor:f.default,foreColor:g.default,video:m.default,image:y.default,indent:v.default,emoticon:b.default,list:w.default,lineHeight:x.default,undo:A.default,redo:C.default,table:k.default,code:_.default,splitLine:S.default,todo:n.default}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(a=n(2)).__importDefault(n(23)),r=a.__importDefault(n(3)),a=(i=o.default,a.__extends(s,i),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},s);function s(e){var t=r.default('<div class="w-e-menu" data-title="加粗">\n                <i class="w-e-icon-bold"></i>\n            </div>');return i.call(this,t,e)||this}t.default=a},function(e,t,n){var i=(u=n(0))(n(1)),o=u(n(27)),a=u(n(31)),h=u(n(4)),s=u(n(317)),r=u(n(44));
vendor: 4,428 bytes, line 13
13(0,i.default)(t,"__esModule",{value:!0});var l,i=(u=n(2)).__importDefault(n(24)),p=u.__importDefault(n(3)),c=n(6),f=n(7),u=(l=i.default,u.__extends(d,l),d.prototype.command=function(e){var t,n=this.editor,i=n.selection.getSelectionContainerElem();if(i&&n.$textElem.equal(i))this.setMultilineHead(e);else{if(-1<(0,o.default)(t=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(t,p.default(i).getNodeName()))return;n.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},d.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=c.getRandomCode();p.default(e).attr("id",t)},d.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push(function(){e.getCatalogs()})},d.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,e=e.config.onCatalogChange,t=(0,a.default)(t).call(t,"h1,h2,h3,h4,h5"),r=[];(0,h.default)(t).call(t,function(e,t){var n=p.default(e),i=n.attr("id"),o=n.getNodeName(),e=n.text();i||(i=c.getRandomCode(),n.attr("id",i)),e&&r.push({tag:o,id:i,text:e})}),(0,s.default)(this.oldCatalogs)!==(0,s.default)(r)&&(this.oldCatalogs=r,e)&&e(r)},d.prototype.setMultilineHead=function(o){var r=this,n=this.editor,e=n.selection,t=null==(i=e.getSelectionContainerElem())?void 0:i.elems[0],a=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],i=p.default(e.getSelectionStartElem()),s=p.default(e.getSelectionEndElem()),l=(s.elems[0].outerHTML!==p.default(f.EMPTY_P).elems[0].outerHTML||s.elems[0].nextSibling||(s=s.prev()),[]),c=(l.push(i.getNodeTop(n)),[]);null!=(i=null==(i=e.getRange())?void 0:i.commonAncestorContainer.childNodes)&&(0,h.default)(i).call(i,function(e,t){e===l[0].getNode()&&c.push(t),e===s.getNodeTop(n).getNode()&&c.push(t)});for(var u=0;l[u].getNode()!==s.getNodeTop(n).getNode();){if(!l[u].elems[0])return;var d=p.default(l[u].next().getNode());l.push(d),u++}null!=l&&(0,h.default)(l).call(l,function(e,t){var n,i;r.hasTag(e,a)||(n=p.default(o),i=e.parent().getNode(),n.html(""+e.html()),i.insertBefore(n.getNode(),e.getNode()),e.remove())}),e.createRangeByElems(t.children[c[0]],t.children[c[1]])},d.prototype.hasTag=function(e,t){var n,i=this;return!!e&&(!!(0,r.default)(t).call(t,null==e?void 0:e.getNodeName())||(n=!1,null!=(e=e.children())&&(0,h.default)(e).call(e,function(e){n=i.hasTag(p.default(e),t)}),n))},d.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},d);function d(e){var t=this,n=p.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),i={width:100,title:"设置标题",type:"list",list:[{$elem:p.default("<h1>H1</h1>"),value:"<h1>"},{$elem:p.default("<h2>H2</h2>"),value:"<h2>"},{$elem:p.default("<h3>H3</h3>"),value:"<h3>"},{$elem:p.default("<h4>H4</h4>"),value:"<h4>"},{$elem:p.default("<h5>H5</h5>"),value:"<h5>"},{$elem:p.default("<p>"+e.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){t.command(e)}},t=l.call(this,n,e,i)||this;return e.config.onCatalogChange&&(t.oldCatalogs=[],t.addListenerCatalog(),t.getCatalogs()),t}t.default=u},function(e,t,n){e.exports=n(318)},function(e,t,n){n=n(319),e.exports=n},function(e,t,n){n(320);var i=n(9);i.JSON||(i.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return i.JSON.stringify.apply(null,arguments)}},function(e,t,n){function o(e,t,n){var i=n.charAt(t-1),t=n.charAt(t+1);return l.test(e)&&!c.test(t)||c.test(e)&&!l.test(i)?"\\u"+e.charCodeAt(0).toString(16):e}var i=n(5),r=n(35),n=n(11),a=r("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,n=n(function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")});a&&i({target:"JSON",stat:!0,forced:n},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(s,o):i}})},function(e,t,n){var i=(h=n(0))(n(1)),o=h(n(17));(0,i.default)(t,"__esModule",{value:!0});var r,i=(h=n(2)).__importDefault(n(37)),a=h.__importDefault(n(3)),s=h.__importDefault(n(322)),l=h.__importDefault(n(134)),c=h.__importDefault(n(32)),u=h.__importDefault(n(324)),d=n(7),h=(r=i.default,h.__extends(p,r),p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionContainerElem(),n=e.$textElem,i=n.html();(0,o.default)(i).call(i)===d.EMPTY_P&&(n=n.children(),e.selection.createRangeByElem(n,!0,
13!0),t=e.selection.getSelectionContainerElem()),t&&e.$textElem.equal(t)||(this.isActive?(t=e.selection.getSelectionContainerElem())&&this.createPanel(t.text(),t.attr("href")):e.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(e.selection.getSelectionText(),""))},p.prototype.createPanel=function(e,t){t=s.default(this.editor,e,t),new c.default(this,t).create()},p.prototype.tryChangeActive=function(){var e=this.editor;l.default(e)?this.active():this.unActive()},p);function p(e){var t=a.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>'),t=r.call(this,t,e)||this;return u.default(e),t}t.default=h},function(e,t,n){var i=n(0),o=i(n(1)),d=i(n(17)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),a=n(6),h=o.__importDefault(n(3)),p=o.__importDefault(n(134)),f=n(323);t.default=function(s,e,t){var n,l=a.getRandom("input-link"),c=a.getRandom("input-text"),i=a.getRandom("btn-ok"),o=a.getRandom("btn-del"),r=p.default(s)?"inline-block":"none";function u(){var e;p.default(s)&&(e=s.selection.getSelectionContainerElem())&&(s.selection.createRangeByElem(e),s.selection.restoreSelection(),n=e)}return{width:300,height:0,tabs:[{title:s.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n                        <input\n                            id="'+c+'"\n                            type="text"\n                            class="block"\n                            value="'+e+'"\n                            placeholder="'+s.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n                        </td>\n                        <input\n                            id="'+l+'"\n                            type="text"\n                            class="block"\n                            value="'+t+'"\n                            placeholder="'+s.i18next.t("如")+' https://..."/>\n                        </td>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+i+'" class="right">\n                                '+s.i18next.t("插入")+'\n                            </button>\n                            <button type="button" id="'+o+'" class="gray right" style="display:'+r+'">\n                                '+s.i18next.t("menus.panelMenus.link.取消链接")+"\n                            </button>\n                        </div>\n                    </div>",events:[{selector:"#"+i,type:"click",fn:function(){s.selection.restoreSelection();var e,t=s.selection.getSelectionRangeTopNodes()[0].getNode(),n=window.getSelection(),i=h.default("#"+l),o=h.default("#"+c),i=(0,d.default)(r=i.val()).call(r),o=(0,d.default)(r=o.val()).call(r),r="",a=null!=(t=null==(n=null==(r=!n||null!=n&&n.isCollapsed?r:null==(a=f.insertHtml(n,t))?void 0:(0,d.default)(a).call(a))?void 0:r.replace(/<.*?>/g,""))?void 0:n.length)?t:0;if((a<=o.length&&(t=o.substring(0,a),e=o.substring(a),n===t)&&(o=r+e),i)&&((e,t)=>{if(void 0!==(t=s.config.linkCheck(e,t))){if(!0===t)return 1;s.config.customAlert(t,"warning")}})(o=o||i,i))return e=o,o=i,i=new RegExp(/(<\/*ul>)|(<\/*li>)|(<\/*ol>)/g),e=e.replace(i,""),p.default(s)&&u(),s.cmd.do("insertHTML",'<a href="'+o+'" target="_blank">'+e+"</a>"),!0},bindEnter:!0},{selector:"#"+o,type:"click",fn:function(){var e;return p.default(s)&&(u(),e=n.text(),s.cmd.do("insertHTML","<span>"+e+"</span>")),!0}}]}]}}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4));function p(e,t){for(var n=e,i=e;n.textContent!==t&&"P"!==(null==(n=(i=n).parentNode?null==n?void 0:n.parentNode:n)?void 0:n.nodeName););return i}function f(e,t){var n,i=e.nodeName,o="";return 3===e.nodeType||/^(h|H)[1-6]$/.test(i)?t:(1===e.nodeType&&((n=e.getAttribute("style"))&&(o=o+' style="'+n+'"'),(n=e.getAttribute("face"))&&(o=o+' face="'+n+'"'),e=e.getAttribute("color"))&&(o=o+' color="'+e+'"'),"<"+(i=i.toLowerCase())+o+">"+t+"</"+i+">")}function g(e,t,n,i){for(var o,r=null==(o=t.textContent)?void 0:o.substring(n,i),a=t,s="";r=s=f(a,null!=r?r:""),(a=null==a?void 0:a.parentElement)&&a.textContent!==e;);return s}function m(e,t){return(0,r.default)(e).call(e,function(e){t=f(e,t)}),t}
13(0,o.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=p,t.makeHtmlString=f,t.createPartHtml=g,t.insertHtml=function(e,t){var n=e.anchorNode,i=e.focusNode,o=e.anchorOffset,r=e.focusOffset,a=null!=(c=t.textContent)?c:"",s=(e=>{for(var t,n=null!=(t=e.textContent)?t:"",i=[];(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&i.push(e),e=e.childNodes[0];return i})(t),e="",l="",c="",t=n,u=i,d=n;if(null!=n&&n.isEqualNode(null!=i?i:null))return m(s,g(a,n,o,r));for(n&&(e=g(a,n,null!=o?o:0)),i&&(c=g(a,i,0,r)),n&&(t=p(n,a)),i&&(u=p(i,a)),d=null!=(t=null==t?void 0:t.nextSibling)?t:n;null==d||!d.isEqualNode(null!=u?u:null);){"#text"===(null==d?void 0:d.nodeName)?l+=null==d?void 0:d.textContent:(h=null==(h=null==(h=null==d?void 0:d.firstChild)?void 0:h.parentElement)?void 0:h.innerHTML,d&&(l+=f(d,null!=h?h:"")));var h=null!=(h=null==d?void 0:d.nextSibling)?h:d;if(h===d)break;d=h}return m(s,""+e+l+c)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(325));t.default=function(e){i.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38));t.default=function(e){n=e;var n,i,t=(o={showLinkTooltip:function(e){var t=[{$elem:r.default("<span>"+n.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){return t=t.attr("href"),window.open(t,"_target"),!0}},{$elem:r.default("<span>"+n.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n=t.childNodes();return"IMG"===(null==n?void 0:n.getNodeName())?(n=null==(n=null==(n=e.selection.getSelectionContainerElem())?void 0:n.children())?void 0:n.elems[0].children[0],e.cmd.do("insertHTML","<img \n                                src="+(null==n?void 0:n.getAttribute("src"))+" \n                                style="+(null==n?void 0:n.getAttribute("style"))+">")):(t=t.text(),e.cmd.do("insertHTML","<span>"+t+"</span>")),!0}}];(i=new a.default(n,e,t)).create()},hideLinkTooltip:function(){i&&(i.remove(),i=null)}}).showLinkTooltip,o=o.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(t),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(a=n(2)).__importDefault(n(23)),r=a.__importDefault(n(3)),a=(i=o.default,a.__extends(s,i),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},s);function s(e){var t=r.default('<div class="w-e-menu" data-title="斜体">\n                <i class="w-e-icon-italic"></i>\n            </div>');return i.call(this,t,e)||this}t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(a=n(2)).__importDefault(n(23)),r=a.__importDefault(n(3)),a=(i=o.default,a.__extends(s,i),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},s);function s(e){var t=r.default('<div class="w-e-menu" data-title="下划线">\n                <i class="w-e-icon-underline"></i>\n            </div>');return i.call(this,t,e)||this}t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(a=n(2)).__importDefault(n(23)),r=a.__importDefault(n(3)),a=(i=o.default,a.__extends(s,i),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},s);function s(e){var t=r.default('<div class="w-e-menu" data-title="删除线">\n                <i class="w-e-icon-strikethrough"></i>\n            </div>');return i.call(this,t,e)||this}t.default=a}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=(s=n(2)).__importDefault(n(24)),r=s.__importDefault(n(3)),a=s.__importDefault(n(330)),s=(o=i.default,s.__extends(l,o),l.prototype.command=function(e){var t,n,i=this.editor,o=i.selection.isSelectionEmpty(),r=null==(n=i.selection.getSelectionContainerElem())?void 0:n.elems[0];null!=r&&(t="p"!==(null==r?void 0:r.nodeName.toLowerCase()),n=(null==r?void 0:r.getAttribute("face"))===e,o&&(t&&!n&&(n=i.selection.getSelectionRangeTopNodes(),i.selection.createRangeByElem(n[0]),i.selection.moveCursor(n[0].elems[0])),i.selection.setRangeToElem(r),i.selection.createEmptyRange()),i.cmd.do("fontName",e),o)&&(i.selection.collapseRange(),i.selection.restoreSelection())},l.prototype.tryChangeActive=function(){},l);function l(e){var t=this,n=r.default('<div class="w-e-menu" data-title="字体">\n                <i class="w-e-icon-font"></i>\n            </div>'),i={width:100,title:"设置字体",type:"list",list:new a.default(e.config.fontNames).getItemList(),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=s},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3))),n=(s.prototype.getItemList=function(){return this.itemList},s);function s(e){var n=this;this.itemList=[],(0,r.default)(e).call(e,function(e){var t="string"==typeof e?e:e.value,e="string"==typeof e?e:e.name;n.itemList.push({$elem:a.default("<p style=\"font-family:'"+t+"'\">"+e+"</p>"),value:e})})}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o,i=(s=n(2)).__importDefault(n(24)),r=s.__importDefault(n(3)),a=s.__importDefault(n(332)),s=(o=i.default,s.__extends(l,o),l.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty();null!=(null==(t=n.selection.getSelectionContainerElem())?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),i)&&(n.selection.collapseRange(),n.selection.restoreSelection())},l.prototype.tryChangeActive=function(){},l);function l(e){var t=this,n=r.default('<div class="w-e-menu" data-title="字号">\n                <i class="w-e-icon-text-heigh"></i>\n            </div>'),i={width:160,title:"设置字号",type:"list",list:new a.default(e.config.fontSizes).getItemList(),clickHandler:function(e){t.command(e)}};return t=o.call(this,n,e,i)||this}t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(3)),n=(o.prototype.getItemList=function(){return this.itemList},o);function o(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:i.default('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}t.default=n},function(e,t,n){var i=(u=n(0))(n(1)),o=u(n(4)),r=u(n(27));(0,i.default)(t,"__esModule",{value:!0});var a,i=(u=n(2)).__importDefault(n(24)),s=u.__importDefault(n(3)),l=["LI"],c=["UL","BLOCKQUOTE"],u=(a=i.default,u.__extends(d,a),d.prototype.command=function(t){var e=this.editor,n=e.selection,i=n.getSelectionContainerElem();if(n.saveRange(),e=e.selection.getSelectionRangeTopNodes(),null!=i&&i.length)if(this.isSpecialNode(i,e[0])||this.isSpecialTopNode(e[0])){if(null==(i=this.getSpecialNodeUntilTop(i,e[0])))return;s.default(i).css("text-align",t)}else(0,o.default)(e).call(e,function(e){e.css("text-align",t)});n.restoreSelection()},d.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],i=t.elems[0];null!=n;){if(-1!==(0,r.default)(l).call(l,null==n?void 0:n.nodeName))return n;if(n.parentNode===i)return n;n=n.parentNode}return n},d.prototype.isSpecialNode=function(e,t){return null!=(t=this.getSpecialNodeUntilTop(e,t))&&-1!==(0,r.default)(l).call(l,t.nodeName)},d.prototype.isSpecialTopNode=function(e){return null!=e&&-1!==(0,r.default)(c).call(c,null==(e=e.elems[0])?void 0:e.nodeName)},d.prototype.tryChangeActive=function(){},d);function d(e){var t=this,n=s.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),i={width:100,title:"对齐方式",type:"list",list:[{$elem:s.default('<p>\n                            <i class="w-e-icon-paragraph-left w-e-drop-l
13ist-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.靠左")+"\n                        </p>"),value:"left"},{$elem:s.default('<p>\n                            <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.居中")+"\n                        </p>"),value:"center"},{$elem:s.default('<p>\n                            <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.靠右")+"\n                        </p>"),value:"right"},{$elem:s.default('<p>\n                            <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.justify.两端")+"\n                        </p>"),value:"justify"}],clickHandler:function(e){t.command(e)}};return t=a.call(this,n,e,i)||this}t.default=u},function(e,t,n){var i=(a=n(0))(n(1)),s=a(n(4));(0,i.default)(t,"__esModule",{value:!0});var o,l=(a=n(2)).__importDefault(n(3)),i=a.__importDefault(n(23)),r=a.__importDefault(n(335)),c=a.__importDefault(n(336)),u=n(7),a=(o=i.default,a.__extends(d,o),d.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty(),n=e.selection.getSelectionRangeTopNodes(),i=n[n.length-1];if("BLOCKQUOTE"!==this.getTopNodeName())return r=c.default(n),e.$textElem.equal(i)?(o=null==(o=e.selection.getSelectionContainerElem())?void 0:o.elems[0],e.selection.createRangeByElems(o.children[0],o.children[0]),n=e.selection.getSelectionRangeTopNodes(),r=c.default(n),i.append(r)):r.insertAfter(i),this.delSelectNode(n),null==(o=null==(o=r.childNodes())?void 0:o.last(
13).getNode())?void 0:(o.textContent?e.selection.moveCursor(o):e.selection.moveCursor(o,0),this.tryChangeActive(),void l.default(u.EMPTY_P).insertAfter(r));var o,r=(o=l.default(i.childNodes())).length,a=i;(0,s.default)(o).call(o,function(e){(e=l.default(e)).insertAfter(a),a=e}),i.remove(),e.selection.moveCursor(o.elems[r-1]),this.tryChangeActive(),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},d.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null==(e=this.editor.selection.getSelectionRangeTopNodes()[0])?void 0:e.getNodeName())?this.active():this.unActive()},d.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},d.prototype.delSelectNode=function(e){(0,s.default)(e).call(e,function(e){e.remove()})},d);function d(e){var t=l.default('<div class="w-e-menu" data-title="引用">\n                <i class="w-e-icon-quotes-left"></i>\n            </div>'),t=o.call(this,t,e)||this;return r.default(e),t}t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(7),a=i.__importDefault(n(3));t.default=function(o){o.txt.eventHooks.enterDownEvents.push(function(e){var t,n=o.selection.getSelectionContainerElem(),i=o.selection.getSelectionRangeTopNodes()[0];"BLOCKQUOTE"===(null==i?void 0:i.getNodeName())&&("BLOCKQUOTE"===n.getNodeName()&&(t=null==(t=n.childNodes())?void 0:t.getNode(),o.selection.moveCursor(t)),""===n.text()&&(e.preventDefault(),n.remove(),(n=a.default(r.EMPTY_P)).insertAfter(i),o.selection.moveCursor(n.getNode(),0)),""===i.text())&&i.remove()})}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3)));t.default=function(e){var t=a.default("<blockquote></blockquote>");return(0,r.default)(e).call(e,function(e){t.append(e.clone(!0))}),t}},function(e,t,n){var i=(l=n(0))(n(1)),o=l(n(26));(0,i.default)(t,"__esModule",{value:!0});var r,i=(l=n(2)).__importDefault(n(24)),a=l.__importDefault(n(3)),s=n(6),l=(r=i.default,l.__extends(c,r),c.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null==(t=n.selection.getSelectionContainerElem())?void 0:t.elems[0];null!=o&&(t="p"!==(null==o?void 0:o.nodeName.toLowerCase()),o=null==o?void 0:o.style.backgroundColor,o=s.hexToRgb(e)===o,i&&(t&&!o&&(o=n.selection.getSelectionRangeTopNodes(),n.selection.createRangeByElem(o[0]),n.selection.moveCursor(o[0].elems[0])),n.selection.createEmptyRange()),n.cmd.do("backColor",e),i)&&(n.selection.collapseRange(),n.selection.restoreSelection())},c.prototype.tryChangeActive=function(){},c);function c(e){var t=this,n=a.default('<div class="w-e-menu" data-title="背景色">\n                <i class="w-e-icon-paint-brush"></i>\n            </div>'),i={width:120,title:"背景颜色",type:"inline-block",list:(0,o.default)(i=e.config.colors).call(i,function(e){return{$elem:a.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}}),clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=l},function(e,t,n){var i=(s=n(0))(n(1)),o=s(n(26));(0,i.default)(t,"__esModule",{value:!0});var r,i=(s=n(2)).__importDefault(n(24)),a=s.__importDefault(n(3)),s=(r=i.default,s.__extends(l,r),l.prototype.command=function(e){var t,n=this.editor,i=n.selection.isSelectionEmpty(),o=null==(t=n.selection.getSelectionContainerElem())?void 0:t.elems[0];null!=o&&(t=n.selection.getSelectionText(),"A"===o.nodeName&&o.textContent===t&&(t=a.default("<span>&#8203;</span>").getNode(),o.appendChild(t)),n.cmd.do("foreColor",e),i)&&(n.selection.collapseRange(),n.selection.restoreSelection())},l.prototype.tryChangeActive=function(){},l);function l(e){var t=this,n=a.default('<div class="w-e-menu" data-title="文字颜色">\n                <i class="w-e-icon-pencil2"></i>\n            </div>'),i={width:120,title:"文字颜色",type:"inline-block",list:(0,o.default)(i=e.config.colors).call(i,function(e){return{$elem:a.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}}),clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=s}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(c=n(2)).__importDefault(n(3)),r=c.__importDefault(n(32)),a=c.__importDefault(n(37)),s=c.__importDefault(n(340)),l=c.__importDefault(n(346)),c=(i=a.default,c.__extends(u,i),u.prototype.clickHandler=function(){this.createPanel("")},u.prototype.createPanel=function(e){e=s.default(this.editor,e),new r.default(this,e).create()},u.prototype.tryChangeActive=function(){},u);function u(e){var t=o.default('<div class="w-e-menu" data-title="视频">\n                <i class="w-e-icon-play"></i>\n            </div>'),t=i.call(this,t,e)||this;return l.default(e),t}t.default=c},function(e,t,n){var i=n(0),o=i(n(1)),l=i(n(17)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),c=n(6),u=o.__importDefault(n(3)),d=o.__importDefault(n(341)),h=n(7);t.default=function(n,e){var t=n.config,i=new d.default(n),o=c.getRandom("input-iframe"),r=c.getRandom("btn-ok"),a=c.getRandom("input-upload"),s=c.getRandom("btn-local-ok"),s=[{title:n.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n                    <div id="'+s+'" class="w-e-up-btn">\n                        <i class="w-e-icon-upload2"></i>\n                    </div>\n                    <div style="display:none;">\n                        <input id="'+a+'" type="file" accept="video/*"/>\n                    </div>\n                 </div>',events:[{selector:"#"+s,type:"click",fn:function(){var e=u.default("#"+a).elems[0];if(!e)return!0;e.click()}},{selector:"#"+a,type:"change",fn:function(){var e=u.default("#"+a).elems[0];return e&&(e=e.files).length&&i.uploadVideo(e),!0}}]},{title:n.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n                    <input \n                        id="'+o+'" \n                        type="text" \n                        class="block" \n                        placeholder="'+n.i18next.t("如")+':<iframe src=... ></iframe>"/>\n                    </td>\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+r+'" class="right">\n                            '+n.i18next.t("插入")+"\n                        </button>\n                    </div>\n                </div>",events:[{selector:"#"+r,type:"click",fn:function(){var e,t=u.default("#"+o);if((t=(0,l.default)(t=t.val()).call(t))&&(e=t,!0===(e=n.config.onlineVideoCheck(e))||void("string"==typeof e&&n.config.customAlert(e,"error"))))return n.cmd.do("insertHTML",t+h.EMPTY_P),n.config.onlineVideoCallback(t),!0},bindEnter:!0}]}],r={width:300,height:0,tabs:[]};return window.FileReader&&(t.uploadVideoServer||t.customUploadVideo)&&r.tabs.push(s[0]),t.showLinkVideo&&r.tabs.push(s[1]),r}},function(e,t,n){var i=n(0),o=i(n(1)),w=i(n(132)),x=i(n(57)),A=i(n(4)),C=i(n(27)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),k=n(6),_=o.__importDefault(n(135)),S=o.__importDefault(n(136)),r=n(7),a=n(6),n=(s.prototype.uploadVideo=function(e){var i,o,r,a,s,t,n,l,c,u,d,h,p,f,g,m,y,v,b=this;e.length&&(i=this.editor,o=i.config,r=function(e){return i.i18next.t("validate."+e)},m=o.uploadVideoServer,a=o.uploadVideoMaxSize/1024,s=o.uploadVideoName,t=o.uploadVideoParams,n=o.uploadVideoParamsWithUrl,l=o.uploadVideoHeaders,c=o.uploadVideoHooks,u=o.uploadVideoTimeout,v=o.withVideoCredentials,d=o.customUploadVideo,h=o.uploadVideoAccept,p=[],f=[],k.arrForEach(e,function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(h instanceof Array?(0,w.default)(h).call(h,function(e){return e===t.split(".")[t.split(".").length-1]})?a<n?f.push("【"+t+"】"+r("大于")+" "+a+"M"):p.push(e):f.push("【"+t+"】"+r("不是视频")):f.push("【"+h+"】"+r("uploadVideoAccept 不是Array")))}),f.length?o.customAlert(r("视频验证未通过")+": \n"+f.join("\n"),"warning"):0!==p.length?d&&"function"==typeof d?d(p,(0,x.default)(y=this.insertVideo).call(y,this)):(g=new FormData,(0,A.default)(p).call(p,function(e,t){var n=s||e.name;1<p.length&&(n+=t+1),g.append(n,e)}),m&&(m=(y=m.split("#"))[0],y=y[1]||"",(0,A.default)(k).call(k,t,function(e,t){n&&(0<(0,C.default)(m).call(m,"?")?m+="&":m+="?",m=m+e+"="+t),g.append(e,t)}),y&&(m+="#"+y),"string"==typeof(v=_.default(m,{timeout:u,formData:g,headers:l,withCredentials:!!v,beforeSend:function(e){if(c.before)return c.before(e,i,p)},onTimeout:function(e){o.customAlert(r("上传视频超时"),"error"),c.timeout&&c.timeout(e,i
13)},onProgress:function(e,t){var n=new S.default(i);t.lengthComputable&&(e=t.loaded/t.total,n.show(e))},onError:function(e){o.customAlert(r("上传视频错误"),"error",r("上传视频错误")+","+r("服务器返回状态")+": "+e.status),c.error&&c.error(e,i)},onFail:function(e,t){o.customAlert(r("上传视频失败"),"error",r("上传视频返回结果错误")+(","+r("返回结果"))+": "+t),c.fail&&c.fail(e,i,t)},onSuccess:function(e,t){var n;c.customInsert?c.customInsert((0,x.default)(n=b.insertVideo).call(n,b),t,i):"0"!=t.errno?(o.customAlert(r("上传视频失败"),"error",r("上传视频返回结果错误")+","+r("返回结果")+" errno="+t.errno),c.fail&&c.fail(e,i,t)):(b.insertVideo((n=t.data).url),c.success&&c.success(e,i,t))}})))&&o.customAlert(v,"error")):o.customAlert(r("传入的文件不合法"),"warning"))},s.prototype.insertVideo=function(e){function t(e,t){return i.i18next.t((t=void 0===t?"validate.":t)+e)}var n,i=this.editor,o=i.config;o.customInsertVideo?o.customInsertVideo(e):(a.UA.isFirefox?i.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):i.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+r.EMPTY_P),(n=document.createElement("video")).onload=function(){n=null},n.onerror=function(){o.customAlert(t("插入视频错误"),"error","wangEditor: "+t("插入视频错误")+","+t("视频链接")+' "'+e+'",'+t("下载链接失败")),n=null},n.onabort=function(){return n=null},n.src=e)},s);function s(e){this.editor=e}t.default=n},function(e,t,n){e.exports=n(343)},function(e,t,n){n=n(344),e.exports=n},function(e,t,n){n(345),n=n(9),e.exports=n.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(347)),r=i.__importDefault(n(349));t.default=function(e){o.default(e),r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38)),s=i.__importDefault(n(348));function o(n){function i(e,t){return n.i18next.t((t=void 0===t?"":t)+e)}var o;return{showVideoTooltip:function(e){var t=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>"+i("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:r.default("<span>"+i("menus.justify.靠左")+"</span>"),onClick:function(e,t){return s.default(t,"left"),!0}},{$elem:r.default("<span>"+i("menus.justify.居中")+"</span>"),onClick:function(e,t){return s.default(t,"center"),!0}},{$elem:r.default("<span>"+i("menus.justify.靠右")+"</span>"),onClick:function(e,t){return s.default(t,"right"),!0}}];(o=new a.default(n,e,t)).create()},hideVideoTooltip:function(){o&&(o.remove(),o=null)}}}t.createShowHideFn=o,t.default=function(e){var t=(n=o(e)).showVideoTooltip,n=n.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(44)),a=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3)));t.default=function(i,e){(i=(e=>{for(var t,n=i.elems[0];null!=n;){if((0,r.default)(e).call(e,null==n?void 0:n.nodeName))return n;if("BODY"===(null==(t=null==n?void 0:n.parentNode)?void 0:t.nodeName))return null;n=n.parentNode}return n})(["P"]))&&a.default(i).css("text-align",e)}}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var o=n(6);t.default=function(n){var e,i;o.UA.isFirefox&&(e=n.txt,i=n.selection,e.eventHooks.keydownEvents.push(function(e){var t=i.getSelectionContainerElem();(t=t&&((t=t.getNodeTop(n)).length&&t.prev().length?t.prev():null))&&t.attr("data-we-video-p")&&0===i.getCursorPos()&&8===e.keyCode&&t.remove()}))}},function(e,t,n){var i=(o=n(0))(n(1)),r=o(n(26));(0,i.default)(t,"__esModule",{value:!0});var a,o=n(2),s=n(7),l=o.__importDefault(n(3)),c=o.__importDefault(n(32)),i=o.__importDefault(n(37)),u=o.__importDefault(n(351)),d=o.__importDefault(n(364)),o=(a=i.default,o.__extends(h,a),h.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},h.prototype.createPanel=function(){var e=this.imgPanelConfig,e=new c.default(this,e);this.setPanel(e),e.create()},h.prototype.tryChangeActive=function(){},h);function h(e){var t,n=this,i=l.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),o=d.default(e);return o.onlyUploadConf&&(i=o.onlyUploadConf.$elem,(0,r.default)(t=o.onlyUploadConf.events).call(t,function(e){var t=e.type,n=e.fn||s.EMPTY_FN;i.on(t,function(e){e.stopPropagation(),n(e)})})),(n=a.call(this,i,e)||this).imgPanelConfig=o,u.default(e),n}t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(352)),r=i.__importDefault(n(353)),a=i.__importDefault(n(354)),s=i.__importDefault(n(362)),l=i.__importDefault(n(363));t.default=function(e){o.default(e),r.default(e),a.default(e),s.default(e),l.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=n(130),a=i.__importDefault(n(96));function o(i,e){var t,n,o;!(e=>{for(var t=(null==(e=i.clipboardData)?void 0:e.types)||[],n=0;n<t.length;n++)if("Files"===t[n])return 1})()&&(n=i,t=(o=e.config).pasteFilterStyle,r.getPasteHtml(n,t,o.pasteIgnoreImg)||r.getPasteText(n))||(i=r.getPasteImgs(i)).length&&new a.default(e).uploadImg(i)}t.default=function(t){t.txt.eventHooks.pasteEvents.unshift(function(e){o(e,t)})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(96));t.default=function(t){t.txt.eventHooks.dropEvents.push(function(e){(e=e.dataTransfer&&e.dataTransfer.files)&&e.length&&new i.default(t).uploadImg(e)})}},function(e,t,n){var i=n(0),o=i(n(1)),v=i(n(31)),b=i(n(355)),w=((0,o.default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0,n(2).__importDefault(n(3))),s=(n(360),n(6));function x(e,t,n,i,o){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+i+"px; top:"+o+"px;")}function r(e){var g,t,n,m,y,r=e.$textContainerElem,a=(t=r,(n=w.default('<div class="w-e-img-drag-mask">\n            <div class="w-e-img-drag-show-size"></div>\n            <div class="w-e-img-drag-rb"></div>\n         </div>')).hide(),t.append(n),n);function i(){(0,v.default)(r).call(r,".w-e-img-drag-mask").hide()}return y=r,(m=a).on("click",function(e){e.stopPropagation()}),m.on("mousedown",".w-e-img-drag-rb",function(e){var t,n,i,o,r,a,s,l,c,u,d;function h(){d.off("mousemove",p),d.off("mouseup",f)}function p(e){e.stopPropagation(),e.preventDefault(),(c=o+(e.clientX-t))/(u=r+(e.clientY-n))!=l&&(u=c/l),c=(0,b.default)(c.toFixed(2)),u=(0,b.default)(u.toFixed(2)),(0,v.default)(m).call(m,".w-e-img-drag-show-size").text(c.toFixed(2).replace(".00","")+"px * "+u.toFixed(2).replace(".00","")+"px"),x(m,c,u,a,s)}function f(){g.attr("width",c+""),g.attr("height",u+"");var e=g.getBoundingClientRect();x(m,c,u,e.left-i.left,e.top-i.top),h()}e.preventDefault(),g&&(t=e.clientX,n=e.clientY,i=y.getBoundingClientRect(),e=g.getBoundingClientRect(),o=e.width,r=e.height,a=e.left-i.left,s=e.top-i.top,l=o/r,c=o,u=r,(d=w.default(document)).on("mousemove",p),d.on("mouseup",f),d.on("mouseleave",h))}),w.default(document).on("click",i),e.beforeDestroy(function(){w.default(document).off("click",i)}),{showDrag:function(e){if(s.UA.isIE())return!1;var t,n,i,o;e&&(n=a,i=g=e,o=(t=r).getBoundingClientRect(),t=(e=i.getBoundingClientRect()).width.toFixed(2),i=e.height.toFixed(2),(0,v.default)(n).call(n,".w-e-img-drag-show-size").text(t+"px * "+i+"px"),x(n,(0,b.default)(t),(0,b.default)(i),e.left-o.left,e.top-o.top),n.show())},hideDrag:i}}t.createShowHideFn=r,t.default=function(e){var t=(n=r(e)).showDrag,n=n.hideDrag;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){e.exports=n(356)},function(e,t,n){n=n(357),e.exports=n},function(e,t,n){n(358),n=n(9),e.exports=n.parseFloat},function(e,t,n){var i=n(5),n=n(359);i({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(e,t,n){var i=n(8),o=n(90).trim,n=n(68),r=i.parseFloat,n=1/r(n+"-0")!=-1/0;e.exports=n?function(e){var t=o(String(e));return 0===(e=r(t))&&"-"==t.charAt(0)?-0:e}:r},function(e,t,n){var i=n(20),o=n(361);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}}
13,function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n  overflow: hidden;\n}\n.w-e-img-drag-mask {\n  position: absolute;\n  z-index: 1;\n  border: 1px dashed #ccc;\n  box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n  position: absolute;\n  right: -5px;\n  bottom: -5px;\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n  background: #ccc;\n  cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n  min-width: 110px;\n  height: 22px;\n  line-height: 22px;\n  font-size: 14px;\n  color: #999;\n  position: absolute;\n  left: 0;\n  top: 0;\n  background-color: #999;\n  color: #fff;\n  border-radius: 2px;\n  padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38));function o(n){function i(e,t){return n.i18next.t((t=void 0===t?"":t)+e)}var o;return{showImgTooltip:function(e){var t=[{$elem:r.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:r.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:r.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];t.push({$elem:r.default("<span>"+i("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),e.attr("data-href")&&t.push({$elem:r.default("<span>"+i("查看链接")+"</span>"),onClick:function(e,t){return(t=t.attr("data-href"))&&(t=decodeURIComponent(t),window.open(t,"_target")),!0}}),(o=new a.default(n,e,t)).create()},hideImgTooltip:function(){o&&(o.remove(),o=null)}}}t.createShowHideFn=o,t.default=function(e){var t=(n=o(e)).showImgTooltip,n=n.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.imgDragBarMouseDownEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,a=e.selection;t.eventHooks.keydownEvents.push(function(e){var t=a.getSelectionContainerElem();if((n=a.getRange())&&t&&8===e.keyCode&&a.isSelectionEmpty()){var n,i=n.startContainer,o=null;if(0===(n=n.startOffset))for(;i!==t.elems[0]&&t.elems[0].contains(i)&&i.parentNode&&!o;){if(i.previousSibling){o=i.previousSibling;break}i=i.parentNode}else 3!==i.nodeType&&(o=i.childNodes[n-1]);if(o){for(var r=o;r.childNodes.length;)r=r.childNodes[r.childNodes.length-1];r instanceof HTMLElement&&"IMG"===r.tagName&&(r.remove(),e.preventDefault())}}})}},function(e,t,n){var i=n(0),o=i(n(1)),g=i(n(26)),m=i(n(17));(0,o.default)(t,"__esModule",{value:!0});var y=(o=n(2)).__importDefault(n(3)),v=n(6),b=o.__importDefault(n(96));t.default=function(n){function e(e,t){return n.i18next.t((t=void 0===t?"menus.panelMenus.image.":t)+e)}var o=n.config,r=new b.default(n),i=v.getRandom("up-trigger-id"),a=v.getRandom("up-file-id"),s=v.getRandom("input-link-url"),l=v.getRandom("input-link-url-alt"),c=v.getRandom("input-link-url-href"),t=v.getRandom("btn-link");function u(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n            <div id="'+i+'" class="w-e-up-btn">\n                <i class="'+t+'"></i>\n            </div>\n            <div style="display:none;">\n                <input id="'+a+'" type="file" '+d+' accept="'+h+'"/>\n            </div>\n        </div>'}var d=1===o.uploadImgMaxLength?"":'multiple="multiple"',h=(0,g.default)(f=o.uploadImgAccept).call(f,function(e){return"image/"+e}).join(","),p=[{selector:"#"+i,type:"click",fn:function(){var e=o.uploadImgFromMedia;return e&&"function"==typeof e?(e(),!0):!(e=y.default("#"+a).elems[0])||void e.click()}},{selector:"#"+a,type:"change",fn:function(){var e,t=y.default("#"+a).elems[0];return t&&(null!=(e=t.files)&&e.length&&r.uploadImg(e),t)&&(t.value=""),!0}}],f=['<input\n            id="'+s+'"\n            type="text"\n            class="block"\n            placeholder="'+e("图片地址")+'"/>'];return o.showLinkImgAlt&&f.push('\n        <input\n            id="'+l+'"\n            type="text"\n            class="block"\n            placeholder="'+e("图片文字说明")+'"/>'),o.showLinkImgHref&&f.push('\n        <input\n            id="'+c+'"\n            type="text"\n            class="block"\n            placeholder="'+e("跳转链接")+'"/>'),t=[{title:e("上传图片"),tpl:u("w-e-up-img-container","w-e-icon-upload2",""),events:p},{title:e("网络图片"),tpl:"<div>\n                    "+f.join("")+'\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+t+'" class="right">'+e("插入","")+"</button>\n                    </div>\n                </div>",events:[{selector:"#"+t,type:"click",fn:function(){var e,t,n,i=y.default("#"+s);if((i=(0,m.default)(i=i.val()).call(i))&&(o.showLinkImgAlt&&(e=(0,m.default)(e=y.default("#"+l).val()).call(e)),o.showLinkImgHref&&(t=(0,m.default)(t=y.default("#"+c).val()).call(t)),n=i,!0===(n=o.linkImgCheck(n))||void("string"==typeof n&&o.customAlert(n,"error"))))return r.insertImg(i,e,t),!0},bindEnter:!0}]}],p={width:300,height:0,tabs:[],onlyUploadConf:{$elem:y.default(u("w-e-menu","w-e-icon-image","图片")),events:p}},window.FileReader&&(o.uploadImgShowBase64||o.uploadImgServer||o.customUploadImg||o.uploadImgFromMedia)&&p.tabs.push(t[0]),o.showLinkImg&&(p.tabs.push(t[1]),p.onlyUploadConf=void 0),p}},function(e,t,n){var i=(l=n(0))(n(1)),o=l(n(4));
13(0,i.default)(t,"__esModule",{value:!0});var r,a=(l=n(2)).__importDefault(n(3)),i=l.__importDefault(n(24)),s=l.__importDefault(n(366)),l=(r=i.default,l.__extends(c,r),c.prototype.command=function(t){var e,n=this.editor,i=n.selection.getSelectionContainerElem();i&&n.$textElem.equal(i)?0<(e=n.selection.getSelectionRangeTopNodes()).length&&(0,o.default)(e).call(e,function(e){s.default(a.default(e),t,n)}):i&&0<i.length&&(0,o.default)(i).call(i,function(e){s.default(a.default(e),t,n)}),n.selection.restoreSelection(),this.tryChangeActive()},c.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem();(e=a.default(t).getNodeTop(e)).length<=0||(""!=e.elems[0].style.paddingLeft?this.active():this.unActive())},c);function c(e){var t=this,n=a.default('<div class="w-e-menu" data-title="缩进">\n                <i class="w-e-icon-indent-increase"></i>\n            </div>'),i={width:130,title:"设置缩进",type:"list",list:[{$elem:a.default('<p>\n                            <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n                        <p>"),value:"increase"},{$elem:a.default('<p>\n                            <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n                            '+e.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n                        <p>"),value:"decrease"}],clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=l},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(45)),a=i(n(17));(0,o.default)(t,"__esModule",{value:!0});var s=(o=n(2)).__importDefault(n(367)),l=o.__importDefault(n(368)),c=/^(\d+)(\w+)$/,u=/^(\d+)%$/;function d(e){var t,n=e.config.indentation;if("string"==typeof n){if(c.test(n))return t=(e=(0,r.default)(t=(0,a.default)(n).call(n).match(c)).call(t,1,3))[0],e=e[1],{value:Number(t),unit:e};if(u.test(n))return{value:Number((0,a.default)(n).call(n).match(u)[1]),unit:"%"}}else if(void 0!==n.value&&n.unit)return n;return{value:2,unit:"em"}}t.default=function(e,t,n){e=e.getNodeTop(n),/^(P|H[0-9]*)$/.test(e.getNodeName())&&("increase"===t?s.default(e,d(n)):"decrease"===t&&l.default(e,d(n)))}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(45));(0,o.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""===n.style.paddingLeft?e.css("padding-left",t.value+t.unit):(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),n=Number(n)+t.value,e.css("padding-left",""+n+t.unit))}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(45));(0,o.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""!==n.style.paddingLeft&&(n=n.style.paddingLeft,n=(0,r.default)(n).call(n,0,n.length-t.unit.length),0<(n=Number(n)-t.value)?e.css("padding-left",""+n+t.unit):e.css("padding-left",""))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(l=n(2)).__importDefault(n(3)),r=l.__importDefault(n(37)),a=l.__importDefault(n(32)),s=l.__importDefault(n(370)),l=(i=r.default,l.__extends(c,i),c.prototype.createPanel=function(){var e=s.default(this.editor);new a.default(this,e).create()},c.prototype.clickHandler=function(){this.createPanel()},c.prototype.tryChangeActive=function(){},c);function c(e){var t=o.default('<div class="w-e-menu" data-title="表情">\n                <i class="w-e-icon-happy"></i>\n            </div>');return i.call(this,t,e)||this}t.default=l},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(26)),a=i(n(70)),s=i(n(17)),l=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3)));t.default=function(i){var e=i.config.emotions;return{width:300,height:230,tabs:(0,r.default)(e).call(e,function(e){return{title:i.i18next.t("menus.panelMenus.emoticon."+e.title),tpl:"<div>"+(n=[],(n="image"==(t=e).type?(n=(0,r.default)(e=t.content).call(e,function(e){return"string"==typeof e?"":'<span  title="'+e.alt+'">\n                    <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n                </span>'}),(0,a.default)(n).call(n,function(e){return""!==e})):(0,r.default)(t=t.content).call(t,function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"})).join("").replace(/&nbsp;/g,""))+"</div>",events:[{selector:".eleImg",type:"click",fn:function(e){var t="IMG"===(t=l.default(e.target)).getNodeName()?(0,s.default)(e=t.parent().html()).call(e):"<sp
13an>"+t.html()+"</span>";return i.cmd.do("insertHTML",t),!0}}]};var t,n})}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var i,o=(c=n(2)).__importDefault(n(3)),r=c.__importDefault(n(372)),a=c.__importDefault(n(374)),s=c.__importDefault(n(375)),l=c.__importDefault(n(376)),c=c.__importDefault(n(377)),u=((n=i=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",n.Join="JoinListHandle",n.StartJoin="StartJoinListHandle",n.EndJoin="EndJoinListHandle",n.Other="OtherListHandle",{WrapListHandle:r.default,JoinListHandle:a.default,StartJoinListHandle:s.default,EndJoinListHandle:l.default,OtherListHandle:c.default});function d(e){this.handle=e,this.handle.exec()}t.createListHandle=function(e,t,n){if(e===i.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==i.Other?new u[e](t):new u[e](t,n)},d.prototype.getSelectionRangeElem=function(){return o.default(this.handle.selectionRangeElem.get())},t.default=c=d},function(e,t,n){var i=(r=n(0))(n(1)),g=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o,m=(r=n(2)).__importDefault(n(3)),i=n(58),y=n(47),r=(o=i.ListHandle,r.__extends(a,o),a.prototype.exec=function(){var t,e=(l=this.options).listType,n=l.listTarget,i=l.$selectionElem,o=l.$startElem,r=l.$endElem,a=[],s=null==i?void 0:i.getNodeName(),l=o.prior,c=r.prior;if((o.prior||r.prior)&&(null!=l&&l.prev().length||null!=c&&c.next().length)){for(var u=l;u.length;)a.push(u),u=null!=c&&c.equal(u)?m.default(void 0):u.next();var l=l.prev(),d=c.next();if(s===e?t=y.createElementFragment(a,y.createDocumentFragment(),"p"):(t=y.createElement(n),(0,g.default)(a).call(a,function(e){t.append(e.elems[0])})),l.length&&d.length){for(var h=[];d.length;)h.push(d),d=d.next();var p,f=y.createElement(s);(0,g.default)(h).call(h,function(e){f.append(e.elems[0])}),m.default(f).insertAfter(i),this.selectionRangeElem.set(t),(p=i.next()).length?y.insertBefore(i,t,p.elems[0]):i.parent().elems[0].append(t)}else l.length?(this.selectionRangeElem.set(t),(p=i.next()).length?y.insertBefore(i,t,p.elems[0]):i.parent().elems[0].append(t)):(this.selectionRangeElem.set(t),y.insertBefore(i,t,i.elems[0]))}else(0,g.default)(p=null==i?void 0:i.children()).call(p,function(e){a.push(m.default(e))}),s===e?t=y.createElementFragment(a,y.createDocumentFragment(),"p"):(t=y.createElement(n),(0,g.default)(a).call(a,function(e){t.appendChild(e.elems[0])})),this.selectionRangeElem.set(t),y.insertBefore(i,t,i.elems[0]),i.remove()},a);function a(e){return o.call(this,e)||this}t.default=r},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4));function a(){this._element=null}(0,o.default)(t,"__esModule",{value:!0}),a.prototype.set=function(e){var t,n;e instanceof DocumentFragment&&(n=[],(0,r.default)(t=e.childNodes).call(t,function(e){n.push(e)}),e=n),this._element=e},a.prototype.get=function(){return this._element},a.prototype.clear=function(){this._element=null},t.default=o=a},function(e,t,n){var i=(r=n(0))(n(1)),y=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o,v=(r=n(2)).__importDefault(n(3)),i=n(58),b=n(47),r=(o=i.ListHandle,r.__extends(a,o),a.prototype.exec=function(){var t,e=(r=this.options).editor,n=r.listType,i=r.listTarget,o=r.$startElem,r=r.$endElem,a=e.selection.getSelectionRangeTopNodes();if((e=null==o?void 0:o.getNodeName())===(null==r?void 0:r.getNodeName()))if(2<a.length)if(a.shift(),a.pop(),t=b.createElementFragment(b.filterSelectionNodes(a),b.createDocumentFragment()),e===n)null!=(p=r.children())&&(0,y.default)(p).call(p,function(e){t.append(e)}),r.remove(),this.selectionRangeElem.set(t),o.elems[0].append(t);else{for(var s=document.createDocumentFragment(),l=document.createDocumentFragment(),c=b.getStartPoint(o);c.length;){var u=c.elems[0];c=c.next(),s.append(u)}for(var d=b.getEndPoint(r),h=[];d.length;)h.unshift(d.elems[0]),d=d.prev();(0,y.default)(h).call(h,function(e){l.append(e)});var p=b.createElement(i);p.append(s),p.append(t),p.append(l),t=p,this.selectionRangeElem.set(t),v.default(p).insertAfter(o),null!=(p=o.children())&&p.length||o.remove(),null!=(p=r.children())&&p.length||r.remove()}else{for(a.length=0,c=b.getStartPoint(o);c.length;)a.push(c),c=c.next();for(d=b.getEndPoint(r),h=[];d.length;)h.unshift(d),d=d.prev();a.push.apply(a,h),e===n?(t=b.createElementFragment(a,b.createDocumentFragment(),"p"),this.selectionRangeElem.set(t),b.insertBefore(o,t,r.elems[0])):(t=b.createElement(i),(0,y.default)(a).call(a,function(e){t.append(e.elems[0])}),this.selectionRangeElem.set(t),v.default(t).insertAfter(o)),null!=(i=o.children())&&i.length||r.remove(),null!=(i=r.children())&&i.length||r.remove()}else{for(var f=[],d=b.getEndPoint(r);d.length;)f.unshift(d),d=d.prev();for(var g,m=[],c=b.getStartPoint(o);c.length;)m.push(c),c=c.next();t=b.createDocumentFragment(),a.shift(),a.pop(),(0,y.default)(m).call(m,function(e){return t.append(e.elems[0])}),t=b.createElementFragment(b.filterSelectionNodes(a),t),(0,y.default)(f).call(f,function(e){return t.append(e.elems[0])}),this.selectionRangeElem.set(t),e===n?(o.elems[0].append(t),null!=(g=r.children())&&g.length||r.remove()):null!=(g=r.children())&&g.length?(g=r.children(),b.insertBefore(g,t,g.elems[0])):r.elems[0].append(t)}},a);function a(e){return o.call(this,e)||this}t.default=r},function(e,t,n){var i=(r=n(0))(n(1)),l=r(n(4));
13(0,i.default)(t,"__esModule",{value:!0});var o,c=(r=n(2)).__importDefault(n(3)),i=n(58),u=n(47),r=(o=i.ListHandle,r.__extends(a,o),a.prototype.exec=function(){var t,e=(r=this.options).editor,n=r.listType,i=r.listTarget,o=r.$startElem,r=e.selection.getSelectionRangeTopNodes(),e=null==o?void 0:o.getNodeName();r.shift();for(var a=[],s=u.getStartPoint(o);s.length;)a.push(s),s=s.next();e===n?(t=u.createDocumentFragment(),(0,l.default)(a).call(a,function(e){return t.append(e.elems[0])}),t=u.createElementFragment(u.filterSelectionNodes(r),t),this.selectionRangeElem.set(t),o.elems[0].append(t)):(t=u.createElement(i),(0,l.default)(a).call(a,function(e){return t.append(e.elems[0])}),t=u.createElementFragment(u.filterSelectionNodes(r),t),this.selectionRangeElem.set(t),c.default(t).insertAfter(o),null!=(r=o.children())&&r.length||o.remove())},a);function a(e){return o.call(this,e)||this}t.default=r},function(e,t,n){var i=(r=n(0))(n(1)),l=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var o,c=(r=n(2)).__importDefault(n(3)),i=n(58),u=n(47),r=(o=i.ListHandle,r.__extends(a,o),a.prototype.exec=function(){var e=(o=this.options).editor,t=o.listType,n=o.listTarget,i=o.$endElem,o=e.selection.getSelectionRangeTopNodes(),e=null==i?void 0:i.getNodeName();o.pop();for(var r,a=[],s=u.getEndPoint(i);s.length;)a.unshift(s),s=s.prev();e===t?(r=u.createElementFragment(u.filterSelectionNodes(o),u.createDocumentFragment()),(0,l.default)(a).call(a,function(e){return r.append(e.elems[0])}),this.selectionRangeElem.set(r),null!=(t=i.children())&&t.length?(t=i.children(),u.insertBefore(t,r,t.elems[0])):i.elems[0].append(r)):((o=u.filterSelectionNodes(o)).push.apply(o,a),r=u.createElementFragment(o,u.createElement(n)),this.selectionRangeElem.set(r),c.default(r).insertBefore(i),null!=(n=i.children())&&n.length||i.remove())},a);function a(e){return o.call(this,e)||this}t.default=r},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=n(2),r=n(58),a=n(47),o=(i=r.ListHandle,o.__extends(s,i),s.prototype.exec=function(){var e=(t=this.options).editor,t=t.listTarget,e=e.selection.getSelectionRangeTopNodes(),t=a.createElementFragment(a.filterSelectionNodes(e),a.createElement(t));this.selectionRangeElem.set(t),this.range.insertNode(t)},s);function s(e,t){return(e=i.call(this,e)||this).range=t,e}t.default=o},function(e,t,n){var i=(a=n(0))(n(1)),A=a(n(4)),C=a(n(27));(0,i.default)(t,"__esModule",{value:!0});var o,i=(a=n(2)).__importDefault(n(24)),k=a.__importDefault(n(3)),r=a.__importDefault(n(379)),_=n(6),a=(o=i.default,a.__extends(s,o),s.prototype.command=function(t){var n=this,e=(window.getSelection?window:document).getSelection(),i=["P"],o=this.editor,r="";if(o.selection.restoreSelection(),null!=(y=k.default(o.selection.getSelectionContainerElem()))&&y.length){var a=k.default(o.selection.getSelectionContainerElem()),s=k.default(o.selection.getSelectionStartElem()).elems[0],l="",c=[],u="";if(y&&o.$textElem.equal(y)){var d=_.UA.isIE(),h=[],p=[],f=[],g=k.default(o.selection.getSelectionStartElem()),m=k.default(o.selection.getSelectionEndElem()),y=null==(y=o.selection.getRange())?void 0:y.commonAncestorContainer.childNodes;p.push(this.getDom(g.elems[0])),null!=y&&(0,A.default)(y).call(y,function(e,t){e===n.getDom(g.elems[0])&&h.push(t),e===n.getDom(m.elems[0])&&h.push(t)});var v,b=0;for(f.push(this.getDom(g.elems[0]));p[b]!==this.getDom(m.elems[0]);)v=k.default(p[b].nextElementSibling).elems[0],-1!==(0,C.default)(i).call(i,k.default(v).getNodeName())&&f.push(v),p.push(v),b++;if("P"!==k.default(p[0]).getNodeName()){for(var w=b=0;w<p.length;w++)if("P"===k.default(p[w]).getNodeName()){b=w;break}if(0===b)return;for(var x=0;x!==b;)p.shift(),x++}this.setRange(p[0],p[p.length-1]),(0,A.default)(p).call(p,function(e){l=e.getAttribute("style"),c=l?l.split(";"):[],u=n.styleProcessing(c),"P"===k.default(e).getNodeName()&&t&&(u+=t?"line-height:"+t+";":""),d?k.default(e).css("line-height",t):r+="<"+k.default(e).getNodeName().toLowerCase()+' style="'+u+'">'+e.innerHTML+"</"+k.default(e).getNodeName().toLowerCase()+">"}),r&&this.action(r,o),s=a.elems[0],this.setRange(s.children[h[0]],s.children[h[1]])}else s=this.getDom(s),-1!==(0,C.default)(i).call(i,k.default(s).getNodeName())&&(l=s.getAttribute("style"),c=l?l.split(";"):[],null!=e&&e.selectAllChildren(s),o.selection.saveRange(),t?(u=l?this.styleProcessing(c)+"line-height:"+t+";":"line-height:"+t+";",r="<"+k.default(s).getNodeName().toLowerCase()+' style="'+u+'">'+s.innerHTML+"</"+k.default(s).getNodeName().toLowerCase()+">","BLOCKQUOTE"===k.default(s).getNodeName()||_.UA.isIE()?k.default(s).css("line-height",t):this.action(r,o)):l&&(u=this.styleProcessing(c),r=""===u?"<"+k.default(s).getNodeName().toLowerCase()+">"+s.innerHTML+"</"+k.default(s).getNodeName().toLowerCase()+">":"<"+k.default(s).getNodeName().toLowerCase()+' style="'+u+'">'+s.innerHTML+"</"+k.default(s).getNodeName().toLowerCase()+">",this.action(r,o)))}},s.prototype.getDom=function(e){return(e=k.default(e).elems[0]).parentNode?function e(t,n){var i=k.default(t.parentNode);return n.$textElem.equal(i)?t:e(i.elems[0],n)}(e,this.editor):e},s.prototype.action=function(e,t){t.cmd.do("insertHTML",e)},s.prototype.styleProcessing=function(e){var t="";return(0,A.default)(e).call(e,function(e){""!==e&&-1===(0,C.default)(e).call(e,"line-height")&&(t=t+e+";")}),t},s.prototype.setRange=function(e,t){var n=this.editor,i=(window.getSelection?window:document).getSelection(),o=(null!=i&&i.removeAllRanges(),document.createRange());o.setStart(e,0),o.setEnd(t,1),null!=i&&i.addRange(o),n.selection.saveRange(),null!=i&&i.removeAllRanges(),n.selection.restoreSelection()},s.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();t&&e.$textElem.equal(t)||0!==(e=k.default(e.selection.getSelectionStartElem())).length&&((e=(e
13=this.getDom(e.elems[0])).getAttribute("style")?e.getAttribute("style"):"")&&-1!==(0,C.default)(e).call(e,"line-height")?this.active():this.unActive())},s);function s(t){var n=this,e=k.default('<div class="w-e-menu" data-title="行高">\n                    <i class="w-e-icon-row-height"></i>\n                </div>'),i={width:100,title:"设置行高",type:"list",list:new r.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=o.call(this,e,t,i)||this}t.default=a},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3))),n=(s.prototype.getItemList=function(){return this.itemList},s);function s(e,t){var n=this;this.itemList=[{$elem:a.default("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,r.default)(t).call(t,function(e){n.itemList.push({$elem:a.default("<span>"+e+"</span>"),value:e})})}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(r=n(2)).__importDefault(n(3)),n=r.__importDefault(n(23)),r=(i=n.default,r.__extends(a,i),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.revoke(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},a);function a(e){var t=o.default('<div class="w-e-menu" data-title="撤销">\n                <i class="w-e-icon-undo"></i>\n            </div>');return i.call(this,t,e)||this}t.default=r},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(r=n(2)).__importDefault(n(3)),n=r.__importDefault(n(23)),r=(i=n.default,r.__extends(a,i),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.restore(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},a);function a(e){var t=o.default('<div class="w-e-menu" data-title="恢复">\n                <i class="w-e-icon-redo"></i>\n            </div>');return i.call(this,t,e)||this}t.default=r},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(c=n(2)).__importDefault(n(37)),r=c.__importDefault(n(3)),a=c.__importDefault(n(383)),s=c.__importDefault(n(32)),l=c.__importDefault(n(392)),c=(i=o.default,c.__extends(u,i),u.prototype.clickHandler=function(){this.createPanel()},u.prototype.createPanel=function(){var e=a.default(this.editor);new s.default(this,e).create()},u.prototype.tryChangeActive=function(){},u);function u(e){var t=r.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>'),t=i.call(this,t,e)||this;return l.default(e),t}t.default=c},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(384)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),s=n(6),l=o.__importDefault(n(3)),c=(n(389),o.__importDefault(n(391)));function u(e){return 0<e&&(0,r.default)(e)}t.default=function(n){var i=new c.default(n),o=s.getRandom("w-col-id"),r=s.getRandom("w-row-id"),e=s.getRandom("btn-link"),t="menus.panelMenus.table.",a=[{title:(a=function(e){return n.i18next.t(e)})(t+"插入表格"),tpl:'<div>\n                    <div class="w-e-table">\n                        <span>'+a("创建")+'</span>\n                        <input id="'+r+'"  type="text" class="w-e-table-input" value="5"/></td>\n                        <span>'+a(t+"行")+'</span>\n                        <input id="'+o+'" type="text" class="w-e-table-input" value="5"/></td>\n                        <span>'+(a(t+"列")+a(t+"的")+a(t+"表格"))+'</span>\n                    </div>\n                    <div class="w-e-button-container">\n                        <button type="button" id="'+e+'" class="right">'+a("插入")+"</button>\n                    </div>\n                </div>",events:[{selector:"#"+e,type:"click",fn:function(){var e=Number(l.default("#"+o).val()),t=Number(l.default("#"+r).val());return u(t)&&u(e)?(i.createAction(t,e),!0):(n.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}];return(e={width:330,height:0,tabs:[]}).tabs.push(a[0]),e}},function(e,t,n){e.exports=n(385)},function(e,t,n){n=n(386),e.exports=n},function(e,t,n){n(387),n=n(9),e.exports=n.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var i=n(13),o=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var i=n(20),o=n(390);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}}
13,function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n  display: flex;\n}\n.w-e-table .w-e-table-input {\n  width: 40px;\n  text-align: center!important;\n  margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),a=n(7),r=i.__importDefault(n(3)),n=(o.prototype.createAction=function(e,t){var n=this.editor,i=r.default(n.selection.getSelectionContainerElem()),o=r.default(i.elems[0]).parentUntilEditor("UL",n),i=r.default(i.elems[0]).parentUntilEditor("OL",n);o||i||(t=this.createTableHtml(e,t),n.cmd.do("insertHTML",t))},o.prototype.createTableHtml=function(e,t){for(var n="",i="",o=0;o<e;o++){for(var i="",r=0;r<t;r++)i+=0===o?"<th></th>":"<td></td>";n=n+"<tr>"+i+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+a.EMPTY_P},o);function o(e){this.editor=e}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(393)),o=n(400);t.default=function(e){i.default(e),o.bindEventKeyboardEvent(e),o.bindClickEvent(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),s=i.__importDefault(n(3)),r=i.__importDefault(n(38)),l=i.__importDefault(n(394)),c=i.__importDefault(n(399)),u=n(7);function d(e){var t=e.selection.getSelectionStartElem(),e=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==e?void 0:e.elems[0])}function h(e,t){return(e=e.elems[0].nextSibling)&&"<br>"!==e.innerHTML||(t+=""+u.EMPTY_P),t}t.default=function(e){n=e;var n,i,t=(o={showTableTooltip:function(e){var a=new c.default(n),t=[{$elem:s.default("<span>"+(t=function(e,t){return n.i18next.t((t=void 0===t?"menus.panelMenus.table.":t)+e)})("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u.EMPTY_P),!0}},{$elem:s.default("<span>"+t("添加行")+"</span>"),onClick:function(e,t){var n,i;return!d(e)&&(n=s.default(e.selection.getSelectionStartElem()),i=a.getRowNode(n.elems[0]))&&(n=Number(a.getCurrentRowIndex(t.elems[0],i)),i=a.getTableHtml(t.elems[0]),n=h(t,n=a.getTableHtml(l.default.ProcessingRow(s.default(i),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n)),!0}},{$elem:s.default("<span>"+t("删除行")+"</span>"),onClick:function(e,t){var n,i,o,r;return!d(e)&&(o=s.default(e.selection.getSelectionStartElem()),r=a.getRowNode(o.elems[0]))&&(n=Number(a.getCurrentRowIndex(t.elems[0],r)),i=a.getTableHtml(t.elems[0]),o=l.default.DeleteRow(s.default(i),n).elems[0].children[0].children.length,r="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),r=h(t,r=0===o?u.EMPTY_P:a.getTableHtml(l.default.DeleteRow(s.default(i),n).elems[0])),e.cmd.do("insertHTML",r)),!0}},{$elem:s.default("<span>"+t("添加列")+"</span>"),onClick:function(e,t){var n,i;return d(e)||(n=s.default(e.selection.getSelectionStartElem()),i=a.getCurrentColIndex(n.elems[0]),n=a.getTableHtml(t.elems[0]),i=h(t,i=a.getTableHtml(l.default.ProcessingCol(s.default(n),i).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",i)),!0}},{$elem:s.default("<span>"+t("删除列")+"</span>"),onClick:function(e,t){var n,i,o;return d(e)||(n=s.default(e.selection.getSelectionStartElem()),o=a.getCurrentColIndex(n.elems[0]),i=a.getTableHtml(t.elems[0]),i=(n=l.default.DeleteCol(s.default(i),o)).elems[0].children[0].children[0].children.length,o="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),o=h(t,o=0===i?u.EMPTY_P:a.getTableHtml(n.elems[0])),e.cmd.do("insertHTML",o)),!0}},{$elem:s.default("<span>"+t("设置表头")+"</span>"),onClick:function(e,t){var n,i;return!d(e)&&(n=s.default(e.selection.getSelectionStartElem()),i=a.getRowNode(n.elems[0]))&&(0!==(n=Number(a.getCurrentRowIndex(t.elems[0],i)))&&(n=0),i=a.getTableHtml(t.elems[0]),n=h(t,n=a.getTableHtml(l.default.setTheHeader(s.default(i),n,"th").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n)),!0}},{$elem:s.default("<span>"+t("取消表头")+"</span>"),onClick:function(e,t){var n=s.default(e.selection.getSelectionStartElem()),i=a.getRowNode(n.elems[0]);
13return i&&(0!==(n=Number(a.getCurrentRowIndex(t.elems[0],i)))&&(n=0),i=a.getTableHtml(t.elems[0]),n=h(t,n=a.getTableHtml(l.default.setTheHeader(s.default(i),n,"td").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n)),!0}}];(i=new r.default(n,e,t)).create()},hideTableTooltip:function(){i&&(i.remove(),i=null)}}).showTableTooltip,o=o.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(t),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){var i=n(0),o=i(n(1)),s=i(n(45)),l=i(n(91)),c=i(n(4)),u=i(n(138)),d=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3)));function h(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function p(e){var t=e.elems[0].children[0];return t="COLGROUP"===t.nodeName?e.elems[0].children[e.elems[0].children.length-1]:t}t.default={ProcessingRow:function(e,t){for(var n=p(e),i=(e=(0,s.default)(Array.prototype).apply(n.children))[0].children.length,o=document.createElement("tr"),r=0;r<i;r++){var a=document.createElement("td");o.appendChild(a)}return(0,l.default)(e).call(e,t+1,0,o),h(n,e),d.default(n.parentNode)},ProcessingCol:function(e,o){for(var e=p(e),r=(0,s.default)(Array.prototype).apply(e.children),t=0;t<r.length;t++)(e=>{var t=[];for((0,c.default)(n=(0,u.default)(r[e].children)).call(n,function(e){t.push(e)});0!==r[e].children.length;)r[e].removeChild(r[e].children[0]);var n="TH"!==d.default(t[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,l.default)(t).call(t,o+1,0,n);for(var i=0;i<t.length;i++)r[e].appendChild(t[i])})(t);return h(e,r),d.default(e.parentNode)},DeleteRow:function(e,t){var n=p(e),e=(0,s.default)(Array.prototype).apply(n.children);return(0,l.default)(e).call(e,t,1),h(n,e),d.default(n.parentNode)},DeleteCol:function(e,o){for(var e=p(e),r=(0,s.default)(Array.prototype).apply(e.children),t=0;t<r.length;t++)(e=>{var t,n=[];for((0,c.default)(t=(0,u.default)(r[e].children)).call(t,function(e){n.push(e)});0!==r[e].children.length;)r[e].removeChild(r[e].children[0]);(0,l.default)(n).call(n,o,1);for(var i=0;i<n.length;i++)r[e].appendChild(n[i])})(t);return h(e,r),d.default(e.parentNode)},setTheHeader:function(e,t,n){for(var i=p(e),o=(e=(0,s.default)(Array.prototype).apply(i.children))[t].children,r=document.createElement("tr"),a=0;a<o.length;a++)(e=>{var t=document.createElement(n),e=o[e];(0,c.default)(e=(0,u.default)(e.childNodes)).call(e,function(e){t.appendChild(e)}),r.appendChild(t)})(a);return(0,l.default)(e).call(e,t,1,r),h(i,e),d.default(i.parentNode)}}},function(e,t,n){n=n(396),e.exports=n},function(e,t,n){n(50),n(397),n=n(9),e.exports=n.Array.from},function(e,t,n){var i=n(5),o=n(398);i({target:"Array",stat:!0,forced:!n(114)(function(e){Array.from(e)})},{from:o})},function(e,t,n){var f=n(39),g=n(29),m=n(113),y=n(111),v=n(34),b=n(69),w=n(112);e.exports=function(e,t,n){var i,o,r,a,s,l,c=g(e),u="function"==typeof this?this:Array,e=arguments.length,d=1<e?t:void 0,h=void 0!==d,t=w(c),p=0;if(h&&(d=f(d,2<e?n:void 0,2)),null==t||u==Array&&y(t))for(o=new u(i=v(c.length));p<i;p++)l=h?d(c[p],p):c[p],b(o,p,l);else for(s=(a=t.call(c)).next,o=new u;!(r=s.call(a)).done;p++)l=h?m(a,d,[r.value,p],!0):r.value,b(o,p,l);return o.length=p,o}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=i(n(138)),s=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3))),n=(l.prototype.getRowNode=function(e){var t=s.default(e).elems[0];return t.parentNode?null==(e=s.default(t).parentUntil("TR",t))?void 0:e.elems[0]:t},l.prototype.getCurrentRowIndex=function(e,n){var i=0,t=e.children[0];return"COLGROUP"===t.nodeName&&(t=e.children[e.children.length-1]),(0,r.default)(t=(0,a.default)(t.children)).call(t,function(e,t){e===n&&(i=t)}),i},l.prototype.getCurrentColIndex=function(e){var n=0,i="TD"===s.default(e).getNodeName()||"TH"===s.default(e).getNodeName()?e:null==(t=s.default(e).parentUntil("TD",e))?void 0:t.elems[0],t=s.default(i).parent();return(0,r.default)(t=(0,a.default)(t.elems[0].children)).call(t,function(e,t){e===i&&(n=t)}),n},l.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+s.default(e).html()+"</table>"},l);function l(e){this.editor=e}t.default=n}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var o=n(2).__importDefault(n(3));t.bindClickEvent=function(i){i.txt.eventHooks.tableClickEvents.push(function(e,t){var n;3<=t.detail&&(n=window.getSelection())&&(t=n.focusNode,n=n.anchorNode,n=o.default(null==n?void 0:n.parentElement),e.isContain(o.default(t))||(t="TD"===n.elems[0].tagName?n:n.parentUntilEditor("td",i))&&(null!=(n=i.selection.getRange())&&n.setEnd(t.elems[0],t.elems[0].childNodes.length),i.selection.restoreSelection()))})},t.bindEventKeyboardEvent=function(o){var e=o.txt,r=o.selection;e.eventHooks.keydownEvents.push(function(e){o.selection.saveRange();var t,n,i=r.getSelectionContainerElem();(i=i&&((t=i.getNodeTop(o)).length&&t.prev().length?t.prev():null))&&"TABLE"===i.getNodeName()&&r.isSelectionEmpty()&&0===r.getCursorPos()&&8===e.keyCode&&((i=t.next()).length&&(n=t).length&&"P"===(n=n.elems[0]).nodeName&&"<br>"===n.innerHTML&&(t.remove(),o.selection.setRangeToElem(i.elems[0])),e.preventDefault())})}},function(e,t,n){var i=(h=n(0))(n(1)),a=h(n(26));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var i=(h=n(2)).__importDefault(n(37)),o=h.__importDefault(n(3)),s=n(6),r=h.__importDefault(n(402)),l=h.__importDefault(n(139)),c=h.__importDefault(n(32)),u=h.__importDefault(n(403));t.formatCodeHtml=function(e,t){return t&&(t=function e(t){var n,i=t.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!i||!i.length)return t;for(var o=(0,a.default)(n=s.deepClone(i)).call(n,function(e){return(e=e.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")}),r=0;r<i.length;r++)t=t.replace(i[r],o[r]);return e(t)}(t),null!==(i=(n=t).match(/<pre[\s|\S]+?\/pre>/g))&&(0,a.default)(i).call(i,function(e){n=n.replace(e,e.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))}),t=n,s.replaceSpecialSymbol(t));var n,i};d=i.default,h.__extends(p,d),p.prototype.insertLineCode=function(e){var t=this.editor,e=o.default("<code>"+e+"</code>");t.cmd.do("insertElem",e),t.selection.createRangeByElem(e,!1),t.selection.restoreSelection()},p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},p.prototype.createPanel=function(e,t){t=r.default(this.editor,e,t),new c.default(this,t).create()},p.prototype.tryChangeActive=function(){var e=this.editor;l.default(e)?this.active():this.unActive()};var d,h=p;function p(e){var t=o.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>'),t=d.call(this,t,e)||this;return u.default(e),t}t.default=h},function(e,t,n){var i=n(0),o=i(n(1)),l=i(n(26)),o=((0,o.default)(t,"__esModule",{value:!0}),n(2)),c=n(6),u=o.__importDefault(n(3)),d=o.__importDefault(n(139)),h=n(7);t.default=function(o,e,t){var n,r=c.getRandom("input-iframe"),a=c.getRandom("select"),i=c.getRandom("btn-ok");function s(e){return o.i18next.t(e)}return{width:500,height:0,tabs:[{title:s("menus.panelMenus.code.插入代码"),tpl:'<div>\n                        <select name="" id="'+a+'">\n                            '+(0,l.default)(n=o.config.languageType).call(n,function(e){return"<option "+(t==e?"selected":"")+' value ="'+e+'">'+e+"</option>"})+'\n                        </select>\n                        <textarea id="'+r+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+e.replace(/&quot;/g,'"')+'</textarea>\n                        <div class="w-e-button-container">\n                            <button type="button" id="'+i+'" class="right">'+(d.default(o)?s("修改"):s("插入"))+"</button>\n                        </div>\n                    </div>",events:[{selector:"#"+i,type:"click",fn:function(){var e,t=document.getElementById(r),n=u.default("#"+a).val(),i=t.value,t=o.highlight?o.highlight.highlightAuto(i).value:"<xmp>"+i+"</xmp>";if(i)return!d.default(o)&&(i='<pre><code class="'+n+'">'+t+"</code></pre>",d.default(o)&&d.default(o)&&(e=null==(e=o.selection.getSelectionStartElem())?void 0:e.getNodeTop(o))&&(o.selection.createRangeByElem(e),o.selection.restoreSelection()),null!=(e=o.selection.getSelectionStartElem())&&e.elems[0].innerHTML&&o.cmd.do("insertHTML",h.EMPTY_P),o.cmd.do("insertHTML",i),0===(null==(i=null==(i=o.selection.getSelectionStartElem())?void 0:i.getNodeTop(o))?void 0:i.getNextSibling().elems.length)&&u.default(h.EMPTY_P).insertAfter(i),!0)}}]}]}}}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(404)),r=i.__importDefault(n(405));t.default=function(e){o.default(e),r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var i=n(2),o=i.__importDefault(n(3)),r=i.__importDefault(n(38));function a(n){var i;return{showCodeTooltip:function(e){var t=[{$elem:o.default("<span>"+n.i18next.t((t=void 0===t?"menus.panelMenus.code.":t)+"删除代码")+"</span>"),onClick:function(e,t){return t.remove(),!0}}];(i=new r.default(n,e,t)).create()},hideCodeTooltip:function(){i&&(i.remove(),i=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showCodeTooltip,n=n.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),a=n(7),s=i.__importDefault(n(3));t.default=function(i){var o=i.$textElem,r=i.selection,e=i.txt.eventHooks.keydownEvents;e.push(function(e){var t;40===e.keyCode&&(t=r.getSelectionContainerElem(),e=null==(e=o.children())?void 0:e.last(),"XMP"===(null==t?void 0:t.elems[0].tagName))&&"PRE"===(null==e?void 0:e.elems[0].tagName)&&(e=s.default(a.EMPTY_P),o.append(e))}),e.push(function(e){i.selection.saveRange();var t,n=r.getSelectionContainerElem();n&&(n=null==(t=n.getNodeTop(i))?void 0:t.prev(),t=null==t?void 0:t.getNextSibling(),n.length)&&"PRE"===(null==n?void 0:n.getNodeName())&&0===t.length&&0===r.getCursorPos()&&8===e.keyCode&&(e=s.default(a.EMPTY_P),o.append(e))})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(c=n(2)).__importDefault(n(23)),r=c.__importDefault(n(3)),a=c.__importDefault(n(407)),s=n(6),l=n(7),c=(i=o.default,c.__extends(u,i),u.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getRange(),i=t.selection.getSelectionContainerElem();null==i||!i.length||(t=(e=r.default(i.elems[0])).parentUntil("TABLE",i.elems[0]),i=e.children(),"CODE"===e.getNodeName())||t&&"TABLE"===r.default(t.elems[0]).getNodeName()||(!i||0===i.length||"IMG"!==r.default(i.elems[0]).getNodeName()||null!=n&&n.collapsed)&&this.createSplitLine()},u.prototype.createSplitLine=function(){var e="<hr/>"+l.EMPTY_P;s.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},u.prototype.tryChangeActive=function(){},u);function u(e){var t=r.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>'),t=i.call(this,t,e)||this;return a.default(e),t}t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(408));t.default=function(e){i.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),r=i.__importDefault(n(3)),a=i.__importDefault(n(38));t.default=function(e){n=e;var n,i,t=(o={showSplitLineTooltip:function(e){var t=[{$elem:r.default("<span>"+n.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(i=new a.default(n,e,t)).create()},hideSplitLineTooltip:function(){i&&(i.remove(),i=null)}}).showSplitLineTooltip,o=o.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(t),e.txt.eventHooks.clickEvents.push(o),e.txt.eventHooks.keyupEvents.push(o),e.txt.eventHooks.toolbarClickEvents.push(o),e.txt.eventHooks.menuClickEvents.push(o),e.txt.eventHooks.textScrollEvents.push(o)}},function(e,t,n){var i=(u=n(0))(n(1)),o=u(n(4));(0,i.default)(t,"__esModule",{value:!0});var r,a=(u=n(2)).__importDefault(n(3)),i=u.__importDefault(n(23)),s=n(97),l=u.__importDefault(n(415)),c=u.__importDefault(n(140)),u=(r=i.default,u.__extends(d,r),d.prototype.clickHandler=function(){var e=this.editor;s.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},d.prototype.tryChangeActive=function(){s.isAllTodo(this.editor)?this.active():this.unActive()},d.prototype.setTodo=function(){var i=this.editor,e=i.selection.getSelectionRangeTopNodes();(0,o.default)(e).call(e,function(e){var t,n;"P"===(null==e?void 0:e.getNodeName())&&(n=null==(n=(t=c.default(e).getTodo()).children())?void 0:n.getNode(),t.insertAfter(e),i.selection.moveCursor(n),e.remove())}),this.tryChangeActive()},d.prototype.cancelTodo=function(){var i=this.editor,e=i.selection.getSelectionRangeTopNodes();(0,o.default)(e).call(e,function(e){var t=null==(n=null==(t=e.childNodes())?void 0:t.childNodes())?void 0:n.clone(!0),n=a.default("<p></p>");n.append(t),n.insertAfter(e),null!=(t=n.childNodes())&&t.get(0).remove(),i.selection.moveCursor(n.getNode()),e.remove()})},d);function d(e){var t=a.default('<div class="w-e-menu" data-title="待办事项">\n                    <i class="w-e-icon-checkbox-checked"></i>\n                </div>'),t=r.call(this,t,e)||this;return l.default(e),t}t.default=u},function(e,t,n){e.exports=n(411)},function(e,t,n){n=n(412),e.exports=n},function(e,t,n){var i=n(413),o=Array.prototype;e.exports=function(e){var t=e.every;return e===o||e instanceof Array&&t===o.every?i:t}},function(e,t,n){n(414),n=n(15),e.exports=n("Array").every},function(e,t,n){var i=n(5),o=n(30).every,r=n(67),n=n(22),r=r("every"),n=n("every");i({target:"Array",proto:!0,forced:!r||!n},{every:function(e,t){return o(this,e,1<arguments.length?t:void 0)}})},function(e,t,n){var i=n(0),o=i(n(1)),g=i(n(4));
13(0,o.default)(t,"__esModule",{value:!0});var m=(o=n(2)).__importDefault(n(3)),y=n(97),v=o.__importDefault(n(140)),b=n(97),w=n(7);t.default=function(f){f.txt.eventHooks.enterDownEvents.push(function(e){var t,n,i,o,r,a,s,l,c,u,d,h,p;y.isAllTodo(f)&&(e.preventDefault(),c=null==(u=(l=(s=f.selection).getSelectionRangeTopNodes()[0]).childNodes())?void 0:u.get(0),e=null==(t=window.getSelection())?void 0:t.anchorNode,null!=(u=s.getRange())&&u.collapsed||(t=null==u?void 0:u.commonAncestorContainer.childNodes,n=null==u?void 0:u.startContainer,i=null==u?void 0:u.endContainer,d=null==u?void 0:u.startOffset,h=null==u?void 0:u.endOffset,r=o=0,a=[],null!=t&&(0,g.default)(t).call(t,function(e,t){e.contains(n)&&(o=t),e.contains(i)&&(r=t)}),1<r-o&&(null!=t&&(0,g.default)(t).call(t,function(e,t){t<=o||r<=t||a.push(e)}),(0,g.default)(a).call(a,function(e){e.remove()})),b.dealTextNode(n,d),b.dealTextNode(i,h,!1),f.selection.moveCursor(i,0)),""===l.text()?((p=m.default(w.EMPTY_P)).insertAfter(l),s.moveCursor(p.getNode()),l.remove()):(d=s.getCursorPos(),h=y.getCursorNextNode(null==c?void 0:c.getNode(),e,d),d=(e=(p=v.default(m.default(h))).getInputContainer()).parent().getNode(),h=p.getTodo(),p=e.getNode().nextSibling,""===(null==c?void 0:c.text())&&null!=c&&c.append(m.default("<br>")),h.insertAfter(l),p&&""!==(null==p?void 0:p.textContent)?s.moveCursor(d):("BR"!==(null==p?void 0:p.nodeName)&&m.default("<br>").insertAfter(e),s.moveCursor(d,1))))}),f.txt.eventHooks.deleteUpEvents.push(function(){var e=f.selection.getSelectionRangeTopNodes()[0];e&&b.isTodo(e)&&""===e.text()&&(m.default(w.EMPTY_P).insertAfter(e),e.remove())}),f.txt.eventHooks.deleteDownEvents.push(function(e){var t,n,i,o,r,a,s,l;y.isAllTodo(f)&&(i=null==(s=(n=(t=f.selection).getSelectionRangeTopNodes()[0]).childNodes())?void 0:s.getNode(),o=m.default("<p></p>"),r=o.getNode(),a=null==(l=window.getSelection())?void 0:l.anchorNode,s=t.getCursorPos(),l=a.previousSibling,""===n.text()?(e.preventDefault(),(a=m.default(w.EMPTY_P)).insertAfter(n),n.remove(),t.moveCursor(a.getNode(),0)):"SPAN"===(null==l?void 0:l.nodeName)&&"INPUT"===l.childNodes[0].nodeName&&0===s&&(e.preventDefault(),null!=i&&(0,g.default)(i=i.childNodes).call(i,function(e,t){0!==t&&r.appendChild(e.cloneNode(!0))}),o.insertAfter(n),n.remove()))}),f.txt.eventHooks.clickEvents.push(function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var i=n(2),c=i.__importDefault(n(3)),u=n(6),d=n(7),h=i.__importDefault(n(129)),p="1px solid #c9d8db";t.default=function(e){var t=e.toolbarSelector,n=c.default(t),i=e.textSelector,o=e.config.height,r=e.i18next,a=c.default("<div></div>"),s=c.default("<div></div>"),t=null,l=(null==i?(l=n.children(),n.append(a).append(s),a.css("background-color","#FFF").css("border",p).css("border-bottom","1px solid #EEE"),s.css("border",p).css("border-top","none").css("height",o+"px")):(n.append(a),t=c.default(i).children(),c.default(i).append(s),l=s.children()),(n=c.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%"),(i=(i=e.config.placeholder)!==h.default.placeholder?c.default("<div>"+i+"</div>"):c.default("<div>"+r.t(i)+"</div>")).addClass("placeholder"),l&&l.length?(n.append(l),i.hide()):n.append(c.default(d.E
13MPTY_P)),t&&t.length&&(n.append(t),i.hide()),s.append(n),s.append(i),a.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),s.addClass("w-e-text-container"),s.css("z-index",e.zIndex.get()),n.addClass("w-e-text"),u.getRandom("toolbar-elem"));a.attr("id",l),t=u.getRandom("text-elem"),n.attr("id",t),(i=s.getBoundingClientRect().height)!==n.getBoundingClientRect().height&&n.css("min-height",i+"px"),e.$toolbarElem=a,e.$textContainerElem=s,e.$textElem=n,e.toolbarElemId=l,e.textElemId=t},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,i=e.textSelector,o=e.toolbarSelector,r={bar:c.default("<div></div>"),text:c.default("<div></div>")};if(null==o)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(r.bar=c.default(o),!r.bar.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(r.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(i){if(r.text=c.default(i),!r.text.elems.length)throw new Error("无效的节点选择器:"+i);if(n.test(r.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}r.bar.attr(t,e.id),r.text.attr(t,e.id),e.beforeDestroy(function(){r.bar.removeAttr(t),r.text.removeAttr(t)})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=n(7);t.default=function e(t,n){var i,o=t.$textElem,r=o.children();!r||!r.length||(i=r.last(),n&&(r=i.html().toLowerCase(),n=i.getNodeName(),"<br>"!==r&&"<br/>"!==r||"P"!==n))?(o.append(a.default(s.EMPTY_P)),e(t)):(t.selection.createRangeByElem(i,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange())}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=((0,o.default)(t,"__esModule",{value:!0}),n(2).__importDefault(n(3)));function s(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){var n,t,o;function i(e){var t=e.target,n=a.default(t),i=o.$textElem,t=o.$toolbarElem,i=i.isContain(n),n=t.isContain(n),e=t.elems[0]==e.target;i?(o.isFocus||s(o),o.isFocus=!0):n&&!e||!o.isFocus||(n=(i=o).config.onblur,e=i.txt.html()||"",(0,r.default)(i=i.txt.eventHooks.onBlurEvents).call(i,function(e){return e()}),n(e),o.isFocus=!1)}(n=e).txt.eventHooks.changeEvents.push(function(){var e,t=n.config.onchange;t&&(e=n.txt.html()||"",n.isFocus=!0,t(e)),n.txt.togglePlaceholder()}),(o=e).isFocus=!1,document.activeElement===o.$textElem.elems[0]&&o.config.focus&&(s(o),o.isFocus=!0),a.default(document).on("click",i),o.beforeDestroy(function(){a.default(document).off("click",i)}),(t=e).$textElem.on("compositionstart",function(){t.isComposing=!0,t.txt.togglePlaceholder()}).on("compositionend",function(){t.isComposing=!1,t.txt.togglePlaceholder()})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.config,n=t.lang,t=t.languages;if(null==e.i18next)e.i18next={t:function(e){return(e=e.split("."))[e.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:t})}catch(e){throw new Error("i18next:"+e)}}},function(e,i,t){var n=t(0),o=n(t(1)),r=n(t(31)),a=((0,o.default)(i,"__esModule",{value:!0}),i.setUnFullScreen=i.setFullScreen=void 0,t(2).__importDefault(t(3))),s=(t(421),"w-e-icon-fullscreen"),l="w-e-icon-fullscreen_exit",c="w-e-full-screen-editor";i.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,o=(0,r.default)(i).call(i,"i."+s),e=e.config;o.removeClass(s),o.addClass(l),t.addClass(c),t.css("z-index",e.zIndexFullScreen),i=i.getBoundingClientRect(),n.css("height","calc(100% - "+i.height+"px)")},i.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,i=e.$toolbarElem,i=(0,r.default)(i).call(i,"i."+l),e=e.config;i.removeClass(l),i.addClass(s),t.removeClass(c),t.css("z-index","auto"),n.css("height",e.height+"px")},i.default=function(t){var e,n;t.textSelector||t.config.showFullScreen&&(e=t.$toolbarElem,(n=a.default('<div class="w-e-menu" data-title="全屏">\n            <i class="'+s+'"></i>\n        </div>')).on("click",function(e){(0,r.default)(e=a.default(e.currentTarget)).call(e,"i").hasClass(s)?(n.attr("data-title","取消全屏"),i.setFullScreen(t)):(n.attr("data-title","全屏"),i.setUnFullScreen(t))}),e.append(n))}},function(e,t,n){var i=n(20),o=n(422);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}}
13,function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n  position: fixed;\n  width: 100%!important;\n  height: 100%!important;\n  left: 0;\n  top: 0;\n}\n",""]),e.exports=t},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(31));(0,o.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.isEnable?e.$textElem:(0,r.default)(n=e.$textContainerElem).call(n,".w-e-content-mantle"),t=(0,r.default)(n).call(n,"[id='"+t+"']").getOffsetData().top;n.scrollTop(t)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2).__importDefault(n(128)),o={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},n=(r.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},r.prototype.init=function(e){this.baseZIndex==i.default.zIndex&&(this.baseZIndex=e.config.zIndex)},r);function r(){this.tier=o,this.baseZIndex=i.default.zIndex}t.default=n},function(e,t,n){var i=(c=n(0))(n(1)),a=c(n(70)),o=c(n(4));(0,i.default)(t,"__esModule",{value:!0});var s,i=(c=n(2)).__importDefault(n(426)),r=n(6),l=n(7),c=(s=i.default,c.__extends(u,s),u.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},u.prototype.emit=function(){var e;(0,o.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,function(e){return e()})},u.prototype.observe=function(){var e=this,t=(s.prototype.observe.call(this,this.editor.$textElem.elems[0]),this.editor.config.onchangeTimeout);this.asyncSave=r.debounce(function(){e.save()},t),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){e.asyncSave()})},u);function u(o){var r=s.call(this,function(e,t){var n=e,i=t.target;if(e=(0,a.default)(n).call(n,function(e){var t=e.type,n=e.target,e=e.attributeName;return"attributes"!=t||"attributes"==t&&("contenteditable"==e||n!=i)}),(n=r.data).push.apply(n,e),o.isCompatibleMode)r.asyncSave();else if(!o.isComposing)return r.asyncSave()})||this;return r.editor=o,r.data=[],r.asyncSave=l.EMPTY_FN,r}t.default=c},function(e,t,n){function i(t,e){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(e){t(e,n)},this.observer=new MutationObserver(this.callback),e&&(this.options=e)}(0,(n=n(0)(n(1))).default)(t,"__esModule",{value:!0}),(0,n.default)(i.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),i.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},i.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},i.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},t.default=n=i},function(e,t,n){(0,(s=n(0)(n(1))).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(428)),r=i.__importDefault(n(435)),a=i.__importDefault(n(436)),s=((0,s.default)(l.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),l.prototype.observe=function(){this.content.observe(),this.scroll.observe(),this.editor.isCompatibleMode||this.range.observe()},l.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),this.editor.isCompatibleMode||this.range.save())},l.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},l.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},l);function l(e){this.editor=e,this.content=new o.default(e),this.scroll=new r.default(e),this.range=new a.default(e)}t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(429)),r=i.__importDefault(n(433)),n=(a.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new r.default(this.editor):this.cache=new o.default(this.editor),this.cache.observe()},a.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},a.prototype.revoke=function(){var e;return null==(e=this.cache)?void 0:e.revoke()},a.prototype.restore=function(){var e;
13return null==(e=this.cache)?void 0:e.restore()},a);function a(e){this.editor=e}t.default=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,o=(s=n(2)).__importDefault(n(98)),r=s.__importDefault(n(431)),a=n(432),s=(i=o.default,s.__extends(l,i),l.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},l.prototype.compile=function(e){return this.save(r.default(e)),this},l.prototype.revoke=function(){return i.prototype.revoke.call(this,function(e){a.revoke(e)})},l.prototype.restore=function(){return i.prototype.restore.call(this,function(e){a.restore(e)})},l);function l(e){var t=i.call(this,e.config.historyMaxSize)||this;return t.editor=e,t}t.default=s},function(e,t,n){function i(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}(0,(n=n(0)(n(1))).default)(t,"__esModule",{value:!0}),t.CeilStack=void 0,i.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,n.default)(i.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),i.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},i.prototype.outstack=function(){return this.data.shift()},i.prototype.clear=function(){return this.data.length=0,this},t.CeilStack=n=i},function(e,t,n){var i=n(0),o=i(n(1)),l=i(n(4)),c=i(n(27)),u=((0,o.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0,n(6));function d(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function h(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function p(e){var t={};return e.addedNodes.length&&(t.add=u.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=u.toArray(e.removedNodes)),t}function f(e){return e=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target}}t.compileType=d,t.compileValue=h,t.complieNodes=p,t.compliePosition=f;var g=["UL","OL","H1","H2","H3","H4","H5","H6"];function m(e,t){for(var n=0,i=t.length-1;0<i&&e.contains(t[i]);i--)n++;return n}t.default=function(e){var r=[],a=!1,s=[];return(0,l.default)(e).call(e,function(e,t){var n,i,o={type:d(e.type),target:e.target,attr:e.attributeName||"",value:h(e)||"",oldValue:e.oldValue||"",nodes:p(e),position:f(e)};r.push(o),u.UA.isFirefox&&(a&&e.addedNodes.length&&1==e.addedNodes[0].nodeType&&(i={type:"node",target:n=e.addedNodes[0],attr:"",value:"",oldValue:"",nodes:{add:[a]},position:{type:"parent",target:n}},-1!=(0,c.default)(g).call(g,n.nodeName)?(i.nodes.add=u.toArray(n.childNodes),r.push(i)):3==a.nodeType?(m(n,s)&&(i.nodes.add=u.toArray(n.childNodes)),r.push(i)):-1==(0,c.default)(g).call(g,e.target.nodeName)&&m(n,s)&&(i.nodes.add=u.toArray(n.childNodes),r.push(i))),"node"==o.type&&1==e.removedNodes.length?(a=e.removedNodes[0],s.push(a)):(a=!1,s.length=0))}),r}},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(4)),a=i(n(94));function s(t,e){var n=t.position.target;switch(t.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,r.default)(e).call(e,function(e){t.target.insertBefore(e,n)})):(0,r.default)(e).call(e,function(e){t.target.appendChild(e)});break;case"after":(0,r.default)(e).call(e,function(e){t.target.insertBefore(e,n)});break;default:(0,r.default)(e).call(e,function(e){n.appendChild(e)})}}(0,o.default)(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var l={node:function(t){for(var e=0,n=(0,a.default)(t.nodes);e<n.length;e++){var i=(o=n[e])[0],o=o[1];"add"===i?(0,r.default)(o).call(o,function(e){t.target.removeChild(e)}):s(t,o)}},text:function(e){e.target.textContent=e.oldValue},attr:function(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}},c=(t.revoke=function(e){for(var t=e.length-1;-1<t;t--){var n=e[t];l[n.type](n)}},{node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var i=(o=n[t])[0],o=o[1];"add"===i?s(e,o):(0,r.default)(o).call(o,function(e){e.parentNode.removeChild(e)})}},text:function(e){e.target.textContent=e.value},attr:function(e){e.target.setAttribute(e.attr,e.value)}});t.restore=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];c[i.type](i)}}}
13,function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i=n(434),n=(o.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},o.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},o.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},o.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},o);function o(e){this.editor=e,this.data=new i.TailChain}t.default=n},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(91));function a(){this.data=[],this.max=0,this.point=0,this.isRe=!1}(0,o.default)(t,"__esModule",{value:!0}),t.TailChain=void 0,a.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,o.default)(a.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),a.prototype.insertLast=function(e){var t;for(this.isRe&&((0,r.default)(t=this.data).call(t,this.point+1),this.isRe=!1),this.data.push(e);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},a.prototype.current=function(){return this.data[this.point]},a.prototype.prev=function(){if(this.isRe||(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},a.prototype.next=function(){if(this.isRe||(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},t.TailChain=o=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var i,n=(o=n(2)).__importDefault(n(98)),o=(i=n.default,o.__extends(r,i),r.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){e.last=e.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},r.prototype.save=function(){return i.prototype.save.call(this,[this.last,this.target.scrollTop]),this},r.prototype.revoke=function(){var t=this;return i.prototype.revoke.call(this,function(e){t.target.scrollTop=e[0]})},r.prototype.restore=function(){var t=this;return i.prototype.restore.call(this,function(e){t.target.scrollTop=e[1]})},r);function r(e){var t=i.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.last=0,t.target=e.$textElem.elems[0],t}t.default=o},function(e,t,n){(0,(c=n(0)(n(1))).default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(98)),r=i.__importDefault(n(3)),a=n(6);function s(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}l=o.default,i.__extends(u,l),(0,c.default)(u.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),u.prototype.observe=function(){var t=this;function e(){var e=t.rangeHandle;t.root!==e.commonAncestorContainer&&!t.root.contains(e.commonAncestorContainer)||t.editor.isComposing||t.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),r.default(document).on("selectionchange",e),this.editor.beforeDestroy(function(){r.default(document).off("selectionchange",e)}),t.editor.$textElem.on("keydown",function(e){"Backspace"!=e.key&&"Delete"!=e.key||t.updateLastRange()})},u.prototype.save=function(){var e=s(this.rangeHandle);return l.prototype.save.call(this,[this.lastRange,e]),this.lastRange=e,this},u.prototype.set=function(e){try{var t;if(e)return(t=this.rangeHandle).setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}catch(e){}return!1},u.prototype.revoke=function(){var t=this;return l.prototype.revoke.call(this,function(e){t.set(e[0])})},u.prototype.restore=function(){var t=this;return l.prototype.restore.call(this,function(e){t.set(e[1])})};var l,c=u;function u(e){var t=l.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.lastRange=s(document.createRange()),t.root=e.$textElem.elems[0],t.updateLastRange=a.debounce(function(){t.lastRange=s(t.rangeHandle)},e.config.onchangeTimeout),t}t.default=c},function(e,t,n){var i=n(0),o=i(n(1)),a=i(n(31)),s=((0,o.default)(t,"__esMo
13dule",{value:!0}),n(2).__importDefault(n(3)));n(438),t.default=function(n){var i,o,r=!1;return n.txt.eventHooks.changeEvents.push(function(){r&&(0,a.default)(i).call(i,".w-e-content-preview").html(n.$textElem.html())}),{disable:function(){var e,t;r||(n.$textElem.hide(),e=n.zIndex.get("textContainer"),t=n.txt.html(),i=s.default('<div class="w-e-content-mantle" style="z-index:'+e+'">\n                <div class="w-e-content-preview w-e-text">'+t+"</div>\n            </div>"),n.$textContainerElem.append(i),t=n.zIndex.get("menu"),o=s.default('<div class="w-e-menue-mantle" style="z-index:'+t+'"></div>'),n.$toolbarElem.append(o),r=!0,n.isEnable=!1)},enable:function(){r&&(i.remove(),o.remove(),n.$textElem.show(),r=!1,n.isEnable=!0)}}}},function(e,t,n){var i=n(20),o=n(439);i(o="string"==typeof(o=o.__esModule?o.default:o)?[[e.i,o,""]]:o,n={insert:"head",singleton:!1}),e.exports=o.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n  width: 100%;\n  height: 100%;\n  overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n  width: 100%;\n  min-height: 100%;\n  padding: 0 10px;\n  line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n  cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n  box-shadow: none;\n}\n.w-e-menue-mantle {\n  position: absolute;\n  height: 100%;\n  width: 100%;\n  top: 0;\n  left: 0;\n}\n",""]),e.exports=t},function(e,t,n){function i(e){var t=this;function n(){document.activeElement===e.$textElem.elems[0]&&t.emit()}this.editor=e,window.document.addEventListener("selectionchange",n),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",n)})}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),i.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;t&&((e=this.editor.selection).saveRange(),e.isSelectionEmpty()||t({text:e.getSelectionText(),html:null==(t=e.getSelectionContainerElem())?void 0:t.elems[0].innerHTML,selection:e}))},t.default=n=i},function(e,t,n){var i=n(0),o=i(n(1)),r=i(n(127)),a=i(n(94)),s=i(n(4)),l=((0,o.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0,n(2).__importDefault(n(87))),c=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e]&&console.warn("plugin "+e+" 已存在,已覆盖。"),n[e]=t},t.default=function(i){var e=(0,r.default)({},c.deepClone(l.default.globalPluginsFunctionList),c.deepClone(i.pluginsFunctionList)),e=(0,a.default)(e);(0,s.default)(e).call(e,function(e){var t=e[0],n=e[1];console.info("plugin "+t+" initializing"),e=n.intention,n=n.config,e(i,n),console.info("plugin "+t+" initialization complete")})}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}],o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=141).default;function o(e){var t;return(i[e]||(t=i[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var n,i}),(()=>{var o,r,l,a,c,e,t,n=function(){return this}();n||"undefined"==typeof window||(n=window),"undefined"!=typeof requirejs||((o=function(e,t,n){"string"!=typeof e?o.original?o.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(n=t),o.modules[e]||(o.payloads[e]=n,o.modules[e]=null))}).modules={},o.payloads={},r=function(e,t,n){if("string"==typeof t){var i=c(e,t);if(null!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],r=0,a=t.length;r<a;++r){var s=c(e,t[r]);if(null==s&&l.original)return;o.push(s)}return n&&n.apply(null,o)||!0}},l=function(e,t){e=r("",e,t);return null==e&&l.original?l.original.apply(this,arguments):e},a=function(e,t){var n;if(-1!==t.indexOf("!"))return n=t.split("!"),a(e,n[0])+"!"+a(e,n[1]);if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&i!=t;){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t}
vendor: 26,134 bytes, line 13
13,c=function(e,n){n=a(e,n);var t,i,e=o.modules[n];return e||("function"==typeof(e=o.payloads[n])&&(t={id:n,uri:"",exports:i={},packaged:!0},i=e(function(e,t){return r(n,e,t)},i,t)||t.exports,o.modules[n]=i,delete o.payloads[n]),e=o.modules[n]=i||e),e},t=n,(e="")&&(n[e]||(n[e]={}),t=n[e]),t.define&&t.define.packaged||(o.original=t.define,t.define=o,t.define.packaged=!0),t.require&&t.require.packaged)||(l.original=t.require,t.require=l,t.require.packaged=!0)})(),define("ace/lib/es6-shim",["require","exports","module"],function(e,t,n){function i(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||i(String.prototype,"startsWith",function(e,t){return this.lastIndexOf(e,t=t||0)===t}),String.prototype.endsWith||i(String.prototype,"endsWith",function(e,t){(void 0===t||t>this.length)&&(t=this.length),t-=e.length;e=this.indexOf(e,t);return-1!==e&&e===t}),String.prototype.repeat||i(String.prototype,"repeat",function(e){for(var t="",n=this;0<e;)1&e&&(t+=n),(e>>=1)&&(n+=n);return t}),String.prototype.includes||i(String.prototype,"includes",function(e,t){return-1!=this.indexOf(e,t)}),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];null!=i&&Object.keys(i).forEach(function(e){t[e]=i[e]})}return t}),Object.values||(Object.values=function(t){return Object.keys(t).map(function(e){return t[e]})}),Array.prototype.find||i(Array.prototype,"find",function(e){for(var t=this.length,n=arguments[1],i=0;i<t;i++){var o=this[i];if(e.call(n,o,i,this))return o}}),Array.prototype.findIndex||i(Array.prototype,"findIndex",function(e){for(var t=this.length,n=arguments[1],i=0;i<t;i++){var o=this[i];if(e.call(n,o,i,this))return i}}),Array.prototype.includes||i(Array.prototype,"includes",function(e,t){return-1!=this.indexOf(e,t)}),Array.prototype.fill||i(Array.prototype,"fill",function(e){for(var t=this.length>>>0,n=arguments[1]>>0,i=n<0?Math.max(t+n,0):Math.min(n,t),n=arguments[2],n=void 0===n?t:n>>0,o=n<0?Math.max(t+n,0):Math.min(n,t);i<o;)this[i]=e,i++;return this}),Array.of||i(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(e,t,n){e("./es6-shim")}),define("ace/lib/deep_copy",["require","exports","module"],function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;if(Array.isArray(t))for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i]);else{if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var i in n={},t)n[i]=e(t[i])}return n}}),define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(e,t,n){t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";0<t;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t,n={};for(t in e)n[t]=e[t];return n},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t,n=Object.create(null);for(t in e)n[t]=e[t];return n},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,function(e){n.push({offset:arguments[arguments.length-2],length:e.length})}),n},t.deferredCall=function(e){function t(){i=null,e()}function n(e){return n.cancel(),i=setTimeout(t,e||0),n}var i=null;return(n.schedule=n).call=function(){return this.cancel(),e(),n},n.cancel=function(){return clearTimeout(i),i=null,n},n.isPending=function(){return i},n},t.delayedCall=function(e,t){function n(){o=null,e()}function i(e){null==o&&(o=setTimeout(n,e||t))}var o=null;return i.delay=function(e){o&&clearTimeout(o),o=setTimeout(n,e||t)},(i.schedule=i).call=function(){this.cancel(),e()},i.cancel=function(){o&&clearTimeout(o),o=null},i.isPending=function(){return o},i},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.skipEmptyMatch=function(e,t,n){return n&&65535<e.codePointAt(t)?2:1}}),define("ace/lib/useragent",["require","exports","module"],function(e,t,n){t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var i="object"==typeof navigator?navigator:{},o=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),r=i.userAgent||"",i=i.appName||"";t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==i||0<=i.indexOf("MSAppHost")?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=r.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isSafari=parseFloat(r.split(" Safari/")[1])&&!t.isChrome||void 0,t.isEdge=parseFloat(r.split(" Edge/")[1])||void 0,t.isAIR=0<=r.indexOf("AdobeAIR"),t.isAndroid=0<=r.indexOf("Android"),t.isChromeOS=0<=r.indexOf(" CrOS "),t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,r,t){function a(){var e=l;l=null,e&&e.forEach(function(e){n(e[0],e[1])})}function n(e,t,n){if("undefined"!=typeof document){if(l)if(n)a();else if(!1===n)return l.push([e,t]);if(!s){var i=n,n=(i=n&&n.getRootNode&&(i=n.getRootNode())&&i!=n?i:document).ownerDocument||i;if(t&&r.hasCssString(t,i))return null;t&&(e+="\n/*# sourceURL=ace/css/"+t+" */");var o=r.createElement("style");o.appendChild(n.createTextNode(e)),t&&(o.id=t),(i=i==n?r.getDocumentHead(n):i).insertBefore(o,i.firstChild)}}}e=e("./useragent");r.buildDom=function e(t,n,i){if("string"==typeof t&&t)return c=document.createTextNode(t),n&&n.appendChild(c),c;if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],r=0;r<t.length;r++){var a=e(t[r],n,i);a&&o.push(a)}return o}for(var s=document.createElement(t[0]),l=t[1],c=1,r=c=l&&"object"==typeof l&&!Array.isArray(l)?2:c;r<t.length;r++)e(t[r],s,i);return 2==c&&Object.keys(l).forEach(function(e){var t=l[e];"class"===e?s.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?s[e]=t:"ref"===e?i&&(i[t]=s):"style"===e?"string"==typeof t&&(s.style.cssText=t):null!=t&&s.setAttribute(e,t)}),n&&n.appendChild(s),s},r.getDocumentHead=function(e){return(e=e||document).head||e.getElementsByTagName("head")[0]||e.documentElement},r.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},r.removeChildren=function(e){e.innerHTML=""},r.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},r.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},r.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},r.addCssClass=function(e,t){r.hasCssClass(e,t)||(e.className+=" "+t)},r.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var i=n.indexOf(t);if(-1==i)break;n.splice(i,1)}e.className=n.join(" ")},r.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),i=!0;;){var o=n.indexOf(t);if(-1==o)break;i=!1,n.splice(o,1)}return i&&n.push(t),e.className=n.join(" "),i},r.setCssClass=function(e,t,n){n?r.addCssClass(e,t):r.removeCssClass(e,t)},r.hasCssString=function(e,t){var n,i=0;if(n=(t=t||document).querySelectorAll("style"))for(;i<n.length;)if(n[i++].id===e)return!0},r.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()};var s,i,l=[];r.useStrictCSP=function(e){0==(s=e)?a():l=l||[]},r.importCssString=n,r.importCssStylsheet=function(e,t){r.buildDom(["link",{rel:"stylesheet",href:e}],r.getDocumentHead(t))},r.scrollbarWidth=function(e){var t=r.createElement("ace_inner"),n=(t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block",r.createElement("ace_outer")),i=n.style,e=(i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",n.appendChild(t),e&&e.documentElement||document&&document.documentElement);if(!e)return 0;e.appendChild(n);var o=t.offsetWidth,i=(i.overflow="scroll",t.offsetWidth);return o===i&&(i=n.clientWidth),e.removeChild(n),o-i},r.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},r.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},r.HAS_CSS_ANIMATION=!1,r.HAS_CSS_TRANSFORMS=!1,r.HI_DPI=!e.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,e.isChromeOS&&(r.HI_DPI=!1),"undefined"!=typeof document&&(i=document.createElement("div"),r.HI_DPI&&void 0!==i.style.transform&&(r.HAS_CSS_TRANSFORMS=!0),e.isEdge||void 0===i.style.animationName||(r.HAS_CSS_ANIMATION=!0),i=null),r.translate=r.HAS_CSS_TRANSFORMS?function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,n){var o=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,n){var t=o.getDocumentHead(),i=document.createElement("script");i.src=e,t.appendChild(i),i.onload=i.onreadystatechange=function(e,t){!t&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,t)||n()}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),define("ace/lib/oop",["require","exports","module"],function(e,n,t){n.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},n.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},n.implement=function(e,t){n.mixin(e,t)}}),define("ace/lib/event_emitter",["require","exports","module"],function(e,t,n){function r(){this.propagationStopped=!0}function a(){this.defaultPrevented=!0}var i={};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){(t="object"==typeof t&&t?t:{}).type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=a);for(var n=n.slice(),o=0;o<n.length&&(n[o](t,this),!t.propagationStopped);o++);return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){if(n=(this._eventRegistry||{})[e])for(var n=n.slice(),i=0;i<n.length;i++)n[i](t,this)},i.once=function(t,n){var i=this;if(this.on(t,function e(){i.off(t,e),n.apply(null,arguments)}),!n)return new Promise(function(e){n=e})},i.setDefaultHandler=function(e,t){var n,i,o=this._defaultHandlers;(o=o||(this._defaultHandlers={_disabled_:{}}))[e]&&(i=o[e],(n=o._disabled_[e])||(o._disabled_[e]=n=[]),n.push(i),-1!=(i=n.indexOf(t)))&&n.splice(i,1),o[e]=t},i.removeDefaultHandler=function(e,t){var n,i=this._defaultHandlers;i&&(n=i._disabled_[e],i[e]==t?n&&this.setDefaultHandler(e,n.pop()):n&&-1!=(i=n.indexOf(t))&&n.splice(i,1))},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];return-1==(i=i||(this._eventRegistry[e]=[])).indexOf(t)&&i[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};e=this._eventRegistry[e];e&&-1!==(t=e.indexOf(t))&&e.splice(t,1)},i.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=i}),define("ace/lib/report_error",["require","exports","module"],function(e,t,n){t.reportError=function(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout(function(){throw n})}}),define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],function(e,t,n){function i(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}var o,r=e("./oop"),a=e("./event_emitter").EventEmitter,e=e("./report_error").reportError,s={setOptions:function(t){Object.keys(t).forEach(function(e){this.setOption(e,t[e])},this)},getOptions:function(e){var t,n={};return e?Array.isArray(e)||(n=e,e=Object.keys(n)):(t=this.$options,e=Object.keys(t).filter(function(e){return!t[e].hidden})),e.forEach(function(e){n[e]=this.getOption(e)},this),n},setOption:function(e,t){var n;if(this["$"+e]!==t)return(n=this.$options[e])?n.forwardTo?this[n.forwardTo]&&this[n.forwardTo].setOption(e,t):(n.handlesSet||(this["$"+e]=t),void(n&&n.set&&n.set.call(this,t))):i('misspelled option "'+e+'"')},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:i('misspelled option "'+e+'"')}},l=(c.prototype.defineOptions=function(n,e,i){return n.$options||(this.$defaultOptions[e]=n.$options={}),Object.keys(i).forEach(function(e){var t=i[e];(t="string"==typeof t?{forwardTo:t}:t).name||(t.name=e),"initialValue"in(n.$options[t.name]=t)&&(n["$"+t.name]=t.initialValue)}),r.implement(n,s),this},c.prototype.resetOptions=function(n){Object.keys(n.$options).forEach(function(e){var t=n.$options[e];"value"in t&&n.setOption(e,t.value)})},c.prototype.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var i=this.$defaultOptions[e]||(this.$defaultOptions[e]={});i[t]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,t,n):i[t].value=n)},c.prototype.setDefaultValues=function(t,n){Object.keys(n).forEach(function(e){this.setDefaultValue(t,e,n[e])},this)},c.prototype.setMessages=function(e){o=e},c.prototype.nls=function(e,n){o&&!o[e]&&i("No message found for '"+e+"' in the provided messages, falling back to default English message.");e=o&&o[e]||e;return e=n?e.replace(/\$(\$|[\d]+)/g,function(e,t){return"$"==t?"$":n[t]}):e},c);function c(){this.$defaultOptions={}}l.prototype.warn=i,l.prototype.reportError=e,r.implement(l.prototype,a),t.AppConfig=l}),define("ace/theme/textmate-css",["require","exports","module"],function(e,t,n){n.exports='.ace-tm .ace_gutter {\n  background: #f0f0f0;\n  color: #333;\n}\n\n.ace-tm .ace_print-margin {\n  width: 1px;\n  background: #e8e8e8;\n}\n\n.ace-tm .ace_fold {\n    background-color: #6B72E6;\n}\n\n.ace-tm {\n  background-color: #FFFFFF;\n  color: black;\n}\n\n.ace-tm .ace_cursor {\n  color: black;\n}\n        \n.ace-tm .ace_invisible {\n  color: rgb(191, 191, 191);\n}\n\n.ace-tm .ace_storage,\n.ace-tm .ace_keyword {\n  color: blue;\n}\n\n.ace-tm .ace_constant {\n  color: rgb(197, 6, 11);\n}\n\n.ace-tm .ace_constant.ace_buildin {\n  color: rgb(88, 72, 246);\n}\n\n.ace-tm .ace_constant.ace_language {\n  color: rgb(88, 92, 246);\n}\n\n.ace-tm .ace_constant.ace_library {\n  color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_invalid {\n  background-color: rgba(255, 0, 0, 0.1);\n  color: red;\n}\n\n.ace-tm .ace_support.ace_function {\n  color: rgb(60, 76, 114);\n}\n\n.ace-tm .ace_support.ace_constant {\n  color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_support.ace_type,\n.ace-tm .ace_support.ace_class {\n  color: rgb(109, 121, 222);\n}\n\n.ace-tm .ace_keyword.ace_operator {\n  color: rgb(104, 118, 135);\n}\n\n.ace-tm .ace_string {\n  color: rgb(3, 106, 7);\n}\n\n.ace-tm .ace_comment {\n  color: rgb(76, 136, 107);\n}\n\n.ace-tm .ace_comment.ace_doc {\n  color: rgb(0, 102, 255);\n}\n\n.ace-tm .ace_comment.ace_doc.ace_tag {\n  color: rgb(128, 159, 191);\n}\n\n.ace-tm .ace_constant.ace_numeric {\n  color: rgb(0, 0, 205);\n}\n\n.ace-tm .ace_variable {\n  color: rgb(49, 132, 149);\n}\n\n.ace-tm .ace_xml-pe {\n  color: rgb(104, 104, 91);\n}\n\n.ace-tm .ace_entity.ace_name.ace_function {\n  color: #0000A2;\n}\n\n\n.ace-tm .ace_heading {\n  color: rgb(12, 7, 255);\n}\n\n.ace-tm .ace_list {\n  color:rgb(185, 6, 144);\n}\n\n.ace-tm .ace_meta.ace_tag {\n  color:rgb(0, 22, 142);\n}\n\n.ace-tm .ace_string.ace_regex {\n  color: rgb(255, 0, 0)\n}\n\n.ace-tm .ace_marker-layer .ace_selection {\n  background: rgb(181, 213, 255);\n}\n.ace-tm.ace_multiselect .ace_selection.ace_start {\n  box-shadow: 0 0 3px 0px white;\n}\n.ace-tm .ace_marker-layer .ace_step {\n  background: rgb(252, 255, 0);\n}\n\n.ace-tm .ace_marker-layer .ace_stack {\n  background: rgb(164, 229, 101);\n}\n\n.ace-tm .ace_marker-layer .ace_bracket {\n  margin: -1px 0 0 -1px;\n  border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-tm .ace_marker-layer .ace_active-line {\n  background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-tm .ace_gutter-active-line {\n    background-color : #dcdcdc;\n}\n\n.ace-tm .ace_marker-layer .ace_selected-word {\n  background: rgb(250, 250, 255);\n  border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-tm .ace_indent-guide {\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-tm .ace_indent-guide-active {\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'}),define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],function(e,t,n){t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate-css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)}),define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],function(a,s,t){var l,e=a("./lib/lang"),c=a("./lib/net"),n=a("./lib/dom"),i=a("./lib/app_config").AppConfig,r=(t.exports=s=new i,{packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null}),u=(s.get=function(e){if(r.hasOwnProperty(e))return r[e];throw new Error("Unknown config key: "+e)},s.set=function(e,t){if(r.hasOwnProperty(e))r[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&n.useStrictCSP(t)},s.all=function(){return e.copyObject(r)},s.$modes={},s.moduleUrl=function(e,t){var n,i,o;return r.$moduleUrls[e]||(e=e.split("/"),n="snippets"==(t=t||e[e.length-2]||"")?"/":"-",i=e[e.length-1],"worker"==t&&"-"==n&&(o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g"),i=i.replace(o,"")),(!i||i==t)&&1<e.length&&(i=e[e.length-2]),null==(o=r[t+"Path"])?o=r.basePath:"/"==n&&(t=n=""),o&&"/"!=o.slice(-1)&&(o+="/"),o+t+n+i+this.get("suffix"))},s.setModuleUrl=function(e,t){return r.$moduleUrls[e]=t},s.setLoader=function(e){l=e},s.dynamicModules=Object.create(null),s.$loading={},s.$loaded={},s.loadModule=function(e,t){function n(e){e&&!s.$loading[r]?t&&t(e):(s.$loading[r]||(s.$loading[r]=[]),s.$loading[r].push(t),1<s.$loading[r].length||(e=function(){var e,t;t=function(e,t){t&&(s.$loaded[r]=t),s._emit("load.module",{name:r,module:t});var n=s.$loading[r];s.$loading[r]=null,n.forEach(function(e){e&&e(t)})},"ace/theme/textmate"===(e=r)||"./theme/textmate"===e?t(null,a("./theme/textmate")):l?l(e,t):console.error("loader is not configured")},(s.get("packaged")?(c.loadScript(s.moduleUrl(r,o),e),u):e)()))}var i,o,r;Array.isArray(e)?(o=e[0],r=e[1]):"string"==typeof e&&(r=e);if(s.dynamicModules[r])s.dynamicModules[r]().then(function(e){e.default?n(e.default):n(e)});else{try{i=this.$require(r)}catch(e){}n(i||s.$loaded[r])}},s.$require=function(e){if("function"==typeof t.require)return t.require(e)},s.setModuleLoader=function(e,t){s.dynamicModules[e]=t},function(){r.basePath||r.workerPath||r.modePath||r.themePath||Object.keys(r.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})});s.version="1.32.7"}),define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(p,e,f){function t(e){if(m&&m.document){g.set("packaged",e||p.packaged||f.packaged||m.define&&define.packaged);for(var t,n={},i="",e=document.currentScript||document._currentScript,o=e&&e.ownerDocument||document,r=(e&&e.src&&(i=e.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||""),o.getElementsByTagName("script")),a=0;a<r.length;a++){var s=r[a],l=s.src||s.getAttribute("src");if(l){for(var c=s.attributes,u=0,d=c.length;u<d;u++){var h=c[u];0===h.name.indexOf("data-ace-")&&(n[h.name.replace(/^data-ace-/,"").replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=h.value)}s=l.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);s&&(i=s[1])}}for(t in i&&(n.base=n.base||i,n.packaged=!0),n.basePath=n.base,n.workerPath=n.workerPath||n.base,n.modePath=n.modePath||n.base,n.themePath=n.themePath||n.base,delete n.base,n)void 0!==n[t]&&g.set(t,n[t])}}p("./lib/fixoldbrowsers");var g=p("./config"),m=(g.setLoader(function(e,t){p([e],function(e){t(null,e)})}),function(){return this||"undefined"!=typeof window&&window}());f.exports=function(e){g.init=t,g.$require=p,e.require=p,"function"==typeof define&&(e.define=define)}}),define("ace/range",["require","exports","module"],function(e,t,n){r.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},r.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},r.prototype.contains=function(e,t){return 0==this.compare(e,t)},r.prototype.compareRange=function(e){var t=e.end,e=e.start,t=this.compare(t.row,t.column);return 1==t?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},r.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},r.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},r.prototype.intersects=function(e){e=this.compareRange(e);return-1==e||0==e||1==e},r.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},r.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},r.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},r.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},r.prototype.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},r.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},r.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},r.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:t<this.start.column?-1:t>this.end.column?1:0},r.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},r.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},r.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},r.prototype.clipRows=function(e,t){var n,i;return this.end.row>t?n={row:t+1,column:0}:this.end.row<e&&(n={row:e,column:0}),this.start.row>t?i={row:t+1,column:0}:this.start.row<e&&(i={row:e,column:0}),r.fromPoints(i||this.start,n||this.end)},r.prototype.extend=function(e,t){var n,i,o=this.compare(e,t);return 0==o?this:(-1==o?n={row:e,column:t}:i={row:e,column:t},r.fromPoints(n||this.start,i||this.end))},r.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},r.prototype.isMultiLine=function(){return this.start.row!==this.end.row},r.prototype.clone=function(){return r.fromPoints(this.start,this.end)},r.prototype.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},r.prototype.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),e=e.documentToScreenPosition(this.end);return new r(t.row,t.column,e.row,e.column)},r.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t};var i=r;function r(e,t,n,i){this.start={row:e,column:t},this.end={row:n,column:i}}i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i}),define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t,n){var r=e("./oop"),i=(()=>{var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1}
13,FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",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:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.PRINTABLE_KEYS[173]="-",n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete;for(var i=["cmd","ctrl","alt","shift"],o=Math.pow(2,i.length);o--;)n.KEY_MODS[o]=i.filter(function(e){return o&n.KEY_MODS[e]}).join("-")+"-";return n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n})();r.mixin(t,i),(t.default=t).keyCodeToString=function(e){var t=i[e];return(t="string"!=typeof t?String.fromCharCode(e):t).toLowerCase()}}),define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,d,t){function o(){if(null==n){n=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){return n={passive:!1},!0}})}catch(e){}}return n}function r(e,t,n){this.elem=e,this.type=t,this.callback=n}function a(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}function s(){u=Object.create(null)}var n,l,c=e("./keys"),h=e("./useragent"),u=null,p=0,f=(r.prototype.destroy=function(){g(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0},d.addListener=function(e,t,n,i){e.addEventListener(t,n,o()),i&&i.$toDestroy.push(new r(e,t,n))}),g=d.removeListener=function(e,t,n){e.removeEventListener(t,n,o())};d.stopEvent=function(e){return d.stopPropagation(e),d.preventDefault(e),!1},d.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},d.preventDefault=function(e){e.preventDefault&&e.preventDefault()},d.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||h.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},d.capture=function(e,t,n){function i(e){t&&t(e),n&&n(e),g(o,"mousemove",t),g(o,"mouseup",i),g(o,"dragstart",i)}var o=e&&e.ownerDocument||document;return f(o,"mousemove",t),f(o,"mouseup",i),f(o,"dragstart",i),i},d.addMouseWheelListener=function(e,i,t){f(e,"wheel",function(e){var t=e.deltaX||0,n=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.15*t,e.wheelY=.15*n;break;case e.DOM_DELTA_LINE:e.wheelX=15*t,e.wheelY=15*n;break;case e.DOM_DELTA_PAGE:e.wheelX=150*t,e.wheelY=150*n}i(e)},t)},d.addMultiMouseDownListener=function(e,n,i,o,t){function r(e){var t;if(0!==d.getButton(e)?c=0:1<e.detail&&!(4<++c)||(c=1),h.isIE&&(t=5<Math.abs(e.clientX-a)||5<Math.abs(e.clientY-s),l&&!t||(c=1),l&&clearTimeout(l),l=setTimeout(function(){l=null},n[c-1]||600),1==c)&&(a=e.clientX,s=e.clientY),e._clicks=c,i[o]("mousedown",e),4<c)c=0;else if(1<c)return i[o](u[c],e)}var a,s,l,c=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};(e=Array.isArray(e)?e:[e]).forEach(function(e){f(e,"mousedown",r,t)})},d.getModifierString=function(e){return c.KEY_MODS[a(e)]},d.addCommandKeyListener=function(e,n,t){var i=null;f(e,"keydown",function(e){u[e.keyCode]=(u[e.keyCode]||0)+1;var t=((e,t,n)=>{var i,o=a(t);if(!h.isMac&&u){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(o|=8),u.altGr){if(3==(3&o))return;u.altGr=0}18!==n&&17!==n||(i=t.location,17===n&&1===i?1==u[n]&&(p=t.timeStamp):18===n&&3===o&&2===i&&t.timeStamp-p<50&&(u.altGr=!0))}if(n in c.MODIFIER_KEYS&&(n=-1),o||13!==n||3!==t.location||(e(t,o,-n),!t.defaultPrevented)){if(h.isChromeOS&&8&o){if(e(t,o,n),t.defaultPrevented)return;o&=-9}
13return!!(o||n in c.FUNCTION_KEYS||n in c.PRINTABLE_KEYS)&&e(t,o,n)}})(n,e,e.keyCode);return i=e.defaultPrevented,t},t),f(e,"keypress",function(e){i&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(d.stopEvent(e),i=null)},t),f(e,"keyup",function(e){u[e.keyCode]=null},t),u||(s(),f(window,"focus",s))},"object"==typeof window&&window.postMessage&&!h.isOldIE&&(l=1,d.nextTick=function(t,n){n=n||window;function i(e){e.data==o&&(d.stopPropagation(e),g(n,"message",i),t())}var o="zero-timeout-message-"+l++;f(n,"message",i),n.postMessage(o,"*")}),d.$idleBlocked=!1,d.onIdle=function(t,e){return setTimeout(function e(){d.$idleBlocked?setTimeout(e,100):t()},e)},d.$idleBlockId=null,d.blockIdle=function(e){d.$idleBlockId&&clearTimeout(d.$idleBlockId),d.$idleBlocked=!0,d.$idleBlockId=setTimeout(function(){d.$idleBlocked=!1},e||100)},d.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),d.nextFrame=d.nextFrame?d.nextFrame.bind(window):function(e){setTimeout(e,17)}}),define("ace/clipboard",["require","exports","module"],function(e,t,n){var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}}),define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,n){var z=e("../lib/event"),W=e("../config").nls,U=e("../lib/useragent"),q=e("../lib/dom"),V=e("../lib/lang"),Y=e("../clipboard"),K=U.isChrome<18,G=U.isIE,Q=63<U.isChrome,X=e("../lib/keys"),J=X.KEY_MODS,Z=U.isIOS,ee=Z?/\s/:/\n/,te=U.isMobile;t.TextInput=function(e,d){function t(){n=!0,h.blur(),h.focus(),n=!1}function s(){clearTimeout(L),L=setTimeout(function(){c&&(h.style.cssText=c,c=""),d.renderer.$isMousePressed=!1,d.renderer.$keepTextAreaAtCursor&&d.renderer.$moveTextAreaToCursor()},0)}var h=q.createElement("textarea"),r=(h.className="ace_text-input",h.setAttribute("wrap","off"),h.setAttribute("autocorrect","off"),h.setAttribute("autocapitalize","off"),h.setAttribute("spellcheck","false"),h.style.opacity="0",e.insertBefore(h,e.firstChild),!1),p=!1,l=!1,f=!1,c="",g=(te||(h.style.fontSize="1px"),!1),n=!1,m="",y=0,v=0,b=0,u=Number.MAX_SAFE_INTEGER,w=Number.MIN_SAFE_INTEGER,x=0;try{var A=document.activeElement===h}catch(e){}this.setNumberOfExtraLines=function(e){u=Number.MAX_SAFE_INTEGER,w=Number.MIN_SAFE_INTEGER,x=e<0?0:e},this.setAriaOptions=function(e){e.activeDescendant?(h.setAttribute("aria-haspopup","true"),h.setAttribute("aria-autocomplete",e.inline?"both":"list"),h.setAttribute("aria-activedescendant",e.activeDescendant)):(h.setAttribute("aria-haspopup","false"),h.setAttribute("aria-autocomplete","both"),h.removeAttribute("aria-activedescendant")),e.role&&h.setAttribute("role",e.role),e.setLabel&&(h.setAttribute("aria-roledescription",W("editor")),d.session)&&(e=d.session.selection.cursor.row,h.setAttribute("aria-label",W("Cursor at row $0",[e+1])))},this.setAriaOptions({role:"textbox"}),z.addListener(h,"blur",function(e){n||(d.onBlur(e),A=!1)},d),z.addListener(h,"focus",function(e){if(!n){if(A=!0,U.isEdge)try{if(!document.hasFocus())return}catch(e){}d.onFocus(e),U.isEdge?setTimeout(k):k()}},d),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:d.renderer.enableKeyboardAccessibility}),c||Q||"browser"==this.$focusScroll)return h.focus({preventScroll:!0});var e=h.style.top;h.style.position="fixed",h.style.top="0px";try{var t=0!=h.getBoundingClientRect().top}catch(e){return}var n=[];if(t)for(var i=h.parentElement;i&&1==i.nodeType;)n.push(i),i.setAttribute("ace_nocontext","true"),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;h.focus({preventScroll:!0}
13),t&&n.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){h.style.position="","0px"==h.style.top&&(h.style.top=e)},0)},this.blur=function(){h.blur()},this.isFocused=function(){return A},d.on("beforeEndOperation",function(){var e=d.curOp,t=e&&e.command&&e.command.name;"insertstring"!=t&&(t=t&&(e.docChanged||e.selectionChanged),l&&t&&(m=h.value="",j()),k())});function C(e,t){for(var n=t,i=1;i<=e-u&&i<2*x+1;i++)n+=d.session.getLine(e-i).length+1;return n}function i(e){B(e,!0)}function o(e){B(e,!1)}function a(e){var t=T(e);Y.pasteCancelled()||("string"==typeof t?(t&&d.onPaste(t,e),U.isIE&&setTimeout(k),z.preventDefault(e)):(h.value="",p=!0))}var k=Z?function(e){var t;!A||r&&!e||f||((t="\n ab"+(e=e||"")+"cde fg\n")!=h.value&&(h.value=m=t),t=4+(e.length||(d.selection.isEmpty()?0:1)),4==y&&v==t||h.setSelectionRange(4,t),y=4,v=t)}:function(){if(!l&&!f&&(A||S)){l=!0;var e=0,t=0,n="";if(d.session){for(var i,o=d.selection,r=o.getRange(),o=o.cursor.row,a=(o===w+1?w=(u=w+1)+2*x:o===u-1?u=(w=u-1)-2*x:(o<u-1||w+1<o)&&(u=x<o?o-x:0,w=x<o?o+x:2*x),[]),s=u;s<=w;s++)a.push(d.session.getLine(s));n=a.join("\n"),e=C(r.start.row,r.start.column),t=C(r.end.row,r.end.column),r.start.row<u?(i=d.session.getLine(u-1),e=r.start.row<u-1?0:e,t+=i.length+1,n=i+"\n"+n):r.end.row>w?(i=d.session.getLine(w+1),t=r.end.row>w+1?i.length:r.end.column,t+=n.length+1,n=n+"\n"+i):te&&0<o&&(n="\n"+n,t+=1,e+=1),400<n.length&&(e<400&&t<400?n=n.slice(0,400):(n="\n",e==t?e=t=0:(e=0,t=1)));r=n+"\n\n";r!=m&&(h.value=m=r,y=v=r.length)}if(S&&(y=h.selectionStart,v=h.selectionEnd),v!=t||y!=e||h.selectionEnd!=v)try{h.setSelectionRange(e,t),y=e,v=t}catch(e){}l=!1}},O=(this.resetSelection=k,A&&d.onFocus(),function(e){return 0===e.selectionStart&&e.selectionEnd>=m.length&&e.value===m&&m&&e.selectionEnd!==v}),_=null,S=(this.setInputHandler=function(e){_=e},!(this.getInputHandler=function(){return _})),E=function(e,t){if(S=S&&!1,p)return k(),e&&d.onPaste(e),p=!1,"";for(var n=h.selectionStart,i=h.selectionEnd,o=y,r=m.length-v,a=e,s=e.length-n,l=e.length-i,c=0;0<o&&m[c]==e[c];)c++,o--;for(a=a.slice(c),c=1;0<r&&m.length-c>y-1&&m[m.length-c]==e[e.length-c];)c++,r--;s-=c-1,l-=c-1;var u=a.length-c+1;return u<0&&(o=-u,u=0),a=a.slice(0,u),t||a||s||o||r||l?(u=!(f=!0),U.isAndroid&&". "==a&&(a="  ",u=!0),a&&!o&&!r&&!s&&!l||g?d.onTextInput(a):d.onTextInput(a,{extendLeft:o,extendRight:r,restoreStart:s,restoreEnd:l}),f=!1,m=e,y=n,v=i,b=l,u?"\n":a):""},P=function(e){if(l)return $();if(e&&e.inputType){if("historyUndo"==e.inputType)return d.execCommand("undo");if("historyRedo"==e.inputType)return d.execCommand("redo")}var e=h.value,t=E(e,!0);(500<e.length||ee.test(t)||te&&y<1&&y==v)&&k()},T=function(e,t,n){var i=e.clipboardData||window.clipboardData;if(i&&!K){var o=G||n?"Text":"text/plain";try{return t?!1!==i.setData(o,t):i.getData(o)}catch(e){if(!n)return T(e,t,!0)}}},B=function(e,t){var n=d.getCopyText();if(!n)return z.preventDefault(e);T(e,n)?(Z&&(k(n),r=n,setTimeout(function(){r=!1},10)),t?d.onCut():d.onCopy(),z.preventDefault(e)):(r=!0,h.value=n,h.select(),setTimeout(function(){r=!1,k(),t?d.onCut():d.onCopy()}))},$=(z.addCommandKeyListener(h,function(e,t,n){if(!l)return d.onCommandKey(e,t,n)},d),z.addListener(h,"select",function(e){l||(r?r=!1:O(h)?(d.selectAll(),k()):te&&h.selectionStart!=y&&k())},d),z.addListener(h,"input",P,d),z.addListener(h,"cut",i,d),z.addListener(h,"copy",o,d),z.addListener(h,"paste",a,d),"oncut"in h&&"oncopy"in h&&"onpaste"in h||z.addListener(e,"keydown",function(e){if((!U.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:o(e);break;case 86:a(e);break;case 88:i(e)}},d),function(){var e;if(l&&d.onCompositionUpdate&&!d.$readOnly)return g?t():void(l.useTextareaForIME?d.onCompositionUpdate(h.value):(e=h.value,E(e),l.markerRange&&(l.context&&(l.markerRange.start.column=l.selectionStart=l.context.compositionStartOffset),l.markerRange.end.column=l.markerRange.start.column+v-l.selectionStart+b)))}),j=function(e){d.onCompositionEnd&&!d.$readOnly&&(l=!1,d.onCompositionEnd(),d.off("mousedown",t),e)&&P()},H=V.delayedCall($,50).schedule.bind(null,null);z.addListener(h,"compositionstart",function(e){l||!d.onCompositionStart||d.$readOnly||(l={},g)||(e.data&&(l.useTextareaForIME=!1),setTimeout($,0),d._signal("compositionStart"),d.on("mousedown",t),(e=d.getSelectionRange()).end.row=e.start.row,e.end.column=e.start.column,l.markerRange=e,l.selectionStart=y,d.onCompositionStart(l),l.useTextareaForIME?(m=h.value="",v=y=0):(h.msGetInputContext&&(l.context=h.msGetInputContext()),h.getInputContext&&(l.context=h.getInputContext())))},d),z.addListener(h,"compositionupdate",$,d),z.addListener(h,"ke
13yup",function(e){27==e.keyCode&&h.value.length<h.selectionStart&&(l||(m=h.value),y=v=-1,k()),H()},d),z.addListener(h,"keydown",H,d),z.addListener(h,"compositionend",j,d),this.getElement=function(){return h},this.setCommandMode=function(e){g=e,h.readOnly=!1},this.setReadOnly=function(e){g||(h.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){S=!0,k(),d._emit("nativecontextmenu",{target:d,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){c=c||h.style.cssText,h.style.cssText=(t?"z-index:100000;":"")+(U.isIE?"opacity:0.1;":"")+"text-indent: -"+(y+v)*d.renderer.characterWidth*.5+"px;";function n(e){q.translate(h,e.clientX-r-2,Math.min(e.clientY-o-2,a))}var t=d.container.getBoundingClientRect(),i=q.computedStyle(d.container),o=t.top+(parseInt(i.borderTopWidth)||0),r=t.left+(parseInt(t.borderLeftWidth)||0),a=t.bottom-o-h.clientHeight-2;n(e),"mousedown"==e.type&&(d.renderer.$isMousePressed=!0,clearTimeout(L),U.isWin)&&z.capture(d.container,n,s)},this.onContextMenuClose=s;function D(e){d.textInput.onContextMenu(e),s()}var L,N,I,M,R;function F(e){var t,n,i,o;document.activeElement!==I||R||l||N.$mouseHandler.isMousePressed||r||(t=I.selectionStart,n=I.selectionEnd,i=null,(o=0)==t?i=X.up:1==t?i=X.home:v<n&&"\n"==m[n]?i=X.end:t<y&&" "==m[t-1]?(i=X.left,o=J.option):t<y||t==y&&v!=y&&t==n?i=X.left:v<n&&2<m.slice(0,n).split("\n").length?i=X.down:v<n&&" "==m[n-1]?(i=X.right,o=J.option):(v<n||n==v&&v!=y&&t==n)&&(i=X.right),t!==n&&(o|=J.shift),i&&(!N.onCommandKey({},o,i)&&N.commands&&(i=X.keyCodeToString(i),o=N.commands.findKeyCommand(o,i))&&N.execCommand(o),y=t,v=n,k("")))}z.addListener(h,"mouseup",D,d),z.addListener(h,"mousedown",function(e){e.preventDefault(),s()},d),z.addListener(d.renderer.scroller,"contextmenu",D,d),z.addListener(h,"contextmenu",D,d),Z&&(N=d,M=null,R=!1,(I=h).addEventListener("keydown",function(e){M&&clearTimeout(M),R=!0},!0),I.addEventListener("keyup",function(e){M=setTimeout(function(){R=!1},100)},!0),document.addEventListener("selectionchange",F),N.on("destroy",function(){document.removeEventListener("selectionchange",F)})),this.destroy=function(){h.parentElement&&h.parentElement.removeChild(h)}},t.$setUserAgentForTests=function(e,t){te=e,Z=t}}),define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,n){function a(e,t){return(e.start.row==e.end.row?2*t.column-e.start.column-e.end.column:e.start.row!=e.end.row-1||e.start.column||e.end.column?2*t.row-e.start.row-e.end.row:t.column-4)<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}var r=e("../lib/useragent"),e=(i.prototype.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition(),i=(this.mousedownEvent=e,this.editor),o=e.getButton();if(0!==o)!i.getSelectionRange().isEmpty()&&1!=o||i.selection.moveToPosition(n),2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault());else{if(this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout)||this.$clickSelection||i.inMultiSelectMode)return this.captureMouse(e),this.startSelect(n,1<e.domEvent._clicks),e.preventDefault();this.setState("focusWait"),this.captureMouse(e)}},i.prototype.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},i.prototype.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);this.$clickSelection&&(e=-1==(e=this.$clickSelection.comparePoint(n))?this.$clickSelection.end:1==e?this.$clickSelection.start:(n=(e=a(this.$clickSelection,n)).cursor,e.anchor),t.selection.setSelectionAnchor(e.row,e.column)),t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},i.prototype.extendSelectionBy=function(e){var t,n,i,o=this.editor,r=o.renderer.screenToTextCoordinates(this.x,this.y),e=o.selection[e](r.row,r.column);this.$clickSelection&&(n=this.$clickSelection.comparePoint(e.start),t=this.$clickSelection.comparePoint(e.end),-1==n&&t<=0?(i=this.$clickSelection.end,e.end.row==r.row&&e.end.column==r.column||(r=e.start)):1==t&&0<=n?(i=this.$clickSelection.start,e.start.row==r.row&&e.start.column==r.column||(r=e.end)):i=-1==n&&1==t?(r=e.end,e.start):(r=(n=a(this.$clickSelection,r)).cursor,n.anchor),o.selection.setSelectionAnchor(i.row,i.column)),o.selection.selectToPosition(r),o.renderer.scrollCursorIntoView()},i.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")}
vendor: 10,556 bytes, line 13
13,i.prototype.focusWait=function(){i=this.mousedownEvent.x,e=this.mousedownEvent.y,n=this.x,t=this.y;var e,t,n=Math.sqrt(Math.pow(n-i,2)+Math.pow(t-e,2)),i=Date.now();(0<n||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},i.prototype.onDoubleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,n=t.session.getBracketRange(e);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},i.prototype.onTripleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,n=(this.setState("selectByLines"),t.getSelectionRange());n.isMultiLine()&&n.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(n.start.row),this.$clickSelection.end=t.selection.getLineRange(n.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},i.prototype.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},i.prototype.onMouseWheel=function(e){var t,n,i,o,r,a,s;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),n=this.$lastScroll,o=(s=(i=e.domEvent.timeStamp)-n.t)?e.wheelX/s:n.vx,r=s?e.wheelY/s:n.vy,s<550&&(o=(o+n.vx)/2,r=(r+n.vy)/2),s=!1,1<=(a=Math.abs(o/r))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(s=!0),(s=a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)?!0:s)?n.allowed=i:i-n.allowed<550&&(Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(r)<=1.5*Math.abs(n.vy)?(s=!0,n.allowed=i):n.allowed=0),n.t=i,n.vx=o,n.vy=r,s?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0},i);function i(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(e){t[e]=this[e]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}e.prototype.selectEnd=e.prototype.selectByLinesEnd,e.prototype.selectAllEnd=e.prototype.selectByLinesEnd,e.prototype.selectByWordsEnd=e.prototype.selectByLinesEnd,t.DefaultHandlers=e}),define("ace/lib/scroll",["require","exports","module"],function(e,t,n){t.preventParentScroll=function(e){e.stopPropagation();var t=e.currentTarget;t.scrollHeight>t.clientHeight||e.preventDefault()}}),define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(e,t,n){var i=this&&this.__extends||(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=e("./lib/dom"),s=(e("./lib/event"),e("./range").Range),r=e("./lib/scroll").preventParentScroll,a="ace_tooltip",e=(d.prototype.$init=function(){return this.$element=o.createElement("div"),this.$element.className=a,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},d.prototype.getElement=function(){return this.$element||this.$init()},d.prototype.setText=function(e){this.getElement().textContent=e},d.prototype.setHtml=function(e){this.getElement().innerHTML=e},d.prototype.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},d.prototype.setClassName=function(e){o.addCssClass(this.getElement(),e)},d.prototype.setTheme=function(e){this.$element.className=a+" "+(e.isDark?"ace_dark ":"")+(e.cssClass||"")},d.prototype.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},d.prototype.hide=function(e){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=a,this.isOpen=!1)},d.prototype.getHeight=function(){return this.getElement().offsetHeight},d.prototype.getWidth=function(){return this.getElement().offsetWidth},d.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},d);u.prototype.addPopup=function(e){this.popups.push(e),this.updatePopups()},u.prototype.removePopup=function(e){e=this.popups.indexOf(e);-1!==e&&(this.popups.splice(e,1),this.updatePopups())},u.prototype.updatePopups=function(){this.popups.sort(function(e,t){return t.priority-e.priority});var t,e,n,i,o=[];try{for(var r=h(this.popups),a=r.next();!a.done;a=r.next()){var s=a.value,l=!0;try{n=void 0;for(var c=h(o),u=c.next();!u.done;u=c.next()){var d=u.value;if(this.doPopupsOverlap(d,s)){l=!1;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}l?o.push(s):s.hide()}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},u.prototype.doPopupsOverlap=function(e,t){e=e.getElement().getBoundingClientRect(),t=t.getElement().getBoundingClientRect();return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top};var l,c=new u;function u(){this.popups=[]}function d(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}t.popupManager=c;i(f,p=t.Tooltip=e),f.prototype.addToEditor=function(e){e.on("mousemove",this.onMouseMove),e.on("mousedown",this.hide),e.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},f.prototype.removeFromEditor=function(e){e.off("mousemove",this.onMouseMove),e.off("mousedown",this.hide),e.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},f.prototype.onMouseMove=function(e,t){this.lastEvent=e,this.lastT=Date.now();var n,t=t.$mouseHandler.isMousePressed;this.isOpen&&(n=this.lastEvent&&this.lastEvent.getDocumentPosition(),this.range&&this.range.contains(n.row,n.column)&&!t&&!this.isOutsideOfText(this.lastEvent)||this.hide()),this.timeout||t||(this.lastEvent=e,this.timeout=setTimeout(this.waitForHover,this.idleTime))},f.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var e=Date.now()-this.lastT;10<this.idleTime-e?this.timeout=setTimeout(this.waitForHover,this.idleTime-e):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},f.prototype.isOutsideOfText=function(e){var t=e.editor,n=e.getDocumentPosition(),i=t.session.getLine(n.row);if(n.column==i.length){i=t.renderer.pixelToScreenCoordinates(e.clientX,e.clientY),e=t.session.documentToScreenPosition(n.row,n.column);if(e.column!=i.column||e.row!=i.row)return!0}return!1},f.prototype.setDataProvider=function(e){this.$gatherData=e},f.prototype.showForRange=function(e,t,n,i){var o,r,a;i&&i!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement()||(i=e.renderer,this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(i.theme)),this.isOpen=!0,this.addMarker(t,e.session),this.range=s.fromPoints(t.start,t.end),e=i.textToScreenCoordinates(t.start.row,t.start.column),t=i.scroller.getBoundingClientRect(),e.pageX<t.left&&(e.pageX=t.left),(t=this.getElement()).innerHTML="",t.appendChild(n),t.style.maxHeight="",t.style.display="block",n=t.clientHeight,o=t.clientWidth,r=window.innerHeight-e.pageY-i.lineHeight,a=!0,e.pageY-n<0&&e.pageY<r&&(a=!1),t.style.maxHeight=(a?e.pageY:r)-10+"px",t.style.top=a?"":e.pageY+i.lineHeight+"px",t.style.bottom=a?window.innerHeight-e.pageY+"px":"",t.style.left=Math.min(e.pageX,window.innerWidth-o-10)+"px")},f.prototype.addMarker=function(e,t){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=t,this.marker=t&&t.addMarker(e,"ace_highlight-marker","text")},f.prototype.hide=function(e){!e&&document.activeElement==this.getElement()||e&&e.target&&("keydown"!=e.type||e.ctrlKey||e.metaKey)&&this.$element.contains(e.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},f.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("wheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},f.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("wheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},f.prototype.onMouseOut=function(e){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,!this.isOpen||!e.relatedTarget||this.getElement().contains(e.relatedTarget)||e&&e.currentTarget.contains(e.relatedTarget)||e.relatedTarget.classList.contains("ace_content")||this.hide()};var p,i=f;function f(e){void 0===e&&(e=document.body);var e=p.call(this,e)||this,t=(e.timeout=void 0,e.lastT=0,e.idleTime=350,e.lastEvent=void 0,e.onMouseOut=e.onMouseOut.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e.waitForHover=e.waitForHover.bind(e),e.hide=e.hide.bind(e),e.getElement());return t.style.whiteSpace="pre-wrap",t.style.pointerEvents="auto",t.addEventListener("mouseout",e.onMouseOut),t.tabIndex=-1,t.addEventListener("blur",function(){t.contains(document.activeElement)||this.hide()}.bind(e)),t.addEventListener("wheel",r),e}t.HoverTooltip=i}),define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(e,t,n){var i,o,r=this&&this.__extends||(i=function(e,t){return(i=Object.
13setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=e("../lib/dom"),d=e("../lib/event"),a=e("../tooltip").Tooltip,s=e("../config").nls,h=(t.GutterHandler=function(i){function o(){n=n&&clearTimeout(n),c.isOpen&&(c.hideTooltip(),s.off("mousewheel",o))}function r(e){c.setPosition(e.x,e.y)}var n,a,s=i.editor,l=s.renderer.$gutterLayer,c=new h(s);i.editor.setDefaultHandler("guttermousedown",function(e){if(s.isFocused()&&0==e.getButton()){var t=l.getRegion(e);if("foldWidgets"!=t){var t=e.getDocumentPosition().row,n=s.session.selection;if(e.getShiftKey())n.selectTo(t,0);else{if(2==e.domEvent.detail)return s.selectAll(),e.preventDefault();i.$clickSelection=s.selection.getLineRange(t)}return i.setState("selectByLines"),i.captureMouse(e),e.preventDefault()}}}),i.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(u.hasCssClass(t,"ace_fold-widget"))return o();c.isOpen&&i.$tooltipFollowsMouse&&r(e),a=e,n=n||setTimeout(function(){n=null,(a&&!i.isMousePressed?()=>{var e=a.getDocumentPosition().row;if(e==s.session.getLength()){var t=s.renderer.pixelToScreenCoordinates(0,a.y).row,n=a.$pos;if(t>s.session.documentToScreenRow(n.row,n.column))return o()}c.showTooltip(e),c.isOpen&&(s.on("mousewheel",o),!i.$tooltipFollowsMouse&&(t=a.getGutterRow(),n=l.$lines.get(t))?(e=n.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),(t=c.getElement().style).left=e.right+"px",t.top=e.bottom+"px"):r(a))}:o)()},50)}),d.addListener(s.renderer.$gutter,"mouseout",function(e){a=null,c.isOpen&&(n=n||setTimeout(function(){n=null,o()},50))},s),s.on("changeSession",o),s.on("input",o)},r(p,o=a),p.prototype.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),r=this.getHeight();n<(e+=15)+o&&(e-=e+o-n),i<(t+=15)+r&&(t-=20+r),a.prototype.setPosition.call(this,e,t)},Object.defineProperty(p,"annotationLabels",{get:function(){return{error:{singular:s("error"),plural:s("errors")},warning:{singular:s("warning"),plural:s("warnings")},info:{singular:s("information message"),plural:s("information messages")}}},enumerable:!1,configurable:!0}),p.prototype.showTooltip=function(e){var t=this.editor.renderer.$gutterLayer,n=t.$annotations[e],i=n?{text:Array.from(n.text),type:Array.from(n.type)}:{text:[],type:[]},o=t.session.getFoldLine(e);if(o&&t.$showFoldedAnnotations){for(var r,a={error:[],warning:[],info:[]},s=e+1;s<=o.end.row;s++)if(t.$annotations[s])for(var l=0;l<t.$annotations[s].text.length;l++){var c=t.$annotations[s].type[l];a[c].push(t.$annotations[s].text[l]),"error"===c?r="error_fold":"warning"===c&&(r="warning_fold")}"error_fold"!==r&&"warning_fold"!==r||(n="".concat(p.annotationsToSummaryString(a)," in folded code."),i.text.push(n),i.type.push(r))}if(0===i.text.length)return this.hide();for(var u={error:[],warning:[],info:[]},d=t.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",s=0;s<i.text.length;s++){var h="<span class='ace_".concat(i.type[s]," ").concat(d,"' aria-label='").concat(p.annotationLabels[i.type[s].replace("_fold","")].singular,"' role=img> </span> ").concat(i.text[s]);u[i.type[s].replace("_fold","")].push(h)}e=[].concat(u.error,u.warning,u.info).join("<br>");this.setHtml(e),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},p.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},p.annotationsToSummaryString=function(e){var t,n,i=[];try{for(var o=l(["error","warning","info"]),r=o.next();!r.done;r=o.next()){var a,s=r.value;e[s].length&&(a=1===e[s].length?p.annotationLabels[s].singular:p.annotationLabels[s].plural,i.push("".concat(e[s].length," ").concat(a)))}}catch(e){t={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i.join(", ")},p);function p(e){var t=o.call(this,e.container)||this;return t.editor=e,t}t.GutterTooltip=h}),define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){var i=e("../lib/event"),o=e("../lib/useragent");function r(e,t){this.speed,this.wheelX,this.wheelY,this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.prop
vendor: 147,328 bytes, line 13
13agationStopped=!1,this.defaultPrevented=!1}r.prototype.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},r.prototype.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},r.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},r.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},r.prototype.getGutterRow=function(){var e=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(e,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},r.prototype.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},r.prototype.getButton=function(){return i.getButton(this.domEvent)},r.prototype.getShiftKey=function(){return this.domEvent.shiftKey},r.prototype.getAccelKey=function(){return o.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},t.MouseEvent=r}),define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,n){function i(t){function e(){var e,t,n,i,o,r,a,s,l=h;h=v.renderer.screenToTextCoordinates(c,u),o=h,r=l,a=Date.now(),s=!r||o.row!=r.row,r=!r||o.column!=r.column,!m||s||r?(v.moveCursorToPosition(o),m=a,y={x:c,y:u}):5<C(y.x,y.y,c,u)?m=null:200<=a-m&&(v.renderer.scrollCursorIntoView(),m=null),s=h,r=l,o=Date.now(),a=v.renderer.layerConfig.lineHeight,l=v.renderer.layerConfig.characterWidth,e=v.renderer.scroller.getBoundingClientRect(),e={x:{left:c-e.left,right:e.right-c},y:{top:u-e.top,bottom:e.bottom-u}},t=Math.min(e.x.left,e.x.right),n=Math.min(e.y.top,e.y.bottom),i={row:s.row,column:s.column},t/l<=2&&(i.column+=e.x.left<e.x.right?-3:2),n/a<=1&&(i.row+=e.y.top<e.y.bottom?-1:1),t=!r||s.row!=r.row,s.row!=i.row||s.column!=i.column&&!t?g?200<=o-g&&v.renderer.scrollCursorIntoView(i):g=o:g=null}function n(){d=v.selection.toOrientedRange(),s=v.session.addMarker(d,"ace_selection",v.getSelectionStyle()),v.clearSelection(),v.isFocused()&&v.renderer.$cursorLayer.setBlinking(!1),clearInterval(l),e(),l=setInterval(e,20),x=0,_.addListener(document,"mousemove",o)}function i(){clearInterval(l),v.session.removeMarker(s),s=null,v.selection.fromOrientedRange(d),v.isFocused()&&!f&&v.$resetCursorStyle(),x=0,m=g=h=d=null,_.removeListener(document,"mousemove",o)}function o(){null==A&&(A=setTimeout(function(){null!=A&&s&&i()},20))}function r(e){e=e.types;return!e||Array.prototype.some.call(e,function(e){return"text/plain"==e||"Text"==e})}function a(e){var t=["copy","copymove","all","uninitialized"],n=S.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return n&&0<=t.indexOf(i)?o="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(i)?o="move":0<=t.indexOf(i)&&(o="copy"),o}var s,c,u,l,d,h,p,f,g,m,y,v=t.editor,b=k.createElement("div"),w=(b.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",b.textContent=" ",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(e){t[e]=this[e]},this),v.on("mousedown",this.onMouseDown.bind(t)),v.container),x=0,A=(this.onDragStart=function(e){var t;if(this.cancelDrag||!w.draggable)return t=this,setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault();d=v.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=v.getReadOnly()?"copy":"copyMove",v.container.appendChild(b),n.setDragImage&&n.setDragImage(b,0,0),setTimeout(function(){v.container.removeChild(b)}),n.clearData(),n.setData("Text",v.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(e){w.draggable=!1,f=!1,this.setState(null),v.getReadOnly()||(e=e.dataTransfer.dropEffect,p||"move"!=e||v.session.remove(v.getSelectionRange()),v.$resetCursorStyle()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!v.getReadOnly()&&r(e.dataTransfer))return c=e.clientX,u=e.clientY,s||n(),x++,e.dataTransfer.dropEffect=p=a(e),_.preventDefault(e)},this.onDragOver=function(e){if(!v.getReadOnly()&&r(e.dataTransfer))return c=e.clientX,u=e.clientY,s||(n(),x++),null!==A&&(A=null),e.dataTransfer.dropEffect=p=a(e),_.preventDefault(e)},this.onDragLeave=function(e){if(--x<=0&&s)return i(),p=null,_.preventDefault(e)},this.onDrop=function(e){if(h){var t=e.dataTransfer;if(f)switch(p){case"move":d=d.contains(h.row,h.column)?{start:h,end:h}:v.moveText(d,h);break;case"copy":d=v.moveText(d,h,!0)}else{t=t.getData("Text");d={start:h,end:v.session.insert(h,t)},v.focus(),p=null}return i(),_.preventDefault(e)}},_.addListener(w,"dragstart",this.onDragStart.bind(t),v),_.addListener(w,"dragend",this.onDragEnd.bind(t),v),_.addListener(w,"dragenter",this.onDragEnter.bind(t),v),_.addListener(w,"dragover",this.onDragOver.bind(t),v),_.addListener(w,"dragleave",this.onDragLeave.bind(t),v),_.addListener(w,"drop",this.onDrop.bind(t),v),null)}function C(e,t,n,i){return Math.sqrt(Math.pow(n-e,2)+Math.pow(i-t,2))}var k=e("../lib/dom"),_=e("../lib/event"),S=e("../lib/useragent");(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),S.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;S.isIE&&"dragReady"==this.state&&3<C(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&t.dragDrop(),"dragWait"===this.state&&0<C(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){var t,n,i;this.$dragEnabled&&(this.mousedownEvent=e,t=this.editor,n=e.inSelection(),i=e.getButton(),1!==(e.domEvent.detail||1)||0!==i||!n||e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey())||(this.mousedownEvent.time=Date.now(),"unselectable"in(i=e.domEvent.target||e.domEvent.srcElement)&&(i.unselectable="on"),t.getDragDelay()?(S.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0))}}).call(i.prototype),t.DragdropHandler=i}),define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,n){var k=e("./mouse_event").MouseEvent,i=e("../lib/event"),s=e("../lib/dom");t.addTouchListeners=function(e,u){function o(){function t(e){var t,n=e.target.getAttribute("action");"more"!=n&&o?("paste"==n?i.readText().then(function(e){u.execCommand(n,e)}):n&&("cut"!=n&&"copy"!=n||(i?i.writeText(u.getCopyText()):document.execCommand("copy")),u.execCommand(n)),a.firstChild.style.display="none",o=!1,"openCommandPalette"!=n&&u.focus()):(o=!o,e=u.getCopyText(),t=u.session.getUndoManager().hasUndo(),a.replaceChild(s.buildDom(o?["span",!e&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],e&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],e&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],i&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],t&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),a.firstChild))}var i=window.navigator&&window.navigator.clipboard,o=!1;a=s.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){b="menu",e.stopPropagation(),e.preventDefault(),u.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),t(e)},onclick:t},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],u.container)}function n(){a||o();var e=u.selection.cursor,e=u.renderer.textToScreenCoordinates(e.row,e.column),t=u.renderer.textToScreenCoordinates(0,0).pageX,n=u.renderer.scrollLeft,i=u.container.getBoundingClientRect();a.style.top=e.pageY-i.top-3+"px",e.pageX-i.left<i.width-70?(a.style.left="",a.style.right="10px"):(a.style.right="",a.style.left=t+n-i.left+"px"),a.style.display="",a.firstChild.style.display="none",u.on("input",r)}function r(e){a&&(a.style.display="none"),u.off("input",r)}function d(){m=null,clearTimeout(m);var e=u.selection.getRange(),t=e.contains(y.row,y.column);!e.isEmpty()&&t||(u.selection.moveToPosition(y),u.selection.selectWord()),b="wait",n()}var h,p,f,g,m,t,y,v,a,b="scroll",w=0,x=0,A=0,C=0;i.addListener(e,"contextmenu",function(e){v&&u.textInput.getElement().focus()},u),i.addListener(e,"touchstart",function(e){var t=e.touches;if(m||1<t.length)clearTimeout(m),m=null,f=-1,b="zoom";else{v=u.$mouseHandler.isMousePressed=!0;var n=u.renderer.layerConfig.lineHeight,i=u.renderer.layerConfig.lineHeight,o=e.timeStamp,r=(g=o,t[0]),a=r.clientX,r=r.clientY,a=(Math.abs(h-a)+Math.abs(p-r)>n&&(f=-1),h=e.clientX=a,p=e.clientY=r,A=C=0,new k(e,u));if(y=a.getDocumentPosition(),o-f<500&&1==t.length&&!w)x++,e.preventDefault(),e.button=0,m=null,clearTimeout(m),u.selection.moveToPosition(y),(r=2<=x?u.selection.getLineRange(y.row):u.session.getBracketRange(y))&&!r.isEmpty()?u.selection.setRange(r):u.selection.selectWord(),b="wait";else{x=0;var a=u.selection.cursor,t=u.selection.isEmpty()?a:u.selection.anchor,r=u.renderer.$cursorLayer.getPixelPosition(a,!0),a=u.renderer.$cursorLayer.getPixelPosition(t,!0),t=u.renderer.scroller.getBoundingClientRect(),s=u.renderer.layerConfig.offset,l=u.renderer.scrollLeft,c=function(e,t){return(e/=i)*e+(t=t/n-.75)*t};if(e.clientX<t.left)return void(b="zoom");r=c(e.clientX-t.left-r.left+l,e.clientY-t.top-r.top+s),c=c(e.clientX-t.left-a.left+l,e.clientY-t.top-a.top+s);r<3.5&&c<3.5&&(b=c<r?"cursor":"anchor"),b=c<3.5?"anchor":r<3.5?"cursor":"scroll",m=setTimeout(d,450)}f=o}},u),i.addListener(e,"touchend",function(e){v=u.$mouseHandler.isMousePressed=!1,t&&clearInterval(t),"zoom"==b?(b="",w=0):(m?(u.selection.moveToPosition(y),w=0,n):"scroll"==b?(w+=60,t=setInterval(function(){w--<=0&&(clearInterval(t),t=null),Math.abs(A)<.01&&(A=0),Math.abs(C)<.01&&(C=0),w<20&&(A*=.9),w<20&&(C*=.9);var e=u.session.getScrollTop();u.renderer.scrollBy(10*A,10*C),e==u.session.getScrollTop()&&(w=0)},10),r):n)(),clearTimeout(m),m=null},u),i.addListener(e,"touchmove",function(e){m&&(clearTimeout(m),m=null);var t=e.touches;if(!(1<t.length||"zoom"==b)){var t=t[0],n=h-t.clientX,i=p-t.clientY;if("wait"==b){if(!(4<n*n+i*i))return e.preventDefault();b="cursor"}h=t.clientX,p=t.clientY,e.clientX=t.clientX,e.clientY=t.clientY;var t=e.timeStamp,o=t-g;g=t,"scroll"==b?((t=new k(e,u)).speed=1,t.wheelX=n,t.wheelY=i,10*Math.abs(n)<Math.abs(i)&&(n=0),10*Math.abs(i)<Math.abs(n)&&(i=0),0!=o&&(A=n/o,C=i/o),u._emit("mousewheel",t),t.propagationStopped||(A=C=0)):(n=new k(e,u).getDocumentPosition(),"cursor"==b?u.selection.moveCursorToPosition(n):"anchor"==b&&u.selection.setSelectionAnchor(n.row,n.column),u.renderer.scrollCursorIntoView(n),e.preventDefault())}},u)}}),define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],function(e,t,n){var u=e("../lib/event"),d=e("../lib/useragent"),r=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,h=e("./mouse_event").MouseEvent,s=e("./dragdrop_handler").DragdropHandler,l=e("./touch_handler").addTouchListeners,e=e("../config"),i=(o.prototype.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new h(t,this.editor))},o.prototype.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new h(t,this.editor))},o.prototype.onMouseWheel=function(e,t){var n=new h(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},o.prototype.setState=function(e){this.state=e},o.prototype.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;function n(e){if(e)return d.isWebKit&&!e.which&&s.releaseMouse?s.releaseMouse():(s.x=e.clientX,s.y=e.clientY,t&&t(e),s.mouseEvent=new h(e,s.editor),void(s.$mouseMoved=!0))}function i(e){r.off("beforeEndOperation",l),clearInterval(c),r.session&&o(),s[s.state+"End"]&&s[s.state+"End"](e),s.state="",s.isMousePressed=a.$isMousePressed=!1,a.$keepTextAreaAtCursor&&a.$moveTextAreaToCursor(),s.$onCaptureMouseMove=s.releaseMouse=null,e&&s.onMouseEvent("mouseup",e),r.endOperation()}function o(){s[s.state]&&s[s.state](),s.$mouseMoved=!1}var r=this.editor,a=this.editor.renderer,s=(a.$isMousePressed=!0,this);if(d.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){i(e)});var l=function(e){s.releaseMouse&&r.curOp.command.name&&r.curOp.selectionChanged&&(s[s.state+"End"]&&s[s.state+"End"](),s.state="",s.releaseMouse())},c=(r.on("beforeEndOperation",l),r.startOperation({command:{name:"mouse"}}),s.$onCaptureMouseMove=n,s.releaseMouse=u.capture(this.editor.container,n,i),setInterval(o,20))},o.prototype.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&u.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)},o.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},o);function o(i){this.$dragDelay,this.$dragEnabled,this.$mouseMoved,this.mouseEvent,this.$focusTimeout;function e(e){document.hasFocus&&document.hasFocus()&&(i.isFocused()||document.activeElement!=(i.textInput&&i.textInput.getElement()))||window.focus(),i.focus(),setTimeout(function(){i.isFocused()||i.focus()})}var o=this,t=(this.editor=i,new r(this),new a(this),new s(this),i.renderer.getMouseEventTarget()),n=(u.addListener(t,"click",this.onMouseEvent.bind(this,"click"),i),u.addListener(t,"mousemove",this.onMouseMove.bind(this,"mousemove"),i),u.addMultiMouseDownListener([t,i.renderer.scrollBarV&&i.renderer.scrollBarV.inner,i.renderer.scrollBarH&&i.renderer.scrollBarH.inner,i.textInput&&i.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",i),u.addMouseWheelListener(i.container,this.onMouseWheel.bind(this,"mousewheel"),i),l(i.container,i),i.renderer.$gutter);u.addListener(n,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),i),u.addListener(n,"click",this.onMouseEvent.bind(this,"gutterclick"),i),u.addListener(n,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),i),u.addListener(n,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),i),u.addListener(t,"mousedown",e,i),u.addListener(n,"mousedown",e,i),d.isIE&&i.renderer.scrollBarV&&(u.addListener(i.renderer.scrollBarV.element,"mousedown",e,i),u.addListener(i.renderer.scrollBarH.element,"mousedown",e,i)),i.on("mousemove",function(e){var t,n;o.state||o.$dragDelay||!o.$dragEnabled||(e=i.renderer.screenToTextCoordinates(e.x,e.y),t=i.session.selection.getRange(),n=i.renderer,!t.isEmpty()&&t.insideStart(e.row,e.column)?n.setCursorStyle("default"):n.setCursorStyle(""))},i)}i.prototype.releaseMouse=null,e.defineOptions(i.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:d.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=i}),define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],function(e,t,n){var i=e("../lib/dom");t.FoldHandler=function(o){o.on("click",function(e){var t=e.getDocumentPosition(),n=o.session,t=n.getFoldAt(t.row,t.column,1),t=(t&&(e.getAccelKey()?n.removeFold(t):n.expandFold(t),e.stop()),e.domEvent&&e.domEvent.target);t&&i.hasCssClass(t,"ace_inline_button")&&i.hasCssClass(t,"ace_toggle_wrap")&&(n.setOption("wrap",!n.getUseWrapMode()),o.renderer.scrollCursorIntoView())}),o.on("gutterclick",function(e){var t,n;"foldWidgets"==o.renderer.$gutterLayer.getRegion(e)&&(t=e.getDocumentPosition().row,(n=o.session).foldWidgets&&n.foldWidgets[t]&&o.session.onFoldWidgetClick(t,e),o.isFocused()||o.focus(),e.stop())}),o.on("gutterdblclick",function(e){var t,n,i;"foldWidgets"==o.renderer.$gutterLayer.getRegion(e)&&(i=e.getDocumentPosition().row,(n=(n=(t=o.session).getParentFoldRangeData(i,!0)).range||n.firstRange)&&(i=n.start.row,(i=t.getFoldAt(i,t.getLine(i).length,1))?t.removeFold(i):(t.addFold("...",n),o.renderer.scrollCursorIntoView({row:n.start.row,column:0}))),e.stop())})}}),define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,n){var o=e("../lib/keys"),l=e("../lib/event");function i(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}i.prototype.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},i.prototype.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},i.prototype.addKeyboardHandler=function(e,t){var n;e&&("function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e),-1!=(n=this.$handlers.indexOf(e))&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n)&&e.attach&&e.attach(this.$editor)},i.prototype.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},i.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},i.prototype.getStatusText=function(){var t=this.$data,n=t.editor;return this.$handlers.map(function(e){return e.getStatusText&&e.getStatusText(n,t)||""}).filter(Boolean).join(" ")},i.prototype.$callKeyboardHandlers=function(e,t,n,i){for(var o,r=!1,a=this.$editor.commands,s=this.$handlers.length;s--&&!((o=this.$handlers[s].handleKeyboard(this.$data,e,t,n,i))&&o.command&&((r="null"==o.command||a.exec(o.command,this.$editor,o.args,i))&&i&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&l.stopEvent(i),r)););return r||-1!=e||(o={command:"insertstring"},r=a.exec("insertstring",this.$editor,t)),r&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),r},i.prototype.onCommandKey=function(e,t,n){var i=o.keyCodeToString(n);return this.$callKeyboardHandlers(t,i,n,e)},i.prototype.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)},t.KeyBinding=i}),define("ace/lib/bidiutil",["require","exports","module"],function(e,l,t){function c(e,t,n,i){var o,r,a,s=g?x:w,l=0,c=-1,u=null,d=null,h=[];if(!i)for(u=0,i=[];u<n;u++)i[u]=f(e[u]);for(m=g,b=v=y=!1,d=0;d<n;d++){if(a=l,h[d]=o=((e,t,n,i)=>{var o,r,a,s=t[i];switch(s){case A:case C:y=!1;case S:case _:return s;case k:return y?_:k;case $:return y=!0,C;case D:return S;case L:return i<1||i+1>=t.length||(o=n[i-1])!=k&&o!=_||(l=t[i+1])!=k&&l!=_?S:(l=y?_:l)==o?l:S;case N:return(o=0<i?n[i-1]:E)==k&&i+1<t.length&&t[i+1]==k?k:S;case I:if(0<i&&n[i-1]==k)return k;if(y)return S;for(a=i+1,r=t.length;a<r&&t[a]==I;)a++;return a<r&&t[a]==k?k:S;case M:for(r=t.length,a=i+1;a<r&&t[a]==M;)a++;if(a<r){var l=e[i],l=1425<=l&&l<=2303||64286==l;if(o=t[a],l&&(o==C||o==$))return C}return i<1||(o=t[i-1])==E?S:n[i-1];case E:return v=!(y=!1),g;case T:return b=!0,S;case R:case O:case B:case j:case P:y=!1;case H:return S}})(e,i,h,d),a=240&(l=s[a][o]),l&=15,t[d]=r=s[l][5],0<a){if(16==a)for(u=c;u<d;u++)t[u]=1;c=-1}if(s[l][6])-1==c&&(c=d);else if(-1<c){for(u=c;u<d;u++)t[u]=r;c=-1}i[d]==E&&(t[d]=0),m|=r}if(b)for(u=0;u<n;u++)if(i[u]==T){t[u]=g;for(var p=u-1;0<=p&&i[p]==D;p--)t[p]=g}}function u(e,t,n){if(!(m<e))if(1!=e||1!=g||v)for(var i,o,r,a,s=n.length,l=0;l<s;){if(t[l]>=e){for(i=l+1;i<s&&t[i]>=e;)i++;for(o=l,r=i-1;o<r;o++,r--)a=n[o],n[o]=n[r],n[r]=a;l=i}l++}else n.reverse()}function f(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?191<t?A:i[t]:5==n?/[\u0591-\u05f4]/.test(e)?C:A:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?M:/[\u0660-\u0669\u066b-\u066c]/.test(e)?_:1642==t?I:/[\u06f0-\u06f9]/.test(e)?k:$:32==n&&t<=8287?o[255&t]:254==n&&65136<=t?$:S}var g=0,m=0,y=!1,v=!1,b=!1,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],x=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],A=0,C=1,k=2,_=3,S=4,E=5,T=6,$=7,D=8,L=9,N=10,I=11,M=12,R=13,O=14,P=15,B=16,j=17,H=18,i=[H,H,H,H,H,H,H,H,H,T,E,T,D,E,H,H,H,H,H,H,H,H,H,H,H,H,H,H,E,E,E,T,D,S,S,I,I,I,S,S,S,S,S,N,L,N,L,L,k,k,k,k,k,k,k,k,k,k,L,S,S,S,S,S,S,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,S,S,S,S,S,S,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,A,S,S,S,S,H,H,H,H,H,H,E,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,L,S,I,I,I,I,S,S,S,S,A,S,S,H,S,S,I,I,k,k,S,A,S,S,S,k,A,S,S,S,S,S],o=[D,D,D,D,D,D,D,D,D,D,D,H,H,H,A,C,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,D,E,R,O,P,B,j,L,I,I,I,I,I,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,L,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,S,D];l.L=A,l.R=C,l.EN=k,l.ON_R=3,l.AN=4,l.R_H=5,l.B=6,l.RLE=7,l.DOT="·",l.doBidiReorder=function(e,t,n){if(e.length<2)return{};var i=e.split(""),o=new Array(i.length),r=new Array(i.length),a=[];g=n?1:0,c(i,a,i.length,t);for(var s=0;s<o.length;o[s]=s,s++);u(2,a,o),u(1,a,o);for(s=0;s<o.length-1;s++)t[s]===_?a[s]=l.AN:a[s]===C&&(t[s]>$&&t[s]<R||t[s]===S||t[s]===H)?a[s]=l.ON_R:0<s&&"ل"===i[s-1]&&/\u0622|\u0623|\u0625|\u0627/.test(i[s])&&(a[s-1]=a[s]=l.R_H,s++);i[i.length-1]===l.DOT&&(a[i.length-1]=l.B),"‫"===i[0]&&(a[0]=l.RLE);for(s=0;s<o.length;s++)r[s]=a[o[s]];return{logicalFromVisual:o,bidiLevels:r}},l.hasBidiCharacters=function(e,t){for(var n=!1,i=0;i<e.length;i++)t[i]=f(e.charAt(i)),n||t[i]!=C&&t[i]!=$&&t[i]!=_||(n=!0);return n},l.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}}),define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],function(e,t,n){var s=e("./lib/bidiutil"),a=e("./lib/lang"),i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;function o(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=s,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=i.test(e.getValue())}o.prototype.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},o.prototype.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&i.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},o.prototype.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;return e=t.length&&0<=(t=this.session.$getRowCacheIndex(t,this.currentRow))?this.session.$docRowCache[t]:e},o.prototype.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,i=this.session.$getRowCacheIndex(t,this.currentRow);0<this.currentRow-e&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===i;)i=n,e++;else e=this.currentRow;return e},o.prototype.updateRowLine=function(e,t){var n,i=(e=void 0===e?this.getDocumentRow():e)===this.session.getLength()-1?this.EOF:this.EOL,o=(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,(!this.session.$useWrapMode||(e=this.session.$wrapData[e])&&(0<(t=void 0===t?this.getSplitIndex():t)&&e.length?(this.wrapIndent=e.indent,this.wrapOffset=this.wrapIndent*this.charWidths[s.L],this.line=t<e.length?this.line.substring(e[t-1],e[t]):this.line.substring(e[e.length-1])):this.line=this.line.substring(0,e[t]),t==e.length))&&(this.line+=this.showInvisibles?i:s.DOT),this.session),r=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(e,t){return"\t"===e||o.isFullWidth(e.charCodeAt(0))?(n="\t"===e?o.getScreenTabSize(t+r):2,r+=n-1,a.stringRepeat(s.DOT,n)):e}),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==s.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},o.prototype.updateBidiMap=function(){var e=[];s.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=s.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},o.prototype.markAsDirty=function(){this.currentRow=null},o.prototype.updateCharacterWidths=function(e){var t;this.characterWidth!==e.$characterSize.width&&(this.fontMetrics=e,t=this.characterWidth=e.$characterSize.width,e=e.$measureCharWidth("ה"),this.charWidths[s.L]=this.charWidths[s.EN]=this.charWidths[s.ON_R]=t,this.charWidths[s.R]=this.charWidths[s.AN]=e,this.charWidths[s.R_H]=.45*e,this.charWidths[s.B]=this.charWidths[s.RLE]=0,this.currentRow=null)},o.prototype.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},o.prototype.setEolChar=function(e){this.EOL=e},o.prototype.setContentWidth=function(e){this.contentWidth=e},o.prototype.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},o.prototype.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),i=e.selection.getSelectionAnchor().row;i<=n.row;i++)t||e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(i).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:i},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(i,0,1)},o.prototype.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=t<e?this.session.getOverwrite()?e:e-1:t,i=s.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!=0&&i++;for(var a=0;a<i;a++)r+=this.charWidths[o[a]];return!this.session.getOverwrite()&&t<e&&o[i]%2==0&&(r+=this.charWidths[o[i]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},o.prototype.getSelections=function(e,t){var n,i=this.bidiMap,o=i.bidiLevels,r=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,d=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var h,p=0;p<o.length;p++)h=i.logicalFromVisual[p],n=o[p],(c=s<=h&&h<l)&&!u?d=a:!c&&u&&r.push({left:d,width:a-d}),a+=this.charWidths[n],u=c;if(c&&p===o.length&&r.push({left:d,width:a-d}),this.isRtlDir)for(var f=0;f<r.length;f++)r[f].left+=this.rtlLineOffset;return r},o.prototype.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,e=Math.max(e,0),n=0,i=0,o=this.bidiMap.bidiLevels,r=this.charWidths[o[i]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);n+r/2<e;){if(n+=r,i===o.length-1){r=0;break}r=this.charWidths[o[++i]]}return 0===(t=0<i&&o[i-1]%2!=0&&o[i]%2==0?(e<n&&i--,this.bidiMap.logicalFromVisual[i]):0<i&&o[i-1]%2==0&&o[i]%2!=0?1+(n<e?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===r&&o[i-1]%2==0||!this.isRtlDir&&0===i&&o[i]%2!=0?1+this.bidiMap.logicalFromVisual[i]:(0<i&&o[i-1]%2!=0&&0!==r&&i--,this.bidiMap.logicalFromVisual[i]))&&this.isRtlDir&&t++,t+this.wrapIndent},t.BidiHandler=o}),define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,n){var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,e=(s.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},s.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},s.prototype.getCursor=function(){return this.lead.getPosition()},s.prototype.setAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},s.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},s.prototype.getSelectionLead=function(){return this.lead.getPosition()},s.prototype.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},s.prototype.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},s.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},s.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},s.prototype.setRange=function(e,t){var n=t?e.end:e.start,t=t?e.start:e.end;this.$setSelection(n.row,n.column,t.row,t.column)},s.prototype.$setSelection=function(e,t,n,i){var o,r;!this.$silent&&(o=this.$isEmpty,r=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,i),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||r)&&this._emit("changeSelection")},s.prototype.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},s.prototype.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},s.prototype.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},s.prototype.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},s.prototype.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},s.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},s.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},s.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},s.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},s.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},s.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},s.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},s.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},s.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},s.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},s.prototype.getWordRange=function(e,t){var n;return void 0===t&&(e=(n=e||this.lead).row,t=n.column),this.session.getWordRange(e,t)},s.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},s.prototype.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},s.prototype.getLineRange=function(e,t){var e="number"==typeof e?e:this.lead.row,n=this.session.getFoldLine(e),n=n?(e=n.start.row,n.end.row):e;return!0===t?new a(e,0,n,this.session.getLine(n).length):new a(e,0,n+1,0)},s.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},s.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},s.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},s.prototype.wouldMoveIntoSoftTab=function(e,t,n){var i=e.column,o=e.column+t;return n<0&&(i=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(i,o).split(" ").length-1==t},s.prototype.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length):(e=this.session.getTabSize(),this.wouldMoveIntoSoftTab(t,e,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-e):this.moveCursorBy(0,-1))},s.prototype.moveCursorRight=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,1))?this.moveCursorTo(e.end.row,e.end.column):this.lead.column==this.doc.getLine(this.lead.row).length?this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0):(e=this.session.getTabSize(),t=this.lead,this.wouldMoveIntoSoftTab(t,e,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,e):this.moveCursorBy(0,1))},s.prototype.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),n=this.session.screenToDocumentPosition(n,0),e=this.session.getDisplayLine(e,null,n.row,n.column).match(/^\s*/);e[0].length==t||this.session.$useEmacsStyleLineStart||(n.column+=e[0].length),this.moveCursorToPosition(n)},s.prototype.moveCursorLineEnd=function(){var e,t=this.lead,t=this.session.getDocumentLastRowColumnPosition(t.row,t.column);this.lead.column==t.column&&(e=this.session.getLine(t.row),t.column==e.length)&&0<(e=e.search(/\s+$/))&&(t.column=e),this.moveCursorTo(t.row,t.column)},s.prototype.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},s.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},s.prototype.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.getFoldAt(e,t,1));o?this.moveCursorTo(o.end.row,o.end.column):(this.session.nonTokenRe.exec(i)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(t)),t>=n.length?(this.moveCursorTo(e,n.length),this.moveCursorRight(),e<this.doc.getLength()-1&&this.moveCursorWordRight()):(this.session.tokenRe.exec(i)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)))},s.prototype.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;(e=this.session.getFoldAt(t,n,-1))?this.moveCursorTo(e.start.row,e.start.column):(null==(e=this.session.getFoldStringAt(t,n,-1))&&(e=this.doc.getLine(t).substring(0,n)),e=o.stringReverse(e),this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(e)&&(n-=this.session.nonTokenRe.lastIndex,e=e.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0?(this.moveCursorTo(t,0),this.moveCursorLeft(),0<t&&this.moveCursorWordLeft()):(this.session.tokenRe.exec(e)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)))},s.prototype.$shortWordEndIndex=function(e){var t,n=0,i=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&i.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,i.test(t)){if(2<n){n--;break}for(;(t=e[n])&&i.test(t);)n++;if(2<n)break}}return o.lastIndex=0,n},s.prototype.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),i=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){for(var r=this.doc.getLength();i=this.doc.getLine(++e),e<r&&/^\s*$/.test(i););/^\s+/.test(i)||(i=""),t=0}o=this.$shortWordEndIndex(i);this.moveCursorTo(e,t+o)},s.prototype.moveCursorShortWordLeft=function(){var e=this.lead.row,t=this.lead.column;if(i=this.session.getFoldAt(e,t,-1))return this.moveCursorTo(i.start.row,i.start.column);var n=this.session.getLine(e).substring(0,t);if(0===t){for(;n=this.doc.getLine(--e),0<e&&/^\s*$/.test(n););t=n.length,/\s+$/.test(n)||(n="")}var i=o.stringReverse(n),i=this.$shortWordEndIndex(i);return this.moveCursorTo(e,t-i)},s.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},s.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},s.prototype.moveCursorBy=function(e,t){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column),o=(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]&&(o=this.session.lineWidgets[this.lead.row],e<0?e-=o.rowsAbove||0:0<e&&(e+=o.rowCount-(o.rowsAbove||0))),this.session.screenToDocumentPosition(i.row+e,i.column,n));0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},s.prototype.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},s.prototype.moveCursorTo=function(e,t,n){var i=this.session.getFoldAt(e,t,1),i=(i&&(e=i.start.row,t=i.start.column),this.$keepDesiredColumnOnChange=!0,this.session.getLine(e));/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?--t:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},s.prototype.moveCursorToScreen=function(e,t,n){e=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(e.row,e.column,n)},s.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},s.prototype.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},s.prototype.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},s.prototype.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},s.prototype.toJSON=function(){var e;return this.rangeCount?e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}):(e=this.getRange()).isBackwards=this.isBackwards(),e},s.prototype.fromJSON=function(e){if(null==e.start){if(this.rangeList&&1<e.length){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},s.prototype.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0},s);function s(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})}e.prototype.setSelectionAnchor=e.prototype.setAnchor,e.prototype.getSelectionAnchor=e.prototype.getAnchor,e.prototype.setSelectionRange=e.prototype.setRange,i.implement(e.prototype,r),t.Selection=e}),define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(e,t,n){var e=e("./lib/report_error").reportError,v=2e3,i=(o.prototype.$setMaxTokenCount=function(e){v=0|e},o.prototype.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;o<r;o++)t[o]&&(i[i.length]={type:n[o],value:t[o]});return i},o.prototype.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],i=this.tokenArray,o=0,r=i.length;o<r;o++)t[o+1]&&(n[n.length]={type:i[o],value:t[o+1]});return n},o.prototype.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,function(e,t){return t?"(?:":e})},o.prototype.createSplitterRegexp=function(e,t){var a,s,l;return"$"!=(e="^"!=(e=-1!=e.indexOf("(?=")&&(a=0,s=!1,l={},e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,n,i,o,r){return s?s="]"!=o:o?s=!0:i?(a==l.stack&&(l.end=r+1,l.stack=-1),a--):n&&(a++,1!=n.length)&&(l.stack=a,l.start=r),e}),null!=l.end)&&/^\)*$/.test(e.substr(l.end))?e.substring(0,l.start)+e.substr(l.end):e).charAt(0)?"^"+e:e).charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},o.prototype.getLineTokens=function(e,t){t&&"string"!=typeof t?"#tmp"===(t=(n=t.slice(0))[0])&&(n.shift(),t=n.shift()):n=[];for(var n,i,o=t||"start",r=this.states[o],a=(r||(r=this.states[o="start"]),this.matchMappings[o]),s=this.regExps[o],l=[],c=s.lastIndex=0,u=0,d={type:null,value:""};i=s.exec(e);){var h,p=a.defaultToken,f=null,g=i[0],m=s.lastIndex;m-g.length>c&&(h=e.substring(c,m-g.length),d.type==p?d.value+=h:(d.type&&l.push(d),d={type:p,value:h}));for(var y=0;y<i.length-2;y++)if(void 0!==i[y+1]){p=(f=r[a[y]]).onMatch?f.onMatch(g,o,n,e):f.token,f.next&&(o="string"==typeof f.next?f.next:f.next(o,n),(r=this.states[o])||(this.reportError("state doesn't exist",o),r=this.states[o="start"]),a=this.matchMappings[o],(s=this.regExps[o]).lastIndex=c=m),f.consumeLineEnd&&(c=m);break}if(g)if("string"==typeof p)f&&!1===f.merge||d.type!==p?(d.type&&l.push(d),d={type:p,value:g}):d.value+=g;else if(p){d.type&&l.push(d);for(d={type:null,value:""},y=0;y<p.length;y++)l.push(p[y])}if(c==e.length)break;if(c=m,u++>v){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)d.type&&l.push(d),d={value:e.substring(c,c+=500),type:"overflow"};o="start",n=[];break}}return d.type&&l.push(d),1<n.length&&n[0]!==o&&n.unshift("#tmp",o),{tokens:l,state:n.length?n:o}},o);function o(e){for(var t in this.splitRegex,this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l<n.length;l++){var c,u,d=n[l];d.defaultToken&&(r.defaultToken=d.defaultToken),d.caseInsensitive&&-1===a.indexOf("i")&&(a+="i"),d.unicode&&-1===a.indexOf("u")&&(a+="u"),null==d.regex||(d.regex instanceof RegExp&&(d.regex=d.regex.toString().slice(1,-1)),c=d.regex,u=new RegExp("(?:("+c+")|(.))").exec("a").length-2,Array.isArray(d.token)?1==d.token.length||1==u?d.token=d.token[0]:u-1!=d.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:d,groupCount:u-1}),d.token=d.token[0]):(d.tokenArray=d.token,d.token=null,d.onMatch=this.$arrayTokens):"function"!=typeof d.token||d.onMatch||(d.onMatch=1<u?this.$applyToken:d.token),1<u&&(c=/\\\d/.test(d.regex)?d.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(u=1,this.removeCapturingGroups(d.regex)),!d.splitRegex)&&"string"!=typeof d.token&&s.push(d),r[o]=l,o+=u,i.push(c),d.onMatch)||(d.onMatch=null)}i.length||(r[0]=0,i.push("$")),s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}}i.prototype.reportError=e,t.Tokenizer=i}),define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(e,t,n){var l=e("../lib/deep_copy").deepCopy,e=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var i=e[n],o=0;o<i.length;o++){var r=i[o];(r.next||r.onMatch)&&("string"==typeof r.next&&0!==r.next.indexOf(t)&&(r.next=t+r.next),r.nextState)&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState)}this.$rules[t+n]=i}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){e="function"==typeof e?(new e).getRules():e;if(i)for(var r=0;r<i.length;r++)i[r]=t+i[r];else for(var a in i=[],e)i.push(t+a);if(this.addRules(e,t),n)for(var s=Array.prototype[o?"push":"unshift"],r=0;r<i.length;r++)s.apply(this.$rules[i[r]],l(n));this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};function d(e,t){return"start"==e&&!t.length||t.unshift(this.nextState,e),this.nextState}function h(e,t){return t.shift(),t.shift()||"start"}this.normalizeRules=function(){var c=0,u=this.$rules;Object.keys(u).forEach(function e(t){var n=u[t];n.processed=!0;for(var i=0;i<n.length;i++){var o=n[i],r=null,a=(Array.isArray(o)&&(r=o,o={}),!o.regex&&o.start&&(o.regex=o.start,o.next||(o.next=[]),o.next.push({defaultToken:o.token},{token:o.token+".end",regex:o.end||o.start,next:"pop"}),o.token=o.token+".start",o.push=!0),o.next||o.push);if(a&&Array.isArray(a)?((l=o.stateName)||("string"!=typeof(l=o.token)&&(l=l[0]||""),u[l]&&(l+=c++)),u[l]=a,e(o.next=l)):"pop"==a&&(o.next=h),o.push&&(o.nextState=o.next||o.push,o.next=d,delete o.push),o.rules)for(var s in o.rules)u[s]?u[s].push&&u[s].push.apply(u[s],o.rules[s]):u[s]=o.rules[s];var l="string"==typeof o?o:o.include;l&&("$self"===l&&(l="start"),r=Array.isArray(l)?l.map(function(e){return u[e]}):u[l]),r&&(a=[i,1].concat(r),o.noEscape&&(a=a.filter(function(e){return!e.next})),n.splice.apply(n,a),i--),o.keywordMap&&(o.token=this.createKeywordMapper(o.keywordMap,o.defaultToken||"text",o.caseInsensitive),delete o.defaultToken)}},this)},this.createKeywordMapper=function(o,t,r,a){var s=Object.create(null);return this.$keywordList=[],Object.keys(o).forEach(function(e){for(var t=o[e].split(a||"|"),n=t.length;n--;){var i=t[n];this.$keywordList.push(i),r&&(i=i.toLowerCase()),s[i]=e}},this),o=null,r?function(e){return s[e.toLowerCase()]||t}:function(e){return s[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(e.prototype),t.TextHighlightRules=e}),define("ace/mode/behaviour",["require","exports","module"],function(e,t,n){var i=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){e=("function"==typeof e?new e:e).getBehaviours(t),this.addBehaviours(e)},this.getBehaviours=function(e){if(!e)return this.$behaviours;for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}}).call(i.prototype),t.Behaviour=i}),define("ace/token_iterator",["require","exports","module","ace/range"],function(e,t,n){var i=e("./range").Range;function o(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);e=e.getTokenAt(t,n);this.$tokenIndex=e?e.index:-1}o.prototype.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},o.prototype.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},o.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},o.prototype.getCurrentTokenRow=function(){return this.$row},o.prototype.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0===n)for(n=0;0<t;)n+=e[--t].value.length;return n},o.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},o.prototype.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new i(this.$row,t,this.$row,t+e.value.length)},t.TokenIterator=o}),define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,n){function h(e){var t=-1;if((l=e.multiSelect&&(t=e.selection.index,l.rangeCount!=e.multiSelect.rangeCount)?{rangeCount:e.multiSelect.rangeCount}:l)[t])return f=l[t];f=l[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function p(e,t,n,i){var o=e.end.row-e.start.row;return{text:n+t+i,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}}var f,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,g=e("../../lib/lang"),a=["text","paren.rparen","rparen","paren","punctuation.operator"],s=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l={},m={'"':'"',"'":"'"},y=function(d){d=d||{},this.add("braces","insertion",function(e,t,n,i,o){var r=n.getCursorPosition(),a=i.doc.getLine(r.row);if("{"==o)return h(n),l=n.getSelectionRange(),""!==(c=i.doc.getTextRange(l))&&"{"!==c&&n.getWrapBehavioursEnabled()?p(l,c,"{","}"):y.isSaneInsertion(n,i)?/[\]\}\)]/.test(a[r.column])||n.inMultiSelectMode||d.braces?(y.recordAutoInsert(n,i,"}"),{text:"{}",selection:[1,1]}):(y.recordMaybeInsert(n,i,"{"),{text:"{",selection:[1,1]}):void 0;if("}"==o){h(n);var s=a.substring(r.column,r.column+1);if("}"==s)if(null!==i.$findOpeningBracket("}",{column:r.column+1,row:r.row})&&y.isAutoInsertedClosing(r,a,o))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==o||"\r\n"==o){h(n);var l="";if(y.isMaybeInsertedClosing(r,a)&&(l=g.stringRepeat("}",f.maybeInsertedBrackets),y.clearMaybeInsertedClosing()),"}"===(s=a.substring(r.column,r.column+1))){var c=i.findMatchingBracket({row:r.row,column:r.column+1},"}");if(!c)return null;var u=this.$getIndent(i.getLine(c.row))}else{if(!l)return void y.clearMaybeInsertedClosing();u=this.$getIndent(a)}o=u+i.getTabString();return{text:"\n"+o+"\n"+u+l,selection:[1,o.length,1,o.length]}}y.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==r){if(h(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;f.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,i,o){if("("==o)return h(n),r=n.getSelectionRange(),""!==(a=i.doc.getTextRange(r))&&n.getWrapBehavioursEnabled()?p(r,a,"(",")"):y.isSaneInsertion(n,i)?(y.recordAutoInsert(n,i,")"),{text:"()",selection:[1,1]}):void 0;if(")"==o){h(n);var r=n.getCursorPosition(),a=i.doc.getLine(r.row),n=a.substring(r.column,r.column+1);if(")"==n)if(null!==i.$findOpeningBracket(")",{column:r.column+1,row:r.row})&&y.isAutoInsertedClosing(r,a,o))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"("==r&&(h(n),")"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("brackets","insertion",function(e,t,n,i,o){if("["==o)return h(n),r=n.getSelectionRange(),""!==(a=i.doc.getTextRange(r))&&n.getWrapBehavioursEnabled()?p(r,a,"[","]"):y.isSaneInsertion(n,i)?(y.recordAutoInsert(n,i,"]"),{text:"[]",selection:[1,1]}):void 0;if("]"==o){h(n);var r=n.getCursorPosition(),a=i.doc.getLine(r.row),n=a.substring(r.column,r.column+1);if("]"==n)if(null!==i.$findOpeningBracket("]",{column:r.column+1,row:r.row})&&y.isAutoInsertedClosing(r,a,o))return y.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,n,i,o){var r=i.doc.getTextRange(o);if(!o.isMultiLine()&&"["==r&&(h(n),"]"==i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o}),this.add("string_dquotes","insertion",function(e,t,n,i,o){var r=i.$mode.$quotes||m;if(1==o.length&&r[o]&&(!this.lineCommentStart||-1==this.lineCommentStart.indexOf(o))){h(n);var a=n.getSelectionRange(),s=i.doc.getTextRange(a);if(""!==s&&(1!=s.length||!r[s])&&n.getWrapBehavioursEnabled())return p(a,s,o,o);if(!s){var r=n.getCursorPosition(),a=i.doc.getLine(r.row),s=a.substring(r.column-1,r.column),n=a.substring(r.column,r.column+1),l=i.getTokenAt(r.row,r.column),c=i.getTokenAt(r.row,r.column+1);if("\\"==s&&l&&/escape/.test(l.type))return null;var u,l=l&&/string|escape/.test(l.type),d=!c||/string|escape/.test(c.type);if(n==o)(u=l!==d)&&/string\.end/.test(c.type)&&(u=!1);else{if(l&&!d)return null;if(l&&d)return null;c=i.$mode.tokenRe,l=(c.lastIndex=0,c.test(s)),d=(c.lastIndex=0,c.test(n)),i=i.$mode.$pairQuotesAfter;if(!(i&&i[o]&&i[o].test(s))&&l||d)return null;if(n&&!/[\s;,.})\]\\]/.test(n))return null;i=a[r.column-2];if(s==o&&(i==o||c.test(i)))return null;u=!0}return{text:u?o+o:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,i,o){var r=i.$mode.$quotes||m,a=i.doc.getTextRange(o);if(!o.isMultiLine()&&r.hasOwnProperty(a)&&(h(n),i.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==a))return o.end.column++,o}),!1!==d.closeDocComment&&this.add("doc comment end","insertion",function(e,t,n,i,o){var r;if("doc-start"===e&&("\n"===o||"\r\n"===o)&&n.selection.isEmpty())return e=n.getCursorPosition(),n=i.doc.getLine(e.row),i=i.doc.getLine(e.row+1),r=this.$getIndent(n),/\s*\*/.test(i)?/^\s*\*/.test(n)?{text:o+r+"* ",selection:[1,3+r.length,1,3+r.length]}:{text:o+r+" * ",selection:[1,3+r.length,1,3+r.length]}:/\/\*\*/.test(n.substring(0,e.column))?{text:o+r+" * "+o+" "+r+"*/",selection:[1,4+r.length,1,4+r.length]}:void 0})};y.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),i=new r(t,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",a)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;e=new r(t,n.row,n.column+1);if(!this.$matchTokenType(e.getCurrentToken()||"text",a))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",s)},y.$matchTokenType=function(e,t){return-1<t.indexOf(e.type||e)},y.recordAutoInsert=function(e,t,n){e=e.getCursorPosition(),t=t.doc.getLine(e.row);this.isAutoInsertedClosing(e,t,f.autoInsertedLineEnd[0])||(f.autoInsertedBrackets=0),f.autoInsertedRow=e.row,f.autoInsertedLineEnd=n+t.substr(e.column),f.autoInsertedBrackets++},y.recordMaybeInsert=function(e,t,n){e=e.getCursorPosition(),t=t.doc.getLine(e.row);this.isMaybeInsertedClosing(e,t)||(f.maybeInsertedBrackets=0),f.maybeInsertedRow=e.row,f.maybeInsertedLineStart=t.substr(0,e.column)+n,f.maybeInsertedLineEnd=t.substr(e.column),f.maybeInsertedBrackets++},y.isAutoInsertedClosing=function(e,t,n){return 0<f.autoInsertedBrackets&&e.row===f.autoInsertedRow&&n===f.autoInsertedLineEnd[0]&&t.substr(e.column)===f.autoInsertedLineEnd},y.isMaybeInsertedClosing=function(e,t){return 0<f.maybeInsertedBrackets&&e.row===f.maybeInsertedRow&&t.substr(e.column)===f.maybeInsertedLineEnd&&t.substr(0,e.column)==f.maybeInsertedLineStart},y.popAutoInsertedClosing=function(){f.autoInsertedLineEnd=f.autoInsertedLineEnd.substr(1),f.autoInsertedBrackets--},y.clearMaybeInsertedClosing=function(){f&&(f.maybeInsertedBrackets=0,f.maybeInsertedRow=-1)},i.inherits(y,o),t.CstyleBehaviour=y}),define("ace/unicode",["require","exports","module"],function(e,t,n){for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,r=[],a=0;a<i.length;a+=2)r.push(o+=i[a]),i[a+1]&&r.push(45,o+=i[a+1]);t.wordChars=String.fromCharCode.apply(null,r)}),define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,n){var s=e("../config"),i=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,r=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),x=e("../lib/lang"),g=e("../token_iterator").TokenIterator,m=e("../range").Range,e=function(){this.HighlightRules=o};(function(){this.$defaultBehaviour=new r,this.tokenRe=new RegExp("^["+a.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,o,n,i){function t(e){for(var t=n;t<=i;t++)e(r.getLine(t),t)}var r=o.doc,a=!0,s=!0,l=1/0,c=o.getTabSize(),u=!1;if(this.lineCommentStart){m=Array.isArray(this.lineCommentStart)?(v=this.lineCommentStart.map(x.escapeRegExp).join("|"),this.lineCommentStart[0]):(v=x.escapeRegExp(this.lineCommentStart),this.lineCommentStart),v=new RegExp("^(\\s*)(?:"+v+") ?"),u=o.getUseSoftTabs();var d=function(e,t){var n,i,o=e.match(v);o&&(n=o[1].length,i=o[0].length,g(e,n,i)||" "!=o[0][i-1]||i--,r.removeInLine(t,n,i))},h=m+" ",p=function(e,t){a&&!/\S/.test(e)||(g(e,l,l)?r.insertInLine({row:t,column:l},h):r.insertInLine({row:t,column:l},m))},f=function(e,t){return v.test(e)},g=function(e,t,n){for(var i=0;t--&&" "==e.charAt(t);)i++;if(i%c!=0)return!1;for(i=0;" "==e.charAt(n++);)i++;return 2<c?i%c!=c-1:i%c==0}}else{if(!this.blockComment)return!1;var m=this.blockComment.start,y=this.blockComment.end,v=new RegExp("^(\\s*)(?:"+x.escapeRegExp(m)+")"),b=new RegExp("(?:"+x.escapeRegExp(y)+")\\s*$"),p=function(e,t){f(e,t)||a&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},y),r.insertInLine({row:t,column:l},m))},d=function(e,t){var n;(n=e.match(b))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(v))&&r.removeInLine(t,n[1].length,n[0].length)},f=function(e,t){if(v.test(e))return!0;for(var n=o.getTokens(t),i=0;i<n.length;i++)if("comment"===n[i].type)return!0}}var w=1/0;t(function(e,t){var n=e.search(/\S/);-1!==n?(n<l&&(l=n),s&&!f(e,t)&&(s=!1)):w>e.length&&(w=e.length)}),l==1/0&&(l=w,s=a=!1),u&&l%c!=0&&(l=Math.floor(l/c)*c),t(s?d:p)},this.toggleBlockComment=function(e,t,n,i){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var r,a,s=(h=new g(t,i.row,i.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(;s&&/comment/.test(s.type);){if(-1!=(p=s.value.indexOf(o.start))){var c=h.getCurrentTokenRow(),u=h.getCurrentTokenColumn()+p,d=new m(c,u,c,u+o.start.length);break}s=h.stepBackward()}for(var h,p,s=(h=new g(t,i.row,i.column)).getCurrentToken();s&&/comment/.test(s.type);){if(-1!=(p=s.value.indexOf(o.end))){var c=h.getCurrentTokenRow(),u=h.getCurrentTokenColumn()+p,f=new m(c,u,c,u+o.end.length);break}s=h.stepForward()}f&&t.remove(f),d&&(t.remove(d),r=d.start.row,a=-o.start.length)}else a=o.start.length,r=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==r&&(l.start.column+=a),l.end.row==r&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e){var n,i,o;e[t]&&(i=(n=e[t]).prototype.$id,(o=s.$modes[i])||(s.$modes[i]=o=new n),s.$modes[t]||(s.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o)}for(var r=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],a=this,t=0;t<r.length;t++)(e=>{var t,n;t=r[e],n=a[t],a[r[e]]=function(){return this.$delegator(t,arguments,n)}})(t)},this.$delegator=function(e,t,n){var i=t[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var o=i[2][i[2].length-1];if(a=this.$modes[o])return a[e].apply(a,[i[1]].concat([].slice.call(t,1)))}i=i[0]||"start"}for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var a,s=i.split(this.$embeds[r]);if(!s[0]&&s[1])return t[0]=s[1],(a=this.$modes[this.$embeds[r]])[e].apply(a,t)}o=n.apply(this,t);return n?o:void 0},this.transformAction=function(e,t,n,i,o){if(this.$behaviour){var r,a=this.$behaviour.getBehaviours();for(r in a)if(a[r][t]){var s=a[r][t].apply(this,arguments);if(s)return s}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(i in t)for(var i,o=t[i],r=0,a=o.length;r<a;r++)if("string"==typeof o[r].token)/keyword|support|storage/.test(o[r].token)&&n.push(o[r].regex);else if("object"==typeof o[r].token)for(var s=0,l=o[r].token.length;s<l;s++)/keyword|support|storage/.test(o[r].token[s])&&(i=o[r].regex.match(/\(.+?\)/g)[s],n.push(i.substr(1,i.length-2)));this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,i){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(e.prototype),t.Mode=e}),define("ace/apply_delta",["require","exports","module"],function(e,t,n){t.applyDelta=function(e,t,n){var i=t.start.row,o=t.start.column,r=e[i]||"";switch(t.action){case"insert":1===t.lines.length?e[i]=r.substring(0,o)+t.lines[0]+r.substring(o):(a=[i,1].concat(t.lines),e.splice.apply(e,a),e[i]=r.substring(0,o)+e[i],e[i+t.lines.length-1]+=r.substring(o));break;case"remove":var a=t.end.column,s=t.end.row;i===s?e[i]=r.substring(0,o)+r.substring(a):e.splice(i,s-i+1,r.substring(0,o)+e[s].substring(a))}}}),define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){function s(e,t,n){n=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&n}var i=e("./lib/oop"),e=e("./lib/event_emitter").EventEmitter,o=(r.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},r.prototype.getDocument=function(){return this.document},r.prototype.onChange=function(e){var t,n,i,o,r,a;e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row||(e=e,t={row:this.row,column:this.column},n=this.$insertRight,i=((a="insert"==e.action)?1:-1)*(e.end.row-e.start.row),o=(a?1:-1)*(e.end.column-e.start.column),r=e.start,a=a?r:e.end,e=s(t,r,n)?{row:t.row,column:t.column}:s(a,t,!n)?{row:t.row+i,column:t.column+(t.row==a.row?o:0)}:{row:r.row,column:r.column},this.setPosition(e.row,e.column,!0))},r.prototype.setPosition=function(e,t,n){n=n?{row:e,column:t}:this.$clipPositionToDocument(e,t);this.row==n.row&&this.column==n.column||(e={row:this.row,column:this.column},this.row=n.row,this.column=n.column,this._signal("change",{old:e,value:n}))},r.prototype.detach=function(){this.document.off("change",this.$onChange)},r.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},r.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},r);function r(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"number"!=typeof t?this.setPosition(t.row,t.column):this.setPosition(t,n)}o.prototype.$insertRight=!1,i.implement(o.prototype,e),t.Anchor=o}),define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,n){var i=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,e=(l.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},l.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},l.prototype.createAnchor=function(e,t){return new s(this,e,t)},l.prototype.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},l.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},l.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},l.prototype.getNewLineMode=function(){return this.$newLineMode},l.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},l.prototype.getLine=function(e){return this.$lines[e]||""},l.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},l.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},l.prototype.getLength=function(){return this.$lines.length},l.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},l.prototype.getLinesForRange=function(e){var t,n;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),n=t.length-1,e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))),t},l.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},l.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},l.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},l.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},l.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},l.prototype.clippedPos=function(e,t){var n=this.getLength(),n=(void 0===e?e=n:e<0?e=0:n<=e&&(e=n-1,t=void 0),this.getLine(e));return null==t&&(t=n.length),{row:e,column:t=Math.min(Math.max(t,0),n.length)}},l.prototype.clonePos=function(e){return{row:e.row,column:e.column}},l.prototype.pos=function(e,t){return{row:e,column:t}},l.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},l.prototype.insertFullLines=function(e,t){var n=0,n=(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),0):(t=[""].concat(t),this.$lines[--e].length);this.insertMergedLines({row:e,column:n},t)},l.prototype.insertMergedLines=function(e,t){var e=this.clippedPos(e.row,e.column),n={row:e.row+t.length-1,column:(1==t.length?e.column:0)+t[t.length-1].length};return this.applyDelta({start:e,end:n,action:"insert",lines:t}),this.clonePos(n)},l.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),e=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})}),this.clonePos(t)},l.prototype.removeInLine=function(e,t,n){t=this.clippedPos(e,t),e=this.clippedPos(e,n);return this.applyDelta({start:t,end:e,action:"remove",lines:this.getLinesForRange({start:t,end:e})},!0),this.clonePos(t)},l.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,i=t<this.getLength()-1,o=n?e-1:e,n=n?this.getLine(o).length:0,r=i?t+1:t,i=i?0:this.getLine(r).length,o=new a(o,n,r,i),n=this.$lines.slice(e,t+1);return this.applyDelta({start:o.start,end:o.end,action:"remove",lines:this.getLinesForRange(o)}),n},l.prototype.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},l.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},l.prototype.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},l.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&2e4<e.lines.length?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},l.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},l.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,i=n.length-t+1,o=e.start.row,r=e.start.column,a=0,s=0;a<i;a=s){s+=t-1;var l=n.slice(a,s);l.push(""),this.applyDelta({start:this.pos(o+a,r),end:this.pos(o+s,r=0),action:e.action,lines:l},!0)}e.lines=n.slice(a),e.start.row=o+a,e.start.column=r,this.applyDelta(e,!0)},l.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},l.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=t||0,r=n.length;o<r;o++)if((e-=n[o].length+i)<0)return{row:o,column:e+n[o].length+i};return{row:r-1,column:e+n[r-1].length+i}},l.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,o=0,r=Math.min(e.row,n.length),a=t||0;a<r;++a)o+=n[a].length+i;return o+e.column},l.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},l);function l(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}e.prototype.$autoNewLine="",e.prototype.$newLineMode="auto",i.implement(e.prototype,r),t.Document=e}),define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){var i=e("./lib/oop"),e=e("./lib/event_emitter").EventEmitter,o=(r.prototype.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},r.prototype.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},r.prototype.fireUpdateEvent=function(e,t){this._signal("update",{data:{first:e,last:t}})},r.prototype.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},r.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},r.prototype.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;0==n?this.lines[t]=null:"remove"==e.action?(this.lines.splice(t,1+n,null),this.states.splice(t,1+n,null)):((e=Array(1+n)).unshift(t,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)),this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},r.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},r.prototype.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},r.prototype.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},r.prototype.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],t=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=t.state+""?(this.states[e]=t.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens},r.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},r);function r(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var s=this;this.$worker=function(){if(s.running){for(var e=new Date,t=s.currentLine,n=-1,i=s.doc,o=t;s.lines[t];)t++;var r=i.getLength(),a=0;for(s.running=!1;t<r;){for(s.$tokenizeRow(t),n=t;t++,s.lines[t];);if(++a%5==0&&20<new Date-e){s.running=setTimeout(s.$worker,20);break}}s.currentLine=t,o<=(n=-1==n?t:n)&&s.fireUpdateEvent(o,n)}}}i.implement(o.prototype,e),t.BackgroundTokenizer=o}),define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(e,t,n){var h=e("./lib/lang"),p=e("./range").Range,e=(i.prototype.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},i.prototype.update=function(e,t,n,i){if(this.regExp)for(var o=i.firstRow,r=i.lastRow,a={},s=o;s<=r;s++){var l=this.cache[s];null==l&&(l=(l=(l=h.getMatchOffsets(n.getLine(s),this.regExp)).length>this.MAX_RANGES?l.slice(0,this.MAX_RANGES):l).map(function(e){return new p(s,e.offset,s,e.offset+e.length)}),this.cache[s]=l.length?l:"");for(var c=l.length;c--;){var u=l[c].toScreenRange(n),d=u.toString();a[d]||(a[d]=!0,t.drawSingleLineMarker(e,u,this.clazz,i))}}},i);function i(e,t,n){void 0===n&&(n="text"),this.setRegexp(e),this.clazz=t,this.type=n}e.prototype.MAX_RANGES=500,t.SearchHighlight=e}),define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,n){function o(e,t){for(var n=t;n--;){var i=e[n];if(i&&!i[0].ignore){for(;n<t-1;){var o=((e,t)=>{for(var n=e.length;n--;)for(var i=0;i<t.length;i++)if(!a(e[n],t[i])){for(;n<e.length;){for(;i--;)a(t[i],e[n]);i=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]})(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return 1}}}function s(e){return{row:e.row,column:e.column}}function i(e){var t;return e=e||this,Array.isArray(e)?e.map(i).join("\n"):(t="",e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(r).join("\n"):r(e.value)),e.start&&(t+=r(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t)}function r(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function a(e,t){var n="insert"==e.action,i="insert"==t.action;if(n&&i)if(0<=g(t.start,e.end))l(t,e,-1);else{if(!(g(t.start,e.start)<=0))return;l(e,t,1)}else if(n&&!i)if(0<=g(t.start,e.end))l(t,e,-1);else{if(!(g(t.end,e.start)<=0))return;l(e,t,-1)}else if(!n&&i)if(0<=g(t.start,e.start))l(t,e,1);else{if(!(g(t.start,e.start)<=0))return;l(e,t,1)}else if(!n&&!i)if(0<=g(t.start,e.start))l(t,e,1);else{if(!(g(t.end,e.start)<=0))return;l(e,t,-1)}return 1}function l(e,t,n){c(e.start,t.start,t.end,n),c(e.end,t.start,t.end,n)}function c(e,t,n,i){e.row==(1==i?t:n).row&&(e.column+=i*(n.column-t.column)),e.row+=i*(n.row-t.row)}function u(e,t){var n=e.lines,i=e.end,o=(e.end=s(t),e.end.row-e.start.row),r=n.splice(o,n.length),o=o?t.column:t.column-e.start.column;return n.push(r[0].substring(0,o)),r[0]=r[0].substr(o),{start:s(t),end:i,lines:r,action:e.action}}function d(e,t){var n;t={start:s((n=t).start),end:s(n.end),action:n.action,lines:n.lines.slice()};for(var i=e.length;i--;){for(var o=e[i],r=0;r<o.length;r++){var a=((e,t)=>{var n,i,o="insert"==e.action,r="insert"==t.action;if(o&&r)g(e.start,t.start)<0?l(t,e,1):l(e,t,1);else if(o&&!r)0<=g(e.start,t.end)?l(e,t,-1):(g(e.start,t.start)<=0||l(e,f.fromPoints(t.start,e.start),-1),l(t,e,1));else if(!o&&r)0<=g(t.start,e.end)?l(t,e,-1):(g(t.start,e.start)<=0||l(t,f.fromPoints(e.start,t.start),-1),l(e,t,1));else if(!o&&!r)if(0<=g(t.start,e.end))l(t,e,-1);else{if(!(g(t.end,e.start)<=0))return g(e.start,t.start)<0&&(e=u(n=e,t.start)),0<g(e.end,t.end)&&(i=u(e,t.end)),c(t.end,e.start,e.end,-1),i&&!n&&(e.lines=i.lines,e.start=i.start,e.end=i.end,i=e),[t,n,i].filter(Boolean);l(e,t,-1)}return[t,e]})(o[r],t);t=a[0],2!=a.length&&(a[2]?(o.splice(r+1,1,a[1],a[2]),r++):a[1]||(o.splice(r,1),r--))}o.length||e.splice(i,1)}}p.prototype.addSession=function(e){this.$session=e},p.prototype.add=function(e,t,n){this.$fromUndo||e!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==t&&this.lastDeltas||(this.lastDeltas=[],(t=this.$undoStack.length)>this.$undoDepth-1&&this.$undoStack.splice(0,t-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev),"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e))},p.prototype.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},p.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},p.prototype.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var o=n[i][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},p.prototype.getSelection=function(e,t){for(var n=this.selections,i=n.length;i--;){var o=n[i];if(o.rev<e)return o=t?n[i+1]:o}},p.prototype.getRevision=function(){return this.$rev},p.prototype.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,i=null,o=0,r=n.length;r--;){var a=n[r][0];if(a.id<t&&!i&&(i=r+1),a.id<=e){o=r+1;break}}return n.slice(o,i)},p.prototype.getChangedRanges=function(e,t){null==t&&this.$rev},p.prototype.getChangedLines=function(e,t){null==t&&this.$rev},p.prototype.undo=function(e,t){this.lastDeltas=null;var n,i=this.$undoStack;if(o(i,i.length))return e=e||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0,n=null,(i=i.pop())&&(n=e.undoChanges(i,t),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,n},p.prototype.redo=function(e,t){if(this.lastDeltas=null,e=e||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){for(var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1),i=this.$redoStack,o=n,r=0;r<o.length;r++)for(var a=o[r],s=0;s<a.length;s++)d(i,a[s]);this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var n=this.$redoStack.pop(),l=null;return n&&(l=e.redoChanges(n,t),this.$undoStack.push(n),this.$syncRev()),this.$fromUndo=!1,l},p.prototype.$syncRev=function(){var e=this.$undoStack,e=e[e.length-1],e=e&&e[0].id||0;this.$redoStackBaseRev=e,this.$rev=e},p.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},p.prototype.canUndo=function(){return 0<this.$undoStack.length},p.prototype.canRedo=function(){return 0<this.$redoStack.length},p.prototype.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},p.prototype.isAtBookmark=function(){return this.$rev===this.mark},p.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},p.prototype.fromJSON=function(e){this.reset(),this.$undoStack=e.$undoStack,this.$redoStack=e.$redoStack},p.prototype.$prettyPrint=function(e){return e?i(e):i(this.$undoStack)+"\n---\n"+i(this.$redoStack)};var h=p;function p(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}h.prototype.hasUndo=h.prototype.canUndo,h.prototype.hasRedo=h.prototype.canRedo,h.prototype.isClean=h.prototype.isAtBookmark,h.prototype.markClean=h.prototype.bookmark;var f=e("./range").Range,g=f.comparePoints;t.UndoManager=h}),define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){var i=e("../range").Range;function o(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];e=t[t.length-1];this.range=new i(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}o.prototype.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},o.prototype.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},o.prototype.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},o.prototype.walk=function(e,t,n){var i,o,r=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<a.length;l++){if(-1==(o=(i=a[l]).range.compareStart(t,n)))return void e(null,t,n,r,s);if(!e(null,i.start.row,i.start.column,r,s)&&e(i.placeholder,i.start.row,i.start.column,r)||0===o)return;s=!i.sameRow,r=i.end.column}e(null,t,n,r,s)},o.prototype.getNextFoldTo=function(e,t){for(var n,i,o=0;o<this.folds.length;o++){if(-1==(i=(n=this.folds[o]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},o.prototype.addRemoveChars=function(e,t,n){var i,o=this.getNextFoldTo(e,t);if(o)if(i=o.fold,"inside"==o.kind&&i.start.column!=t&&i.start.row!=e)window.console&&window.console.log(e,t,i);else if(i.start.row==e){var r,a=(r=this.folds).indexOf(i);for(0===a&&(this.start.column+=n);a<r.length;a++){if((i=r[a]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},o.prototype.split=function(e,t){var n,i,e=this.getNextFoldTo(e,t);return e&&"inside"!=e.kind?(t=e.fold,e=this.folds,n=this.foldData,t=e.indexOf(t),i=e[t-1],this.end.row=i.end.row,this.end.column=i.end.column,i=new o(n,e=e.splice(t,e.length-t)),n.splice(n.indexOf(this)+1,0,i),i):null},o.prototype.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var i=this.foldData;i.splice(i.indexOf(e),1)},o.prototype.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach(function(e){t.push("  "+e.toString())}),t.push("]"),t.join("\n")},o.prototype.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((e-=i.start.column-t)<0)return{row:i.start.row,column:i.start.column+e};if((e-=i.placeholder.length)<0)return i.start;t=i.end.column}return{row:this.end.row,column:this.end.column+e}},t.FoldLine=o}),define("ace/range_list",["require","exports","module","ace/range"],function(e,t,n){var s=e("./range").Range.comparePoints,e=(i.prototype.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var r=i[o],a=s(e,r.end);if(!(0<a))return r=s(e,r.start),0===a?t&&0!==r?-o-2:o:0<r||0===r&&!t?o:-o-1}return-o-1},i.prototype.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t),t=this.pointIndex(e.end,t,n=n<0?-n-1:n);return t<0?t=-t-1:t++,this.ranges.splice(n,t-n,e)},i.prototype.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},i.prototype.substractPoint=function(e){e=this.pointIndex(e);if(0<=e)return this.ranges.splice(e,1)},i.prototype.merge=function(){for(var e=[],t=this.ranges,n=(t=t.sort(function(e,t){return s(e.start,t.start)}))[0],i=1;i<t.length;i++){var o=n,n=t[i],r=s(o.end,n.start);r<0||(0!=r||o.isEmpty()||n.isEmpty())&&(s(o.end,n.end)<0&&(o.end.row=n.end.row,o.end.column=n.end.column),t.splice(i,1),e.push(n),n=o,i--)}return this.ranges=t,e},i.prototype.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},i.prototype.containsPoint=function(e){return 0<=this.pointIndex(e)},i.prototype.rangeAtPoint=function(e){e=this.pointIndex(e);if(0<=e)return this.ranges[e]},i.prototype.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];for(var e=this.pointIndex({row:e,column:0}),i=this.pointIndex({row:t,column:0},e=e<0?-e-1:e),o=(i<0&&(i=-i-1),[]),r=e;r<i;r++)o.push(n[r]);return o},i.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},i.prototype.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},i.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},i.prototype.$onChange=function(e){for(var t=e.start,n=e.end,i=t.row,o=n.row,r=this.ranges,a=0,s=r.length;a<s&&!((u=r[a]).end.row>=i);a++);if("insert"==e.action)for(var l=o-i,c=-t.column+n.column;a<s;a++){if((u=r[a]).start.row>i)break;u.start.row==i&&u.start.column>=t.column&&(u.start.column==t.column&&this.$bias<=0||(u.start.column+=c,u.start.row+=l)),u.end.row==i&&u.end.column>=t.column&&(u.end.column==t.column&&this.$bias<0||(u.end.column==t.column&&0<c&&a<s-1&&u.end.column>u.start.column&&u.end.column==r[a+1].start.column&&(u.end.column-=c),u.end.column+=c,u.end.row+=l))}else for(var u,l=i-o,c=t.column-n.column;a<s;a++){if((u=r[a]).start.row>o)break;u.end.row<o&&(i<u.end.row||i==u.end.row&&t.column<u.end.column)?(u.end.row=i,u.end.column=t.column):u.end.row==o?u.end.column<=n.column?(l||u.end.column>t.column)&&(u.end.column=t.column,u.end.row=t.row):(u.end.column+=c,u.end.row+=l):u.end.row>o&&(u.end.row+=l),u.start.row<o&&(i<u.start.row||i==u.start.row&&t.column<u.start.column)?(u.start.row=i,u.start.column=t.column):u.start.row==o?u.start.column<=n.column?(l||u.start.column>t.column)&&(u.start.column=t.column,u.start.row=t.row):(u.start.column+=c,u.start.row+=l):u.start.row>o&&(u.start.row+=l)}if(0!=l&&a<s)for(;a<s;a++)(u=r[a]).start.row+=l,u.end.row+=l},i);function i(){this.ranges=[],this.$bias=1}e.prototype.comparePoints=s,t.RangeList=e}),define("ace/edit_session/fold",["require","exports","module","ace/range_list"],function(e,t,n){function d(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function i(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}var o,r,a=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),e=e("../range_list").RangeList,a=(a(s,o=e),s.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},s.prototype.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(e){e.setFoldLine(t)})},s.prototype.clone=function(){var t=new s(this.range.clone(),this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},s.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){r=e,a=this.start,d(r.start,a),d(r.end,a);for(var t=e.start.row,n=e.start.column,i=0,o=-1;i<this.subFolds.length&&1==(o=this.subFolds[i].range.compare(t,n));i++);var r=this.subFolds[i],a=0;if(0==o){if(r.range.containsRange(e))return r.addSubFold(e);a=1}for(var t=e.range.end.row,n=e.range.end.column,s=i,o=-1;s<this.subFolds.length&&1==(o=this.subFolds[s].range.compare(t,n));s++);0==o&&s++;for(var l=this.subFolds.splice(i,s-i,e),c=0==o?l.length-1:l.length,u=a;u<c;u++)e.addSubFold(l[u]);return e.setFoldLine(this.foldLine),e}},s.prototype.restoreRange=function(e){return e=e,t=this.start,i(e.start,t),void i(e.end,t);var t},s);function s(e,t){var n=o.call(this)||this;return n.foldLine=null,n.placeholder=t,n.range=e,n.start=e.start,n.end=e.end,n.sameRow=e.start.row==e.end.row,n.subFolds=n.ranges=[],n}t.Fold=a}),define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],function(e,t,n){var c=e("../range").Range,h=e("./fold_line").FoldLine,p=e("./fold").Fold,u=e("../token_iterator").TokenIterator,i=e("../mouse/mouse_event").MouseEvent;t.Folding=function(){this.getFoldAt=function(e,t,n){var i=this.getFoldLine(e);if(!i)return null;for(var o=i.folds,r=0;r<o.length;r++){var a=o[r].range;if(a.contains(e,t)&&(1!=n||!a.isEnd(e,t)||a.isEmpty())&&(-1!=n||!a.isStart(e,t)||a.isEmpty()))return o[r]}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,i=this.$foldData,o=[];t.column+=1,--n.column;for(var r=0;r<i.length;r++){var a=i[r].range.compareRange(e);if(2!=a){if(-2==a)break;for(var s=i[r].folds,l=0;l<s.length;l++){var c=s[l];if(-2==(a=c.range.compareRange(e)))break;if(2!=a){if(42==a)break;o.push(c)}}}}return--t.column,n.column+=1,o},this.getFoldsInRangeList=function(e){var t;return Array.isArray(e)?(t=[],e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)):t=this.getFoldsInRange(e),t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var i=0;i<t[n].folds.length;i++)e.push(t[n].folds[i]);return e},this.getFoldStringAt=function(e,t,n,i){if(!(i=i||this.getFoldLine(e)))return null;for(var o,r={end:{column:0}},a=0;a<i.folds.length;a++){var s,l=(s=i.folds[a]).range.compareEnd(e,t);if(-1==l){o=this.getLine(s.start.row).substring(r.end.column,s.start.column);break}if(0===l)return null;r=s}return o=o||this.getLine(s.start.row).substring(r.end.column),-1==n?o.substring(0,t-r.end.column):1==n?o.substring(t-r.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,i=0;for(-1==(i=t?n.indexOf(t):i)&&(i=0);i<n.length;i++){var o=n[i];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,i=0;for(-1==(i=t?n.indexOf(t):i)&&(i=0);i<n.length;i++){var o=n[i];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,i=t-e+1,o=0;o<n.length;o++){var r=n[o],a=r.end.row,r=r.start.row;if(t<=a){r<t&&(e<=r?i-=t-r:i=0);break}e<=a&&(i-=e<=r?a-r:a-e+1)}return i},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,i=this.$foldData,o=!1,r=(e instanceof p?n=e:(n=new p(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range),n.start.row),e=n.start.column,a=n.end.row,t=n.end.column,s=this.getFoldAt(r,e,1),l=this.getFoldAt(a,t,-1);if(s&&l==s)return s.addSubFold(n);s&&!s.range.isStart(r,e)&&this.removeFold(s),l&&!l.range.isEnd(a,t)&&this.removeFold(l);e=this.getFoldsInRange(n.range);0<e.length&&(this.removeFolds(e),n.collapseChildren||e.forEach(function(e){n.addSubFold(e)}));for(var c=0;c<i.length;c++){var u=i[c];if(a==u.start.row){u.addFold(n),o=!0;break}if(r==u.end.row){if(u.addFold(n),o=!0,!n.sameRow){var d=i[c+1];if(d&&d.start.row==a){u.merge(d);break}}break}if(a<=u.start.row)break}return o||(u=this.$addFoldLine(new h(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(u.start.row,u.start.row):this.$updateRowLengthCache(u.start.row,u.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,i=t.end.row,o=this.$foldData,r=t.folds;1==r.length?o.splice(o.indexOf(t),1):t.range.isEnd(e.end.row,e.end.column)?(r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column):t.range.isStart(e.start.row,e.start.column)?(r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column):e.sameRow?r.splice(r.indexOf(e),1):((r=(o=t.split(e.start.row,e.start.column)).folds).shift(),o.start.row=r[0].start.row,o.start.column=r[0].start.column),this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach(function(e){t.restoreRange(e),this.addFold(e)},this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n;if(null==e)n=new c(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new c(e,0,e,this.getLine(e).length);else if("row"in e)n=c.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach(function(e){i=i.concat(this.unfold(e))},this),i;n=e}for(var i,e=i=this.getFoldsInRangeList(n);1==i.length&&c.comparePoints(i[0].start,n.start)<0&&0<c.comparePoints(i[0].end,n.end);)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(i):this.expandFolds(i),e.length)return e},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){t=this.getFoldLine(e,t);return t?t.end.row:e},this.getRowFoldStart=function(e,t){t=this.getFoldLine(e,t);return t?t.start.row:e},this.getFoldDisplayLine=function(e,t,n,o,r){null==o&&(o=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var a=this.doc,s="";return e.walk(function(e,t,n,i){if(!(t<o)){if(t==o){if(n<r)return;i=Math.max(r,i)}s+=null!=e?e:a.getLine(t).substring(i,n)}},t,n),s},this.getDisplayLine=function(e,t,n,i){var o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,i):(o=this.doc.getLine(e)).substring(i||0,t||o.length)},this.$cloneFoldData=function(){var t=[];return t=this.$foldData.map(function(e){e=e.folds.map(function(e){return e.clone()});return new h(t,e)})},this.toggleFold=function(e){var t=this.selection.getRange();if(t.isEmpty()){var n,i=t.start;if(n=this.getFoldAt(i.row,i.column))return void this.expandFold(n);(o=this.findMatchingBracket(i))?1==t.comparePoint(o)?t.end=o:(t.start=o,t.start.column++,t.end.column--):(o=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==t.comparePoint(o)?t.end=o:t.start=o,t.start.column++):t=this.getCommentFoldRange(i.row,i.column)||t}else{var o=this.getFoldsInRange(t);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(n=o[0])}if((n=n||this.getFoldAt(t.start.row,t.start.column))&&n.range.toString()==t.toString())this.expandFold(n);else{i="...";if(!t.isMultiLine()){if((i=this.getTextRange(t)).length<4)return;i=i.trim().substring(0,2)+".."}this.addFold(i,t)}},this.getCommentFoldRange=function(e,t,n){var i=new u(this,e,t),o=i.getCurrentToken(),r=o&&o.type;if(o&&/^comment|string/.test(r)){"comment"==(r=r.match(/comment|string/)[0])&&(r+="|doc-start|\\.doc");var a=new RegExp(r),r=new c;if(1!=n){for(;(o=i.stepBackward())&&a.test(o.type)&&!/^comment.end/.test(o.type););o=i.stepForward()}if(r.start.row=i.getCurrentTokenRow(),r.start.column=i.getCurrentTokenColumn()+(/^comment.start/.test(o.type)?o.value.length:2),i=new u(this,e,t),-1!=n){var s=-1;do{if(o=i.stepForward(),-1==s){var l=this.getState(i.$row);a.test(l)||(s=i.$row)}else if(i.$row>s)break}while(o&&a.test(o.type)&&!/^comment.start/.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return r.end.row=i.getCurrentTokenRow(),r.end.column=i.getCurrentTokenColumn(),/^comment.end/.test(o.type)||(r.end.column+=o.value.length-2),r}},this.foldAll=function(e,t,n,i){null==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var r,a=e=e||0;a<t;a++)null==o[a]&&(o[a]=this.getFoldWidget(a)),"start"!=o[a]||i&&!i(a)||(r=this.getFoldWidgetRange(a))&&r.isMultiLine()&&r.end.row<=t&&r.start.row>=e&&(a=r.end.row,r.collapseChildren=n,this.addFold("...",r))}},this.foldToLevel=function(e){for(this.foldAll();0<e--;)this.unfold(null,!1)},this.foldAllComments=function(){var o=this;this.foldAll(null,null,null,function(e){for(var t=o.getTokens(e),n=0;n<t.length;n++){var i=t[n];if("text"!=i.type||!/^\s+$/.test(i.value))return!!/comment/.test(i.type)}})},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");this.$foldStyle!=e&&("manual"==(this.$foldStyle=e)&&this.unfold(),e=this.$foldMode,this.$setFolding(null),this.$setFolding(e))},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var i=e-1;0<=i;){var o=n[i];if("start"==(o=null==o?n[i]=this.getFoldWidget(i):o)){var r=this.getFoldWidgetRange(i),a=a||r;if(r&&r.end.row>=e)break}i--}return{range:-1!==i&&r,firstRange:a}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t instanceof i?t.domEvent:t).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,n)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var n,i,o,r;if(this.getFoldWidget)return n=this.getFoldWidget(e),i=this.getLine(e),(i=this.getFoldAt(e,-1==(n="end"===n?-1:1)?0:i.length,n))?(t.children||t.all?this.removeFold(i):this.expandFold(i),i):(n=this.getFoldWidgetRange(e,!0))&&!n.isMultiLine()&&(i=this.getFoldAt(n.start.row,n.start.column,1))&&n.isEqual(i.range)?(this.removeFold(i),i):(t.siblings?((i=this.getParentFoldRangeData(e)).range&&(o=i.range.start.row+1,r=i.range.end.row),this.foldAll(o,r,t.all?1e4:0)):t.children?(r=n?n.end.row:this.getLength(),this.foldAll(e+1,r,t.all?1e4:0)):n&&(t.all&&(n.collapseChildren=1e4),this.addFold("...",n)),n)},this.toggleFoldWidget=function(e){var t,n=this.selection.getCursor().row;n=this.getRowFoldStart(n),!this.$toggleFoldWidget(n,{})&&(t=(t=this.getParentFoldRangeData(n,!0)).range||t.firstRange)&&(n=t.start.row,(n=this.getFoldAt(n,this.getLine(n).length,1))?this.removeFold(n):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;0==n?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+n,null):((e=Array(1+n)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){e=e.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,n){var d=e("../token_iterator").TokenIterator,y=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,n,i=this.getLine(e.row),o=!0,r=i.charAt(e.column-1),a=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(a||(r=i.charAt(e.column),e={row:e.row,column:e.column+1},a=r&&r.match(/([\(\[\{])|([\)\]\}])/),o=!1),!a)return null;if(a[1]){if(!(n=this.$findClosingBracket(a[1],e)))return null;t=y.fromPoints(e,n),o||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(n=this.$findOpeningBracket(a[2],e)))return null;t=y.fromPoints(n,e),o||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),i=/([\(\[\{])|([\)\]\}])/,o=!t&&n.charAt(e.column-1),r=o&&o.match(i);return r||(o=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(i)),r?(t=new y(e.row,e.column-1,e.row,e.column),(n=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e))?[t,new y(n.row,n.column,n.row,n.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,r=new d(this,t.row,t.column),a=r.getCurrentToken();if(a=a||r.stepForward()){n=n||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+");for(var s=t.column-r.getCurrentTokenColumn()-2,l=a.value;;){for(;0<=s;){var c=l.charAt(s);if(c==i){if(0==--o)return{row:r.getCurrentTokenRow(),column:s+r.getCurrentTokenColumn()}}else c==e&&(o+=1);--s}for(;(a=r.stepBackward())&&!n.test(a.type););if(null==a)break;s=(l=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,r=new d(this,t.row,t.column),a=r.getCurrentToken();if(a=a||r.stepForward()){n=n||new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+");for(var s=t.column-r.getCurrentTokenColumn();;){for(var l=a.value,c=l.length;s<c;){var u=l.charAt(s);if(u==i){if(0==--o)return{row:r.getCurrentTokenRow(),column:s+r.getCurrentTokenColumn()}}else u==e&&(o+=1);s+=1}for(;(a=r.stepForward())&&!n.test(a.type););if(null==a)break;s=0}return null}},this.getMatchingTags=function(e){var e=new d(this,e.row,e.column),t=this.$findTagName(e);if(t)return"<"===e.stepBackward().value?this.$findClosingTag(e,t):this.$findOpeningTag(e,t)},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,i=!1;if(t&&-1===t.type.indexOf("tag-name"))for(;(t=i?e.stepBackward():e.stepForward())&&("/>"===t.value?i=!0:-1!==t.type.indexOf("tag-name")&&(n=!0)),t&&!n;);return t},this.$findClosingTag=function(e,t){var n=t.value,i=t.value,o=0,r=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),a=(t=e.stepForward(),new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length)),s=!1;do{var l,c=t;if(t=e.stepForward())if(">"!==t.value||s||(l=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1),s=!0),-1!==t.type.indexOf("tag-name")){if(i===(n=t.value))if("<"===c.value)o++;else if("</"===c.value&&--o<0){e.stepBackward();var u=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),d=(t=e.stepForward(),new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length));if(!(t=e.stepForward())||">"!==t.value)return;var h=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else i===n&&"/>"===t.value&&--o<0&&(h=d=u=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),l=new y(a.end.row,a.end.column,a.end.row,a.end.column+1))}while(t&&0<=o);if(r&&l&&u&&h&&a&&d)return{openTag:new y(r.start.row,r.start.column,l.end.row,l.end.column),closeTag:new y(u.start.row,u.start.column,h.end.row,h.end.column),openTagName:a,closeTagName:d}},this.$findOpeningTag=function(e,t){var n,i=e.getCurrentToken(),o=t.value,r=0,a=e.getCurrentTokenRow(),s=e.getCurrentTokenColumn(),l=new y(a,s,a,s+2),c=(e.stepForward(),new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length));if((t=e.stepForward())&&">"===t.value){var u=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=i,a=e.getCurrentTokenRow(),n=(s=e.getCurrentTokenColumn())+t.value.length,i=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(o===t.value)if("<"===i.value){if(0<++r){for(var d=new y(a,s,a,n),h=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);(t=e.stepForward())&&">"!==t.value;);var p=new y(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===i.value&&r--}else if("/>"===t.value){for(var f=0,g=i;g;){if(-1!==g.type.indexOf("tag-name")&&g.value===o){r--;break}if("<"===g.value)break;g=e.stepBackward(),f++}for(var m=0;m<f;m++)e.stepForward()}}while(i&&r<=0);return h&&p&&l&&u&&d&&c?{openTag:new y(h.start.row,h.start.column,p.end.row,p.end.column),closeTag:new y(l.start.row,l.start.column,u.end.row,u.end.column),openTagName:d,closeTagName:c}:void 0}}}}),define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/undomanager","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,n){function s(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}var i=e("./lib/oop"),o=e("./lib/lang"),r=e("./bidihandler").BidiHandler,a=e("./config"),l=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,u=e("./mode/text").Mode,d=e("./range").Range,h=e("./document").Document,p=e("./background_tokenizer").BackgroundTokenizer,f=e("./search_highlight").SearchHighlight,g=e("./undomanager").UndoManager,m=(y.prototype.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),(this.doc=e).on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},y.prototype.getDocument=function(){return this.doc},y.prototype.$resetRowCache=function(e){var t;e?(t=this.$docRowCache.length,(e=this.$getRowCacheIndex(this.$docRowCache,e)+1)<t&&(this.$docRowCache.splice(e,t),this.$screenRowCache.splice(e,t))):(this.$docRowCache=[],this.$screenRowCache=[])},y.prototype.$getRowCacheIndex=function(e,t){for(var n=0,i=e.length-1;n<=i;){var o=n+i>>1,r=e[o];if(r<t)n=1+o;else{if(!(t<r))return o;i=o-1}}return n-1},y.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},y.prototype.onChangeFold=function(e){e=e.data;this.$resetRowCache(e.start.row)},y.prototype.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},y.prototype.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},y.fromJSON=function(e){"string"==typeof e&&(e=JSON.parse(e));var t=new g,n=(t.$undoStack=e.history.undo,t.$redoStack=e.history.redo,t.mark=e.history.mark,t.$rev=e.history.rev,new y(e.value));return e.folds.forEach(function(e){n.addFold("...",d.fromPoints(e.start,e.end))}),n.setAnnotations(e.annotations),n.setBreakpoints(e.breakpoints),n.setMode(e.mode),n.setScrollLeft(e.scrollLeft),n.setScrollTop(e.scrollTop),n.setUndoManager(t),n.selection.fromJSON(e.selection),n},y.prototype.toJSON=function(){return{annotations:this.$annotations,breakpoints:this.$breakpoints,folds:this.getAllFolds().map(function(e){return e.range}),history:this.getUndoManager(),mode:this.$mode.$id,scrollLeft:this.$scrollLeft,scrollTop:this.$scrollTop,selection:this.selection.toJSON(),value:this.doc.getValue()}},y.prototype.toString=function(){return this.doc.getValue()},y.prototype.getSelection=function(){return this.selection},y.prototype.getState=function(e){return this.bgTokenizer.getState(e)},y.prototype.getTokens=function(e){return this.bgTokenizer.getTokens(e)},y.prototype.getTokenAt=function(e,t){var n=this.bgTokenizer.getTokens(e),i=0;if(null==t)var o=n.length-1,i=this.getLine(e).length;else for(o=0;o<n.length&&!(t<=(i+=n[o].value.length));o++);return(e=n[o])?(e.index=o,e.start=i-e.value.length,e):null},y.prototype.setUndoManager=function(e){var t;this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e?(e.addSession(t=this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)):this.$syncInformUndoManager=function(){}},y.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},y.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},y.prototype.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},y.prototype.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},y.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},y.prototype.setTabSize=function(e){this.setOption("tabSize",e)},y.prototype.getTabSize=function(){return this.$tabSize},y.prototype.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},y.prototype.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},y.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},y.prototype.setOverwrite=function(e){this.setOption("overwrite",e)},y.prototype.getOverwrite=function(){return this.$overwrite},y.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},y.prototype.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},y.prototype.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},y.prototype.getBreakpoints=function(){return this.$breakpoints},y.prototype.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},y.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},y.prototype.setBreakpoint=function(e,t){(t=void 0===t?"ace_breakpoint":t)?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},y.prototype.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},y.prototype.addMarker=function(e,t,n,i){var o=this.$markerId++,e={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!i,id:o};return i?(this.$frontMarkers[o]=e,this._signal("changeFrontMarker")):(this.$backMarkers[o]=e,this._signal("changeBackMarker")),o},y.prototype.addDynamicMarker=function(e,t){var n;if(e.update)return n=this.$markerId++,e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e},y.prototype.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},y.prototype.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},y.prototype.highlight=function(e){var t;this.$searchHighlight||(t=new f(null,"ace_selected-word","text"),this.$searchHighlight=this.addDynamicMarker(t)),this.$searchHighlight.setRegexp(e)},y.prototype.highlightLines=function(e,t,n,i){"number"!=typeof t&&(n=t,t=e),n=n||"ace_step";e=new d(e,0,t,1/0);return e.id=this.addMarker(e,n,"fullLine",i),e},y.prototype.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},y.prototype.getAnnotations=function(){return this.$annotations||[]},y.prototype.clearAnnotations=function(){this.setAnnotations([])},y.prototype.$detectNewLine=function(e){e=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=e?e[1]:"\n"},y.prototype.getWordRange=function(e,t){var n,i=this.getLine(e),o=!1,r=(n=(o=(o=0<t?!!i.charAt(t-1).match(this.tokenRe):o)||!!i.charAt(t).match(this.tokenRe))?this.tokenRe:/^\s+$/.test(i.slice(t-1,t+1))?/\s/:this.nonTokenRe,t);if(0<r){for(;0<=--r&&i.charAt(r).match(n););r++}for(var a=t;a<i.length&&i.charAt(a).match(n);)a++;return new d(e,r,e,a)},y.prototype.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},y.prototype.setNewLineMode=function(e){this.doc.setNewLineMode(e)},y.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},y.prototype.setUseWorker=function(e){this.setOption("useWorker",e)},y.prototype.getUseWorker=function(){return this.$useWorker},y.prototype.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},y.prototype.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[i]&&!n?(this.$onChangeMode(this.$modes[i]),t&&t()):(this.$modeId=i,a.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||((this.$modes[i]=e).$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0))},y.prototype.$onChangeMode=function(e,t){var n,i,o;t||(this.$modeId=e.$id),this.$mode===e||(n=this.$mode,this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker(),void 0!==(i=e.getTokenizer()).on&&(o=this.onReloadTokenizer.bind(this),i.on("update",o)),this.bgTokenizer.setTokenizer(i),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t)||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))},y.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},y.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},y.prototype.getMode=function(){return this.$mode},y.prototype.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},y.prototype.getScrollTop=function(){return this.$scrollTop},y.prototype.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},y.prototype.getScrollLeft=function(){return this.$scrollLeft},y.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},y.prototype.getLineWidgetMaxWidth=function(){var t;return null!=this.lineWidgetsWidth?this.lineWidgetsWidth:(t=0,this.lineWidgets.forEach(function(e){e&&e.screenWidth>t&&(t=e.screenWidth)}),this.lineWidgetWidth=t)},y.prototype.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,o=0,r=this.$foldData[o],a=r?r.start.row:1/0,s=t.length,l=0;l<s;l++){if(a<l){if(s<=(l=r.end.row+1))break;a=(r=this.$foldData[o++])?r.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},y.prototype.getLine=function(e){return this.doc.getLine(e)},y.prototype.getLines=function(e,t){return this.doc.getLines(e,t)},y.prototype.getLength=function(){return this.doc.getLength()},y.prototype.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},y.prototype.insert=function(e,t){return this.doc.insert(e,t)},y.prototype.remove=function(e){return this.doc.remove(e)},y.prototype.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},y.prototype.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var i=e[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},y.prototype.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var i=e[n];"insert"!=i.action&&"remove"!=i.action||this.doc.$safeApplyDelta(i)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},y.prototype.setUndoSelect=function(e){this.$undoSelect=e},y.prototype.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var i,o,r=0;r<e.length;r++){var a=e[r];a.start&&(i?n(a)?(o=a.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=a.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=a.start,-1==i.compare(o.row,o.column)&&(i=d.fromPoints(a.start,a.start))):i=n(a)?d.fromPoints(a.start,a.end):d.fromPoints(a.start,a.start))}return i},y.prototype.replace=function(e,t){return this.doc.replace(e,t)},y.prototype.moveText=function(e,t,n){var i,o,r,a=this.getTextRange(e),s=this.getFoldsInRange(e),t=d.fromPoints(t,t);return n||(this.remove(e),o=e.start.row-e.end.row,(r=o?-e.end.column:e.start.column-e.end.column)&&(t.start.row==e.end.row&&t.start.column>e.end.column&&(t.start.column+=r),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=r),o&&t.start.row>=e.end.row&&(t.start.row+=o,t.end.row+=o)),t.end=this.insert(t.start,a),s.length&&(i=e.start,n=t.start,o=n.row-i.row,r=n.column-i.column,this.addFolds(s.map(function(e){return(e=e.clone()).start.row==i.row&&(e.start.column+=r),e.end.row==i.row&&(e.end.column+=r),e.start.row+=o,e.end.row+=o,e}))),t},y.prototype.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var i=e;i<=t;i++)this.doc.insertInLine({row:i,column:0},n)},y.prototype.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),i=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var r=this.getLine(o);n.start.row=o,n.end.row=o;for(var a=0;a<i&&" "==r.charAt(a);++a);a<i&&"\t"==r.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},y.prototype.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((o=this.getRowFoldStart(e+n))<0)return 0;var i=o-e}else if(0<n){if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;i=o-t}else{e=this.$clipRowToDocument(e);i=(t=this.$clipRowToDocument(t))-e+1}var o=new d(e,0,t,Number.MAX_VALUE),o=this.getFoldsInRange(o).map(function(e){return(e=e.clone()).start.row+=i,e.end.row+=i,e}),n=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,n),o.length&&this.addFolds(o),i},y.prototype.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},y.prototype.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},y.prototype.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},y.prototype.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},y.prototype.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},y.prototype.$clipPositionToDocument=function(e,t){var n;return t=Math.max(0,t),t=e<0?e=0:(n=this.doc.getLength())<=e?this.doc.getLine(e=n-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},y.prototype.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},y.prototype.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},y.prototype.getUseWrapMode=function(){return this.$useWrapMode},y.prototype.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},y.prototype.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange,t=(n.max<0&&(n={min:t,max:t}),this.$constrainWrapLimit(e,n.min,n.max));return t!=this.$wrapLimit&&1<t&&(this.$wrapLimit=t,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},y.prototype.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),e=n?Math.min(n,e):e},y.prototype.getWrapLimit=function(){return this.$wrapLimit},y.prototype.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},y.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},y.prototype.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,i=e.start,o=e.end,r=i.row,a=o.row,s=a-r,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(r,s);var c=this.$foldData,l=this.getFoldsInRange(e);this.removeFolds(l);var u=0;for((p=this.getFoldLine(o.row))&&(p.addRemoveChars(o.row,o.column,i.column-o.column),p.shiftRow(-s),(d=this.getFoldLine(r))&&d!==p&&(d.merge(p),p=d),u=c.indexOf(p)+1);u<c.length;u++)(p=c[u]).start.row>=o.row&&p.shiftRow(-s);a=r}else{var d=Array(s),h=(d.unshift(r,0),t?this.$wrapData:this.$rowLengthCache),c=(h.splice.apply(h,d),this.$foldData),u=0;for((p=this.getFoldLine(r))&&(0==(h=p.range.compareInside(i.row,i.column))?(p=p.split(i.row,i.column))&&(p.shiftRow(s),p.addRemoveChars(a,0,o.column-i.column)):-1==h&&(p.addRemoveChars(r,0,o.column-i.column),p.shiftRow(s)),u=c.indexOf(p)+1);u<c.length;u++)(p=c[u]).start.row>=r&&p.shiftRow(s)}else{var p,s=Math.abs(e.start.column-e.end.column);"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(p=this.getFoldLine(r))&&p.addRemoveChars(r,i.column,s)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,a):this.$updateRowLengthCache(r,a),l},y.prototype.$updateRowLengthCache=function(e,t){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},y.prototype.$updateWrapData=function(e,t){var a,n,s=this.doc.getAllLines(),i=this.getTabSize(),o=this.$wrapData,r=this.$wrapLimit,l=e;for(t=Math.min(t,s.length-1);l<=t;)(n=this.getFoldLine(l,n))?(a=[],n.walk(function(e,t,n,i){var o;if(null!=e){(o=this.$getDisplayTokens(e,a.length))[0]=w;for(var r=1;r<o.length;r++)o[r]=x}else o=this.$getDisplayTokens(s[t].substring(i,n),a.length);a=a.concat(o)}.bind(this),n.end.row,s[n.end.row].length+1),o[n.start.row]=this.$computeWrapSplits(a,r,i),l=n.end.row+1):(a=this.$getDisplayTokens(s[l]),o[l]=this.$computeWrapSplits(a,r,i),l++)},y.prototype.$computeWrapSplits=function(o,e,r){function t(e){for(var t=e-s,n=s;n<e;n++){var i=o[n];12!==i&&2!==i||--t}a.length||(h=(()=>{var e=0;if(0===d)return e;if(u)for(var t=0;t<o.length;t++){var n=o[t];if(n==C)e+=1;else{if(n!=k){if(n==_)continue;break}e+=r}}return c&&!1!==u&&(e+=r),Math.min(e,d)})(),a.indent=h),l+=t,a.push(l),s=e}if(0==o.length)return[];for(var a=[],n=o.length,s=0,l=0,c=this.$wrapAsCode,u=this.$indentedSoftWrap,d=e<=Math.max(2*r,8)||!1===u?0:Math.floor(e/2),h=0;e-h<n-s;){var i=s+e-h;if(o[i-1]>=C&&o[i]>=C)t(i);else if(o[i]==w||o[i]==x){for(;i!=s-1&&o[i]!=w;i--);if(s<i);else{for(i=s+e;i<o.length&&o[i]==x;i++);if(i==o.length)break}t(i)}else{for(var p=Math.max(i-(e-(e>>2)),s-1);p<i&&o[i]<w;)i--;if(c){for(;p<i&&o[i]<w;)i--;for(;p<i&&o[i]==A;)i--}else for(;p<i&&o[i]<C;)i--;p<i?t(++i):(o[i=s+e]==b&&i--,t(i-h))}}return a},y.prototype.$getDisplayTokens=function(e,t){var n,i=[];t=t||0;for(var o=0;o<e.length;o++){var r=e.charCodeAt(o);if(9==r){n=this.getScreenTabSize(i.length+t),i.push(k);for(var a=1;a<n;a++)i.push(_)}else 32==r?i.push(C):39<r&&r<48||57<r&&r<64?i.push(A):4352<=r&&s(r)?i.push(v,b):i.push(v)}return i},y.prototype.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),n=n||0,o=0;o<e.length&&(9==(i=e.charCodeAt(o))?n+=this.getScreenTabSize(n):4352<=i&&s(i)?n+=2:n+=1,!(t<n));o++);return[n,o]},y.prototype.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},y.prototype.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},y.prototype.getRowWrapIndent=function(e){var t;return this.$useWrapMode&&(e=this.screenToDocumentPosition(e,Number.MAX_VALUE),(t=this.$wrapData[e.row]).length)&&t[0]<e.column?t.indent:0},y.prototype.getScreenLastRowColumn=function(e){e=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(e.row,e.column)},y.prototype.getDocumentLastRowColumn=function(e,t){e=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(e)},y.prototype.getDocumentLastRowColumnPosition=function(e,t){e=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(e,Number.MAX_VALUE/10)},y.prototype.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},y.prototype.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},y.prototype.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},y.prototype.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},y.prototype.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};for(var i,o,r,a=0,s=0,l=0,c=0,u=this.$screenRowCache,d=this.$getRowCacheIndex(u,e),h=u.length,p=(r=h&&0<=d?(l=u[d],a=this.$docRowCache[d],e>u[h-1]):!h,this.getLength()-1),f=this.getNextFoldLine(a),g=f?f.start.row:1/0;l<=e&&!(e<l+(c=this.getRowLength(a))||p<=a);)l+=c,g<++a&&(a=f.end.row+1,g=(f=this.getNextFoldLine(a,f))?f.start.row:1/0),r&&(this.$docRowCache.push(a),this.$screenRowCache.push(l));if(f&&f.start.row<=a)i=this.getFoldDisplayLine(f),a=f.start.row;else{if(l+c<=e||p<a)return{row:p,column:this.getLine(p).length};i=this.getLine(a),f=null}d=0,u=Math.floor(e-l);return this.$useWrapMode&&(h=this.$wrapData[a])&&(o=h[u],0<u)&&h.length&&(d=h.indent,s=h[u-1]||h[h.length-1],i=i.substring(s)),void 0!==n&&this.$bidiHandler.isBidiRow(l+u,a,u)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(i,t-d)[1],this.$useWrapMode&&o<=s&&(s=o-1),f?f.idxToPosition(s):{row:a,column:s}},y.prototype.documentToScreenPosition=function(e,t){var n=void 0===t?this.$clipPositionToDocument(e.row,e.column):this.$clipPositionToDocument(e,t),i=(e=n.row,t=n.column,0),n=null;(s=this.getFoldAt(e,t,1))&&(e=s.start.row,t=s.start.column);for(var o,r,a=0,s=this.$docRowCache,l=this.$getRowCacheIndex(s,e),c=s.length,u=(r=c&&0<=l?(a=s[l],i=this.$screenRowCache[l],e>s[c-1]):!c,this.getNextFoldLine(a)),d=u?u.start.row:1/0;a<e;){if(d<=a){if(e<(o=u.end.row+1))break;d=(u=this.getNextFoldLine(o,u))?u.start.row:1/0}else o=a+1;i+=this.getRowLength(a),a=o,r&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var h="",n=u&&d<=a?(h=this.getFoldDisplayLine(u,e,t),u.start.row):(h=this.getLine(e).substring(0,t),e),l=0;if(this.$useWrapMode){var p=this.$wrapData[n];if(p){for(var f=0;h.length>=p[f];)i++,f++;h=h.substring(p[f-1]||0,h.length),l=0<f?p.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(i+=this.lineWidgets[a].rowsAbove),{row:i,column:l+this.$getStringScreenWidth(h)[0]}},y.prototype.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},y.prototype.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},y.prototype.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,o=0,r=(t=this.$foldData[o++])?t.start.row:1/0;i<n;){var a=this.$wrapData[i];e+=a?a.length+1:1,r<++i&&(i=t.end.row+1,r=(t=this.$foldData[o++])?t.start.row:1/0)}else for(var e=this.getLength(),s=this.$foldData,o=0;o<s.length;o++)e-=(t=s[o]).end.row-t.start.row;return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},y.prototype.$setFontMetrics=function(r){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,t,n){if(0===t)return[0,0];var i,o;for(t=t||1/0,n=n||0,o=0;o<e.length&&!(t<(n+="\t"===(i=e.charAt(o))?this.getScreenTabSize(n):r.getCharacterWidth(i)));o++);return[n,o]})},y.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},y);function y(e,t){this.doc,this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++y.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new p((new u).getTokenizer(),this);var n=this;this.bgTokenizer.on("update",function(e){n._signal("tokenizerUpdate",e)}),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new h(e)),this.setDocument(e),this.selection=new c(this),this.$bidiHandler=new r(this),a.resetOptions(this),this.setMode(t),a._signal("session",this),this.destroyed=!1}m.$uid=0,m.prototype.$modes=a.$modes,m.prototype.getValue=m.prototype.toString,m.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},m.prototype.$overwrite=!1,m.prototype.$mode=null,m.prototype.$modeId=null,m.prototype.$scrollTop=0,m.prototype.$scrollLeft=0,m.prototype.$wrapLimit=80,m.prototype.$useWrapMode=!1,m.prototype.$wrapLimitRange={min:null,max:null},m.prototype.lineWidgets=null,m.prototype.isFullWidth=s,i.implement(m.prototype,l);var v=1,b=2,w=3,x=4,A=9,C=10,k=11,_=12;e("./edit_session/folding").Folding.call(m.prototype),e("./edit_session/bracket_match").BracketMatch.call(m.prototype),a.defineOptions(m.prototype,"session",{wrap:{set:function(e){e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e&&((this.$wrap=e)?(this.setWrapLimitRange(e="number"==typeof e?e:null,e),this.setUseWrapMode(!0)):this.setUseWrapMode(!1))},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode)&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){0<(e=parseInt(e))&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=m}),define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){var b=e("./lib/lang"),i=e("./lib/oop"),w=e("./range").Range;function o(){this.$options={}}o.prototype.set=function(e){return i.mixin(this.$options,e),this},o.prototype.getOptions=function(){return b.copyObject(this.$options)},o.prototype.setOptions=function(e){this.$options=e},o.prototype.find=function(e){var o,r=this.$options,e=this.$matchIterator(e,r);return!!e&&(o=null,e.forEach(function(e,t,n,i){return o=new w(e,t,n,i),!(t==i&&r.start&&r.start.start&&0!=r.skipCurrent&&o.isEqual(r.start)&&(o=null,1))}),o)},o.prototype.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),o=[],r=t.re;if(t.$isMultiLine){var a,s=r.length,l=i.length-s;e:for(var c=r.offset||0;c<=l;c++){for(var u=0;u<s;u++)if(-1==i[c+u].search(r[u]))continue e;var d=i[c],h=i[c+s-1],d=d.length-d.match(r[0])[0].length,h=h.match(r[s-1])[0].length;a&&a.end.row===c&&a.end.column>d||(o.push(a=new w(c,d,c+s-1,h)),2<s&&(c=c+s-2))}}else for(var p=0;p<i.length;p++)for(var f=b.getMatchOffsets(i[p],r),u=0;u<f.length;u++){var g=f[u];o.push(new w(p,g.offset,p,g.offset+g.length))}if(n){for(var m=n.start.column,y=n.end.column,p=0,u=o.length-1;p<u&&o[p].start.column<m&&0==o[p].start.row;)p++;for(var v=n.end.row-n.start.row;p<u&&o[u].end.column>y&&o[u].end.row==v;)u--;for(o=o.slice(p,u+1),p=0,u=o.length;p<u;p++)o[p].start.row+=n.start.row,o[p].end.row+=n.start.row}return o},o.prototype.replace=function(e,t){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(i){var o=i.exec(e);if(!o||o[0].length!=e.length)return null;if(n.regExp||(t=t.replace(/\$/g,"$$$$")),t=e.replace(i,t),n.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var a=e[r];a&&a.toLowerCase()!=a?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},o.prototype.$assembleRegExp=function(t,e){if(t.needle instanceof RegExp)return t.re=t.needle;var n=t.needle;if(!t.needle)return t.re=!1;t.regExp||(n=b.escapeRegExp(n));var i,o,r,a,s,l=t.caseSensitive?"gm":"gmi";try{new RegExp(n,"u"),t.$supportsUnicodeFlag=!0,l+="u"}catch(e){t.$supportsUnicodeFlag=!1}function c(e,t){return void 0===t&&(t=!0),(r&&o.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(e)||o.regExp?r&&o.$supportsUnicodeFlag?t?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}if(t.wholeWord&&(i=n,o=t,r=b.supportsLookbehind(),a=(s=Array.from(i))[0],s=s[s.length-1],n=c(a)+i+c(s,!1)),t.$isMultiLine=!e&&/[\n\r]/.test(n),t.$isMultiLine)return t.re=this.$assembleMultilineRegExp(n,l);try{var u=new RegExp(n,l)}catch(e){u=!1}return t.re=u},o.prototype.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],o=0;o<n.length;o++)try{i.push(new RegExp(n[o],t))}catch(e){return!1}return i},o.prototype.$matchIterator=function(u,n){var s,e,d,t,i,o,r,l,a,h=this.$assembleRegExp(n);return!!h&&(s=1==n.backwards,e=0!=n.skipCurrent,d=h.unicode,t=n.range,(i=(i=n.start)||(t?t[s?"end":"start"]:u.selection.getRange())).start&&(i=i[e!=s?"end":"start"]),o=t?t.start.row:0,r=t?t.end.row:u.getLength()-1,a=n.$isMultiLine?(l=h.length,function(e,t,n){var i=s?e-l+1:e;if(!(i<0||i+l>u.getLength())){var o=u.getLine(i),e=o.search(h[0]);if(!(!s&&e<t||-1===e)){for(var r=1;r<l;r++)if(-1==(o=u.getLine(i+r)).search(h[r]))return;var a=o.match(h[l-1])[0].length;if(!(s&&t<a))return!!n(i,e,i+l-1,a)||void 0}}}):s?function(e,t,n){var i,o=u.getLine(e),r=[];for(h.lastIndex=0;i=h.exec(o);){var a=i[0].length,s=i.index;if(!a){if(s>=o.length)break;h.lastIndex=s+=b.skipEmptyMatch(o,s,d)}if(t<i.index+a)break;r.push(i.index,a)}for(var l=r.length-1;0<=l;l-=2){var c=r[l-1];if(n(e,c,e,c+(a=r[l])))return!0}}:function(e,t,n){var i=u.getLine(e);for(h.lastIndex=t;o=h.exec(i);){var o,r=o[0].length;if(n(e,o=o.index,e,o+r))return!0;if(!r&&(h.lastIndex=o+=b.skipEmptyMatch(i,o,d),o>=i.length))return!1}},{forEach:s?function(e){var t=i.row;if(!a(t,i.column,e)){for(t--;o<=t;t--)if(a(t,Number.MAX_VALUE,e))return;if(0!=n.wrap)for(t=r,o=i.row;o<=t;t--)if(a(t,Number.MAX_VALUE,e))return}}:function(e){var t=i.row;if(!a(t,i.column,e)){for(t+=1;t<=r;t++)if(a(t,0,e))return;if(0!=n.wrap)for(t=o,r=i.row;t<=r;t++)if(a(t,0,e))return}}})},t.Search=o}),define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){function a(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}var i,o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=e("../lib/keys"),l=e("../lib/useragent"),c=s.KEY_MODS,u=(h.prototype.$init=function(e,t,n){this.platform=t||(l.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=n},h.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},h.prototype.removeCommand=function(e,t){var n,i=e&&("string"==typeof e?e:e.name),o=(e=this.commands[i],t||delete this.commands[i],this.commandKeyBinding);for(n in o){var r,a=o[n];a==e?delete o[n]:Array.isArray(a)&&-1!=(r=a.indexOf(e))&&(a.splice(r,1),1==a.length)&&(o[n]=a[0])}},h.prototype.bindKey=function(e,i,o){if("object"==typeof e&&e&&(null==o&&(o=e.position),e=e[this.platform]),e)return"function"==typeof i?this.addCommand({exec:i,bindKey:e,name:i.name||e}):void e.split("|").forEach(function(e){var t="",n=(-1!=e.indexOf(" ")&&(e=(n=e.split(/\s+/)).pop(),n.forEach(function(e){e=this.parseKeys(e),e=c[e.hashId]+e.key;t+=(t?" ":"")+e,this._addCommandToBinding(t,"chainKeys")},this),t+=" "),this.parseKeys(e)),e=c[n.hashId]+n.key;this._addCommandToBinding(t+e,i,o)},this)},h.prototype._addCommandToBinding=function(e,t,n){var i=this.commandKeyBinding;if(t)if(!i[e]||this.$singleCommand)i[e]=t;else{Array.isArray(i[e])?-1!=(r=i[e].indexOf(t))&&i[e].splice(r,1):i[e]=[i[e]],"number"!=typeof n&&(n=a(t));for(var o=i[e],r=0;r<o.length;r++)if(n<a(o[r]))break;o.splice(r,0,t)}else delete i[e]},h.prototype.addCommands=function(n){n&&Object.keys(n).forEach(function(e){var t=n[e];if(t){if("string"==typeof t)return this.bindKey(t,e);"object"==typeof(t="function"==typeof t?{exec:t}:t)&&(t.name||(t.name=e),this.addCommand(t))}},this)},h.prototype.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},h.prototype.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},h.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},h.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),i=s[n];if(s.FUNCTION_KEYS[i])n=s.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,r=t.length;r--;){var a=s.KEY_MODS[t[r]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;o|=a}return{key:n,hashId:o}},h.prototype.findKeyCommand=function(e,t){e=c[e]+t;return this.commandKeyBinding[e]},h.prototype.handleKeyboard=function(e,t,n,i){var o,r;if(!(i<0))return o=c[t]+n,r=this.commandKeyBinding[o],e.$keyChain&&(e.$keyChain+=" "+o,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||0<i)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:r}):(e.$keyChain=e.$keyChain||o,{command:"null"})},h.prototype.getStatusText=function(e,t){return t.$keyChain||""},h),e=(r(d,i=u),d);function d(e,t){e=i.call(this,e,t)||this;return e.$singleCommand=!0,e}function h(e,t){this.$init(e,t,!1)}e.call=function(e,t,n){u.prototype.$init.call(e,t,n,!0)},u.call=function(e,t,n){u.prototype.$init.call(e,t,n,!1)},t.HashHandler=e,t.MultiHashHandler=u}),define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,n){var i,o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,e=e("../lib/event_emitter").EventEmitter,r=(r(l,i=s),l.prototype.exec=function(e,t,n){if(Array.isArray(e)){for(var i=e.length;i--;)if(this.exec(e[i],t,n))return!0;return!1}var o;return!!(e="string"==typeof e?this.commands[e]:e)&&!(t&&t.$readOnly&&!e.readOnly||0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t)||((o={editor:t,command:e,args:n}).returnValue=this._emit("exec",o),this._signal("afterExec",o),!1===o.returnValue))},l.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach(function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e=e[1]?e:e[0]})},l);function l(e,t){t=i.call(this,t,e)||this;return t.byName=t.commands,t.setDefaultHandler("exec",function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)}),t}a.implement(r.prototype,e),t.CommandManager=r}),define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,n){function i(e,t){return{win:e,mac:t}}var l=e("../lib/lang"),o=e("../config"),c=e("../range").Range;t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:i("Ctrl-,","Command-,"),exec:function(t){o.loadModule("ace/ext/settings_menu",function(e){e.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:i("Alt-E","F4"),exec:function(t){o.loadModule("ace/ext/error_marker",function(e){e.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:i("Alt-Shift-E","Shift-F4"),exec:function(t){o.loadModule("ace/ext/error_marker",function(e){e.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:i("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:i(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:i("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:i("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)}
vendor: 12,606 bytes, line 13
13,multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:i("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:i("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:i("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:i(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:i(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:i("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:i("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:i("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:i("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:i("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:i("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:i("Ctrl-F","Command-F"),exec:function(t){o.loadModule("ace/ext/searchbox",function(e){e.Search(t)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:i("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:i("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:i("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:i("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:i("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:i("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:i("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:i("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:i("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:i("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:i("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:i("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:i("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:i("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:i("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:i("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:i("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:i("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:i("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:i("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:i(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:i("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:i(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:i("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:i("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:i("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:i("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:i("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:i("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:i("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:i(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:i("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:i("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:i("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:i("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:i("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:i("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:i("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:i("Ctrl-H","Command-Option-F"),exec:function(t){o.loadModule("ace/ext/searchbox",function(e){e.Search(t,!0)})}},{name:"undo",description:"Undo",bindKey:i("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:i("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:i("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:i("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:i("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:i("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:i("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:i("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:i("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:i("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()}
vendor: 20,168 bytes, line 13
13,multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:i("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:i("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:i("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:i("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:i("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:i("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:i("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:i("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:i("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(l.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:i(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:i("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:i("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:i("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:i(null,null),exec:function(e){e.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:i("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:i("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:i(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),t=e.session.doc.getLine(n.row).length,o=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,r=e.session.doc.getLine(n.row),a=n.row+1;a<=i.row+1;a++){var s=l.stringTrimLeft(l.stringTrimRight(e.session.doc.getLine(a)));r+=s=0!==s.length?" "+s:s}i.row+1<e.session.doc.getLength()-1&&(r+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new c(n.row,0,i.row+2,0),r),0<o?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+o)):(t=e.session.doc.getLine(n.row).length>t?t+1:t,e.selection.moveCursorTo(n.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:i(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,i=e.selection.rangeList.ranges,o=[];i.length<1&&(i=[e.selection.getRange()]);for(var r=0;r<i.length;r++)r!=i.length-1||i[r].end.row===t&&i[r].end.column===n||o.push(new c(i[r].end.row,i[r].end.column,t,n)),0===r?0===i[r].start.row&&0===i[r].start.column||o.push(new c(0,0,i[r].start.row,i[r].start.column)):o.push(new c(i[r-1].end.row,i[r-1].end.column,i[r].start.row,i[r].start.column));e.exitMultiSelectMode(),e.clearSelection();for(r=0;r<o.length;r++)e.selection.addRange(o[r],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",exec:function(e){console.warn("This is an obsolete command. Please use `openCommandPalette` instead."),e.prompt({$type:"commands"})},readOnly:!0},{name:"openCommandPalette",description:"Open command palette",bindKey:i("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:i(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var r=1;r<9;r++)t.commands.push({name:"foldToLevel"+r,description:"Fold To Level "+r,level:r,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})}),define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,n){var o=e("./lib/dom");function i(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}i.prototype.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},i.prototype.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},i.prototype.$onChangeEditor=function(e){this.attach(e.editor)},i.prototype.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},i.prototype.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},i.prototype.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var t=e.data,i=t.start.row,o=t.end.row,r="add"==e.action,a=i+1;a<o;a++)n[a]&&(n[a].hidden=r);n[o]&&(r?n[i]?n[o].hidden=r:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=r))}},i.prototype.updateOnChange=function(e){var t,n,i,o=this.session.lineWidgets;o&&(t=e.start.row,0!=(n=e.end.row-t))&&("remove"==e.action?(i=o.splice(t+1,n),!o[t]&&i[i.length-1]&&(o[t]=i.pop()),i.forEach(function(e){e&&this.removeLineWidget(e)},this)):(i=new Array(n),o[t]&&null!=o[t].column&&e.start.column>o[t].column&&t++,i.unshift(t,0),o.splice.apply(o,i)),this.$updateRows())},i.prototype.$updateRows=function(){var n,e=this.session.lineWidgets;e&&(n=!0,e.forEach(function(e,t){if(e)for(n=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),n)&&(this.session.lineWidgets=null)},i.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},i.prototype.addLineWidget=function(e){var t,n,i;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=o.createElement("div"),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=o.createElement("div"),e.el.textContent=e.text),e.el&&(o.addCssClass(e.el,"ace_lineWidgetContainer"),e.className&&o.addCssClass(e.el,e.className),e.el.style.position="absolute",e.el.style.zIndex="5",t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex="3"),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),n=this.session.getFoldAt(e.row,0),(e.$fold=n)&&(i=this.session.lineWidgets,e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},i.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},i.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],i=[];n;)i.push(n),n=n.$oldWidget;return i},i.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},i.prototype.measureWidgets=function(e,t){var n=this.session._changedWidgets,i=t.layerConfig;if(n&&n.length){for(var o=1/0,r=0;r<n.length;r++){var a=n[r];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/i.characterWidth));var s=a.h/i.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row))<0&&(s=0),a.rowCount!=s&&(a.rowCount=s,a.row<o)&&(o=a.row)}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},i.prototype.renderWidgets=function(e,t){var n=t.layerConfig,i=this.session.lineWidgets;if(i){for(var o=Math.min(this.firstRow,n.firstRow),r=Math.max(this.lastRow,n.lastRow,i.length);0<o&&!i[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=o;a<=r;a++){var s,l=i[a];l&&l.el&&(l.hidden?l.el.style.top=-100-(l.pixelHeight||0)+"px":(l._inDocument||(l._inDocument=!0,t.container.appendChild(l.el)),s=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top,l.coverLine||(s+=n.lineHeight*this.session.getRowLineCount(l.row)),l.el.style.top=s-n.offset+"px",s=l.coverGutter?0:t.gutterWidth,l.fixedWidth||(s-=t.scrollLeft),l.el.style.left=s+"px",l.fullWidth&&l.screenWidth&&(l.el.style.minWidth=n.width+2*n.padding+"px"),l.fixedWidth?l.el.style.right=t.scrollBar.getWidth()+"px":l.el.style.right=""))}}},t.LineWidgets=i}),define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(e,t,n){var o=e("../lib/keys"),i=e("../mouse/default_gutter_handler").GutterTooltip;function r(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new i(this.editor)}r.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},r.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},r.prototype.$onGutterKeyDown=function(e){var t;this.annotationTooltip.isOpen?(e.preventDefault(),e.keyCode===o.escape&&this.annotationTooltip.hideTooltip()):e.target===this.element?e.keyCode==o.enter&&(e.preventDefault(),t=this.editor.getCursorPosition().row,this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldWidget(e),n=this.$findNearestAnnotation(e);null===t&&null===n||(null===t&&null!==n||(null===t||null!==n)&&Math.abs(n-e)<Math.abs(t-e)?(this.activeRowIndex=n,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex)):(this.activeRowIndex=t,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex)))}.bind(this),10)):(this.$handleGutterKeyboardInteraction(e),setTimeout(function(){this.editor._signal("gutterkeydown",new a(e,this))}.bind(this),10))},r.prototype.$handleGutterKeyboardInteraction=function(e){if(e.keyCode===o.tab)e.preventDefault();else if(e.keyCode===o.escape)e.preventDefault(),this.$blurGutter(),this.element.focus(),this.lane=null;else if(e.keyCode===o.up)switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}else if(e.keyCode===o.down)switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else if(e.keyCode===o.left)e.preventDefault(),this.$switchLane("annotation");else if(e.keyCode===o.right)e.preventDefault(),this.$switchLane("fold");else if(e.keyCode===o.enter||e.keyCode===o.space)switch(e.preventDefault(),this.activeLane){case"fold":if("start"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]){var t=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),e),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==t&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(t),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}if("end"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)])break;return;case"annotation":var n=this.lines.cells[this.activeRowIndex].element.childNodes[2].getBoundingClientRect(),i=this.annotationTooltip.getElement().style;i.left=n.right+"px",i.top=n.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex))}},r.prototype.$blurGutter=function(){if(null!==this.activeRowIndex)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},r.prototype.$isFoldWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),e="none"!==this.$getFoldWidget(e).style.display;return t&&e},r.prototype.$isAnnotationVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),e="none"!==this.$getAnnotation(e).style.display;return t&&e},r.prototype.$getFoldWidget=function(e){return this.lines.get(e).element.childNodes[1]},r.prototype.$getAnnotation=function(e){return this.lines.get(e).element.childNodes[2]},r.prototype.$findNearestFoldWidget=function(e){if(this.$isFoldWidgetVisible(e))return e;for(var t=0;0<e-t||e+t<this.lines.getLength()-1;){if(0<=e-++t&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},r.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;0<e-t||e+t<this.lines.getLength()-1;){if(0<=e-++t&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},r.prototype.$focusFoldWidget=function(e){null!=e&&((e=this.$getFoldWidget(e)).classList.add(this.editor.renderer.keyboardFocusClassName),e.focus())},r.prototype.$focusAnnotation=function(e){null!=e&&((e=this.$getAnnotation(e)).classList.add(this.editor.renderer.keyboardFocusClassName),e.focus())},r.prototype.$blurFoldWidget=function(e){e=this.$getFoldWidget(e);e.classList.remove(this.editor.renderer.keyboardFocusClassName),e.blur()},r.prototype.$blurAnnotation=function(e){e=this.$getAnnotation(e);e.classList.remove(this.editor.renderer.keyboardFocusClassName),e.blur()},r.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;0<e;)if(this.$isFoldWidgetVisible(--e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},r.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(this.$isFoldWidgetVisible(++e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},r.prototype.$moveAnnotationUp=function(){for(var e=this.activeRowIndex;0<e;)if(this.$isAnnotationVisible(--e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},r.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(this.$isAnnotationVisible(++e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},r.prototype.$switchLane=function(e){switch(e){case"annotation":"annotation"!==this.activeLane&&null!=(t=this.$findNearestAnnotation(this.activeRowIndex))&&(this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex));break;case"fold":var t;"fold"!==this.activeLane&&null!=(t=this.$findNearestFoldWidget(this.activeRowIndex))&&(this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=t,this.$focusFoldWidget(this.activeRowIndex))}},r.prototype.$rowIndexToRow=function(e){e=this.lines.get(e);return e?e.row:null},r.prototype.$rowToRowIndex=function(e){for(var t=0;t<this.lines.getLength();t++)if(this.lines.get(t).row==e)return t;return null},t.GutterKeyboardHandler=r;s.prototype.getKey=function(){return o.keyCodeToString(this.domEvent.keyCode)},s.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},s.prototype.isInAnnotationLane=function(){return"annotation"===this.gutterKeyboardHandler.activeLane},s.prototype.isInFoldLane=function(){return"fold"===this.gutterKeyboardHandler.activeLane};var a=s;function s(e,t){this.gutterKeyboardHandler=t,this.domEvent=e}t.GutterKeyboardEvent=a}),define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],function(e,t,n){var d=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);
13if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=e("./lib/oop"),i=e("./lib/dom"),g=e("./lib/lang"),r=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,s=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,u=e("./edit_session").EditSession,h=e("./search").Search,m=e("./range").Range,p=e("./lib/event_emitter").EventEmitter,f=e("./commands/command_manager").CommandManager,y=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,w=e("./line_widgets").LineWidgets,x=e("./keyboard/gutter_handler").GutterKeyboardHandler,A=e("./config").nls,C=e("./clipboard"),k=e("./lib/keys"),e=(_.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=g.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},_.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},_.prototype.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if((1!=e||!this.curOp.command||"mouse"!=this.curOp.command.name)&&(this._signal("beforeEndOperation"),this.curOp)){var e=this.curOp.command,t=e&&e.scrollIntoView;if(t){switch(t){case"center-animate":t="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var n=this.selection.getRange(),i=this.renderer.layerConfig;(n.start.row>=i.lastRow||n.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON();this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},_.prototype.$historyTracker=function(e){var t,n,i,o;this.$mergeUndoDeltas&&(t=this.prevOp,n=this.$mergeableCommands,i=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(o=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0):i=i&&-1!==n.indexOf(e.command.name),(i="always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime?!1:i)?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now()))},_.prototype.setKeyboardHandler=function(t,n){var i;t&&"string"==typeof t&&"ace"!=t?(this.$keybindingId=t,i=this,v.loadModule(["keybinding",t],function(e){i.$keybindingId==t&&i.keyBinding.setKeyboardHandler(e&&e.handler),n&&n()})):(this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),n&&n())},_.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},_.prototype.setSession=function(e){var t,n;this.session!=e&&(this.curOp&&this.endOperation(),this.curOp={},(t=this.session)&&(this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("
13changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange),(n=this.session.getSelection()).off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)),(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e)&&!e.destroyed&&e.bgTokenizer.scheduleStart()},_.prototype.getSession=function(){return this.session},_.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},_.prototype.getValue=function(){return this.session.getValue()},_.prototype.getSelection=function(){return this.selection},_.prototype.resize=function(e){this.renderer.onResize(e)},_.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},_.prototype.getTheme=function(){return this.renderer.getTheme()},_.prototype.setStyle=function(e){this.renderer.setStyle(e)},_.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},_.prototype.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},_.prototype.setFontSize=function(e){this.setOption("fontSize",e)},_.prototype.$highlightBrackets=function(){var r;this.$highlightPending||((r=this).$highlightPending=!0,setTimeout(function(){r.$highlightPending=!1;var e,t,n,i,o=r.session;o&&!o.destroyed&&(o.$bracketHighlight&&(o.$bracketHighlight.markerIds.forEach(function(e){o.removeMarker(e)}),o.$bracketHighlight=null),e=r.getCursorPosition(),t=(t=r.getKeyboardHandler())&&t.$getDirectionForHighlight&&t.$getDirectionForHighlight(r),(t=o.getMatchingBracketRanges(e,t))||(n=new b(o,e.row,e.column).getCurrentToken())&&/\b(?:tag-open|tag-name)/.test(n.type)&&(n=o.getMatchingTags(e))&&(t=[n.openTagName,n.closeTagName]),(t=!t&&o.$mode.getMatching?o.$mode.getMatching(r.session):t)&&(i="ace_bracket",Array.isArray(t)?1==t.length&&(i="ace_error_bracket"):t=[t],2==t.length&&(0==m.comparePoints(t[0].end,t[1].start)?t=[m.fromPoints(t[0].start,t[1].end)]:0==m.comparePoints(t[0].start,t[1].end)&&(t=[m.fromPoints(t[1].start,t[0].end)])),o.$bracketHighlight={ranges:t,markerIds:t.map(function(e){return o.addMarker(e,i,"text")})}),r.getHighlightIndentGuides())&&r.renderer.$textLayer.$highlightIndentGuide()},50))}
vendor: 85,688 bytes, line 13
13,_.prototype.focus=function(){this.textInput.focus()},_.prototype.isFocused=function(){return this.textInput.isFocused()},_.prototype.blur=function(){this.textInput.blur()},_.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},_.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},_.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},_.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},_.prototype.onTokenizerUpdate=function(e){e=e.data;this.renderer.updateLines(e.first,e.last)},_.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},_.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},_.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},_.prototype.$updateHighlightActiveLine=function(){var e,t,n=this.getSession();this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(e=!1)),n.$highlightLineMarker&&!e?(n.removeMarker(n.$highlightLineMarker.id),n.$highlightLineMarker=null):!n.$highlightLineMarker&&e?((t=new m(e.row,e.column,e.row,1/0)).id=n.addMarker(t,"ace_active-line","screenLine"),n.$highlightLineMarker=t):e&&(n.$highlightLineMarker.start.row=e.row,n.$highlightLineMarker.end.row=e.row,n.$highlightLineMarker.start.column=e.column,n._signal("changeBackMarker"))},_.prototype.onSelectionChange=function(e){var t,n,i=this.session,i=(i.$selectionMarker&&i.removeMarker(i.$selectionMarker),i.$selectionMarker=null,this.selection.isEmpty()?this.$updateHighlightActiveLine():(t=this.selection.getRange(),n=this.getSelectionStyle(),i.$selectionMarker=i.addMarker(t,"ace_selection",n)),this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp());this.session.highlight(i),this._signal("changeSelection")},_.prototype.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,i=t.end.column,e=e.getLine(t.start.row),t=e.substring(n,i);if(!(5e3<t.length)&&/[\w\d]/.test(t)){t=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:t}),e=e.substring(n-1,i+1);if(t.test(e))return t}}},_.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},_.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},_.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},_.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},_.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},_.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},_.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},_.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},_.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},_.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection)for(var n=!0,i=this.selection.getAllRanges(),o=0;o<i.length;o++){var r=i[o];o&&i[o-1].start.row==r.start.row||(e+=this.session.getLine(r.start.row)+t)}var a={text:e};return this._signal("copy",a),C.lineMode=!!n&&a.text,a.text},_.prototype.onCopy=function(){this.commands.exec("copy",this)},_.prototype.onCut=function(){this.commands.exec("cut",this)},_.prototype.onPaste=function(e,t){this.commands.exec("paste",this,{text:e,event:t})},_.prototype.$handlePaste=function(e){this._signal("paste",e="string"==typeof e?{text:e}:e);var t=e.text,e=t===C.lineMode,n=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)e?n.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(e)this.selection.rangeList.ranges.forEach(function(e){n.insert({row:e.start.row,column:0},t)});else{var i=t.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges,e=!(2!=i.length||i[0]&&i[1]);if(i.length!=o.length||e)return this.commands.exec("insertstring",this,t);for(var r=o.length;r--;){var a=o[r];a.isEmpty()||n.remove(a),n.insert(a.start,i[r])}}},_.prototype.execCommand=function(e,t){return this.commands.exec(e,this,t)},_.prototype.insert=function(e,t){var n,i=this.session,o=i.getMode(),r=this.getCursorPosition(),a=(this.getBehavioursEnabled()&&!t&&(n=o.transformAction(i.getState(r.row),"insertion",this,i,e))&&(e===n.text||this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1),e=n.text),"\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()?this.session.getOverwrite()&&-1==e.indexOf("\n")&&((a=m.fromPoints(r,r)).end.column+=e.length,this.session.remove(a)):(a=this.getSelectionRange(),r=this.session.remove(a),this.clearSelection()),"\n"!=e&&"\r\n"!=e||(s=i.getLine(r.row),r.column>s.search(/\S|$/)&&(t=s.substr(r.column).search(/\S|$/),i.doc.removeInLine(r.row,r.column,r.column+t))),this.clearSelection(),r.column),t=i.getState(r.row),s=i.getLine(r.row),l=o.checkOutdent(t,s,e);i.insert(r,e),n&&n.selection&&(2==n.selection.length?this.selection.setSelectionRange(new m(r.row,a+n.selection[0],r.row,a+n.selection[1])):this.selection.setSelectionRange(new m(r.row+n.selection[0],n.selection[1],r.row+n.selection[2],n.selection[3]))),this.$enableAutoIndent&&(i.getDocument().isNewLine(e)&&(a=o.getNextLineIndent(t,s.slice(0,r.column),i.getTabString()),i.insert({row:r.row+1,column:0},a)),l)&&o.autoOutdent(t,i,r.row)},_.prototype.autoIndent=function(){for(var e=this.session,t=e.getMode(),n=this.selection.isEmpty()?[new m(0,0,e.doc.getLength()-1,0)]:this.selection.getAllRanges(),i="",o="",r=e.getTabString(),a=0;a<n.length;a++)for(var s=n[a].start.row,l=n[a].end.row,c=s;c<=l;c++){0<c&&(i=e.getState(c-1),u=e.getLine(c-1),o=t.getNextLineIndent(i,u,r));var u=e.getLine(c),d=t.$getIndent(u);o!==d&&(0<d.length&&(d=new m(c,0,c,d.length),e.remove(d)),0<o.length)&&e.insert({row:c,column:0},o),t.autoOutdent(i,e,c)}},_.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});e=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(e):e(),this.endOperation()},_.prototype.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()),!e&&this.selection.isEmpty()||this.insert(e,!0),(t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},_.prototype.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},_.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},_.prototype.getOverwrite=function(){return this.session.getOverwrite()},_.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},_.prototype.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},_.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},_.prototype.setDragDelay=function(e){this.setOption("dragDelay",e)},_.prototype.getDragDelay=function(){return this.getOption("dragDelay")},_.prototype.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},_.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},_.prototype.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},_.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},_.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},_.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},_.prototype.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},_.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},_.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},_.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},_.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},_.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},_.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},_.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},_.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},_.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},_.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},_.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},_.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},_.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},_.prototype.setReadOnly=function(e){this.setOption("readOnly",e)},_.prototype.getReadOnly=function(){return this.getOption("readOnly")},_.prototype.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},_.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},_.prototype.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},_.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},_.prototype.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},_.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},_.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},_.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},_.prototype.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t,n,i,e=this.getSelectionRange();this.getBehavioursEnabled()&&(n=(t=this.session).getState(e.start.row),n=t.getMode().transformAction(n,"deletion",this,t,e),0===e.end.column&&"\n"==(i=t.getTextRange(e))[i.length-1]&&(i=t.getLine(e.end.row),/^\s+$/.test(i))&&(e.end.column=i.length),n)&&(e=n),this.session.remove(e),this.clearSelection()},_.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},_.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},_.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},_.prototype.setGhostText=function(e,t){this.session.widgetManager||(this.session.widgetManager=new w(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(e,t)},_.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},_.prototype.transposeLetters=function(){var e,t,n,i;this.selection.isEmpty()&&0!==(t=(e=this.getCursorPosition()).column)&&(i=t<(i=this.session.getLine(e.row)).length?(n=i.charAt(t)+i.charAt(t-1),new m(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),new m(e.row,t-2,e.row,t)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end))},_.prototype.toLowerCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},_.prototype.toUpperCase=function(){var e=this.getSelectionRange(),t=(this.selection.isEmpty()&&this.selection.selectWord(),this.getSelectionRange()),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},_.prototype.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n,i=e.getTextRange(t);if(!/^\s+$/.test(i))return n=this.$getSelectedRows(),void e.indentRows(n.first,n.last,"\t")}var o=e.getLine(t.start.row),i=t.start,r=e.getTabSize(),i=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var a=r-i%r,s=g.stringRepeat(" ",a);else{for(a=i%r;" "==o[t.start.column-1]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),s="\t"}return this.insert(s)}n=this.$getSelectedRows(),e.indentRows(n.first,n.last,"\t")},_.prototype.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},_.prototype.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},_.prototype.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});for(var o=new m(0,0,0,0),i=e.first;i<=e.last;i++){var r=t.getLine(i);o.start.row=i,o.end.row=i,o.end.column=r.length,t.replace(o,n[i-e.first])}},_.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},_.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},_.prototype.getNumberAt=function(e,t){for(var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g,i=(n.lastIndex=0,this.session.getLine(e));n.lastIndex<t;){var o=n.exec(i);if(o.index<=t&&o.index+o[0].length>=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},_.prototype.modifyNumber=function(e){var t,n,i,o=this.selection.getCursor().row,r=this.selection.getCursor().column,a=new m(o,r-1,o,r),a=this.session.getTextRange(a);!isNaN(parseFloat(a))&&isFinite(a)?(a=this.getNumberAt(o,r))&&(i=0<=a.value.indexOf(".")?a.start+a.value.indexOf(".")+1:a.end,t=a.start+a.value.length-i,n=parseFloat(a.value),n*=Math.pow(10,t),i!==a.end&&r<i?e*=Math.pow(10,a.end-r-1):e*=Math.pow(10,a.end-r),i=(n=(n+=e)/Math.pow(10,t)).toFixed(t),e=new m(o,a.start,o,a.end),this.session.replace(e,i),this.moveCursorTo(o,Math.max(a.start+1,r+i.length-a.value.length))):this.toggleWord()},_.prototype.toggleWord=function(){for(var n,i=this.selection.getCursor().row,e=this.selection.getCursor().column,o=(this.selection.selectWord(),this.getSelectedText()),r=this.selection.getWordRange().start.column,t=o.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=e-r-1,s=(a<0&&(a=0),0),l=this,c=(o.match(/[A-Za-z0-9_]+/)&&t.forEach(function(e,t){n=s+e.length,s<=a&&a<=n&&(o=e,l.selection.clearSelection(),l.moveCursorTo(i,s+r),l.selection.selectTo(i,n+r)),s=n}),this.$toggleWordPairs),u=0;u<c.length;u++)for(var d=c[u],h=0;h<=1;h++){var p=+!h,f=o.match(new RegExp("^\\s?_?("+g.escapeRegExp(d[h])+")\\s?$","i"));f&&o.match(new RegExp("([_]|^|\\s)("+g.escapeRegExp(f[1])+")($|\\s)","g"))&&(f=o.replace(new RegExp(g.escapeRegExp(d[h]),"i"),function(e){var t=d[p];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+d[p].charAt(0).toUpperCase()+t.substr(1)),t}),this.insert(f))}},_.prototype.findLinkAt=function(e,t){var n,i,o,e=this.session.getLine(e).split(/((?:https?|ftp):\/\/[\S]+)/),r=t,a=(r<0&&(r=0),0);try{for(var s=d(e),l=s.next();!l.done;l=s.next()){var c=l.value,u=a+c.length;if(a<=r&&r<=u&&c.match(/((?:https?|ftp):\/\/[\S]+)/)){o=c.replace(/[\s:.,'";}\]]+$/,"");break}a=u}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},_.prototype.openLink=function(){var e=this.selection.getCursor(),e=this.findLinkAt(e.row,e.column);return e&&window.open(e,"_blank"),null!=e},_.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},_.prototype.duplicateSelection=function(){var e,t=this.selection,n=this.session,i=t.getRange(),o=t.isBackwards();i.isEmpty()?(e=i.start.row,n.duplicateLines(e,e)):(e=o?i.start:i.end,n=n.insert(e,n.getTextRange(i)),i.start=e,i.end=n,t.setSelectionRange(i,o))},_.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},_.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},_.prototype.moveText=function(e,t,n){return this.session.moveText(e,t,n)},_.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},_.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},_.prototype.$moveLines=function(e,t){var n=this.selection;if(!n.inMultiSelectMode||this.inVirtualSelectionMode){var i=n.toOrientedRange(),o=this.$getSelectedRows(i),r=this.session.$moveLines(o.first,o.last,t?0:e);i.moveBy(r=t&&-1==e?0:r,0),n.fromOrientedRange(i)}else{for(var a=n.rangeList.ranges,s=(n.rangeList.detach(this.session),this.inVirtualSelectionMode=!0,0),l=0,c=a.length,u=0;u<c;u++){for(var d=u,h=(a[u].moveBy(s,0),(o=this.$getSelectedRows(a[u])).first),p=o.last;++u<c;){l&&a[u].moveBy(l,0);var f=this.$getSelectedRows(a[u]);if(t&&f.first!=p)break;if(!t&&f.first>p+1)break;p=f.last}for(u--,s=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(d=u+1);d<=u;)a[d].moveBy(s,0),d++;l+=s=t?s:0}n.fromOrientedRange(n.ranges[0]),n.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},_.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},_.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},_.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},_.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},_.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},_.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},_.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},_.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},_.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},_.prototype.$moveByPage=function(e,t){var n=this.renderer,i=this.renderer.layerConfig,o=e*Math.floor(i.height/i.lineHeight),e=(!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(o,0)}):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection()),n.scrollTop);n.scrollBy(0,o*i.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(e)},_.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},_.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},_.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},_.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},_.prototype.scrollPageDown=function(){this.$moveByPage(1)},_.prototype.scrollPageUp=function(){this.$moveByPage(-1)},_.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},_.prototype.scrollToLine=function(e,t,n,i){this.renderer.scrollToLine(e,t,n,i)},_.prototype.centerSelection=function(){var e=this.getSelectionRange(),e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},_.prototype.getCursorPosition=function(){return this.selection.getCursor()},_.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},_.prototype.getSelectionRange=function(){return this.selection.getRange()},_.prototype.selectAll=function(){this.selection.selectAll()},_.prototype.clearSelection=function(){this.selection.clearSelection()},_.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},_.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},_.prototype.jumpToMatching=function(e,t){var n=this.getCursorPosition(),i=new b(this.session,n.row,n.column),o=i.getCurrentToken(),r=0,a=(o=o&&-1!==o.type.indexOf("tag-name")?i.stepBackward():o)||i.stepForward();if(a){var s,l,c=!1,u={},d=n.column-a.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(a.value.match(/[{}()\[\]]/g)){for(;d<a.value.length&&!c;d++)if(h[a.value[d]])switch(l=h[a.value[d]]+"."+a.type.replace("rparen","lparen"),isNaN(u[l])&&(u[l]=0),a.value[d]){case"(":case"[":case"{":u[l]++;break;case")":case"]":case"}":u[l]--,-1===u[l]&&(s="bracket",c=!0)}}else-1!==a.type.indexOf("tag-name")&&(isNaN(u[a.value])&&(u[a.value]=0),"<"===o.value&&1<r?u[a.value]++:"</"===o.value&&u[a.value]--,-1===u[a.value])&&(s="tag",c=!0)}while(c||(o=a,r++,a=i.stepForward(),d=0),a&&!c);if(s){if("bracket"===s)!(f=this.session.getBracketRange(n))&&(g=(f=new m(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+d-1)).start,t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(f=this.session.getBracketRange(g));else if("tag"===s){if(!a||-1===a.type.indexOf("tag-name"))return;var p,f,g=(g=0===(f=new m(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column)&&(p=this.session.getMatchingTags(n))?p.openTag.contains(n.row,n.column)?(f=p.closeTag).start:(f=p.openTag,p.closeTag.start.row===n.row&&p.closeTag.start.column===n.column?f.end:f.start):g)||f.start}(g=f&&f.cursor||g)&&(e?f&&t?this.selection.setRange(f):f&&f.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},_.prototype.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},_.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},_.prototype.navigateUp=function(e){var t;if(this.selection.isMultiLine()&&!this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},_.prototype.navigateDown=function(e){var t;if(this.selection.isMultiLine()&&this.selection.isBackwards())return t=this.selection.anchor.getPosition(),this.moveCursorToPosition(t);this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},_.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},_.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},_.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},_.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},_.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},_.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},_.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},_.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},_.prototype.replace=function(e,t){t&&this.$search.set(t);var t=this.$search.find(this.session),n=0;return t&&(this.$tryReplace(t,e)&&(n=1),this.selection.setSelectionRange(t),this.renderer.scrollSelectionIntoView(t.start,t.end)),n},_.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),i=0;if(n.length){t=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;0<=o;--o)this.$tryReplace(n[o],e)&&i++;this.selection.setSelectionRange(t)}return i},_.prototype.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},_.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},_.prototype.find=function(e,t,n){t=t||{},"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var i=this.selection.getRange(),e=(null==t.needle&&((e=this.session.getTextRange(i)||this.$search.$options.needle)||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i}),this.$search.find(this.session));return t.preventScroll?e:e?(this.revealRange(e,n),e):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},_.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},_.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},_.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},_.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},_.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},_.prototype.setAutoScrollEditorIntoView=function(e){var i,o,r,a,t,n,s;e&&(r=!1,(o=this).$scrollAnchor||(this.$scrollAnchor=document.createElement("div")),(a=this.$scrollAnchor).style.cssText="position:absolute",this.container.insertBefore(a,this.container.firstChild),t=this.on("changeSelection",function(){r=!0}),n=this.renderer.on("beforeRender",function(){r&&(i=o.renderer.container.getBoundingClientRect())}),s=this.renderer.on("afterRender",function(){var e,t,n;r&&i&&(o.isFocused()||o.searchBox&&o.searchBox.isFocused())&&(n=(e=(t=o.renderer).$cursorLayer.$pixelPos).top-(t=t.layerConfig).offset,null!=(r=0<=e.top&&n+i.top<0||!(e.top<t.height&&e.top+i.top+t.lineHeight>window.innerHeight)&&null)&&(a.style.top=n+"px",a.style.left=e.left+"px",a.style.height=t.lineHeight+"px",a.scrollIntoView(r)),r=i=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",n))})},_.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},_.prototype.prompt=function(t,n,i){var o=this;v.loadModule("ace/ext/prompt",function(e){e.prompt(o,t,n,i)})},_);function _(e,t,n){this.session,this.$toDestroy=[];var i=e.getContainerElement();this.container=i,this.renderer=e,this.id="editor"+ ++_.$uid,this.commands=new f(r.isMac?"mac":"win",y),"object"==typeof document&&(this.textInput=new a(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new s(this),new l(this)),this.keyBinding=new c(this),this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=g.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||n&&n.session||new u("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)}e.$uid=0,e.prototype.curOp=null,e.prototype.prevOp={},e.prototype.$mergeableCommands=["backspace","del","insertstring"],e.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],o.implement(e.prototype,p),v.defineOptions(e.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?S.attach(this):S.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?S.attach(this):S.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||1<this.session.getLength()||0<this.session.getLine(0).length);e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),i.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),i.addCssClass(this.container,"ace_hasPlaceholder"),(e=i.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){function t(e){e.target==this.renderer.scroller&&e.keyCode===k.enter&&(e.preventDefault(),e=this.getCursorPosition().row,this.isRowVisible(e)||this.scrollToLine(e,!0,!0),this.focus())}var n,i={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(r.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",A("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",A("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",t.bind(this)),this.commands.addCommand(i),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",A("editor")),this.renderer.$gutter.setAttribute("aria-label",A("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),(n=n||new x(this)).addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",t.bind(this)),this.commands.removeCommand(i),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),n&&n.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var S={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=e}),define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t,n){var a=e("../lib/dom");function i(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}i.prototype.moveContainer=function(e){a.translate(this.element,0,-(e.firstRowScreen*e.lineHeight%this.canvasHeight)-e.offset*this.$offsetCoefficient)},i.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},i.prototype.computeLineTop=function(e,t,n){var i=t.firstRowScreen*t.lineHeight,i=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-i*this.canvasHeight},i.prototype.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},i.prototype.getLength=function(){return this.cells.length},i.prototype.get=function(e){return this.cells[e]},i.prototype.shift=function(){this.$cacheCell(this.cells.shift())},i.prototype.pop=function(){this.$cacheCell(this.cells.pop())},i.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=a.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},i.prototype.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=a.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},i.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},i.prototype.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},i.prototype.createCell=function(e,t,n,i){var o,r=this.cellCache.pop();return r||(o=a.createElement("div"),i&&i(o),this.element.appendChild(o),r={element:o,text:"",row:e}),r.row=e,r},t.Lines=i}),define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],function(e,t,n){function c(e){var t=document.createTextNode(""),t=(e.appendChild(t),C.createElement("span")),t=(e.appendChild(t),C.createElement("span")),n=(e.appendChild(t),C.createElement("span"));return t.appendChild(n),e}var C=e("../lib/dom"),i=e("../lib/oop"),a=e("../lib/lang"),o=e("../lib/event_emitter").EventEmitter,r=e("./lines").Lines,k=e("../config").nls,e=(s.prototype.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},s.prototype.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},s.prototype.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},s.prototype.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.row,o=(o=this.$annotations[i])||(this.$annotations[i]={text:[],type:[]}),i=n.type,r=(r=n.text)?a.escapeHTML(r):n.html||"",r=(-1===o.text.indexOf(r)&&(o.text.push(r),o.type.push(i)),n.className);r?o.className=r:"error"==i?o.className=" ace_error":"warning"==i&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=i||o.className||(o.className=" ace_info")}},s.prototype.$updateAnnotations=function(e){var t,n;this.$annotations.length&&(t=e.start.row,0!=(n=e.end.row-t))&&("remove"==e.action?this.$annotations.splice(t,1+n,null):((e=new Array(1+n)).unshift(t,1),this.$annotations.splice.apply(this.$annotations,e)))},s.prototype.update=function(e){this.config=e;for(var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),o=(this.oldLastRow=i,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow(),t.getNextFoldLine(n)),r=o?o.start.row:1/0,a=null,s=-1,l=n;;){if(r<l&&(l=o.end.row+1,r=(o=t.getNextFoldLine(l,o))?o.start.row:1/0),i<l){for(;this.$lines.getLength()>s+1;)this.$lines.pop();break}(a=this.$lines.get(++s))?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},s.prototype.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,i=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"",i=((this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+i-1),n?n.getWidth(t,o,e):o.toString().length*e.characterWidth),n=this.$padding||this.$computePadding();(i+=n.left+n.right)===this.gutterWidth||isNaN(i)||(this.gutterWidth=i,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",i))},s.prototype.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},s.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var i=t[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(0<n&&o&&o.start.row==t[n-1].row))break;i=t[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},s.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(n<i)for(o=this.session.getFoldedRowCount(n+1,i);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),i<n&&this.$lines.push(this.$renderLines(e,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},s.prototype.$renderLines=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),a=r?r.start.row:1/0;a<o&&(o=r.end.row+1,a=(r=this.session.getNextFoldLine(o,r))?r.start.row:1/0),!(n<o);){var s=this.$lines.createCell(o,e,this.session,c);this.$renderCell(s,e,r,o),i.push(s),o++}return i},s.prototype.$renderCell=function(e,t,n,i){var o,r=e.element,a=this.session,s=r.childNodes[0],l=r.childNodes[1],c=r.childNodes[2],u=c.firstChild,d=a.$firstLineNumber,h=a.$breakpoints,p=a.$decorations,f=a.gutterRenderer||this.$renderer,g=this.$showFoldWidgets&&a.foldWidgets,m=n?n.start.row:Number.MAX_VALUE,y=t.lineHeight+"px",v=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",b=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",f=(f?f.getText(a,i):i+d).toString();if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&m<=i&&this.$cursorRow<=n.end.row)&&(v+="ace_gutter-active-line ",this.$cursorCell!=e)&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e),h[i]&&(v+=h[i]),p[i]&&(v+=p[i]),this.$annotations[i]&&i!==m&&(v+=this.$annotations[i].className),o=g&&null==(o=g[i])?g[i]=a.getFoldWidget(i):o){d="ace_fold-widget ace_"+o,h="start"==o&&i==m&&i<n.end.row;if(h){d+=" ace_closed";for(var w="",x=!1,A=i+1;A<=n.end.row;A++)if(this.$annotations[A]){if(" ace_error"===this.$annotations[A].className){x=!0,w=" ace_error_fold";break}" ace_warning"===this.$annotations[A].className&&(x=!0,w=" ace_warning_fold")}v+=w}else d+=" ace_open";l.className!=d&&(l.className=d),C.setStyle(l.style,"height",y),C.setStyle(l.style,"display","inline-block"),l.setAttribute("role","button"),l.setAttribute("tabindex","-1");p=a.getFoldWidgetRange(i);p?l.setAttribute("aria-label",k("Toggle code folding, rows $0 through $1",[p.start.row+1,p.end.row+1])):n?l.setAttribute("aria-label",k("Toggle code folding, rows $0 through $1",[n.start.row+1,n.end.row+1])):l.setAttribute("aria-label",k("Toggle code folding, row $0",[i+1])),h?(l.setAttribute("aria-expanded","false"),l.setAttribute("title",k("Unfold code"))):(l.setAttribute("aria-expanded","true"),l.setAttribute("title",k("Fold code")))}else l&&(C.setStyle(l.style,"display","none"),l.setAttribute("tabindex","0"),l.removeAttribute("role"),l.removeAttribute("aria-label"));return x&&this.$showFoldedAnnotations?(c.className="ace_gutter_annotation",u.className=b,u.className+=w,C.setStyle(u.style,"height",y),C.setStyle(c.style,"display","block"),C.setStyle(c.style,"height",y),c.setAttribute("aria-label",k("Read annotations row $0",[f])),c.setAttribute("tabindex","-1"),c.setAttribute("role","button")):this.$annotations[i]?(c.className="ace_gutter_annotation",u.className=b,this.$useSvgGutterIcons?u.className+=this.$annotations[i].className:r.classList.add(this.$annotations[i].className.replace(" ","")),C.setStyle(u.style,"height",y),C.setStyle(c.style,"display","block"),C.setStyle(c.style,"height",y),c.setAttribute("aria-label",k("Read annotations row $0",[f])),c.setAttribute("tabindex","-1"),c.setAttribute("role","button")):(C.setStyle(c.style,"display","none"),c.removeAttribute("aria-label"),c.removeAttribute("role"),c.setAttribute("tabindex","0")),f!==s.data&&(s.data=f),r.className!=v&&(r.className=v),C.setStyle(e.element.style,"height",this.$lines.computeLineHeight(i,t,a)+"px"),C.setStyle(e.element.style,"top",this.$lines.computeLineTop(i,t,a)+"px"),e.text=f,"none"===c.style.display&&"none"===l.style.display?e.element.setAttribute("aria-hidden",!0):e.element.setAttribute("aria-hidden",!1),e},s.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},s.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},s.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},s.prototype.setShowFoldWidgets=function(e){e?C.addCssClass(this.element,"ace_folding-enabled"):C.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},s.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},s.prototype.$computePadding=function(){var e;return this.element.firstChild?(e=C.computedStyle(this.element.firstChild),this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding):{left:0,right:0}},s.prototype.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0},s);function s(e){this.element=C.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new r(this.element),this.$lines.$offsetCoefficient=1}e.prototype.$fixedWidth=!1,e.prototype.$highlightGutterLine=!0,e.prototype.$renderer="",e.prototype.$showLineNumbers=!0,e.prototype.$showFoldWidgets=!0,i.implement(e.prototype,o),t.Gutter=e}),define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,n){var p=e("../range").Range,i=e("../lib/dom"),e=(o.prototype.setPadding=function(e){this.$padding=e},o.prototype.setSession=function(e){this.session=e},o.prototype.setMarkers=function(e){this.markers=e},o.prototype.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},o.prototype.update=function(e){if(e){var t,n;for(n in this.config=e,this.i=0,this.markers){var i,o,r,a=this.markers[n];a.range?(r=a.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(r=r.toScreenRange(this.session),a.renderer?(i=this.$getTop(r.start.row,e),o=this.$padding+r.start.column*e.characterWidth,a.renderer(t,r,o,i,e)):"fullLine"==a.type?this.drawFullLineMarker(t,r,a.clazz,e):"screenLine"==a.type?this.drawScreenLineMarker(t,r,a.clazz,e):r.isMultiLine()?"text"==a.type?this.drawTextMarker(t,r,a.clazz,e):this.drawMultiLineMarker(t,r,a.clazz,e):this.drawSingleLineMarker(t,r,a.clazz+" ace_start ace_br15",e)):a.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},o.prototype.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},o.prototype.drawTextMarker=function(e,t,n,i,o){for(var r,a=this.session,s=t.start.row,l=t.end.row,c=s,u=0,d=a.getScreenLastRowColumn(c),h=new p(c,t.start.column,c,u);c<=l;c++)h.start.row=h.end.row=c,h.start.column=c==s?t.start.column:a.getRowWrapIndent(c),h.end.column=d,r=u,u=d,d=c+1<l?a.getScreenLastRowColumn(c+1):c==l?0:t.end.column,this.drawSingleLineMarker(e,h,n+(c==s?" ace_start":"")+" ace_br"+((c==s||c==s+1&&t.start.column?1:0)|(r<u?2:0)|(d<u?4:0)|(c==l?8:0)),i,c==l?0:1,o)},o.prototype.drawMultiLineMarker=function(e,t,n,i,o){var r,a=this.$padding,s=i.lineHeight,l=this.$getTop(t.start.row,i),c=a+t.start.column*i.characterWidth;o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row)?((r=t.clone()).end.row=r.start.row,r.end.column=this.session.getLine(r.start.row).length,this.drawBidiSingleLineMarker(e,r,n+" ace_br1 ace_start",i,null,o)):this.elt(n+" ace_br1 ace_start","height:"+s+"px;right:0;top:"+l+"px;left:"+c+"px;"+(o||"")),this.session.$bidiHandler.isBidiRow(t.end.row)?((r=t.clone()).start.row=r.end.row,r.start.column=0,this.drawBidiSingleLineMarker(e,r,n+" ace_br12",i,null,o)):(l=this.$getTop(t.end.row,i),c=t.end.column*i.characterWidth,this.elt(n+" ace_br12","height:"+s+"px;width:"+c+"px;top:"+l+"px;left:"+a+"px;"+(o||""))),(s=(t.end.row-t.start.row-1)*i.lineHeight)<=0||(l=this.$getTop(t.start.row+1,i),e=(t.start.column?1:0)|(t.end.column?0:8),this.elt(n+(e?" ace_br"+e:""),"height:"+s+"px;right:0;top:"+l+"px;left:"+a+"px;"+(o||"")))},o.prototype.drawSingleLineMarker=function(e,t,n,i,o,r){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,i,o,r);var e=i.lineHeight,o=(t.end.column+(o||0)-t.start.column)*i.characterWidth,a=this.$getTop(t.start.row,i),t=this.$padding+t.start.column*i.characterWidth;this.elt(n,"height:"+e+"px;width:"+o+"px;top:"+a+"px;left:"+t+"px;"+(r||""))},o.prototype.drawBidiSingleLineMarker=function(e,t,n,i,o,r){var a=i.lineHeight,s=this.$getTop(t.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(n,"height:"+a+"px;width:"+(e.width+(o||0))+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(r||""))},this)},o.prototype.drawFullLineMarker=function(e,t,n,i,o){var r=this.$getTop(t.start.row,i),a=i.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,i)-r),this.elt(n,"height:"+a+"px;top:"+r+"px;left:0;right:0;"+(o||""))},o.prototype.drawScreenLineMarker=function(e,t,n,i,o){t=this.$getTop(t.start.row,i),i=i.lineHeight;this.elt(n,"height:"+i+"px;top:"+t+"px;left:0;right:0;"+(o||""))},o);function o(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}e.prototype.$padding=0,t.Marker=e}),define("ace/layer/text_util",["require","exports","module"],function(e,t,n){var i=new Set(["text","rparen","lparen"]);t.isTextToken=function(e){return i.has(e)}}),define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(e,t,n){var i=e("../lib/oop"),c=e("../lib/dom"),y=e("../lib/lang"),o=e("./lines").Lines,r=e("../lib/event_emitter").EventEmitter,v=e("../config").nls,b=e("./text_util").isTextToken,e=(a.prototype.$updateEolChar=function(){var e=this.session.doc,e="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},a.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},a.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},a.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},a.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},a.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},a.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},a.prototype.setSession=function(e){(this.session=e)&&this.$computeTabString()},a.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&("string"==typeof(this.showInvisibles=e)?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},a.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},a.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e)},a.prototype.$computeTabString=function(){for(var e,t,n,i,o,r,a=this.session.getTabSize(),s=(this.tabSize=a,this.$tabStrings=[0]),l=1;l<a+1;l++)this.showTabs?((r=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",r.textContent=y.stringRepeat(this.TAB_CHAR,l),s.push(r)):s.push(this.dom.createTextNode(y.stringRepeat(" ",l),this.element));this.displayIndentGuides&&(this.$indentGuideRe=/\s\S| \t|\t |\s$/,e="ace_indent-guide",t=this.showSpaces?" ace_invisible ace_invisible_space":"",n=this.showSpaces?y.stringRepeat(this.SPACE_CHAR,this.tabSize):y.stringRepeat(" ",this.tabSize),i=this.showTabs?" ace_invisible ace_invisible_tab":"",o=this.showTabs?y.stringRepeat(this.TAB_CHAR,this.tabSize):n,(r=this.dom.createElement("span")).className=e+t,r.textContent=n,this.$tabStrings[" "]=r,(r=this.dom.createElement("span")).className=e+i,r.textContent=o,this.$tabStrings["\t"]=r)},a.prototype.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var i=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),r=this.element.childNodes,a=0,s=e.firstRow;s<i;s++){if(l=this.session.getFoldLine(s)){if(l.containsRow(i)){i=l.start.row;break}s=l.end.row}a++}for(var l,c=!1,s=i,u=(l=this.session.getNextFoldLine(s))?l.start.row:1/0;u<s&&(s=l.end.row+1,u=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(o<s);){var d,h=r[a++];h&&(this.dom.removeChildren(h),this.$renderLine(h,s,s==u&&l),c&&(h.style.top=this.$lines.computeLineTop(s,e,this.session)+"px"),d=e.lineHeight*this.session.getRowLength(s)+"px",h.style.height!=d)&&(c=!0,h.style.height=d),s++}if(c)for(;a<this.$lines.cells.length;){var p=this.$lines.cells[a++];p.element.style.top=this.$lines.computeLineTop(p.row,e,this.session)+"px"}},a.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,i=t?t.lastRow:-1;if(!t||i<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<o;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<o;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},a.prototype.$renderLinesFragment=function(e,t,n){for(var i=[],o=t,r=this.session.getNextFoldLine(o),a=r?r.start.row:1/0;a<o&&(o=r.end.row+1,a=(r=this.session.getNextFoldLine(o,r))?r.start.row:1/0),!(n<o);){var s=this.$lines.createCell(o,e,this.session),l=s.element;this.dom.removeChildren(l),c.setStyle(l.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),c.setStyle(l.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(l,o,o==a&&r),this.$useLineGroups()?l.className="ace_line_group":l.className="ace_line",i.push(s),o++}return i},a.prototype.update=function(e){this.$lines.moveContainer(e);for(var t=(this.config=e).firstRow,n=e.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(e,t,n))},a.prototype.$renderToken=function(e,t,n,i){for(var o,r,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;o=s.exec(i);){var u,d,h=o[1],p=o[2],f=o[3],g=o[4],m=o[5];!a.showSpaces&&p||(u=c!=o.index?i.slice(c,o.index):"",c=o.index+o[0].length,u&&l.appendChild(this.dom.createTextNode(u,this.element)),h?(u=a.session.getScreenTabSize(t+o.index),l.appendChild(a.$tabStrings[u].cloneNode(!0)),t+=u-1):p?a.showSpaces?((d=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",d.textContent=y.stringRepeat(a.SPACE_CHAR,p.length),l.appendChild(d)):l.appendChild(this.dom.createTextNode(p,this.element)):f?((d=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",d.textContent=y.stringRepeat(a.SPACE_CHAR,f.length),l.appendChild(d)):g?(t+=1,(d=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",d.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",d.textContent=a.showSpaces?a.SPACE_CHAR:g,l.appendChild(d)):m&&(t+=1,(d=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",d.className="ace_cjk",d.textContent=m,l.appendChild(d)))}return l.appendChild(this.dom.createTextNode(c?i.slice(c):i,this.element)),b(n.type)?e.appendChild(l):(r="ace_"+n.type.replace(/\./g," ace_"),d=this.dom.createElement("span"),"fold"==n.type&&(d.style.width=n.value.length*this.config.characterWidth+"px",d.setAttribute("title",v("Unfold code"))),d.className=r,d.appendChild(l),e.appendChild(d)),t+i.length},a.prototype.renderIndentGuide=function(e,t,n){var i=t.search(this.$indentGuideRe);if(i<=0||n<=i)return t;if(" "==t[0])for(var o=(i-=i%this.tabSize)/this.tabSize,r=0;r<o;r++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));else{if("\t"!=t[0])return this.$highlightIndentGuide(),t;for(r=0;r<i;r++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0))}return this.$highlightIndentGuide(),t.substr(i)},a.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,i=Math.floor(n/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:i,start:t.row},this.session.$bracketHighlight)for(var o=this.session.$bracketHighlight.ranges,r=0;r<o.length;r++)if(t.row!==o[r].start.row){this.$highlightIndentGuideMarker.end=o[r].start.row,t.row>o[r].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(r=t.row+1;r<e.length;r++){var a=e[r],s=/^\s*/.exec(a)[0].length;if(""!==a&&(this.$highlightIndentGuideMarker.end=r,s<=n))break}}this.$renderHighlightIndentGuide()}}},a.prototype.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,t=0;t<e.length;t++){var n=e[t].element.childNodes;if(0<n.length)for(var i=0;i<n.length;i++)if(n[i].classList&&n[i].classList.contains("ace_indent-guide-active")){n[i].classList.remove("ace_indent-guide-active");break}}},a.prototype.$setIndentGuideActive=function(e,t){""!==this.session.doc.getLine(e.row)&&(e=e.element.childNodes)&&(e=e[t-1])&&e.classList&&e.classList.contains("ace_indent-guide")&&e.classList.add("ace_indent-guide-active")},a.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells,t=(this.$clearActiveIndentGuide(),this.$highlightIndentGuideMarker.indentLevel);if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var i=e[n];if(this.$highlightIndentGuideMarker.end&&i.row>=this.$highlightIndentGuideMarker.start+1){if(i.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}else for(n=e.length-1;0<=n;n--){i=e[n];if(this.$highlightIndentGuideMarker.end&&i.row<this.$highlightIndentGuideMarker.start){if(i.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(i,t)}}}},a.prototype.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},a.prototype.$renderWrappedLine=function(e,t,n){var i=0,o=0,r=n[0],a=0,s=this.$createLineElement();e.appendChild(s);for(var l=0;l<t.length;l++){var c=t[l],u=c.value;if(0==l&&this.displayIndentGuides){if(i=u.length,!(u=this.renderIndentGuide(s,u,r)))continue;i-=u.length}if(i+u.length<r)a=this.$renderToken(s,a,c,u),i+=u.length;else{for(;i+u.length>=r;)a=this.$renderToken(s,a,c,u.substring(0,r-i)),u=u.substring(r-i),i=r,s=this.$createLineElement(),e.appendChild(s),s.appendChild(this.dom.createTextNode(y.stringRepeat(" ",n.indent),this.element)),a=0,r=n[++o]||Number.MAX_VALUE;0!=u.length&&(i+=u.length,a=this.$renderToken(s,a,c,u))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(s,a,null,"",!0)},a.prototype.$renderSimpleLine=function(e,t){for(var n=0,i=0;i<t.length;i++){var o=t[i],r=o.value;if(0!=i||!this.displayIndentGuides||(r=this.renderIndentGuide(e,r))){if(n+r.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,o,r);n=this.$renderToken(e,n,o,r)}}},a.prototype.$renderOverflowMessage=function(e,t,n,i,o){n&&this.$renderToken(e,t,n,i.slice(0,this.MAX_LINE_LENGTH-t));n=this.dom.createElement("span");n.className="ace_inline_button ace_keyword ace_toggle_wrap",n.textContent=o?"<hide>":"<click to see more...>",e.appendChild(n)},a.prototype.$renderLine=function(e,t,n){var i,o,r=e;(i=(n=n||0==n?n:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,n):this.session.getTokens(t)).length?(o=this.session.getRowSplitData(t))&&o.length?(this.$renderWrappedLine(e,i,o),r=e.lastChild):(r=e,this.$useLineGroups()&&(r=this.$createLineElement(),e.appendChild(r)),this.$renderSimpleLine(r,i)):this.$useLineGroups()&&(r=this.$createLineElement(),e.appendChild(r)),this.showEOL&&r&&(n&&(t=n.end.row),(o=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",o.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,r.appendChild(o))},a.prototype.$getFoldLineTokens=function(e,t){var d=this.session,h=[],p=d.getTokens(e);return t.walk(function(e,t,n,i,o){if(null!=e)h.push({type:"fold",value:e});else if((p=o?d.getTokens(t):p).length){for(var r,a=p,s=i,l=n,c=0,u=0;u+a[c].value.length<s;)if(u+=a[c].value.length,++c==a.length)return;for(u!=s&&((r=a[c].value.substring(s-u)).length>l-s&&(r=r.substring(0,l-s)),h.push({type:a[c].type,value:r}),u=s+r.length,c+=1);u<l&&c<a.length;)(r=a[c].value).length+u>l?h.push({type:a[c].type,value:r.substring(0,l-u)}):h.push(a[c]),u+=r.length,c+=1}},t.end.row,this.session.getLine(t.end.row).length),h},a.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},a);function a(e){this.dom=c,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new o(this.element)}e.prototype.EOF_CHAR="¶",e.prototype.EOL_CHAR_LF="¬",e.prototype.EOL_CHAR_CRLF="¤",e.prototype.EOL_CHAR=e.prototype.EOL_CHAR_LF,e.prototype.TAB_CHAR="—",e.prototype.SPACE_CHAR="·",e.prototype.$padding=0,e.prototype.MAX_LINE_LENGTH=1e4,e.prototype.showInvisibles=!1,e.prototype.showSpaces=!1,e.prototype.showTabs=!1,e.prototype.showEOL=!1,e.prototype.displayIndentGuides=!0,e.prototype.$highlightIndentGuides=!0,e.prototype.$tabStrings=[],e.prototype.destroy={},e.prototype.onChangeTabSize=e.prototype.$computeTabString,i.implement(e.prototype,r),t.Text=e}),define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,n){var c=e("../lib/dom"),e=(i.prototype.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)c.setStyle(t[n].style,"opacity",e?"":"0")},i.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&c.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},i.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,c.removeCssClass(this.element,"ace_animate-blinking")},i.prototype.setPadding=function(e){this.$padding=e},i.prototype.setSession=function(e){this.session=e},i.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},i.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},i.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,c.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},i.prototype.addCursor=function(){var e=c.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},i.prototype.removeCursor=function(){var e;if(1<this.cursors.length)return(e=this.cursors.pop()).parentNode.removeChild(e),e},i.prototype.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},i.prototype.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},i.prototype.restartTimer=function(){var e,t=this.$updateCursors;clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,c.removeCssClass(this.element,"ace_smooth-blinking")),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible?(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),c.HAS_CSS_ANIMATION?this.$startCssAnimation():(e=function(){this.timeoutId=setTimeout(function(){t(!1)},.6*this.blinkInterval)}.bind(this),this.intervalId=setInterval(function(){t(!0),e()},this.blinkInterval),e())):this.$stopCssAnimation()},i.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e=e||this.session.selection.getCursor();var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},i.prototype.isCursorInView=function(e,t){return 0<=e.top&&e.top<t.maxHeight},i.prototype.update=function(e){this.config=e;for(var t=this.session.$selectionMarkers,n=0,i=0,n=0,o=(t=void 0!==t&&0!==t.length?t:[{cursor:null}]).length;n<o;n++){var r,a,s=this.getPixelPosition(t[n].cursor,!0);(s.top>e.height+e.offset||s.top<0)&&1<n||(a=(r=this.cursors[i++]||this.addCursor()).style,this.drawCursor?this.drawCursor(r,s,e,t[n],this.session):this.isCursorInView(s,e)?(c.setStyle(a,"display","block"),c.translate(r,s.left,s.top),c.setStyle(a,"width",Math.round(e.characterWidth)+"px"),c.setStyle(a,"height",e.lineHeight+"px")):c.setStyle(a,"display","none"))}for(;this.cursors.length>i;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=s,this.restartTimer()},i.prototype.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},i.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},i);function i(e){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}e.prototype.$padding=0,e.prototype.drawCursor=null,t.Cursor=e}),define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=e("./lib/oop"),a=e("./lib/dom"),s=e("./lib/event"),e=e("./lib/event_emitter").EventEmitter,l=(c.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},c);function c(e,t){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+t,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}r.implement(l.prototype,e);o(d,u=l),d.prototype.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(e){this.element.style.height=e+"px"},d.prototype.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},d.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)};var u,r=d;function d(e,t){var n=u.call(this,e,"-v")||this;return n.scrollTop=0,n.scrollHeight=0,t.$scrollbarWidth=n.width=a.scrollbarWidth(e.ownerDocument),n.inner.style.width=n.element.style.width=(n.width||15)+5+"px",n.$minWidth=0,n}r.prototype.setInnerHeight=r.prototype.setScrollHeight;o(p,h=l),p.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},p.prototype.getHeight=function(){return this.isVisible?this.height:0},p.prototype.setWidth=function(e){this.element.style.width=e+"px"},p.prototype.setInnerWidth=function(e){this.inner.style.width=e+"px"},p.prototype.setScrollWidth=function(e){this.inner.style.width=e+"px"},p.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)};var h,e=p;function p(e,t){e=h.call(this,e,"-h")||this;return e.scrollLeft=0,e.height=t.$scrollbarWidth,e.inner.style.height=e.element.style.height=(e.height||15)+5+"px",e}t.ScrollBar=r,t.ScrollBarV=r,t.ScrollBarH=e,t.VScrollBar=r,t.HScrollBar=e}),define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){var i,o=this&&this.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)},function(e,t){function n(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=e("./lib/oop"),a=e("./lib/dom"),s=e("./lib/event"),e=e("./lib/event_emitter").EventEmitter,l=(a.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n  position: absolute;\n  background: rgba(128, 128, 128, 0.6);\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n  border: 1px solid #bbb;\n  border-radius: 2px;\n  z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n  position: absolute;\n  z-index: 6;\n  background: none;\n  overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n  z-index: 6;\n  right: 0;\n  top: 0;\n  width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n  z-index: 8;\n  right: 0;\n  width: 100%;\n}\n.ace_editor>.ace_sb-h {\n  bottom: 0;\n  left: 0;\n  height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n  bottom: 0;\n  height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n  z-index: 8;\n  background: #000;\n}","ace_scrollbar.css",!1),c.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},c);function c(e,t){this.element=a.createElement("div"),this.element.className="ace_sb"+t,this.inner=a.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}r.implement(l.prototype,e);o(d,u=l),d.prototype.onMouseDown=function(e,t){var n,i,o,r,a;if("mousedown"===e&&(0===s.getButton(t)&&2!==t.detail))return t.target===this.inner?(n=this,i=t.clientY,o=t.clientY,r=this.thumbTop,s.capture(this.inner,function(e){i=e.clientY},function(){clearInterval(a)}),a=setInterval(function(){var e;void 0!==i&&(e=n.scrollTopFromThumbTop(r+i-o))!==n.scrollTop&&n._emit("scroll",{data:e})},20)):(e=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2,this._emit("scroll",{data:this.scrollTopFromThumbTop(e)})),s.preventDefault(t)},d.prototype.getHeight=function(){return this.height},d.prototype.scrollTopFromThumbTop=function(e){e=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(e>>=0)<0?e=0:e>this.pageHeight-this.viewHeight&&(e=this.pageHeight-this.viewHeight),e},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},d.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight)&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop}))},d.prototype.setScrollTop=function(e){this.scrollTop=e,this.thumbTop=(e=e<0?0:e)*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"};var u,r=d;function d(e,t){var n=u.call(this,e,"-v")||this;return n.scrollTop=0,n.scrollHeight=0,n.parent=e,n.width=n.VScrollWidth,n.renderer=t,n.inner.style.width=n.element.style.width=(n.width||15)+"px",n.$minWidth=0,n}r.prototype.setInnerHeight=r.prototype.setScrollHeight;o(p,h=l),p.prototype.onMouseDown=function(e,t){var n,i,o,r,a;if("mousedown"===e&&(0===s.getButton(t)&&2!==t.detail))return t.target===this.inner?(n=this,i=t.clientX,o=t.clientX,r=this.thumbLeft,s.capture(this.inner,function(e){i=e.clientX},function(){clearInterval(a)}),a=setInterval(function(){var e;void 0!==i&&(e=n.scrollLeftFromThumbLeft(r+i-o))!==n.scrollLeft&&n._emit("scroll",{data:e})},20)):(e=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2,this._emit("scroll",{data:this.scrollLeftFromThumbLeft(e)})),s.preventDefault(t)},p.prototype.getHeight=function(){return this.isVisible?this.height:0},p.prototype.scrollLeftFromThumbLeft=function(e){e=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(e>>=0)<0?e=0:e>this.pageWidth-this.viewWidth&&(e=this.pageWidth-this.viewWidth),e},p.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},p.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth)&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft}))},p.prototype.setScrollLeft=function(e){this.scrollLeft=e,this.thumbLeft=(e=e<0?0:e)*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"};var h,e=p;function p(e,t){e=h.call(this,e,"-h")||this;return e.scrollLeft=0,e.scrollWidth=0,e.height=e.HScrollHeight,e.inner.style.height=e.element.style.height=(e.height||12)+"px",e.renderer=t,e}e.prototype.setInnerWidth=e.prototype.setScrollWidth,t.ScrollBar=r,t.ScrollBarV=r,t.ScrollBarH=e,t.VScrollBar=r,t.HScrollBar=e}),define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,n){var i=e("./lib/event");function o(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;t&&(i.blockIdle(100),n.changes=0,n.onRender(t)),n.changes?n.$recursionLimit--<0||n.schedule():n.$recursionLimit=2}}o.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(i.nextFrame(this._flush),this.pending=!0)},o.prototype.clear=function(e){var t=this.changes;return this.changes=0,t},t.RenderLoop=o}),define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,n){var i=e("../lib/oop"),o=e("../lib/dom"),r=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),e=e("../lib/event_emitter").EventEmitter,l="function"==typeof ResizeObserver,c=(u.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},u.prototype.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},u.prototype.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver(function(e){t.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},u.prototype.$pollSizeChanges=function(){var t;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(t=this).$pollSizeChangesTimer=a.onIdle(function e(){t.checkForSizeChanges(),a.onIdle(e,500)},500)},u.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},u.prototype.$measureSizes=function(e){e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/512};return 0===e.width||0===e.height?null:e},u.prototype.$measureCharWidth=function(e){return this.$main.textContent=r.stringRepeat(e,512),this.$main.getBoundingClientRect().width/512},u.prototype.getCharacterWidth=function(e){var t=this.charSizes[e];return t=void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},u.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},u.prototype.$getZoom=function(e){return e&&e.parentElement?(window.getComputedStyle(e).zoom||1)*this.$getZoom(e.parentElement):1},u.prototype.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=o.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},u.prototype.transformCoordinates=function(e,t){function n(e,t,n){var i=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/i,(+e[1]*n[0]-e[0]*n[1])/i]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function r(e,t){return[e*t[0],e*t[1]]}function a(e){e=e.getBoundingClientRect();return[e.left,e.top]}e=e&&r(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var s,l=a(this.els[0]),c=a(this.els[1]),u=a(this.els[2]),d=a(this.els[3]),d=n(i(d,c),i(d,u),i(o(c,u),o(d,l))),c=r(1+d[0],i(c,l)),u=r(1+d[1],i(u,l));return t?(s=d[0]*t[0]/200+d[1]*t[1]/200+1,t=o(r(t[0],c),r(t[1],u)),o(r(1/s/200,t),l)):(s=i(e,l),t=n(i(c,r(d[0],s)),i(u,r(d[1],s)),s),r(200,t))},u);function u(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=r.stringRepeat("X",512),this.$characterSize={width:0,height:0},l?this.$addObserver():this.checkForSizeChanges()}c.prototype.$characterSize={width:0,height:0},i.implement(c.prototype,e),t.FontMetrics=c}),define("ace/css/editor-css",["require","exports","module"],function(e,t,n){n.exports='\n.ace_br1 {border-top-left-radius    : 3px;}\n.ace_br2 {border-top-right-radius   : 3px;}\n.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}\n.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}\n.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}\n.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}\n.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}\n.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n    position: relative;\n    overflow: hidden;\n    padding: 0;\n    font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n    direction: ltr;\n    text-align: left;\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n    position: absolute;\n    overflow: hidden;\n    top: 0;\n    bottom: 0;\n    background-color: inherit;
13\n    -ms-user-select: none;\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    cursor: text;\n}\n\n.ace_content {\n    position: absolute;\n    box-sizing: border-box;\n    min-width: 100%;\n    contain: style size layout;\n    font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n    box-shadow: inset 0 0 0 2px #5E9ED6;\n    outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    content: \'\';\n    background: rgba(250, 250, 250, 0.01);\n    z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n    background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n    position: absolute;\n    overflow : hidden;\n    width: auto;\n    top: 0;\n    bottom: 0;\n    left: 0;\n    cursor: default;\n    z-index: 4;\n    -ms-user-select: none;\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    contain: style size layout;\n}\n\n.ace_gutter-active-line {\n    position: absolute;\n    left: 0;\n    right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n    content: "";\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n    pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    padding-left: 19px;\n    padding-right: 6px;\n    background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n    margin-left: -14px;\n    float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n    margin-left: -19px;\n    float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitm
13k2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n    background-repeat: no-repeat;\n    background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n    background-repeat: no-repeat;\n    background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n    background-repeat: no-repeat;\n    background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n    background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n    background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n    background-color: royalblue;\n}\n\n.ace_icon_svg.ace_error_fold {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n    background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43N
13DQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n    background-color: darkorange;\n}\n\n.ace_scrollbar {\n    contain: strict;\n    position: absolute;\n    right: 0;\n    bottom: 0;\n    z-index: 6;\n}\n\n.ace_scrollbar-inner {\n    position: absolute;\n    cursor: text;\n    left: 0;\n    top: 0;\n}\n\n.ace_scrollbar-v{\n    overflow-x: hidden;\n    overflow-y: scroll;\n    top: 0;\n}\n\n.ace_scrollbar-h {\n    overflow-x: scroll;\n    overflow-y: hidden;\n    left: 0;\n}\n\n.ace_print-margin {\n    position: absolute;\n    height: 100%;\n}\n\n.ace_text-input {\n    position: absolute;\n    z-index: 0;\n    width: 0.5em;\n    height: 1em;\n    opacity: 0;\n    background: transparent;\n    -moz-appearance: none;\n    appearance: none;\n    border: none;\n    resize: none;\n    outline: none;\n    overflow: hidden;\n    font: inherit;\n    padding: 0 1px;\n    margin: 0 -1px;\n    contain: strict;\n    -ms-user-select: text;\n    -moz-user-select: text;\n    -webkit-user-select: text;\n    user-select: text;\n    /*with `pre-line` chrome inserts &nbsp; instead of space*/\n    white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n    background: transparent;\n    color: inherit;\n    z-index: 1000;\n    opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n    border-bottom: 1px solid;\n    position: absolute;\n    border-radius: 0;
13\n    margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n    transform: none!important;\n    filter: none!important;\n    clip-path: none!important;\n    mask : none!important;\n    contain: none!important;\n    perspective: none!important;\n    mix-blend-mode: initial!important;\n    z-index: auto;\n}\n\n.ace_layer {\n    z-index: 1;\n    position: absolute;\n    overflow: hidden;\n    /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n    word-wrap: normal;\n    white-space: pre;\n    height: 100%;\n    width: 100%;\n    box-sizing: border-box;\n    /* setting pointer-events: auto; on node under the mouse, which changes\n        during scroll, will break mouse wheel scrolling in Safari */\n    pointer-events: none;\n}\n\n.ace_gutter-layer {\n    position: relative;\n    width: auto;\n    text-align: right;\n    pointer-events: auto;\n    height: 1000000px;\n    contain: style size layout;\n}\n\n.ace_text-layer {\n    font: inherit !important;\n    position: absolute;\n    height: 1000000px;\n    width: 1000000px;\n    contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n    contain: style size layout;\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n    contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n    contain: strict;\n}\n\n.ace_cjk {\n    display: inline-block;\n    text-align: center;\n}\n\n.ace_cursor-layer {\n    z-index: 4;\n}\n\n.ace_cursor {\n    z-index: 4;\n    position: absolute;\n    box-sizing: border-box;\n    border-left: 2px solid;\n    /* workaround for smooth cursor repaintng whole screen in chrome */\n    transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n    border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n    border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n    border-left-width: 0;\n    border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n    opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n    opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n    transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n    animation-duration: 1000ms;\n    animation-timing-function: step-end;\n    animation-name: blink-ace-animate;\n    animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n    animation-duration: 1000ms;\n    animation-timing-function: ease-in-out;\n    animation-name: blink-ace-animate-smooth;\n}\n    \n@keyframes blink-ace-animate {\n    from, to { opacity: 1; }\n    60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n    from, to { opacity: 1; }\n    45% { opacity: 1; }\n    60% { opacity: 0; }\n    85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n    position: absolute;\n    z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n    position: absolute;\n    z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n    position: absolute;\n    z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n    position: absolute;\n    border-bottom: 1px solid #DE5555;\n    border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n    position: absolute;\n    z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n    position: absolute;\n    z-index: 4;\n    box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n    box-sizing: border-box;\n\n    display: inline-block;\n    height: 11px;\n    margin-top: -2px;\n    vertical-align: middle;\n\n    background-image:\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n    background-repeat: no-repeat, repeat-x;\n    background-position: center center, top left;\n    color: transparent;\n\n    border: 1px solid black;\n    border-radius: 2px;\n\n    cursor: pointer;\n    pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n    background-image:\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n    background-color: #f5f5f5;\n    border: 1px solid gray;\n    border-radius: 1px;\n    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n    color: black;\n    max-width: 100%;\n    padding: 3px 4px;\n    position: fixed;\n    z-index: 999999;\n    box-sizing: border-box;\n    cursor: default;\n    white-space: pre-wrap;\n    word-wrap: break-word;\n    line-height: normal;\n    font-style: normal;\n    font-weight: normal;\n    letter-spacing: normal;\n    pointer-events: none;\n    overflow: auto;\n    max-width: min(60em, 66vw);\n    overscroll-behavior: contain;\n}\n.ace_tooltip pre {\n    white-space: pre-wrap;\n}\n\n.ace_tooltip.ace_dark {\n    background-color: #636363;\n    color: #fff;\n}\n\n.ace_tooltip:focus {\n    outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n    display: inline-block;\n    width: 18px;\n    vertical-align: top;\n}\n\n.ace_icon_svg {\n    display: inline-block;\n    width: 12px;\n    vertical-align: top;\n    -webkit-mask-repeat: no-repeat;\n    -webkit-mask-size: 12px;\n    -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n    padding-right: 13px;\n}\n\n.ace_fold-widget {\n    box-sizing: border-box;\n\n    margin: 0 -12px 0 1px;\n    display: none;\n    width: 11px;\n    vertical-align: top;\n\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVo
13DBUxKAAAAABJRU5ErkJggg==");\n    background-repeat: no-repeat;\n    background-position: center;\n\n    border-radius: 3px;\n    \n    border: 1px solid transparent;\n    cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n    display: inline-block;   \n}\n\n.ace_fold-widget.ace_end {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n    border: 1px solid rgba(0, 0, 0, 0.3);\n    background-color: rgba(255, 255, 255, 0.2);\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n    border: 1px solid rgba(0, 0, 0, 0.4);\n    background-color: rgba(0, 0, 0, 0.05);\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n    background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n    border: 1px solid lightgray;\n    display: inline-block;\n    margin: -1px 8px;\n    padding: 0 5px;\n    pointer-events: auto;\n    cursor: pointer;\n}\n.ace_inline_button:hover {\n    border-color: gray;\n    background: rgba(200,200,200,0.2);\n    display: inline-block;\n    pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n    background-color: #FFB4B4;\n    border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n    transition: opacity 0.4s ease 0.05s;\n    opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n    transition: opacity 0.05s ease 0.05s;\n    opacity:1;\n}\n\n.ace_underline {\n    text-decoration: underline;\n}\n\n.ace_bold {\n    font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n    font-weight: normal;\n}\n\n.ace_italic {\n    font-style: italic;\n}\n\n\n.ace_error-marker {\n    background-color: rgba(255, 0, 0,0.2);\n    position: absolute;\n    z-index: 9;\n}\n\n.ace_highlight-marker {\n    background-color: rgba(255, 255, 0,0.2);\n    position: absolute;\n    z-index: 8;\n}\n\n.ace_mobile-menu {\n    position: absolute;\n    line-height: 1.5;\n    border-radius: 4px;\n    -ms-user-select: none;\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    background: white;\n    box-shadow: 1px 3px 2px grey;\n    border: 1px solid #dcdcdc;\n    color: black;\n}\n.ace_dark > .ace_mobile-menu {\n    background: #333;\n    color: #ccc;\n    box-shadow: 1px 3px 2px grey;\n    border: 1px solid #444;\n\n}\n.ace_mobile-button {\n    padding: 2px;\n    cursor: pointer;\n    overflow: hidden;\n}\n.ace_mobile-button:hover {\n    background-color: #eee;\n    opacity:1;\n}\n.ace_mobile-button:active {\n    background-color: #ddd;\n}\n\n.ace_placeholder {\n    font-family: arial;\n    transform: scale(0.9);\n    transform-origin: left;\n    white-space: pre;\n    opacity: 0.7;\n    margin: 0 10px;\n}\n\n.ace_ghost_text {\n    opacity: 0.5;\n    font-style: italic;\n    white-space: pre;\n}\n\n.ace_screenreader-only {\n    position:absolute;\n    left:-10000px;\n    top:auto;\n    width:1px;\n    height:1px;\n    overflow:hidden;\n}'}),define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,t,n){var i=e("../lib/dom"),o=e("../lib/oop"),e=e("../lib/event_emitter").EventEmitter,r=(a.prototype.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light,n=(e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)
13*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight),this.canvas.getContext("2d")),i=this.renderer.session.$annotations;if(n.clearRect(0,0,this.canvas.width,this.canvas.height),i)for(var o={info:1,warning:2,error:3},r=(i.forEach(function(e){e.priority=o[e.type]||null}),i=i.sort(function(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}),this.renderer.session.$foldData),a=0;a<i.length;a++){var s,l=i[a].row,c=this.compensateFoldRows(l,r),u=Math.round((l-c)*this.lineHeight*this.heightRatio),d=Math.round((l-c)*this.lineHeight*this.heightRatio),l=Math.round(((l-c)*this.lineHeight+this.lineHeight)*this.heightRatio);l-d<this.minDecorationHeight&&((s=(d+l)/2|0)<this.halfMinDecorationHeight?s=this.halfMinDecorationHeight:s+this.halfMinDecorationHeight>this.canvasHeight&&(s=this.canvasHeight-this.halfMinDecorationHeight),d=Math.round(s-this.halfMinDecorationHeight),l=Math.round(s+this.halfMinDecorationHeight)),n.fillStyle=t[i[a].type]||null,n.fillRect(0,u,this.canvasWidth,l-d)}e=this.renderer.session.selection.getCursor();e&&(c=this.compensateFoldRows(e.row,r),u=Math.round((e.row-c)*this.lineHeight*this.heightRatio),n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,u,this.canvasWidth,2))},a.prototype.compensateFoldRows=function(e,t){var n=0;if(t&&0<t.length)for(var i=0;i<t.length;i++)e>t[i].start.row&&e<t[i].end.row?n+=e-t[i].start.row:e>=t[i].end.row&&(n+=t[i].end.row-t[i].start.row);return n},a);function a(e,t){this.canvas=i.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)}o.implement(r.prototype,e),t.Decorator=r}),define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(e,t,n){var i=e("./lib/oop"),s=e("./lib/dom"),o=e("./lib/lang"),r=e("./config"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,u=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./scrollbar_custom").HScrollBar,f=e("./scrollbar_custom").VScrollBar,g=e("./renderloop").Ren
vendor: 67,795 bytes, line 13
13derLoop,m=e("./layer/font_metrics").FontMetrics,y=e("./lib/event_emitter").EventEmitter,v=e("./css/editor-css"),b=e("./layer/decorators").Decorator,w=e("./lib/useragent"),e=(s.importCssString(v,"ace_editor.css",!1),x.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},x.prototype.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},x.prototype.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},x.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},x.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},x.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},x.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},x.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},x.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},x.prototype.onResize=function(e,t,n,i){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var o=this.container,o=(i=i||o.clientHeight||o.scrollHeight,n=n||o.clientWidth||o.scrollWidth,this.$updateCachedSize(e,t,n,i));if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},x.prototype.$updateCachedSize=function(e,t,n,i){i-=this.$extraHeight||0;var o=0,r=this.$size,a={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};return i&&(e||r.height!=i)&&(r.height=i,o|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(r.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||r.width!=n)&&(o|=this.CHANGE_SIZE,r.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,s.setStyle(this.scrollBarH.element.style,"left",t+"px"),s.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),s.setStyle(this.$gutter.style,"left",this.margin.left+"px"),t=this.scrollBarV.getWidth()+"px",s.setStyle(this.scrollBarH.element.style,"right",t),s.setStyle(this.scroller.style,"right",t),s.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(r.scrollerWidth),this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL),r.$dirty=!n||!i,o&&this._signal("resize",a),o},x.prototype.onGutterResize=function(e){e=this.$showGutter?e:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},x.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,e=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},x.prototype.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},x.prototype.getAnimatedScroll=function(){return this.$animatedScroll},x.prototype.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},x.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},x.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},x.prototype.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},x.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},x.prototype.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},x.prototype.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},x.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},x.prototype.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},x.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},x.prototype.getShowGutter=function(){return this.getOption("showGutter")},x.prototype.setShowGutter=function(e){return this.setOption("showGutter",e)},x.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},x.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},x.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},x.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},x.prototype.$updatePrintMargin=function(){var e;(this.$showPrintMargin||this.$printMarginEl)&&(this.$printMarginEl||((e=s.createElement("div")).className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)),(e=this.$printMarginEl.style).left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session)&&-1==this.session.$wrap&&this.adjustWrapLimit()},x.prototype.getContainerElement=function(){return this.container},x.prototype.getMouseEventTarget=function(){return this.scroller},x.prototype.getTextAreaContainer=function(){return this.container},x.prototype.$moveTextAreaToCursor=function(){var e,t,n,i,o,r,a;this.$isMousePressed||(e=this.textarea.style,r=this.$composition,this.$keepTextAreaAtCursor||r?(n=this.$cursorLayer.$pixelPos)&&(r&&r.markerRange&&(n=this.$cursorLayer.getPixelPosition(r.markerRange.start,!0)),a=this.layerConfig,t=n.top,n=n.left,t-=a.offset,i=r&&r.useTextareaForIME||w.isMobile?this.lineHeight:1,t<0||t>a.height-i?s.translate(this.textarea,0,0):(a=1,o=this.$size.height-i,r?r.useTextareaForIME?(r=this.textarea.value,a=this.characterWidth*this.session.$getStringScreenWidth(r)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(n-=this.scrollLeft)>this.$size.scrollerWidth-a&&(n=this.$size.scrollerWidth-a),n+=this.gutterWidth+this.margin.left,s.setStyle(e,"height",i+"px"),s.setStyle(e,"width",a+"px"),s.translate(this.textarea,Math.min(n,this.$size.scrollerWidth-a),Math.min(t,o)))):s.translate(this.textarea,-100,0))},x.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},x.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},x.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},x.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},x.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},x.prototype.setScrollMargin=function(e,t,n,i){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},x.prototype.setMargin=function(e,t,n,i){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|i,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},x.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},x.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},x.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},x.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},x.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},x.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},x.prototype.freeze=function(){this.$frozen=!0},x.prototype.unfreeze=function(){this.$frozen=!1},x.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n,i,t=this.layerConfig;(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(n=this.scrollTop+(t.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight)&&(this.scrollTop=n,e=(e|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-t.offset),n=t.width+2*this.$padding+"px",i=t.minHeight+"px",s.setStyle(this.content.style,"width",n),s.setStyle(this.content.style,"height",i)),e&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility)&&(this.scroller.className+=this.keyboardFocusClassName),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(t),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(t)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),this.$customScrollbar)&&this.$scrollDecorator.$updateDecorators(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},x.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight());t=!((n=this.$maxPixelHeight&&n>this.$maxPixelHeight?this.$maxPixelHeight:n)<=2*this.lineHeight)&&t<e;n==this.desiredHeight&&this.$size.height==this.desiredHeight&&t==this.$vScroll||(t!=this.$vScroll&&(this.$vScroll=t,this.scrollBarV.setVisible(t)),e=this.container.clientWidth,this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,e,n),this.desiredHeight=n,this._signal("autosize"))},x.prototype.$computeLayerConfig=function(){var e,t=this.session,n=this.$size,i=n.height<=2*this.lineHeight,o=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),a=!i&&(this.$hScrollBarAlwaysVisible||n.scrollerWidth-r-2*this.$padding<0),s=this.$horizScroll!==a,a=(s&&(this.$horizScroll=a,this.scrollBarH.setVisible(a)),this.$vScroll),l=(this.$maxLines&&1<this.lineHeight&&this.$autosize(),n.scrollerHeight+this.lineHeight),c=!this.$maxLines&&this.$scrollPastEnd?(n.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0,u=(o+=c,this.scrollMargin),i=(this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,o-n.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,r+2*this.$padding-n.scrollerWidth+u.right))),!i&&(this.$vScrollBarAlwaysVisible||n.scrollerHeight-o+c<0||this.scrollTop>u.top)),c=a!==i,u=(c&&(this.$vScroll=i,this.scrollBarV.setVisible(i)),this.scrollTop%this.lineHeight),a=Math.ceil(l/this.lineHeight)-1,a=(i=Math.max(0,Math.round((this.scrollTop-u)/this.lineHeight)))+a,d=this.lineHeight,i=t.screenToDocumentRow(i,0),h=t.getFoldLine(i),t=(h&&(i=h.start.row),h=t.documentToScreenRow(i,0),e=t.getRowLength(i)*d,a=Math.min(t.screenToDocumentRow(a,0),t.getLength()-1),l=n.scrollerHeight+t.getRowLength(a)*d+e,u=this.scrollTop-h*d,0);return this.layerConfig.width==r&&!s||(t=this.CHANGE_H_SCROLL),(s||c)&&(t|=this.$updateCachedSize(!0,this.gutterWidth,n.width,n.height),this._signal("scrollbarVisibilityChanged"),c)&&(r=this.$getLongestLine()),this.layerConfig={width:r,padding:this.$padding,firstRow:i,firstRowScreen:h,lastRow:a,lineHeight:d,characterWidth:this.characterWidth,minHeight:l,maxHeight:o,offset:u,gutterOffset:d?Math.max(0,Math.ceil((u+n.height-n.scrollerHeight)/d)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),t},x.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,n=(this.$changedLines=null,this.layerConfig);if(!(e>n.lastRow+1||t<n.firstRow)){if(t!==1/0)return this.$textLayer.updateLines(n,e,t),!0;this.$showGutter&&this.$gutterLayer.update(n),this.$textLayer.update(n)}}},x.prototype.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},x.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},x.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},x.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},x.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},x.prototype.updateBreakpoints=function(e){this._rows=e,this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},x.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},x.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},x.prototype.showCursor=function(){this.$cursorLayer.showCursor()},x.prototype.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},x.prototype.scrollCursorIntoView=function(e,t,n){var i,o,r;0!==this.$size.scrollerHeight&&(i=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,o=n&&n.top||0,n=n&&n.bottom||0,this.$scrollAnimation&&(this.$stopAnimation=!0),e<(r=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+o?(t&&r+o>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):r+this.$size.scrollerHeight-n<e+this.lineHeight&&(t&&r+this.$size.scrollerHeight-n<e-this.lineHeight&&(e+=t*this.$size.scrollerHeight),this.session.setScrollTop(e+this.lineHeight+n-this.$size.scrollerHeight)),o=this.scrollLeft,i-(r=2*this.layerConfig.characterWidth)<o?((i-=r)<this.$padding+r&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):o+this.$size.scrollerWidth<(i+=r)+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):o<=this.$padding&&i-o<this.characterWidth&&this.session.setScrollLeft(0))},x.prototype.getScrollTop=function(){return this.session.getScrollTop()},x.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},x.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},x.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},x.prototype.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},x.prototype.alignCursor=function(e,t){var e=this.$cursorLayer.getPixelPosition(e="number"==typeof e?{row:e,column:0}:e),n=this.$size.scrollerHeight-this.lineHeight,e=e.top-n*(t||0);return this.session.setScrollTop(e),e},x.prototype.$calcSteps=function(e,t){for(var n,i,o=0,r=this.STEPS,a=[],o=0;o<r;++o)a.push((n=o/this.STEPS,(t-(i=e))*(Math.pow(n-1,3)+1)+i));return a},x.prototype.scrollToLine=function(e,t,n,i){e=this.$cursorLayer.getPixelPosition({row:e,column:0}).top,t&&(e-=this.$size.scrollerHeight/2),t=this.scrollTop;this.session.setScrollTop(e),!1!==n&&this.animateScrolling(t,i)},x.prototype.animateScrolling=function(e,t){function n(){o.$timer=clearInterval(o.$timer),o.$scrollAnimation=null,o.$stopAnimation=!1,t&&t()}var i=this.scrollTop;if(this.$animatedScroll){var o=this;if(e!=i){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r[0])==i)return}var a=o.$calcSteps(e,i);this.$scrollAnimation={from:e,to:i,steps:a},clearInterval(this.$timer),o.session.setScrollTop(a.shift()),o.session.$scrollTop=i,this.$timer=setInterval(function(){if(!o.$stopAnimation)return o.session?void(a.length?(o.session.setScrollTop(a.shift()),o.session.$scrollTop=i):null!=i?(o.session.$scrollTop=-1,o.session.setScrollTop(i),i=null):n()):clearInterval(o.$timer);n()},10)}}},x.prototype.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},x.prototype.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},x.prototype.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},x.prototype.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},x.prototype.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},x.prototype.pixelToScreenCoordinates=function(e,t){this.$hasCssTransforms?(i={top:0,left:0},e=(n=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=n[0]):i=this.scroller.getBoundingClientRect();var n=e+this.scrollLeft-i.left-this.$padding,e=n/this.characterWidth,t=Math.floor((t+this.scrollTop-i.top)/this.lineHeight),i=this.$blockCursor?Math.floor(e):Math.round(e);return{row:t,column:i,side:0<e-i?1:-1,offsetX:n}},x.prototype.screenToTextCoordinates=function(e,t){this.$hasCssTransforms?(n={top:0,left:0},e=(i=this.$fontMetrics.transformCoordinates([e,t]))[1]-this.gutterWidth-this.margin.left,t=i[0]):n=this.scroller.getBoundingClientRect();var n,i=e+this.scrollLeft-n.left-this.$padding,e=i/this.characterWidth,e=this.$blockCursor?Math.floor(e):Math.round(e),t=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(t,Math.max(e,0),i)},x.prototype.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),t=this.session.documentToScreenPosition(e,t),e=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,e)?this.session.$bidiHandler.getPosLeft(t.column):Math.round(t.column*this.characterWidth)),t=t.row*this.lineHeight;return{pageX:n.left+e-this.scrollLeft,pageY:n.top+t-this.scrollTop}},x.prototype.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},x.prototype.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},x.prototype.showComposition=function(e){(this.$composition=e).cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},x.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},x.prototype.hideComposition=function(){var e;this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),s.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,e=this.session.selection.cursor,this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display="")},x.prototype.setGhostText=function(e,t){var n,i=this.session.selection.cursor,t=t||{row:i.row,column:i.column},i=(this.removeGhostText(),e.split("\n"));this.addToken(i[0],"ghost_text",t.row,t.column),this.$ghostText={text:e,position:{row:t.row,column:t.column}},1<i.length&&(this.$ghostTextWidget={text:i.slice(1).join("\n"),row:t.row,column:t.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget),e=this.$cursorLayer.getPixelPosition(t,!0),t=this.container.getBoundingClientRect().height,(n=i.length*this.lineHeight)<t-e.top||(n<t?this.scrollBy(0,(i.length-1)*this.lineHeight):this.scrollBy(0,e.top)))},x.prototype.removeGhostText=function(){var e;this.$ghostText&&(e=this.$ghostText.position,this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null)},x.prototype.addToken=function(e,t,n,i){var o=this.session,r=(o.bgTokenizer.lines[n]=null,{type:t,value:e}),a=o.getTokens(n);if(null!=i&&a.length)for(var s=0,l=0;l<a.length;l++){var c=a[l];if(i<=(s+=c.value.length)){var u=c.value.length-(s-i),d=c.value.slice(0,u),u=c.value.slice(u);a.splice(l,1,{type:c.type,value:d},r,{type:c.type,value:u});break}}else a.push(r);this.updateLines(n,n)},x.prototype.removeExtraToken=function(e,t){this.session.bgTokenizer.lines[e]=null,this.updateLines(e,e)},x.prototype.setTheme=function(n,i){function e(e){if(o.$themeId!=n)return i&&i();if(!e||!e.cssClass)throw new Error("couldn't load module "+n+" or it didn't call define");e.$id&&(o.$themeId=e.$id),s.importCssString(e.cssText,e.cssClass,o.container),o.theme&&s.removeCssClass(o.container,o.theme.cssClass);var t="padding"in e?e.padding:"padding"in(o.theme||{})?4:o.$padding;o.$padding&&t!=o.$padding&&o.setPadding(t),o.$theme=e.cssClass,o.theme=e,s.addCssClass(o.container,e.cssClass),s.setCssClass(o.container,"ace_dark",e.isDark),o.$size&&(o.$size.width=0,o.$updateSizeAsync()),o._dispatchEvent("themeLoaded",{theme:e}),i&&i()}var t,o=this;this.$themeId=n,o._dispatchEvent("themeChange",{theme:n}),n&&"string"!=typeof n?e(n):(t=n||this.$options.theme.initialValue,r.loadModule(["theme",t],e))},x.prototype.getTheme=function(){return this.$themeId},x.prototype.setStyle=function(e,t){s.setCssClass(this.container,e,!1!==t)},x.prototype.unsetStyle=function(e){s.removeCssClass(this.container,e)},x.prototype.setCursorStyle=function(e){s.setStyle(this.scroller.style,"cursor",e)},x.prototype.setMouseCursor=function(e){s.setStyle(this.scroller.style,"cursor",e)},x.prototype.attachToShadowRoot=function(){s.importCssString(v,"ace_editor.css",this.container)},x.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},x.prototype.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new f(this.container,this),this.scrollBarH=new p(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)}),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)}))},x.prototype.$addResizeObserver=function(){var n;window.ResizeObserver&&!this.$resizeObserver&&((n=this).$resizeTimer=o.delayedCall(function(){n.destroyed||n.onResize()},50),this.$resizeObserver=new window.ResizeObserver(function(e){var t=e[0].contentRect.width,e=e[0].contentRect.height;1<Math.abs(n.$size.width-t)||1<Math.abs(n.$size.height-e)?n.$resizeTimer.delay():n.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container))},x);function x(e,t){var n=this,e=(this.container=e||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==r.get("useStrictCSP")&&r.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content),this.$textLayer=new c(this.content));this.canvas=e.element,this.$markerFront=new l(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),r.resetOptions(this),r._signal("renderer",this)}e.prototype.CHANGE_CURSOR=1,e.prototype.CHANGE_MARKER=2,e.prototype.CHANGE_GUTTER=4,e.prototype.CHANGE_SCROLL=8,e.prototype.CHANGE_LINES=16,e.prototype.CHANGE_TEXT=32,e.prototype.CHANGE_SIZE=64,e.prototype.CHANGE_MARKER_BACK=128,e.prototype.CHANGE_MARKER_FRONT=256,e.prototype.CHANGE_FULL=512,e.prototype.CHANGE_H_SCROLL=1024,e.prototype.$changes=0,e.prototype.$padding=null,e.prototype.$frozen=!1,e.prototype.STEPS=8,i.implement(e.prototype,y),r.defineOptions(e.prototype,"renderer",{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){s.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){this.$scrollPastEnd!=(e=+e||0)&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),t.VirtualRenderer=e}),define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(s,e,t){function l(e){var t;return"undefined"==typeof Worker?{postMessage:function(){},terminate:function(){}}:d.get("loadWorkerFromBlob")?(t=(t=>{t="importScripts('"+i.qualifyURL(t)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}})(e),t=(window.URL||window.webkitURL).createObjectURL(t),new Worker(t)):new Worker(e)}function c(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}var n=s("../lib/oop"),i=s("../lib/net"),u=s("../lib/event_emitter").EventEmitter,d=s("../config");(function(){n.implement(this,u),this.$createWorkerFromOldConfig=function(e,t,n,i,o){var r,a;return s.nameToUrl&&!s.toUrl&&(s.toUrl=s.nameToUrl),d.get("packaged")||!s.toUrl?i=i||d.moduleUrl(t,"worker"):(r=this.$normalizePath,i=i||r(s.toUrl("ace/worker/worker.js",null,"_")),a={},e.forEach(function(e){a[e]=r(s.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))})),this.$worker=l(i),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:a,module:t,classname:n}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){var i;n&&(i=this.callbackId++,this.callbacks[i]=n,t.push(i)),this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);e.UIWorkerClient=function(e,t,n){var i=null,o=!1,r=Object.create(u),a=[],s=new c({messageBuffer:a,terminate:function(){},postMessage:function(e){a.push(e),i&&(o?setTimeout(l):l())}}),l=(s.setEmitSync=function(e){o=e},function(){var e=a.shift();e.command?i[e.command].apply(i,e.args):e.event&&r._signal(e.event,e.data)});return r.postMessage=function(e){s.onMessage({data:e})},r.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},r.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},d.loadModule(["worker",t],function(e){for(i=new e[n](r);a.length;)l()}),s},e.WorkerClient=c,e.createWorker=l}),define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,n){var l=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,e=e("./lib/oop"),o=(r.prototype.setup=function(){var t=this,n=this.doc,e=this.session,i=(this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=n.createAnchor(this.$pos.row,this.$pos.column),this.pos);i.$insertRight=!0,i.detach(),i.markerId=e.addMarker(new l(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){e=n.createAnchor(e.row,e.column);e.$insertRight=!0,e.detach(),t.others.push(e)}),e.setUndoSelect(!1)},r.prototype.showOtherMarkers=function(){var t,n;this.othersActive||(t=this.session,(n=this).othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+n.length),n.othersClass,null,!1)}))},r.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},r.prototype.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var r=this.others.length-1;0<=r;r--){var a={row:(s=this.others[r]).row,column:s.column+o};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(r=this.others.length-1;0<=r;r--){var s,a={row:(s=this.others[r]).row,column:s.column+o};this.doc.remove(new l(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},r.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},r.prototype.updateMarkers=function(){if(!this.$updating){var n=this,i=this.session,e=function(e,t){i.removeMarker(e.markerId),e.markerId=i.addMarker(new l(e.row,e.column,e.row,e.column+n.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},r.prototype.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},r.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},r.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},r);function r(e,t,n,i,o,r){var a=this,t=(this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){a.onCursorChange()})},this.$pos=n,e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}e.implement(o.prototype,i),t.PlaceHolder=o}),define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){function _(e,t){return e.row==t.row&&e.column==t.column}var S=e("../lib/event"),E=e("../lib/useragent");t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,i=t.shiftKey,o=t.ctrlKey,r=e.getAccelKey(),a=e.getButton();if(o&&E.isMac&&(a=t.button),e.editor.inMultiSelectMode&&2==a)e.editor.textInput.onContextMenu(e.domEvent);else if(o||n||r){if(0===a){var s,l,c,u,d,h,p,f,g=e.editor,m=g.selection,y=g.inMultiSelectMode,v=e.getDocumentPosition(),b=m.getCursor(),b=e.inSelection()||m.isEmpty()&&_(v,b),w=e.x,x=e.y,A=g.session,C=g.renderer.pixelToScreenCoordinates(w,x),k=C;if(g.$mouseHandler.$enableJumpToDef)o&&n||r&&n?s=i?"block":"add":n&&g.$blockSelectEnabled&&(s="block");else if(r&&!n){if(s="add",!y&&i)return}else n&&g.$blockSelectEnabled&&(s="block");if(s&&E.isMac&&t.ctrlKey&&g.$mouseHandler.cancelContextMenu(),"add"==s)!y&&b||(y||(l=m.toOrientedRange(),g.addSelectionMarker(l)),c=m.rangeList.rangeAtPoint(v),g.inVirtualSelectionMode=!0,i&&(c=null,l=m.ranges[0]||l,g.removeSelectionMarker(l)),g.once("mouseup",function(){var e=m.toOrientedRange();c&&e.isEmpty()&&_(c.cursor,e.cursor)?m.substractPoint(e.cursor):(i?m.substractPoint(l.cursor):l&&(g.removeSelectionMarker(l),m.addRange(l)),m.addRange(e)),g.inVirtualSelectionMode=!1}));else if("block"==s)return e.stop(),g.inVirtualSelectionMode=!0,d=[],h=function(){var e=g.renderer.pixelToScreenCoordinates(w,x),t=A.screenToDocumentPosition(e.row,e.column,e.offsetX);_(k,e)&&_(t,m.lead)||(k=e,g.selection.moveToPosition(t),g.renderer.scrollCursorIntoView(),g.removeSelectionMarkers(d),d=m.rectangularRangeBlock(k,C),g.$mouseHandler.$clickSelection&&1==d.length&&d[0].isEmpty()&&(d[0]=g.$mouseHandler.$clickSelection.clone()),d.forEach(g.addSelectionMarker,g),g.updateSelectionMarkers())},y&&!r?m.toSingleRange():!y&&r&&(u=m.toOrientedRange(),g.addSelectionMarker(u)),i?C=A.documentToScreenPosition(m.lead):m.moveToPosition(v),k={row:-1,column:-1},p=h,S.capture(g.container,function(e){w=e.clientX,x=e.clientY},function(e){h(),clearInterval(f),g.removeSelectionMarkers(d),d.length||(d=[m.toOrientedRange()]),u&&(g.removeSelectionMarker(u),m.toSingleRange(u));for(var t=0;t<d.length;t++)m.addRange(d[t]);g.inVirtualSelectionMode=!1,g.$mouseHandler.$clickSelection=null}),f=setInterval(function(){p()},20),e.preventDefault()}}else 0===a&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(e){1<e.multiSelect.rangeCount?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];e=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new e(t.multiSelectCommands)}),define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,o,t){function n(e){var t,n;function i(e){n&&(t.renderer.setMouseCursor(""),n=!1)}e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=o.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(s.defaultCommands),(t=e).textInput&&(e=t.textInput.getElement(),n=!1,a.addListener(e,"keydown",function(e){e=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);t.$blockSelectEnabled&&e?n||(t.renderer.setMouseCursor("crosshair"),n=!0):n&&i()},t),a.addListener(e,"keyup",i,t),a.addListener(e,"blur",i,t)))}var i=e("./range_list").RangeList,w=e("./range").Range,h=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),p=e("./lib/lang"),s=e("./commands/multi_select_commands");o.commands=s.defaultCommands.concat(s.multiSelectCommands);var l=new(e("./search").Search),c=e("./edit_session").EditSession,c=(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}.call(c.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);n=this.rangeList.add(e);return this.$onAddRange(e),n.length&&this.$onRemoveRange(n),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){e=this.rangeList.substractPoint(e);if(e)return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){var t;this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode&&(t=this.rangeList.ranges.pop(),e.push(t),this.rangeCount=0);for(var n=e.length;n--;){var i=this.ranges.indexOf(e[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new i,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var i=e[n],o=i.start.row,r=i.end.row;if(o===r)t.push(i.clone());else{for(t.push(new w(o,i.start.column,o,this.session.getLine(o).length));++o<r;)t.push(this.getLineRange(o,!0));t.push(new w(r,0,r,i.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],e=w.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(e,t.cursor==t.start)},this.toggleBlockSelection=function(){var e,t;1<this.rangeCount?(t=(e=this.rangeList.ranges)[e.length-1],e=w.fromPoints(e[0].start,t.end),this.toSingleRange(),this.setSelectionRange(e,t.cursor==t.start)):(e=this.session.documentToScreenPosition(this.cursor),t=this.session.documentToScreenPosition(this.anchor),this.rectangularRangeBlock(e,t).forEach(this.addRange,this))},this.rectangularRangeBlock=function(e,t,n){var i,o,r,a,s,l,c,u=[],d=e.column<t.column,h=(a=(d?(i=e.column,o=t.column,r=e.offsetX,t):(i=t.column,o=e.column,r=t.offsetX,e)).offsetX,e.row<t.row);l=(h?(s=e.row,t):(s=t.row,e)).row,i<0&&(i=0),(s=s<0?0:s)==l&&(n=!0);for(var p,f,g=s;g<=l;g++){var m=w.fromPoints(this.session.screenToDocumentPosition(g,i,r),this.session.screenToDocumentPosition(g,o,a));if(m.isEmpty()){if(c&&(p=m.end,f=c,p.row==f.row)&&p.column==f.column)break;c=m.end}m.cursor=d?m.start:m.end,u.push(m)}if(h&&u.reverse(),!n){for(var y=u.length-1;u[y].isEmpty()&&0<y;)y--;if(0<y)for(var v=0;u[v].isEmpty();)v++;for(var b=y;v<=b;b--)u[b].isEmpty()&&u.splice(b,1)}return u}}.call(h.prototype),e("./editor").Editor);(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){e.marker&&(this.session.removeMarker(e.marker),-1!=(e=this.session.$selectionMarkers.indexOf(e))&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length)},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var i=e[n];i.marker&&(this.session.removeMarker(i.marker),-1!=(i=t.indexOf(i)))&&t.splice(i,1)}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(s.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(s.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t,n=e.command,i=e.editor;if(i.multiSelect)return n.multiSelectAction?t="forEach"==n.multiSelectAction?i.forEachSelection(n,e.args):"forEachLine"==n.multiSelectAction?i.forEachSelection(n,e.args,!0):"single"==n.multiSelectAction?(i.exitMultiSelectMode(),n.exec(i,e.args||{})):n.multiSelectAction(i,e.args||{}):(t=n.exec(i,e.args||{}),i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()),t},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var i,o=n&&n.keepOrder,r=1==n||n&&n.$byLines,a=this.session,n=this.selection,s=n.rangeList,l=(o?n:s).ranges;if(!l.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var o=n._eventRegistry,c=(n._eventRegistry={},new h(a));this.inVirtualSelectionMode=!0;for(var u=l.length;u--;){if(r)for(;0<u&&l[u].start.row==l[u-1].end.row;)u--;c.fromOrientedRange(l[u]),c.index=u,this.selection=a.selection=c;var d=e.exec?e.exec(this,t||{}):e(this,t||{});i||void 0===d||(i=d),c.toOrientedRange(l[u])}c.detach(),this.selection=a.selection=n,this.inVirtualSelectionMode=!1,n._eventRegistry=o,n.mergeOverlappingRanges(),n.ranges[0]&&n.fromOrientedRange(n.ranges[0]);s=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),s&&s.from==s.to&&this.renderer.animateScrolling(s.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],i=0;i<t.length;i++)n.push(this.session.getTextRange(t[i]));var o=this.session.getDocument().getNewLineCharacter();(e=n.join(o)).length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){var n;this.inMultiSelectMode&&!this.inVirtualSelectionMode&&(n=this.multiSelect.ranges[0],this.multiSelect.isEmpty()&&t==this.multiSelect.anchor||((n=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor).row!=t.row||this.session.$clipPositionToDocument(n.row,n.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()))},this.findAll=function(e,t,n){(t=t||{}).needle=e||t.needle,null==t.needle&&(i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange(),t.needle=this.session.getTextRange(i)),this.$search.set(t);var i,o=this.$search.findAll(this.session);if(!o.length)return 0;var r=this.multiSelect;n||r.toSingleRange(o[0]);for(var a=o.length;a--;)r.addRange(o[a],!0);return i&&r.rangeList.rangeAtPoint(i.start)&&r.addRange(i,!0),o.length},this.selectMoreLines=function(e,t){var n,i,o,r=this.selection.toOrientedRange(),a=r.cursor==r.end,s=this.session.documentToScreenPosition(r.cursor),l=(this.selection.$desiredColumn&&(s.column=this.selection.$desiredColumn),this.session.screenToDocumentPosition(s.row+e,s.column));e=r.isEmpty()?l:(n=this.session.documentToScreenPosition(a?r.end:r.start),this.session.screenToDocumentPosition(n.row+e,n.column)),a?(i=w.fromPoints(l,e)).cursor=i.start:(i=w.fromPoints(e,l)).cursor=i.end,i.desiredColumn=s.column,this.selection.inMultiSelectMode?t&&(o=r.cursor):this.selection.addRange(r),this.selection.addRange(i),o&&this.selection.substractPoint(o)},this.transposeSelections=function(e){for(var t,n=this.session,i=n.multiSelect,o=i.ranges,r=o.length;r--;)(s=o[r]).isEmpty()&&(t=n.getWordRange(s.start.row,s.start.column),s.start.row=t.start.row,s.start.column=t.start.column,s.end.row=t.end.row,s.end.column=t.end.column);i.mergeOverlappingRanges();for(var a=[],r=o.length;r--;){var s=o[r];a.unshift(n.getTextRange(s))}e<0?a.unshift(a.pop()):a.push(a.shift());for(r=o.length;r--;){var l=(s=o[r]).clone();n.replace(s,a[r]),s.start.row=l.start.row,s.start.column=l.start.column}i.fromOrientedRange(i.ranges[0])},this.selectMore=function(e,t,n){var i,o=this.session,r=o.multiSelect.toOrientedRange();r.isEmpty()&&((r=o.getWordRange(r.start.row,r.start.column)).cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),n)||(n=o.getTextRange(r),o=o,n=n,i=e,l.$options.wrap=!0,l.$options.needle=n,l.$options.backwards=-1==i,(n=l.find(o))&&(n.cursor=-1==e?n.start:n.end,this.session.unfold(n),this.multiSelect.addRange(n),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor))},this.alignCursors=function(){var o=this.session,t=o.multiSelect,e=t.ranges,n=-1,i=e.filter(function(e){if(e.cursor.row==n)return!0;n=e.cursor.row});if(e.length&&i.length!=e.length-1){i.forEach(function(e){t.substractPoint(e.cursor)});var r=0,a=1/0,s=e.map(function(e){var e=e.cursor,t=o.getLine(e.row).substr(e.column).search(/\S/g);return e.column>r&&(r=e.column),(t=-1==t?0:t)<a&&(a=t),t});e.forEach(function(e,t){var n=e.cursor,i=r-n.column,t=s[t]-a;t<i?o.insert(n,p.stringRepeat(" ",i-t)):o.remove(new w(n.row,n.column,n.row,n.column-i+t)),e.start.column=e.end.column=r,e.start.row=e.end.row=n.row,e.cursor=e.end}),t.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var i=this.selection.getRange(),l=i.start.row,c=i.end.row,e=l==c;if(e){for(var u,d=this.session.getLength();u=this.session.getLine(c),/[=:]/.test(u)&&++c<d;);for(;u=this.session.getLine(l),/[=:]/.test(u)&&0<--l;);l<0&&(l=0),d<=c&&(c=d-1)}var h=this.session.removeFullLines(l,c),h=this.$reAlignText(h,e);this.session.insert({row:l,column:0},h.join("\n")+"\n"),e||(i.start.column=0,i.end.column=h[h.length-1].length),this.selection.setRange(i)}},this.$reAlignText=function(e,t){function n(e){return p.stringRepeat(" ",e)}function i(e){return e[2]?n(o)+e[2]+n(r-e[2].length+a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}var o,r,a,s=!0,l=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==o?(o=t[1].length,r=t[2].length,a=t[3].length):(o+r+a!=t[1].length+t[2].length+t[3].length&&(l=!1),o!=t[1].length&&(s=!1),o>t[1].length&&(o=t[1].length),r<t[2].length&&(r=t[2].length),a>t[3].length&&(a=t[3].length)),t):[e]}).map(t?i:s?l?function(e){return e[2]?n(o+r-e[2].length)+e[2]+n(a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:i:function(e){return e[2]?n(o)+e[2]+n(a)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(c.prototype),o.onSessionChange=function(e){var t=e.session,e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession);e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},o.MultiSelect=n,e("./config").defineOptions(c.prototype,"editor",{enableMultiselect:{set:function(e){n(this),e?this.on("mousedown",r):this.off("mousedown",r)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,n){var u=e("../../range").Range,e=t.FoldMode=function(){};!function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){e=e.getLine(n);return this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),r=o.search(i);if(-1!=r){for(var a,n=n||o.length,s=e.getLength(),o=t,l=t;++t<s;){var c=e.getLine(t).search(i);if(-1!=c){if(c<=r){c=e.getTokenAt(t,0);if(!c||"string"!==c.type)break}l=t}}return o<l?(a=e.getLine(l).length,new u(o,n,l,a)):void 0}},this.openingBracketBlock=function(e,t,n,i,o){n={row:n,column:i+1},i=e.$findClosingBracket(t,n,o);if(i)return"start"==(t=null==(t=e.foldWidgets[i.row])?e.getFoldWidget(i.row):t)&&i.row>n.row&&(i.row--,i.column=e.getLine(i.row).length),u.fromPoints(n,i)},this.closingBracketBlock=function(e,t,n,i,o){n={row:n,column:i},i=e.$findOpeningBracket(t,n);if(i)return i.column++,n.column--,u.fromPoints(i,n)}}.call(e.prototype)}),define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(e,t,n){function c(e,t,n){var i=e.getAnnotations().sort(s.comparePoints);if(i.length){var o=((e,t,n)=>{for(var i=0,o=e.length-1;i<=o;){var r=i+o>>1,a=n(t,e[r]);if(0<a)i=1+r;else{if(!(a<0))return r;o=r-1}}return-(i+1)})(i,{row:t,column:-1},s.comparePoints),r=(i.length<=(o=o<0?-o-1:o)?o=0<n?0:i.length-1:0===o&&n<0&&(o=i.length-1),i[o]);if(r&&n){if(r.row===t){for(;(r=i[o+=n])&&r.row===t;);if(!r)return i.slice()}var a=[];for(t=r.row;a[n<0?"unshift":"push"](r),(r=i[o+=n])&&r.row==t;);return a.length&&a}}}var u=e("../line_widgets").LineWidgets,d=e("../lib/dom"),s=e("../range").Range,h=e("../config").nls;t.showErrorMarker=function(e,t){var n,i=e.session,o=(i.widgetManager||(i.widgetManager=new u(i),i.widgetManager.attach(e)),e.getCursorPosition()),r=o.row,a=i.widgetManager.getWidgetsAtRow(r).filter(function(e){return"errorMarker"==e.type})[0],r=(a?a.destroy():r-=t,c(i,r,t));if(r){t=r[0];o.column=(t.pos&&"number"!=typeof t.column?t.pos.sc:t.column)||0,o.row=t.row,n=e.renderer.$gutterLayer.$annotations[o.row]}else{if(a)return;n={text:[h("Looks good!")],className:"ace_ok"}}e.session.unfold(o.row),e.selection.moveToPosition(o);function s(e,t,n){if(0===t&&("esc"===n||"return"===n))return l.destroy(),{command:"null"}}var l={row:o.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},r=l.el.appendChild(d.createElement("div")),t=l.el.appendChild(d.createElement("div")),a=(t.className="error_widget_arrow "+n.className,e.renderer.$cursorLayer.getPixelPosition(o).left);t.style.left=a+e.renderer.gutterWidth-5+"px",l.el.className="error_widget_wrapper",r.className="error_widget "+n.className,r.innerHTML=n.text.join("<br>"),r.appendChild(d.createElement("div"));l.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(s),i.widgetManager.removeLineWidget(l),e.off("changeSelection",l.destroy),e.off("changeSession",l.destroy),e.off("mouseup",l.destroy),e.off("change",l.destroy))},e.keyBinding.addKeyboardHandler(s),e.on("changeSelection",l.destroy),e.on("changeSession",l.destroy),e.on("mouseup",l.destroy),e.on("change",l.destroy),e.session.widgetManager.addLineWidget(l),l.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:l.el.offsetHeight})},d.importCssString("\n    .error_widget_wrapper {\n        background: inherit;\n        color: inherit;\n        border:none\n    }\n    .error_widget {\n        border-top: solid 2px;\n        border-bottom: solid 2px;\n        margin: 5px 0;\n        padding: 10px 40px;\n        white-space: pre-wrap;\n    }\n    .error_widget.ace_error, .error_widget_arrow.ace_error{\n        border-color: #ff5a5a\n    }\n    .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n        border-color: #F1D817\n    }\n    .error_widget.ace_info, .error_widget_arrow.ace_info{\n        border-color: #5a5a5a\n    }\n    .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n        border-color: #5aaa5a\n    }\n    .error_widget_arrow {\n        position: absolute;\n        border: solid 5px;\n        border-top-color: transparent!important;\n        border-right-color: transparent!important;\n        border-left-color: transparent!important;\n        top: -5px;\n    }\n","error_marker.css",!1)}),define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,r,t){e("./loader_build")(r);var a=e("./lib/dom"),n=e("./range").Range,s=e("./editor").Editor,i=e("./edit_session").EditSession,o=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),r.config=e("./config"),r.edit=function(e,t){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}var i,o;return e&&e.env&&e.env.editor instanceof s?e.env.editor:(n="",e&&/input|textarea/i.test(e.tagName)?(n=(i=e).value,e=a.createElement("pre"),i.parentNode.replaceChild(e,i)):e&&(n=e.textContent,e.innerHTML=""),n=r.createEditSession(n),e=new s(new l(e),n,t),o={document:n,editor:e,onResize:e.resize.bind(e,null)},i&&(o.textarea=i),e.on("destroy",function(){o.editor.container.env=null}),e.container.env=e.env=o,e)},r.createEditSession=function(e,t){e=new i(e,t);return e.setUndoManager(new o),e},r.Range=n,r.Editor=s,r.EditSession=i,r.UndoManager=o,r.VirtualRenderer=l,r.version=r.config.version}),window.require(["ace/ace"],function(e){e&&(e.config.init(!0),e.define=window.define);var t,n=function(){return this}();for(t in(n=(n=n||"undefined"==typeof window?n:window)||"undefined"==typeof self?n:self).ace||(n.ace=e),e)e.hasOwnProperty(t)&&(n.ace[t]=e[t]);n.ace.default=n.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=n.ace)});class Decimal{constructor(e,t=2){this.amount=e,this.scale=t}toFixed(e,t){return Number(Math.round(parseFloat(e+"e"+t))+"e-"+t).toFixed(t)}
13add(e){var t=Math.pow(10,this.scale),e=(Number(this.amount)*t+Number(e)*t)/t;return new Decimal(this.toFixed(e,this.scale),this.scale)}sub(e){var t=Math.pow(10,this.scale),e=(Number(this.amount)*t-Number(e)*t)/t;return new Decimal(this.toFixed(e,this.scale),this.scale)}mul(e){Math.pow(10,this.scale);e=Number(this.amount)*Number(e);return new Decimal(this.toFixed(e,this.scale),this.scale)}div(e){e=Number(this.amount)/Number(e);return new Decimal(this.toFixed(e,this.scale),this.scale)}getAmount(e=this.scale){return this.toFixed(this.amount,e)}}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.