@matdata/yasr 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/build/ts/src/bindingsToCsv.d.ts +2 -0
  3. package/build/ts/src/defaults.d.ts +2 -0
  4. package/build/ts/src/helpers/addCSS.d.ts +1 -0
  5. package/build/ts/src/helpers/addScript.d.ts +1 -0
  6. package/build/ts/src/helpers/index.d.ts +3 -0
  7. package/build/ts/src/helpers/sanitize.d.ts +2 -0
  8. package/build/ts/src/imgs.d.ts +4 -0
  9. package/build/ts/src/index.d.ts +130 -0
  10. package/build/ts/src/parsers/csv.d.ts +2 -0
  11. package/build/ts/src/parsers/index.d.ts +68 -0
  12. package/build/ts/src/parsers/json.d.ts +2 -0
  13. package/build/ts/src/parsers/tsv.d.ts +2 -0
  14. package/build/ts/src/parsers/turtleFamily.d.ts +4 -0
  15. package/build/ts/src/parsers/xml.d.ts +2 -0
  16. package/build/ts/src/plugins/boolean/index.d.ts +13 -0
  17. package/build/ts/src/plugins/error/index.d.ts +13 -0
  18. package/build/ts/src/plugins/index.d.ts +19 -0
  19. package/build/ts/src/plugins/response/index.d.ts +28 -0
  20. package/build/ts/src/plugins/table/index.d.ts +49 -0
  21. package/build/yasr.html +32 -0
  22. package/build/yasr.min.css +2 -0
  23. package/build/yasr.min.css.map +1 -0
  24. package/build/yasr.min.js +3 -0
  25. package/build/yasr.min.js.LICENSE.txt +34 -0
  26. package/build/yasr.min.js.map +1 -0
  27. package/package.json +56 -0
  28. package/src/bin/takeScreenshot.js +373 -0
  29. package/src/bindingsToCsv.ts +18 -0
  30. package/src/defaults.ts +28 -0
  31. package/src/helpers/addCSS.ts +7 -0
  32. package/src/helpers/addScript.ts +12 -0
  33. package/src/helpers/index.ts +3 -0
  34. package/src/helpers/sanitize.ts +11 -0
  35. package/src/imgs.ts +7 -0
  36. package/src/index.ts +688 -0
  37. package/src/jquery/extendJquery.js +1 -0
  38. package/src/jquery/tableToCsv.js +88 -0
  39. package/src/main.scss +229 -0
  40. package/src/parsers/csv.ts +30 -0
  41. package/src/parsers/index.ts +311 -0
  42. package/src/parsers/json.ts +22 -0
  43. package/src/parsers/tsv.ts +43 -0
  44. package/src/parsers/turtleFamily.ts +60 -0
  45. package/src/parsers/xml.ts +79 -0
  46. package/src/plugins/boolean/index.scss +11 -0
  47. package/src/plugins/boolean/index.ts +42 -0
  48. package/src/plugins/error/index.scss +57 -0
  49. package/src/plugins/error/index.ts +124 -0
  50. package/src/plugins/index.ts +24 -0
  51. package/src/plugins/response/index.scss +63 -0
  52. package/src/plugins/response/index.ts +170 -0
  53. package/src/plugins/table/index.scss +154 -0
  54. package/src/plugins/table/index.ts +437 -0
  55. package/src/scss/global.scss +10 -0
  56. package/src/scss/variables.scss +2 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see yasr.min.js.LICENSE.txt */
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Yasr",[],t):"object"==typeof exports?exports.Yasr=t():e.Yasr=t()}(self,()=>(()=>{var __webpack_modules__={232:(e,t,n)=>{var r=n(8541)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},365:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4360);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},666:(e,t,n)=>{!function(e){"use strict";function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&u<r.ch)break;if(a=n.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(a))return{ch:u+1,tokenType:a,pair:t};s=u-1}else{if(1==l)break;l=1,s=o.length}}}function s(t){var r,o,a=1,s=n.lastLine(),l=t.ch;e:for(var u=i;u<=s;++u)for(var c=n.getLine(u),f=u==i?l:0;;){var d=c.indexOf(t.pair[0],f),h=c.indexOf(t.pair[1],f);if(d<0&&(d=c.length),h<0&&(h=c.length),(f=Math.min(d,h))==c.length)break;if(n.getTokenTypeAt(e.Pos(u,f+1))==t.tokenType)if(f==d)++a;else if(! --a){r=u,o=f;break e}++f}return null==r||i==r?null:{from:e.Pos(i,l),to:e.Pos(r,o)}}for(var l=[],u=0;u<t.length;u++){var c=a(t[u]);c&&l.push(c)}for(l.sort(function(e,t){return e.ch-t.ch}),u=0;u<l.length;u++){var f=s(l[u]);if(f)return f}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})}(n(1719))},732:(e,t,n)=>{var r=n(7589),i=r.Global,o=r.trim;e.exports={name:"cookieStorage",read:function(e){if(!e||!u(e))return null;var t="(?:^|.*;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(a.cookie.replace(new RegExp(t),"$1"))},write:function(e,t){if(!e)return;a.cookie=escape(e)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:s,remove:l,clearAll:function(){s(function(e,t){l(t)})}};var a=i.document;function s(e){for(var t=a.cookie.split(/; ?/g),n=t.length-1;n>=0;n--)if(o(t[n])){var r=t[n].split("="),i=unescape(r[0]);e(unescape(r[1]),i)}}function l(e){e&&u(e)&&(a.cookie=escape(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(e){return new RegExp("(?:^|;\\s*)"+escape(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(a.cookie)}},761:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8086);const i=function(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},815:()=>{"object"!=typeof JSON&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta,rep;function f(e){return e<10?"0"+e:e}function this_value(){return this.valueOf()}function quote(e){return rx_escapable.lastIndex=0,rx_escapable.test(e)?'"'+e.replace(rx_escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,o,a,s=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,n=0;n<o;n+=1)a[n]=str(n,l)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=str(r=rep[n],l))&&a.push(quote(r)+(gap?": ":":")+i);else for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(i=str(r,l))&&a.push(quote(r)+(gap?": ":":")+i);return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,r,i=e[t];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(r=walk(i,n))?i[n]=r:delete i[n]);return reviver.call(e,t,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},946:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(){return e}}},1100:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return e}},1115:(e,t,n)=>{var r=n(1461),i=n(1907);e.exports=function(e,t,n,o,a){return new i(r().w(e,t,n,o),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports},1262:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=f,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=f,t.state=_,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=h(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function h(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function g(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function v(e){return e&&e.toLowerCase()}function m(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(v(n))||!l.contextGrabbers[v(n)].hasOwnProperty(v(t)))return;y(e)}}function _(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?x:_}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",S):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",w)}function x(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(v(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",T):(a="tag error",A)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",T(e,t,n)):(a="error",A)}function T(e,t,n){return"endTag"!=e?(a="error",T):(y(n),_)}function A(e,t,n){return a="error",T(e,t,n)}function S(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(v(r))?b(n,r):(b(n,r),n.context=new m(n,r,i==n.indented)),_}return a="error",S}function C(e,t,n){return"equals"==e?E:(l.allowMissing||(a="error"),S(e,t,n))}function E(e,t,n){return"string"==e?L:"word"==e&&l.allowUnquoted?(a="string",S):(a="error",S(e,t,n))}function L(e,t,n){return"string"==e?L:S(e,t,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:_,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(v(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[v(i.tagName)];if(!a||!a.hasOwnProperty(v(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==E&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(1719))},1273:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5168);const i=function(e){var t=new e.constructor(e.byteLength);return new r.A(t).set(new r.A(e)),t}},1408:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(3779),i=n(8412);const o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const a=function(e){return this.__data__.has(e)};function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i.A;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=o,s.prototype.has=a;const l=s;const u=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const c=function(e,t){return e.has(t)};const f=function(e,t,n,r,i,o){var a=1&n,s=e.length,f=t.length;if(s!=f&&!(a&&f>s))return!1;var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=-1,g=!0,v=2&n?new l:void 0;for(o.set(e,t),o.set(t,e);++p<s;){var m=e[p],y=t[p];if(r)var b=a?r(y,m,p,t,e,o):r(m,y,p,e,t,o);if(void 0!==b){if(b)continue;g=!1;break}if(v){if(!u(t,function(e,t){if(!c(v,t)&&(m===e||i(m,e,n,r,o)))return v.push(t)})){g=!1;break}}else if(m!==y&&!i(m,y,n,r,o)){g=!1;break}}return o.delete(e),o.delete(t),g};var d=n(7181),h=n(5168),p=n(7348);const g=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n};const v=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n};var m=d.A?d.A.prototype:void 0,y=m?m.valueOf:void 0;const b=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new h.A(e),new h.A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,p.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=g;case"[object Set]":var l=1&r;if(s||(s=v),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=f(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(y)return y.call(e)==y.call(t)}return!1};var _=n(6886),w=Object.prototype.hasOwnProperty;const x=function(e,t,n,r,i,o){var a=1&n,s=(0,_.A)(e),l=s.length;if(l!=(0,_.A)(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:w.call(t,c)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<l;){var g=e[c=s[u]],v=t[c];if(r)var m=a?r(v,g,c,t,e,o):r(g,v,c,e,t,o);if(!(void 0===m?g===v||i(g,v,n,r,o):m)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return o.delete(e),o.delete(t),h};var T=n(4889),A=n(8285),S=n(6118),C=n(4249),E="[object Arguments]",L="[object Array]",k="[object Object]",N=Object.prototype.hasOwnProperty;const D=function(e,t,n,i,o,a){var s=(0,A.A)(e),l=(0,A.A)(t),u=s?L:(0,T.A)(e),c=l?L:(0,T.A)(t),d=(u=u==E?k:u)==k,h=(c=c==E?k:c)==k,p=u==c;if(p&&(0,S.A)(e)){if(!(0,S.A)(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new r.A),s||(0,C.A)(e)?f(e,t,n,i,o,a):b(e,t,u,n,i,o,a);if(!(1&n)){var g=d&&N.call(e,"__wrapped__"),v=h&&N.call(t,"__wrapped__");if(g||v){var m=g?e.value():e,y=v?t.value():t;return a||(a=new r.A),o(m,y,n,i,a)}}return!!p&&(a||(a=new r.A),x(e,t,n,i,o,a))};var I=n(8214);const O=function e(t,n,r,i,o){return t===n||(null==t||null==n||!(0,I.A)(t)&&!(0,I.A)(n)?t!=t&&n!=n:D(t,n,r,i,e,o))}},1461:(e,t,n)=>{var r=n(6918);function i(){var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(e,i,o,a){var s=i&&i.prototype instanceof c?i:c,l=Object.create(s.prototype);return r(l,"_invoke",function(e,r,i){var o,a,s,l=0,c=i||[],f=!1,d={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,n){return o=e,a=0,s=t,d.n=n,u}};function h(e,r){for(a=e,s=r,n=0;!f&&l&&!i&&n<c.length;n++){var i,o=c[n],h=d.p,p=o[2];e>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=h&&((i=e<2&&h<o[1])?(a=0,d.v=r,d.n=o[1]):h<p&&(i=e<3||o[0]>r||r>p)&&(o[4]=e,o[5]=r,d.n=p,a=0))}if(i||e>1)return u;throw f=!0,r}return function(i,c,p){if(l>1)throw TypeError("Generator is already running");for(f&&1===c&&h(c,p),a=c,s=p;(n=a<2?t:s)||!f;){o||(a?a<3?(a>1&&(d.n=-1),h(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=t}else if((n=(f=d.n<0)?s:e.call(r,d))!==u)break}catch(e){o=t,a=1,s=e}finally{l=1}}return{value:n,done:f}}}(e,o,a),!0),l}var u={};function c(){}function f(){}function d(){}n=Object.getPrototypeOf;var h=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=d.prototype=c.prototype=Object.create(h);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,r(e,s,"GeneratorFunction")),e.prototype=Object.create(p),e}return f.prototype=d,r(p,"constructor",d),r(d,"constructor",f),f.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(e.exports=i=function(){return{w:l,m:g}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},1475:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="download",r=[],i="f019",o="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";t.definition={prefix:"fas",iconName:n,icon:[512,512,r,i,o]},t.faDownload=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o},1671:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(9790);const i=n(8377).A["__core-js_shared__"];var o,a=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";const s=function(e){return!!a&&a in e};var l=n(6809),u=n(5549),c=/^\[object .+?Constructor\]$/,f=Function.prototype,d=Object.prototype,h=f.toString,p=d.hasOwnProperty,g=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const v=function(e){return!(!(0,l.A)(e)||s(e))&&((0,r.A)(e)?g:c).test((0,u.A)(e))};const m=function(e,t){return null==e?void 0:e[t]};const y=function(e,t){var n=m(e,t);return v(n)?n:void 0}},1697:e=>{e.exports=function(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports},1710:(e,t,n)=>{"use strict";n.r(t)},1717:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},1719:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),f=c&&+c[1],d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),v=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),m=/Android/.test(e),y=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),_=/\bCrOS\b/.test(e),w=/win/i.test(t),x=d&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(d=!1,l=!0);var T=b&&(u||d&&(null==x||x<12.11)),A=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,E=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return L(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e,t,n,r){var i=N(e,t,n,r);return i.setAttribute("role","presentation"),i}function I(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function O(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function R(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function M(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}C=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var P=function(e){e.select()};function j(e){return e.display.wrapper.ownerDocument}function F(e){return B(e.display.wrapper)}function B(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function H(e){return j(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function U(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function W(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}v?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(e){}});var q=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function G(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}q.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},q.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var $=50,V={toString:function(){return"CodeMirror.Pass"}},X={scroll:!1},Q={origin:"*mouse"},K={origin:"+move"};function Y(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Z=[""];function J(e){for(;Z.length<=e;)Z.push(ee(Z)+" ");return Z[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ne(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function re(){}function ie(e,t){var n;return Object.create?n=Object.create(e):(re.prototype=e,n=new re),t&&U(t,n),n}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ae(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function se(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ae(e))||t.test(e):ae(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&ue.test(e)}function fe(e,t,n){for(;(n<0?t>0:t<e.length)&&ce(e.charAt(t));)t+=n;return t}function de(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function he(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function ge(e,t,n){var r;pe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var ve=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,f=[],d=0;d<c;++d)f.push(n(e.charCodeAt(d)));for(var h=0,p=u;h<c;++h){var g=f[h];"m"==g?f[h]=p:p=g}for(var v=0,m=u;v<c;++v){var y=f[v];"1"==y&&"r"==m?f[v]="n":o.test(y)&&(m=y,"r"==y&&(f[v]="R"))}for(var b=1,_=f[0];b<c-1;++b){var w=f[b];"+"==w&&"1"==_&&"1"==f[b+1]?f[b]="1":","!=w||_!=f[b+1]||"1"!=_&&"n"!=_||(f[b]=_),_=w}for(var x=0;x<c;++x){var T=f[x];if(","==T)f[x]="N";else if("%"==T){var A=void 0;for(A=x+1;A<c&&"%"==f[A];++A);for(var S=x&&"!"==f[x-1]||A<c&&"1"==f[A]?"1":"N",C=x;C<A;++C)f[C]=S;x=A-1}}for(var E=0,L=u;E<c;++E){var k=f[E];"L"==L&&"1"==k?f[E]="L":o.test(k)&&(L=k)}for(var N=0;N<c;++N)if(i.test(f[N])){var D=void 0;for(D=N+1;D<c&&i.test(f[D]);++D);for(var I="L"==(N?f[N-1]:u),O=I==("L"==(D<c?f[D]:u))?I?"L":"R":u,R=N;R<D;++R)f[R]=O;N=D-1}for(var M,P=[],j=0;j<c;)if(a.test(f[j])){var F=j;for(++j;j<c&&a.test(f[j]);++j);P.push(new l(0,F,j))}else{var B=j,H=P.length,z="rtl"==t?1:0;for(++j;j<c&&"L"!=f[j];++j);for(var U=B;U<j;)if(s.test(f[U])){B<U&&(P.splice(H,0,new l(1,B,U)),H+=z);var W=U;for(++U;U<j&&s.test(f[U]);++U);P.splice(H,0,new l(2,W,U)),H+=z,B=U}else++U;B<j&&P.splice(H,0,new l(1,B,j))}return"ltr"==t&&(1==P[0].level&&(M=e.match(/^\s+/))&&(P[0].from=M[0].length,P.unshift(new l(0,0,M[0].length))),1==ee(P).level&&(M=e.match(/\s+$/))&&(ee(P).to-=M[0].length,P.push(new l(0,c-M[0].length,c)))),"rtl"==t?P.reverse():P}}();function me(e,t){var n=e.order;return null==n&&(n=e.order=ve(e.text,t)),n}var ye=[],be=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ye).concat(n)}};function _e(e,t){return e._handlers&&e._handlers[t]||ye}function we(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=G(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function xe(e,t){var n=_e(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Te(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),xe(e,n||t.type,e,t),ke(t)||t.codemirrorIgnore}function Ae(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==G(n,t[r])&&n.push(t[r])}function Se(e,t){return _e(e,t).length>0}function Ce(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){we(this,e,t)}}function Ee(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Le(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ke(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ne(e){Ee(e),Le(e)}function De(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Oe,Re,Me=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Oe){var t=N("span","​");k(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Oe?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function je(e){if(null!=Re)return Re;var t=k(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return L(e),!(!n||n.left==n.right)&&(Re=r.right-n.right<3)}var Fe,Be=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},ze="oncopy"in(Fe=N("div"))||(Fe.setAttribute("oncopy","return;"),"function"==typeof Fe.oncopy),Ue=null;function We(e){if(null!=Ue)return Ue;var t=k(e,N("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return Ue=Math.abs(n.left-r.left)>1}var qe={},Ge={};function $e(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),qe[e]=t}function Ve(e,t){Ge[e]=t}function Xe(e){if("string"==typeof e&&Ge.hasOwnProperty(e))e=Ge[e];else if(e&&"string"==typeof e.name&&Ge.hasOwnProperty(e.name)){var t=Ge[e.name];"string"==typeof t&&(t={name:t}),(e=ie(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Qe(e,t){t=Xe(t);var n=qe[t.name];if(!n)return Qe(e,"text/plain");var r=n(e,t);if(Ke.hasOwnProperty(t.name)){var i=Ke[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ke={};function Ye(e,t){U(t,Ke.hasOwnProperty(e)?Ke[e]:Ke[e]={})}function Ze(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Je(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function et(e,t,n){return!e.startState||e.startState(t,n)}var tt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function nt(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function rt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function it(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function ot(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function at(e){if(null==e.parent)return null;for(var t=e.parent,n=G(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function st(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function lt(e,t){return t>=e.first&&t<e.first+e.size}function ut(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ct(e,t,n){if(void 0===n&&(n=null),!(this instanceof ct))return new ct(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ft(e,t){return e.line-t.line||e.ch-t.ch}function dt(e,t){return e.sticky==t.sticky&&0==ft(e,t)}function ht(e){return ct(e.line,e.ch)}function pt(e,t){return ft(e,t)<0?t:e}function gt(e,t){return ft(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return ct(e.first,0);var n=e.first+e.size-1;return t.line>n?ct(n,nt(e,n).text.length):yt(t,nt(e,t.line).text.length)}function yt(e,t){var n=e.ch;return null==n||n>t?ct(e.line,t):n<0?ct(e.line,0):e}function bt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=mt(e,t[r]);return n}tt.prototype.eol=function(){return this.pos>=this.string.length},tt.prototype.sol=function(){return this.pos==this.lineStart},tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},tt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},tt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tt.prototype.skipToEnd=function(){this.pos=this.string.length},tt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},tt.prototype.backUp=function(e){this.pos-=e},tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},tt.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},tt.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},tt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},tt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},tt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var _t=function(e,t){this.state=e,this.lookAhead=t},wt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function xt(e,t,n,r){var i=[e.state.modeGen],o={};Dt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Dt(e,t.text,s.mode,n,function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Tt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=At(e,at(t)),i=t.text.length>e.options.maxHighlightLength&&Ze(e.doc.mode,r.state),o=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function At(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new wt(r,!0,t);var o=It(e,t,n),a=o>r.first&&nt(r,o-1).stateAfter,s=a?wt.fromSaved(r,a,o):new wt(r,et(r.mode),o);return r.iter(o,t,function(n){St(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function St(e,t,n,r){var i=e.doc.mode,o=new tt(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Ct(i,n.state);!o.eol();)Et(i,o,n.state),o.start=o.pos}function Ct(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Je(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Et(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}wt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},wt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},wt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wt.fromSaved=function(e,t,n){return t instanceof _t?new wt(e,Ze(e.mode,t.state),n,t.lookAhead):new wt(e,Ze(e.mode,t),n)},wt.prototype.save=function(e){var t=!1!==e?Ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _t(t,this.maxLookAhead):t};var Lt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=nt(a,(t=mt(a,t)).line),u=At(e,t.line,n),c=new tt(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Et(s,c,u.state),r&&o.push(new Lt(c,i,Ze(a.mode,u.state)));return r?o:new Lt(c,i,u.state)}function Nt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Dt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,f=new tt(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&Nt(Ct(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&St(e,t,r,f.pos),f.pos=t.length,l=null):l=Nt(Et(n,f,r.state,d),o),d){var h=d[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||c!=l){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=l}f.start=f.pos}for(;u<f.pos;){var p=Math.min(f.pos,u+5e3);i(p,c),u=p}}function It(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=nt(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof _t?u.lookAhead:0)<=o.modeFrontier))return s;var c=W(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function Ot(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=nt(e,r).stateAfter;if(i&&(!(i instanceof _t)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Rt=!1,Mt=!1;function Pt(){Rt=!0}function jt(){Mt=!0}function Ft(e,t,n){this.marker=e,this.from=t,this.to=n}function Bt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ht(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function zt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Ut(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Ft(a,o.from,s?null:o.to))}}return r}function Wt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Ft(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function qt(e,t){if(t.full)return null;var n=lt(e,t.from.line)&&nt(e,t.from.line).markedSpans,r=lt(e,t.to.line)&&nt(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ft(t.from,t.to),s=Ut(n,i,a),l=Wt(r,o,a),u=1==t.text.length,c=ee(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var d=s[f];if(null==d.to){var h=Bt(l,d.marker);h?u&&(d.to=null==h.to?null:h.to+c):d.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];null!=g.to&&(g.to+=c),null==g.from?Bt(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g)):(g.from+=c,u&&(s||(s=[])).push(g))}s&&(s=Gt(s)),l&&l!=s&&(l=Gt(l));var v=[s];if(!u){var m,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(m||(m=[])).push(new Ft(s[b].marker,null,null));for(var _=0;_<y;++_)v.push(m);v.push(l)}return v}function Gt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function $t(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=G(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(ft(u.to,s.from)<0||ft(u.from,s.to)>0)){var c=[l,1],f=ft(u.from,s.from),d=ft(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function Vt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Xt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Qt(e){return e.inclusiveLeft?-1:0}function Kt(e){return e.inclusiveRight?1:0}function Yt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ft(r.from,i.from)||Qt(e)-Qt(t);if(o)return-o;var a=ft(r.to,i.to)||Kt(e)-Kt(t);return a||t.id-e.id}function Zt(e,t){var n,r=Mt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Yt(n,i.marker)<0)&&(n=i.marker);return n}function Jt(e){return Zt(e,!0)}function en(e){return Zt(e,!1)}function tn(e,t){var n,r=Mt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Yt(n,o.marker)<0)&&(n=o.marker)}return n}function nn(e,t,n,r,i){var o=nt(e,t),a=Mt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ft(u.from,n)||Qt(l.marker)-Qt(i),f=ft(u.to,r)||Kt(l.marker)-Kt(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ft(u.to,n)>=0:ft(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ft(u.from,r)<=0:ft(u.from,r)<0)))return!0}}}function rn(e){for(var t;t=Jt(e);)e=t.find(-1,!0).line;return e}function on(e){for(var t;t=en(e);)e=t.find(1,!0).line;return e}function an(e){for(var t,n;t=en(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function sn(e,t){var n=nt(e,t),r=rn(n);return n==r?t:at(r)}function ln(e,t){if(t>e.lastLine())return t;var n,r=nt(e,t);if(!un(e,r))return t;for(;n=en(r);)r=n.find(1,!0).line;return at(r)+1}function un(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&cn(e,t,r))return!0}}function cn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return cn(e,r.line,Bt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&cn(e,t,i))return!0}function fn(e){for(var t=0,n=(e=rn(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function dn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=en(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function hn(e){var t=e.display,n=e.doc;t.maxLine=nt(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var pn=function(e,t,n){this.text=e,Xt(this,t),this.height=n?n(this):1};function gn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),Xt(e,n);var i=r?r(e):1;i!=e.height&&ot(e,i)}function vn(e){e.parent=null,Vt(e)}pn.prototype.lineNo=function(){return at(this)},Ce(pn);var mn={},yn={};function bn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?yn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function _n(e,t){var n=D("span",null,null,l?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=xn,je(e.display.measure)&&(a=me(o,e.doc.direction))&&(r.addToken=An(r.addToken,a)),r.map=[],Cn(o,r,Tt(e,o,t!=e.display.externalMeasured&&at(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=M(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=M(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return xe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=M(r.pre.className,r.textClass||"")),r}function wn(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function xn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?Tn(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var h=0;;){f.lastIndex=h;var p=f.exec(t),g=p?p.index-h:t.length-h;if(g){var v=document.createTextNode(c.slice(h,h+g));a&&s<9?u.appendChild(N("span",[v])):u.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!p)break;h+=g+1;var m=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(m=u.appendChild(N("span",J(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((m=u.appendChild(N("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(N("span",[m])):u.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||l){var _=n||"";r&&(_+=r),i&&(_+=i);var w=N("span",[u],_,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,l[x]);return e.content.appendChild(w)}e.content.appendChild(u)}}function Tn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function An(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,d=0;d<t.length&&!((f=t[d]).to>u&&f.from<=u);d++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function Sn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Cn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,d,h=i.length,p=0,g=1,v="",m=0;;){if(m==p){l=u=c=s="",d=null,f=null,m=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],x=w.marker;if("bookmark"==x.type&&w.from==p&&x.widgetNode)y.push(x);else if(w.from<=p&&(null==w.to||w.to>p||x.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&m>w.to&&(m=w.to,u=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(c+=" "+x.startStyle),x.endStyle&&w.to==m&&(b||(b=[])).push(x.endStyle,w.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var T in x.attributes)(d||(d={}))[T]=x.attributes[T];x.collapsed&&(!f||Yt(f.marker,x)<0)&&(f=w)}else w.from>p&&m>w.from&&(m=w.from)}if(b)for(var A=0;A<b.length;A+=2)b[A+1]==m&&(u+=" "+b[A]);if(!f||f.from==p)for(var S=0;S<y.length;++S)Sn(t,0,y[S]);if(f&&(f.from||0)==p){if(Sn(t,(null==f.to?h+1:f.to)-p,f.marker,null==f.from),null==f.to)return;f.to==p&&(f=!1)}}if(p>=h)break;for(var C=Math.min(h,m);;){if(v){var E=p+v.length;if(!f){var L=E>C?v.slice(0,C-p):v;t.addToken(t,L,a?a+l:l,c,p+L.length==m?u:"",s,d)}if(E>=C){v=v.slice(C-p),p=C;break}p=E,c=""}v=i.slice(o,o=n[g++]),a=bn(n[g++],t.cm.options)}}else for(var k=1;k<n.length;k+=2)t.addToken(t,i.slice(o,o=n[k]),bn(n[k+1],t.cm.options))}function En(e,t,n){this.line=t,this.rest=an(t),this.size=this.rest?at(ee(this.rest))-n+1:1,this.node=this.text=null,this.hidden=un(e,t)}function Ln(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new En(e.doc,nt(e.doc,o),o);r=o+a.size,i.push(a)}return i}var kn=null;function Nn(e){kn?kn.ops.push(e):e.ownsGroup=kn={ops:[e],delayedCallbacks:[]}}function Dn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function In(e,t){var n=e.ownsGroup;if(n)try{Dn(n)}finally{kn=null,t(n)}}var On=null;function Rn(e,t){var n=_e(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);kn?r=kn.delayedCallbacks:On?r=On:(r=On=[],setTimeout(Mn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function Mn(){var e=On;On=null;for(var t=0;t<e.length;++t)e[t]()}function Pn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Hn(e,t):"gutter"==o?Un(e,t,n,r):"class"==o?zn(e,t):"widget"==o&&Wn(e,t,r)}t.changes=null}function jn(e){return e.node==e.text&&(e.node=N("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Fn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=jn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Bn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):_n(e,t)}function Hn(e,t){var n=t.text.className,r=Bn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,zn(e,t)):n&&(t.text.className=n)}function zn(e,t){Fn(e,t),t.line.wrapClass?jn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Un(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=jn(t);t.gutterBackground=N("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=jn(t),s=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(N("div",ut(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(N("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function Wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);Gn(e,t,n)}function qn(e,t,n,r){var i=Bn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),zn(e,t),Un(e,t,n,r),Gn(e,t,r),t.node}function Gn(e,t,n){if($n(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)$n(e,t.rest[r],t,n,!1)}function $n(e,t,n,r,i){if(t.widgets)for(var o=jn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=N("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Vn(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),Rn(l,"redraw")}}function Vn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Xn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!I(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),k(t.display.measure,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Qn(e,t){for(var n=De(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Kn(e){return e.lineSpace.offsetTop}function Yn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Zn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,N("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Jn(e){return $-e.display.nativeBarWidth}function er(e){return e.display.scroller.clientWidth-Jn(e)-e.display.barWidth}function tr(e){return e.display.scroller.clientHeight-Jn(e)-e.display.barHeight}function nr(e,t,n){var r=e.options.lineWrapping,i=r&&er(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function rr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(at(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function ir(e,t){var n=at(t=rn(t)),r=e.display.externalMeasured=new En(e.doc,t,n);r.lineN=n;var i=r.built=_n(e,r);return r.text=i.pre,k(e.display.lineMeasure,i.pre),r}function or(e,t,n,r){return lr(e,sr(e,t),n,r)}function ar(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[zr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function sr(e,t){var n=at(t),r=ar(e,n);r&&!r.text?r=null:r&&r.changes&&(Pn(e,r,n,Pr(e)),e.curOp.forceUpdate=!0),r||(r=ir(e,t));var i=rr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function lr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(nr(e,t.view,t.rect),t.hasHeights=!0),(o=hr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var ur,cr={left:0,right:0,top:0,bottom:0};function fr(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function dr(e,t){var n=cr;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function hr(e,t,n,r){var i,o=fr(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&ce(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ce(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():dr(C(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,f="right"}a&&s<11&&(i=pr(e.display.measure,i))}else{var h;u>0&&(f=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Mr(e.display),top:p.top,bottom:p.bottom}:cr}for(var g=i.top-t.rect.top,v=i.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(m<y[b]);b++);var _=b?y[b-1]:0,w=y[b],x={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:_,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=g,x.rbottom=v),x}function pr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!We(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function gr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function vr(e){e.display.externalMeasure=null,L(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)gr(e.display.view[t])}function mr(e){vr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function yr(e){return c&&m?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function br(e){return c&&m?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function _r(e){var t=rn(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Xn(t[r]));return n}function wr(e,t,n,r,i){if(!i){var o=_r(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=fn(t);if("local"==r?a+=Kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:br(j(e)));var l=s.left+("window"==r?0:yr(j(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function xr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=yr(j(e)),i-=br(j(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Tr(e,t,n,r,i){return r||(r=nt(e.doc,t.line)),wr(e,r,or(e,r,t.ch,i),n)}function Ar(e,t,n,r,i,o){function a(t,a){var s=lr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,wr(e,r,s,n)}r=r||nt(e.doc,t.line),i||(i=sr(e,r));var s=me(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=ge(s,l,u),d=pe,h=c(l,f,"before"==u);return null!=d&&(h.other=c(l,d,"before"!=u)),h}function Sr(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Mr(e.display)*t.ch);var r=nt(e.doc,t.line),i=fn(r)+Kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Cr(e,t,n,r,i){var o=ct(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Cr(r.first,0,null,-1,-1);var i=st(r,n),o=r.first+r.size-1;if(i>o)return Cr(r.first+r.size-1,nt(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=nt(r,i);;){var s=Dr(e,a,i,t,n),l=tn(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=nt(r,i=u.line)}}function Lr(e,t,n,r){r-=_r(t);var i=t.text.length,o=de(function(t){return lr(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=de(function(t){return lr(e,n,t).top>r},o,i)}}function kr(e,t,n,r){return n||(n=sr(e,t)),Lr(e,t,n,wr(e,t,lr(e,n,r),"line").top)}function Nr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Dr(e,t,n,r,i){i-=fn(t);var o=sr(e,t),a=_r(t),s=0,l=t.text.length,u=!0,c=me(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Or:Ir)(e,t,n,o,c,r,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var d,h,p=null,g=null,v=de(function(t){var n=lr(e,o,t);return n.top+=a,n.bottom+=a,!!Nr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)},s,l),m=!1;if(g){var y=r-g.left<g.right-r,b=y==u;v=p+(b?0:1),h=b?"after":"before",d=y?g.left:g.right}else{u||v!=l&&v!=s||v++,h=0==v?"after":v==t.text.length?"before":lr(e,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var _=Ar(e,ct(n,v,h),"line",t,o);d=_.left,m=i<_.top?-1:i>=_.bottom?1:0}return Cr(n,v=fe(t.text,v,1),h,m,r-d)}function Ir(e,t,n,r,i,o,a){var s=de(function(s){var l=i[s],u=1!=l.level;return Nr(Ar(e,ct(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Ar(e,ct(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Nr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function Or(e,t,n,r,i,o,a){var s=Lr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d<i.length;d++){var h=i[d];if(!(h.from>=u||h.to<=l)){var p=lr(e,r,1!=h.level?Math.min(u,h.to)-1:Math.max(l,h.from)).right,g=p<o?o-p+1e9:p-o;(!c||f>g)&&(c=h,f=g)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ur){ur=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ur.appendChild(document.createTextNode("x")),ur.appendChild(N("br"));ur.appendChild(document.createTextNode("x"))}k(e.measure,ur);var n=ur.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function Mr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");k(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Pr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:jr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function jr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Fr(e){var t=Rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(i){if(un(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Br(e){var t=e.doc,n=Fr(e);t.iter(function(e){var t=n(e);t!=e.height&&ot(e,t)})}function Hr(e,t,n,r){var i=e.display;if(!n&&"true"==De(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=Er(e,o,a);if(r&&u.xRel>0&&(l=nt(e.doc,u.line).text).length==u.ch){var c=W(l,l.length,e.options.tabSize)-l.length;u=ct(u.line,Math.max(0,Math.round((o-Zn(e.display).left)/Mr(e.display))-c))}return u}function zr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Ur(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Mt&&sn(e.doc,t)<i.viewTo&&qr(e);else if(n<=i.viewFrom)Mt&&ln(e.doc,n+r)>i.viewFrom?qr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)qr(e);else if(t<=i.viewFrom){var o=Gr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):qr(e)}else if(n>=i.viewTo){var a=Gr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):qr(e)}else{var s=Gr(e,t,t,-1),l=Gr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Ln(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):qr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function Wr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[zr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==G(a,n)&&a.push(n)}}}function qr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Gr(e,t,n,r){var i,o=zr(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;sn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function $r(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Ln(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Ln(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(zr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Ln(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,zr(e,n)))),r.viewTo=n}function Vr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Xr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Qr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&Kr(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&Kr(e,l.head,i);u||Zr(e,l,o)}}return r}function Kr(e,t,n){var r=Ar(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(N("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Tr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Yr(e,t){return e.top-t.top||e.left-t.left}function Zr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Zn(e.display),s=a.left,l=Math.max(r.sizerWidth,er(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(n??l-e)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=nt(i,t),d=f.text.length;function h(n,r){return Tr(e,ct(t,n),"div",f,r)}function p(t,n,r){var i=kr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return h("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var g=me(f,i.direction);return he(g,n||0,r??d,function(e,t,i,f){var v="ltr"==i,m=h(e,v?"left":"right"),y=h(t-1,v?"right":"left"),b=null==n&&0==e,_=null==r&&t==d,w=0==f,x=!g||f==g.length-1;if(y.top-m.top<=3){var T=(u?_:b)&&x,A=(u?b:_)&&w?s:(v?m:y).left,S=T?l:(v?y:m).right;c(A,m.top,S-A,m.bottom)}else{var C,E,L,k;v?(C=u&&b&&w?s:m.left,E=u?l:p(e,i,"before"),L=u?s:p(t,i,"after"),k=u&&_&&x?l:y.right):(C=u?p(e,i,"before"):s,E=!u&&b&&w?l:m.right,L=!u&&_&&x?s:y.left,k=u?p(t,i,"after"):l),c(C,m.top,E-C,m.bottom),m.bottom<y.top&&c(s,m.bottom,null,y.top),c(L,y.top,k-L,y.bottom)}(!o||Yr(m,o)<0)&&(o=m),Yr(y,o)<0&&(o=y),(!a||Yr(m,a)<0)&&(a=m),Yr(y,a)<0&&(a=y)}),{start:o,end:a}}var d=t.from(),h=t.to();if(d.line==h.line)f(d.line,d.ch,h.ch);else{var p=nt(i,d.line),g=nt(i,h.line),v=rn(p)==rn(g),m=f(d.line,d.ch,v?p.text.length+1:null).end,y=f(h.line,v?0:null,h.ch).start;v&&(m.top<y.top-2?(c(m.right,m.top,null,m.bottom),c(s,y.top,y.left,y.bottom)):c(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&c(s,m.bottom,null,y.top)}n.appendChild(o)}function Jr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||ri(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ei(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ni(e))}function ti(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ri(e))},100)}function ni(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(xe(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Jr(e))}function ri(e,t){e.state.delayingBlurEvent||(e.state.focused&&(xe(e,"blur",e,t),e.state.focused=!1,E(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ii(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,f=void 0,d=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var h=u.node.offsetTop+u.node.offsetHeight;f=h-n,n=h}else{var p=u.node.getBoundingClientRect();f=p.bottom-p.top,!c&&u.text.firstChild&&(d=u.text.firstChild.getBoundingClientRect().right-p.left-1)}var g=u.line.height-f;if((g>.005||g<-.005)&&(i<r&&(o-=g),ot(u.line,f),oi(u.line),u.rest))for(var v=0;v<u.rest.length;v++)oi(u.rest[v]);if(d>e.display.sizerWidth){var m=Math.ceil(d/Mr(e.display));m>e.display.maxLineLength&&(e.display.maxLineLength=m,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function oi(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ai(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=st(t,r),a=st(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=st(t,fn(nt(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=st(t,fn(nt(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function si(e,t){if(!Te(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=N("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Kn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function li(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ct(t.line,t.ch+1,"before"):t,t=t.ch?ct(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Ar(e,t),l=n&&n!=t?Ar(e,n):s,u=ci(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(mi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(bi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}function ui(e,t){var n=ci(e,t);null!=n.scrollTop&&mi(e,n.scrollTop),null!=n.scrollLeft&&bi(e,n.scrollLeft)}function ci(e,t){var n=e.display,r=Rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=tr(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Yn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,h=er(e)-n.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+f-(p?0:10)):t.right>h+d-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function fi(e,t){null!=t&&(gi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function di(e){gi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hi(e,t,n){null==t&&null==n||gi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function pi(e,t){gi(e),e.curOp.scrollToPos=t}function gi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,vi(e,Sr(e,t.from),Sr(e,t.to),t.margin))}function vi(e,t,n,r){var i=ci(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hi(e,i.scrollLeft,i.scrollTop)}function mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Xi(e,{top:t}),yi(e,t,!0),n&&Xi(e),Hi(e,100))}function yi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function bi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Zi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function _i(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Yn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var wi=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),be(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new q,this.disableVert=new q},wi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xi=function(){};function Ti(e,t){t||(t=_i(e));var n=e.display.barWidth,r=e.display.barHeight;Ai(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ii(e),Ai(e,_i(e)),n=e.display.barWidth,r=e.display.barHeight}function Ai(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}xi.prototype.update=function(){return{bottom:0,right:0}},xi.prototype.setScrollLeft=function(){},xi.prototype.setScrollTop=function(){},xi.prototype.clear=function(){};var Si={native:wi,null:xi};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Si[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?bi(e,t):mi(e,t)},e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Ei=0;function Li(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ei,markArrays:null},Nn(e.curOp)}function ki(e){var t=e.curOp;t&&In(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ni(e)})}function Ni(e){for(var t=e.ops,n=0;n<t.length;n++)Di(t[n]);for(var r=0;r<t.length;r++)Ii(t[r]);for(var i=0;i<t.length;i++)Oi(t[i]);for(var o=0;o<t.length;o++)Ri(t[o]);for(var a=0;a<t.length;a++)Mi(t[a])}function Di(e){var t=e.cm,n=t.display;Wi(t),e.updateMaxLine&&hn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ii(e){e.updatedDisplay=e.mustUpdate&&$i(e.cm,e.update)}function Oi(e){var t=e.cm,n=t.display;e.updatedDisplay&&ii(t),e.barMeasure=_i(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=or(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-er(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ri(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&bi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==O(F(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ti(t,e.barMeasure),e.updatedDisplay&&Yi(t,e.barMeasure),e.selectionChanged&&Jr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&ei(e.cm)}function Mi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Vi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&yi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&bi(t,e.scrollLeft,!0,!0),e.scrollToPos&&si(t,li(t,mt(r,e.scrollToPos.from),mt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||xe(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&xe(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&xe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Pi(e,t){if(e.curOp)return t();Li(e);try{return t()}finally{ki(e)}}function ji(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Li(e);try{return t.apply(e,arguments)}finally{ki(e)}}}function Fi(e){return function(){if(this.curOp)return e.apply(this,arguments);Li(this);try{return e.apply(this,arguments)}finally{ki(this)}}}function Bi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Li(t);try{return e.apply(this,arguments)}finally{ki(t)}}}function Hi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,z(zi,e))}function zi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=At(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ze(t.mode,r.state):null,l=xt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=o.styles[d];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&St(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Hi(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Pi(e,function(){for(var t=0;t<i.length;t++)Wr(e,i[t],"text")})}}var Ui=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ai(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=er(e),this.force=n,this.dims=Pr(e),this.events=[]};function Wi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Jn(e)+"px",t.scrollbarsClipped=!0)}function qi(e){if(e.hasFocus())return null;var t=O(F(e));if(!t||!I(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=H(e).getSelection();r.anchorNode&&r.extend&&I(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Gi(e){if(e&&e.activeElt&&e.activeElt!=O(B(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&I(document.body,e.anchorNode)&&I(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function $i(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return qr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Vr(e))return!1;Ji(e)&&(qr(e),t.dims=Pr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Mt&&(o=sn(e.doc,o),a=ln(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;$r(e,o,a),n.viewOffset=fn(nt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Vr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=qi(e);return l>4&&(n.lineDiv.style.display="none"),Qi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Gi(u),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Hi(e,400)),n.updateLineNumbers=null,!0}function Vi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=er(e))r&&(t.visible=ai(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Yn(e.display)-tr(e),n.top)}),t.visible=ai(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!$i(e,t))break;ii(e);var i=_i(e);Xr(e),Ti(e,i),Yi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Xi(e,t){var n=new Ui(e,t);if($i(e,n)){ii(e),Vi(e,n);var r=_i(e);Xr(e),Ti(e,r),Yi(e,r),n.finish()}}function Qi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;a!=d.node;)a=s(a);var h=i&&null!=t&&t<=c&&d.lineNumber;d.changes&&(G(d.changes,"gutter")>-1&&(h=!1),Pn(e,d,c,n)),h&&(L(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ut(e.options,c)))),a=d.node.nextSibling}else{var p=qn(e,d,c,n);o.insertBefore(p,a)}c+=d.size}for(;a;)a=s(a)}function Ki(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Rn(e,"gutterChanged",e)}function Yi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Zi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=jr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ji(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ut(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(N("div",[N("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Ki(e.display),!0}return!1}function eo(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function to(e){var t=e.gutters,n=e.gutterSpecs;L(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(N("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Ki(e)}function no(e){to(e.display),Ur(e),Zi(e)}function ro(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=D("div",null,"CodeMirror-code"),o.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=N("div",null,"CodeMirror-cursors"),o.measure=N("div",null,"CodeMirror-measure"),o.lineMeasure=N("div",null,"CodeMirror-measure"),o.lineSpace=D("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=D("div",[o.lineSpace],"CodeMirror-lines");o.mover=N("div",[u],null,"position: relative"),o.sizer=N("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=N("div",null,null,"position: absolute; height: "+$+"px; width: 1px;"),o.gutters=N("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=N("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=N("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&105===f&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=eo(i.gutters,i.lineNumbers),to(o),r.init(o)}Ui.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},Ui.prototype.finish=function(){for(var e=0;e<this.events.length;e++)xe.apply(null,this.events[e])};var io=0,oo=null;function ao(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function so(e){var t=ao(e);return t.x*=oo,t.y*=oo,t}function lo(e,t){c&&102==f&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=ao(t),i=r.x,o=r.y,a=oo;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,h=u.scrollWidth>u.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&h||o&&p){if(o&&b&&l)e:for(var g=t.target,v=s.view;g!=u;g=g.parentNode)for(var m=0;m<v.length;m++)if(v[m].node==g){e.display.currentWheelTarget=g;break e}if(i&&!n&&!d&&null!=a)return o&&p&&mi(e,Math.max(0,u.scrollTop+o*a)),bi(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&p)&&Ee(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,_=e.doc.scrollTop,w=_+s.wrapper.clientHeight;y<0?_=Math.max(0,_+y-50):w=Math.min(e.doc.height,w+y+50),Xi(e,{top:_,bottom:w})}io<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(oo=(oo*io+n)/(io+1),++io)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?oo=-.53:n?oo=15:c?oo=-.7:h&&(oo=-1/3);var uo=function(e,t){this.ranges=e,this.primIndex=t};uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!dt(n.anchor,r.anchor)||!dt(n.head,r.head))return!1}return!0},uo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new co(ht(this.ranges[t].anchor),ht(this.ranges[t].head));return new uo(e,this.primIndex)},uo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},uo.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ft(t,r.from())>=0&&ft(e,r.to())<=0)return n}return-1};var co=function(e,t){this.anchor=e,this.head=t};function fo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ft(e.from(),t.from())}),n=G(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ft(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=gt(s.from(),a.from()),c=pt(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new co(f?c:u,f?u:c))}}return new uo(t,n)}function ho(e,t){return new uo([new co(e,t||e)],0)}function po(e){return e.text?ct(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function go(e,t){if(ft(e,t.from)<0)return e;if(ft(e,t.to)<=0)return po(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=po(t).ch-t.to.ch),ct(n,r)}function vo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new co(go(i.anchor,t),go(i.head,t)))}return fo(e.cm,n,e.sel.primIndex)}function mo(e,t,n){return e.line==t.line?ct(n.line,e.ch-t.ch+n.ch):ct(n.line+(e.line-t.line),e.ch)}function yo(e,t,n){for(var r=[],i=ct(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=mo(s.from,i,o),u=mo(po(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],f=ft(c.head,c.anchor)<0;r[a]=new co(f?u:l,f?l:u)}else r[a]=new co(l,l)}return new uo(r,e.sel.primIndex)}function bo(e){e.doc.mode=Qe(e.options,e.doc.modeOption),_o(e)}function _o(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Hi(e,100),e.state.modeGen++,e.curOp&&Ur(e)}function wo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==ee(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function xo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){gn(e,n,i,r),Rn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new pn(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=nt(e,s.line),f=nt(e,l.line),d=ee(u),h=i(u.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(wo(e,t)){var g=a(0,u.length-1);o(f,f.text,h),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),h);else{var v=a(1,u.length-1);v.push(new pn(d+c.text.slice(l.ch),h,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,d+f.text.slice(l.ch),h);var m=a(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,m)}Rn(e,"change",e,t)}function To(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function Ao(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Br(e),bo(e),So(e),e.options.direction=t.direction,e.options.lineWrapping||hn(e),e.options.mode=t.modeOption,Ur(e)}function So(e){("rtl"==e.doc.direction?R:E)(e.display.lineDiv,"CodeMirror-rtl")}function Co(e){Pi(e,function(){So(e),Ur(e)})}function Eo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Lo(e,t){var n={from:ht(t.from),to:po(t),text:rt(e,t.from,t.to)};return Mo(e,n,t.from.line,t.to.line+1),To(e,function(e){return Mo(e,n,t.from.line,t.to.line+1)},!0),n}function ko(e){for(;e.length&&ee(e).ranges;)e.pop()}function No(e,t){return t?(ko(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function Do(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=No(i,i.lastOp==r)))a=ee(o.changes),0==ft(t.from,t.to)&&0==ft(t.from,a.to)?a.to=po(t):o.changes.push(Lo(e,t));else{var l=ee(i.done);for(l&&l.ranges||Ro(e.sel,i.done),o={changes:[Lo(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||xe(e,"historyAdded")}function Io(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Oo(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Io(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:Ro(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ko(i.undone)}function Ro(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Mo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Po(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function jo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Po(n[i]));return r}function Fo(e,t){var n=jo(e,t),r=qt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Bo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?uo.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&G(t,Number(c[1]))>-1&&(ee(s)[f]=u[f],delete u[f])}}}return r}function Ho(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ft(t,i)<0;o!=ft(n,i)<0?(i=t,t=n):o!=ft(t,n)<0&&(t=n)}return new co(i,t)}return new co(n||t,t)}function zo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Vo(e,new uo([Ho(e.sel.primary(),t,n,i)],0),r)}function Uo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ho(e.sel.ranges[o],t[o],null,i);Vo(e,fo(e.cm,r,e.sel.primIndex),n)}function Wo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Vo(e,fo(e.cm,i,e.sel.primIndex),r)}function qo(e,t,n,r){Vo(e,ho(t,n),r)}function Go(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new co(mt(e,t[n].anchor),mt(e,t[n].head))},origin:n&&n.origin};return xe(e,"beforeSelectionChange",e,r),e.cm&&xe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?fo(e.cm,r.ranges,r.ranges.length-1):t}function $o(e,t,n){var r=e.history.done,i=ee(r);i&&i.ranges?(r[r.length-1]=t,Xo(e,t,n)):Vo(e,t,n)}function Vo(e,t,n){Xo(e,t,n),Oo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Xo(e,t,n){(Se(e,"beforeSelectionChange")||e.cm&&Se(e.cm,"beforeSelectionChange"))&&(t=Go(e,t,n));var r=n&&n.bias||(ft(t.primary().head,e.sel.primary().head)<0?-1:1);Qo(e,Yo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||di(e.cm)}function Qo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),Rn(e,"cursorActivity",e))}function Ko(e){Qo(e,Yo(e,e.sel,null,!1))}function Yo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Jo(e,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:Jo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new co(l,u))}return i?fo(e.cm,i,t.primIndex):t}function Zo(e,t,n,r,i){var o=nt(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(xe(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(f=ea(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=ft(f,n))&&(r<0?d<0:d>0))return Zo(e,f,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?u:c)&&(h=ea(e,h,r,h.line==t.line?o:null)),h?Zo(e,h,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Zo(e,t,n,o,i)||!i&&Zo(e,t,n,o,!0)||Zo(e,t,n,-o,i)||!i&&Zo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ct(e.first,0))}function ea(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?mt(e,ct(t.line-1)):null:n>0&&t.ch==(r||nt(e,t.line)).text.length?t.line<e.first+e.size-1?ct(t.line+1,0):null:new ct(t.line,t.ch+n)}function ta(e){e.setSelection(ct(e.firstLine(),0),ct(e.lastLine()),X)}function na(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=mt(e,t)),n&&(r.to=mt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),xe(e,"beforeChange",e,r),e.cm&&xe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ra(e,t,n){if(e.cm){if(!e.cm.curOp)return ji(e.cm,ra)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Se(e,"beforeChange")||e.cm&&Se(e.cm,"beforeChange"))||(t=na(e,t,!0))){var r=Rt&&!n&&$t(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ia(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ia(e,t)}}function ia(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ft(t.from,t.to)){var n=vo(e,t);Do(e,t,n,e.cm?e.cm.curOp.id:NaN),sa(e,t,n,qt(e,t));var r=[];To(e,function(e,n){n||-1!=G(r,e.history)||(da(e.history,t),r.push(e.history)),sa(e,t,null,qt(e,t))})}}function oa(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Ro(i,l),n&&!i.equals(e.sel))return void Vo(e,i,{clearRedo:!1});a=i}var c=[];Ro(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=Se(e,"beforeChange")||e.cm&&Se(e.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=t,f&&!na(e,r,!1))return s.length=0,{};c.push(Lo(e,r));var o=n?vo(e,r):ee(s);sa(e,r,o,Fo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:po(r)});var a=[];To(e,function(e,t){t||-1!=G(a,e.history)||(da(e.history,r),a.push(e.history)),sa(e,r,null,Fo(e,r))})},h=i.changes.length-1;h>=0;--h){var p=d(h);if(p)return p.v}}}}function aa(e,t){if(0!=t&&(e.first+=t,e.sel=new uo(te(e.sel.ranges,function(e){return new co(ct(e.anchor.line+t,e.anchor.ch),ct(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Ur(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Wr(e.cm,r,"gutter")}}function sa(e,t,n,r){if(e.cm&&!e.cm.curOp)return ji(e.cm,sa)(e,t,n,r);if(t.to.line<e.first)aa(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);aa(e,i),t={from:ct(e.first,0),to:ct(t.to.line+i,t.to.ch),text:[ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ct(o,nt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=rt(e,t.from,t.to),n||(n=vo(e,t)),e.cm?la(e.cm,t,r):xo(e,t,r),Xo(e,n,X),e.cantEdit&&Jo(e,ct(e.firstLine(),0))&&(e.cantEdit=!1)}}function la(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=at(rn(nt(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ae(e),xo(r,t,n,Fr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=dn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),Ot(r,o.line),Hi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Ur(e):o.line!=a.line||1!=t.text.length||wo(e.doc,t)?Ur(e,o.line,a.line+1,u):Wr(e,o.line,"text");var c=Se(e,"changes"),f=Se(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Rn(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ua(e,t,n,r,i){var o;r||(r=n),ft(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ra(e,{from:n,to:r,text:t,origin:i})}function ca(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function fa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)ca(o.ranges[s].anchor,t,n,r),ca(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ct(u.from.line+r,u.from.ch),u.to=ct(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function da(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;fa(e.done,n,r,i),fa(e.undone,n,r,i)}function ha(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=nt(e,vt(e,t)):i=at(t),null==i?null:(r(o,i)&&e.cm&&Wr(e.cm,i,n),o)}function pa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ga(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}co.prototype.from=function(){return gt(this.anchor,this.head)},co.prototype.to=function(){return pt(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,vn(i),Rn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ga.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof pa))){var s=[];this.collapse(s),this.children=[new pa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new pa(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ga(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=G(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ga(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var va=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ma(e,t,n){fn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&fi(e,n)}function ya(e,t,n,r){var i=new va(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ha(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!un(e,t)){var r=fn(t)<e.scrollTop;ot(t,t.height+Xn(i)),r&&fi(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&Rn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:at(t)),i}va.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=at(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Xn(this);ot(n,Math.max(0,n.height-o)),e&&(Pi(e,function(){ma(e,n,-o),Wr(e,r,"widget")}),Rn(e,"lineWidgetCleared",e,this,r))}},va.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Xn(this)-t;i&&(un(this.doc,r)||ot(r,r.height+i),n&&Pi(n,function(){n.curOp.forceUpdate=!0,ma(n,r,i),Rn(n,"lineWidgetChanged",n,e,at(r))}))},Ce(va);var ba=0,_a=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ba};function wa(e,t,n,r,i){if(r&&r.shared)return Ta(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ji(e.cm,wa)(e,t,n,r,i);var o=new _a(e,i),a=ft(t,n);if(r&&U(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(nn(e,t.line,t,n,o)||t.line!=n.line&&nn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");jt()}o.addToHistory&&Do(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&rn(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&ot(r,0),zt(r,new Ft(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){un(e,t)&&ot(t,0)}),o.clearOnEnter&&be(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ba,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Ur(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Wr(u,c,"text");o.atomic&&Ko(u.doc),Rn(u,"markerAdded",u,o)}return o}_a.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Li(e),Se(this,"clear")){var n=this.find();n&&Rn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Bt(a.markedSpans,this);e&&!this.collapsed?Wr(e,at(a),"text"):e&&(null!=s.to&&(i=at(a)),null!=s.from&&(r=at(a))),a.markedSpans=Ht(a.markedSpans,s),null==s.from&&this.collapsed&&!un(this.doc,a)&&e&&ot(a,Rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=rn(this.lines[l]),c=dn(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Ur(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ko(e.doc)),e&&Rn(e,"markerCleared",e,this,r,i),t&&ki(e),this.parent&&this.parent.clear()}},_a.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Bt(o.markedSpans,this);if(null!=a.from&&(n=ct(t?o:at(o),a.from),-1==e))return n;if(null!=a.to&&(r=ct(t?o:at(o),a.to),1==e))return r}return n&&{from:n,to:r}},_a.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Pi(r,function(){var i=t.line,o=at(t.line),a=ar(r,o);if(a&&(gr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!un(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Xn(n)-s;l&&ot(i,i.height+l)}Rn(r,"markerChanged",r,e)})},_a.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=G(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},_a.prototype.detachLine=function(e){if(this.lines.splice(G(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ce(_a);var xa=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Ta(e,t,n,r,i){(r=U(r)).shared=!1;var o=[wa(e,t,n,r,i)],a=o[0],s=r.widgetNode;return To(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(wa(e,mt(e,t),mt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=ee(o)}),new xa(o,a)}function Aa(e){return e.findMarks(ct(e.first,0),e.clipPos(ct(e.lastLine())),function(e){return e.parent})}function Sa(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ft(o,a)){var s=wa(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Ca(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];To(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==G(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}xa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Rn(this,"clear")}},xa.prototype.find=function(e,t){return this.primary.find(e,t)},Ce(xa);var Ea=0,La=function(e,t,n,r,i){if(!(this instanceof La))return new La(e,t,n,r,i);null==n&&(n=0),ga.call(this,[new pa([new pn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ct(n,0);this.sel=ho(o),this.history=new Eo(null),this.id=++Ea,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),xo(this,{from:o,to:o,text:e}),Vo(this,ho(o),X)};La.prototype=ie(ga.prototype,{constructor:La,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=it(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Bi(function(e){var t=ct(this.first,0),n=this.first+this.size-1;ra(this,{from:t,to:ct(n,nt(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hi(this.cm,0,0),Vo(this,ho(t),X)}),replaceRange:function(e,t,n,r){ua(this,e,t=mt(this,t),n=n?mt(this,n):t,r)},getRange:function(e,t,n){var r=rt(this,mt(this,e),mt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(lt(this,e))return nt(this,e)},getLineNumber:function(e){return at(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=nt(this,e)),rn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Bi(function(e,t,n){qo(this,mt(this,"number"==typeof e?ct(e,t||0):e),null,n)}),setSelection:Bi(function(e,t,n){qo(this,mt(this,e),mt(this,t||e),n)}),extendSelection:Bi(function(e,t,n){zo(this,mt(this,e),t&&mt(this,t),n)}),extendSelections:Bi(function(e,t){Uo(this,bt(this,e),t)}),extendSelectionsBy:Bi(function(e,t){Uo(this,bt(this,te(this.sel.ranges,e)),t)}),setSelections:Bi(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new co(mt(this,e[i].anchor),mt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Vo(this,fo(this.cm,r,t),n)}}),addSelection:Bi(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new co(mt(this,e),mt(this,t||e))),Vo(this,fo(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=rt(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=rt(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Bi(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&yo(this,r,t),l=r.length-1;l>=0;l--)ra(this,r[l]);s?$o(this,s):this.cm&&di(this.cm)}),undo:Bi(function(){oa(this,"undo")}),redo:Bi(function(){oa(this,"redo")}),undoSelection:Bi(function(){oa(this,"undo",!0)}),redoSelection:Bi(function(){oa(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Eo(this.history),To(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Bo(this.history.done),undone:Bo(this.history.undone)}},setHistory:function(e){var t=this.history=new Eo(this.history);t.done=Bo(e.done.slice(0),null,!0),t.undone=Bo(e.undone.slice(0),null,!0)},setGutterMarker:Bi(function(e,t,n){return ha(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&le(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Bi(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ha(t,n,"gutter",function(){return n.gutterMarkers[e]=null,le(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!lt(this,e))return null;if(t=e,!(e=nt(this,e)))return null}else if(null==(t=at(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Bi(function(e,t,n){return ha(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:Bi(function(e,t,n){return ha(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:Bi(function(e,t,n){return ya(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return wa(this,mt(this,e),mt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return wa(this,e=mt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=nt(this,(e=mt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),mt(this,ct(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new La(it(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new La(it(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Sa(r,Aa(this)),r},unlinkDoc:function(e){if(e instanceof Us&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ca(Aa(this));break}if(e.history==this.history){var n=[e.id];To(e,function(e){return n.push(e.id)},!0),e.history=new Eo(null),e.history.done=Bo(this.history.done,n),e.history.undone=Bo(this.history.undone,n)}},iterLinkedDocs:function(e){To(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Be(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Bi(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Co(this.cm))})}),La.prototype.eachLine=La.prototype.iter;var ka=0;function Na(e){var t=this;if(Oa(t),!Te(t,e)&&!Qn(t.display,e)){Ee(e),a&&(ka=+new Date);var n=Hr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ji(t,function(){var e={from:n=mt(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};ra(t.doc,e),$o(t.doc,ho(mt(t.doc,n),mt(t.doc,po(e))))})()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==G(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),Xo(t.doc,ho(n,n)),d)for(var h=0;h<d.length;++h)ua(t.doc,"",d[h].anchor,d[h].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Da(e,t){if(a&&(!e.state.draggingText||+new Date-ka<100))Ne(t);else if(!Te(e,t)&&!Qn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ia(e,t){var n=Hr(e,t);if(n){var r=document.createDocumentFragment();Kr(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,r)}}function Oa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ra(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Ma=!1;function Pa(){Ma||(ja(),Ma=!0)}function ja(){var e;be(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Ra(Fa)},100))}),be(window,"blur",function(){return Ra(ri)})}function Fa(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ba={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ha=0;Ha<10;Ha++)Ba[Ha+48]=Ba[Ha+96]=String(Ha);for(var za=65;za<=90;za++)Ba[za]=String.fromCharCode(za);for(var Ua=1;Ua<=12;Ua++)Ba[Ua+111]=Ba[Ua+63235]="F"+Ua;var Wa={};function qa(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ga(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=te(n.split(" "),qa),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function $a(e,t,n,r){var i=(t=Ka(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return $a(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=$a(e,t.fallthrough[o],n,r);if(a)return a}}}function Va(e){var t="string"==typeof e?e:Ba[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Xa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(T?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(T?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Qa(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ba[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Xa(n,e,t))}function Ka(e){return"string"==typeof e?Wa[e]:e}function Ya(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ft(o.from,ee(r).to)<=0;){var a=r.pop();if(ft(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Pi(e,function(){for(var t=r.length-1;t>=0;t--)ua(e.doc,"",r[t].from,r[t].to,"+delete");di(e)})}function Za(e,t,n){var r=fe(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Za(e,t.ch,n);return null==r?null:new ct(t.line,r,n<0?"after":"before")}function es(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=me(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=sr(t,n);a=i<0?n.text.length-1:0;var c=lr(t,u,a).top;a=de(function(e){return lr(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Za(n,a,1))}else a=i<0?s.to:s.from;return new ct(r,a,l)}}return new ct(r,i<0?n.text.length:0,i<0?"before":"after")}function ts(e,t,n,r){var i=me(t,e.doc.direction);if(!i)return Ja(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ge(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ja(t,n,r);var s,l=function(e,n){return Za(t,e instanceof ct?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||sr(e,t),kr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,d=l(n,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var h=f?"before":"after";return new ct(n.line,d,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ct(n.line,l(e,1),"before"):new ct(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},g=p(o+r,r,c);if(g)return g;var v=r>0?c.end:l(c.begin,-1);return null==v||r>0&&v==t.text.length||!(g=p(r>0?0:i.length-1,r,u(v)))?null:g}Wa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Wa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Wa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Wa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Wa.default=b?Wa.macDefault:Wa.pcDefault;var ns={selectAll:ta,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),X)},killLine:function(e){return Ya(e,function(t){if(t.empty()){var n=nt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ct(t.head.line+1,0)}:{from:t.head,to:ct(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Ya(e,function(t){return{from:ct(t.from().line,0),to:mt(e.doc,ct(t.to().line+1,0))}})},delLineLeft:function(e){return Ya(e,function(e){return{from:ct(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Ya(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Ya(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ct(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ct(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return rs(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return os(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return is(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},K)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},K)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?os(e,t.head):r},K)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=W(e.getLine(o.line),o.ch,r);t.push(J(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pi(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=nt(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ct(i.line,i.ch-1)),i.ch>0)i=new ct(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ct(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=nt(e.doc,i.line-1).text;a&&(i=new ct(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ct(i.line-1,a.length-1),i,"+transpose"))}n.push(new co(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Pi(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);di(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function rs(e,t){var n=nt(e.doc,t),r=rn(n);return r!=n&&(t=at(r)),es(!0,e,r,t,1)}function is(e,t){var n=nt(e.doc,t),r=on(n);return r!=n&&(t=at(r)),es(!0,e,n,t,-1)}function os(e,t){var n=rs(e,t.line),r=nt(e.doc,n.line),i=me(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ct(n.line,a?0:o,n.sticky)}return n}function as(e,t,n){if("string"==typeof t&&!(t=ns[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=V}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ss(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=$a(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&$a(t,e.options.extraKeys,n,e)||$a(t,e.options.keyMap,n,e)}var ls=new q;function us(e,t,n,r){var i=e.state.keySeq;if(i){if(Va(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ls.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),cs(e,i+" "+t,n,r))return!0}return cs(e,t,n,r)}function cs(e,t,n,r){var i=ss(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Rn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ee(n),Jr(e)),!!i}function fs(e,t){var n=Qa(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?us(e,"Shift-"+n,t,function(t){return as(e,t,!0)})||us(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return as(e,t)}):us(e,n,t,function(t){return as(e,t)}))}function ds(e,t,n){return us(e,"'"+n+"'",t,function(t){return as(e,t,!0)})}var hs=null;function ps(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=O(F(t)),Te(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=fs(t,e);d&&(hs=i?r:null,i||88!=r||ze||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||gs(t)}}function gs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(E(t,"CodeMirror-crosshair"),we(document,"keyup",n),we(document,"mouseover",n))}R(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n)}function vs(e){16==e.keyCode&&(this.doc.sel.shift=!1),Te(this,e)}function ms(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Qn(t.display,e)||Te(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==hs)return hs=null,void Ee(e);if(!d||e.which&&!(e.which<10)||!fs(t,e)){var i=String.fromCharCode(r??n);"\b"!=i&&(ds(t,e,i)||t.display.input.onKeyPress(e))}}}var ys,bs,_s=400,ws=function(e,t,n){this.time=e,this.pos=t,this.button=n};function xs(e,t){var n=+new Date;return bs&&bs.compare(n,e,t)?(ys=bs=null,"triple"):ys&&ys.compare(n,e,t)?(bs=new ws(n,e,t),ys=null,"double"):(ys=new ws(n,e,t),bs=null,"single")}function Ts(e){var t=this,n=t.display;if(!(Te(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Qn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Is(t,e)){var r=Hr(t,e),i=Ie(e),o=r?xs(r,i):"single";H(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&As(t,i,r,o,e)||(1==i?r?Cs(t,r,o,e):De(e)==n.scroller&&Ee(e):2==i?(r&&zo(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(A?t.display.input.onContextMenu(e):ti(t)))}}function As(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),us(e,Xa(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=ns[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=V}finally{e.state.suppressEdits=!1}return r})}function Ss(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=_?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Cs(e,t,n,r){a?setTimeout(z(ei,e),0):e.curOp.focus=O(F(e));var i,o=Ss(e,n,r),s=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ft((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ft(i.to(),t)>0||t.xRel<0)?Es(e,r,t,o):ks(e,r,t,o)}function Es(e,t,n,r){var i=e.display,o=!1,u=ji(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ti(e)),we(i.wrapper.ownerDocument,"mouseup",u),we(i.wrapper.ownerDocument,"mousemove",c),we(i.scroller,"dragstart",f),we(i.scroller,"drop",u),o||(Ee(t),r.addNew||zo(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,be(i.wrapper.ownerDocument,"mouseup",u),be(i.wrapper.ownerDocument,"mousemove",c),be(i.scroller,"dragstart",f),be(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ls(e,t,n){if("char"==n)return new co(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new co(ct(t.line,0),mt(e.doc,ct(t.line+1,0)));var r=n(e,t);return new co(r.from,r.to)}function ks(e,t,n,r){a&&ti(e);var i=e.display,o=e.doc;Ee(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new co(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new co(n,n)),n=Hr(e,t,!0,!0),l=-1;else{var f=Ls(e,n,r.unit);s=r.extend?Ho(s,f.anchor,f.head,r.extend):f}r.addNew?-1==l?(l=c.length,Vo(o,fo(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Vo(o,fo(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Wo(o,l,s,Q):(l=0,Vo(o,new uo([s],0),Q),u=o.sel);var d=n;function h(t){if(0!=ft(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=W(nt(o,n.line).text,n.ch,a),f=W(nt(o,t.line).text,t.ch,a),h=Math.min(c,f),p=Math.max(c,f),g=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=v;g++){var m=nt(o,g).text,y=Y(m,h,a);h==p?i.push(new co(ct(g,y),ct(g,y))):m.length>y&&i.push(new co(ct(g,y),ct(g,Y(m,p,a))))}i.length||i.push(new co(n,n)),Vo(o,fo(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,_=s,w=Ls(e,t,r.unit),x=_.anchor;ft(w.anchor,x)>0?(b=w.head,x=gt(_.from(),w.anchor)):(b=w.anchor,x=pt(_.to(),w.head));var T=u.ranges.slice(0);T[l]=Ns(e,new co(mt(o,x),b)),Vo(o,fo(e,T,l),Q)}}var p=i.wrapper.getBoundingClientRect(),g=0;function v(t){var n=++g,a=Hr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ft(a,d)){e.curOp.focus=O(F(e)),h(a);var s=ai(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(ji(e,function(){g==n&&v(t)}),150)}else{var l=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;l&&setTimeout(ji(e,function(){g==n&&(i.scroller.scrollTop+=l,v(t))}),50)}}function m(t){e.state.selectingText=!1,g=1/0,t&&(Ee(t),i.input.focus()),we(i.wrapper.ownerDocument,"mousemove",y),we(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=ji(e,function(e){0!==e.buttons&&Ie(e)?v(e):m(e)}),b=ji(e,m);e.state.selectingText=b,be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b)}function Ns(e,t){var n=t.anchor,r=t.head,i=nt(e.doc,n.line);if(0==ft(n,r)&&n.sticky==r.sticky)return t;var o=me(i);if(!o)return t;var a=ge(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ge(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var d=o[u+(l?-1:0)],h=l==(1==d.level),p=h?d.from:d.to,g=h?"after":"before";return n.ch==p&&n.sticky==g?t:new co(new ct(n.line,p,g),r)}function Ds(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ee(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Se(e,n))return ke(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return xe(e,n,e,st(e.doc,o),e.display.gutterSpecs[l].className,t),ke(t)}}function Is(e,t){return Ds(e,t,"gutterClick",!0)}function Os(e,t){Qn(e.display,t)||Rs(e,t)||Te(e,t,"contextmenu")||A||e.display.input.onContextMenu(t)}function Rs(e,t){return!!Se(e,"gutterContextMenu")&&Ds(e,t,"gutterContextMenu",!1)}function Ms(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mr(e)}ws.prototype.compare=function(e,t,n){return this.time+_s>e&&0==ft(t,this.pos)&&n==this.button};var Ps={toString:function(){return"CodeMirror.Init"}},js={},Fs={};function Bs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ps&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ps,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,bo(e)},!0),n("indentUnit",2,bo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){_o(e),mr(e),Ur(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ct(r,o))}r++});for(var i=n.length-1;i>=0;i--)ua(e.doc,t,n[i],ct(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ps&&e.refresh()}),n("specialCharPlaceholder",wn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Ms(e),no(e)},!0),n("keyMap","default",function(e,t,n){var r=Ka(t),i=n!=Ps&&Ka(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,zs,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=eo(t,e.options.lineNumbers),no(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?jr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Ti(e)},!0),n("scrollbarStyle","native",function(e){Ci(e),Ti(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=eo(e.options.gutters,t),no(e)},!0),n("firstLineNumber",1,no,!0),n("lineNumberFormatter",function(e){return e},no,!0),n("showCursorWhenSelecting",!1,Xr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(ri(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Hs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Xr,!0),n("singleCursorHeightPerLine",!0,Xr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,_o,!0),n("addModeClass",!1,_o,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,_o,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}function Hs(e,t,n){if(!t!=!(n&&n!=Ps)){var r=e.display.dragFunctions,i=t?be:we;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function zs(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(E(e.display.wrapper,"CodeMirror-wrap"),hn(e)),Br(e),Ur(e),mr(e),setTimeout(function(){return Ti(e)},100)}function Us(e,t){var n=this;if(!(this instanceof Us))return new Us(e,t);this.options=t=t?U(t):{},U(js,t,!1);var r=t.value;"string"==typeof r?r=new La(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Us.inputStyles[t.inputStyle](this),o=this.display=new ro(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Ms(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new q,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Ws(this),Pa(),Li(this),this.curOp.forceUpdate=!0,Ao(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&ni(n)},20):ri(this),Fs)Fs.hasOwnProperty(u)&&Fs[u](this,t[u],Ps);Ji(this),t.finishInit&&t.finishInit(this);for(var c=0;c<qs.length;++c)qs[c](this);ki(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ws(e){var t=e.display;be(t.scroller,"mousedown",ji(e,Ts)),be(t.scroller,"dblclick",a&&s<11?ji(e,function(t){if(!Te(e,t)){var n=Hr(e,t);if(n&&!Is(e,t)&&!Qn(e.display,t)){Ee(t);var r=e.findWordAt(n);zo(e.doc,r.anchor,r.head)}}}):function(t){return Te(e,t)||Ee(t)}),be(t.scroller,"contextmenu",function(t){return Os(e,t)}),be(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Os(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}be(t.scroller,"touchstart",function(i){if(!Te(e,i)&&!o(i)&&!Is(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),be(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),be(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Qn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new co(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new co(ct(a.line,0),mt(e.doc,ct(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ee(n)}i()}),be(t.scroller,"touchcancel",i),be(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mi(e,t.scroller.scrollTop),bi(e,t.scroller.scrollLeft,!0),xe(e,"scroll",e))}),be(t.scroller,"mousewheel",function(t){return lo(e,t)}),be(t.scroller,"DOMMouseScroll",function(t){return lo(e,t)}),be(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){Te(e,t)||Ne(t)},over:function(t){Te(e,t)||(Ia(e,t),Ne(t))},start:function(t){return Da(e,t)},drop:ji(e,Na),leave:function(t){Te(e,t)||Oa(e)}};var u=t.input.getField();be(u,"keyup",function(t){return vs.call(e,t)}),be(u,"keydown",ji(e,ps)),be(u,"keypress",ji(e,ms)),be(u,"focus",function(t){return ni(e,t)}),be(u,"blur",function(t){return ri(e,t)})}Us.defaults=js,Us.optionHandlers=Fs;var qs=[];function Gs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=At(e,t).state:n="prev");var a=e.options.tabSize,s=nt(o,t),l=W(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==V||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?W(nt(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/a);h;--h)d+=a,f+="\t";if(d<u&&(f+=J(u-d)),f!=c)return ua(o,f,ct(t,0),ct(t,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<c.length){var v=ct(t,c.length);Wo(o,p,new co(v,v));break}}}Us.defineInitHook=function(e){return qs.push(e)};var $s=null;function Vs(e){$s=e}function Xs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Be(t),u=null;if(s&&r.ranges.length>1)if($s&&$s.text.join("\n")==t){if(r.ranges.length%$s.text.length==0){u=[];for(var c=0;c<$s.text.length;c++)u.push(o.splitLines($s.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=te(l,function(e){return[e]}));for(var f=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var h=r.ranges[d],p=h.from(),g=h.to();h.empty()&&(n&&n>0?p=ct(p.line,p.ch-n):e.state.overwrite&&!s?g=ct(g.line,Math.min(nt(o,g.line).text.length,g.ch+ee(l).length)):s&&$s&&$s.lineWise&&$s.text.join("\n")==l.join("\n")&&(p=g=ct(p.line,0)));var v={from:p,to:g,text:u?u[d%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ra(e.doc,v),Rn(e,"inputRead",e,v)}t&&!s&&Ks(e,t),di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Pi(t,function(){return Xs(t,n,0,null,"paste")}),!0}function Ks(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Gs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(nt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Gs(e,i.head.line,"smart"));a&&Rn(e,"electricInput",e,i.head.line)}}}function Ys(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ct(i,0),head:ct(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Zs(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Js(){var e=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=N("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),v&&(e.style.border="1px solid black"),t}function el(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){H(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ji(this,t[e])(this,n,i),xe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ka(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Fi(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ne(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Ur(this)}),removeOverlay:Fi(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Ur(this)}}),indentLine:Fi(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),lt(this.doc,e)&&Gs(this,e,t,n)}),indentSelection:Fi(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Gs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&di(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Gs(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Wo(this.doc,r,new co(o,u[r].to()),X)}}}),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,ct(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=Tt(this,nt(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==G(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return At(this,(e=vt(n,e??n.first+n.size-1))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Ar(this,null==e?n.head:"object"==typeof e?mt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Tr(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return Er(this,(e=xr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=xr(this,{top:e,left:0},t||"page").top,st(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=nt(this.doc,e)}else r=e;return wr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-fn(r):0)},defaultTextHeight:function(){return Rr(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Ar(this,mt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ui(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Fi(ps),triggerOnKeyPress:Fi(ms),triggerOnKeyUp:vs,triggerOnMouseDown:Fi(Ts),execCommand:function(e){if(ns.hasOwnProperty(e))return ns[e].call(null,this)},triggerElectric:Fi(function(e){Ks(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=mt(this.doc,e),a=0;a<t&&!(o=tl(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Fi(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?tl(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},K)}),deleteH:Fi(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ya(this,function(n){var i=tl(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=mt(this.doc,e),s=0;s<t;++s){var l=Ar(this,a,"div");if(null==o?o=l.left:l.left=o,(a=nl(this,l,i,n)).hitSide)break}return a},moveV:Fi(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=Ar(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=nl(n,s,e,t);return"page"==t&&a==r.sel.primary()&&fi(n,Tr(n,l,"div").top-s.top),l},K),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=nt(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=se(o,i)?function(e){return se(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!se(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new co(ct(e.line,n),ct(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),xe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==O(F(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Fi(function(e,t){hi(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Jn(this)-this.display.barHeight,width:e.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:tr(this),clientWidth:er(this)}},scrollIntoView:Fi(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ct(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pi(this,e):vi(this,e.from,e.to,e.margin)}),setSize:Fi(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&vr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Wr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,xe(this,"refresh",this)}),operation:function(e){return Pi(this,e)},startOperation:function(){return Li(this)},endOperation:function(){return ki(this)},refresh:Fi(function(){var e=this.display.cachedTextHeight;Ur(this),this.curOp.forceUpdate=!0,mr(this),hi(this,this.doc.scrollLeft,this.doc.scrollTop),Ki(this.display),(null==e||Math.abs(e-Rr(this.display))>.5||this.options.lineWrapping)&&Br(this),xe(this,"refresh",this)}),swapDoc:Fi(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Ao(this,e),mr(this),this.display.input.reset(),hi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Rn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function tl(e,t,n,r,i){var o=t,a=n,s=nt(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new ct(n,t.ch,t.sticky),s=nt(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var f=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new ct(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(f?2:1))),-n)}}else a=i?ts(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!u())return!1;t=es(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,d="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var g=s.text.charAt(t.ch)||"\n",v=se(g,h)?"w":d&&"\n"==g?"n":!d||/\s/.test(g)?null:"p";if(!d||p||v||(v="s"),f&&f!=v){n<0&&(n=1,c(),t.sticky="after");break}if(v&&(f=v),n>0&&!c(!p))break}var m=Jo(e,t,o,a,!0);return dt(o,m)&&(m.hitSide=!0),m}function nl(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,H(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*Rr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var rl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function il(e,t){var n=ar(e,t.line);if(!n||n.hidden)return null;var r=nt(e.doc,t.line),i=rr(n,r,t.line),o=me(r,e.doc.direction),a="left";o&&(a=ge(o,t.ch)%2?"right":"left");var s=fr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function ol(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function al(e,t){return t&&(e.bad=!0),e}function sl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function f(e){e&&(c(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(ct(r,0),ct(i+1,0),u(+h));return void(p.length&&(o=p[0].find(0))&&f(rt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&c();for(var v=0;v<t.childNodes.length;v++)d(t.childNodes[v]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(a=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}function ll(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return al(e.clipPos(ct(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return ul(o,t,n)}}function ul(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!I(r,t))return al(ct(at(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?ee(e.rest):e.line;return al(ct(at(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=at(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),ct(c,f)}}}var f=c(a,s,n);if(f)return al(f,i);for(var d=s.nextSibling,h=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(f=c(d,d.firstChild,0))return al(ct(f.line,f.ch-h),i);h+=d.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(f=c(p,p.firstChild,-1))return al(ct(f.line,f.ch+g),i);g+=p.textContent.length}}rl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Te(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ys(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,X),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=$s.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Js(),l=s.firstChild;Zs(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=$s.text.join("\n");var u=O(B(i));P(l),setTimeout(function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,Zs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),be(i,"paste",function(e){!o(e)||Te(r,e)||Qs(e,r)||s<=11&&setTimeout(ji(r,function(){return t.updateFromDOM()}),20)}),be(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),be(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),be(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),be(i,"touchstart",function(){return n.forceCompositionEnd()}),be(i,"input",function(){t.composing||t.readFromDOMSoon()}),be(i,"copy",a),be(i,"cut",a)},rl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},rl.prototype.prepareSelection=function(){var e=Qr(this.cm,!1);return e.focus=O(B(this.div))==this.div,e},rl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},rl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},rl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=ll(t,e.anchorNode,e.anchorOffset),s=ll(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ft(gt(a,s),i)||0!=ft(pt(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&il(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&il(t,o);if(!c){var f=l[l.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var h,p=e.rangeCount&&e.getRangeAt(0);try{h=C(u.node,u.offset,c.offset,c.node)}catch(e){}h&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},rl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},rl.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},rl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},rl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return I(this.div,t)},rl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&O(B(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},rl.prototype.blur=function(){this.div.blur()},rl.prototype.getField=function(){return this.div},rl.prototype.supportsTouch=function(){return!0},rl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Pi(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,n)},rl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},rl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(m&&c&&this.cm.display.gutterSpecs.length&&ol(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ll(t,e.anchorNode,e.anchorOffset),r=ll(t,e.focusNode,e.focusOffset);n&&r&&Pi(t,function(){Vo(t.doc,ho(n,r),X),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},rl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ct(a.line-1,nt(r.doc,a.line-1).length)),s.ch==nt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ct(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=zr(r,a.line))?(t=at(i.view[0].line),n=i.view[0].node):(t=at(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=zr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=at(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(sl(r,n,u,t,l)),d=rt(r.doc,ct(t,0),ct(l,nt(r.doc,l).text.length));f.length>1&&d.length>1;)if(ee(f)==ee(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var h=0,p=0,g=f[0],v=d[0],m=Math.min(g.length,v.length);h<m&&g.charCodeAt(h)==v.charCodeAt(h);)++h;for(var y=ee(f),b=ee(d),_=Math.min(y.length-(1==f.length?h:0),b.length-(1==d.length?h:0));p<_&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==f.length&&1==d.length&&t==a.line)for(;h&&h>a.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)h--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(h).replace(/\u200b+$/,"");var w=ct(t,h),x=ct(l,d.length?ee(d).length-p:0);return f.length>1||f[0]||ft(w,x)?(ua(r.doc,f,w,x,"+input"),!0):void 0},rl.prototype.ensurePolled=function(){this.forceCompositionEnd()},rl.prototype.reset=function(){this.forceCompositionEnd()},rl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},rl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},rl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Pi(this.cm,function(){return Ur(e.cm)})},rl.prototype.setUneditable=function(e){e.contentEditable="false"},rl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ji(this.cm,Xs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},rl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},rl.prototype.onContextMenu=function(){},rl.prototype.resetPosition=function(){},rl.prototype.needsContentAttribute=!0;var cl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new q,this.hasSelection=!1,this.composing=null,this.resetting=!1};function fl(e,t){if((t=t?U(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=O(B(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(be(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(we(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Us(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function dl(e){e.off=we,e.on=be,e.wheelEventPixels=so,e.Doc=La,e.splitLines=Be,e.countColumn=W,e.findColumn=Y,e.isWordChar=ae,e.Pass=V,e.signal=xe,e.Line=pn,e.changeEnd=po,e.scrollbarModel=Si,e.Pos=ct,e.cmpPos=ft,e.modes=qe,e.mimeModes=Ge,e.resolveMode=Xe,e.getMode=Qe,e.modeExtensions=Ke,e.extendMode=Ye,e.copyState=Ze,e.startState=et,e.innerMode=Je,e.commands=ns,e.keyMap=Wa,e.keyName=Qa,e.isModifierKey=Va,e.lookupKey=$a,e.normalizeKeyMap=Ga,e.StringStream=tt,e.SharedTextMarker=xa,e.TextMarker=_a,e.LineWidget=va,e.e_preventDefault=Ee,e.e_stopPropagation=Le,e.e_stop=Ne,e.addClass=R,e.contains=I,e.rmClass=E,e.keyNames=Ba}cl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Te(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ys(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,X):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(i.style.width="0px"),be(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),be(i,"paste",function(e){Te(r,e)||Qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),be(i,"cut",o),be(i,"copy",o),be(e.scroller,"paste",function(t){if(!Qn(e,t)&&!Te(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),be(e.lineSpace,"selectstart",function(t){Qn(e,t)||Ee(t)}),be(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),be(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},cl.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Zs(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},cl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},cl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Qr(e);if(e.options.moveInputWithCursor){var i=Ar(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},cl.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},cl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},cl.prototype.getField=function(){return this.textarea},cl.prototype.supportsTouch=function(){return!1},cl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||O(B(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},cl.prototype.blur=function(){this.textarea.blur()},cl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cl.prototype.receivedFocus=function(){this.slowPoll()},cl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},cl.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},cl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||He(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Pi(t,function(){Xs(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cl.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},cl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Hr(n,e),u=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ji(n,Vo)(n.doc,ho(o),X);var c,f=i.style.cssText,h=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),A){Ne(e);var g=function(){we(window,"mouseup",g),setTimeout(m,20)};be(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ji(n,ta)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},cl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},cl.prototype.setUneditable=function(){},cl.prototype.needsContentAttribute=!1,Bs(Us),el(Us);var hl="iter insert remove copy getEditor constructor".split(" ");for(var pl in La.prototype)La.prototype.hasOwnProperty(pl)&&G(hl,pl)<0&&(Us.prototype[pl]=function(e){return function(){return e.apply(this.doc,arguments)}}(La.prototype[pl]));return Ce(La),Us.inputStyles={textarea:cl,contenteditable:rl},Us.defineMode=function(e){Us.defaults.mode||"null"==e||(Us.defaults.mode=e),$e.apply(this,arguments)},Us.defineMIME=Ve,Us.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Us.defineMIME("text/plain","null"),Us.defineExtension=function(e,t){Us.prototype[e]=t},Us.defineDocExtension=function(e,t){La.prototype[e]=t},Us.fromTextArea=fl,dl(Us),Us.version="5.65.20",Us}()},1779:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},1850:(e,t,n)=>{var r=n(7589).Global;function i(){return r.sessionStorage}function o(e){return i().getItem(e)}e.exports={name:"sessionStorage",read:o,write:function(e,t){return i().setItem(e,t)},each:function(e){for(var t=i().length-1;t>=0;t--){var n=i().key(t);e(o(n),n)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},1907:(e,t,n)=>{var r=n(8696),i=n(6918);e.exports=function e(t,n){function o(e,i,a,s){try{var l=t[e](i),u=l.value;return u instanceof r?n.resolve(u.v).then(function(e){o("next",e,a,s)},function(e){o("throw",e,a,s)}):n.resolve(u).then(function(e){l.value=e,a(l)},function(e){return o("throw",e,a,s)})}catch(e){s(e)}}var a;this.next||(i(e.prototype),i(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(e,t,r){function i(){return new n(function(t,n){o(e,r,t,n)})}return a=a?a.then(i,i):i()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports},2020:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},2078:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(2977),i=n(8214);const o=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,r.A)(e)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;const u=o(function(){return arguments}())?o:function(e){return(0,i.A)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},2313:(e,t,n)=>{"use strict";const r=n(2504),i=n(9029),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=l,t.IS=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Q(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Q(e,SharedArrayBuffer)||e&&Q(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|p(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||K(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),s(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(i)return r?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===l)return r*a}else-1!==r&&(o-=o-r),r=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){let n=!0;for(let r=0;r<l;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function _(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(K(r))return a;e[n+a]=r}return a}function w(e,t,n,r){return X($(t,e.length-n),e,n,r)}function x(e,t,n,r){return X(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function T(e,t,n,r){return X(V(t),e,n,r)}function A(e,t,n,r){return X(function(e,t){let n,r,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(o=l));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},l.allocUnsafe=function(e){return f(e)},l.allocUnsafeSlow=function(e){return f(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(Q(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):v.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(Q(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==c[e]){o=u[e],a=c[e];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function L(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=Y[e[r]];return i}function D(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){U(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function M(e,t,n,r,i){U(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function P(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||P(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||P(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Z(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=Z(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Z(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),l.prototype.readBigInt64BE=Z(function(e){W(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){O(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){O(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Z(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Z(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Z(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Z(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=l.isBuffer(e)?e:l.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const B={};function H(e,t,n){B[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function U(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new B.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,i,o)}function W(e,t){if("number"!=typeof e)throw new B.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new B.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new B.ERR_BUFFER_OUT_OF_BOUNDS;throw new B.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}H("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),H("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),H("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=z(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!=e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Z(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}},2448:(e,t,n)=>{!function(e){"use strict";e.defineOption("foldGutter",!1,function(t,i,o){o&&o!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",u),t.off("changes",f),t.off("viewportChange",d),t.off("fold",h),t.off("unfold",h),t.off("swapDoc",f),t.off("optionChange",c)),i&&(t.state.foldGutter=new n(r(i)),l(t),t.on("gutterClick",u),t.on("changes",f),t.on("viewportChange",d),t.on("fold",h),t.on("unfold",h),t.on("swapDoc",f),t.on("optionChange",c))});var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function o(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function a(e,n,r){var a=e.state.foldGutter.options,l=n-1,u=e.foldOption(a,"minFoldSize"),c=e.foldOption(a,"rangeFinder"),f="string"==typeof a.indicatorFolded&&s(a.indicatorFolded),d="string"==typeof a.indicatorOpen&&s(a.indicatorOpen);e.eachLine(n,r,function(n){++l;var r=null,s=n.gutterMarkers;if(s&&(s=s[a.gutter]),i(e,l)){if(f&&s&&f.test(s.className))return;r=o(a.indicatorFolded)}else{var h=t(l,0),p=c&&c(e,h);if(p&&p.to.line-p.from.line>=u){if(d&&s&&d.test(s.className))return;r=o(a.indicatorOpen)}}(r||s)&&e.setGutterMarker(n,a.gutter,r)})}function s(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function l(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){a(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function u(e,n,r){var o=e.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function c(e,t){"mode"==t&&f(e)}function f(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){l(e)},n.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?l(e):e.operation(function(){n.from<t.from&&(a(e,n.from,t.from),t.from=n.from),n.to>t.to&&(a(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function h(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&a(e,r,r+1)}}}(n(1719),n(9754))},2504:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],l=o[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,l)),c=0,f=l>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===l&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===l&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,l=r-i;s<l;s+=a)o.push(u(e,s,s+a>l?l:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(l(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},2965:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(7181),i=n(8272),o=n(8285),a=n(8086),s=r.A?r.A.prototype:void 0,l=s?s.toString:void 0;const u=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,i.A)(t,e)+"";if((0,a.A)(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const c=function(e){return null==e?"":u(e)}},2977:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(7181),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.A?r.A.toStringTag:void 0;const l=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i};var u=Object.prototype.toString;const c=function(e){return u.call(e)};var f=r.A?r.A.toStringTag:void 0;const d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?l(e):c(e)}},2984:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}()},2990:e=>{function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3001:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4603);const i=(0,n(5067).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.A)(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},3074:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3653),i=n(7242);const o=function(e,t){return function(n,r){if(null==n)return n;if(!(0,i.A)(n))return e(n,r);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==r(s[a],a,s););return n}}(r.A)},3111:(e,t,n)=>{"use strict";n.d(t,{wc:()=>s,iQ:()=>f,uZ:()=>u,Mg:()=>l,nB:()=>c,vy:()=>d});var r=n(9418),i=n(9121),o=n(4758),a=n(5043),s=function(){return(0,o.A)(function e(t){(0,i.A)(this,e),this.namespace=t},[{key:"set",value:function(e,t,n,r){if(a.enabled&&(this.removeExpiredKeys(),e&&void 0!==t)){t.documentElement&&(t=(new XMLSerializer).serializeToString(t.documentElement));try{a.set(e,{namespace:this.namespace,val:t,exp:n,time:(new Date).getTime()/1e3})}catch(e){if(e instanceof Error){var i=e;if(i.quotaExceeded=function(e){var t=!1;if(e)if(e.code)switch(e.code){case 22:t=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===e.name&&(t=!0)}else-2147024882===e.number&&(t=!0);return t}(e),!i.quotaExceeded||!r)throw i;r(e)}throw e}}}},{key:"remove",value:function(e){a.enabled&&e&&a.remove(e)}},{key:"removeExpiredKeys",value:function(){var e=this;a.enabled&&a.each(function(t,n){t&&t.exp&&(new Date).getTime()/1e3-t.time>t.exp&&e.remove(n)})}},{key:"removeAll",value:function(){a.enabled}},{key:"removeNamespace",value:function(){var e=this;a.each(function(t,n){t.namespace&&t.namespace===e.namespace&&e.remove(n)})}},{key:"get",value:function(e){if(a.enabled&&e&&(this.removeExpiredKeys(),e)){var t=a.get(e);if(!t)return;return t.val}}}])}();r.A.sanitize;function l(e){if(e&&0==e.trim().indexOf("<svg")){var t=(new DOMParser).parseFromString(e,"text/xml").documentElement;t.setAttribute("aria-hidden","true");var n=document.createElement("div");return n.className="svgImg",n.appendChild(t),n}throw new Error("No svg string given. Cannot draw")}function u(e){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(e.width," ").concat(e.height,'" aria-hidden="true"><path fill="currentColor" d="').concat(e.svgPathData,'"></path></svg>')}function c(e,t){if(e)return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function f(e){if(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];e.classList?e.classList.add(a):c(e,a)||(e.className+=" "+a)}}}function d(e,t){if(e)if(e.classList)e.classList.remove(t);else if(c(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}},3322:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5413);var i=n(5209),o=n(3564);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,i.A)(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},3382:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8377),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i?r.A.Buffer:void 0,s=a?a.allocUnsafe:void 0;const l=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},3475:(e,t,n)=>{"use strict";n.r(t)},3564:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(5413);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},3594:(e,t,n)=>{"use strict";n.r(t)},3614:(e,t,n)=>{"use strict";n.r(t)},3653:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2984),i=n(6826);const o=function(e,t){return e&&(0,r.A)(e,t,i.A)}},3779:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(5826);const i=function(){this.__data__=new r.A,this.size=0};const o=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const a=function(e){return this.__data__.get(e)};const s=function(e){return this.__data__.has(e)};var l=n(6787),u=n(8412);const c=function(e,t){var n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!l.A||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new u.A(i)}return n.set(e,t),this.size=n.size,this};function f(e){var t=this.__data__=new r.A(e);this.size=t.size}f.prototype.clear=i,f.prototype.delete=o,f.prototype.get=a,f.prototype.has=s,f.prototype.set=c;const d=f},3869:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var n=typeof e;return!!(t=t??9007199254740991)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},3886:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},4043:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5186),i=n(6988);const o=function(e){return(0,r.A)(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&(0,i.A)(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t})}},4179:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="question-circle",r=[],i="f059",o="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";t.definition={prefix:"fas",iconName:n,icon:[512,512,r,i,o]},t.faQuestionCircle=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o},4249:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(2977),i=n(7554),o=n(8214),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;const s=function(e){return(0,o.A)(e)&&(0,i.A)(e.length)&&!!a[(0,r.A)(e)]};var l=n(9161),u=n(6037),c=u.A&&u.A.isTypedArray;const f=c?(0,l.A)(c):s},4360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},4479:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});const r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var i=n(2078),o=n(8285),a=n(6118),s=n(3869),l=n(4249),u=Object.prototype.hasOwnProperty;const c=function(e,t){var n=(0,o.A)(e),c=!n&&(0,i.A)(e),f=!n&&!c&&(0,a.A)(e),d=!n&&!c&&!f&&(0,l.A)(e),h=n||c||f||d,p=h?r(e.length,String):[],g=p.length;for(var v in e)!t&&!u.call(e,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,s.A)(v,g))||p.push(v);return p}},4508:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(6422),i=n(5757),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const s=a?function(e){return null==e?[]:(e=Object(e),(0,r.A)(a(e),function(t){return o.call(e,t)}))}:i.A},4603:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},4636:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(t){return null==e?void 0:e[t]}}},4691:function(e,t){var n,r,i;r=[],n=function e(){var t,n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{},r=!n.document&&!!n.postMessage,i=n.IS_PAPA_WORKER||!1,o={},a=0,s={};function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(o=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,o)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&w(this._config.beforeFirstChunk)&&void 0!==(o=this._config.beforeFirstChunk(e))&&(e=o),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var o=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=o.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),o&&o.data&&(this._rowCount+=o.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,i)n.postMessage({results:o,workerId:s.WORKER_ID,finished:r});else if(w(this._config.chunk)&&!t){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=o=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!r||!w(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):i&&this._config.error&&n.postMessage({workerId:s.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=s.RemoteChunkSize),l.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,n=this._config.downloadRequestHeaders;for(e in n)t.setRequestHeader(e,n[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+i));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function c(e){(e=e||{}).chunkSize||(e.chunkSize=s.LocalChunkSize),l.call(this,e);var t,n,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=_(this._chunkLoaded,this),t.onerror=_(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=n.call(e,this._start,i)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:i}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,n;if(!this._finished)return e=this._config.chunkSize,t=e?(n=t.substring(0,e),t.substring(e)):(n=t,""),this._finished=!t,this.parseChunk(n)}}function d(e){l.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=_(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=_(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=_(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=_(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(e){var t,n,r,i,o=Math.pow(2,53),a=-o,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,f=0,d=0,h=!1,v=!1,m=[],y={data:[],errors:[],meta:{}};function _(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function x(){if(y&&r&&(A("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!_(e)})),T()){if(y)if(Array.isArray(y.data[0])){for(var t=0;T()&&t<y.data.length;t++)y.data[t].forEach(n);y.data.splice(0,1)}else y.data.forEach(n);function n(t,n){w(e.transformHeader)&&(t=e.transformHeader(t,n)),m.push(t)}}function i(t,n){for(var r=e.header?{}:[],i=0;i<t.length;i++){var s=i,c=t[i];c=((t,n)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((e=>{if(l.test(e)&&(e=parseFloat(e),a<e&&e<o))return 1})(n)?parseFloat(n):u.test(n)?new Date(n):""===n?null:n):n)(s=e.header?i>=m.length?"__parsed_extra":m[i]:s,c=e.transform?e.transform(c,s):c),"__parsed_extra"===s?(r[s]=r[s]||[],r[s].push(c)):r[s]=c}return e.header&&(i>m.length?A("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+i,d+n):i<m.length&&A("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+i,d+n)),r}var c;y&&(e.header||e.dynamicTyping||e.transform)&&(c=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),c=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),d+=c)}function T(){return e.header&&0===m.length}function A(e,t,n,r){e={type:e,code:t,message:n},void 0!==r&&(e.row=r),y.errors.push(e)}w(e.step)&&(i=e.step,e.step=function(t){y=t,T()?x():(x(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?n.abort():(y.data=y.data[0],i(y,c))))}),this.parse=function(i,o,a){var l=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(i,l)),r=!1,e.delimiter?w(e.delimiter)&&(e.delimiter=e.delimiter(i),y.meta.delimiter=e.delimiter):((l=((t,n,r,i,o)=>{var a,l,u,c;o=o||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var f=0;f<o.length;f++){for(var d,h=o[f],p=0,v=0,m=0,y=(u=void 0,new g({comments:i,delimiter:h,newline:n,preview:10}).parse(t)),b=0;b<y.data.length;b++)r&&_(y.data[b])?m++:(v+=d=y.data[b].length,void 0===u?u=d:0<d&&(p+=Math.abs(d-u),u=d));0<y.data.length&&(v/=y.data.length-m),(void 0===l||p<=l)&&(void 0===c||c<v)&&1.99<v&&(l=p,a=h,c=v)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=l.bestDelimiter:(r=!0,e.delimiter=s.DefaultDelimiter),y.meta.delimiter=e.delimiter),l=b(e),e.preview&&e.header&&l.preview++,t=i,n=new g(l),y=n.parse(t,o,a),x(),h?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,n.abort(),t=w(e.chunk)?"":t.substring(n.getCharIndex())},this.resume=function(){c.streamer._halted?(h=!1,c.streamer.parseChunk(t,!0)):setTimeout(c.resume,3)},this.aborted=function(){return v},this.abort=function(){v=!0,n.abort(),y.meta.aborted=!0,w(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var n=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<n[0].length,1===n.length||e)return"\n";for(var r=0,i=0;i<n.length;i++)"\n"===n[i][0]&&r++;return r>=n.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,n=e.newline,r=e.comments,i=e.step,o=e.preview,a=e.fastMode,l=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,f=c;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<s.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<s.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var d=0,h=!1;this.parse=function(s,g,v){if("string"!=typeof s)throw new Error("Input must be a string");var m=s.length,y=t.length,b=n.length,_=r.length,x=w(i),T=[],A=[],S=[],C=d=0;if(!s)return F();if(a||!1!==a&&-1===s.indexOf(c)){for(var E=s.split(n),L=0;L<E.length;L++){if(S=E[L],d+=S.length,L!==E.length-1)d+=n.length;else if(v)return F();if(!r||S.substring(0,_)!==r){if(x){if(T=[],R(S.split(t)),B(),h)return F()}else R(S.split(t));if(o&&o<=L)return T=T.slice(0,o),F(!0)}}return F()}for(var k=s.indexOf(t,d),N=s.indexOf(n,d),D=new RegExp(p(f)+p(c),"g"),I=s.indexOf(c,d);;)if(s[d]===c)for(I=d,d++;;){if(-1===(I=s.indexOf(c,I+1)))return v||A.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:T.length,index:d}),P();if(I===m-1)return P(s.substring(d,I).replace(D,c));if(c===f&&s[I+1]===f)I++;else if(c===f||0===I||s[I-1]!==f){-1!==k&&k<I+1&&(k=s.indexOf(t,I+1));var O=M(-1===(N=-1!==N&&N<I+1?s.indexOf(n,I+1):N)?k:Math.min(k,N));if(s.substr(I+1+O,y)===t){S.push(s.substring(d,I).replace(D,c)),s[d=I+1+O+y]!==c&&(I=s.indexOf(c,d)),k=s.indexOf(t,d),N=s.indexOf(n,d);break}if(O=M(N),s.substring(I+1+O,I+1+O+b)===n){if(S.push(s.substring(d,I).replace(D,c)),j(I+1+O+b),k=s.indexOf(t,d),I=s.indexOf(c,d),x&&(B(),h))return F();if(o&&T.length>=o)return F(!0);break}A.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:T.length,index:d}),I++}}else if(r&&0===S.length&&s.substring(d,d+_)===r){if(-1===N)return F();d=N+b,N=s.indexOf(n,d),k=s.indexOf(t,d)}else if(-1!==k&&(k<N||-1===N))S.push(s.substring(d,k)),d=k+y,k=s.indexOf(t,d);else{if(-1===N)break;if(S.push(s.substring(d,N)),j(N+b),x&&(B(),h))return F();if(o&&T.length>=o)return F(!0)}return P();function R(e){T.push(e),C=d}function M(e){var t=0;return-1!==e&&(e=s.substring(I+1,e))&&""===e.trim()?e.length:t}function P(e){return v||(void 0===e&&(e=s.substring(d)),S.push(e),d=m,R(S),x&&B()),F()}function j(e){d=e,R(S),S=[],N=s.indexOf(n,d)}function F(r){if(e.header&&!g&&T.length&&!u){var i=T[0],o=Object.create(null),a=new Set(i);let t=!1;for(let n=0;n<i.length;n++){let r=i[n];if(o[r=w(e.transformHeader)?e.transformHeader(r,n):r]){let e,s=o[r];for(;e=r+"_"+s,s++,a.has(e););a.add(e),i[n]=e,o[r]++,t=!0,(l=null===l?{}:l)[e]=r}else o[r]=1,i[n]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:T,errors:A,meta:{delimiter:t,linebreak:n,aborted:h,truncated:!!r,cursor:C+(g||0),renamedHeaders:l}}}function B(){i(F()),T=[],A=[]}},this.abort=function(){h=!0},this.getCharIndex=function(){return d}}function v(e){var t=e.data,n=o[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(w(n.userStep)){for(var a=0;a<t.results.data.length&&(n.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},i),!r);a++);delete t.results}else w(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var n=o[e];w(n.userComplete)&&n.userComplete(t),n.terminate(),delete o[e]}function y(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t,n=Array.isArray(e)?[]:{};for(t in e)n[t]=b(e[t]);return n}function _(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return s.parse=function(t,r){var i=(r=r||{}).dynamicTyping||!1;if(w(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!w(r.transform)&&r.transform,!r.worker||!s.WORKERS_SUPPORTED)return i=null,s.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),i=new(r.download?u:f)(r)):!0===t.readable&&w(t.read)&&w(t.on)?i=new d(r):(n.File&&t instanceof File||t instanceof Object)&&(i=new c(r)),i.stream(t);(i=(()=>{var t;return!!s.WORKERS_SUPPORTED&&(t=(()=>{var t=n.URL||n.webkitURL||null,r=e.toString();return s.BLOB_URL||(s.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new n.Worker(t)).onmessage=v,t.id=a++,o[t.id]=t)})()).userStep=r.step,i.userChunk=r.chunk,i.userComplete=r.complete,i.userError=r.error,r.step=w(r.step),r.chunk=w(r.chunk),r.complete=w(r.complete),r.error=w(r.error),delete r.worker,i.postMessage({input:t,config:r,workerId:i.id})},s.unparse=function(e,t){var n=!1,r=!0,i=",",o="\r\n",a='"',l=a+a,u=!1,c=null,f=!1,d=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||s.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(o=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,u);if("object"==typeof e[0])return h(c||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||c),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function h(e,t,n){var a="",s=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),l=!Array.isArray(t[0]);if(s&&r){for(var u=0;u<e.length;u++)0<u&&(a+=i),a+=g(e[u],u);0<t.length&&(a+=o)}for(var c=0;c<t.length;c++){var f=(s?e:t[c]).length,d=!1,h=s?0===Object.keys(t[c]).length:0===t[c].length;if(n&&!s&&(d="greedy"===n?""===t[c].join("").trim():1===t[c].length&&0===t[c][0].length),"greedy"===n&&s){for(var p=[],v=0;v<f;v++){var m=l?e[v]:v;p.push(t[c][m])}d=""===p.join("").trim()}if(!d){for(var y=0;y<f;y++){0<y&&!h&&(a+=i);var b=s&&l?e[y]:y;a+=g(t[c][b],y)}c<t.length-1&&(!n||0<f&&!h)&&(a+=o)}}return a}function g(e,t){var r,o;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(o=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,o=!0),r=e.toString().replace(d,l),(o=o||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||((e,t)=>{for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1})(r,s.BAD_DELIMITERS)||-1<r.indexOf(i)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!r&&!!n.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=g,s.ParserHandle=h,s.NetworkStreamer=u,s.FileStreamer=c,s.StringStreamer=f,s.ReadableStreamStreamer=d,n.jQuery&&((t=n.jQuery).fn.parse=function(e){var r=e.config||{},i=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)i.push({file:this.files[o],inputElem:this,instanceConfig:t.extend({},r)})}),o(),this;function o(){if(0===i.length)w(e.complete)&&e.complete();else{var n,r,o,l,u=i[0];if(w(e.before)){var c=e.before(u.file,u.inputElem);if("object"==typeof c){if("abort"===c.action)return n="AbortError",r=u.file,o=u.inputElem,l=c.reason,void(w(e.error)&&e.error({name:n},r,o,l));if("skip"===c.action)return void a();"object"==typeof c.config&&(u.instanceConfig=t.extend(u.instanceConfig,c.config))}else if("skip"===c)return void a()}var f=u.instanceConfig.complete;u.instanceConfig.complete=function(e){w(f)&&f(e,u.file,u.inputElem),a()},s.parse(u.file,u.instanceConfig)}}function a(){i.splice(0,1),o()}}),i&&(n.onmessage=function(e){e=e.data,void 0===s.WORKER_ID&&e&&(s.WORKER_ID=e.workerId),"string"==typeof e.input?n.postMessage({workerId:s.WORKER_ID,results:s.parse(e.input,e.config),finished:!0}):(n.File&&e.input instanceof File||e.input instanceof Object)&&(e=s.parse(e.input,e.config))&&n.postMessage({workerId:s.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(l.prototype)).constructor=c,(f.prototype=Object.create(f.prototype)).constructor=f,(d.prototype=Object.create(l.prototype)).constructor=d,s},void 0===(i="function"==typeof n?n.apply(t,r):n)||(e.exports=i)},4758:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4360);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4779:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="align-left",r=[],i="f036",o="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";t.definition={prefix:"fas",iconName:n,icon:[448,512,r,i,o]},t.faAlignLeft=t.definition,t.prefix="fas",t.iconName=n,t.width=448,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o},4785:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,a,u;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,u=c,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var u=l.length,c=p(l,u);for(n=0;n<u;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4858:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var i=Math.max;const o=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),r(e,this,u)}}},4889:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(1671),i=n(8377);const o=(0,r.A)(i.A,"DataView");var a=n(6787);const s=(0,r.A)(i.A,"Promise");const l=(0,r.A)(i.A,"Set");const u=(0,r.A)(i.A,"WeakMap");var c=n(2977),f=n(5549),d="[object Map]",h="[object Promise]",p="[object Set]",g="[object WeakMap]",v="[object DataView]",m=(0,f.A)(o),y=(0,f.A)(a.A),b=(0,f.A)(s),_=(0,f.A)(l),w=(0,f.A)(u),x=c.A;(o&&x(new o(new ArrayBuffer(1)))!=v||a.A&&x(new a.A)!=d||s&&x(s.resolve())!=h||l&&x(new l)!=p||u&&x(new u)!=g)&&(x=function(e){var t=(0,c.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,f.A)(n):"";if(r)switch(r){case m:return v;case y:return d;case b:return h;case _:return p;case w:return g}return t});const T=x},5043:(e,t,n)=>{var r=n(7459),i=n(5788),o=[n(5503)];e.exports=r.createStore(i,o)},5067:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},5168:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8377).A.Uint8Array},5186:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1100),i=n(4858),o=n(9430);const a=function(e,t){return(0,o.A)((0,i.A)(e,t,r.A),e+"")}},5200:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8292),i=n(3653),o=n(5955);const a=function(e,t){var n={};return t=(0,o.A)(t,3),(0,i.A)(e,function(e,i,o){(0,r.A)(n,i,t(e,i,o))}),n}},5209:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},5217:(e,t,n)=>{var r=n(1115);e.exports=function(e,t,n,i,o){var a=r(e,t,n,i,o);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports},5355:(e,t,n)=>{var r=n(7589).Global;function i(){return r.localStorage}function o(e){return i().getItem(e)}e.exports={name:"localStorage",read:o,write:function(e,t){return i().setItem(e,t)},each:function(e){for(var t=i().length-1;t>=0;t--){var n=i().key(t);e(o(n),n)}},remove:function(e){return i().removeItem(e)},clearAll:function(){return i().clear()}}},5413:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},5503:(e,t,n)=>{e.exports=function(){return n(815),{}}},5549:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=Function.prototype.toString;const i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},5668:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>rn});var r,i,o,a,s=n(9602),l=function(e,t){if(l.factory(e,t))return l;if(this instanceof l)return s(e).DataTable(t);var n=this,r=void 0===(t=e),o=this.length;return r&&(t={}),this.api=function(){return new i(this)},this.each(function(){var e,a=o>1?et({},t,!0):t,u=0,c=this.getAttribute("id"),f=l.defaults,d=s(this);if("table"==this.nodeName.toLowerCase()){a.on&&a.on.options&&ut(d,"options",a.on.options),d.trigger("options.dt",a),R(f),M(f.column),I(f,f,!0),I(f.column,f.column,!0),I(f,s.extend(a,ct(d.data())),!0);var h=l.settings;for(u=0,e=h.length;u<e;u++){var p=h[u];if(p.nTable==this||p.nTHead&&p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){var g=void 0!==a.bRetrieve?a.bRetrieve:f.bRetrieve,v=void 0!==a.bDestroy?a.bDestroy:f.bDestroy;if(r||g)return p.oInstance;if(v){new l.Api(p).destroy();break}return void Ze(p,0,"Cannot reinitialise DataTable",3)}if(p.sTableId==this.id){h.splice(u,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+l.ext._unique++,this.id=c),d.children("colgroup").remove();var m=s.extend(!0,{},l.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:c,sTableId:c,colgroup:s("<colgroup>").prependTo(this),fastData:function(e,t,n){return Y(m,e,t,n)}});m.nTable=this,m.oInit=a,h.push(m),m.api=new i(m),m.oInstance=1===n.length?n:d.dataTable(),R(a),a.aLengthMenu&&!a.iDisplayLength&&(a.iDisplayLength=Array.isArray(a.aLengthMenu[0])?a.aLengthMenu[0][0]:s.isPlainObject(a.aLengthMenu[0])?a.aLengthMenu[0].value:a.aLengthMenu[0]),a=et(s.extend(!0,{},f),a),Je(m.oFeatures,a,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Je(m,a,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Je(m.oScroll,a,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Je(m.oLanguage,a,"fnInfoCallback"),nt(m,"aoDrawCallback",a.fnDrawCallback),nt(m,"aoStateSaveParams",a.fnStateSaveParams),nt(m,"aoStateLoadParams",a.fnStateLoadParams),nt(m,"aoStateLoaded",a.fnStateLoaded),nt(m,"aoRowCallback",a.fnRowCallback),nt(m,"aoRowCreatedCallback",a.fnCreatedRow),nt(m,"aoHeaderCallback",a.fnHeaderCallback),nt(m,"aoFooterCallback",a.fnFooterCallback),nt(m,"aoInitComplete",a.fnInitComplete),nt(m,"aoPreDrawCallback",a.fnPreDrawCallback),m.rowIdFn=ne(a.rowId),a.on&&Object.keys(a.on).forEach(function(e){ut(d,e,a.on[e])}),function(e){if(!l.__browser){var t={};l.__browser=t;var n=s("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append(s("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(s("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=n.children(),i=r.children();t.barWidth=r[0].offsetWidth-r[0].clientWidth,t.bScrollbarLeft=1!==Math.round(i.offset().left),n.remove()}s.extend(e.oBrowser,l.__browser),e.oScroll.iBarWidth=l.__browser.barWidth}(m);var y=m.oClasses;s.extend(y,l.ext.classes,a.oClasses),d.addClass(y.table),m.oFeatures.bPaginate||(a.iDisplayStart=0),void 0===m.iInitDisplayStart&&(m.iInitDisplayStart=a.iDisplayStart,m._iDisplayStart=a.iDisplayStart);var b=a.iDeferLoading;if(null!==b){m.deferLoading=!0;var _=Array.isArray(b);m._iRecordsDisplay=_?b[0]:b,m._iRecordsTotal=_?b[1]:b}var w=[],x=this.getElementsByTagName("thead"),T=we(m,x[0]);if(a.aoColumns)w=a.aoColumns;else if(T.length)for(u=0,e=T[0].length;u<e;u++)w.push(null);for(u=0,e=w.length;u<e;u++)P(m);!function(e,t,n,r,i){var o,a,l,u,c,f,d,h=e.aoColumns;if(n)for(o=0,a=n.length;o<a;o++)n[o]&&n[o].name&&(h[o].sName=n[o].name);if(t)for(o=t.length-1;o>=0;o--){var p=void 0!==(d=t[o]).target?d.target:void 0!==d.targets?d.targets:d.aTargets;for(Array.isArray(p)||(p=[p]),l=0,u=p.length;l<u;l++){var g=p[l];if("number"==typeof g&&g>=0){for(;h.length<=g;)P(e);i(g,d)}else if("number"==typeof g&&g<0)i(h.length+g,d);else if("string"==typeof g)for(c=0,f=h.length;c<f;c++)"_all"===g?i(c,d):-1!==g.indexOf(":name")?h[c].sName===g.replace(":name","")&&i(c,d):r.forEach(function(e){if(e[c]){var t=s(e[c].cell);g.match(/^[a-z][\w-]*$/i)&&(g="."+g),t.is(g)&&i(c,d)}})}}if(n)for(o=0,a=n.length;o<a;o++)i(o,n[o])}(m,a.aoColumnDefs,w,T,function(e,t){j(m,e,t)});var A=d.children("tbody").find("tr:first-child").eq(0);if(A.length){var S=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};s(A[0]).children("th, td").each(function(e,t){var n=m.aoColumns[e];if(n||Ze(m,0,"Incorrect column count",18),n.mData===e){var r=S(t,"sort")||S(t,"order"),i=S(t,"filter")||S(t,"search");null===r&&null===i||(n.mData={_:e+".display",sort:null!==r?e+".@data-"+r:void 0,type:null!==r?e+".@data-"+r:void 0,filter:null!==i?e+".@data-"+i:void 0},n._isArrayHost=!0,j(m,e))}})}nt(m,"aoDrawCallback",Ke);var C=m.oFeatures;if(a.bStateSave&&(C.bStateSave=!0),void 0===a.aaSorting){var E=m.aaSorting;for(u=0,e=E.length;u<e;u++)E[u][1]=m.aoColumns[u].asSorting[0]}Xe(m),nt(m,"aoDrawCallback",function(){(m.bSorted||"ssp"===at(m)||C.bDeferRender)&&Xe(m)});var L=d.children("caption");m.caption&&(0===L.length&&(L=s("<caption/>").appendTo(d)),L.html(m.caption)),L.length&&(L[0]._captionSide=L.css("caption-side"),m.captionNode=L[0]),0===x.length&&(x=s("<thead/>").appendTo(d)),m.nTHead=x[0];var k=d.children("tbody");0===k.length&&(k=s("<tbody/>").insertAfter(x)),m.nTBody=k[0];var N=d.children("tfoot");0===N.length&&(N=s("<tfoot/>").appendTo(d)),m.nTFoot=N[0],m.aiDisplay=m.aiDisplayMaster.slice(),m.bInitialised=!0;var D=m.oLanguage;s.extend(!0,D,a.oLanguage),D.sUrl?s.ajax({dataType:"json",url:D.sUrl,success:function(e){I(f.oLanguage,e),s.extend(!0,D,e,m.oInit.oLanguage),rt(m,null,"i18n",[m],!0),Ne(m)},error:function(){Ze(m,0,"i18n file loading error",21),Ne(m)}}):(rt(m,null,"i18n",[m],!0),Ne(m))}else Ze(null,0,"Non-table node initialisation ("+this.nodeName+")",2)}),n=null,this};l.ext=r={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",escape:{attributes:!1},feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:l.fnVersionCheck,iApiIndex:0,sVersion:l.version},s.extend(r,{afnFiltering:r.search,aTypes:r.type.detect,ofnSearch:r.type.search,oSort:r.type.order,afnSortData:r.order,aoFeatures:r.feature,oStdClasses:r.classes,oPagination:r.pager}),s.extend(l.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}});var u={},c=/[\r\n\u2028]/g,f=/<([^>]*>)/g,d=Math.pow(2,28),h=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,p=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),g=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,v=function(e){return!e||!0===e||"-"===e},m=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},y=function(e,t){return u[t]||(u[t]=new RegExp(Ee(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(u[t],"."):e},b=function(e,t,n,r){var i=typeof e,o="string"===i;return"number"===i||"bigint"===i||(!(!r||!v(e))||(t&&o&&(e=y(e,t)),n&&o&&(e=e.replace(g,"")),!isNaN(parseFloat(e))&&isFinite(e)))},_=function(e,t,n,r){if(r&&v(e))return!0;if("string"==typeof e&&e.match(/<(input|select)/i))return null;var i=function(e){return v(e)||"string"==typeof e}(e);return i&&!!b(S(e),t,n,r)||null},w=function(e,t,n){var r=[],i=0,o=e.length;if(void 0!==n)for(;i<o;i++)e[i]&&e[i][t]&&r.push(e[i][t][n]);else for(;i<o;i++)e[i]&&r.push(e[i][t]);return r},x=function(e,t,n,r){var i=[],o=0,a=t.length;if(void 0!==r)for(;o<a;o++)e[t[o]]&&e[t[o]][n]&&i.push(e[t[o]][n][r]);else for(;o<a;o++)e[t[o]]&&i.push(e[t[o]][n]);return i},T=function(e,t){var n,r=[];void 0===t?(t=0,n=e):(n=t,t=e);for(var i=t;i<n;i++)r.push(i);return r},A=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&t.push(e[n]);return t},S=function(e){if(!e||"string"!=typeof e)return e;if(e.length>d)throw new Error("Exceeded max str len");var t;e=e.replace(f,"");do{t=e,e=e.replace(/<script/i,"")}while(e!==t);return t},C=function(e){return Array.isArray(e)&&(e=e.join(",")),"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e},E=function(e,t){if("string"!=typeof e)return e;var n=e.normalize?e.normalize("NFD"):e;return n.length!==e.length?(!0===t?e+" ":"")+n.replace(/[\u0300-\u036f]/g,""):n},L=function(e){if(Array.from&&Set)return Array.from(new Set(e));if(function(e){if(e.length<2)return!0;for(var t=e.slice().sort(),n=t[0],r=1,i=t.length;r<i;r++){if(t[r]===n)return!1;n=t[r]}return!0}(e))return e.slice();var t,n,r,i=[],o=e.length,a=0;e:for(n=0;n<o;n++){for(t=e[n],r=0;r<a;r++)if(i[r]===t)continue e;i.push(t),a++}return i},k=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)k(e,t[n]);else e.push(t);return e};function N(e,t){t&&t.split(" ").forEach(function(t){t&&e.classList.add(t)})}function D(e){var t,n,r={};s.each(e,function(i){(t=i.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(t[1]+" ")&&(n=i.replace(t[0],t[2].toLowerCase()),r[n]=i,"o"===t[1]&&D(e[i]))}),e._hungarianMap=r}function I(e,t,n){var r;e._hungarianMap||D(e),s.each(t,function(i){void 0===(r=e._hungarianMap[i])||!n&&void 0!==t[r]||("o"===r.charAt(0)?(t[r]||(t[r]={}),s.extend(!0,t[r],t[i]),I(e[r],t[r],n)):t[r]=t[i])})}l.util={diacritics:function(e,t){if("function"!==typeof e)return E(e,t);E=e},debounce:function(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t||250)}},throttle:function(e,t){var n,r,i=void 0!==t?t:200;return function(){var t=this,o=+new Date,a=arguments;n&&o<n+i?(clearTimeout(r),r=setTimeout(function(){n=void 0,e.apply(t,a)},i)):(n=o,e.apply(t,a))}},escapeRegex:function(e){return e.replace(p,"\\$1")},set:function(e){if(s.isPlainObject(e))return l.util.set(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,r){e(t,"set",n,r)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){t[e]=n};var t=function(e,n,r){for(var i,o,a,s,l,u=te(r),c=u[u.length-1],f=0,d=u.length-1;f<d;f++){if("__proto__"===u[f]||"constructor"===u[f])throw new Error("Cannot set prototype values");if(o=u[f].match(J),a=u[f].match(ee),o){if(u[f]=u[f].replace(J,""),e[u[f]]=[],(i=u.slice()).splice(0,f+1),l=i.join("."),Array.isArray(n))for(var h=0,p=n.length;h<p;h++)t(s={},n[h],l),e[u[f]].push(s);else e[u[f]]=n;return}a&&(u[f]=u[f].replace(ee,""),e=e[u[f]](n)),null!==e[u[f]]&&void 0!==e[u[f]]||(e[u[f]]={}),e=e[u[f]]}c.match(ee)?e=e[c.replace(ee,"")](n):e[c.replace(J,"")]=n};return function(n,r){return t(n,r,e)}},get:function(e){if(s.isPlainObject(e)){var t={};return s.each(e,function(e,n){n&&(t[e]=l.util.get(n))}),function(e,n,r,i){var o=t[n]||t._;return void 0!==o?o(e,n,r,i):e}}if(null===e)return function(e){return e};if("function"==typeof e)return function(t,n,r,i){return e(t,n,r,i)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t){return t[e]};var n=function(e,t,r){var i,o,a,s;if(""!==r)for(var l=te(r),u=0,c=l.length;u<c;u++){if(i=l[u].match(J),o=l[u].match(ee),i){if(l[u]=l[u].replace(J,""),""!==l[u]&&(e=e[l[u]]),a=[],l.splice(0,u+1),s=l.join("."),Array.isArray(e))for(var f=0,d=e.length;f<d;f++)a.push(n(e[f],t,s));var h=i[0].substring(1,i[0].length-1);e=""===h?a:a.join(h);break}if(o)l[u]=l[u].replace(ee,""),e=e[l[u]]();else{if(null===e||null===e[l[u]])return null;if(void 0===e||void 0===e[l[u]])return;e=e[l[u]]}}return e};return function(t,r){return n(t,r,e)}},stripHtml:function(e){var t=typeof e;if("function"!==t)return"string"===t?S(e):e;S=e},escapeHtml:function(e){var t=typeof e;if("function"!==t)return"string"===t||Array.isArray(e)?C(e):e;C=e},unique:L};var O=function(e,t,n){void 0!==e[t]&&(e[n]=e[t])};function R(e){O(e,"ordering","bSort"),O(e,"orderMulti","bSortMulti"),O(e,"orderClasses","bSortClasses"),O(e,"orderCellsTop","bSortCellsTop"),O(e,"order","aaSorting"),O(e,"orderFixed","aaSortingFixed"),O(e,"paging","bPaginate"),O(e,"pagingType","sPaginationType"),O(e,"pageLength","iDisplayLength"),O(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),"object"==typeof e.bSort?(e.orderIndicators=void 0===e.bSort.indicators||e.bSort.indicators,e.orderHandler=void 0===e.bSort.handler||e.bSort.handler,e.bSort=!0):!1===e.bSort?(e.orderIndicators=!1,e.orderHandler=!1):!0===e.bSort&&(e.orderIndicators=!0,e.orderHandler=!0),"boolean"==typeof e.bSortCellsTop&&(e.titleRow=e.bSortCellsTop);var t=e.aoSearchCols;if(t)for(var n=0,r=t.length;n<r;n++)t[n]&&I(l.models.oSearch,t[n]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400)}function M(e){O(e,"orderable","bSortable"),O(e,"orderData","aDataSort"),O(e,"orderSequence","asSorting"),O(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"!=typeof t||Array.isArray(t)||(e.aDataSort=[t])}function P(e){var t=l.defaults.column,n=e.aoColumns.length,r=s.extend({},l.models.oColumn,t,{aDataSort:t.aDataSort?t.aDataSort:[n],mData:t.mData?t.mData:n,idx:n,searchFixed:{},colEl:s("<col>").attr("data-dt-column",n)});e.aoColumns.push(r);var i=e.aoPreSearchCols;i[n]=s.extend({},l.models.oSearch,i[n])}function j(e,t,n){var r=e.aoColumns[t];if(null!=n){M(n),I(l.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(r._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className);var i=r.sClass;s.extend(r,n),Je(r,n,"sWidth","sWidthOrig"),i!==r.sClass&&(r.sClass=i+" "+r.sClass),void 0!==n.iDataSort&&(r.aDataSort=[n.iDataSort]),Je(r,n,"aDataSort")}var o=r.mData,a=ne(o);if(r.mRender&&Array.isArray(r.mRender)){var u=r.mRender.slice(),c=u.shift();r.mRender=l.render[c].apply(window,u)}r._render=r.mRender?ne(r.mRender):null;var f=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};r._bAttrSrc=s.isPlainObject(o)&&(f(o.sort)||f(o.type)||f(o.filter)),r._setter=null,r.fnGetData=function(e,t,n){var i=a(e,t,void 0,n);return r._render&&t?r._render(i,t,e,n):i},r.fnSetData=function(e,t,n){return re(o)(e,t,n)},"number"==typeof o||r._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(r.bSortable=!1)}function F(e){!function(e){if(!e.oFeatures.bAutoWidth)return;var t,n,i,o=e.nTable,a=e.aoColumns,u=e.oScroll,c=u.sY,f=u.sX,d=u.sXInner,h=U(e,"bVisible"),p=o.getAttribute("width"),g=o.parentNode,v=o.style.width,m=Fe(e);if(m===e.containerWidth)return!1;e.containerWidth=m,v||p||(o.style.width="100%",v="100%");v&&-1!==v.indexOf("%")&&(p=v);rt(e,null,"column-calc",{visible:h},!1);var y=s(o.cloneNode()).css("visibility","hidden").css("margin",0).removeAttr("id");y.append("<tbody/>"),y.append(s(e.nTHead).clone()).append(s(e.nTFoot).clone()),y.find("tfoot th, tfoot td").css("width",""),y.find("thead th, thead td").each(function(){var t=V(e,this,!0,!1);t?(this.style.width=t,f&&(this.style.minWidth=t,s(this).append(s("<div/>").css({width:t,margin:0,padding:0,border:0,height:1})))):this.style.width=""});var b=[];for(t=0;t<h.length;t++)b.push(Be(e,h[t]));if(b.length)for(t=0;t<b[0].length;t++){var _=s("<tr/>").appendTo(y.find("tbody"));for(n=0;n<h.length;n++){i=a[h[n]];var w=b[n][t]||"",x=r.type.className[i.sType],T=w+(i.sContentPadding||(f?"-":"")),A=-1===w.indexOf("<")?document.createTextNode(T):T;s("<td/>").addClass(x).addClass(i.sClass).append(A).appendTo(_)}}s("[name]",y).removeAttr("name");var S=s("<div/>").css(f||c?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(y).appendTo(g);f&&d?y.width(d):f?(y.css("width","auto"),y.removeAttr("width"),y.outerWidth()<g.clientWidth&&p&&y.outerWidth(g.clientWidth)):c?y.outerWidth(g.clientWidth):p&&y.outerWidth(p);var C=0,E=y.find("tbody tr").eq(0).children();for(t=0;t<h.length;t++){var L=E[t].getBoundingClientRect().width;C+=L,a[h[t]].sWidth=He(L)}o.style.width=He(C),S.remove(),p&&(o.style.width=He(p));if((p||f)&&!e._reszEvt){var k=l.util.throttle(function(){var t=Fe(e);e.bDestroying||0===t||F(e)});if(window.ResizeObserver){var N=s(e.nTableWrapper).is(":visible"),D=s("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(e.nTableWrapper);e.resizeObserver=new ResizeObserver(function(e){N?N=!1:k()}),e.resizeObserver.observe(D[0])}else s(window).on("resize.DT-"+e.sInstance,k);e._reszEvt=!0}}(e),function(e){for(var t=e.aoColumns,n=0;n<t.length;n++){var r=V(e,[n],!1,!1);t[n].colEl.css("width",r),e.oScroll.sX&&t[n].colEl.css("min-width",r)}}(e);var t=e.oScroll;""===t.sY&&""===t.sX||je(e),rt(e,null,"column-sizing",[e])}function B(e,t){var n=U(e,"bVisible");return"number"==typeof n[t]?n[t]:null}function H(e,t){var n=U(e,"bVisible").indexOf(t);return-1!==n?n:null}function z(e){var t=e.aoHeader,n=e.aoColumns,r=0;if(t.length)for(var i=0,o=t[0].length;i<o;i++)n[i].bVisible&&"none"!==s(t[0][i].cell).css("display")&&r++;return r}function U(e,t){var n=[];return e.aoColumns.map(function(e,r){e[t]&&n.push(r)}),n}function W(e,t){return!0===t?e._name:t}function q(e){var t,n,i,o,a,s,u,c,f,d=e.aoColumns,h=e.aoData,p=l.ext.type.detect;for(t=0,n=d.length;t<n;t++){if(f=[],!(u=d[t]).sType&&u._sManualType)u.sType=u._sManualType;else if(!u.sType){if(!e.typeDetect)return;for(i=0,o=p.length;i<o;i++){var g=p[i],m=g.oneOf,y=g.allOf||g,b=g.init,_=!1;if(c=null,b&&(c=W(g,b(e,u,t)))){u.sType=c;break}for(a=0,s=h.length;a<s;a++)if(h[a]){if(void 0===f[a]&&(f[a]=Y(e,a,t,"type")),m&&!_&&(_=W(g,m(f[a],e))),!(c=W(g,y(f[a],e)))&&i!==p.length-3)break;if("html"===c&&!v(f[a]))break}if(m&&_&&c||!m&&c){u.sType=c;break}}u.sType||(u.sType="string")}var w=r.type.className[u.sType];w&&($(e.aoHeader,t,w),$(e.aoFooter,t,w));var x=r.type.render[u.sType];x&&!u._render&&(u._render=l.util.get(x),G(e,t))}}function G(e,t){for(var n=e.aoData,r=0;r<n.length;r++)if(n[r].nTr){var i=Y(e,r,t,"display");n[r].displayData[t]=i,Z(n[r].anCells[t],i)}}function $(e,t,n){e.forEach(function(e){e[t]&&e[t].unique&&N(e[t].cell,n)})}function V(e,t,n,r){Array.isArray(t)||(t=X(t));for(var i,o=0,a=e.aoColumns,s=0,l=t.length;s<l;s++){var u=a[t[s]],c=n?u.sWidthOrig:u.sWidth;if(r||!1!==u.bVisible){if(null==c)return null;if("number"==typeof c)i="px",o+=c;else{var f=c.match(/([\d\.]+)([^\d]*)/);f&&(o+=1*f[1],i=3===f.length?f[2]:"px")}}}return o+i}function X(e){var t=s(e).closest("[data-dt-column]").attr("data-dt-column");return t?t.split(",").map(function(e){return 1*e}):[]}function Q(e,t,n,r){var i=e.aoData.length,o=s.extend(!0,{},l.models.oRow,{src:n?"dom":"data",idx:i});o._aData=t,e.aoData.push(o);for(var a=e.aoColumns,u=0,c=a.length;u<c;u++)a[u].sType=null;e.aiDisplayMaster.push(i);var f=e.rowIdFn(t);return void 0!==f&&(e.aIds[f]=o),!n&&e.oFeatures.bDeferRender||ue(e,i,n,r),i}function K(e,t){var n;return t instanceof s||(t=s(t)),t.map(function(t,r){return n=se(e,r),Q(e,n.data,r,n.cells)})}function Y(e,t,n,r){"search"===r?r="filter":"order"===r&&(r="sort");var i=e.aoData[t];if(i){var o=e.iDraw,a=e.aoColumns[n],s=i._aData,u=a.sDefaultContent,c=a.fnGetData(s,r,{settings:e,row:t,col:n});if("display"!==r&&c&&"object"==typeof c&&c.nodeName&&(c=c.innerHTML),void 0===c)return e.iDrawError!=o&&null===u&&(Ze(e,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=o),u;if(c!==s&&null!==c||null===u||void 0===r){if("function"==typeof c)return c.call(s)}else c=u;if(null===c&&"display"===r)return"";if("filter"===r){var f=l.ext.type.search;f[a.sType]&&(c=f[a.sType](c))}return c}}function Z(e,t){t&&"object"==typeof t&&t.nodeName?s(e).empty().append(t):e.innerHTML=t}var J=/\[.*?\]$/,ee=/\(\)$/;function te(e){return(e.match(/(\\.|[^.])+/g)||[""]).map(function(e){return e.replace(/\\\./g,".")})}var ne=l.util.get,re=l.util.set;function ie(e){return w(e.aoData,"_aData")}function oe(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function ae(e,t,n,r){var i,o,a=e.aoData[t];if(a._aSortData=null,a._aFilterData=null,a.displayData=null,"dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var s=a.anCells,l=le(e,t);if(s)if(void 0!==r)Z(s[r],l[r]);else for(i=0,o=s.length;i<o;i++)Z(s[i],l[i])}else a._aData=se(e,a,r,void 0===r?void 0:a._aData).data;var u=e.aoColumns;if(void 0!==r)u[r].sType=null,u[r].wideStrings=null;else{for(i=0,o=u.length;i<o;i++)u[i].sType=null,u[i].wideStrings=null;ce(e,a)}}function se(e,t,n,r){var i,o,a,s=[],l=t.firstChild,u=0,c=e.aoColumns,f=e._rowReadObject;r=void 0!==r?r:f?{}:[];var d=function(e,t){if("string"==typeof e){var n=e.indexOf("@");if(-1!==n){var i=e.substring(n+1);re(e)(r,t.getAttribute(i))}}},h=function(e){void 0!==n&&n!==u||(o=c[u],a=e.innerHTML.trim(),o&&o._bAttrSrc?(re(o.mData._)(r,a),d(o.mData.sort,e),d(o.mData.type,e),d(o.mData.filter,e)):f?(o._setter||(o._setter=re(o.mData)),o._setter(r,a)):r[u]=a);u++};if(l)for(;l;)"TD"!=(i=l.nodeName.toUpperCase())&&"TH"!=i||(h(l),s.push(l)),l=l.nextSibling;else for(var p=0,g=(s=t.anCells).length;p<g;p++)h(s[p]);var v=t.firstChild?t:t.nTr;if(v){var m=v.getAttribute("id");m&&re(e.rowId)(r,m)}return{data:r,cells:s}}function le(e,t){var n=e.aoData[t],r=e.aoColumns;if(!n.displayData){n.displayData=[];for(var i=0,o=r.length;i<o;i++)n.displayData.push(Y(e,t,i,"display"))}return n.displayData}function ue(e,t,n,r){var i,o,a,l,u,c,f=e.aoData[t],d=f._aData,h=[],p=e.oClasses.tbody.row;if(null===f.nTr){for(i=n||document.createElement("tr"),f.nTr=i,f.anCells=h,N(i,p),i._DT_RowIndex=t,ce(e,f),l=0,u=e.aoColumns.length;l<u;l++){a=e.aoColumns[l],(o=(c=!n||!r[l])?document.createElement(a.sCellType):r[l])||Ze(e,0,"Incorrect column count",18),o._DT_CellIndex={row:t,column:l},h.push(o);var g=le(e,t);!c&&(!a.mRender&&a.mData===l||s.isPlainObject(a.mData)&&a.mData._===l+".display")||Z(o,g[l]),N(o,a.sClass),a.bVisible&&c?i.appendChild(o):a.bVisible||c||o.parentNode.removeChild(o),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,o,Y(e,t,l),d,t,l)}rt(e,"aoRowCreatedCallback","row-created",[i,d,t,h])}else N(f.nTr,p)}function ce(e,t){var n=t.nTr,r=t._aData;if(n){var i=e.rowIdFn(r);if(i&&(n.id=i),r.DT_RowClass){var o=r.DT_RowClass.split(" ");t.__rowc=t.__rowc?L(t.__rowc.concat(o)):o,s(n).removeClass(t.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&s(n).attr(r.DT_RowAttr),r.DT_RowData&&s(n).data(r.DT_RowData)}}function fe(e,t){var n,r,i,o=e.oClasses,a=e.aoColumns,l="header"===t?e.nTHead:e.nTFoot,u="header"===t?"sTitle":t;if(l){if(("header"===t||w(e.aoColumns,u).join(""))&&((i=s("tr",l)).length||(i=s("<tr/>").appendTo(l)),1===i.length)){var c=0;for(s("td, th",i).each(function(){c+=this.colSpan}),n=c,r=a.length;n<r;n++)s("<th/>").html(a[n][u]||"").appendTo(i)}var f=we(e,l,!0);"header"===t?(e.aoHeader=f,s("tr",l).addClass(o.thead.row)):(e.aoFooter=f,s("tr",l).addClass(o.tfoot.row)),s(l).children("tr").children("th, td").each(function(){ot(e,t)(e,s(this),o)})}}function de(e,t,n){var r,i,o,a,l,u=[],c=[],f=e.aoColumns,d=f.length;if(t){for(n||(n=T(d).filter(function(e){return f[e].bVisible})),r=0;r<t.length;r++)u[r]=t[r].slice().filter(function(e,t){return n.includes(t)}),c.push([]);for(r=0;r<u.length;r++)for(i=0;i<u[r].length;i++)if(a=1,l=1,void 0===c[r][i]){for(o=u[r][i].cell;void 0!==u[r+a]&&u[r][i].cell==u[r+a][i].cell;)c[r+a][i]=null,a++;for(;void 0!==u[r][i+l]&&u[r][i].cell==u[r][i+l].cell;){for(var h=0;h<a;h++)c[r+h][i+l]=null;l++}var p=s("span.dt-column-title",o);c[r][i]={cell:o,colspan:l,rowspan:a,title:p.length?p.html():s(o).html()}}return c}}function he(e,t){for(var n,r,i=de(e,t),o=0;o<t.length;o++){if(n=t[o].row)for(;r=n.firstChild;)n.removeChild(r);for(var a=0;a<i[o].length;a++){var l=i[o][a];l&&s(l.cell).appendTo(n).attr("rowspan",l.rowspan).attr("colspan",l.colspan)}}}function pe(e,t){if(function(e){var t="ssp"==at(e),n=e.iInitDisplayStart;void 0!==n&&-1!==n&&(e._iDisplayStart=t?n:n>=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}(e),-1===rt(e,"aoPreDrawCallback","preDraw",[e]).indexOf(!1)){var n,i=[],o=0,a="ssp"==at(e),l=e.aiDisplay,u=e._iDisplayStart,c=e.fnDisplayEnd(),f=e.aoColumns,d=s(e.nTBody);if(e.bDrawing=!0,e.deferLoading)e.deferLoading=!1,e.iDraw++,Re(e,!1);else if(a){if(!e.bDestroying&&!t)return 0===e.iDraw&&d.empty().append(ve(e)),(n=e).iDraw++,Re(n,!0),void xe(n,function(e){var t=e.aoColumns,n=e.oFeatures,r=e.oPreviousSearch,i=e.aoPreSearchCols,o=function(e,n){return"function"==typeof t[e][n]?"function":t[e][n]};return{draw:e.iDraw,columns:t.map(function(e,t){return{data:o(t,"mData"),name:e.sName,searchable:e.bSearchable,orderable:e.bSortable,search:{value:i[t].search,regex:i[t].regex,fixed:Object.keys(e.searchFixed).map(function(t){return{name:t,term:"function"!=typeof e.searchFixed[t]?e.searchFixed[t].toString():"function"}})}}}),order:Ge(e).map(function(e){return{column:e.col,dir:e.dir,name:o(e.col,"sName")}}),start:e._iDisplayStart,length:n.bPaginate?e._iDisplayLength:-1,search:{value:r.search,regex:r.regex,fixed:Object.keys(e.searchFixed).map(function(t){return{name:t,term:"function"!=typeof e.searchFixed[t]?e.searchFixed[t].toString():"function"}})}}}(n),function(e){!function(e,t){var n=Te(e,t),r=Ae(e,"draw",t),i=Ae(e,"recordsTotal",t),o=Ae(e,"recordsFiltered",t);if(void 0!==r){if(1*r<e.iDraw)return;e.iDraw=1*r}n||(n=[]),oe(e),e._iRecordsTotal=parseInt(i,10),e._iRecordsDisplay=parseInt(o,10);for(var a=0,s=n.length;a<s;a++)Q(e,n[a]);e.aiDisplay=e.aiDisplayMaster.slice(),q(e),pe(e,!0),De(e),Re(e,!1)}(n,e)})}else e.iDraw++;if(0!==l.length)for(var h=a?0:u,p=a?e.aoData.length:c,g=h;g<p;g++){var v=l[g],m=e.aoData[v];if(null!==m){null===m.nTr&&ue(e,v);for(var y=m.nTr,b=0;b<f.length;b++){var _=f[b],w=m.anCells[b];N(w,r.type.className[_.sType]),N(w,e.oClasses.tbody.cell)}rt(e,"aoRowCallback",null,[y,m._aData,o,g,v]),i.push(y),o++}}else i[0]=ve(e);rt(e,"aoHeaderCallback","header",[s(e.nTHead).children("tr")[0],ie(e),u,c,l]),rt(e,"aoFooterCallback","footer",[s(e.nTFoot).children("tr")[0],ie(e),u,c,l]),d[0].replaceChildren?d[0].replaceChildren.apply(d[0],i):(d.children().detach(),d.append(s(i))),s(e.nTableWrapper).toggleClass("dt-empty-footer",0===s("tr",e.nTFoot).length),rt(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}else Re(e,!1)}function ge(e,t,n){var r=e.oFeatures,i=r.bSort,o=r.bFilter;void 0!==n&&!0!==n||(q(e),i&&$e(e),o?Se(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice()),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,pe(e),e.api.one("draw",function(){e._drawHold=!1})}function ve(e){var t=e.oLanguage,n=t.sZeroRecords,r=at(e);return"ssp"!==r&&"ajax"!==r||e.json?t.sEmptyTable&&0===e.fnRecordsTotal()&&(n=t.sEmptyTable):n=t.sLoadingRecords,s("<tr/>").append(s("<td />",{colSpan:z(e),class:e.oClasses.empty.row}).html(n))[0]}function me(e,t,n){if(Array.isArray(n))for(var r=0;r<n.length;r++)me(e,t,n[r]);else{var i=e[t];s.isPlainObject(n)?n.features?(n.rowId&&(e.id=n.rowId),n.rowClass&&(e.className=n.rowClass),i.id=n.id,i.className=n.className,me(e,t,n.features)):Object.keys(n).map(function(e){i.contents.push({feature:e,opts:n[e]})}):i.contents.push(n)}}function ye(e,t,n){var r=[];s.each(t,function(e,t){if(null!==t){var i=e.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/),o=i[2]?1*i[2]:0,a=i[3]?i[3].toLowerCase():"full";if(i[1]===n){var s=function(e,t,n){for(var r,i=0;i<e.length;i++)if((r=e[i]).rowNum===t&&("full"===n&&r.full||("start"===n||"end"===n)&&(r.start||r.end)))return r[n]||(r[n]={contents:[]}),r;return(r={rowNum:t})[n]={contents:[]},e.push(r),r}(r,o,a);me(s,a,t)}}}),r.sort(function(e,t){var r=e.rowNum,i=t.rowNum;if(r===i){var o=e.full&&!t.full?-1:1;return"bottom"===n?-1*o:o}return i-r}),"bottom"===n&&r.reverse();for(var i=0;i<r.length;i++)delete r[i].rowNum,be(e,r[i]);return r}function be(e,t){var n=function(t,n){return r.features[t]||Ze(e,0,"Unknown feature: "+t),r.features[t].apply(this,[e,n])},i=function(r){if(t[r])for(var i=t[r].contents,o=0,a=i.length;o<a;o++)if(i[o])if("string"==typeof i[o])i[o]=n(i[o],null);else if(s.isPlainObject(i[o]))i[o]=n(i[o].feature,i[o].opts);else if("function"==typeof i[o].node)i[o]=i[o].node(e);else if("function"==typeof i[o]){var l=i[o](e);i[o]="function"==typeof l.node?l.node():l}};i("start"),i("end"),i("full")}function _e(e){var t=e.oClasses,n=s(e.nTable),r=s("<div/>").attr({id:e.sTableId+"_wrapper",class:t.container}).insertBefore(n);if(e.nTableWrapper=r[0],e.sDom)!function(e,t,n){for(var r,i,o,a,u,c=t.match(/(".*?")|('.*?')|./g),f=0;f<c.length;f++){if(r=null,"<"==(i=c[f])){if(o=s("<div/>"),"'"==(a=c[f+1])[0]||'"'==a[0]){var d,h="";if(-1!=(u=a.replace(/['"]/g,"")).indexOf(".")){var p=u.split(".");h=p[0],d=p[1]}else"#"==u[0]?h=u:d=u;o.attr("id",h.substring(1)).addClass(d),f++}n.append(o),n=o}else">"==i?n=n.parent():"t"==i?r=Pe(e):l.ext.feature.forEach(function(t){i==t.cFeature&&(r=t.fnInit(e))});r&&n.append(r)}}(e,e.sDom,r);else{var i=ye(e,e.layout,"top"),o=ye(e,e.layout,"bottom"),a=ot(e,"layout");i.forEach(function(t){a(e,r,t)}),a(e,r,{full:{table:!0,contents:[Pe(e)]}}),o.forEach(function(t){a(e,r,t)})}!function(e){var t=e.nTable,n=""!==e.oScroll.sX||""!==e.oScroll.sY;if(e.oFeatures.bProcessing){var r=s("<div/>",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>");n?r.prependTo(s("div.dt-scroll",e.nTableWrapper)):r.insertBefore(t),s(t).on("processing.dt.DT",function(e,t,n){r.css("display",n?"block":"none")})}}(e)}function we(e,t,n){var r,i,o,a,l,u,c,f,d,h,p=e.aoColumns,g=s(t).children("tr"),v=e.titleRow,m=t&&"thead"===t.nodeName.toLowerCase(),y=[],b=function(e,t,n){for(var r=e[t];r[n];)n++;return n};for(o=0,u=g.length;o<u;o++)y.push([]);for(o=0,u=g.length;o<u;o++)for(i=(r=g[o]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){var _=[],w=s(i);if(f=(f=1*i.getAttribute("colspan"))&&0!==f&&1!==f?f:1,d=(d=1*i.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,c=b(y,o,0),h=1===f,n){if(h){j(e,c,ct(w.data()));var x=p[c],T=i.getAttribute("width")||null,A=i.style.width.match(/width:\s*(\d+[pxem%]+)/);A&&(T=A[1]),x.sWidthOrig=x.sWidth||T,m?(null===x.sTitle||x.autoTitle||(!0===v&&0===o||!1===v&&o===g.length-1||v===o||null===v)&&(i.innerHTML=x.sTitle),!x.sTitle&&h&&(x.sTitle=S(i.innerHTML),x.autoTitle=!0)):x.footer&&(i.innerHTML=x.footer),x.ariaTitle||(x.ariaTitle=w.attr("aria-label")||x.sTitle),x.className&&w.addClass(x.className)}0===s("span.dt-column-title",i).length&&s("<span>").addClass("dt-column-title").append(i.childNodes).appendTo(i),e.orderIndicators&&m&&0!==w.filter(":not([data-dt-order=disable])").length&&0!==w.parent(":not([data-dt-order=disable])").length&&0===s("span.dt-column-order",i).length&&s("<span>").addClass("dt-column-order").appendTo(i);var C=m?"header":"footer";0===s("span.dt-column-"+C,i).length&&s("<div>").addClass("dt-column-"+C).append(i.childNodes).appendTo(i)}for(l=0;l<f;l++){for(a=0;a<d;a++)y[o+a][c+l]={cell:i,unique:h},y[o+a].row=r;_.push(c+l)}i.setAttribute("data-dt-column",L(_).join(","))}i=i.nextSibling}return y}function xe(e,t,n){var r,i=e.ajax,o=e.oInstance,a=function(t){var r=e.jqXHR?e.jqXHR.status:null;(null===t||"number"==typeof r&&204==r)&&Te(e,t={},[]);var i=t.error||t.sError;if(i&&Ze(e,0,i),t.d&&"string"==typeof t.d)try{t=JSON.parse(t.d)}catch(e){}e.json=t,rt(e,null,"xhr",[e,t,e.jqXHR],!0),n(t)};if(s.isPlainObject(i)&&i.data){var l="function"==typeof(r=i.data)?r(t,e):r;t="function"==typeof r&&l?l:s.extend(!0,t,l),delete i.data}var u={url:"string"==typeof i?i:"",data:t,success:a,dataType:"json",cache:!1,type:e.sServerMethod,error:function(t,n){-1===rt(e,null,"xhr",[e,null,e.jqXHR],!0).indexOf(!0)&&("parsererror"==n?Ze(e,0,"Invalid JSON response",1):4===t.readyState&&Ze(e,0,"Ajax error",7)),Re(e,!1)}};if(s.isPlainObject(i)&&s.extend(u,i),e.oAjaxData=t,rt(e,null,"preXhr",[e,t,u],!0),"json"===u.submitAs&&"object"==typeof t&&(u.data=JSON.stringify(t)),"function"==typeof i)e.jqXHR=i.call(o,t,a,e);else if(""===i.url){var c={};Te(e,c,[]),a(c)}else e.jqXHR=s.ajax(u);r&&(i.data=r)}function Te(e,t,n){var r="data";if(s.isPlainObject(e.ajax)&&void 0!==e.ajax.dataSrc){var i=e.ajax.dataSrc;"string"==typeof i||"function"==typeof i?r=i:void 0!==i.data&&(r=i.data)}if(!n)return"data"===r?t.aaData||t[r]:""!==r?ne(r)(t):t;re(r)(t,n)}function Ae(e,t,n){var r=s.isPlainObject(e.ajax)?e.ajax.dataSrc:null;if(r&&r[t])return ne(r[t])(n);var i="";return"draw"===t?i="sEcho":"recordsTotal"===t?i="iTotalRecords":"recordsFiltered"===t&&(i="iTotalDisplayRecords"),void 0!==n[i]?n[i]:n[t]}function Se(e,t){var n=e.aoPreSearchCols;if("ssp"!=at(e)){!function(e){for(var t,n,r,i,o,a=e.aoColumns,s=e.aoData,l=!1,u=0;u<s.length;u++)if(s[u]&&!(o=s[u])._aFilterData){for(r=[],t=0,n=a.length;t<n;t++)a[t].bSearchable?(null===(i=Y(e,u,t,"filter"))&&(i=""),"string"!=typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(Le.innerHTML=i,i=ke?Le.textContent:Le.innerText),i.replace&&(i=i.replace(/[\r\n\u2028]/g,"")),r.push(i);o._aFilterData=r,o._sFilterRow=r.join(" "),l=!0}}(e),e.aiDisplay=e.aiDisplayMaster.slice(),Ce(e.aiDisplay,e,t.search,t),s.each(e.searchFixed,function(t,n){Ce(e.aiDisplay,e,n,{})});for(var r=0;r<n.length;r++){var i=n[r];Ce(e.aiDisplay,e,i.search,i,r),s.each(e.aoColumns[r].searchFixed,function(t,n){Ce(e.aiDisplay,e,n,{},r)})}!function(e){for(var t,n,r=l.ext.search,i=e.aiDisplay,o=0,a=r.length;o<a;o++){for(var s=[],u=0,c=i.length;u<c;u++)n=i[u],t=e.aoData[n],r[o](e,t._aFilterData,n,t._aData,u)&&s.push(n);i.length=0,lt(i,s)}}(e)}e.bFiltered=!0,rt(e,null,"search",[e])}function Ce(e,t,n,r,i){if(""!==n){var o=0,a=[],l="function"==typeof n?n:null,u=n instanceof RegExp?n:l?null:function(e,t){var n=[],r=s.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},t);"string"!=typeof e&&(e=e.toString());if(e=E(e),r.exact)return new RegExp("^"+Ee(e)+"$",r.caseInsensitive?"i":"");if(e=r.regex?e:Ee(e),r.smart){var i=(e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""]).map(function(e){var t,r=!1;return"!"===e.charAt(0)&&(r=!0,e=e.substring(1)),'"'===e.charAt(0)?(t=e.match(/^"(.*)"$/),e=t?t[1]:e):"“"===e.charAt(0)&&(t=e.match(/^\u201C(.*)\u201D$/),e=t?t[1]:e),r&&(e.length>1&&n.push("(?!"+e+")"),e=""),e.replace(/"/g,"")}),o=n.length?n.join(""):"",a=r.boundary?"\\b":"";e="^(?=.*?"+a+i.join(")(?=.*?"+a)+")("+o+".)*$"}return new RegExp(e,r.caseInsensitive?"i":"")}(n,r);for(o=0;o<e.length;o++){var c=t.aoData[e[o]],f=void 0===i?c._sFilterRow:c._aFilterData[i];(l&&l(f,c._aData,e[o],i)||u&&u.test(f))&&a.push(e[o])}for(e.length=a.length,o=0;o<a.length;o++)e[o]=a[o]}}var Ee=l.util.escapeRegex,Le=s("<div>")[0],ke=void 0!==Le.textContent;function Ne(e){var t,n=e.oInit,r=e.deferLoading,i=at(e);e.bInitialised?(fe(e,"header"),fe(e,"footer"),function(e,t,n){if(!e.oFeatures.bStateSave)return void n();var r=function(t){Ye(e,t,n)},i=e.fnStateLoadCallback.call(e.oInstance,e,r);void 0!==i&&Ye(e,i,n)}(e,0,function(){he(e,e.aoHeader),he(e,e.aoFooter);var o=e.iInitDisplayStart;if(n.aaData)for(t=0;t<n.aaData.length;t++)Q(e,n.aaData[t]);else(r||"dom"==i)&&K(e,s(e.nTBody).children("tr"));e.aiDisplay=e.aiDisplayMaster.slice(),_e(e),function(e){var t=e.nTHead,n=t.querySelectorAll("tr"),r=e.titleRow,i=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';!0===r?t=n[0]:!1===r?t=n[n.length-1]:null!==r&&(t=n[r]);e.orderHandler&&Ue(e,t,t===e.nTHead?"tr"+i+" th"+i+", tr"+i+" td"+i:"th"+i+", td"+i);var o=[];qe(e,o,e.aaSorting),e.aaSorting=o}(e),ze(e),Re(e,!0),rt(e,null,"preInit",[e],!0),ge(e),("ssp"!=i||r)&&("ajax"==i?xe(e,{},function(n){var r=Te(e,n);for(t=0;t<r.length;t++)Q(e,r[t]);e.iInitDisplayStart=o,ge(e),Re(e,!1),De(e)}):(De(e),Re(e,!1)))})):setTimeout(function(){Ne(e)},200)}function De(e){if(!e._bInitComplete){var t=[e,e.json];e._bInitComplete=!0,F(e),rt(e,null,"plugin-init",t,!0),rt(e,"aoInitComplete","init",t,!0)}}function Ie(e,t){var n=parseInt(t,10);e._iDisplayLength=n,it(e),rt(e,null,"length",[e,n])}function Oe(e,t,n){var r=e._iDisplayStart,i=e._iDisplayLength,o=e.fnRecordsDisplay();if(0===o||-1===i)r=0;else if("number"==typeof t)(r=t*i)>o&&(r=0);else if("first"==t)r=0;else if("previous"==t)(r=i>=0?r-i:0)<0&&(r=0);else if("next"==t)r+i<o&&(r+=i);else if("last"==t)r=Math.floor((o-1)/i)*i;else{if("ellipsis"===t)return;Ze(e,0,"Unknown paging action: "+t,5)}var a=e._iDisplayStart!==r;return e._iDisplayStart=r,rt(e,null,a?"page":"page-nc",[e]),a&&n&&pe(e),a}function Re(e,t){e.bDrawing&&!1===t||rt(e,null,"processing",[e,t])}function Me(e,t,n){t?(Re(e,!0),setTimeout(function(){n(),Re(e,!1)},0)):n()}function Pe(e){var t=s(e.nTable),n=e.oScroll;if(""===n.sX&&""===n.sY)return e.nTable;var r=n.sX,i=n.sY,o=e.oClasses.scrolling,a=e.captionNode,l=a?a._captionSide:null,u=s(t[0].cloneNode(!1)),c=s(t[0].cloneNode(!1)),f=t.children("tfoot"),d="<div/>",h=function(e){return e?He(e):null};f.length||(f=null);var p=s(d,{class:o.container}).append(s(d,{class:o.header.self}).css({overflow:"hidden",position:"relative",border:0,width:r?h(r):"100%"}).append(s(d,{class:o.header.inner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?a:null).append(t.children("thead"))))).append(s(d,{class:o.body}).css({position:"relative",overflow:"auto",width:h(r)}).append(t));f&&p.append(s(d,{class:o.footer.self}).css({overflow:"hidden",border:0,width:r?h(r):"100%"}).append(s(d,{class:o.footer.inner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?a:null).append(t.children("tfoot")))));var g=p.children(),v=g[0],m=g[1],y=f?g[2]:null;return s(m).on("scroll.DT",function(){var e=this.scrollLeft;v.scrollLeft=e,f&&(y.scrollLeft=e)}),s("th, td",v).on("focus",function(){var e=v.scrollLeft;m.scrollLeft=e,f&&(m.scrollLeft=e)}),s(m).css("max-height",i),n.bCollapse||s(m).css("height",i),e.nScrollHead=v,e.nScrollBody=m,e.nScrollFoot=y,e.aoDrawCallback.push(je),p[0]}function je(e){var t,n,r=e.oScroll,i=r.iBarWidth,o=s(e.nScrollHead).children("div"),a=o.children("table"),l=e.nScrollBody,u=s(l),c=s(e.nScrollFoot).children("div"),f=c.children("table"),d=s(e.nTHead),h=s(e.nTable),p=e.nTFoot&&s("th, td",e.nTFoot).length?s(e.nTFoot):null,g=e.oBrowser,v=l.scrollHeight>l.clientHeight;if(e.scrollBarVis!==v&&void 0!==e.scrollBarVis)return e.scrollBarVis=v,void F(e);if(e.scrollBarVis=v,h.children("thead, tfoot").remove(),(t=d.clone().prependTo(h)).find("th, td").removeAttr("tabindex"),t.find("[id]").removeAttr("id"),p&&(n=p.clone().prependTo(h)).find("[id]").removeAttr("id"),e.aiDisplay.length){var m=null,y="ssp"!==at(e)?e._iDisplayStart:0;for(x=y;x<y+e.aiDisplay.length;x++){var b=e.aiDisplay[x],_=e.aoData[b].nTr;if(_){m=_;break}}if(m)for(var w=s(m).children("th, td").map(function(t){return{idx:B(e,t),width:s(this).outerWidth()}}),x=0;x<w.length;x++){var T=e.aoColumns[w[x].idx].colEl[0];T.style.width.replace("px","")!==w[x].width&&(T.style.width=w[x].width+"px",r.sX&&(T.style.minWidth=w[x].width+"px"))}}a.find("colgroup").remove(),a.append(e.colgroup.clone()),p&&(f.find("colgroup").remove(),f.append(e.colgroup.clone())),s("th, td",t).each(function(){s(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}),p&&s("th, td",n).each(function(){s(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')});var A=Math.floor(h.height())>l.clientHeight||"scroll"==u.css("overflow-y"),S="padding"+(g.bScrollbarLeft?"Left":"Right"),C=h.outerWidth();a.css("width",He(C)),o.css("width",He(C)).css(S,A?i+"px":"0px"),p&&(f.css("width",He(C)),c.css("width",He(C)).css(S,A?i+"px":"0px")),h.children("colgroup").prependTo(h),u.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(l.scrollTop=0)}function Fe(e){return s(e.nTableWrapper).is(":visible")?s(e.nTableWrapper).width():0}function Be(e,t){var n=e.aoColumns[t];if(!n.wideStrings){for(var r=[],i=[],o=0,a=e.aiDisplayMaster.length;o<a;o++){var s=le(e,e.aiDisplayMaster[o])[t],l=s&&"object"==typeof s&&s.nodeType?s.innerHTML:s+"";l=l.replace(/id=".*?"/g,"").replace(/name=".*?"/g,"");var u=S(l).replace(/&nbsp;/g," ");i.push({str:u,len:u.length}),r.push(u)}i.sort(function(e,t){return t.len-e.len}).splice(3),n.wideStrings=i.map(function(e){return e.str});let c=r.join(" ").split(" ");c.sort(function(e,t){return t.length-e.length}),c.length&&n.wideStrings.push(c[0]),c.length>1&&n.wideStrings.push(c[1]),c.length>2&&n.wideStrings.push(c[3])}return n.wideStrings}function He(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ze(e){var t=e.aoColumns;for(e.colgroup.empty(),Gt=0;Gt<t.length;Gt++)t[Gt].bVisible&&e.colgroup.append(t[Gt].colEl)}function Ue(e,t,n,r,i){tt(t,n,function(t){var n=!1,o=void 0===r?X(t.target):"function"==typeof r?r():Array.isArray(r)?r:[r];if(o.length){for(var a=0,s=o.length;a<s;a++){if(!1!==Ve(e,o[a],a,t.shiftKey)&&(n=!0),1===e.aaSorting.length&&""===e.aaSorting[0][1])break}n&&Me(e,!0,function(){$e(e),We(e,e.aiDisplay),ge(e,!1,!1),i&&i()})}})}function We(e,t){if(!(t.length<2)){var n,r=e.aiDisplayMaster,i={},o={};for(n=0;n<r.length;n++)i[r[n]]=n;for(n=0;n<t.length;n++)o[t[n]]=i[t[n]];t.sort(function(e,t){return o[e]-o[t]})}}function qe(e,t,n){var r=function(n){if(s.isPlainObject(n)){if(void 0!==n.idx)t.push([n.idx,n.dir]);else if(n.name){var r=w(e.aoColumns,"sName").indexOf(n.name);-1!==r&&t.push([r,n.dir])}}else t.push(n)};if(s.isPlainObject(n))r(n);else if(n.length&&"number"==typeof n[0])r(n);else if(n.length)for(var i=0;i<n.length;i++)r(n[i])}function Ge(e){var t,n,r,i,o,a,u,c=[],f=l.ext.type.order,d=e.aoColumns,h=e.aaSortingFixed,p=s.isPlainObject(h),g=[];if(!e.oFeatures.bSort)return c;for(Array.isArray(h)&&qe(e,g,h),p&&h.pre&&qe(e,g,h.pre),qe(e,g,e.aaSorting),p&&h.post&&qe(e,g,h.post),t=0;t<g.length;t++)if(d[u=g[t][0]])for(n=0,r=(i=d[u].aDataSort).length;n<r;n++)a=d[o=i[n]].sType||"string",void 0===g[t]._idx&&(g[t]._idx=d[o].asSorting.indexOf(g[t][1])),g[t][1]&&c.push({src:u,col:o,dir:g[t][1],index:g[t]._idx,type:a,formatter:f[a+"-pre"],sorter:f[a+"-"+g[t][1]]});return c}function $e(e,t,n){var r,i,o,a=[],s=l.ext.type.order,u=e.aoData,c=e.aiDisplayMaster;if(q(e),void 0!==t){var f=e.aoColumns[t];o=[{src:t,col:t,dir:n,index:0,type:f.sType,formatter:s[f.sType+"-pre"],sorter:s[f.sType+"-"+n]}],c=c.slice()}else o=Ge(e);for(r=0,i=o.length;r<i;r++)Qe(e,o[r].col);if("ssp"!=at(e)&&0!==o.length){for(r=0,i=c.length;r<i;r++)a[r]=r;o.length&&"desc"===o[0].dir&&e.orderDescReverse&&a.reverse(),c.sort(function(e,t){var n,r,i,s,l,c=o.length,f=u[e]._aSortData,d=u[t]._aSortData;for(i=0;i<c;i++)if(n=f[(l=o[i]).col],r=d[l.col],l.sorter){if(0!==(s=l.sorter(n,r)))return s}else if(0!==(s=n<r?-1:n>r?1:0))return"asc"===l.dir?s:-s;return(n=a[e])<(r=a[t])?-1:n>r?1:0})}else 0===o.length&&c.sort(function(e,t){return e<t?-1:e>t?1:0});return void 0===t&&(e.bSorted=!0,e.sortDetails=o,rt(e,null,"order",[e,o])),c}function Ve(e,t,n,r){var i,o=e.aoColumns[t],a=e.aaSorting,s=o.asSorting,l=function(e,t){var n=e._idx;return void 0===n&&(n=s.indexOf(e[1])),n+1<s.length?n+1:t?null:0};if(!o.bSortable)return!1;if("number"==typeof a[0]&&(a=e.aaSorting=[a]),(r||n)&&e.oFeatures.bSortMulti){var u=w(a,"0").indexOf(t);-1!==u?(null===(i=l(a[u],!0))&&1===a.length&&(i=0),null===i||""===s[i]?a.splice(u,1):(a[u][1]=s[i],a[u]._idx=i)):r?(a.push([t,s[0],0]),a[a.length-1]._idx=0):(a.push([t,a[0][1],0]),a[a.length-1]._idx=0)}else a.length&&a[0][0]==t?(i=l(a[0]),a.length=1,a[0][1]=s[i],a[0]._idx=i):(a.length=0,a.push([t,s[0]]),a[0]._idx=0)}function Xe(e){var t,n,r,i=e.aLastSort,o=e.oClasses.order.position,a=Ge(e),l=e.oFeatures;if(l.bSort&&l.bSortClasses){for(t=0,n=i.length;t<n;t++)r=i[t].src,s(w(e.aoData,"anCells",r)).removeClass(o+(t<2?t+1:3));for(t=0,n=a.length;t<n;t++)r=a[t].src,s(w(e.aoData,"anCells",r)).addClass(o+(t<2?t+1:3))}e.aLastSort=a}function Qe(e,t){var n,r,i,o=e.aoColumns[t],a=l.ext.order[o.sSortDataType];a&&(n=a.call(e.oInstance,e,t,H(e,t)));for(var s=l.ext.type.order[o.sType+"-pre"],u=e.aoData,c=0;c<u.length;c++)u[c]&&((r=u[c])._aSortData||(r._aSortData=[]),r._aSortData[t]&&!a||(i=a?n[c]:Y(e,c,t,"sort"),r._aSortData[t]=s?s(i,e):i))}function Ke(e){if(!e._bLoadingState){var t=[];qe(e,t,e.aaSorting);var n=e.aoColumns,r={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.map(function(e){return n[e[0]]&&n[e[0]].sName?[n[e[0]].sName,e[1]]:e.slice()}),search:s.extend({},e.oPreviousSearch),columns:e.aoColumns.map(function(t,n){return{name:t.sName,visible:t.bVisible,search:s.extend({},e.aoPreSearchCols[n])}})};e.oSavedState=r,rt(e,"aoStateSaveParams","stateSaveParams",[e,r]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,r)}}function Ye(e,t,n){var r,i,o=e.aoColumns,a=w(e.aoColumns,"sName");e._bLoadingState=!0;var u=e._bInitComplete?new l.Api(e):null;if(!t||!t.time)return e._bLoadingState=!1,void n();var c=e.iStateDuration;if(c>0&&t.time<+new Date-1e3*c)return e._bLoadingState=!1,void n();if(-1!==rt(e,"aoStateLoadParams","stateLoadParams",[e,t]).indexOf(!1))return e._bLoadingState=!1,void n();if(e.oLoadedState=s.extend(!0,{},t),rt(e,null,"stateLoadInit",[e,t],!0),void 0!==t.length&&(u?u.page.len(t.length):e._iDisplayLength=t.length),void 0!==t.start&&(null===u?(e._iDisplayStart=t.start,e.iInitDisplayStart=t.start):Oe(e,t.start/e._iDisplayLength)),void 0!==t.order&&(e.aaSorting=[],s.each(t.order,function(t,n){var r=[n[0],n[1]];if("string"==typeof n[0]){var i=a.indexOf(n[0]);if(i<0)return;r[0]=i}else if(r[0]>=o.length)return;e.aaSorting.push(r)})),void 0!==t.search&&s.extend(e.oPreviousSearch,t.search),t.columns){var f=t.columns,d=w(t.columns,"name");if(d.join("").length&&d.join("")!==a.join(""))for(f=[],r=0;r<a.length;r++)if(""!=a[r]){var h=d.indexOf(a[r]);h>=0?f.push(t.columns[h]):f.push({})}else f.push({});if(f.length===o.length){for(r=0,i=f.length;r<i;r++){var p=f[r];void 0!==p.visible&&(u?u.column(r).visible(p.visible,!1):o[r].bVisible=p.visible),void 0!==p.search&&s.extend(e.aoPreSearchCols[r],p.search)}u&&u.one("draw",function(){u.columns.adjust()})}}e._bLoadingState=!1,rt(e,"aoStateLoaded","stateLoaded",[e,t]),n()}function Ze(e,t,n,r){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,r&&(n+=". For more information about this error, please see https://datatables.net/tn/"+r),t)window.console&&console.log&&console.log(n);else{var i=l.ext,o=i.sErrMode||i.errMode;if(e&&rt(e,null,"dt-error",[e,r,n],!0),"alert"==o)alert(n);else{if("throw"==o)throw new Error(n);"function"==typeof o&&o(e,r,n)}}}function Je(e,t,n,r){Array.isArray(n)?s.each(n,function(n,r){Array.isArray(r)?Je(e,t,r[0],r[1]):Je(e,t,r)}):(void 0===r&&(r=n),void 0!==t[n]&&(e[r]=t[n]))}function et(e,t,n){var r;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r=t[i],s.isPlainObject(r)?(s.isPlainObject(e[i])||(e[i]={}),s.extend(!0,e[i],r)):n&&"data"!==i&&"aaData"!==i&&Array.isArray(r)?e[i]=r.slice():e[i]=r);return e}function tt(e,t,n){s(e).on("click.DT",t,function(e){n(e)}).on("keypress.DT",t,function(e){13===e.which&&(e.preventDefault(),n(e))}).on("selectstart.DT",t,function(){return!1})}function nt(e,t,n){n&&e[t].push(n)}function rt(e,t,n,r,i){var o=[];if(t&&(o=e[t].slice().reverse().map(function(t){return t.apply(e.oInstance,r)})),null!==n){var a=s.Event(n+".dt"),l=s(e.nTable);a.dt=e.api,l[i?"trigger":"triggerHandler"](a,r),i&&0===l.parents("body").length&&s("body").trigger(a,r),o.push(a.result)}return o}function it(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),r=e._iDisplayLength;t>=n&&(t=n-r),t-=t%r,(-1===r||t<0)&&(t=0),e._iDisplayStart=t}function ot(e,t){var n=e.renderer,r=l.ext.renderer[t];return s.isPlainObject(n)&&n[t]?r[n[t]]||r._:"string"==typeof n&&r[n]||r._}function at(e){return e.oFeatures.bServerSide?"ssp":e.ajax?"ajax":"dom"}function st(e,t,n){var r=e.fnFormatNumber,i=e._iDisplayStart+1,o=e._iDisplayLength,a=e.fnRecordsDisplay(),s=e.fnRecordsTotal(),l=-1===o;return t.replace(/_START_/g,r.call(e,i)).replace(/_END_/g,r.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,r.call(e,s)).replace(/_TOTAL_/g,r.call(e,a)).replace(/_PAGE_/g,r.call(e,l?1:Math.ceil(i/o))).replace(/_PAGES_/g,r.call(e,l?1:Math.ceil(a/o))).replace(/_ENTRIES_/g,e.api.i18n("entries","",n)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",s)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",a))}function lt(e,t){if(t)if(t.length<1e4)e.push.apply(e,t);else for(Gt=0;Gt<t.length;Gt++)e.push(t[Gt])}function ut(e,t,n){for(Array.isArray(n)||(n=[n]),Gt=0;Gt<n.length;Gt++)e.on(t+".dt",n[Gt])}function ct(e){return l.ext.escape.attributes&&s.each(e,function(t,n){e[t]=C(n)}),e}var ft=[],dt=Array.prototype;function ht(e,t,n){return function(){var r=t.apply(e||this,arguments);return i.extend(r,r,n.methodExt),r}}function pt(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n].name===t)return e[n];return null}i=function(e,t){if(!(this instanceof i))return new i(e,t);var n,r=[],o=function(e){var t=function(e){var t,n,r=l.settings,i=w(r,"nTable");return e?e.nTable&&e.oFeatures?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(t=i.indexOf(e))?[r[t]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=s(e).get():e instanceof s&&(n=e.get()),n?r.filter(function(e,t){return n.includes(i[t])}):void 0):[]}(e);t&&r.push.apply(r,t)};if(Array.isArray(e))for(n=0;n<e.length;n++)o(e[n]);else o(e);this.context=r.length>1?L(r):r,lt(this,t),this.selector={rows:null,cols:null,opts:null},i.extend(this,this,ft)},l.Api=i,s.extend(i.prototype,{any:function(){return 0!==this.count()},context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new i(t[e],this[e]):null},filter:function(e){var t=dt.filter.call(this,e,this);return new i(this.context,t)},flatten:function(){var e=[];return new i(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:dt.join,includes:function(e){return-1!==this.indexOf(e)},indexOf:dt.indexOf,iterator:function(e,t,n,r){var o,a,s,l,u,c,f,d,h=[],p=this.context,g=this.selector;for("string"==typeof e&&(r=n,n=t,t=e,e=!1),a=0,s=p.length;a<s;a++){var v=new i(p[a]);if("table"===t)void 0!==(o=n.call(v,p[a],a))&&h.push(o);else if("columns"===t||"rows"===t)void 0!==(o=n.call(v,p[a],this[a],a))&&h.push(o);else if("every"===t||"column"===t||"column-rows"===t||"row"===t||"cell"===t)for(f=this[a],"column-rows"===t&&(c=_t(p[a],g.opts)),l=0,u=f.length;l<u;l++)d=f[l],void 0!==(o="cell"===t?n.call(v,p[a],d.row,d.column,a,l):n.call(v,p[a],d,a,l,c))&&h.push(o)}if(h.length||r){var m=new i(p,e?h.concat.apply([],h):h),y=m.selector;return y.rows=g.rows,y.cols=g.cols,y.opts=g.opts,m}return this},lastIndexOf:dt.lastIndexOf,length:0,map:function(e){var t=dt.map.call(this,e,this);return new i(this.context,t)},pluck:function(e){var t=l.util.get(e);return this.map(function(e){return t(e)})},pop:dt.pop,push:dt.push,reduce:dt.reduce,reduceRight:dt.reduceRight,reverse:dt.reverse,selector:null,shift:dt.shift,slice:function(){return new i(this.context,this)},sort:dt.sort,splice:dt.splice,toArray:function(){return dt.slice.call(this)},to$:function(){return s(this)},toJQuery:function(){return s(this)},unique:function(){return new i(this.context,L(this.toArray()))},unshift:dt.unshift}),window.__apiStruct=ft,i.extend=function(e,t,n){var r,o,a;if(n.length&&t&&(t instanceof i||t.__dt_wrapper))for(r=0,o=n.length;r<o;r++)"__proto__"!==(a=n[r]).name&&(t[a.name]="function"===a.type?ht(e,a.val,a):"object"===a.type?{}:a.val,t[a.name].__dt_wrapper=!0,i.extend(e,t[a.name],a.propExt))},i.register=o=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)i.register(e[n],t);else{var o,a,l,u,c=e.split("."),f=ft;for(o=0,a=c.length;o<a;o++){var d=pt(f,l=(u=-1!==c[o].indexOf("()"))?c[o].replace("()",""):c[o]);d||(d={name:l,val:{},methodExt:[],propExt:[],type:"object"},f.push(d)),o===a-1?(d.val=t,d.type="function"==typeof t?"function":s.isPlainObject(t)?"object":"other"):f=u?d.methodExt:d.propExt}}},i.registerPlural=a=function(e,t,n){i.register(e,n),i.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof i?e.length?Array.isArray(e[0])?new i(e.context,e[0]):e[0]:void 0:e})};var gt=function(e,t){if(Array.isArray(e)){var n=[];return e.forEach(function(e){var r=gt(e,t);lt(n,r)}),n.filter(function(e){return e})}if("number"==typeof e)return[t[e]];var r=t.map(function(e){return e.nTable});return s(r).filter(e).map(function(){var e=r.indexOf(this);return t[e]}).toArray()};o("tables()",function(e){return null!=e?new i(gt(e,this.context)):this}),o("table()",function(e){var t=this.tables(e),n=t.context;return n.length?new i(n[0]):t}),[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach(function(e){a("tables()."+e[0]+"()","table()."+e[1]+"()",function(){return this.iterator("table",function(t){return t[e[2]]},1)})}),[["header","aoHeader"],["footer","aoFooter"]].forEach(function(e){o("table()."+e[0]+".structure()",function(t){var n=this.columns(t).indexes().flatten().toArray(),r=this.context[0],i=de(r,r[e[1]],n),o=n.slice().sort(function(e,t){return e-t});return i.map(function(e){return n.map(function(t){return e[o.indexOf(t)]})})})}),a("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),o("tables().every()",function(e){var t=this;return this.iterator("table",function(n,r){e.call(t.table(r),r)})}),o("caption()",function(e,t){var n=this.context;if(void 0===e){var r=n[0].captionNode;return r&&n.length?r.innerHTML:null}return this.iterator("table",function(n){var r=s(n.nTable),i=s(n.captionNode),o=s(n.nTableWrapper);if(i.length||(i=s("<caption/>").html(e),n.captionNode=i[0],t||(r.prepend(i),t=i.css("caption-side"))),i.html(e),t&&(i.css("caption-side",t),i[0]._captionSide=t),o.find("div.dataTables_scroll").length){var a="top"===t?"Head":"Foot";o.find("div.dataTables_scroll"+a+" table").prepend(i)}else r.prepend(i)},1)}),o("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null}),o("draw()",function(e){return this.iterator("table",function(t){"page"===e?pe(t):("string"==typeof e&&(e="full-hold"!==e),ge(t,!1===e))})}),o("page()",function(e){return void 0===e?this.page.info().page:this.iterator("table",function(t){Oe(t,e)})}),o("page.info()",function(){if(0!==this.context.length){var e=this.context[0],t=e._iDisplayStart,n=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),i=-1===n;return{page:i?0:Math.floor(t/n),pages:i?1:Math.ceil(r/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===at(e)}}}),o("page.len()",function(e){return void 0===e?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(t){Ie(t,e)})});var vt=function(e,t,n){if(n){var r=new i(e);r.one("draw",function(){n(r.ajax.json())})}if("ssp"==at(e))ge(e,t);else{Re(e,!0);var o=e.jqXHR;o&&4!==o.readyState&&o.abort(),xe(e,{},function(n){oe(e);for(var r=Te(e,n),i=0,o=r.length;i<o;i++)Q(e,r[i]);ge(e,t),De(e),Re(e,!1)})}};o("ajax.json()",function(){var e=this.context;if(e.length>0)return e[0].json}),o("ajax.params()",function(){var e=this.context;if(e.length>0)return e[0].oAjaxData}),o("ajax.reload()",function(e,t){return this.iterator("table",function(n){vt(n,!1===t,e)})}),o("ajax.url()",function(e){var t=this.context;if(void 0===e){if(0===t.length)return;return t=t[0],s.isPlainObject(t.ajax)?t.ajax.url:t.ajax}return this.iterator("table",function(t){s.isPlainObject(t.ajax)?t.ajax.url=e:t.ajax=e})}),o("ajax.url().load()",function(e,t){return this.iterator("table",function(n){vt(n,!1===t,e)})});var mt=function(e,t,n,i,o){var a,s,l,u=[],c=typeof t;for(t&&"string"!==c&&"function"!==c&&void 0!==t.length||(t=[t]),s=0,l=t.length;s<l;s++)(a=(a=n("string"==typeof t[s]?t[s].trim():t[s])).filter(function(e){return null!=e}))&&a.length&&(u=u.concat(a));var f=r.selector[e];if(f.length)for(s=0,l=f.length;s<l;s++)u=f[s](i,o,u);return L(u)},yt=function(e){return e||(e={}),e.filter&&void 0===e.search&&(e.search=e.filter),s.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},e)},bt=function(e){var t=new i(e.context[0]);return e.length&&t.push(e[0]),t.selector=e.selector,t.length&&t[0].length>1&&t[0].splice(1),t},_t=function(e,t){var n,r,i,o=[],a=e.aiDisplay,s=e.aiDisplayMaster,l=t.search,u=t.order,c=t.page;if("ssp"==at(e))return"removed"===l?[]:T(0,s.length);if("current"==c)for(n=e._iDisplayStart,r=e.fnDisplayEnd();n<r;n++)o.push(a[n]);else if("current"==u||"applied"==u){if("none"==l)o=s.slice();else if("applied"==l)o=a.slice();else if("removed"==l){var f={};for(n=0,r=a.length;n<r;n++)f[a[n]]=null;s.forEach(function(e){Object.prototype.hasOwnProperty.call(f,e)||o.push(e)})}}else if("index"==u||"original"==u)for(n=0,r=e.aoData.length;n<r;n++)e.aoData[n]&&("none"==l||-1===(i=a.indexOf(n))&&"removed"==l||i>=0&&"applied"==l)&&o.push(n);else if("number"==typeof u){var d=$e(e,u,"asc");if("none"===l)o=d;else for(n=0;n<d.length;n++)(-1===(i=a.indexOf(d[n]))&&"removed"==l||i>=0&&"applied"==l)&&o.push(d[n])}return o};o("rows()",function(e,t){void 0===e?e="":s.isPlainObject(e)&&(t=e,e=""),t=yt(t);var n=this.iterator("table",function(n){return function(e,t,n){var r,i=mt("row",t,function(t){var i=m(t),o=e.aoData;if(null!==i&&!n)return[i];if(r||(r=_t(e,n)),null!==i&&-1!==r.indexOf(i))return[i];if(null==t||""===t)return r;if("function"==typeof t)return r.map(function(e){var n=o[e];return t(e,n._aData,n.nTr)?e:null});if(t.nodeName){var a=t._DT_RowIndex,l=t._DT_CellIndex;if(void 0!==a)return o[a]&&o[a].nTr===t?[a]:[];if(l)return o[l.row]&&o[l.row].nTr===t.parentNode?[l.row]:[];var u=s(t).closest("*[data-dt-row]");return u.length?[u.data("dt-row")]:[]}if("string"==typeof t&&"#"===t.charAt(0)){var c=e.aIds[t.replace(/^#/,"")];if(void 0!==c)return[c.idx]}var f=A(x(e.aoData,r,"nTr"));return s(f).filter(t).map(function(){return this._DT_RowIndex}).toArray()},e,n);return"current"!==n.order&&"applied"!==n.order||We(e,i),i}(n,e,t)},1);return n.selector.rows=e,n.selector.opts=t,n}),o("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||void 0},1)}),o("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return x(e.aoData,t,"_aData")},1)}),a("rows().cache()","row().cache()",function(e){return this.iterator("row",function(t,n){var r=t.aoData[n];return"search"===e?r._aFilterData:r._aSortData},1)}),a("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(t,n){ae(t,n,e)})}),a("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),a("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,r=0,o=n.length;r<o;r++)for(var a=0,s=this[r].length;a<s;a++){var l=n[r].rowIdFn(n[r].aoData[this[r][a]]._aData);t.push((!0===e?"#":"")+l)}return new i(n,t)}),a("rows().remove()","row().remove()",function(){return this.iterator("row",function(e,t){var n=e.aoData,r=n[t],i=e.aiDisplayMaster.indexOf(t);-1!==i&&e.aiDisplayMaster.splice(i,1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,it(e);var o=e.rowIdFn(r._aData);void 0!==o&&delete e.aIds[o],n[t]=null}),this}),o("rows.add()",function(e){var t=this.iterator("table",function(t){var n,r,i,o=[];for(r=0,i=e.length;r<i;r++)(n=e[r]).nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(K(t,n)[0]):o.push(Q(t,n));return o},1),n=this.rows(-1);return n.pop(),lt(n,t),n}),o("row()",function(e,t){return bt(this.rows(e,t))}),o("row().data()",function(e){var t=this.context;if(void 0===e)return t.length&&this.length&&this[0].length?t[0].aoData[this[0]]._aData:void 0;var n=t[0].aoData[this[0]];return n._aData=e,Array.isArray(e)&&n.nTr&&n.nTr.id&&re(t[0].rowId)(e,n.nTr.id),ae(t[0],this[0],"data"),this}),o("row().node()",function(){var e=this.context;if(e.length&&this.length&&this[0].length){var t=e[0].aoData[this[0]];if(t&&t.nTr)return t.nTr}return null}),o("row.add()",function(e){e instanceof s&&e.length&&(e=e[0]);var t=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?K(t,e)[0]:Q(t,e)});return this.row(t[0])}),s(document).on("plugin-init.dt",function(e,t){var n=new i(t);n.on("stateSaveParams.DT",function(e,t,n){for(var r=t.rowIdFn,i=t.aiDisplayMaster,o=[],a=0;a<i.length;a++){var s=i[a],l=t.aoData[s];l._detailsShow&&o.push("#"+r(l._aData))}n.childRows=o}),n.on("stateLoaded.DT",function(e,t,r){wt(n,r)}),wt(n,n.state.loaded())});var wt=function(e,t){t&&t.childRows&&e.rows(t.childRows.map(function(e){return e.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")})).every(function(){rt(e.settings()[0],null,"requestChild",[this])})},xt=l.util.throttle(function(e){Ke(e[0])},500),Tt=function(e,t){var n=e.context;if(n.length){var r=n[0].aoData[void 0!==t?t:e[0]];r&&r._details&&(r._details.detach(),r._detailsShow=void 0,r._details=void 0,s(r.nTr).removeClass("dt-hasChild"),xt(n))}},At=function(e,t){var n=e.context;if(n.length&&e.length){var r=n[0].aoData[e[0]];r._details&&(r._detailsShow=t,t?(r._details.insertAfter(r.nTr),s(r.nTr).addClass("dt-hasChild")):(r._details.detach(),s(r.nTr).removeClass("dt-hasChild")),rt(n[0],null,"childRow",[t,e.row(e[0])]),St(n[0]),xt(n))}},St=function(e){var t=new i(e),n=".dt.DT_details",r="draw"+n,o="column-sizing"+n,a="destroy"+n,l=e.aoData;t.off(r+" "+o+" "+a),w(l,"_details").length>0&&(t.on(r,function(n,r){e===r&&t.rows({page:"current"}).eq(0).each(function(e){var t=l[e];t._detailsShow&&t._details.insertAfter(t.nTr)})}),t.on(o,function(t,n){if(e===n)for(var r,i=z(n),o=0,a=l.length;o<a;o++)(r=l[o])&&r._details&&r._details.each(function(){var e=s(this).children("td");1==e.length&&e.attr("colspan",i)})}),t.on(a,function(n,r){if(e===r)for(var i=0,o=l.length;i<o;i++)l[i]&&l[i]._details&&Tt(t,i)}))},Ct="row().child",Et=Ct+"()";o(Et,function(e,t){var n=this.context;return void 0===e?n.length&&this.length&&n[0].aoData[this[0]]?n[0].aoData[this[0]]._details:void 0:(!0===e?this.child.show():!1===e?Tt(this):n.length&&this.length&&function(e,t,n,r){var i=[],o=function(n,r){if(Array.isArray(n)||n instanceof s)for(var a=0,l=n.length;a<l;a++)o(n[a],r);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())n.setAttribute("data-dt-row",t.idx),i.push(n);else{var u=s("<tr><td></td></tr>").attr("data-dt-row",t.idx).addClass(r);s("td",u).addClass(r).html(n)[0].colSpan=z(e),i.push(u[0])}};o(n,r),t._details&&t._details.detach(),t._details=s(i),t._detailsShow&&t._details.insertAfter(t.nTr)}(n[0],n[0].aoData[this[0]],e,t),this)}),o([Ct+".show()",Et+".show()"],function(){return At(this,!0),this}),o([Ct+".hide()",Et+".hide()"],function(){return At(this,!1),this}),o([Ct+".remove()",Et+".remove()"],function(){return Tt(this),this}),o(Ct+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]&&e[0].aoData[this[0]]._detailsShow||!1});var Lt=/^([^:]+)?:(name|title|visIdx|visible)$/,kt=function(e,t,n,r,i,o){for(var a=[],s=0,l=i.length;s<l;s++)a.push(Y(e,i[s],t,o));return a},Nt=function(e,t,n){var r=e.aoHeader,i=e.titleRow,o=null;if(void 0!==n)o=n;else if(!0===i)o=0;else if(!1===i)o=r.length-1;else if(null!==i)o=i;else{for(var a=0;a<r.length;a++)r[a][t].unique&&s("span.dt-column-title",r[a][t].cell).text()&&(o=a);null===o&&(o=0)}return r[o][t].cell};o("columns()",function(e,t){void 0===e?e="":s.isPlainObject(e)&&(t=e,e=""),t=yt(t);var n=this.iterator("table",function(n){return function(e,t,n){var r,i,o=e.aoColumns,a=function(e){for(var t=[],n=0;n<e.length;n++)for(var r=0;r<e[n].length;r++){var i=e[n][r].cell;t.includes(i)||t.push(i)}return t}(e.aoHeader),l=mt("column",t,function(t){var l=m(t);if(""===t)return T(o.length);if(null!==l)return[l>=0?l:o.length+l];if("function"==typeof t){var u=_t(e,n);return o.map(function(n,r){return t(r,kt(e,r,0,0,u),Nt(e,r))?r:null})}var c="string"==typeof t?t.match(Lt):"";if(c)switch(c[2]){case"visIdx":case"visible":if(c[1]&&c[1].match(/^\d+$/)){var f=parseInt(c[1],10);if(f<0){var d=o.map(function(e,t){return e.bVisible?t:null});return[d[d.length+f]]}return[B(e,f)]}return o.map(function(e,t){return e.bVisible?c[1]?s(a[t]).filter(c[1]).length>0?t:null:t:null});case"name":return r||(r=w(o,"sName")),r.map(function(e,t){return e===c[1]?t:null});case"title":return i||(i=w(o,"sTitle")),i.map(function(e,t){return e===c[1]?t:null});default:return[]}if(t.nodeName&&t._DT_CellIndex)return[t._DT_CellIndex.column];var h=s(a).filter(t).map(function(){return X(this)}).toArray().sort(function(e,t){return e-t});if(h.length||!t.nodeName)return h;var p=s(t).closest("*[data-dt-column]");return p.length?[p.data("dt-column")]:[]},e,n);return n.columnOrder&&"index"===n.columnOrder?l.sort(function(e,t){return e-t}):l}(n,e,t)},1);return n.selector.cols=e,n.selector.opts=t,n}),a("columns().header()","column().header()",function(e){return this.iterator("column",function(t,n){return Nt(t,n,e)},1)}),a("columns().footer()","column().footer()",function(e){return this.iterator("column",function(t,n){return t.aoFooter.length?t.aoFooter[void 0!==e?e:0][n].cell:null},1)}),a("columns().data()","column().data()",function(){return this.iterator("column-rows",kt,1)}),a("columns().render()","column().render()",function(e){return this.iterator("column-rows",function(t,n,r,i,o){return kt(t,n,0,0,o,e)},1)}),a("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),a("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,r,i,o){return x(t.aoData,o,"search"===e?"_aFilterData":"_aSortData",n)},1)}),a("columns().init()","column().init()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t]},1)}),a("columns().names()","column().name()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].sName},1)}),a("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,i){return x(e.aoData,i,"anCells",t)},1)}),a("columns().titles()","column().title()",function(e,t){return this.iterator("column",function(n,r){"number"==typeof e&&(t=e,e=void 0);var i=s("span.dt-column-title",this.column(r).header(t));return void 0!==e?(i.html(e),this):i.html()},1)}),a("columns().types()","column().type()",function(){return this.iterator("column",function(e,t){var n=e.aoColumns[t],r=n.sType;return r||(q(e),r=n.sType),r},1)}),a("columns().visible()","column().visible()",function(e,t){var n=this,r=[],i=this.iterator("column",function(t,n){if(void 0===e)return t.aoColumns[n].bVisible;(function(e,t,n){var r,i,o,a,l=e.aoColumns,u=l[t],c=e.aoData;if(void 0===n)return u.bVisible;if(u.bVisible===n)return!1;if(n){var f=w(l,"bVisible").indexOf(!0,t+1);for(i=0,o=c.length;i<o;i++)c[i]&&(a=c[i].nTr,r=c[i].anCells,a&&a.insertBefore(r[t],r[f]||null))}else s(w(e.aoData,"anCells",t)).detach();return u.bVisible=n,ze(e),!0})(t,n,e)&&r.push(n)});return void 0!==e&&this.iterator("table",function(i){he(i,i.aoHeader),he(i,i.aoFooter),i.aiDisplay.length||s(i.nTBody).find("td[colspan]").attr("colspan",z(i)),Ke(i),n.iterator("column",function(n,i){r.includes(i)&&rt(n,null,"column-visibility",[n,i,e,t])}),r.length&&(void 0===t||t)&&n.columns.adjust()}),i}),a("columns().widths()","column().width()",function(){var e=this.columns(":visible").count(),t=s("<tr>").html("<td>"+Array(e).join("</td><td>")+"</td>");s(this.table().body()).append(t);var n=t.children().map(function(){return s(this).outerWidth()});return t.remove(),this.iterator("column",function(e,t){var r=H(e,t);return null!==r?n[r]:0},1)}),a("columns().indexes()","column().index()",function(e){return this.iterator("column",function(t,n){return"visible"===e?H(t,n):n},1)}),o("columns.adjust()",function(){return this.iterator("table",function(e){e.containerWidth=-1,F(e)},1)}),o("column.index()",function(e,t){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===e||"toData"===e)return B(n,t);if("fromData"===e||"toVisible"===e)return H(n,t)}}),o("column()",function(e,t){return bt(this.columns(e,t))});var Dt,It;function Ot(e,t){s(e).find("span.dt-column-order").remove(),s(e).find("span.dt-column-title").each(function(){var e=s(this).html();s(this).parent().parent().append(e),s(this).remove()}),s(e).find("div.dt-column-"+t).remove(),s("th, td",e).removeAttr("data-dt-column")}o("cells()",function(e,t,n){if(s.isPlainObject(e)&&(void 0===e.row?(n=e,e=null):(n=t,t=null)),s.isPlainObject(t)&&(n=t,t=null),null==t)return this.iterator("table",function(t){return function(e,t,n){var r,i,o,a,l,u,c,f=e.aoData,d=_t(e,n),h=A(x(f,d,"anCells")),p=s(k([],h)),g=e.aoColumns.length;return mt("cell",t,function(t){var n="function"==typeof t;if(null==t||n){for(i=[],o=0,a=d.length;o<a;o++)for(r=d[o],l=0;l<g;l++)u={row:r,column:l},n?(c=f[r],t(u,Y(e,r,l),c.anCells?c.anCells[l]:null)&&i.push(u)):i.push(u);return i}if(s.isPlainObject(t))return void 0!==t.column&&void 0!==t.row&&-1!==d.indexOf(t.row)?[t]:[];var h=p.filter(t).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray();return h.length||!t.nodeName?h:(c=s(t).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},e,n)}(t,e,yt(n))});var r,i,o,a,l=n?{page:n.page,order:n.order,search:n.search}:{},u=this.columns(t,l),c=this.rows(e,l),f=this.iterator("table",function(e,t){var n=[];for(r=0,i=c[t].length;r<i;r++)for(o=0,a=u[t].length;o<a;o++)n.push({row:c[t][r],column:u[t][o]});return n},1),d=n&&n.selected?this.cells(f,n):f;return s.extend(d.selector,{cols:t,rows:e,opts:n}),d}),a("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){var r=e.aoData[t];return r&&r.anCells?r.anCells[n]:void 0},1)}),o("cells().data()",function(){return this.iterator("cell",function(e,t,n){return Y(e,t,n)},1)}),a("cells().cache()","cell().cache()",function(e){return e="search"===e?"_aFilterData":"_aSortData",this.iterator("cell",function(t,n,r){return t.aoData[n][e][r]},1)}),a("cells().render()","cell().render()",function(e){return this.iterator("cell",function(t,n,r){return Y(t,n,r,e)},1)}),a("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:H(e,n)}},1)}),a("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(t,n,r){ae(t,n,e,r)})}),o("cell()",function(e,t,n){return bt(this.cells(e,t,n))}),o("cell().data()",function(e){var t,n,r,i,o,a,s=this.context,l=this[0];return void 0===e?s.length&&l.length?Y(s[0],l[0].row,l[0].column):void 0:(t=s[0],n=l[0].row,r=l[0].column,i=e,o=t.aoColumns[r],a=t.aoData[n]._aData,o.fnSetData(a,i,{settings:t,row:n,col:r}),ae(s[0],l[0].row,"data",l[0].column),this)}),o("order()",function(e,t){var n=this.context,r=Array.prototype.slice.call(arguments);return void 0===e?0!==n.length?n[0].aaSorting:void 0:("number"==typeof e?e=[[e,t]]:r.length>1&&(e=r),this.iterator("table",function(t){var n=[];qe(t,n,e),t.aaSorting=n}))}),o("order.listener()",function(e,t,n){return this.iterator("table",function(r){Ue(r,e,{},t,n)})}),o("order.fixed()",function(e){if(!e){var t=this.context,n=t.length?t[0].aaSortingFixed:void 0;return Array.isArray(n)?{pre:n}:n}return this.iterator("table",function(t){t.aaSortingFixed=s.extend(!0,{},e)})}),o(["columns().order()","column().order()"],function(e){var t=this;return e?this.iterator("table",function(n,r){n.aaSorting=t[r].map(function(t){return[t,e]})}):this.iterator("column",function(e,t){for(var n=Ge(e),r=0,i=n.length;r<i;r++)if(n[r].col===t)return n[r].dir;return null},1)}),a("columns().orderable()","column().orderable()",function(e){return this.iterator("column",function(t,n){var r=t.aoColumns[n];return e?r.asSorting:r.bSortable},1)}),o("processing()",function(e){return this.iterator("table",function(t){Re(t,e)})}),o("search()",function(e,t,n,r){var i=this.context;return void 0===e?0!==i.length?i[0].oPreviousSearch.search:void 0:this.iterator("table",function(i){i.oFeatures.bFilter&&Se(i,"object"==typeof t?s.extend(i.oPreviousSearch,t,{search:e}):s.extend(i.oPreviousSearch,{search:e,regex:null!==t&&t,smart:null===n||n,caseInsensitive:null===r||r}))})}),o("search.fixed()",function(e,t){var n=this.iterator(!0,"table",function(n){var r=n.searchFixed;return e?void 0===t?r[e]:(null===t?delete r[e]:r[e]=t,this):Object.keys(r)});return void 0!==e&&void 0===t?n[0]:n}),a("columns().search()","column().search()",function(e,t,n,r){return this.iterator("column",function(i,o){var a=i.aoPreSearchCols;if(void 0===e)return a[o].search;i.oFeatures.bFilter&&("object"==typeof t?s.extend(a[o],t,{search:e}):s.extend(a[o],{search:e,regex:null!==t&&t,smart:null===n||n,caseInsensitive:null===r||r}),Se(i,i.oPreviousSearch))})}),o(["columns().search.fixed()","column().search.fixed()"],function(e,t){var n=this.iterator(!0,"column",function(n,r){var i=n.aoColumns[r].searchFixed;return e?void 0===t?i[e]||null:(null===t?delete i[e]:i[e]=t,this):Object.keys(i)});return void 0!==e&&void 0===t?n[0]:n}),o("state()",function(e,t){if(!e)return this.context.length?this.context[0].oSavedState:null;var n=s.extend(!0,{},e);return this.iterator("table",function(e){!1!==t&&(n.time=+new Date+100),Ye(e,n,function(){})})}),o("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),o("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),o("state.save()",function(){return this.iterator("table",function(e){Ke(e)})}),l.use=function(e,t){var n="string"==typeof e?t:e,r="string"==typeof t?t:e;if(void 0===n&&"string"==typeof r)switch(r){case"lib":case"jq":return s;case"win":return window;case"datetime":return l.DateTime;case"luxon":return jt;case"moment":return Ft;case"bootstrap":return Dt||window.bootstrap;case"foundation":return It||window.Foundation;default:return null}"lib"===r||"jq"===r||n&&n.fn&&n.fn.jquery?s=n:"win"===r||n&&n.document?(window=n,document=n.document):"datetime"===r||n&&"DateTime"===n.type?l.DateTime=n:"luxon"===r||n&&n.FixedOffsetZone?jt=n:"moment"===r||n&&n.isMoment?Ft=n:"bootstrap"===r||n&&n.Modal&&"modal"===n.Modal.NAME?Dt=n:("foundation"===r||n&&n.Reveal)&&(It=n)},l.factory=function(e,t){var n=!1;return e&&e.document&&(window=e,document=e.document),t&&t.fn&&t.fn.jquery&&(s=t,n=!0),n},l.versionCheck=function(e,t){for(var n,r,i=t?t.split("."):l.version.split("."),o=e.split("."),a=0,s=o.length;a<s;a++)if((n=parseInt(i[a],10)||0)!==(r=parseInt(o[a],10)||0))return n>r;return!0},l.isDataTable=function(e){var t=s(e).get(0),n=!1;return e instanceof l.Api||(s.each(l.settings,function(e,r){var i=r.nScrollHead?s("table",r.nScrollHead)[0]:null,o=r.nScrollFoot?s("table",r.nScrollFoot)[0]:null;r.nTable!==t&&i!==t&&o!==t||(n=!0)}),n)},l.tables=function(e){var t=!1;s.isPlainObject(e)&&(t=e.api,e=e.visible);var n=l.settings.filter(function(t){return!!(!e||e&&s(t.nTable).is(":visible"))}).map(function(e){return e.nTable});return t?new i(n):n},l.camelToHungarian=I,o("$()",function(e,t){var n=this.rows(t).nodes(),r=s(n);return s([].concat(r.filter(e).toArray(),r.find(e).toArray()))}),s.each(["on","one","off"],function(e,t){o(t+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=e[0].split(/\s/).map(function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var n=s(this.tables().nodes());return n[t].apply(n,e),this})}),o("clear()",function(){return this.iterator("table",function(e){oe(e)})}),o("error()",function(e){return this.iterator("table",function(t){Ze(t,0,e)})}),o("settings()",function(){return new i(this.context,this.context)}),o("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),o("data()",function(){return this.iterator("table",function(e){return w(e.aoData,"_aData")}).flatten()}),o("trigger()",function(e,t,n){return this.iterator("table",function(r){return rt(r,null,e,t,n)}).flatten()}),o("ready()",function(e){var t=this.context;return e?this.tables().every(function(){var t=this;this.context[0]._bInitComplete?e.call(t):this.on("init.dt.DT",function(){e.call(t)})}):t.length?t[0]._bInitComplete||!1:null}),o("destroy()",function(e){return e=e||!1,this.iterator("table",function(t){var n=t.oClasses,r=t.nTable,o=t.nTBody,a=t.nTHead,u=t.nTFoot,c=s(r),f=s(o),d=s(t.nTableWrapper),h=t.aoData.map(function(e){return e?e.nTr:null}),p=n.order;t.bDestroying=!0,rt(t,"aoDestroyCallback","destroy",[t],!0),e||new i(t).columns().visible(!0),t.resizeObserver&&t.resizeObserver.disconnect(),d.off(".DT").find(":not(tbody *)").off(".DT"),s(window).off(".DT-"+t.sInstance),r!=a.parentNode&&(c.children("thead").detach(),c.append(a)),u&&r!=u.parentNode&&(c.children("tfoot").detach(),c.append(u)),Ot(a,"header"),Ot(u,"footer"),t.colgroup.remove(),t.aaSorting=[],t.aaSortingFixed=[],Xe(t),s(c).find("th, td").removeClass(s.map(l.ext.type.className,function(e){return e}).join(" ")),s("th, td",a).removeClass(p.none+" "+p.canAsc+" "+p.canDesc+" "+p.isAsc+" "+p.isDesc).css("width","").removeAttr("aria-sort"),f.children().detach(),f.append(h);var g=t.nTableWrapper.parentNode,v=t.nTableWrapper.nextSibling,m=e?"remove":"detach";c[m](),d[m](),!e&&g&&(g.insertBefore(r,v),c.css("width",t.sDestroyWidth).removeClass(n.table));var y=l.settings.indexOf(t);-1!==y&&l.settings.splice(y,1)})}),s.each(["column","row","cell"],function(e,t){o(t+"s().every()",function(e){var n,r=this.selector.opts,i=this,o=0;return this.iterator("every",function(a,s,l){n=i[t](s,r),"cell"===t?e.call(n,n[0][0].row,n[0][0].column,l,o):e.call(n,s,l,o),o++})})}),o("i18n()",function(e,t,n){var r=this.context[0],i=ne(e)(r.oLanguage);return void 0===i&&(i=t),s.isPlainObject(i)&&(i=void 0!==n&&void 0!==i[n]?i[n]:!1===n?i:i._),"string"==typeof i?i.replace("%d",n):i}),l.version="2.3.5",l.settings=[],l.models={},l.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1},l.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null},l.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,wideStrings:null,searchFixed:null},l.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"«",sLast:"»",sNext:"›",sPrevious:"‹"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:s.extend({},l.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null},D(l.defaults),l.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},D(l.defaults.column),l.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==at(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==at(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!o||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null};var Rt=l.ext.pager;s.extend(Rt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:tn,numbers_length:7}),s.extend(!0,l.ext.renderer,{pagingButton:{_:function(e,t,n,r,i){var o,a=e.oClasses.paging,l=[a.button];return r&&l.push(a.active),i&&l.push(a.disabled),{display:o="ellipsis"===t?s('<span class="ellipsis"></span>').html(n)[0]:s("<button>",{class:l.join(" "),role:"link",type:"button"}).html(n),clicker:o}}},pagingContainer:{_:function(e,t){return t}}});var Mt=function(e,t){return function(n){return v(n)||"string"!=typeof n||(n=n.replace(c," "),e&&(n=S(n)),t&&(n=E(n,!1))),n}};function Pt(e,t,n,r,i){return Ft?e[t](i):jt?e[n](i):r?e[r](i):e}var jt,Ft,Bt=!1;function Ht(e,t,n){var r;if(window.luxon&&!jt&&(jt=window.luxon),window.moment&&!Ft&&(Ft=window.moment),Ft){if(!(r=Ft.utc(e,t,n,!0)).isValid())return null}else if(jt){if(!(r=t&&"string"==typeof e?jt.DateTime.fromFormat(e,t):jt.DateTime.fromISO(e)).isValid)return null;r=r.setLocale(n)}else t?(Bt||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Bt=!0):r=new Date(e);return r}function zt(e){return function(t,n,r,i){0===arguments.length?(r="en",n=null,t=null):1===arguments.length?(r="en",n=t,t=null):2===arguments.length&&(r=n,n=t,t=null);var o="datetime"+(n?"-"+n:"");return l.ext.type.order[o+"-pre"]||l.type(o,{detect:function(e){return e===o&&o},order:{pre:function(e){return e.valueOf()}},className:"dt-right"}),function(a,s){if(null==a)if("--now"===i){var l=new Date;a=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()))}else a="";if("type"===s)return o;if(""===a)return"sort"!==s?"":Ht("0000-01-01 00:00:00",null,r);if(null!==n&&t===n&&"sort"!==s&&"type"!==s&&!(a instanceof Date))return a;var u=Ht(a,t,r);if(null===u)return a;if("sort"===s)return u;var c=null===n?Pt(u,"toDate","toJSDate","")[e](navigator.language,{timeZone:"UTC"}):Pt(u,"format","toFormat","toISOString",n);return"display"===s?C(c):c}}}var Ut=",",Wt=".";if(void 0!==window.Intl)try{for(var qt=(new Intl.NumberFormat).formatToParts(100000.1),Gt=0;Gt<qt.length;Gt++)"group"===qt[Gt].type?Ut=qt[Gt].value:"decimal"===qt[Gt].type&&(Wt=qt[Gt].value)}catch(e){}l.datetime=function(e,t){var n="datetime-"+e;t||(t="en"),l.ext.type.order[n]||l.type(n,{detect:function(r){var i=Ht(r,e,t);return!(""!==r&&!i)&&n},order:{pre:function(n){return Ht(n,e,t)||0}},className:"dt-right"})},l.render={date:zt("toLocaleDateString"),datetime:zt("toLocaleString"),time:zt("toLocaleTimeString"),number:function(e,t,n,r,i){return null==e&&(e=Ut),null==t&&(t=Wt),{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;if(""===o||null===o)return o;var a=o<0?"-":"",s=parseFloat(o),l=Math.abs(s);if(l>=1e11||l<1e-4&&0!==l){var u=s.toExponential(n).split(/e\+?/);return u[0]+" x 10<sup>"+u[1]+"</sup>"}if(isNaN(s))return C(o);s=s.toFixed(n),o=Math.abs(s);var c=parseInt(o,10),f=n?t+(o-c).toFixed(n).substring(2):"";return 0===c&&0===parseFloat(f)&&(a=""),a+(r||"")+c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+f+(i||"")}}},text:function(){return{display:C,filter:C}}};var $t=l.ext.type;l.type=function(e,t,n){if(!t)return{className:$t.className[e],detect:$t.detect.find(function(t){return t._name===e}),order:{pre:$t.order[e+"-pre"],asc:$t.order[e+"-asc"],desc:$t.order[e+"-desc"]},render:$t.render[e],search:$t.search[e]};var r=function(t,n){$t[t][e]=n},i=function(t){Object.defineProperty(t,"_name",{value:e});var n=$t.detect.findIndex(function(t){return t._name===e});-1===n?$t.detect.unshift(t):$t.detect.splice(n,1,t)},o=function(t){$t.order[e+"-pre"]=t.pre,$t.order[e+"-asc"]=t.asc,$t.order[e+"-desc"]=t.desc};void 0===n&&(n=t,t=null),"className"===t?r("className",n):"detect"===t?i(n):"order"===t?o(n):"render"===t?r("render",n):"search"===t?r("search",n):t||(n.className&&r("className",n.className),void 0!==n.detect&&i(n.detect),n.order&&o(n.order),void 0!==n.render&&r("render",n.render),void 0!==n.search&&r("search",n.search))},l.types=function(){return $t.detect.map(function(e){return e._name})};var Vt=function(e,t){return e=null!=e?e.toString().toLowerCase():"",t=null!=t?t.toString().toLowerCase():"",e.localeCompare(t,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},Xt=function(e,t){return e=S(e),t=S(t),Vt(e,t)};l.type("string",{detect:function(){return"string"},order:{pre:function(e){return v(e)&&"boolean"!=typeof e?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""}},search:Mt(!1,!0)}),l.type("string-utf8",{detect:{allOf:function(e){return!0},oneOf:function(e){return!v(e)&&navigator.languages&&"string"==typeof e&&e.match(/[^\x00-\x7F]/)}},order:{asc:Vt,desc:function(e,t){return-1*Vt(e,t)}},search:Mt(!1,!0)}),l.type("html",{detect:{allOf:function(e){return v(e)||"string"==typeof e&&-1!==e.indexOf("<")},oneOf:function(e){return!v(e)&&"string"==typeof e&&-1!==e.indexOf("<")}},order:{pre:function(e){return v(e)?"":e.replace?S(e).trim().toLowerCase():e+""}},search:Mt(!0,!0)}),l.type("html-utf8",{detect:{allOf:function(e){return v(e)||"string"==typeof e&&-1!==e.indexOf("<")},oneOf:function(e){return navigator.languages&&!v(e)&&"string"==typeof e&&-1!==e.indexOf("<")&&"string"==typeof e&&e.match(/[^\x00-\x7F]/)}},order:{asc:Xt,desc:function(e,t){return-1*Xt(e,t)}},search:Mt(!0,!0)}),l.type("date",{className:"dt-type-date",detect:{allOf:function(e){if(e&&!(e instanceof Date)&&!h.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||v(e)},oneOf:function(e){return e instanceof Date||"string"==typeof e&&h.test(e)}},order:{pre:function(e){var t=Date.parse(e);return isNaN(t)?-1/0:t}}}),l.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return _(e,n,!0,!1)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return _(e,n,!0,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return Qt(e,n,f,g)}},search:Mt(!0,!0)}),l.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return _(e,n,!1,!0)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return _(e,n,!1,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return Qt(e,n,f)}},search:Mt(!0,!0)}),l.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return b(e,n,!0,!0)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return b(e,n,!0,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return Qt(e,n,g)}}}),l.type("num",{className:"dt-type-numeric",detect:{allOf:function(e,t){var n=t.oLanguage.sDecimal;return b(e,n,!1,!0)},oneOf:function(e,t){var n=t.oLanguage.sDecimal;return b(e,n,!1,!1)}},order:{pre:function(e,t){var n=t.oLanguage.sDecimal;return Qt(e,n)}}});var Qt=function(e,t,n,r){if(0!==e&&(!e||"-"===e))return-1/0;var i=typeof e;return"number"===i||"bigint"===i?e:(t&&(e=y(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e)};function Kt(e,t,n){n&&(e[t]=n)}s.extend(!0,l.ext.renderer,{footer:{_:function(e,t,n){t.addClass(n.tfoot.cell)}},header:{_:function(e,t,n){t.addClass(n.thead.cell),e.oFeatures.bSort||t.addClass(n.order.none);var r=e.titleRow,i=t.closest("thead").find("tr"),o=t.parent().index();"disable"===t.attr("data-dt-order")||"disable"===t.parent().attr("data-dt-order")||!0===r&&0!==o||!1===r&&o!==i.length-1||"number"==typeof r&&o!==r||s(e.nTable).on("order.dt.DT column-visibility.dt.DT",function(r,i,o){if(e===i){var a=i.sortDetails;if(a){var s=w(a,"col");if("column-visibility"!==r.type||s.includes(o)){var l,u=n.order,c=i.api.columns(t),f=e.aoColumns[c.flatten()[0]],d=c.orderable().includes(!0),h="",p=c.indexes(),g=c.orderable(!0).flatten(),v=e.iTabIndex,m=i.orderHandler&&d;t.removeClass(u.isAsc+" "+u.isDesc).toggleClass(u.none,!d).toggleClass(u.canAsc,m&&g.includes("asc")).toggleClass(u.canDesc,m&&g.includes("desc"));var y=!0;for(l=0;l<p.length;l++)s.includes(p[l])||(y=!1);if(y){var b=c.order();t.addClass(b.includes("asc")?u.isAsc:""+b.includes("desc")?u.isDesc:"")}var _=-1;for(l=0;l<s.length;l++)if(e.aoColumns[s[l]].bVisible){_=s[l];break}if(p[0]==_){var x=a[0],T=f.asSorting;t.attr("aria-sort","asc"===x.dir?"ascending":"descending"),h=T[x.index+1]?"Reverse":"Remove"}else t.removeAttr("aria-sort");if(d){var A=t.find(".dt-column-order");A.attr("role","button").attr("aria-label",d?f.ariaTitle+i.api.i18n("oAria.orderable"+h):f.ariaTitle),-1!==v&&A.attr("tabindex",v)}}}}})}},layout:{_:function(e,t,n){var r=e.oClasses.layout,i=s("<div/>").attr("id",n.id||null).addClass(n.className||r.row).appendTo(t);l.ext.renderer.layout._forLayoutRow(n,function(e,t){if("id"!==e&&"className"!==e){var n="";t.table&&(i.addClass(r.tableRow),n+=r.tableCell+" "),n+="start"===e?r.start:"end"===e?r.end:r.full,s("<div/>").attr({id:t.id||null,class:t.className?t.className:r.cell+" "+n}).append(t.contents).appendTo(i)}})},_forLayoutRow:function(e,t){var n=function(e){switch(e){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}};Object.keys(e).sort(function(e,t){return n(e)-n(t)}).forEach(function(n){t(n,e[n])})}}}),l.feature={},l.feature.register=function(e,t,n){l.ext.features[e]=t,n&&r.feature.push({cFeature:n,fnInit:t})},l.feature.register("div",function(e,t){var n=s("<div>")[0];return t&&(Kt(n,"className",t.className),Kt(n,"id",t.id),Kt(n,"innerHTML",t.html),Kt(n,"textContent",t.text)),n}),l.feature.register("info",function(e,t){if(!e.oFeatures.bInfo)return null;var n=e.oLanguage,r=e.sTableId,i=s("<div/>",{class:e.oClasses.info.container});return t=s.extend({callback:n.fnInfoCallback,empty:n.sInfoEmpty,postfix:n.sInfoPostFix,search:n.sInfoFiltered,text:n.sInfo},t),e.aoDrawCallback.push(function(e){!function(e,t,n){var r=e._iDisplayStart+1,i=e.fnDisplayEnd(),o=e.fnRecordsTotal(),a=e.fnRecordsDisplay(),s=a?t.text:t.empty;a!==o&&(s+=" "+t.search);s+=t.postfix,s=st(e,s),t.callback&&(s=t.callback.call(e.oInstance,e,r,i,o,a,s));n.html(s),rt(e,null,"info",[e,n[0],s])}(e,t,i)}),e._infoEl||(i.attr({"aria-live":"polite",id:r+"_info",role:"status"}),s(e.nTable).attr("aria-describedby",r+"_info"),e._infoEl=i),i},"i");var Yt=0;function Zt(e){var t=[];return e.numbers&&t.push("numbers"),e.previousNext&&(t.unshift("previous"),t.push("next")),e.firstLast&&(t.unshift("first"),t.push("last")),t}function Jt(e,t,n){if(e._bInitComplete){var r=n.type?l.ext.pager[n.type]:Zt,i=e.oLanguage.oAria.paginate||{},o=e._iDisplayStart,a=e._iDisplayLength,u=e.fnRecordsDisplay(),c=-1===a,f=c?0:Math.ceil(o/a),d=c?1:Math.ceil(u/a),h=[],p=[],g=r(n).map(function(e){return"numbers"===e?tn(f,d,n.buttons,n.boundaryNumbers):e});h=h.concat.apply(h,g);for(var v=0;v<h.length;v++){var m=h[v],y=en(e,m,f,d),b=ot(e,"pagingButton")(e,m,y.display,y.active,y.disabled),_="string"==typeof m?i[m]:i.number?i.number+(m+1):null;s(b.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":y.disabled?"true":null,"aria-current":y.active?"page":null,"aria-label":_,"data-dt-idx":m,tabIndex:y.disabled?-1:e.iTabIndex&&"span"!==b.clicker[0].nodeName.toLowerCase()?e.iTabIndex:null}),"number"!=typeof m&&s(b.clicker).addClass(m),tt(b.clicker,{action:m},function(t){t.preventDefault(),Oe(e,t.data.action,!0)}),p.push(b.display)}var w=ot(e,"pagingContainer")(e,p),x=t.find(document.activeElement).data("dt-idx");if(t.empty().append(w),void 0!==x&&t.find("[data-dt-idx="+x+"]").trigger("focus"),p.length){var T=s(p[0]).outerHeight();n.buttons>1&&T>0&&s(t).height()>=2*T-10&&Jt(e,t,s.extend({},n,{buttons:n.buttons-2}))}}}function en(e,t,n,r){var i=e.oLanguage.oPaginate,o={display:"",active:!1,disabled:!1};switch(t){case"ellipsis":o.display="&#x2026;";break;case"first":o.display=i.sFirst,0===n&&(o.disabled=!0);break;case"previous":o.display=i.sPrevious,0===n&&(o.disabled=!0);break;case"next":o.display=i.sNext,0!==r&&n!==r-1||(o.disabled=!0);break;case"last":o.display=i.sLast,0!==r&&n!==r-1||(o.disabled=!0);break;default:"number"==typeof t&&(o.display=e.fnFormatNumber(t+1),n===t&&(o.active=!0))}return o}function tn(e,t,n,r){var i=[],o=Math.floor(n/2),a=r?2:1,s=r?1:0;return t<=n?i=T(0,t):1===n?i=[e]:3===n?e<=1?i=[0,1,"ellipsis"]:e>=t-2?(i=T(t-2,t)).unshift("ellipsis"):i=["ellipsis",e,"ellipsis"]:e<=o?((i=T(0,n-a)).push("ellipsis"),r&&i.push(t-1)):e>=t-1-o?((i=T(t-(n-a),t)).unshift("ellipsis"),r&&i.unshift(0)):((i=T(e-o+a,e+o-s)).push("ellipsis"),i.unshift("ellipsis"),r&&(i.push(t-1),i.unshift(0))),i}l.feature.register("search",function(e,t){if(!e.oFeatures.bFilter)return null;var n=e.oClasses.search,r=e.sTableId,i=e.oLanguage,o=e.oPreviousSearch,a='<input type="search" class="'+n.input+'"/>';-1===(t=s.extend({placeholder:i.sSearchPlaceholder,processing:!1,text:i.sSearch},t)).text.indexOf("_INPUT_")&&(t.text+="_INPUT_"),t.text=st(e,t.text);var u=t.text.match(/_INPUT_$/),c=t.text.match(/^_INPUT_/),f=t.text.replace(/_INPUT_/,""),d="<label>"+t.text+"</label>";c?d="_INPUT_<label>"+f+"</label>":u&&(d="<label>"+f+"</label>_INPUT_");var h=s("<div>").addClass(n.container).append(d.replace(/_INPUT_/,a));h.find("label").attr("for","dt-search-"+Yt),h.find("input").attr("id","dt-search-"+Yt),Yt++;var p=function(n){var r=this.value;o.return&&"Enter"!==n.key||r!=o.search&&Me(e,t.processing,function(){o.search=r,Se(e,o),e._iDisplayStart=0,pe(e)})},g=null!==e.searchDelay?e.searchDelay:0,v=s("input",h).val(o.search).attr("placeholder",t.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?l.util.debounce(p,g):p).on("mouseup.DT",function(e){setTimeout(function(){p.call(v[0],e)},10)}).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",r);return s(e.nTable).on("search.dt.DT",function(t,n){e===n&&v[0]!==document.activeElement&&v.val("function"!=typeof o.search?o.search:"")}),h},"f"),l.feature.register("paging",function(e,t){if(!e.oFeatures.bPaginate)return null;t=s.extend({buttons:l.ext.pager.numbers_length,type:e.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},t);var n=s("<div/>").addClass(e.oClasses.paging.container+(t.type?" paging_"+t.type:"")).append(s("<nav>").attr("aria-label","pagination").addClass(e.oClasses.paging.nav)),r=function(){Jt(e,n.children(),t)};return e.aoDrawCallback.push(r),s(e.nTable).on("column-sizing.dt.DT",r),n},"p");var nn=0;l.feature.register("pageLength",function(e,t){var n=e.oFeatures;if(!n.bPaginate||!n.bLengthChange)return null;t=s.extend({menu:e.aLengthMenu,text:e.oLanguage.sLengthMenu},t);var r,i=e.oClasses.length,o=e.sTableId,a=t.menu,l=[],u=[];if(Array.isArray(a[0]))l=a[0],u=a[1];else for(r=0;r<a.length;r++)s.isPlainObject(a[r])?(l.push(a[r].value),u.push(a[r].label)):(l.push(a[r]),u.push(a[r]));var c=t.text.match(/_MENU_$/),f=t.text.match(/^_MENU_/),d=t.text.replace(/_MENU_/,""),h="<label>"+t.text+"</label>";f?h="_MENU_<label>"+d+"</label>":c&&(h="<label>"+d+"</label>_MENU_");var p="tmp-"+ +new Date,g=s("<div/>").addClass(i.container).append(h.replace("_MENU_",'<span id="'+p+'"></span>')),v=[];Array.prototype.slice.call(g.find("label")[0].childNodes).forEach(function(e){e.nodeType===Node.TEXT_NODE&&v.push({el:e,text:e.textContent})});var m=function(t){v.forEach(function(n){n.el.textContent=st(e,n.text,t)})},y=s("<select/>",{"aria-controls":o,class:i.select});for(r=0;r<l.length;r++){var b=e.api.i18n("lengthLabels."+l[r],null);null===b&&(b="number"==typeof u[r]?e.fnFormatNumber(u[r]):u[r]),y[0][r]=new Option(b,l[r])}return g.find("label").attr("for","dt-length-"+nn),y.attr("id","dt-length-"+nn),nn++,g.find("#"+p).replaceWith(y),s("select",g).val(e._iDisplayLength).on("change.DT",function(){Ie(e,s(this).val()),pe(e)}),s(e.nTable).on("length.dt.DT",function(t,n,r){e===n&&(s("select",g).val(r),m(r))}),m(e._iDisplayLength),g},"l"),s.fn.dataTable=l,l.$=s,s.fn.dataTableSettings=l.settings,s.fn.dataTableExt=l.ext,s.fn.DataTable=function(e){return s(this).dataTable(e).api()},s.each(l,function(e,t){s.fn.DataTable[e]=t});const rn=l},5757:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(){return[]}},5788:(e,t,n)=>{e.exports=[n(5355),n(8199),n(7837),n(732),n(1850),n(8883)]},5826:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});const r=function(){this.__data__=[],this.size=0};var i=n(7348);const o=function(e,t){for(var n=e.length;n--;)if((0,i.A)(e[n][0],t))return n;return-1};var a=Array.prototype.splice;const s=function(e){var t=this.__data__,n=o(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};const l=function(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]};const u=function(e){return o(this.__data__,e)>-1};const c=function(e,t){var n=this.__data__,r=o(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=r,f.prototype.delete=s,f.prototype.get=l,f.prototype.has=u,f.prototype.set=c;const d=f},5955:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var r=n(3779),i=n(1408);const o=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],f=e[c],d=u[1];if(l&&u[2]){if(void 0===f&&!(c in e))return!1}else{var h=new r.A;if(o)var p=o(f,d,c,e,t,h);if(!(void 0===p?(0,i.A)(d,f,3,o,h):p))return!1}}return!0};var a=n(6809);const s=function(e){return e==e&&!(0,a.A)(e)};var l=n(6826);const u=function(e){for(var t=(0,l.A)(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,s(i)]}return t};const c=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const f=function(e){var t=u(e);return 1==t.length&&t[0][2]?c(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}};var d=n(6074);const h=function(e,t,n){var r=null==e?void 0:(0,d.A)(e,t);return void 0===r?n:r};var p=n(6928),g=n(9758),v=n(761);const m=function(e,t){return(0,g.A)(e)&&s(t)?c((0,v.A)(e),t):function(n){var r=h(n,e);return void 0===r&&r===t?(0,p.A)(n,e):(0,i.A)(t,r,3)}};var y=n(1100),b=n(8285);const _=function(e){return function(t){return null==t?void 0:t[e]}};const w=function(e){return function(t){return(0,d.A)(t,e)}};const x=function(e){return(0,g.A)(e)?_((0,v.A)(e)):w(e)};const T=function(e){return"function"==typeof e?e:null==e?y.A:"object"==typeof e?(0,b.A)(e)?m(e[0],e[1]):f(e):x(e)}},6037:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7476),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i&&r.A.process;const s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}()},6074:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8563),i=n(761);const o=function(e,t){for(var n=0,o=(t=(0,r.A)(t,e)).length;null!=e&&n<o;)e=e[(0,i.A)(t[n++])];return n&&n==o?e:void 0}},6095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="table",r=[],i="f0ce",o="M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z";t.definition={prefix:"fas",iconName:n,icon:[512,512,r,i,o]},t.faTable=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=r,t.unicode=i,t.svgPathData=o},6118:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8377);const i=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===o?r.A.Buffer:void 0;const l=(s?s.isBuffer:void 0)||i},6422:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},6425:(e,t,n)=>{"use strict";n.d(t,{A:()=>ee});var r=n(3779);const i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var o=n(7903),a=n(6531),s=n(6826);const l=function(e,t){return e&&(0,a.A)(t,(0,s.A)(t),e)};var u=n(6962);const c=function(e,t){return e&&(0,a.A)(t,(0,u.A)(t),e)};var f=n(3382),d=n(1779),h=n(4508);const p=function(e,t){return(0,a.A)(e,(0,h.A)(e),t)};var g=n(2020),v=n(7827),m=n(5757);const y=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,g.A)(t,(0,h.A)(e)),e=(0,v.A)(e);return t}:m.A;const b=function(e,t){return(0,a.A)(e,y(e),t)};var _=n(6886),w=n(9091);const x=function(e){return(0,w.A)(e,u.A,y)};var T=n(4889),A=Object.prototype.hasOwnProperty;const S=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&A.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var C=n(1273);const E=function(e,t){var n=t?(0,C.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var L=/\w*$/;const k=function(e){var t=new e.constructor(e.source,L.exec(e));return t.lastIndex=e.lastIndex,t};var N=n(7181),D=N.A?N.A.prototype:void 0,I=D?D.valueOf:void 0;const O=function(e){return I?Object(I.call(e)):{}};var R=n(9741);const M=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,C.A)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return E(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,R.A)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return k(e);case"[object Symbol]":return O(e)}};var P=n(9557),j=n(8285),F=n(6118),B=n(8214);const H=function(e){return(0,B.A)(e)&&"[object Map]"==(0,T.A)(e)};var z=n(9161),U=n(6037),W=U.A&&U.A.isMap;const q=W?(0,z.A)(W):H;var G=n(6809);const $=function(e){return(0,B.A)(e)&&"[object Set]"==(0,T.A)(e)};var V=U.A&&U.A.isSet;const X=V?(0,z.A)(V):$;var Q="[object Arguments]",K="[object Function]",Y="[object Object]",Z={};Z[Q]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object DataView]"]=Z["[object Boolean]"]=Z["[object Date]"]=Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Map]"]=Z["[object Number]"]=Z[Y]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object Symbol]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Error]"]=Z[K]=Z["[object WeakMap]"]=!1;const J=function e(t,n,a,h,g,v){var m,y=1&n,w=2&n,A=4&n;if(a&&(m=g?a(t,h,g,v):a(t)),void 0!==m)return m;if(!(0,G.A)(t))return t;var C=(0,j.A)(t);if(C){if(m=S(t),!y)return(0,d.A)(t,m)}else{var E=(0,T.A)(t),L=E==K||"[object GeneratorFunction]"==E;if((0,F.A)(t))return(0,f.A)(t,y);if(E==Y||E==Q||L&&!g){if(m=w||L?{}:(0,P.A)(t),!y)return w?b(t,c(m,t)):p(t,l(m,t))}else{if(!Z[E])return g?t:{};m=M(t,E,y)}}v||(v=new r.A);var k=v.get(t);if(k)return k;v.set(t,m),X(t)?t.forEach(function(r){m.add(e(r,n,a,r,t,v))}):q(t)&&t.forEach(function(r,i){m.set(i,e(r,n,a,i,t,v))});var N=A?w?x:_.A:w?u.A:s.A,D=C?void 0:N(t);return i(D||t,function(r,i){D&&(r=t[i=r]),(0,o.A)(m,i,e(r,n,a,i,t,v))}),m};const ee=function(e){return J(e,5)}},6531:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7903),i=n(8292);const o=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?(0,i.A)(n,u,c):(0,r.A)(n,u,c)}return n}},6691:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const r=(0,n(4636).A)({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var i=n(2965),o=/[&<>"']/g,a=RegExp(o.source);const s=function(e){return(e=(0,i.A)(e))&&a.test(e)?e.replace(o,r):e}},6787:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1671),i=n(8377);const o=(0,r.A)(i.A,"Map")},6809:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6826:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(4479),i=n(3001),o=n(7242);const a=function(e){return(0,o.A)(e)?(0,r.A)(e):(0,i.A)(e)}},6886:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9091),i=n(4508),o=n(6826);const a=function(e){return(0,r.A)(e,o.A,i.A)}},6918:e=>{function t(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}e.exports=t=function(e,n,r,i){function o(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):e[n]=r:(o("next",0),o("throw",1),o("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r,i,o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},6928:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});const r=function(e,t){return null!=e&&t in Object(e)};var i=n(8563),o=n(2078),a=n(8285),s=n(3869),l=n(7554),u=n(761);const c=function(e,t,n){for(var r=-1,c=(t=(0,i.A)(t,e)).length,f=!1;++r<c;){var d=(0,u.A)(t[r]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++r!=c?f:!!(c=null==e?0:e.length)&&(0,l.A)(c)&&(0,s.A)(d,c)&&((0,a.A)(e)||(0,o.A)(e))};const f=function(e,t){return null!=e&&c(e,t,r)}},6962:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(4479),i=n(6809),o=n(4603);const a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var s=Object.prototype.hasOwnProperty;const l=function(e){if(!(0,i.A)(e))return a(e);var t=(0,o.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&n.push(r);return n};var u=n(7242);const c=function(e){return(0,u.A)(e)?(0,r.A)(e,!0):l(e)}},6988:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7348),i=n(7242),o=n(3869),a=n(6809);const s=function(e,t,n){if(!(0,a.A)(n))return!1;var s=typeof t;return!!("number"==s?(0,i.A)(n)&&(0,o.A)(t,n.length):"string"==s&&t in n)&&(0,r.A)(n[t],e)}},7167:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1671);const i=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},7181:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8377).A.Symbol},7204:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=n(3779),i=n(8292),o=n(7348);const a=function(e,t,n){(void 0!==n&&!(0,o.A)(e[t],n)||void 0===n&&!(t in e))&&(0,i.A)(e,t,n)};var s=n(2984),l=n(3382),u=n(9741),c=n(1779),f=n(9557),d=n(2078),h=n(8285),p=n(7242),g=n(8214);const v=function(e){return(0,g.A)(e)&&(0,p.A)(e)};var m=n(6118),y=n(9790),b=n(6809),_=n(2977),w=n(7827),x=Function.prototype,T=Object.prototype,A=x.toString,S=T.hasOwnProperty,C=A.call(Object);const E=function(e){if(!(0,g.A)(e)||"[object Object]"!=(0,_.A)(e))return!1;var t=(0,w.A)(e);if(null===t)return!0;var n=S.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&A.call(n)==C};var L=n(4249);const k=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var N=n(6531),D=n(6962);const I=function(e){return(0,N.A)(e,(0,D.A)(e))};const O=function(e,t,n,r,i,o,s){var p=k(e,n),g=k(t,n),_=s.get(g);if(_)a(e,n,_);else{var w=o?o(p,g,n+"",e,t,s):void 0,x=void 0===w;if(x){var T=(0,h.A)(g),A=!T&&(0,m.A)(g),S=!T&&!A&&(0,L.A)(g);w=g,T||A||S?(0,h.A)(p)?w=p:v(p)?w=(0,c.A)(p):A?(x=!1,w=(0,l.A)(g,!0)):S?(x=!1,w=(0,u.A)(g,!0)):w=[]:E(g)||(0,d.A)(g)?(w=p,(0,d.A)(p)?w=I(p):(0,b.A)(p)&&!(0,y.A)(p)||(w=(0,f.A)(g))):x=!1}x&&(s.set(g,w),i(w,g,r,o,s),s.delete(g)),a(e,n,w)}};const R=function e(t,n,i,o,l){t!==n&&(0,s.A)(n,function(s,u){if(l||(l=new r.A),(0,b.A)(s))O(t,n,u,i,e,o,l);else{var c=o?o(k(t,u),s,u+"",t,n,l):void 0;void 0===c&&(c=s),a(t,u,c)}},D.A)}},7242:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9790),i=n(7554);const o=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},7348:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},7440:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7204);const i=(0,n(4043).A)(function(e,t,n){(0,r.A)(e,t,n)})},7459:(e,t,n)=>{var r=n(7589),i=r.slice,o=r.pluck,a=r.each,s=r.bind,l=r.create,u=r.isList,c=r.isFunction,f=r.isObject;e.exports={createStore:h};var d={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each(function(n,r){e.call(t,t._deserialize(n),(r||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return h.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return h(this.storage,this.plugins,e)}};function h(e,t,n){n||(n=""),e&&!u(e)&&(e=[e]),t&&!u(t)&&(t=[t]);var r=n?"__storejs_"+n+"_":"",h=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var p={_namespacePrefix:r,_namespaceRegexp:h,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var n=e.read(t)===t;return e.remove(t),n}catch(e){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){var t=i(arguments,0),r=this;var o=[function(){if(n)return a(arguments,function(e,n){t[n]=e}),n.apply(r,t)}].concat(t);return e.apply(r,o)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var n="";try{n=JSON.parse(e)}catch(t){n=e}return void 0!==n?n:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(u(e))a(e,function(e){t._addPlugin(e)});else if(!o(this.plugins,function(t){return e===t})){if(this.plugins.push(e),!c(e))throw new Error("Plugins must be function values that return objects");var n=e.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");a(n,function(n,r){if(!c(n))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(n,r)})}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;e&&(e.warn?e.warn:e.log).apply(e,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},g=l(p,d,{plugins:[]});return g.raw={},a(g,function(e,t){c(e)&&(g.raw[t]=s(g,e))}),a(e,function(e){g._addStorage(e)}),a(t,function(e){g._addPlugin(e)}),g}},7476:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},7518:(e,t,n)=>{!function(e){"use strict";e.defineMode("javascript",function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),h=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function v(e,t,n){return r=e,i=n,t}function m(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=y(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):it(e,t,1)?(g(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=_,_(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(f))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(h.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(n)){e.eatWhile(f);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return v(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",r)}return v("variable","variable",r)}}function y(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(p))return n.tokenize=m,v("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=m),v("string","string")}}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return v("comment","comment")}function _(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return v("quasi","string-2",e.current())}var w="([{}])";function x(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l=w.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(f.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var T={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function A(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function S(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function C(e,t,n,r,i){var o=e.cc;for(E.state=e,E.stream=i,E.marked=null,E.cc=o,E.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?G:W)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return E.marked?E.marked:"variable"==n&&S(e,r)?"variable-2":t}}var E={state:null,column:null,marked:null,cc:null};function L(){for(var e=arguments.length-1;e>=0;e--)E.cc.push(arguments[e])}function k(){return L.apply(null,arguments),!0}function N(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function D(e){var t=E.state;if(E.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=I(e,t.context);if(null!=r)return void(t.context=r)}else if(!N(e,t.localVars))return void(t.localVars=new M(e,t.localVars));n.globalVars&&!N(e,t.globalVars)&&(t.globalVars=new M(e,t.globalVars))}}function I(e,t){if(t){if(t.block){var n=I(e,t.prev);return n?n==t.prev?t:new R(n,t.vars,!0):null}return N(e,t.vars)?t:new R(t.prev,new M(e,t.vars),!1)}return null}function O(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function R(e,t,n){this.prev=e,this.vars=t,this.block=n}function M(e,t){this.name=e,this.next=t}var P=new M("this",new M("arguments",null));function j(){E.state.context=new R(E.state.context,E.state.localVars,!1),E.state.localVars=P}function F(){E.state.context=new R(E.state.context,E.state.localVars,!0),E.state.localVars=null}function B(){E.state.localVars=E.state.context.vars,E.state.context=E.state.context.prev}function H(e,t){var n=function(){var n=E.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new A(r,E.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=E.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function U(e){function t(n){return n==e?k():";"==e||"}"==n||")"==n||"]"==n?L():k(t)}return t}function W(e,t){return"var"==e?k(H("vardef",t),Le,U(";"),z):"keyword a"==e?k(H("form"),V,W,z):"keyword b"==e?k(H("form"),W,z):"keyword d"==e?E.stream.match(/^\s*$/,!1)?k():k(H("stat"),Q,U(";"),z):"debugger"==e?k(U(";")):"{"==e?k(H("}"),F,de,z,B):";"==e?k():"if"==e?("else"==E.state.lexical.info&&E.state.cc[E.state.cc.length-1]==z&&E.state.cc.pop()(),k(H("form"),V,W,z,Re)):"function"==e?k(Fe):"for"==e?k(H("form"),F,Me,W,B,z):"class"==e||c&&"interface"==t?(E.marked="keyword",k(H("form","class"==e?e:t),We,z)):"variable"==e?c&&"declare"==t?(E.marked="keyword",k(W)):c&&("module"==t||"enum"==t||"type"==t)&&E.stream.match(/^\s*\w/,!1)?(E.marked="keyword","enum"==t?k(tt):"type"==t?k(He,U("operator"),me,U(";")):k(H("form"),ke,U("{"),H("}"),de,z,z)):c&&"namespace"==t?(E.marked="keyword",k(H("form"),G,W,z)):c&&"abstract"==t?(E.marked="keyword",k(W)):k(H("stat"),oe):"switch"==e?k(H("form"),V,U("{"),H("}","switch"),F,de,z,z,B):"case"==e?k(G,U(":")):"default"==e?k(U(":")):"catch"==e?k(H("form"),j,q,W,z,B):"export"==e?k(H("stat"),Ve,z):"import"==e?k(H("stat"),Qe,z):"async"==e?k(W):"@"==t?k(G,W):L(H("stat"),G,U(";"),z)}function q(e){if("("==e)return k(ze,U(")"))}function G(e,t){return X(e,t,!1)}function $(e,t){return X(e,t,!0)}function V(e){return"("!=e?L():k(H(")"),Q,U(")"),z)}function X(e,t,n){if(E.state.fatArrowAt==E.stream.start){var r=n?te:ee;if("("==e)return k(j,H(")"),ce(ze,")"),z,U("=>"),r,B);if("variable"==e)return L(j,ke,U("=>"),r,B)}var i=n?Y:K;return T.hasOwnProperty(e)?k(i):"function"==e?k(Fe,i):"class"==e||c&&"interface"==t?(E.marked="keyword",k(H("form"),Ue,z)):"keyword c"==e||"async"==e?k(n?$:G):"("==e?k(H(")"),Q,U(")"),z,i):"operator"==e||"spread"==e?k(n?$:G):"["==e?k(H("]"),et,z,i):"{"==e?fe(se,"}",null,i):"quasi"==e?L(Z,i):"new"==e?k(ne(n)):k()}function Q(e){return e.match(/[;\}\)\],]/)?L():L(G)}function K(e,t){return","==e?k(Q):Y(e,t,!1)}function Y(e,t,n){var r=0==n?K:Y,i=0==n?G:$;return"=>"==e?k(j,n?te:ee,B):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?k(r):c&&"<"==t&&E.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(H(">"),ce(me,">"),z,r):"?"==t?k(G,U(":"),i):k(i):"quasi"==e?L(Z,r):";"!=e?"("==e?fe($,")","call",r):"."==e?k(ae,r):"["==e?k(H("]"),Q,U("]"),z,r):c&&"as"==t?(E.marked="keyword",k(me,r)):"regexp"==e?(E.state.lastType=E.marked="operator",E.stream.backUp(E.stream.pos-E.stream.start-1),k(i)):void 0:void 0}function Z(e,t){return"quasi"!=e?L():"${"!=t.slice(t.length-2)?k(Z):k(Q,J)}function J(e){if("}"==e)return E.marked="string-2",E.state.tokenize=_,k(Z)}function ee(e){return x(E.stream,E.state),L("{"==e?W:G)}function te(e){return x(E.stream,E.state),L("{"==e?W:$)}function ne(e){return function(t){return"."==t?k(e?ie:re):"variable"==t&&c?k(Se,e?Y:K):L(e?$:G)}}function re(e,t){if("target"==t)return E.marked="keyword",k(K)}function ie(e,t){if("target"==t)return E.marked="keyword",k(Y)}function oe(e){return":"==e?k(z,W):L(K,U(";"),z)}function ae(e){if("variable"==e)return E.marked="property",k()}function se(e,t){return"async"==e?(E.marked="property",k(se)):"variable"==e||"keyword"==E.style?(E.marked="property","get"==t||"set"==t?k(le):(c&&E.state.fatArrowAt==E.stream.start&&(n=E.stream.match(/^\s*:\s*/,!1))&&(E.state.fatArrowAt=E.stream.pos+n[0].length),k(ue))):"number"==e||"string"==e?(E.marked=s?"property":E.style+" property",k(ue)):"jsonld-keyword"==e?k(ue):c&&O(t)?(E.marked="keyword",k(se)):"["==e?k(G,he,U("]"),ue):"spread"==e?k($,ue):"*"==t?(E.marked="keyword",k(se)):":"==e?L(ue):void 0;var n}function le(e){return"variable"!=e?L(ue):(E.marked="property",k(Fe))}function ue(e){return":"==e?k($):"("==e?L(Fe):void 0}function ce(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=E.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),k(function(n,r){return n==t||r==t?L():L(e)},r)}return i==t||o==t?k():n&&n.indexOf(";")>-1?L(e):k(U(t))}return function(n,i){return n==t||i==t?k():L(e,r)}}function fe(e,t,n){for(var r=3;r<arguments.length;r++)E.cc.push(arguments[r]);return k(H(t,n),ce(e,t),z)}function de(e){return"}"==e?k():L(W,de)}function he(e,t){if(c){if(":"==e)return k(me);if("?"==t)return k(he)}}function pe(e,t){if(c&&(":"==e||"in"==t))return k(me)}function ge(e){if(c&&":"==e)return E.stream.match(/^\s*\w+\s+is\b/,!1)?k(G,ve,me):k(me)}function ve(e,t){if("is"==t)return E.marked="keyword",k()}function me(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(E.marked="keyword",k("typeof"==t?$:me)):"variable"==e||"void"==t?(E.marked="type",k(Ae)):"|"==t||"&"==t?k(me):"string"==e||"number"==e||"atom"==e?k(Ae):"["==e?k(H("]"),ce(me,"]",","),z,Ae):"{"==e?k(H("}"),be,z,Ae):"("==e?k(ce(Te,")"),ye,Ae):"<"==e?k(ce(me,">"),me):"quasi"==e?L(we,Ae):void 0}function ye(e){if("=>"==e)return k(me)}function be(e){return e.match(/[\}\)\]]/)?k():","==e||";"==e?k(be):L(_e,be)}function _e(e,t){return"variable"==e||"keyword"==E.style?(E.marked="property",k(_e)):"?"==t||"number"==e||"string"==e?k(_e):":"==e?k(me):"["==e?k(U("variable"),pe,U("]"),_e):"("==e?L(Be,_e):e.match(/[;\}\)\],]/)?void 0:k()}function we(e,t){return"quasi"!=e?L():"${"!=t.slice(t.length-2)?k(we):k(me,xe)}function xe(e){if("}"==e)return E.marked="string-2",E.state.tokenize=_,k(we)}function Te(e,t){return"variable"==e&&E.stream.match(/^\s*[?:]/,!1)||"?"==t?k(Te):":"==e?k(me):"spread"==e?k(Te):L(me)}function Ae(e,t){return"<"==t?k(H(">"),ce(me,">"),z,Ae):"|"==t||"."==e||"&"==t?k(me):"["==e?k(me,U("]"),Ae):"extends"==t||"implements"==t?(E.marked="keyword",k(me)):"?"==t?k(me,U(":"),me):void 0}function Se(e,t){if("<"==t)return k(H(">"),ce(me,">"),z,Ae)}function Ce(){return L(me,Ee)}function Ee(e,t){if("="==t)return k(me)}function Le(e,t){return"enum"==t?(E.marked="keyword",k(tt)):L(ke,he,Ie,Oe)}function ke(e,t){return c&&O(t)?(E.marked="keyword",k(ke)):"variable"==e?(D(t),k()):"spread"==e?k(ke):"["==e?fe(De,"]"):"{"==e?fe(Ne,"}"):void 0}function Ne(e,t){return"variable"!=e||E.stream.match(/^\s*:/,!1)?("variable"==e&&(E.marked="property"),"spread"==e?k(ke):"}"==e?L():"["==e?k(G,U("]"),U(":"),Ne):k(U(":"),ke,Ie)):(D(t),k(Ie))}function De(){return L(ke,Ie)}function Ie(e,t){if("="==t)return k($)}function Oe(e){if(","==e)return k(Le)}function Re(e,t){if("keyword b"==e&&"else"==t)return k(H("form","else"),W,z)}function Me(e,t){return"await"==t?k(Me):"("==e?k(H(")"),Pe,z):void 0}function Pe(e){return"var"==e?k(Le,je):"variable"==e?k(je):L(je)}function je(e,t){return")"==e?k():";"==e?k(je):"in"==t||"of"==t?(E.marked="keyword",k(G,je)):L(G,je)}function Fe(e,t){return"*"==t?(E.marked="keyword",k(Fe)):"variable"==e?(D(t),k(Fe)):"("==e?k(j,H(")"),ce(ze,")"),z,ge,W,B):c&&"<"==t?k(H(">"),ce(Ce,">"),z,Fe):void 0}function Be(e,t){return"*"==t?(E.marked="keyword",k(Be)):"variable"==e?(D(t),k(Be)):"("==e?k(j,H(")"),ce(ze,")"),z,ge,B):c&&"<"==t?k(H(">"),ce(Ce,">"),z,Be):void 0}function He(e,t){return"keyword"==e||"variable"==e?(E.marked="type",k(He)):"<"==t?k(H(">"),ce(Ce,">"),z):void 0}function ze(e,t){return"@"==t&&k(G,ze),"spread"==e?k(ze):c&&O(t)?(E.marked="keyword",k(ze)):c&&"this"==e?k(he,Ie):L(ke,he,Ie)}function Ue(e,t){return"variable"==e?We(e,t):qe(e,t)}function We(e,t){if("variable"==e)return D(t),k(qe)}function qe(e,t){return"<"==t?k(H(">"),ce(Ce,">"),z,qe):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(E.marked="keyword"),k(c?me:G,qe)):"{"==e?k(H("}"),Ge,z):void 0}function Ge(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&O(t))&&E.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(E.marked="keyword",k(Ge)):"variable"==e||"keyword"==E.style?(E.marked="property",k($e,Ge)):"number"==e||"string"==e?k($e,Ge):"["==e?k(G,he,U("]"),$e,Ge):"*"==t?(E.marked="keyword",k(Ge)):c&&"("==e?L(Be,Ge):";"==e||","==e?k(Ge):"}"==e?k():"@"==t?k(G,Ge):void 0}function $e(e,t){if("!"==t)return k($e);if("?"==t)return k($e);if(":"==e)return k(me,Ie);if("="==t)return k($);var n=E.state.lexical.prev;return L(n&&"interface"==n.info?Be:Fe)}function Ve(e,t){return"*"==t?(E.marked="keyword",k(Je,U(";"))):"default"==t?(E.marked="keyword",k(G,U(";"))):"{"==e?k(ce(Xe,"}"),Je,U(";")):L(W)}function Xe(e,t){return"as"==t?(E.marked="keyword",k(U("variable"))):"variable"==e?L($,Xe):void 0}function Qe(e){return"string"==e?k():"("==e?L(G):"."==e?L(K):L(Ke,Ye,Je)}function Ke(e,t){return"{"==e?fe(Ke,"}"):("variable"==e&&D(t),"*"==t&&(E.marked="keyword"),k(Ze))}function Ye(e){if(","==e)return k(Ke,Ye)}function Ze(e,t){if("as"==t)return E.marked="keyword",k(Ke)}function Je(e,t){if("from"==t)return E.marked="keyword",k(G)}function et(e){return"]"==e?k():L(ce($,"]"))}function tt(){return L(H("form"),ke,U("{"),H("}"),ce(nt,"}"),z,z)}function nt(){return L(ke,Ie)}function rt(e,t){return"operator"==e.lastType||","==e.lastType||h.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function it(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return j.lex=F.lex=!0,B.lex=!0,z.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new A((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new R(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),x(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",C(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b||t.tokenize==_)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==z)l=l.prev;else if(c!=Re&&c!=B)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==K||i==Y)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,d=s==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(rt(t,r)?a||o:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:it,skipExpression:function(t){C(t,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(1719))},7554:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7570:function(e){var t;t=()=>(()=>{"use strict";var e={887:e=>{e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{default:()=>c});var e=n(887),t=n.n(e);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}var l,u=(l=0,function(){return l++}),c=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(function e(n){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),a(this,"ID","id"),a(this,"PX","px"),a(this,"RESIZABLE","grip-resizable"),a(this,"FLEX","grip-flex"),a(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),a(this,"reset",function(e){return r.init(e)}),a(this,"onResize",function(){var e=r.tb;if(e.classList.remove(r.RESIZABLE),e.opt.fixed){e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf();for(var t=0,n=0;n<e.columnCnt;n++)t+=e.columns[n].w;for(var i=0;i<e.columnCnt;i++)e.columns[i].style.width=Math.round(1e3*e.columns[i].w/t)/10+"%",e.columns[i].locked=!0,e.opt.currentWidths[i]=Number(window.getComputedStyle(e.columns[i]).width.replace(/px/,"")).valueOf()}else r.applyBounds(),"flex"===e.opt.resizeMode&&e.opt.serialize&&r.serializeStore();e.classList.add(r.RESIZABLE),r.syncGrips()}),a(this,"onGripMouseDown",function(e){var t=e.target.parentNode.data,n=r.tb,i=n.grips[t.i],o=e.touches;if(i.ox=o?o[0].pageX:e.pageX,i.l=i.offsetLeft,i.x=i.l,r.createStyle(document.querySelector("head"),"*{cursor:"+n.opt.dragCursor+"!important}"),document.addEventListener("touchmove",r.onGripDrag),document.addEventListener("mousemove",r.onGripDrag),document.addEventListener("touchend",r.onGripDragOver),document.addEventListener("mouseup",r.onGripDragOver),i.classList.add(n.opt.draggingClass),r.grip=i,n.columns[t.i].locked)for(var a,s=0;s<n.columnCnt;s++)(a=n.columns[s]).locked=!1,a.w=Number(window.getComputedStyle(a).width.replace(/px/,"")).valueOf();e.preventDefault()}),a(this,"onGripDrag",function(e){var t=r.grip;if(t){var n=t.t,i=e.touches,o=(i?i[0].pageX:e.pageX)-t.ox+t.l,a=n.opt.minWidth,s=t.i,l=1.5*n.cellSpace+a+n.borderSpace,u=s===n.columnCnt-1,c=s?n.grips[s-1].offsetLeft+n.cellSpace+a:l,f=n.opt.fixed?s===n.columnCnt-1?n.tableWidth-l:n.grips[s+1].offsetLeft-n.cellSpace-a:1/0;if(o=Math.max(c,Math.min(f,o)),t.x=o,t.style.left=o+r.PX,u&&(t.w=n.columns[s].w+o-t.l),n.opt.liveDrag){u?(n.columns[s].style.width=t.w+r.PX,!n.opt.fixed&&n.opt.overflow?n.style.minWidth=n.tableWidth+o-t.l+r.PX:n.tableWidth=Number(window.getComputedStyle(n).width.replace(/px/,"")).valueOf()):r.syncCols(n,s,!1,n.opt),r.syncGrips();var d=n.opt.onDrag;d&&d(e)}e.preventDefault()}}),a(this,"onGripDragOver",function(e){var t=r.grip;document.removeEventListener("touchend",r.onGripDragOver),document.removeEventListener("mouseup",r.onGripDragOver),document.removeEventListener("touchmove",r.onGripDrag),document.removeEventListener("mousemove",r.onGripDrag);var n=document.querySelector("head").lastChild;if(n.parentNode.removeChild(n),t){if(t.classList.remove(t.t.opt.draggingClass),t.x-t.l!=0){var i=t.t,o=i.opt.onResize,a=t.i;if(a===i.columnCnt-1){var s=i.columns[a];s.style.width=t.w+r.PX,s.w=t.w}else r.syncCols(i,a,!0,i.opt);i.opt.fixed||r.applyBounds(),r.syncGrips(),o&&o(e),i.opt.serialize&&r.serializeStore()}r.grip=null}}),a(this,"init",function(e){if(e.disable)return r.destroy();var t=r.tb,n=t.getAttribute(r.ID)||r.RESIZABLE+u();if(!t.matches("table")||t.extended&&!e.partialRefresh)return null;var i=document.querySelector("head");if(r.createStyle(i," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),e.hoverCursor&&"col-resize"!==e.hoverCursor){var o=".grip-handle .grip-resizable:hover{cursor:"+e.hoverCursor+"!important}";r.createStyle(i,o)}t.setAttribute(r.ID,n);var a=t.opt;t.opt=r.extendOptions(e);var s=r.getTableHeaders(t);if(r.extendTable(s),e.remoteTable&&e.remoteTable.matches("table")){var l=r.getTableHeaders(t.opt.remoteTable);s.length===l.length?r.extendRemoteTable(t.opt.remoteTable,l,t):console.warn("column count for remote table did not match")}return a}),a(this,"applyBounds",function(){var e=r.tb,t=e.columns.map(function(e){return window.getComputedStyle(e).width});e.style.width=window.getComputedStyle(e).width,e.tableWidth=Number(e.style.width.replace(/px/,"")).valueOf(),e.classList.remove(r.FLEX),e.columns.forEach(function(n,r){n.style.width=t[r];var i=Number(t[r].replace(/px/,"")).valueOf();n.w=i,e.opt.currentWidths[r]=i}),e.classList.add(r.FLEX)}),a(this,"serializeStore",function(){var e=r.store,t=r.tb;e[t.getAttribute(r.ID)]="";for(var n=0,i=0;i<t.columns.length;i++){var o=window.getComputedStyle(t.columns[i]).width.replace(/px/,"");e[t.getAttribute(r.ID)]+=o+";",n+=Number(o).valueOf()}e[t.getAttribute(r.ID)]+=n.toString(),t.opt.fixed||(e[t.getAttribute(r.ID)]+=";"+window.getComputedStyle(t).width.replace(/px/,""))}),a(this,"syncGrips",function(){var e=r.tb;e.gripContainer.style.width=e.tableWidth+r.PX;for(var t=0;t<e.columnCnt;t++){var n=e.columns[t],i=n.getBoundingClientRect(),o=e.getBoundingClientRect();e.grips[t].style.left=i.left-o.left+n.offsetWidth+e.cellSpace/2+r.PX,e.grips[t].style.height=(e.opt.headerOnly?e.columns[0].offsetHeight:e.offsetHeight)+r.PX}}),a(this,"destroy",function(){var e=r.tb,t=e.getAttribute(r.ID);return t?(r.store[t]="",e.classList.remove(r.RESIZABLE),e.classList.remove(r.FLEX),e.remote&&(e.remote.classList.remove(r.RESIZABLE),e.remote.classList.remove(r.FLEX)),e.gripContainer&&e.gripContainer.parentNode&&e.gripContainer.parentNode.removeChild(e.gripContainer),delete e.extended,e.opt):null}),a(this,"createStyle",function(e,n){var r=t()(n).toString(),i=e.querySelectorAll("style"),o=Array.from(i).filter(function(e){return e.gripid===r});if(!o.length){var a=document.createElement("style");a.type="text/css",a.gripid=r,a.styleSheet?a.styleSheet.cssText=n:a.appendChild(document.createTextNode(n)),e.appendChild(a)}}),a(this,"extendOptions",function(t){var n=Object.assign({},e.DEFAULTS,t);switch(n.fixed=!0,n.overflow=!1,n.resizeMode){case"flex":n.fixed=!1;break;case"overflow":n.fixed=!1,n.overflow=!0}return n}),a(this,"getTableHeaders",function(e){var t="#"+e.id,n=Array.from(e.querySelectorAll(t+">thead>tr:nth-of-type(1)>th"));return(n=n.concat(Array.from(e.querySelectorAll(t+">thead>tr:nth-of-type(1)>td")))).length||(n=(n=(n=(n=Array.from(e.querySelectorAll(t+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(e.querySelectorAll(t+">tr:nth-of-type(1)>th")))).concat(Array.from(e.querySelectorAll(t+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(e.querySelectorAll(t+">tr:nth-of-type(1)>td")))),r.filterInvisible(n,!1)}),a(this,"filterInvisible",function(e,t){return e.filter(function(e){var n=t?-1:e.offsetWidth,r=t?-1:e.offsetHeight;return!(0===n&&0===r||e.style&&e.style.display&&"none"===window.getComputedStyle(e).display)})}),a(this,"extendTable",function(e){var t=r.tb;t.opt.removePadding&&t.classList.add("grip-padding"),t.classList.add(r.RESIZABLE),t.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),t.grips=[],t.columns=[],t.tableWidth=Number(window.getComputedStyle(t).width.replace(/px/,"")).valueOf(),t.gripContainer=t.previousElementSibling,t.opt.marginLeft&&(t.gripContainer.style.marginLeft=t.opt.marginLeft),t.opt.marginRight&&(t.gripContainer.style.marginRight=t.opt.marginRight),t.cellSpace=parseInt(r.legacyIE?t.cellSpacing||t.currentStyle.borderSpacing:window.getComputedStyle(t).borderSpacing.split(" ")[0].replace(/px/,""))||2,t.borderSpace=parseInt(r.legacyIE?t.border||t.currentStyle.borderLeftWidth:window.getComputedStyle(t).borderLeftWidth.replace(/px/,""))||1,t.extended=!0,r.createGrips(e)}),a(this,"extendRemoteTable",function(e,t,n){n.opt.removePadding&&e.classList.add("grip-padding"),e.classList.add(r.RESIZABLE),e.getAttribute(r.ID)||e.setAttribute(r.ID,n.getAttribute(r.ID)+"remote"),e.columns=[],t.forEach(function(i,o){var a=t[o];a.w=n.columns[o].w,a.style.width=a.w+r.PX,a.removeAttribute("width"),e.columns.push(a)}),e.tableWidth=n.tableWidth,e.cellSpace=n.cellSpace,e.borderSpace=n.borderSpace;var i=Array.from(e.querySelectorAll("col"));e.columnGrp=r.filterInvisible(i,!0),e.columnGrp.forEach(function(e,t){e.removeAttribute("width"),e.style.width=n.columnGrp[t].style.width}),n.remote=e}),a(this,"createGrips",function(e){var t=r.tb;t.columnGrp=r.filterInvisible(Array.from(t.querySelectorAll("col")),!0),t.columnGrp.forEach(function(e){e.removeAttribute("width")}),t.columnCnt=e.length;var n=!1;r.store[t.getAttribute(r.ID)]&&(r.deserializeStore(e),n=!0),e.forEach(function(i,o){var a=e[o],s=-1!==t.opt.disabledColumns.indexOf(o);r.createDiv(t.gripContainer,"grip-handle");var l=t.gripContainer.lastChild;!s&&t.opt.gripInnerHtml&&(l.innerHTML=t.opt.gripInnerHtml),r.createDiv(l,r.RESIZABLE),o===t.columnCnt-1&&(l.classList.add("grip-lastgrip"),t.opt.fixed&&(l.innerHTML="")),l.addEventListener("touchstart",r.onGripMouseDown,{capture:!0,passive:!0}),l.addEventListener("mousedown",r.onGripMouseDown,!0),s?l.classList.add("grip-disabledgrip"):(l.classList.remove("grip-disabledgrip"),l.addEventListener("touchstart",r.onGripMouseDown,{capture:!0,passive:!0}),l.addEventListener("mousedown",r.onGripMouseDown,!0)),l.t=t,l.i=o,t.opt.widths[o]?a.w=t.opt.widths[o]:a.w=n?Number(a.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(a).width.replace(/px/,"")).valueOf(),t.opt.currentWidths[o]=a.w,a.style.width=a.w+r.PX,a.removeAttribute("width"),l.data={i:o,t:t.getAttribute(r.ID),last:o===t.columnCnt-1},t.grips.push(l),t.columns.push(a)});var i=Array.from(t.querySelectorAll("td"));i.concat(Array.from(t.querySelectorAll("th"))),(i=(i=i.filter(function(t){for(var n=0;n<e.length;n++)if(e[n]===t)return!1;return!0})).filter(function(e){return!(e.querySelectorAll("table th").length||e.querySelectorAll("table td").length)})).forEach(function(e){e.removeAttribute("width")}),t.opt.fixed||(t.removeAttribute("width"),t.classList.add(r.FLEX)),r.syncGrips()}),a(this,"deserializeStore",function(e){var t=r.tb;if(t.columnGrp.forEach(function(e){e.removeAttribute("width")}),t.opt.flush)r.store[t.getAttribute(r.ID)]="";else{var n=r.store[t.getAttribute(r.ID)].split(";"),i=n[t.columnCnt+1];!t.opt.fixed&&i&&(t.style.width=i+r.PX,t.opt.overflow&&(t.style.minWidth=i+r.PX,t.tableWidth=Number(i).valueOf()));for(var o=0;o<t.columnCnt;o++)e[o].style.width=n[o]+r.PX,t.columnGrp[o]&&(t.columnGrp[o].style.width=100*Number(n[o]).valueOf()/Number(n[t.columnCnt]).valueOf()+"%")}}),a(this,"createDiv",function(e,t,n){var r=document.createElement("div");r.classList.add(t),n&&(r.innerHTML=n),e.appendChild(r)}),a(this,"syncCols",function(e,t,n,i){var o=e.remote,a=r.grip.x-r.grip.l,s=e.columns[t],l=e.columns[t+1];if(s&&l){var u=s.w+a,c=l.w-a,f=u+r.PX;if(s.style.width=f,e.columnGrp[t]&&e.columnGrp[t].style.width&&(e.columnGrp[t].style.width=f),o&&(o.columns[t].style.width=f,o.columnGrp[t]&&o.columnGrp[t].style.width&&(o.columnGrp[t].style.width=f)),i.fixed){var d=c+r.PX;l.style.width=d,e.columnGrp[t+1]&&e.columnGrp[t+1].style.width&&(e.columnGrp[t+1].style.width=d),o&&(o.columns[t+1].style.width=d,o.columnGrp[t+1]&&o.columnGrp[t+1].style.width&&(o.columnGrp[t+1].style.width=d))}else i.overflow&&(e.style.minWidth=e.tableWidth+a+r.PX);n&&(s.w=u,l.w=i.fixed?c:l.w,o&&(o.columns[t].w=u,o.columns[t+1].w=i.fixed?c:l.w))}});try{this.store=sessionStorage}catch(n){this.store={}}this.grip=null,this.tb=n,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(i)});c.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],currentWidths:[],serialize:!0,onDrag:null,onResize:null}})(),r})(),e.exports=t()},7589:(e,t,n)=>{var r=Object.assign?Object.assign:function(e,t,n,r){for(var i=1;i<arguments.length;i++)l(Object(arguments[i]),function(t,n){e[n]=t});return e},i=function(){if(Object.create)return function(e,t,n,i){var o=s(arguments,1);return r.apply(this,[Object.create(e)].concat(o))};{function e(){}return function(t,n,i,o){var a=s(arguments,1);return e.prototype=t,r.apply(this,[new e].concat(a))}}}(),o=String.prototype.trim?function(e){return String.prototype.trim.call(e)}:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},a="undefined"!=typeof window?window:n.g;function s(e,t){return Array.prototype.slice.call(e,t||0)}function l(e,t){u(e,function(e,n){return t(e,n),!1})}function u(e,t){if(c(e)){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]}else for(var r in e)if(e.hasOwnProperty(r)&&t(e[r],r))return e[r]}function c(e){return null!=e&&"function"!=typeof e&&"number"==typeof e.length}e.exports={assign:r,create:i,trim:o,bind:function(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}},slice:s,each:l,map:function(e,t){var n=c(e)?[]:{};return u(e,function(e,r){return n[r]=t(e,r),!1}),n},pluck:u,isList:c,isFunction:function(e){return e&&"[object Function]"==={}.toString.call(e)},isObject:function(e){return e&&"[object Object]"==={}.toString.call(e)},Global:a}},7623:(e,t,n)=>{!function(e){"use strict";var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function a(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function s(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function u(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){i.lastIndex=t,e.ch=t;var n=i.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function f(e){for(;;){i.lastIndex=e.ch;var t=i.exec(e.text);if(!t){if(s(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function h(e,n){for(var r=[];;){var i,o=f(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(i=u(e)))return;if("selfClose"!=i)if(o[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==o[2]){r.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else r.push(o[2])}}function p(e,n){for(var r=[];;){var i=d(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,s=c(e);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else c(e)}}e.registerHelper("fold","xml",function(e,r){for(var i=new o(e,r.line,0);;){var a=f(i);if(!a||i.line!=r.line)return;var s=u(i);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=t(i.line,i.ch),c=h(i,a[2]);return c&&n(c.from,l)>0?{from:l,to:c.from}:null}}}),e.findMatchingTag=function(e,r,i){var a=new o(e,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=u(a),l=s&&t(a.line,a.ch),f=s&&c(a);if(s&&f&&!(n(a,r)>0)){var d={from:t(a.line,a.ch),to:l,tag:f[2]};return"selfClose"==s?{open:d,close:null,at:"open"}:f[1]?{open:p(a,f[2]),close:d,at:"close"}:{open:d,close:h(a=new o(e,l.line,l.ch,i),f[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new o(e,t.line,t.ch,n);;){var a=p(i,r);if(!a)break;var s=h(new o(e,t.line,t.ch,n),a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,r){return h(new o(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(n(1719))},7735:(e,t,n)=>{var r=n(2990).default;e.exports=function(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(r(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},7827:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(5067).A)(Object.getPrototypeOf,Object)},7837:(e,t,n)=>{var r=n(7589).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(s)return;var n=u(e);a(function(e){e.setAttribute(n,t),e.save(i)})},read:function(e){if(s)return;var t=u(e),n=null;return a(function(e){n=e.getAttribute(t)}),n},each:function(e){a(function(t){for(var n=t.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var i=n[r];e(t.getAttribute(i.name),i.name)}})},remove:function(e){var t=u(e);a(function(e){e.removeAttribute(t),e.save(i)})},clearAll:function(){a(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(i);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(i)})}};var i="storejs",o=r.document,a=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,n,r="script";try{(t=new ActiveXObject("htmlfile")).open(),t.write("<"+r+">document.w=window</"+r+'><iframe src="/favicon.ico"></iframe>'),t.close(),e=t.w.frames[0].document,n=e.createElement("div")}catch(t){n=o.createElement("div"),e=o.body}return function(t){var r=[].slice.call(arguments,0);r.unshift(n),e.appendChild(n),n.addBehavior("#default#userData"),n.load(i),t.apply(this,r),e.removeChild(n)}}(),s=(r.navigator?r.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(e){return e.replace(/^\d/,"___$&").replace(l,"___")}},7903:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8292),i=n(7348),o=Object.prototype.hasOwnProperty;const a=function(e,t,n){var a=e[t];o.call(e,t)&&(0,i.A)(a,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},8086:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2977),i=n(8214);const o=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},8199:(e,t,n)=>{var r=n(7589).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return i[e]},write:function(e,t){i[e]=t},each:o,remove:function(e){return i.removeItem(e)},clearAll:function(){o(function(e,t){delete i[e]})}};var i=r.globalStorage;function o(e){for(var t=i.length-1;t>=0;t--){var n=i.key(t);e(i[n],n)}}},8214:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},8272:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},8285:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=Array.isArray},8292:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7167);const i=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},8377:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7476),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},8412:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});const r=(0,n(1671).A)(Object,"create");const i=function(){this.__data__=r?r(null):{},this.size=0};const o=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var a=Object.prototype.hasOwnProperty;const s=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0};var l=Object.prototype.hasOwnProperty;const u=function(e){var t=this.__data__;return r?void 0!==t[e]:l.call(t,e)};const c=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=i,f.prototype.delete=o,f.prototype.get=s,f.prototype.has=u,f.prototype.set=c;const d=f;var h=n(5826),p=n(6787);const g=function(){this.size=0,this.__data__={hash:new d,map:new(p.A||h.A),string:new d}};const v=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const m=function(e,t){var n=e.__data__;return v(t)?n["string"==typeof t?"string":"hash"]:n.map};const y=function(e){var t=m(this,e).delete(e);return this.size-=t?1:0,t};const b=function(e){return m(this,e).get(e)};const _=function(e){return m(this,e).has(e)};const w=function(e,t){var n=m(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function x(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}x.prototype.clear=g,x.prototype.delete=y,x.prototype.get=b,x.prototype.has=_,x.prototype.set=w;const T=x},8541:(e,t,n)=>{var r=n(8696),i=n(1461),o=n(5217),a=n(1115),s=n(1907),l=n(1697),u=n(7735);function c(){"use strict";var t=i(),n=t.m(c),f=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function p(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,h[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,u(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(e.exports=c=function(){return{wrap:function(e,n,r,i){return t.w(p(e),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:t.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:s,async:function(e,t,n,r,i){return(d(t)?a:o)(p(e),t,n,r,i)},keys:l,values:u}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=c,e.exports.__esModule=!0,e.exports.default=e.exports},8563:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(8285),i=n(9758),o=n(8412);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(a.Cache||o.A),n}a.Cache=o.A;const s=a;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const c=function(e){var t=s(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(l,function(e,n,r,i){t.push(r?i.replace(u,"$1"):n||e)}),t});var f=n(2965);const d=function(e,t){return(0,r.A)(e)?e:(0,i.A)(e,t)?[e]:c((0,f.A)(e))}},8696:e=>{e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},8709:(e,t,n)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var h=e.getTokenTypeAt(n(t.line,l+1)),p=a(e,n(t.line,l+(d>0?1:0)),d,h,o);return null==p?null:{from:n(t.line,l),to:p&&p.pos,match:p&&p.ch==f.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],f=i(s),d=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),h=t.line;h!=d;h+=o){var p=e.getLine(h);if(p){var g=o>0?0:p.length-1,v=o>0?p.length:-1;if(!(p.length>l))for(h==t.line&&(g=t.ch-(o<0?1:0));g!=v;g+=o){var m=p.charAt(g);if(f.test(m)&&(void 0===a||(e.getTokenTypeAt(n(h,g+1))||"")==(a||""))){var y=r[m];if(y&&">"==y.charAt(1)==o>0)c.push(m);else{if(!c.length)return{pos:n(h,g),ch:m};c.pop()}}}}}return h-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var f=u[c].empty()&&o(e,u[c].head,i);if(f&&(f.match||!1!==s)&&e.getLine(f.from.line).length<=a){var d=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(f.from,n(f.from.line,f.from.ch+1),{className:d})),f.to&&e.getLine(f.to.line).length<=a&&l.push(e.markText(f.to,n(f.to.line,f.to.ch+1),{className:d}))}}if(l.length){t&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!r)return h;setTimeout(h,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)})}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))}),e.defineExtension("matchBrackets",function(){s(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,r){return a(this,e,t,n,r)})}(n(1719))},8782:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},8839:(e,t,n)=>{"use strict";n.r(t)},8883:e=>{e.exports={name:"memoryStorage",read:function(e){return t[e]},write:function(e,n){t[e]=n},each:function(e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},remove:function(e){delete t[e]},clearAll:function(e){t={}}};var t={}},8956:(e,t,n)=>{"use strict";n.r(t)},9029:(e,t)=>{t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},9091:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2020),i=n(8285);const o=function(e,t,n){var o=t(e);return(0,i.A)(e)?o:(0,r.A)(o,n(e))}},9121:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},9161:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return function(t){return e(t)}}},9418:(e,t,n)=>{"use strict";n.d(t,{A:()=>se});const{entries:r,setPrototypeOf:i,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:f,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(e){return e}),u||(u=function(e){return e}),f||(f=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),d||(d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const h=L(Array.prototype.forEach),p=L(Array.prototype.lastIndexOf),g=L(Array.prototype.pop),v=L(Array.prototype.push),m=L(Array.prototype.splice),y=L(String.prototype.toLowerCase),b=L(String.prototype.toString),_=L(String.prototype.match),w=L(String.prototype.replace),x=L(String.prototype.indexOf),T=L(String.prototype.trim),A=L(Object.prototype.hasOwnProperty),S=L(RegExp.prototype.test),C=(E=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d(E,t)});var E;function L(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return f(e,t,r)}}function k(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;i&&i(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(o(t)||(t[r]=e),i=e)}e[i]=!0}return e}function N(e){for(let t=0;t<e.length;t++){A(e,t)||(e[t]=null)}return e}function D(e){const t=c(null);for(const[n,i]of r(e)){A(e,n)&&(Array.isArray(i)?t[n]=N(i):i&&"object"==typeof i&&i.constructor===Object?t[n]=D(i):t[n]=i)}return t}function I(e,t){for(;null!==e;){const n=s(e,t);if(n){if(n.get)return L(n.get);if("function"==typeof n.value)return L(n.value)}e=a(e)}return function(){return null}}const O=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=l(["#text"]),H=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),W=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=u(/<%[\w\W]*|[\w\W]*%>/gm),$=u(/\$\{[\w\W]*/gm),V=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),X=u(/^aria-[\-\w]+$/),Q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Y=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:X,ATTR_WHITESPACE:Y,CUSTOM_ELEMENT:J,DATA_ATTR:V,DOCTYPE_NAME:Z,ERB_EXPR:G,IS_ALLOWED_URI:Q,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:q,TMPLIT_EXPR:$});const te=1,ne=3,re=7,ie=8,oe=9,ae=function(){return"undefined"==typeof window?null:window};var se=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ae();const n=t=>e(t);if(n.version="3.3.0",n.removed=[],!t||!t.document||t.document.nodeType!==oe||!t.Element)return n.isSupported=!1,n;let{document:i}=t;const o=i,a=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:u,Node:f,Element:d,NodeFilter:E,NamedNodeMap:L=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:N,DOMParser:q,trustedTypes:G}=t,$=d.prototype,V=I($,"cloneNode"),X=I($,"remove"),K=I($,"nextSibling"),Y=I($,"childNodes"),J=I($,"parentNode");if("function"==typeof u){const e=i.createElement("template");e.content&&e.content.ownerDocument&&(i=e.content.ownerDocument)}let se,le="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:fe,getElementsByTagName:de}=i,{importNode:he}=o;let pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof J&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:ge,ERB_EXPR:ve,TMPLIT_EXPR:me,DATA_ATTR:ye,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:_e,ATTR_WHITESPACE:we,CUSTOM_ELEMENT:xe}=ee;let{IS_ALLOWED_URI:Te}=ee,Ae=null;const Se=k({},[...O,...R,...M,...j,...B]);let Ce=null;const Ee=k({},[...H,...z,...U,...W]);let Le=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ke=null,Ne=null;const De=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ie=!0,Oe=!0,Re=!1,Me=!0,Pe=!1,je=!0,Fe=!1,Be=!1,He=!1,ze=!1,Ue=!1,We=!1,qe=!0,Ge=!1,$e=!0,Ve=!1,Xe={},Qe=null;const Ke=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const Ze=k({},["audio","video","img","source","image","track"]);let Je=null;const et=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let it=rt,ot=!1,at=null;const st=k({},[tt,nt,rt],b);let lt=k({},["mi","mo","mn","ms","mtext"]),ut=k({},["annotation-xml"]);const ct=k({},["title","style","font","a","script"]);let ft=null;const dt=["application/xhtml+xml","text/html"];let ht=null,pt=null;const gt=i.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"==typeof e||(e={}),e=D(e),ft=-1===dt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ft?b:y,Ae=A(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,ht):Se,Ce=A(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,ht):Ee,at=A(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,b):st,Je=A(e,"ADD_URI_SAFE_ATTR")?k(D(et),e.ADD_URI_SAFE_ATTR,ht):et,Ye=A(e,"ADD_DATA_URI_TAGS")?k(D(Ze),e.ADD_DATA_URI_TAGS,ht):Ze,Qe=A(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,ht):Ke,ke=A(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,ht):D({}),Ne=A(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,ht):D({}),Xe=!!A(e,"USE_PROFILES")&&e.USE_PROFILES,Ie=!1!==e.ALLOW_ARIA_ATTR,Oe=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Pe=e.SAFE_FOR_TEMPLATES||!1,je=!1!==e.SAFE_FOR_XML,Fe=e.WHOLE_DOCUMENT||!1,ze=e.RETURN_DOM||!1,Ue=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,qe=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,$e=!1!==e.KEEP_CONTENT,Ve=e.IN_PLACE||!1,Te=e.ALLOWED_URI_REGEXP||Q,it=e.NAMESPACE||rt,lt=e.MATHML_TEXT_INTEGRATION_POINTS||lt,ut=e.HTML_INTEGRATION_POINTS||ut,Le=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Oe=!1),Ue&&(ze=!0),Xe&&(Ae=k({},B),Ce=[],!0===Xe.html&&(k(Ae,O),k(Ce,H)),!0===Xe.svg&&(k(Ae,R),k(Ce,z),k(Ce,W)),!0===Xe.svgFilters&&(k(Ae,M),k(Ce,z),k(Ce,W)),!0===Xe.mathMl&&(k(Ae,j),k(Ce,U),k(Ce,W))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?De.tagCheck=e.ADD_TAGS:(Ae===Se&&(Ae=D(Ae)),k(Ae,e.ADD_TAGS,ht))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?De.attributeCheck=e.ADD_ATTR:(Ce===Ee&&(Ce=D(Ce)),k(Ce,e.ADD_ATTR,ht))),e.ADD_URI_SAFE_ATTR&&k(Je,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Qe===Ke&&(Qe=D(Qe)),k(Qe,e.FORBID_CONTENTS,ht)),$e&&(Ae["#text"]=!0),Fe&&k(Ae,["html","head","body"]),Ae.table&&(k(Ae,["tbody"]),delete ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');se=e.TRUSTED_TYPES_POLICY,le=se.createHTML("")}else void 0===se&&(se=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(G,a)),null!==se&&"string"==typeof le&&(le=se.createHTML(""));l&&l(e),pt=e}},yt=k({},[...R,...M,...P]),bt=k({},[...j,...F]),_t=function(e){v(n.removed,{element:e});try{J(e).removeChild(e)}catch(t){X(e)}},wt=function(e,t){try{v(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ze||Ue)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xt=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=_(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ft&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=se?se.createHTML(e):e;if(it===rt)try{t=(new q).parseFromString(r,ft)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=ot?le:r}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),it===rt?de.call(t,Fe?"html":"body")[0]:Fe?t.documentElement:o},Tt=function(e){return ce.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT|E.SHOW_PROCESSING_INSTRUCTION|E.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof N&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof L)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(e){return"function"==typeof f&&e instanceof f};function Ct(e,t,r){h(e,e=>{e.call(n,t,r,pt)})}const Et=function(e){let t=null;if(Ct(pe.beforeSanitizeElements,e,null),At(e))return _t(e),!0;const r=ht(e.nodeName);if(Ct(pe.uponSanitizeElement,e,{tagName:r,allowedTags:Ae}),je&&e.hasChildNodes()&&!St(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent))return _t(e),!0;if(e.nodeType===re)return _t(e),!0;if(je&&e.nodeType===ie&&S(/<[/\w]/g,e.data))return _t(e),!0;if(!(De.tagCheck instanceof Function&&De.tagCheck(r))&&(!Ae[r]||ke[r])){if(!ke[r]&&kt(r)){if(Le.tagNameCheck instanceof RegExp&&S(Le.tagNameCheck,r))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(r))return!1}if($e&&!Qe[r]){const t=J(e)||e.parentNode,n=Y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=V(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,K(e))}}}return _t(e),!0}return e instanceof d&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||lt[r]):Boolean(yt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&ut[r]:Boolean(bt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!ut[r])&&!(t.namespaceURI===tt&&!lt[r])&&!bt[n]&&(ct[n]||!yt[n]):!("application/xhtml+xml"!==ft||!at[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Pe&&e.nodeType===ne&&(t=e.textContent,h([ge,ve,me],e=>{t=w(t,e," ")}),e.textContent!==t&&(v(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct(pe.afterSanitizeElements,e,null),!1):(_t(e),!0)},Lt=function(e,t,n){if(qe&&("id"===t||"name"===t)&&(n in i||n in gt))return!1;if(Oe&&!Ne[t]&&S(ye,t));else if(Ie&&S(be,t));else if(De.attributeCheck instanceof Function&&De.attributeCheck(t,e));else if(!Ce[t]||Ne[t]){if(!(kt(e)&&(Le.tagNameCheck instanceof RegExp&&S(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&S(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t,e))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&S(Le.tagNameCheck,n)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(n))))return!1}else if(Je[t]);else if(S(Te,w(n,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==x(n,"data:")||!Ye[e]){if(Re&&!S(_e,w(n,we,"")));else if(n)return!1}else;return!0},kt=function(e){return"annotation-xml"!==e&&_(e,xe)},Nt=function(e){Ct(pe.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||At(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:s,value:l}=o,u=ht(a),c=l;let f="value"===a?c:T(c);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Ct(pe.uponSanitizeAttribute,e,r),f=r.attrValue,!Ge||"id"!==u&&"name"!==u||(wt(a,e),f="user-content-"+f),je&&S(/((--!?|])>)|<\/(style|title|textarea)/i,f)){wt(a,e);continue}if("attributename"===u&&_(f,"href")){wt(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){wt(a,e);continue}if(!Me&&S(/\/>/i,f)){wt(a,e);continue}Pe&&h([ge,ve,me],e=>{f=w(f,e," ")});const d=ht(e.nodeName);if(Lt(d,u,f)){if(se&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(s);else switch(G.getAttributeType(d,u)){case"TrustedHTML":f=se.createHTML(f);break;case"TrustedScriptURL":f=se.createScriptURL(f)}if(f!==c)try{s?e.setAttributeNS(s,a,f):e.setAttribute(a,f),At(e)?_t(e):g(n.removed)}catch(t){wt(a,e)}}else wt(a,e)}Ct(pe.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const r=Tt(t);for(Ct(pe.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ct(pe.uponSanitizeShadowNode,n,null),Et(n),Nt(n),n.content instanceof s&&e(n.content);Ct(pe.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ot=!e,ot&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw C("toString is not a function");if("string"!=typeof(e=e.toString()))throw C("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Be||mt(t),n.removed=[],"string"==typeof e&&(Ve=!1),Ve){if(e.nodeName){const t=ht(e.nodeName);if(!Ae[t]||ke[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof f)r=xt("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===te&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ze&&!Pe&&!Fe&&-1===e.indexOf("<"))return se&&We?se.createHTML(e):e;if(r=xt(e),!r)return ze?null:We?le:""}r&&He&&_t(r.firstChild);const u=Tt(Ve?e:r);for(;a=u.nextNode();)Et(a),Nt(a),a.content instanceof s&&Dt(a.content);if(Ve)return e;if(ze){if(Ue)for(l=fe.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(Ce.shadowroot||Ce.shadowrootmode)&&(l=he.call(o,l,!0)),l}let c=Fe?r.outerHTML:r.innerHTML;return Fe&&Ae["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(Z,r.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+c),Pe&&h([ge,ve,me],e=>{c=w(c,e," ")}),se&&We?se.createHTML(c):c},n.setConfig=function(){mt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Be=!0},n.clearConfig=function(){pt=null,Be=!1},n.isValidAttribute=function(e,t,n){pt||mt({});const r=ht(e),i=ht(t);return Lt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&v(pe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=p(pe[e],t);return-1===n?void 0:m(pe[e],n,1)[0]}return g(pe[e])},n.removeHooks=function(e){pe[e]=[]},n.removeAllHooks=function(){pe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},9430:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(946),i=n(7167),o=n(1100);const a=i.A?function(e,t){return(0,i.A)(e,"toString",{configurable:!0,enumerable:!1,value:(0,r.A)(t),writable:!0})}:o.A;var s=Date.now;const l=function(e){var t=0,n=0;return function(){var r=s(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(a)},9557:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(6809),i=Object.create;const o=function(){function e(){}return function(t){if(!(0,r.A)(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var a=n(7827),s=n(4603);const l=function(e){return"function"!=typeof e.constructor||(0,s.A)(e)?{}:o((0,a.A)(e))}},9602:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,f={},d=f.toString,h=f.hasOwnProperty,p=h.toString,g=p.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e}var T="3.7.1",A=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!m(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}S.fn=S.prototype={jquery:T,constructor:S,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){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},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(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!A.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:v}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var L=o.pop,k=o.sort,N=o.splice,D="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");S.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function R(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}S.escapeSelector=function(e){return(e+"").replace(O,R)};var M=b,P=u;!function(){var e,t,n,i,a,l,u,f,d,p,g=P,m=S.expando,y=0,b=0,_=ee(),w=ee(),x=ee(),T=ee(),A=function(e,t){return e===t&&(a=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+D+"*("+O+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+D+"*\\]",j=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",F=new RegExp(D+"+","g"),B=new RegExp("^"+D+"*,"+D+"*"),H=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),z=new RegExp(D+"|>"),U=new RegExp(j),W=new RegExp("^"+O+"$"),q={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Q=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),K=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Y=function(){le()},Z=de(function(e){return!0===e.disabled&&E(e,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(M.childNodes),M.childNodes),o[M.childNodes.length].nodeType}catch(e){g={apply:function(e,t){P.apply(e,s.call(t))},call:function(e){P.apply(e,s.call(arguments,1))}}}function J(e,t,n,r){var i,o,a,s,u,c,h,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,f)){if(11!==y&&(u=V.exec(e)))if(i=u[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(p&&(a=p.getElementById(i))&&J.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(u[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(T[e+" "]||d&&d.test(e))){if(h=e,p=t,1===y&&(z.test(e)||H.test(e))){for((p=X.test(e)&&se(t.parentNode)||t)==t&&v.scope||((s=t.getAttribute("id"))?s=S.escapeSelector(s):t.setAttribute("id",s=m)),o=(c=ce(e)).length;o--;)c[o]=(s?"#"+s:":scope")+" "+fe(c[o]);h=c.join(",")}try{return g.apply(n,p.querySelectorAll(h)),n}catch(t){T(e,!0)}finally{s===m&&t.removeAttribute("id")}}}return ye(e.replace(I,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[m]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return E(t,"input")&&t.type===e}}function ie(e){return function(t){return(E(t,"input")||E(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te(function(t){return t=+t,te(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:M;return r!=l&&9===r.nodeType&&r.documentElement?(u=(l=r).documentElement,f=!S.isXMLDoc(l),p=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Y),v.getById=ne(function(e){return u.appendChild(e).id=S.expando,!l.getElementsByName||!l.getElementsByName(S.expando).length}),v.disconnectedMatch=ne(function(e){return p.call(e,"*")}),v.scope=ne(function(){return l.querySelectorAll(":scope")}),v.cssHas=ne(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),v.getById?(t.filter.ID=function(e){var t=e.replace(Q,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Q,K);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},d=[],ne(function(e){var t;u.appendChild(e).innerHTML="<a id='"+m+"' href='' disabled='disabled'></a><select id='"+m+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+D+"*(?:value|"+C+")"),e.querySelectorAll("[id~="+m+"-]").length||d.push("~="),e.querySelectorAll("a#"+m+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")}),v.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),A=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!v.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&J.contains(M,e)?-1:t===l||t.ownerDocument==M&&J.contains(M,t)?1:i?c.call(i,e)-c.call(i,t):0:4&n?-1:1)},l):l}for(e in J.matches=function(e,t){return J(e,null,null,t)},J.matchesSelector=function(e,t){if(le(e),f&&!T[t+" "]&&(!d||!d.test(t)))try{var n=p.call(e,t);if(n||v.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){T(t,!0)}return J(t,l,null,[e]).length>0},J.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),S.contains(e,t)},J.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&h.call(t.attrHandle,n.toLowerCase())?r(e,n,!f):void 0;return void 0!==i?i:e.getAttribute(n)},J.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},S.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!v.sortStable,i=!v.sortStable&&s.call(e,0),k.call(e,A),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)N.call(e,n[r],1)}return i=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(s.apply(this)))},t=S.expr={cacheLength:50,createPseudo:te,match:q,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(Q,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,K),"~="===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]||J.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]&&J.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=ce(n,!0))&&(t=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(Q,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return E(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=J.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,h,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!l&&!s,_=!1;if(g){if(o){for(;p;){for(f=t;f=f[p];)if(s?E(f,v):1===f.nodeType)return!1;h=p="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&b){for(_=(d=(u=(c=g[m]||(g[m]={}))[e]||[])[0]===y&&u[1])&&u[2],f=d&&g.childNodes[d];f=++d&&f&&f[p]||(_=d=0)||h.pop();)if(1===f.nodeType&&++_&&f===t){c[e]=[y,d,_];break}}else if(b&&(_=d=(u=(c=t[m]||(t[m]={}))[e]||[])[0]===y&&u[1]),!1===_)for(;(f=++d&&f&&f[p]||(_=d=0)||h.pop())&&(!(s?E(f,v):1===f.nodeType)||!++_||(b&&((c=f[m]||(f[m]={}))[e]=[y,_]),f!==t)););return(_-=i)===r||_%r===0&&_/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||J.error("unsupported pseudo: "+e);return i[m]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=c.call(e,o[a])]=!(t[r]=o[a])}):function(e){return i(e,0,r)}):i}},pseudos:{not:te(function(e){var t=[],n=[],r=me(e.replace(I,"$1"));return r[m]?te(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return J(e,t).length>0}}),contains:te(function(e){return e=e.replace(Q,K),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:te(function(e){return W.test(e||"")||J.error("unsupported lang: "+e),e=e.replace(Q,K).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return E(e,"input")&&!!e.checked||E(e,"option")&&!!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!t.pseudos.empty(e)},header:function(e){return $.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){return E(e,"input")&&"button"===e.type||E(e,"button")},text:function(e){var t;return E(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae(function(){return[0]}),last:ae(function(e,t){return[t-1]}),eq:ae(function(e,t,n){return[n<0?n+t:n]}),even:ae(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ae(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ae(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ae(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ue(){}function ce(e,n){var r,i,o,a,s,l,u,c=w[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=t.preFilter;s;){for(a in r&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=H.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(I," ")}),s=s.slice(r.length)),t.filter)!(i=q[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?J.error(e):w(e,l).slice(0)}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function de(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,f=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=t[m]||(t[m]={}),i&&E(t,i))t=t[r]||t;else{if((u=c[o])&&u[0]===y&&u[1]===s)return f[2]=u[2];if(c[o]=f,f[2]=e(t,n,l))return!0}return!1}}function he(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[m]&&(r=ge(r)),i&&!i[m]&&(i=ge(i,o)),te(function(o,a,s,l){var u,f,d,h,p=[],v=[],m=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)J(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:pe(y,p,e,s,l);if(n?n(b,h=i||(o?e:m||r)?[]:a,s,l):h=b,r)for(u=pe(h,v),r(u,[],s,l),f=u.length;f--;)(d=u[f])&&(h[v[f]]=!(b[v[f]]=d));if(o){if(i||e){if(i){for(u=[],f=h.length;f--;)(d=h[f])&&u.push(b[f]=d);i(null,h=[],u,l)}for(f=h.length;f--;)(d=h[f])&&(u=i?c.call(o,d):p[f])>-1&&(o[u]=!(a[u]=d))}}else h=pe(h===a?h.splice(m,h.length):h),i?i(null,a,h,l):g.apply(a,h)})}function ve(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],u=s?1:0,f=de(function(e){return e===r},l,!0),d=de(function(e){return c.call(r,e)>-1},l,!0),h=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?f(e,t,i):d(e,t,i));return r=null,o}];u<a;u++)if(i=t.relative[e[u].type])h=[de(he(h),i)];else{if((i=t.filter[e[u].type].apply(null,e[u].matches))[m]){for(o=++u;o<a&&!t.relative[e[o].type];o++);return ge(u>1&&he(h),u>1&&fe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(I,"$1"),i,u<o&&ve(e.slice(u,o)),o<a&&ve(e=e.slice(o)),o<a&&fe(e))}h.push(i)}return he(h)}function me(e,r){var i,o=[],a=[],s=x[e+" "];if(!s){for(r||(r=ce(e)),i=r.length;i--;)(s=ve(r[i]))[m]?o.push(s):a.push(s);s=x(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,u,c,d){var h,p,v,m=0,b="0",_=a&&[],w=[],x=n,T=a||o&&t.find.TAG("*",d),A=y+=null==x?1:Math.random()||.1,C=T.length;for(d&&(n=s==l||s||d);b!==C&&null!=(h=T[b]);b++){if(o&&h){for(p=0,s||h.ownerDocument==l||(le(h),u=!f);v=e[p++];)if(v(h,s||l,u)){g.call(c,h);break}d&&(y=A)}i&&((h=!v&&h)&&m--,a&&_.push(h))}if(m+=b,i&&b!==m){for(p=0;v=r[p++];)v(_,w,s,u);if(a){if(m>0)for(;b--;)_[b]||w[b]||(w[b]=L.call(c));w=pe(w)}g.apply(c,w),d&&!a&&w.length>0&&m+r.length>1&&S.uniqueSort(c)}return d&&(y=A,n=x),_};return i?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,r,i){var o,a,s,l,u,c="function"==typeof e&&e,d=!i&&ce(e=c.selector||e);if(r=r||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&f&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Q,K),n)||[])[0]))return r;c&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=q.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((u=t.find[l])&&(i=u(s.matches[0].replace(Q,K),X.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&fe(a)))return g.apply(r,i),r;break}}return(c||me(e,d))(i,n,!f,r,!n||X.test(e)&&se(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,v.sortStable=m.split("").sort(A).join("")===m,le(),v.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),S.find=J,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,J.compile=me,J.select=ye,J.setDocument=le,J.tokenize=ce,J.escape=S.escapeSelector,J.getText=S.text,J.isXML=S.isXMLDoc,J.selectors=S.expr,J.support=S.support,J.uniqueSort=S.uniqueSort}();var j=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},F=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},B=S.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(e,t,n){return m(t)?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):"string"!=typeof t?S.grep(e,function(e){return c.call(t,e)>-1!==n}):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(z(this,e||[],!1))},not:function(e){return this.pushStack(z(this,e||[],!0))},is:function(e){return!!z(this,"string"==typeof e&&B.test(e)?S(e):e||[],!1).length}});var U,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||U,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),H.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,U=S(b);var q=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!B.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(S(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return j(e,"parentNode")},parentsUntil:function(e,t,n){return j(e,"parentNode",n)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return j(e,"nextSibling")},prevAll:function(e){return j(e,"previousSibling")},nextUntil:function(e,t,n){return j(e,"nextSibling",n)},prevUntil:function(e,t,n){return j(e,"previousSibling",n)},siblings:function(e){return F((e.parentNode||{}).firstChild,e)},children:function(e){return F(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(G[e]||S.uniqueSort(i),q.test(e)&&i.reverse()),this.pushStack(i)}});var V=/[^\x20\t\r\n\f]+/g;function X(e){return e}function Q(e){throw e}function K(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return S.each(e.match(V)||[],function(e,n){t[n]=!0}),t}(e):S.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){S.each(n,function(n,r){m(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?S.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(n){S.each(t,function(t,r){var i=m(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,u=function(){var r,u;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,m(u)?i?u.call(r,a(o,t,X,i),a(o,t,Q,i)):(o++,u.call(r,a(o,t,X,i),a(o,t,Q,i),a(o,t,X,t.notifyWith))):(n!==X&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,c.error),e+1>=o&&(n!==Q&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(S.Deferred.getErrorHook?c.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(c.error=S.Deferred.getStackHook()),r.setTimeout(c))}}return S.Deferred(function(r){t[0][3].add(a(0,r,m(i)?i:X,r.notifyWith)),t[1][3].add(a(0,r,m(e)?e:X)),t[2][3].add(a(0,r,m(n)?n:Q))}).promise()},promise:function(e){return null!=e?S.extend(e,i):i}},o={};return S.each(t,function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=S.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(K(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||m(i[n]&&i[n].then)))return o.then();for(;n--;)K(i[n],a(n),o.reject);return o.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&Y.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){r.setTimeout(function(){throw e})};var Z=S.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),r.removeEventListener("load",J),S.ready()}S.fn.ready=function(e){return Z.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||Z.resolveWith(b,[S]))}}),S.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",J),r.addEventListener("load",J));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===x(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(S(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=S.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(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,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(V)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var se=new ae,le=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function fe(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),fe(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){le.set(this,e)}):ee(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=fe(o,e))?n:void 0;this.each(function(){le.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){le.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:S.Callbacks("once memory").add(function(){se.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,ve=function(e){return S.contains(e.ownerDocument,e)},me={composed:!0};ge.getRootNode&&(ve=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(me)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ve(e)&&"none"===S.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},l=s(),u=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==u&&+l)&&he.exec(S.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)S.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var _e={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=_e[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),_e[r]=i,i)}function xe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=we(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}S.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ye(this)?S(this).show():S(this).hide()})}});var Te,Ae,Se=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ee=/^$|^module$|\/(?:java|ecma)script/i;Te=b.createDocumentFragment().appendChild(b.createElement("div")),(Ae=b.createElement("input")).setAttribute("type","radio"),Ae.setAttribute("checked","checked"),Ae.setAttribute("name","t"),Te.appendChild(Ae),v.checkClone=Te.cloneNode(!0).cloneNode(!0).lastChild.checked,Te.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Te.cloneNode(!0).lastChild.defaultValue,Te.innerHTML="<option></option>",v.option=!!Te.lastChild;var Le={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 ke(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?S.merge([e],n):n}function Ne(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Le.tbody=Le.tfoot=Le.colgroup=Le.caption=Le.thead,Le.th=Le.td,v.option||(Le.optgroup=Le.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function Ie(e,t,n,r,i){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===x(o))S.merge(d,o.nodeType?[o]:o);else if(De.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(Ce.exec(o)||["",""])[1].toLowerCase(),l=Le[s]||Le._default,a.innerHTML=l[1]+S.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;S.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(r&&S.inArray(o,r)>-1)i&&i.push(o);else if(u=ve(o),a=ke(f.appendChild(o),"script"),u&&Ne(a),n)for(c=0;o=a[c++];)Ee.test(o.type||"")&&n.push(o);return f}var Oe=/^([^.]*)(?:\.(.+)|)/;function Re(){return!0}function Me(){return!1}function Pe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Pe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Me;else if(!i)return e;return 1===o&&(a=i,i=function(e){return S().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function je(e,t,n){n?(se.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,S.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Re)}})):void 0===se.get(e,t)&&S.event.add(e,t,Re)}S.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,h,p,g,v=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(ge,i),n.guid||(n.guid=S.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(V)||[""]).length;u--;)h=g=(s=Oe.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=S.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=S.event.special[h]||{},c=S.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=l[h])||((d=l[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),S.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,h,p,g,v=se.hasData(e)&&se.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(V)||[""]).length;u--;)if(h=g=(s=Oe.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=S.event.special[h]||{},d=l[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,v.handle)||S.removeEvent(e,h,v.handle),delete l[h])}else for(h in l)S.event.remove(e,h+t[u],n,r,!0);S.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=S.event.fix(e),u=(se.get(this,"events")||Object.create(null))[l.type]||[],c=S.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=S.event.handlers.call(this,l,u),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?S(i,this).index(u)>-1:S.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Se.test(t.type)&&t.click&&E(t,"input")&&je(t,"click",!0),!1},trigger:function(e){var t=this||e;return Se.test(t.type)&&t.click&&E(t,"input")&&je(t,"click"),!0},_default:function(e){var t=e.target;return Se.test(t.type)&&t.click&&E(t,"input")&&se.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Re:Me,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&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Re,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Re,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Re,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=S.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else S.event.simulate(t,e.target,S.event.fix(e))}S.event.special[e]={setup:function(){var r;if(je(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return je(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||S.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),S.fn.extend({on:function(e,t,n,r){return Pe(this,e,t,n,r)},one:function(e,t,n,r){return Pe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each(function(){S.event.remove(this,e,n,t)})}});var Fe=/<script|<style|<link/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ze(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function qe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=S.extend({},o),le.set(t,a))}}function Ge(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,r){t=l(t);var i,o,a,s,u,c,f=0,d=e.length,h=d-1,p=t[0],g=m(p);if(g||d>1&&"string"==typeof p&&!v.checkClone&&Be.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),$e(o,t,n,r)});if(d&&(o=(i=Ie(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=S.map(ke(i,"script"),Ue)).length;f<d;f++)u=i,f!==h&&(u=S.clone(u,!0,!0),s&&S.merge(a,ke(u,"script"))),n.call(e[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,S.map(a,We),f=0;f<s;f++)u=a[f],Ee.test(u.type||"")&&!se.access(u,"globalEval")&&S.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(He,""),u,c))}return e}function Ve(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ke(r)),r.parentNode&&(n&&ve(r)&&Ne(ke(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=ve(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ke(s),r=0,i=(o=ke(e)).length;r<i;r++)Ge(o[r],a[r]);if(t)if(n)for(o=o||ke(e),a=a||ke(s),r=0,i=o.length;r<i;r++)qe(o[r],a[r]);else qe(e,s);return(a=ke(s,"script")).length>0&&Ne(a,!l&&ke(e,"script")),s},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return ee(this,function(e){return void 0===e?S.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 $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ze(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ze(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(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&&(S.cleanData(ke(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return S.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Fe.test(e)&&!Le[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ke(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(ke(this)),n&&n.replaceChild(t,this))},e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var Xe=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),Qe=/^--/,Ke=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ye=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ze=new RegExp(pe.join("|"),"i");function Je(e,t,n){var r,i,o,a,s=Qe.test(t),l=e.style;return(n=n||Ke(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(I,"$1")||void 0),""!==a||ve(e)||(a=S.style(e,t)),!v.pixelBoxStyles()&&Xe.test(a)&&Ze.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ge.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,S.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function it(e){var t=S.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=he.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+pe[a],!0,i)),r?("content"===n&&(l-=S.css(e,"padding"+pe[a],!0,i)),"margin"!==n&&(l-=S.css(e,"border"+pe[a]+"Width",!0,i))):(l+=S.css(e,"padding"+pe[a],!0,i),"padding"!==n?l+=S.css(e,"border"+pe[a]+"Width",!0,i):s+=S.css(e,"border"+pe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+u}function ct(e,t,n){var r=Ke(e),i=(!v.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Je(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Xe.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&E(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ut(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ft(e,t,n,r,i){return new ft.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=Qe.test(t),u=e.style;if(l||(t=it(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=he.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return Qe.test(t)||(t=it(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Je(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,r):Ye(e,at,function(){return ct(e,t,r)})},set:function(e,n,r){var i,o=Ke(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===S.css(e,"boxSizing",!1,o),l=r?ut(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ut(e,t,"border",!1,o)-.5)),l&&(i=he.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),lt(0,n,l)}}}),S.cssHooks.marginLeft=et(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+pe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(S.cssHooks[e+t].set=lt)}),S.fn.extend({css:function(e,t){return ee(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ke(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,arguments.length>1)}}),S.Tween=ft,ft.prototype={constructor:ft,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=ft.propHooks[this.prop];return e&&e.get?e.get(this):ft.propHooks._default.get(this)},run:function(e){var t,n=ft.propHooks[this.prop];return this.options.duration?this.pos=t=S.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.set(this):ft.propHooks._default.set(this),this}},ft.prototype.init.prototype=ft.prototype,ft.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}},ft.propHooks.scrollTop=ft.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=ft.prototype.init,S.fx.step={};var dt,ht,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function vt(){ht&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(vt):r.setTimeout(vt,S.fx.interval),S.fx.tick())}function mt(){return r.setTimeout(function(){dt=void 0}),dt=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=pe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function _t(e,t,n){var r,i,o=0,a=_t.prefilters.length,s=S.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=dt||mt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||mt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<a;o++)if(r=_t.prefilters[o].call(u,e,c,u.opts))return m(r.stop)&&(S._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return S.map(c,bt,u),m(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),S.fx.timer(S.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}S.Animation=S.extend(_t,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(V);for(var n,r=0,i=e.length;r<i;r++)n=e[r],_t.tweeners[n]=_t.tweeners[n]||[],_t.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,f="width"in t||"height"in t,d=this,h={},p=e.style,g=e.nodeType&&ye(e),v=se.get(e,"fxshow");for(r in n.queue||(null==(a=S._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--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],pt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}h[r]=v&&v[r]||S.style(e,r)}if((l=!S.isEmptyObject(t))||!S.isEmptyObject(h))for(r in f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=v&&v.display)&&(u=se.get(e,"display")),"none"===(c=S.css(e,"display"))&&(u?c=u:(xe([e],!0),u=e.style.display||u,c=S.css(e,"display"),xe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===S.css(e,"float")&&(l||(d.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),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||(v?"hidden"in v&&(g=v.hidden):v=se.access(e,"fxshow",{display:u}),o&&(v.hidden=!g),g&&xe([e],!0),d.done(function(){for(r in g||xe([e]),se.remove(e,"fxshow"),h)S.style(e,r,h[r])})),l=bt(g?v[r]:0,r,d),r in v||(v[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?_t.prefilters.unshift(e):_t.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),o=S.speed(t,n,r),a=function(){var t=_t(this,S.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=S.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&gt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||S.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=S.timers,a=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),S.each(["toggle","show","hide"],function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}}),S.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),dt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){ht||(ht=!0,vt())},S.fx.stop=function(){ht=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var wt,xt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return ee(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=S.find.attr(e,t))??void 0)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&E(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(V);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var n=xt[t]||S.find.attr;xt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=xt[a],xt[a]=i,i=null!=n(e,t,r)?a:null,xt[a]=o),i}});var Tt=/^(?:input|select|textarea|button)$/i,At=/^(?:a|area)$/i;function St(e){return(e.match(V)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}S.fn.extend({prop:function(e,t){return ee(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):Tt.test(e.nodeName)||At.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(e){var t,n,r,i,o,a;return m(e)?this.each(function(t){S(this).addClass(e.call(this,t,Ct(this)))}):(t=Et(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=St(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,n,r,i,o,a;return m(e)?this.each(function(t){S(this).removeClass(e.call(this,t,Ct(this)))}):arguments.length?(t=Et(e)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+St(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=St(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return m(e)?this.each(function(n){S(this).toggleClass(e.call(this,n,Ct(this),t),t)}):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Et(e),this.each(function(){if(s)for(o=S(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=Ct(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+St(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var Lt=/\r/g;S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,S(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,function(e){return null==e?"":e+""})),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Lt,""):n??"":void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:St(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=S.makeArray(t),a=i.length;a--;)((r=i[a]).selected=S.inArray(S.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},v.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt=r.location,Nt={guid:Date.now()},Dt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var It=/^(?:focusinfocus|focusoutblur)$/,Ot=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,i){var o,a,s,l,u,c,f,d,p=[n||b],g=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!It.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[S.expando]?e:new S.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),f=S.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(n,t))){if(!i&&!f.noBubble&&!y(n)){for(l=f.delegateType||g,It.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)d=a,e.type=o>1?l:f.bindType||g,(c=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&oe(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),t)||!oe(n)||u&&m(n[g])&&!y(n)&&((s=n[u])&&(n[u]=null),S.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Ot),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Ot),S.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var Rt=/\[\]$/,Mt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function Ft(e,t,n,r){var i;if(Array.isArray(t))S.each(t,function(t,i){n||Rt.test(e)?r(e,i):Ft(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)Ft(e+"["+i+"]",t[i],n,r)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(n??"")};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Ft(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&jt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Se.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}});var Bt=/%20/g,Ht=/#.*$/,zt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,qt=/^\/\//,Gt={},$t={},Vt="*/".concat("*"),Xt=b.createElement("a");function Qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(V)||[];if(m(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Kt(e,t,n,r){var i={},o=e===$t;function a(s){var l;return i[s]=!0,S.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)}),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Yt(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Xt.href=kt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,S.ajaxSettings),t):Yt(S.ajaxSettings,e)},ajaxPrefilter:Qt(Gt),ajaxTransport:Qt($t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,u,c,f,d,h=S.ajaxSetup({},t),p=h.context||h,g=h.context&&(p.nodeType||p.jquery)?S(p):S.event,v=S.Deferred(),m=S.Callbacks("once memory"),y=h.statusCode||{},_={},w={},x="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ut.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)T.always(e[T.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),A(0,t),this}};if(v.promise(T),h.url=((e||h.url||kt.href)+"").replace(qt,kt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(V)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Xt.protocol+"//"+Xt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=S.param(h.data,h.traditional)),Kt(Gt,h,t,T),u)return T;for(f in(c=S.event&&h.global)&&0===S.active++&&S.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Wt.test(h.type),i=h.url.replace(Ht,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Bt,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Dt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(zt,"$1"),d=(Dt.test(i)?"&":"?")+"_="+Nt.guid+++d),h.url=i+d),h.ifModified&&(S.lastModified[i]&&T.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&T.setRequestHeader("If-None-Match",S.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Vt+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,T,h)||u))return T.abort();if(x="abort",m.add(h.complete),T.done(h.success),T.fail(h.error),n=Kt($t,h,t,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,h]),u)return T;h.async&&h.timeout>0&&(s=r.setTimeout(function(){T.abort("timeout")},h.timeout));try{u=!1,n.send(_,A)}catch(e){if(u)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,a,l){var f,d,b,_,w,x=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",T.readyState=e>0?4:0,f=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,T,a)),!f&&S.inArray("script",h.dataTypes)>-1&&S.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.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 "+o}}}return{state:"success",data:t}}(h,_,T,f),f?(h.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=w),(w=T.getResponseHeader("etag"))&&(S.etag[i]=w)),204===e||"HEAD"===h.type?x="nocontent":304===e?x="notmodified":(x=_.state,d=_.data,f=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),T.status=e,T.statusText=(t||x)+"",f?v.resolveWith(p,[d,x,T]):v.rejectWith(p,[T,x,b]),T.statusCode(y),y=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[T,h,f?d:b]),m.fireWith(p,[T,x]),c&&(g.trigger("ajaxComplete",[T,h]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,t){S[t]=function(e,n,r,i){return m(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m(e)?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Jt=S.ajaxSettings.xhr();v.cors=!!Jt&&"withCredentials"in Jt,v.ajax=Jt=!!Jt,S.ajaxTransport(function(e){var t,n;if(v.cors||Jt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.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 S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||S.expando+"_"+Nt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||S.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always(function(){void 0===o?S(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),a&&m(o)&&o(a[0]),a=o=void 0}),"script"}),v.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=H.exec(e))?[t.createElement(i[1])]:(i=Ie([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=St(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=S.css(e,"position"),c=S(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),l=S.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||ge})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return ee(this,function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each(["top","left"],function(e,t){S.cssHooks[t]=et(v.pixelPosition,function(e,n){if(n)return n=Je(e,t),Xe.test(n)?S(e).position()[t]+"px":n})}),S.each({Height:"height",Width:"width"},function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){S.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?S.css(t,n,s):S.style(t,n,i,s)},t,a?i:void 0,a)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.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,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),S.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,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=E,S.isFunction=m,S.isWindow=y,S.camelCase=ie,S.type=x,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n);var on=r.jQuery,an=r.$;return S.noConflict=function(e){return r.$===S&&(r.$=an),e&&r.jQuery===S&&(r.jQuery=on),S},void 0===i&&(r.jQuery=r.$=S),S})},9604:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){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&&r(e,t)}n.d(t,{A:()=>i})},9715:(e,t,n)=>{"use strict";n.r(t)},9736:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(1717);var i=n(3564),o=n(3886);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||(0,i.A)(e,t)||(0,o.A)()}},9741:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(1273);const i=function(e,t){var n=t?(0,r.A)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},9754:(e,t,n)=>{!function(e){"use strict";function t(t,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(t,o,"rangeFinder");"number"==typeof r&&(r=e.Pos(r,0));var l=i(t,o,"minFoldSize");function u(e){var n=s(t,r);if(!n||n.to.line-n.from.line<l)return null;if("fold"===a)return n;for(var i=t.findMarksAt(n.from),o=0;o<i.length;++o)if(i[o].__isFold){if(!e)return null;n.cleared=!0,i[o].clear()}return n}var c=u(!0);if(i(t,o,"scanUp"))for(;!c&&r.line>t.firstLine();)r=e.Pos(r.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==a){var f=n(t,o,c);e.on(f,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(c.from,c.to,{replacedWith:f,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t,n){var r=i(e,t,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);(r=document.createElement("span")).appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var r={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return i(this,e,t)})}(n(1719))},9758:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8285),i=n(8086),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const s=function(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,i.A)(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},9790:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2977),i=n(6809);const o=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>Ut});var e=__webpack_require__(4360),t=__webpack_require__(9121),n=__webpack_require__(4758),r=__webpack_require__(365),i=__webpack_require__(8782),o=__webpack_require__(9604),a=__webpack_require__(232),s=__webpack_require__.n(a),l=__webpack_require__(4785),u=__webpack_require__(7440),c=__webpack_require__(2965),f=0;const d=function(e){var t=++f;return(0,c.A)(e)+t};var h=__webpack_require__(6422),p=__webpack_require__(3074);const g=function(e,t){var n=[];return(0,p.A)(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n};var v=__webpack_require__(5955),m=__webpack_require__(8285);const y=function(e,t){return((0,m.A)(e)?h.A:g)(e,(0,v.A)(t,3))};var b=__webpack_require__(5200);var _=__webpack_require__(3111);function w(t,n){if("string"==typeof t){var r=JSON.parse(t);if(n)for(var i in r.results.bindings)r.results.bindings[i]=n(r.results.bindings[i]);return r}if("object"==(0,e.A)(t)&&t.constructor==={}.constructor){if(n&&t.results)for(var o in t.results.bindings)t.results.bindings[o]=n(t.results.bindings[o]);return t}throw new Error("Could not parse json")}var x=__webpack_require__(2313),T="http://www.w3.org/1999/02/22-rdf-syntax-ns#",A="http://www.w3.org/2001/XMLSchema#",S="http://www.w3.org/2000/10/swap/";const C={xsd:{decimal:"".concat(A,"decimal"),boolean:"".concat(A,"boolean"),double:"".concat(A,"double"),integer:"".concat(A,"integer"),string:"".concat(A,"string")},rdf:{type:"".concat(T,"type"),nil:"".concat(T,"nil"),first:"".concat(T,"first"),rest:"".concat(T,"rest"),langString:"".concat(T,"langString")},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:"".concat(S,"reify#forSome"),forAll:"".concat(S,"reify#forAll")},log:{implies:"".concat(S,"log#implies"),isImpliedBy:"".concat(S,"log#isImpliedBy")}};function E(e){return E="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(e)}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function k(e){var t=function(e,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==E(t)?t:t+""}var N=C.xsd,D=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,I={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},O=/[\x00-\x20<>\\"\{\}\|\^\`]/,R={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},M=/$0^/,P=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,t=t||{},this._isImpliedBy=t.isImpliedBy,this._lineMode=!!t.lineMode)for(var n in this._n3Mode=!1,this)!(n in R)&&this[n]instanceof RegExp&&(this[n]=M);else this._n3Mode=!1!==t.n3;this.comments=!!t.comments,this._literalClosingPos=0},t=[{key:"_tokenizeToEnd",value:function(e,t){for(var n=this._input,r=n.length;;){for(var i=void 0,o=void 0;i=this._newline.exec(n);)this.comments&&(o=this._comment.exec(i[0]))&&y("comment",o[1],"",this._line,i[0].length),n=n.substr(i[0].length,n.length),r=n.length,this._line++;if(!i&&(i=this._whitespace.exec(n))&&(n=n.substr(i[0].length,n.length)),this._endOfFile.test(n))return t&&(this.comments&&(o=this._comment.exec(n))&&y("comment",o[1],"",this._line,n.length),n=null,y("eof","","",this._line,0)),this._input=n;var a=this._line,s=n[0],l="",u="",c="",f=null,d=0,h=!1;switch(s){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(d=1,l="^");break}if(this._previousMarker="^^","<"!==(n=n.substr(2))[0]){h=!0;break}case"<":if(f=this._unescapedIri.exec(n))l="IRI",u=f[1];else if(f=this._iri.exec(n)){if(null===(u=this._unescape(f[1]))||O.test(u))return b(this);l="IRI"}else n.length>1&&"<"===n[1]?(l="<<",d=2):this._n3Mode&&n.length>1&&"="===n[1]&&(d=2,this._isImpliedBy?(l="abbreviation",u="<"):(l="inverse",u=">"));break;case">":n.length>1&&">"===n[1]&&(l=">>",d=2);break;case"_":((f=this._blank.exec(n))||t&&(f=this._blank.exec("".concat(n," "))))&&(l="blank",c="_",u=f[1]);break;case'"':if(f=this._simpleQuotedString.exec(n))u=f[1];else{var p=this._parseLiteral(n);if(u=p.value,d=p.matchLength,null===u)return b(this)}null===f&&0===d||(l="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(f=this._simpleApostropheString.exec(n))u=f[1];else{var g=this._parseLiteral(n);if(u=g.value,d=g.matchLength,null===u)return b(this)}null===f&&0===d||(l="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(f=this._variable.exec(n))&&(l="var",u=f[0]);break;case"@":"literal"===this._previousMarker&&(f=this._langcode.exec(n))?(l="langcode",u=f[1]):(f=this._keyword.exec(n))&&(l=f[0]);break;case".":if(1===n.length?t:n[1]<"0"||n[1]>"9"){l=".",d=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(f=this._number.exec(n)||t&&(f=this._number.exec("".concat(n," "))))&&(l="literal",u=f[0],c="string"==typeof f[1]?N.double:"string"==typeof f[2]?N.decimal:N.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(f=this._sparqlKeyword.exec(n))?l=f[0].toUpperCase():h=!0;break;case"f":case"t":(f=this._boolean.exec(n))?(l="literal",u=f[0],c=N.boolean):h=!0;break;case"a":(f=this._shortPredicates.exec(n))?(l="abbreviation",u="a"):h=!0;break;case"=":this._n3Mode&&n.length>1&&(l="abbreviation",">"!==n[1]?(d=1,u="="):(d=2,u=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(d=1,l=s);break;case"{":!this._lineMode&&n.length>=2&&("|"===n[1]?(l="{|",d=2):(l=s,d=1));break;case"|":n.length>=2&&"}"===n[1]&&(l="|}",d=2);break;default:h=!0}if(h&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(f=this._prefix.exec(n))?((f=this._prefixed.exec(n))||t&&(f=this._prefixed.exec("".concat(n," "))))&&(l="prefixed",c=f[1]||"",u=this._unescape(f[2])):(l="prefix",u=f[1]||"")),"^^"===this._previousMarker)switch(l){case"prefixed":l="type";break;case"IRI":l="typeIRI";break;default:l=""}if(!l)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?b(this):this._input=n;var v=d||f[0].length,m=y(l,u,c,a,v);this.previousToken=m,this._previousMarker=l,n=n.substr(v,n.length)}function y(t,i,o,a,s){var l=n?r-n.length:r,u={type:t,value:i,prefix:o,line:a,start:l,end:l+s};return e(null,u),u}function b(t){e(t._syntaxError(/^\S*/.exec(n)[0]))}}},{key:"_unescape",value:function(e){var t=!1,n=e.replace(D,function(e,n,r,i){if("string"==typeof n)return String.fromCharCode(Number.parseInt(n,16));if("string"==typeof r){var o=Number.parseInt(r,16);return o<=65535?String.fromCharCode(Number.parseInt(r,16)):String.fromCharCode(55296+((o-=65536)>>10),56320+(1023&o))}return i in I?I[i]:(t=!0,"")});return t?null:n}},{key:"_parseLiteral",value:function(e){if(e.length>=3){for(var t=e.match(/^(?:"""|"|'''|'|)/)[0],n=t.length,r=Math.max(this._literalClosingPos,n);(r=e.indexOf(t,r))>0;){for(var i=0;"\\"===e[r-i-1];)i++;if(i%2==0){var o=e.substring(n,r),a=o.split(/\r\n|\r|\n/).length-1,s=r+n;if(1===n&&0!==a||3===n&&this._lineMode)break;return this._line+=a,{value:this._unescape(o),matchLength:s}}r++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}},{key:"_syntaxError",value:function(e){this._input=null;var t=new Error('Unexpected "'.concat(e,'" on line ').concat(this._line,"."));return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t}},{key:"_readStartingBom",value:function(e){return e.startsWith("\ufeff")?e.substr(1):e}},{key:"tokenize",value:function(e,t){var n=this;if(this._line=1,"string"==typeof e){if(this._input=this._readStartingBom(e),"function"!=typeof t){var r,i=[];if(this._tokenizeToEnd(function(e,t){return e?r=e:i.push(t)},!0),r)throw r;return i}queueMicrotask(function(){return n._tokenizeToEnd(t,!0)})}else this._pendingBuffer=null,"function"==typeof e.setEncoding&&e.setEncoding("utf8"),e.on("data",function(e){null!==n._input&&0!==e.length&&(n._pendingBuffer&&(e=x.hp.concat([n._pendingBuffer,e]),n._pendingBuffer=null),128&e[e.length-1]?n._pendingBuffer=e:(void 0===n._input?n._input=n._readStartingBom("string"==typeof e?e:e.toString()):n._input+=e,n._tokenizeToEnd(t,!1)))}),e.on("end",function(){"string"==typeof n._input&&n._tokenizeToEnd(t,!0)}),e.on("error",t)}}],t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function j(e){return j="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},j(e)}function F(e,t,n){return t=z(t),B(e,H()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function B(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(H=function(){return!!e})()}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}function U(e,t){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&&W(e,t)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V(r.key),r)}}function $(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}var X,Q=C.rdf,K=C.xsd,Y=0,Z={namedNode:ae,blankNode:se,variable:ue,literal:le,defaultGraph:function(){return X},quad:ce,triple:ce,fromTerm:fe,fromQuad:de};const J=Z;var ee=function(){function e(t){q(this,e),this.id=t}return $(e,[{key:"value",get:function(){return this.id}},{key:"equals",value:function(t){return t instanceof e?this.id===t.id:!!t&&this.termType===t.termType&&this.value===t.value}},{key:"hashCode",value:function(){return 0}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value}}}])}(),te=function(e){function t(){return q(this,t),F(this,t,arguments)}return U(t,e),$(t,[{key:"termType",get:function(){return"NamedNode"}}])}(ee),ne=function(e){function t(){return q(this,t),F(this,t,arguments)}return U(t,e),$(t,[{key:"termType",get:function(){return"Literal"}},{key:"value",get:function(){return this.id.substring(1,this.id.lastIndexOf('"'))}},{key:"language",get:function(){var e=this.id,t=e.lastIndexOf('"')+1;return t<e.length&&"@"===e[t++]?e.substr(t).toLowerCase():""}},{key:"datatype",get:function(){return new te(this.datatypeString)}},{key:"datatypeString",get:function(){var e=this.id,t=e.lastIndexOf('"')+1,n=t<e.length?e[t]:"";return"^"===n?e.substr(t+2):"@"!==n?K.string:Q.langString}},{key:"equals",value:function(e){return e instanceof t?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&this.datatype.value===e.datatype.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}}])}(ee),re=function(e){function t(e){return q(this,t),F(this,t,["_:".concat(e)])}return U(t,e),$(t,[{key:"termType",get:function(){return"BlankNode"}},{key:"value",get:function(){return this.id.substr(2)}}])}(ee),ie=function(e){function t(e){return q(this,t),F(this,t,["?".concat(e)])}return U(t,e),$(t,[{key:"termType",get:function(){return"Variable"}},{key:"value",get:function(){return this.id.substr(1)}}])}(ee);X=new(function(e){function t(){var e;return q(this,t),B(e=F(this,t,[""]),X||e)}return U(t,e),$(t,[{key:"termType",get:function(){return"DefaultGraph"}},{key:"equals",value:function(e){return this===e||!!e&&this.termType===e.termType}}])}(ee));var oe=function(e){function t(e,n,r,i){var o;return q(this,t),(o=F(this,t,[""]))._subject=e,o._predicate=n,o._object=r,o._graph=i||X,o}return U(t,e),$(t,[{key:"termType",get:function(){return"Quad"}},{key:"subject",get:function(){return this._subject}},{key:"predicate",get:function(){return this._predicate}},{key:"object",get:function(){return this._object}},{key:"graph",get:function(){return this._graph}},{key:"toJSON",value:function(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}},{key:"equals",value:function(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}}])}(ee);function ae(e){return new te(e)}function se(e){return new re(e||"n3-".concat(Y++))}function le(e,t){if("string"==typeof t)return new ne('"'.concat(e,'"@').concat(t.toLowerCase()));var n=t?t.value:"";return""===n&&("boolean"==typeof e?n=K.boolean:"number"==typeof e&&(Number.isFinite(e)?n=Number.isInteger(e)?K.integer:K.double:(n=K.double,Number.isNaN(e)||(e=e>0?"INF":"-INF")))),""===n||n===K.string?new ne('"'.concat(e,'"')):new ne('"'.concat(e,'"^^').concat(n))}function ue(e){return new ie(e)}function ce(e,t,n,r){return new oe(e,t,n,r)}function fe(e){if(e instanceof ee)return e;switch(e.termType){case"NamedNode":return ae(e.value);case"BlankNode":return se(e.value);case"Variable":return ue(e.value);case"DefaultGraph":return X;case"Literal":return le(e.value,e.language||e.datatype);case"Quad":return de(e);default:throw new Error("Unexpected termType: ".concat(e.termType))}}function de(e){if(e instanceof oe)return e;if("Quad"!==e.termType)throw new Error("Unexpected termType: ".concat(e.termType));return ce(fe(e.subject),fe(e.predicate),fe(e.object),fe(e.graph))}function he(e){return he="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},he(e)}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ge(r.key),r)}}function ge(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==he(t)?t:t+""}var ve=0,me=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._contextStack=[],this._graph=null,t=t||{},this._setBase(t.baseIRI),t.factory&&be(this,t.factory);var n="string"==typeof t.format?t.format.match(/\w*$/)[0].toLowerCase():"",r=/turtle/.test(n),i=/trig/.test(n),o=/triple/.test(n),a=/quad/.test(n),s=this._n3Mode=/n3/.test(n),l=o||a;(this._supportsNamedGraphs=!(r||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(r||i||o||s),this._isImpliedBy=t.isImpliedBy,this._supportsRDFStar=""===n||/star|\*$/.test(n),l&&(this._resolveRelativeIRI=function(e){return null}),this._blankNodePrefix="string"!=typeof t.blankNodePrefix?"":t.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=t.lexer||new P({lineMode:l,n3:s,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!t.explicitQuantifiers},t=[{key:"_setBase",value:function(e){if(e){var t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}else this._base="",this._basePath=""}},{key:"_saveContext",value:function(e,t,n,r,i){var o=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:r,object:i,graph:t,inverse:!!o&&this._inversePredicate,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?"".concat(this._graph.value,"."):".",this._quantified=Object.create(this._quantified))}},{key:"_restoreContext",value:function(e,t){var n=this._contextStack.pop();if(!n||n.type!==e)return this._error("Unexpected ".concat(t.type),t);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}},{key:"_readInTopContext",value:function(e){switch(e.type){case"eof":return null!==this._graph?this._error("Unclosed graph",e):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(e)}}},{key:"_readEntity",value:function(e,t){var n;switch(e.type){case"IRI":case"typeIRI":var r=this._resolveIRI(e.value);if(null===r)return this._error("Invalid IRI",e);n=this._factory.namedNode(r);break;case"type":case"prefixed":var i=this._prefixes[e.prefix];if(void 0===i)return this._error('Undefined prefix "'.concat(e.prefix,':"'),e);n=this._factory.namedNode(i+e.value);break;case"blank":n=this._factory.blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._factory.variable(e.value.substr(1));break;default:return this._error("Expected entity but got ".concat(e.type),e)}return!t&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}},{key:"_readSubject",value:function(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(0===e.prefix.length)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._factory.literal(e.value,this._factory.namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",e);default:if(void 0===(this._subject=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}},{key:"_readPredicate",value:function(e){var t=e.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected ".concat(t),e):(this._subject=null,"]"===t?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if(void 0===(this._predicate=this._readEntity(e)))return}return this._readObject}},{key:"_readObject",value:function(e){switch(e.type){case"literal":if(0===e.prefix.length)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._factory.literal(e.value,this._factory.namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",e);default:if(void 0===(this._object=this._readEntity(e)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}},{key:"_readPredicateOrNamedGraph",value:function(e){return"{"===e.type?this._readGraph(e):this._readPredicate(e)}},{key:"_readGraph",value:function(e){return"{"!==e.type?this._error("Expected graph but got ".concat(e.type),e):(this._graph=this._subject,this._subject=null,this._readSubject)}},{key:"_readBlankNodeHead",value:function(e){return"]"===e.type?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}},{key:"_readBlankNodeTail",value:function(e){if("]"!==e.type)return this._readBlankNodePunctuation(e);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);var t=null===this._predicate;return this._restoreContext("blank",e),null!==this._object?this._getContextEndReader():null!==this._predicate?this._readObject:t?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}},{key:"_readPredicateAfterBlank",value:function(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}},{key:"_readListItem",value:function(e){var t=null,n=null,r=this._readListItem,i=this._subject,o=this._contextStack,a=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._factory.blankNode(),this.RDF_FIRST,this._subject=t=this._factory.blankNode()),r=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),0!==o.length&&"list"===o[o.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(r=this._readPredicate,this._subject===this.RDF_NIL)return r}else if(r=this._getContextEndReader(),this._object===this.RDF_NIL)return r;n=this.RDF_NIL;break;case"literal":0===e.prefix.length?(this._literalValue=e.value,r=this._readListItemDataTypeOrLang):(t=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),r=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if(void 0===(t=this._readEntity(e)))return}if(null===n&&(this._subject=n=this._factory.blankNode()),null===i?null===a.predicate?a.subject=n:a.object=n:this._emit(i,this.RDF_REST,n,this._graph),null!==t){if(this._n3Mode&&("IRI"===e.type||"prefixed"===e.type))return this._saveContext("item",this._graph,n,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,t,this._graph)}return r}},{key:"_readDataTypeOrLang",value:function(e){return this._completeObjectLiteral(e,!1)}},{key:"_readListItemDataTypeOrLang",value:function(e){return this._completeObjectLiteral(e,!0)}},{key:"_completeLiteral",value:function(e){var t=this._factory.literal(this._literalValue);switch(e.type){case"type":case"typeIRI":var n=this._readEntity(e);if(void 0===n)return;t=this._factory.literal(this._literalValue,n),e=null;break;case"langcode":t=this._factory.literal(this._literalValue,e.value),e=null}return{token:e,literal:t}}},{key:"_completeSubjectLiteral",value:function(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}},{key:"_completeObjectLiteral",value:function(e,t){var n=this._completeLiteral(e);if(n)return this._object=n.literal,t&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===n.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}},{key:"_readFormulaTail",value:function(e){return"}"!==e.type?this._readPunctuation(e):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),null===this._object?this._readPredicate:this._getContextEndReader())}},{key:"_readPunctuation",value:function(e){var t,n=this._graph,r=this._subject,i=this._inversePredicate;switch(e.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,t=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",e);var o=this._predicate,a=this._object;this._subject=this._factory.quad(r,o,a,this.DEFAULTGRAPH),t=this._readPredicate;break;case"|}":if("Quad"!==this._subject.termType)return this._error("Unexpected asserted triple closing",e);this._subject=null,t=this._readPunctuation;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(n=this._readEntity(e))){t=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'.concat(this._object.id,'"'),e)}if(null!==r){var s=this._predicate,l=this._object;i?this._emit(l,s,r,n):this._emit(r,s,l,n)}return t}},{key:"_readBlankNodePunctuation",value:function(e){var t;switch(e.type){case";":t=this._readPredicate;break;case",":t=this._readObject;break;default:return this._error('Expected punctuation to follow "'.concat(this._object.id,'"'),e)}return this._emit(this._subject,this._predicate,this._object,this._graph),t}},{key:"_readQuadPunctuation",value:function(e){return"."!==e.type?this._error("Expected dot to follow quad",e):this._readInTopContext}},{key:"_readPrefix",value:function(e){return"prefix"!==e.type?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}},{key:"_readPrefixIRI",value:function(e){if("IRI"!==e.type)return this._error('Expected IRI to follow prefix "'.concat(this._prefix,':"'),e);var t=this._readEntity(e);return this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}},{key:"_readBaseIRI",value:function(e){var t="IRI"===e.type&&this._resolveIRI(e.value);return t?(this._setBase(t),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}},{key:"_readNamedGraphLabel",value:function(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}},{key:"_readNamedGraphBlankLabel",value:function(e){return"]"!==e.type?this._error("Invalid graph label",e):(this._subject=this._factory.blankNode(),this._readGraph)}},{key:"_readDeclarationPunctuation",value:function(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):"."!==e.type?this._error("Expected declaration to end with a dot",e):this._readInTopContext}},{key:"_readQuantifierList",value:function(e){var t;switch(e.type){case"IRI":case"prefixed":if(void 0!==(t=this._readEntity(e,!0)))break;default:return this._error("Unexpected ".concat(e.type),e)}return this._explicitQuantifiers?(null===this._subject?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):this._quantified[t.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}},{key:"_readQuantifierPunctuation",value:function(e){return","===e.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}},{key:"_getPathReader",value:function(e){return this._afterPath=e,this._readPath}},{key:"_readPath",value:function(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var t=this._contextStack,n=t.length&&t[t.length-1];if(n&&"item"===n.type){var r=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,r,this._graph)}return this._afterPath(e)}}},{key:"_readForwardPath",value:function(e){var t,n,r=this._factory.blankNode();if(void 0!==(n=this._readEntity(e)))return null===this._predicate?(t=this._subject,this._subject=r):(t=this._object,this._object=r),this._emit(t,n,r,this._graph),this._readPath}},{key:"_readBackwardPath",value:function(e){var t,n,r=this._factory.blankNode();if(void 0!==(t=this._readEntity(e)))return null===this._predicate?(n=this._subject,this._subject=r):(n=this._object,this._object=r),this._emit(r,t,n,this._graph),this._readPath}},{key:"_readRDFStarTailOrGraph",value:function(e){return">>"!==e.type?this._supportsQuads&&null===this._graph&&void 0!==(this._graph=this._readEntity(e))?this._readRDFStarTail:this._error('Expected >> to follow "'.concat(this._object.id,'"'),e):this._readRDFStarTail(e)}},{key:"_readRDFStarTail",value:function(e){if(">>"!==e.type)return this._error("Expected >> but got ".concat(e.type),e);var t=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),null===this._subject?(this._subject=t,this._readPredicate):(this._object=t,this._getContextEndReader())}},{key:"_getContextEndReader",value:function(){var e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}},{key:"_emit",value:function(e,t,n,r){this._callback(null,this._factory.quad(e,t,n,r||this.DEFAULTGRAPH))}},{key:"_error",value:function(e,t){var n=new Error("".concat(e," on line ").concat(t.line,"."));n.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=ye}},{key:"_resolveIRI",value:function(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}},{key:"_resolveRelativeIRI",value:function(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return("/"===e[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}},{key:"_removeDotSegments",value:function(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;for(var t=e.length,n="",r=-1,i=-1,o=0,a="/";r<t;){switch(a){case":":if(i<0&&"/"===e[++r]&&"/"===e[++r])for(;(i=r+1)<t&&"/"!==e[i];)r=i;break;case"?":case"#":r=t;break;case"/":if("."===e[r+1])switch(a=e[1+ ++r]){case"/":n+=e.substring(o,r-1),o=r+1;break;case void 0:case"?":case"#":return n+e.substring(o,r)+e.substr(r+1);case".":if(void 0===(a=e[1+ ++r])||"/"===a||"?"===a||"#"===a){if((o=(n+=e.substring(o,r-2)).lastIndexOf("/"))>=i&&(n=n.substr(0,o)),"/"!==a)return"".concat(n,"/").concat(e.substr(r+1));o=r+1}}}a=e[++r]}return n+e.substring(o)}},{key:"parse",value:function(e,t,n){var r,i,o,a=this;if(t&&(t.onQuad||t.onPrefix||t.onComment)?(r=t.onQuad,i=t.onPrefix,o=t.onComment):(r=t,i=n),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):"b".concat(ve++,"_"),this._prefixCallback=i||ye,this._inversePredicate=!1,this._quantified=Object.create(null),!r){var s,l=[];if(this._callback=function(e,t){e?s=e:t&&l.push(t)},this._lexer.tokenize(e).every(function(e){return a._readCallback=a._readCallback(e)}),s)throw s;return l}var u=function(e,t){null!==e?(a._callback(e),a._callback=ye):a._readCallback&&(a._readCallback=a._readCallback(t))};o&&(this._lexer.comments=!0,u=function(e,t){null!==e?(a._callback(e),a._callback=ye):a._readCallback&&("comment"===t.type?o(t.value):a._readCallback=a._readCallback(t))}),this._callback=r,this._lexer.tokenize(e,u)}}],n=[{key:"_resetBlankNodePrefix",value:function(){ve=0}}],t&&pe(e.prototype,t),n&&pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ye(){}function be(e,t){e._factory=t,e.DEFAULTGRAPH=t.defaultGraph(),e.RDF_FIRST=t.namedNode(C.rdf.first),e.RDF_REST=t.namedNode(C.rdf.rest),e.RDF_NIL=t.namedNode(C.rdf.nil),e.N3_FORALL=t.namedNode(C.r.forAll),e.N3_FORSOME=t.namedNode(C.r.forSome),e.ABBREVIATIONS={a:t.namedNode(C.rdf.type),"=":t.namedNode(C.owl.sameAs),">":t.namedNode(C.log.implies),"<":t.namedNode(C.log.isImpliedBy)},e.QUANTIFIERS_GRAPH=t.namedNode("urn:n3:quantifiers")}function _e(e){if("NamedNode"===e.termType)return{value:e.value,type:"uri"};if("Literal"===e.termType){var t={value:e.value,type:"literal"},n=e.language;n&&(t["xml:lang"]=n);var r=e.datatypeString;return r&&(t.datatype=r),t}return"BlankNode"===e.termType?{value:e.value,type:"bnode"}:{value:e.value,type:"uri"}}function we(e){return(new me).parse(e||"")}be(me.prototype,J);const xe=(0,__webpack_require__(4636).A)({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Te=/&(?:amp|lt|gt|quot|#39);/g,Ae=RegExp(Te.source);const Se=function(e){return(e=(0,c.A)(e))&&Ae.test(e)?e.replace(Te,xe):e};var Ce=__webpack_require__(3001),Ee=__webpack_require__(4889),Le=__webpack_require__(2078),ke=__webpack_require__(7242),Ne=__webpack_require__(6118),De=__webpack_require__(4603),Ie=__webpack_require__(4249),Oe=Object.prototype.hasOwnProperty;const Re=function(e){if(null==e)return!0;if((0,ke.A)(e)&&((0,m.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,Ne.A)(e)||(0,Ie.A)(e)||(0,Le.A)(e)))return!e.length;var t=(0,Ee.A)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,De.A)(e))return!(0,Ce.A)(e).length;for(var n in e)if(Oe.call(e,n))return!1;return!0};function Me(e){for(var t={vars:[]},n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if("variable"==r.nodeName){var i=r.getAttribute("name");i&&t.vars.push(i)}}return t}var Pe=["uri","literal","bnode","typed-literal"];function je(e,t){for(var n={bindings:[]},r=0;r<e.childNodes.length;r++){for(var i=e.childNodes[r],o={},a=0;a<i.childNodes.length;a++){var s=i.childNodes[a];if("binding"==s.nodeName){var l=s.getAttribute("name");if(l)for(var u=0;u<s.childNodes.length;u++){var c=s.childNodes[u];if("#text"!==c.nodeName&&!(Pe.indexOf(c.nodeName)<0)){var f={type:c.nodeName,value:Se(c.innerHTML)},d=c.getAttribute("datatype");d&&(f.datatype=d),o[l]=f}}}}Re(o)||n.bindings.push(t(o))}return n}function Fe(e){return"true"===e.innerHTML}function Be(e,t){if("string"==typeof e){var n=(new DOMParser).parseFromString(e,"text/xml");if(n.childNodes.length){for(var r=n.childNodes[0],i={},o=0;o<r.childNodes.length;o++){var a=r.childNodes[o];"head"==a.nodeName&&(i.head=Me(a)),"results"==a.nodeName&&(i.results=je(a,t)),"boolean"==a.nodeName&&(i.boolean=Fe(a))}return i}}}var He=__webpack_require__(4691);var ze=__webpack_require__(9736),Ue=__webpack_require__(1717),We=__webpack_require__(5209),qe=__webpack_require__(3564),Ge=__webpack_require__(3886);function $e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xe(e){var t=e.split("\n");t.pop();var n,r=(n=t,(0,Ue.A)(n)||(0,We.A)(n)||(0,qe.A)(n)||(0,Ge.A)()),i=r[0],o=Ve(r).slice(1),a=i.split("\t").map(function(e){return e.substring(1)}),s=o.map(function(e){var t,n={},r=$e(e.split("\t").entries());try{for(r.s();!(t=r.n()).done;){var i=(0,ze.A)(t.value,2),o=i[0],s=i[1],l=a[o];if("<"===s[0])n[l]={value:s.substring(1,s.length-1),type:"uri"};else if('"'===s[0]){var u=s.lastIndexOf('"'),c=s.substring(1,u);if(u===s.length-1)n[l]={value:c,type:"literal"};else if(u<s.lastIndexOf("@")){var f=s.substring(s.lastIndexOf("@")+1);n[l]={value:c,type:"literal","xml:lang":f}}else if(u<s.lastIndexOf("^^")){var d=s.substring(s.lastIndexOf("^^")+2);n[l]={value:c,type:"typed-literal",datatype:d}}}}}catch(e){r.e(e)}finally{r.f()}return n});return{head:{vars:a},results:{bindings:s}}}function Qe(e){return null==e?"":`${e}`}function Ke(e={}){const{separator:t,decimals:n}=e;return t?n?e=>e.toFixed(n).replace(".",t):e=>`${e}`.replace(".",t):n?e=>e.toFixed(n):e=>`${e}`}function Ye(e={}){const t="string"==typeof e.quote?e.quote:'"',n="string"==typeof e.escapedQuote?e.escapedQuote:`${t}${t}`;if(!t||t===n)return e=>e;const r=new RegExp(t,"g");return e=>(e.includes(t)&&(e=e.replace(r,n)),`${t}${e}${t}`)}new RegExp('"',"g");function Ze(e={stringFormatter:Ye()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}const Je=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g");function et(e,t,n){if(t in e){const r=e[t];return void 0===r?n:r}const r=Array.isArray(t)?t:function(e){var t,n,r;const i=[];let o;for(;o=Je.exec(e);)i.push(null!==(r=null!==(t=o[3])&&void 0!==t?t:null===(n=o[1])||void 0===n?void 0:n.trim())&&void 0!==r?r:o[0]);return i}(t);let i=e;for(const e of r)if(i=null==i?void 0:i[e],void 0===i)return n;return i}function tt(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch(n){return e.concat(t)}}function nt(e,t){let n=!0;return e.reduce((e,r)=>(null==r&&(r=""),n?(n=!1,`${r}`):`${e}${t}${r}`),"")}var rt,it;!function(e){e.header="header",e[void 0]="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"}(rt||(rt={}));class ot{constructor(e){this.opts=this.preprocessOpts(e)}preprocessOpts(e){const t=Object.assign({},e);t.fields&&(t.fields=this.preprocessFieldsInfo(t.fields,t.defaultValue)),t.transforms=t.transforms||[];const n=t.formatters&&t.formatters.string||Ye(),r=function(e={stringFormatter:Ye()}){return t=>{if(null===t)return"";let n=JSON.stringify(t);return void 0===n?"":('"'===n[0]&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}({stringFormatter:n}),i={header:n,undefined:Qe,boolean:Qe,number:Ke(),bigint:Qe,string:n,symbol:Ze({stringFormatter:n}),function:r,object:r};return t.formatters=Object.assign(Object.assign({},i),t.formatters),t.delimiter=t.delimiter||",",t.eol=t.eol||"\n",t.header=!1!==t.header,t.includeEmptyRows=t.includeEmptyRows||!1,t.withBOM=t.withBOM||!1,t}preprocessFieldsInfo(e,t){return e.map(e=>{if("string"==typeof e)return{label:e,value:n=>et(n,e,t)};if("object"==typeof e){const n="default"in e?e.default:t;if("string"==typeof e.value){const t=e.value;return{label:e.label||e.value,value:e=>et(e,t,n)}}if("function"==typeof e.value){const t=e.label||e.value.name||"",r={label:t,default:n},i=e.value;return{label:t,value(e){const t=i(e,r);return void 0===t?n:t}}}}throw new Error("Invalid field info option. "+JSON.stringify(e))})}getHeader(){return nt(this.opts.fields.map(e=>this.opts.formatters.header(e.label)),this.opts.delimiter)}preprocessRow(e){return this.opts.transforms.reduce((e,t)=>e.map(e=>t(e)).reduce(tt,[]),[e])}processRow(e){if(!e)return;const t=this.opts.fields.map(t=>this.processCell(e,t));return this.opts.includeEmptyRows||!t.every(e=>""===e)?nt(t,this.opts.delimiter):void 0}processCell(e,t){return this.processValue(t.value(e))}processValue(e){return(0,this.opts.formatters[typeof e])(e)}}class at extends ot{constructor(e){super(e)}parse(e){const t=this.preprocessData(e);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(t.reduce((e,t)=>(Object.keys(t).forEach(t=>{e.includes(t)||e.push(t)}),e),[]),this.opts.defaultValue);const n=this.opts.header?this.getHeader():"",r=this.processData(t);return(this.opts.withBOM?"\ufeff":"")+n+(n&&r?this.opts.eol:"")+r}preprocessData(e){const t=Array.isArray(e)?e:[e];if(!this.opts.fields){if(null==e||0===t.length)throw new Error('Data should not be empty or the "fields" option should be included');if("object"!=typeof t[0])throw new Error('Data items should be objects or the "fields" option should be included')}return 0===this.opts.transforms.length?t:t.map(e=>this.preprocessRow(e)).reduce(tt,[])}processData(e){return nt(e.map(e=>this.processRow(e)).filter(e=>e),this.opts.eol)}}!function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"}(it||(it={}));it.QUOTATION_MARK,it.QUOTATION_MARK,it.REVERSE_SOLIDUS,it.REVERSE_SOLIDUS,it.SOLIDUS,it.SOLIDUS,it.LATIN_SMALL_LETTER_B,it.BACKSPACE,it.LATIN_SMALL_LETTER_F,it.FORM_FEED,it.LATIN_SMALL_LETTER_N,it.NEWLINE,it.LATIN_SMALL_LETTER_R,it.CARRIAGE_RETURN,it.LATIN_SMALL_LETTER_T,it.TAB;var st;!function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"}(st||(st={}));var lt;!function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"}(lt||(lt={}));Error;var ut,ct;!function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"}(ut||(ut={})),function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"}(ct||(ct={}));Error;var ft=__webpack_require__(6425),dt=function(e){for(var t in e)"uri"!==e[t].type&&(e[t].value=e[t].value.replace(/{{(.*?)}}/g,function(t){return t=t.substring(2,t.length-2).trim(),e[t]?e[t].value:t}));return e},ht=function(){return(0,n.A)(function e(n,r){(0,t.A)(this,e),n.executionTime&&(this.executionTime=n.executionTime),r&&(this.executionTime=r),n instanceof Error?this.error=n:n.content?this.setResponse(n):this.setSummary(n)},[{key:"setResponse",value:function(e){this.res=e}},{key:"setSummary",value:function(e){e.data||e.error?this.summary=e:this.summary={data:e}}},{key:"hasError",value:function(){return!!(this.res&&this.res.status>=400)||(!!this.errorSummary||(!!this.error||!(!this.summary||!this.summary.error)))}},{key:"getError",value:function(){return this.errorSummary||(this.res&&this.res.status>=400&&(this.errorSummary={text:this.res.statusText,status:this.res.status,statusText:this.res.ok?void 0:this.res.statusText}),this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error&&(this.errorSummary={text:this.error.message})),this.errorSummary}},{key:"getContentType",value:function(){return this.res?this.res.headers.get("content-type")||void 0:this.summary?this.summary.contentType:void 0}},{key:"getAsJson",value:function(){return this.json?this.json:!1===this.json||this.hasError()?void 0:(this.getParserFromContentType()||this.doLuckyGuess()||this.json||(this.json=!1),this.json)}},{key:"getData",value:function(){if(this.res){if(this.res.content)return this.res.content;if(this.res.body)return this.res.body;if(this.res.text)return this.res.text}if(this.summary)return this.summary.data}},{key:"getResponseTime",value:function(){return this.executionTime}},{key:"getParserFromContentType",value:function(){var e=this.getContentType();if(e){var t=(0,ft.A)(this.getData());try{if(e.indexOf("json")>-1){if(e.indexOf("sparql-results+json")>=0)return this.json=w(t,dt),this.type="json",!0;if(e.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(e.indexOf("xml")>-1)return this.json=Be(t,dt),this.type="xml",!0;if(e.indexOf("csv")>-1)return this.json=function(e){var t=He.parse(e,{header:!0,skipEmptyLines:!0});if(void 0===t.meta.fields)throw new Error("Could not parse CSV, no headers found!");var n=t.meta.fields,r=t.data.map(function(e){var t={};for(var n in e)t[n]={value:e[n],type:"literal"};return t});return{head:{vars:n},results:{bindings:r}}}(t),this.type="csv",!0;if(e.indexOf("tab-separated")>-1)return this.json=Xe(t),this.type="tsv",!0;if(e.indexOf("turtle")>0||e.indexOf("trig")>0||e.indexOf("triple")>0||e.indexOf("quad")>0)return this.json={head:{vars:["subject","predicate","object"]},results:{bindings:we(t).map(function(e){return{subject:_e(e.subject),predicate:_e(e.predicate),object:_e(e.object)}})}},this.type="ttl",!0}}catch(e){e instanceof Error?this.errorSummary={text:e.message}:this.errorSummary={text:e}}}return!1}},{key:"doLuckyGuess",value:function(){var e=(0,ft.A)(this.getData());try{return this.json=w(e,dt),this.type="json",!0}catch(e){}try{return this.json=Be(e,dt),this.type="xml",!0}catch(e){}return!1}},{key:"getVariables",value:function(){var e=this.getAsJson();return e&&e.head?e.head.vars:[]}},{key:"getBoolean",value:function(){var e=this.getAsJson();if(e&&"boolean"in e)return e.boolean}},{key:"getBindings",value:function(){var e=this.getAsJson();return e&&e.results?e.results.bindings:null}},{key:"getStatements",value:function(){return this.statements||"ttl"!==this.type||(this.statements=we(this.getData())),this.statements?this.statements:null}},{key:"getOriginalResponseAsString",value:function(){var e=this.getData();return"string"==typeof e?e:"json"===this.type?JSON.stringify(e,void 0,2):e}},{key:"getType",value:function(){return this.type||this.getAsJson(),this.type}},{key:"getStatus",value:function(){return this.res?this.res.status:this.summary?this.summary.status:void 0}},{key:"getAsStoreObject",value:function(e){var t=this.summary;if(!t&&this.res&&(t={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime()}),t){if(t.data&&t.data.length>e)return;return t}if(this.error)return{error:this.getError(),executionTime:this.getResponseTime()}}},{key:"asCsv",value:function(){var e,t,n,r,i=this.getAsJson();return"csv"===this.type?this.getOriginalResponseAsString():i&&i.results?(n=(e=i).head.vars,r=null===(t=e.results)||void 0===t?void 0:t.bindings,new at({fields:n}).parse(r?r.map(function(e){return(0,b.A)(e,function(e){return e.value})}):[])):void 0}}])}();const pt=ht;function gt(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}function vt(e,t){return new Promise(function(n,r){var i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("async",""),i.setAttribute("src",e),t&&(i.innerHTML=t),i.onload=function(){return n()},document.getElementsByTagName("head")[0].appendChild(i)})}var mt=__webpack_require__(9418);mt.A.addHook("afterSanitizeAttributes",function(e){e instanceof HTMLAnchorElement&&(e.target="_blank",e.rel="noopener noreferrer")});const yt=mt.A.sanitize;var bt=__webpack_require__(1475),_t=__webpack_require__(4179),wt=__webpack_require__(3322),xt=__webpack_require__(9602),Tt=__webpack_require__.n(xt),At=__webpack_require__(6691),St=__webpack_require__(6095);__webpack_require__(3614),__webpack_require__(3594),__webpack_require__(5668);var Ct=__webpack_require__(7570);function Et(e){(0,_.iQ)(this,"expanded"),e.preventDefault()}var Lt=function(){return(0,n.A)(function e(n){var r=this;(0,t.A)(this,e),this.persistentConfig={},this.helpReference="https://docs.triply.cc/yasgui/#table",this.label="Table",this.priority=10,this.setEllipsisHandlers=function(){var e;null===(e=r.dataTable)||void 0===e||e.cells({page:"current"}).every(function(e,t){var n,i,o=null===(n=r.dataTable)||void 0===n?void 0:n.cell(e,t);if(""!==(null==o?void 0:o.data())){var a=null==o?void 0:o.node();if(a){var s=a.firstChild;((null===(i=s.firstElementChild)||void 0===i?void 0:i.getBoundingClientRect().width)||0)>s.getBoundingClientRect().width?s.classList.contains("expandable")||((0,_.iQ)(s,"expandable"),s.addEventListener("click",Et,{once:!0})):s.classList.contains("expandable")&&((0,_.vy)(s,"expandable"),s.removeEventListener("click",Et))}}})},this.handleTableSearch=function(e){var t;null===(t=r.dataTable)||void 0===t||t.search(e.target.value).draw("page")},this.handleTableSizeSelect=function(e){var t,n=parseInt(e.target.value);null===(t=r.dataTable)||void 0===t||t.page.len(n).draw("page"),r.persistentConfig.pageSize=n,r.yasr.storePluginConfig("table",r.persistentConfig)},this.handleSetCompactToggle=function(e){r.persistentConfig.compact=e.target.checked,r.draw(r.persistentConfig),r.yasr.storePluginConfig("table",r.persistentConfig)},this.handleSetEllipsisToggle=function(e){r.persistentConfig.isEllipsed=e.target.checked,r.draw(r.persistentConfig),r.yasr.storePluginConfig("table",r.persistentConfig)},this.yasr=n,this.config=e.defaults},[{key:"getIcon",value:function(){return(0,_.Mg)((0,_.uZ)(St))}},{key:"getRows",value:function(){if(!this.yasr.results)return[];var e=this.yasr.results.getBindings();if(!e)return[];var t=this.yasr.results.getVariables();return e.map(function(e,n){return[n+1].concat((0,wt.A)(t.map(function(t){var n;return null!==(n=e[t])&&void 0!==n?n:""})))})}},{key:"getUriLinkFromBinding",value:function(e,t){var n=yt(e.value),r=n,i=!1;if(t)for(var o in t)if(0==r.indexOf(t[o])){r=o+":"+n.substring(t[o].length),i=!0;break}var a=i||this.persistentConfig.compact,s="".concat(a?"":"&lt;","<a class='iri' target='").concat(this.config.openIriInNewWindow?"_blank":"_self","'").concat(this.config.openIriInNewWindow?" ref='noopener noreferrer'":""," href='").concat(n,"'>").concat(yt(r),"</a>").concat(a?"":"&gt;");return yt(s)}},{key:"getCellContent",value:function(e,t){var n;return n="uri"==e.type?"<span>".concat(this.getUriLinkFromBinding(e,t),"</span>"):"<span class='nonIri'>".concat(this.formatLiteral(e,t),"</span>"),"<div>".concat(n,"</div>")}},{key:"formatLiteral",value:function(e,t){var n=yt((0,At.A)(e.value));if(this.persistentConfig.compact)return n;if(e["xml:lang"])n='"'.concat(n,'"<sup>@').concat(e["xml:lang"],"</sup>");else if(e.datatype){var r=this.getUriLinkFromBinding({type:"uri",value:e.datatype},t);n='"'.concat(n,'"<sup>^^').concat(r,"</sup>")}return n}},{key:"getColumns",value:function(){var e,t=this;if(!this.yasr.results)return[];var n=this.yasr.getPrefixes();return[{name:"",searchable:!1,width:"".concat(this.getSizeFirstColumn(),"px"),type:"num",orderable:!1,visible:!0!==this.persistentConfig.compact,render:function(e,t){return"filter"!==t&&"sort"!==t&&t?'<div class="rowNumber">'.concat(e,"</div>"):e}}].concat((0,wt.A)(null===(e=this.yasr.results)||void 0===e?void 0:e.getVariables().map(function(e){return{name:e,title:yt(e),render:function(e,r,i,o){return""===e?e:"filter"!==r&&"sort"!==r&&r?t.getCellContent(e,n):yt(e.value)}}})))}},{key:"getSizeFirstColumn",value:function(){var e,t;return 8*((null===(t=null===(e=this.yasr.results)||void 0===e?void 0:e.getBindings())||void 0===t?void 0:t.length)||0).toString().length}},{key:"draw",value:function(e){var t,n,r=this;this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),e),this.tableEl=document.createElement("table");var i=this.getRows(),o=this.getColumns();i.length<=((null==e?void 0:e.pageSize)||50)?(this.yasr.pluginControls,(0,_.iQ)(this.yasr.rootEl,"isSinglePage")):(0,_.vy)(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);var a=Object.assign(Object.assign({},(0,ft.A)(this.config.tableConfig)),{pageLength:(null==e?void 0:e.pageSize)?e.pageSize:50,data:i,columns:o});this.dataTable=Tt()(this.tableEl).DataTable(a),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px";var s=Array.from(this.tableEl.querySelectorAll("th")).map(function(e){return e.offsetWidth-26});this.tableResizer=new Ct.default(this.tableEl,{widths:!0===this.persistentConfig.compact?s:[this.getSizeFirstColumn()].concat((0,wt.A)(s.slice(1))),partialRefresh:!0,onResize:!1!==this.persistentConfig.isEllipsed&&this.setEllipsisHandlers,headerOnly:!0}),!1!==this.persistentConfig.isEllipsed&&(null===(t=this.dataTable)||void 0===t||t.on("preDraw",function(){var e,t,n;return null===(e=r.tableResizer)||void 0===e||e.reset({disable:!0}),(0,_.vy)(r.tableEl,"ellipseTable"),null===(t=r.tableEl)||void 0===t||t.style.removeProperty("width"),null===(n=r.tableEl)||void 0===n||n.style.setProperty("width",r.tableEl.clientWidth+"px"),!0}),null===(n=this.dataTable)||void 0===n||n.on("draw",function(){var e,t;if(r.tableEl){var n=r.tableEl.clientWidth;r.tableEl.style.removeProperty("width"),n>r.tableEl.clientWidth&&(n=r.tableEl.clientWidth),null===(e=r.tableEl)||void 0===e||e.style.setProperty("width","".concat(n,"px")),null===(t=r.tableResizer)||void 0===t||t.reset({disable:!1,partialRefresh:!0,onResize:r.setEllipsisHandlers,headerOnly:!0}),(0,_.iQ)(r.tableEl,"ellipseTable"),r.setEllipsisHandlers()}})),this.drawControls(),!1!==this.persistentConfig.isEllipsed&&((0,_.iQ)(this.tableEl,"ellipseTable"),this.setEllipsisHandlers())}},{key:"drawControls",value:function(){var e;this.removeControls(),this.tableControls=document.createElement("div"),this.tableControls.className="tableControls";var t=document.createElement("div"),n=document.createElement("label"),r=document.createElement("span");r.innerText="Simple view",(0,_.iQ)(r,"label"),n.appendChild(r),(0,_.iQ)(n,"switch"),t.appendChild(n),this.tableCompactSwitch=document.createElement("input"),n.addEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch.type="checkbox",n.appendChild(this.tableCompactSwitch),this.tableCompactSwitch.defaultChecked=!!this.persistentConfig.compact,this.tableControls.appendChild(t);var i=document.createElement("div"),o=document.createElement("label"),a=document.createElement("span");a.innerText="Ellipse",(0,_.iQ)(a,"label"),o.appendChild(a),(0,_.iQ)(o,"switch"),i.appendChild(o),this.tableEllipseSwitch=document.createElement("input"),o.addEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch.type="checkbox",o.appendChild(this.tableEllipseSwitch),this.tableEllipseSwitch.defaultChecked=!1!==this.persistentConfig.isEllipsed,this.tableControls.appendChild(i),this.tableFilterField=document.createElement("input"),this.tableFilterField.className="tableFilter",this.tableFilterField.placeholder="Filter query results",this.tableFilterField.setAttribute("aria-label","Filter query results"),this.tableControls.appendChild(this.tableFilterField),this.tableFilterField.addEventListener("keyup",this.handleTableSearch);var s=document.createElement("div");s.className="pageSizeWrapper";var l=document.createElement("span");l.textContent="Page size: ",l.className="pageSizerLabel",s.appendChild(l),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";for(var u=0,c=[10,50,100,1e3,-1];u<c.length;u++){var f=c[u],d=document.createElement("option");d.value=f+"",d.innerText=f>0?f+"":"All",(null===(e=this.dataTable)||void 0===e?void 0:e.page.len())===f&&(d.selected=!0),this.tableSizeField.appendChild(d)}s.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(s),this.yasr.pluginControls.appendChild(this.tableControls)}},{key:"download",value:function(e){var t=this;return{getData:function(){var e;return(null===(e=t.yasr.results)||void 0===e?void 0:e.asCsv())||""},contentType:"text/csv",title:"Download result",filename:"".concat(e||"queryResults",".csv")}}},{key:"canHandleResults",value:function(){return!!this.yasr.results&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}},{key:"removeControls",value:function(){var e,t,n,r,i,o;for(null===(e=this.tableFilterField)||void 0===e||e.removeEventListener("keyup",this.handleTableSearch),this.tableFilterField=void 0,null===(t=this.tableSizeField)||void 0===t||t.removeEventListener("change",this.handleTableSizeSelect),this.tableSizeField=void 0,null===(n=this.tableCompactSwitch)||void 0===n||n.removeEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch=void 0,null===(r=this.tableEllipseSwitch)||void 0===r||r.removeEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch=void 0;null===(i=this.tableControls)||void 0===i?void 0:i.firstChild;)this.tableControls.firstChild.remove();null===(o=this.tableControls)||void 0===o||o.remove()}},{key:"destroyResizer",value:function(){this.tableResizer&&(this.tableResizer.reset({disable:!0}),window.removeEventListener("resize",this.tableResizer.onResize),this.tableResizer=void 0)}},{key:"destroy",value:function(){var e;this.removeControls(),this.destroyResizer(),null===(e=this.dataTable)||void 0===e||e.destroy(!0),this.dataTable=void 0,(0,_.vy)(this.yasr.rootEl,"isSinglePage")}}])}();Lt.defaults={openIriInNewWindow:!0,tableConfig:{layout:{top:null,topStart:null,topEnd:null},pageLength:50,lengthChange:!0,data:[],columns:[],order:[],deferRender:!0,orderClasses:!1,language:{paginate:{first:"&lt;&lt;",last:"&gt;&gt;",next:"&gt;",previous:"&lt;"}}}};const kt=Lt;__webpack_require__(1710);var Nt=function(){return(0,n.A)(function e(n){(0,t.A)(this,e),this.priority=10,this.hideFromSelection=!0,this.yasr=n},[{key:"draw",value:function(){var e,t=document.createElement("div");t.className="booleanResult";var n=null===(e=this.yasr.results)||void 0===e?void 0:e.getBoolean();t.appendChild((0,_.Mg)(n?'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>'));var r=document.createElement("span");r.textContent=n?"True":"False",t.appendChild(r),this.yasr.resultsEl.appendChild(t)}},{key:"canHandleResults",value:function(){var e;return!!(null===(e=this.yasr.results)||void 0===e?void 0:e.getBoolean)&&(!0===this.yasr.results.getBoolean()||0==this.yasr.results.getBoolean())}},{key:"getIcon",value:function(){return document.createElement("")}}])}(),Dt=__webpack_require__(4779);__webpack_require__(9715);var It=__webpack_require__(1719);__webpack_require__(9754),__webpack_require__(2448),__webpack_require__(7623),__webpack_require__(666),__webpack_require__(8709),__webpack_require__(1262),__webpack_require__(7518),__webpack_require__(3475);var Ot=function(){return(0,n.A)(function e(n){(0,t.A)(this,e),this.label="Response",this.priority=2,this.helpReference="https://docs.triply.cc/yasgui/#response",this.yasr=n,this.config=e.defaults,n.config.plugins.response&&n.config.plugins.response.dynamicConfig&&(this.config=Object.assign(Object.assign({},this.config),n.config.plugins.response.dynamicConfig))},[{key:"canHandleResults",value:function(){if(!this.yasr.results)return!1;if(!this.yasr.results.getOriginalResponseAsString)return!1;var e=this.yasr.results.getOriginalResponseAsString();return!((!e||0==e.length)&&this.yasr.results.getError())}},{key:"getIcon",value:function(){return(0,_.Mg)((0,_.uZ)(Dt))}},{key:"download",value:function(e){var t=this;if(this.yasr.results){var n=this.yasr.results.getContentType(),r=this.yasr.results.getType(),i="xml"===r?"rdf":r;return{getData:function(){var e;return(null===(e=t.yasr.results)||void 0===e?void 0:e.getOriginalResponseAsString())||""},filename:"".concat(e||"queryResults").concat(i?"."+i:""),contentType:n||"text/plain",title:"Download result"}}}},{key:"draw",value:function(e){var t,n,r=Object.assign(Object.assign({},this.config),e),i=(null===(t=this.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||"",o=i.split("\n");o.length>r.maxLines&&(i=o.slice(0,r.maxLines).join("\n"));var a={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:i,extraKeys:{Tab:!1}};"json"===(null===(n=this.yasr.results)||void 0===n?void 0:n.getType())&&(a.mode={name:"javascript",json:!0}),this.cm=It(this.yasr.resultsEl,a),o.length>r.maxLines&&this.showLess(!1)}},{key:"limitData",value:function(e){var t=e.split("\n");return t.length>this.config.maxLines&&(e=t.slice(0,this.config.maxLines).join("\n")),e}},{key:"showLess",value:function(){var e,t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.cm){(0,_.iQ)(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),(0,_.iQ)(this.overLay,"overlay");var r=document.createElement("div");(0,_.iQ)(r,"overlay_content");var i=document.createElement("button");i.title="Show all",(0,_.iQ)(i,"yasr_btn","overlay_btn"),i.textContent="Show all",i.addEventListener("click",function(){return t.showMore()}),r.append(i);var o=document.createElement("button");o.title="Download result",(0,_.iQ)(o,"yasr_btn","overlay_btn");var a=document.createElement("span");a.innerText="Download result",o.appendChild(a),o.appendChild((0,_.Mg)('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="tiny" x="0" y="0" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"/><g id="Your_Icon"><path d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>')),o.addEventListener("click",function(){return t.yasr.download()}),o.addEventListener("keydown",function(e){"Space"!==e.code&&"Enter"!==e.code||t.yasr.download()}),r.appendChild(o),this.overLay.appendChild(r),this.cm.getWrapperElement().appendChild(this.overLay),n&&this.cm.setValue(this.limitData((null===(e=this.yasr.results)||void 0===e?void 0:e.getOriginalResponseAsString())||""))}}},{key:"showMore",value:function(){var e,t;this.cm&&((0,_.vy)(this.cm.getWrapperElement(),"overflow"),null===(e=this.overLay)||void 0===e||e.remove(),this.overLay=void 0,this.cm.setValue((null===(t=this.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""),this.cm.refresh())}}])}();Ot.defaults={maxLines:30};const Rt=Ot;var Mt=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};__webpack_require__(8956);var Pt=function(){return(0,n.A)(function e(n){(0,t.A)(this,e),this.priority=20,this.hideFromSelection=!0,this.yasr=n},[{key:"canHandleResults",value:function(){return!!this.yasr.results&&!!this.yasr.results.getError()}},{key:"getTryBtn",value:function(e){var t=document.createElement("a");return t.href=e,t.rel="noopener noreferrer",t.target="_blank",t.className="yasr_tryQuery",t.textContent="Try query in a new browser window",t}},{key:"getCorsMessage",value:function(){var e=document.createElement("div");e.className="redOutline";var t=document.createElement("p");t.textContent="Unable to get response from endpoint. Possible reasons:",e.appendChild(t);var n=document.createElement("ul"),r=document.createElement("li");r.textContent="Incorrect endpoint URL",n.appendChild(r);var i=document.createElement("li");i.textContent="Endpoint is down",n.appendChild(i);var o=document.createElement("li"),a=document.createElement("span");a.textContent="Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ",o.appendChild(a);var s=document.createElement("a");return s.textContent="CORS-enabled",s.href="http://enable-cors.org/",s.target="_blank",s.rel="noopener noreferrer",o.appendChild(s),n.appendChild(o),e.appendChild(n),e}},{key:"draw",value:function(){return Mt(this,void 0,void 0,s().mark(function e(){var t,n,r,i,o,a,l,u,c,f,d,h,p;return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=document.createElement("div")).className="errorResult",this.yasr.resultsEl.appendChild(n),r=null===(t=this.yasr.results)||void 0===t?void 0:t.getError()){e.next=1;break}return e.abrupt("return");case 1:return(i=document.createElement("div")).className="errorHeader",n.appendChild(i),e.next=2,this.yasr.renderError(r);case 2:if(!(o=e.sent)){e.next=3;break}return(a=document.createElement("div")).className="redOutline",a.appendChild(o),n.appendChild(a),e.abrupt("return");case 3:r.status?(l="Error",r.statusText&&r.statusText.length<100&&(l=r.statusText),l+=" (#".concat(r.status,")"),(u=document.createElement("span")).className="status",u.textContent=l,i.appendChild(u),this.yasr.config.getPlainQueryLinkToEndpoint&&(c=this.yasr.config.getPlainQueryLinkToEndpoint())&&i.appendChild(this.getTryBtn(c)),r.text&&(f=document.createElement("div"),(0,_.iQ)(f,"errorMessageContainer"),n.appendChild(f),d=document.createElement("pre"),(0,_.iQ)(d,"errorMessage"),d.textContent=r.text,f.appendChild(d))):(this.yasr.config.getPlainQueryLinkToEndpoint&&(h=this.yasr.config.getPlainQueryLinkToEndpoint())&&i.appendChild(this.getTryBtn(h)),!r.text||r.text.indexOf("Request has been terminated")>=0?n.appendChild(this.getCorsMessage()):((p=document.createElement("pre")).textContent=r.text,n.appendChild(p)));case 4:case"end":return e.stop()}},e,this)}))}},{key:"getIcon",value:function(){return document.createElement("")}}])}();function jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bt=function(){return!!e})()}var Ht=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})};__webpack_require__(8839);var zt=function(a){function l(e){var n,o,a,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=arguments.length>2?arguments[2]:void 0;if((0,t.A)(this,l),o=this,a=l,a=(0,i.A)(a),(n=(0,r.A)(o,Bt()?Reflect.construct(a,s||[],(0,i.A)(o).constructor):a.apply(o,s))).plugins={},n.helpDrawn=!1,n.isFullscreen=!1,n.isLoading=!1,n.utils={addScript:vt,addCSS:gt,sanitize:yt},!e)throw new Error("No parent passed as argument. Dont know where to draw YASR");n.rootEl=document.createElement("div"),n.rootEl.className="yasr",e.appendChild(n.rootEl),n.config=(0,u.A)({},l.defaults,c),n.storage=new _.wc(l.storageNamespace),n.getConfigFromStorage(),n.headerEl=document.createElement("div"),n.headerEl.className="yasr_header",n.rootEl.appendChild(n.headerEl),n.fallbackInfoEl=document.createElement("div"),n.fallbackInfoEl.className="yasr_fallback_info",n.rootEl.appendChild(n.fallbackInfoEl),n.resultsEl=document.createElement("div"),n.resultsEl.className="yasr_results",n.resultsEl.id=d("resultsId"),n.rootEl.appendChild(n.resultsEl),n.createLoadingElement(),n.initializePlugins(),n.drawHeader();var h=f||n.getResponseFromStorage();return h&&n.setResponse(h),n}return(0,o.A)(l,a),(0,n.A)(l,[{key:"getConfigFromStorage",value:function(){var e=this.getStorageId(this.config.persistenceLabelConfig);if(e){var t=this.storage.get(e);if(t)for(var n in this.selectedPlugin=t.selectedPlugin,t.pluginsConfig){var r=t.pluginsConfig[n];r&&this.config.plugins[n]&&(this.config.plugins[n].dynamicConfig=r)}}}},{key:"renderError",value:function(e){return Ht(this,void 0,void 0,s().mark(function t(){var n,r,i,o,a;return s().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=void 0,void 0===this.config.errorRenderers){t.next=8;break}r=jt(this.config.errorRenderers),t.prev=1,r.s();case 2:if((i=r.n()).done){t.next=5;break}return o=i.value,t.next=3,o(e);case 3:if(void 0===(n=t.sent)){t.next=4;break}return t.abrupt("continue",5);case 4:t.next=2;break;case 5:t.next=7;break;case 6:t.prev=6,a=t.catch(1),r.e(a);case 7:return t.prev=7,r.f(),t.finish(7);case 8:return t.abrupt("return",n);case 9:case"end":return t.stop()}},t,this,[[1,6,7,8]])}))}},{key:"getStorageId",value:function(e,t){var n=t||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+e:n(this)+"_"+e}},{key:"somethingDrawn",value:function(){return!!this.resultsEl.children.length}},{key:"emptyFallbackElement",value:function(){for(;this.fallbackInfoEl.firstChild;)this.fallbackInfoEl.removeChild(this.fallbackInfoEl.firstChild)}},{key:"getSelectedPluginName",value:function(){return this.selectedPlugin||this.config.defaultPlugin}},{key:"getSelectedPlugin",value:function(){if(this.plugins[this.getSelectedPluginName()])return this.plugins[this.getSelectedPluginName()];console.warn("Tried using plugin ".concat(this.getSelectedPluginName(),", but seems this plugin isnt registered in yasr."))}},{key:"updatePluginSelectors",value:function(e){if(this.pluginSelectorsEl)for(var t in this.config.plugins){var n=this.plugins[t];n&&!n.hideFromSelection&&(e&&(e.indexOf(t)>=0?(0,_.vy)(this.pluginSelectorsEl.querySelector(".select_"+t),"disabled"):(0,_.iQ)(this.pluginSelectorsEl.querySelector(".select_"+t),"disabled")),t===this.getSelectedPluginName()?(0,_.iQ)(this.pluginSelectorsEl.querySelector(".select_"+t),"selected"):(0,_.vy)(this.pluginSelectorsEl.querySelector(".select_"+t),"selected"))}}},{key:"getCompatiblePlugins",value:function(){if(!this.results)return Object.keys(y(this.config.plugins,function(t){return"object"===(0,e.A)(t)&&t.enabled||!0===t}));var t=[];for(var n in this.plugins)this.plugins[n].canHandleResults()&&t.push({name:n,priority:this.plugins[n].priority});return t.sort(function(e,t){return t.priority-e.priority}).map(function(e){return e.name})}},{key:"draw",value:function(){var e,t,n,r,i,o=this;if(this.updateHelpButton(),this.updateResponseInfo(),this.results){var a,l=this.getCompatiblePlugins();if(this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();null===(t=(e=this.plugins[this.drawnPlugin]).destroy)||void 0===t||t.call(e)}if(this.getSelectedPlugin()&&(null===(n=this.getSelectedPlugin())||void 0===n?void 0:n.canHandleResults())?(a=this.getSelectedPluginName(),this.emptyFallbackElement()):l[0]&&(this.drawnPlugin&&(null===(i=(r=this.plugins[this.drawnPlugin]).destroy)||void 0===i||i.call(r)),a=l[0],this.fillFallbackBox(a)),a){this.drawnPlugin=a,this.emit("draw",this,this.plugins[a]);var u=this.plugins[a];(u.initialize?u.initialize():Promise.resolve()).then(function(){return Ht(o,void 0,void 0,s().mark(function e(){return s().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=2;break}for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();return e.next=1,this.plugins[a].draw(this.config.plugins[a].dynamicConfig);case 1:this.emit("drawn",this,this.plugins[a]),this.updateExportHeaders(),this.updatePluginSelectors(l);case 2:case"end":return e.stop()}},e,this)}))},function(e){return console.error})}else this.resultsEl.textContent="cannot render result",this.updateExportHeaders(),this.updatePluginSelectors(l)}}},{key:"refresh",value:function(){this.draw()}},{key:"destroy",value:function(){var e,t;this.drawnPlugin&&(null===(t=null===(e=this.plugins[this.drawnPlugin])||void 0===e?void 0:e.destroy)||void 0===t||t.call(e)),this.removeAllListeners(),this.rootEl.remove()}},{key:"getPrefixes",value:function(){return this.config.prefixes?"function"==typeof this.config.prefixes?this.config.prefixes(this):this.config.prefixes:{}}},{key:"selectPlugin",value:function(e){this.selectedPlugin!==e&&(this.config.plugins[e]?this.selectedPlugin=e:(console.warn("Plugin ".concat(e," does not exist.")),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}},{key:"drawPluginSelectors",value:function(){var e=this;this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";var t=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach(function(e){-1===t.indexOf(e)&&t.push(e)});var n,r=jt(t);try{var i=function(){var t=n.value;if(!e.config.plugins[t]||!e.config.plugins[t].enabled)return 0;var r=e.plugins[t];if(!r)return 0;if(r.hideFromSelection)return 0;var i=r.label||t,o=document.createElement("button");if((0,_.iQ)(o,"yasr_btn","select_"+t),o.title=i,o.type="button",o.setAttribute("aria-label","Shows ".concat(i," view")),r.getIcon){var a=r.getIcon();a&&((0,_.iQ)(a,"plugin_icon"),o.appendChild(a))}var s=document.createElement("span");s.textContent=i,o.appendChild(s),o.addEventListener("click",function(){return e.selectPlugin(t)});var l=document.createElement("li");l.appendChild(o),e.pluginSelectorsEl.appendChild(l)};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}},{key:"fillFallbackBox",value:function(e){var t,n,r;if(this.emptyFallbackElement(),!(null===(t=this.plugins[e||this.drawnPlugin||""])||void 0===t?void 0:t.hideFromSelection)){var i=this.getSelectedPlugin(),o=(null===(n=this.plugins[e||this.drawnPlugin||""])||void 0===n?void 0:n.label)||e||this.drawnPlugin,a=(null==i?void 0:i.label)||this.getSelectedPluginName(),s=document.createElement("p");if(s.innerText="Could not render results with the ".concat(a," plugin, the results currently are rendered with the ").concat(o," plugin. ").concat((null===(r=this.getSelectedPlugin())||void 0===r?void 0:r.helpReference)?"See ":""),null==i?void 0:i.helpReference){var l=document.createElement("a");l.innerText="".concat(a," documentation"),l.href=i.helpReference,l.rel="noopener noreferrer",l.target="_blank",s.append(l),s.innerHTML+=" for more information."}this.fallbackInfoEl.appendChild(s)}}},{key:"drawPluginElement",value:function(){var e=document.createElement("div");(0,_.iQ)(e,"space_element"),this.headerEl.appendChild(e),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),(0,_.iQ)(this.pluginControls,"yasr_plugin_control"),this.pluginControls.setAttribute("aria-controls",this.resultsEl.id),this.headerEl.appendChild(this.pluginControls)}},{key:"drawHeader",value:function(){this.drawPluginSelectors(),this.drawResponseInfo(),this.drawPluginElement(),this.drawDownloadIcon(),this.drawFullscreenButton(),this.loadingEl&&this.headerEl.appendChild(this.loadingEl),this.drawDocumentationButton()}},{key:"drawDownloadIcon",value:function(){var e=this;this.downloadBtn=document.createElement("a"),(0,_.iQ)(this.downloadBtn,"yasr_btn","yasr_downloadIcon","btn_icon"),this.downloadBtn.download="",this.downloadBtn.setAttribute("aria-label","Download Results"),this.downloadBtn.setAttribute("tabindex","0"),this.downloadBtn.setAttribute("role","button");var t=(0,_.Mg)((0,_.uZ)(bt));t.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(t),this.downloadBtn.addEventListener("click",function(){(0,_.nB)(e.downloadBtn,"disabled")||e.download()}),this.downloadBtn.addEventListener("keydown",function(t){if("Space"===t.code||"Enter"===t.code){if((0,_.nB)(e.downloadBtn,"disabled"))return;e.download()}}),this.headerEl.appendChild(this.downloadBtn)}},{key:"drawResponseInfo",value:function(){this.dataElement=document.createElement("div"),(0,_.iQ)(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}},{key:"updateResponseInfo",value:function(){var e="";if(this.results){(0,_.vy)(this.dataElement,"empty");var t=this.results.getBindings();t&&(e+="".concat(t.length," result").concat(1===t.length?"":"s"));var n=this.results.getResponseTime();if(n){e||(e="Response");var r=n/1e3;e+=" in ".concat(r," second").concat(1===r?"":"s")}}else(0,_.iQ)(this.dataElement,"empty");this.dataElement.innerText=e}},{key:"updateHelpButton",value:function(){var e=this.getSelectedPlugin();if(null==e?void 0:e.helpReference){var t="View documentation of ".concat(e.label||this.getSelectedPluginName());this.documentationLink.href=e.helpReference,this.documentationLink.title=t,this.documentationLink.setAttribute("aria-label",t),(0,_.vy)(this.documentationLink,"disabled")}else(0,_.iQ)(this.documentationLink,"disabled"),this.documentationLink.title="This plugin doesn't have a help reference yet. Please contact the maintainer to fix this"}},{key:"updateExportHeaders",value:function(){var e,t;if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";var n=this.plugins[this.drawnPlugin];if(n&&n.download){var r=n.download(null===(t=(e=this.config).getDownloadFileName)||void 0===t?void 0:t.call(e));if((0,_.vy)(this.downloadBtn,"disabled"),r)return void(r.title&&(this.downloadBtn.title=r.title))}this.downloadBtn.title="Download not supported",(0,_.iQ)(this.downloadBtn,"disabled")}}},{key:"drawFullscreenButton",value:function(){var e=this;this.fullscreenBtn=document.createElement("button"),(0,_.iQ)(this.fullscreenBtn,"yasr_btn","yasr_fullscreenButton","btn_icon"),this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),this.fullscreenBtn.setAttribute("tabindex","0"),this.fullscreenBtn.setAttribute("role","button");var t=(0,_.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');(0,_.iQ)(t,"fullscreenIcon"),t.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(t);var n=(0,_.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>');(0,_.iQ)(n,"fullscreenExitIcon"),n.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(n),this.fullscreenBtn.title="Toggle fullscreen (F10)",this.fullscreenBtn.addEventListener("click",function(){e.toggleFullscreen()}),this.fullscreenBtn.addEventListener("keydown",function(t){"Space"!==t.code&&"Enter"!==t.code||e.toggleFullscreen()}),this.headerEl.appendChild(this.fullscreenBtn)}},{key:"toggleFullscreen",value:function(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?((0,_.iQ)(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Exit fullscreen (F10)")):((0,_.vy)(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Toggle fullscreen (F10)"))}},{key:"getIsFullscreen",value:function(){return this.isFullscreen}},{key:"createLoadingElement",value:function(){this.loadingEl=document.createElement("div"),this.loadingEl.className="yasr_loading_indicator",this.loadingEl.title="Executing query...",this.loadingEl.innerHTML='<div class="yasr_loading_spinner"></div>',this.loadingEl.style.display="none"}},{key:"showLoading",value:function(){this.isLoading=!0,this.loadingEl&&(this.loadingEl.style.display="flex")}},{key:"hideLoading",value:function(){this.isLoading=!1,this.loadingEl&&(this.loadingEl.style.display="none")}},{key:"drawDocumentationButton",value:function(){this.documentationLink=document.createElement("a"),(0,_.iQ)(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild((0,_.Mg)((0,_.uZ)(_t))),this.documentationLink.href="https://docs.triply.cc/yasgui/",this.documentationLink.target="_blank",this.documentationLink.rel="noopener noreferrer",this.headerEl.appendChild(this.documentationLink)}},{key:"download",value:function(){var e,t,n;if(this.drawnPlugin){var r=this.plugins[this.drawnPlugin];if(r&&r.download){var i=r.download(null===(t=(e=this.config).getDownloadFileName)||void 0===t?void 0:t.call(e));if(!i)return;var o,a=i.getData();if(a.startsWith("data:"))o=a;else{var s=new Blob([a],{type:null!==(n=i.contentType)&&void 0!==n?n:"text/plain"});o=window.URL.createObjectURL(s)}var l=document.createElement("a");l.href=o,l.download=i.filename,l.click()}}}},{key:"handleLocalStorageQuotaFull",value:function(e){console.warn("Localstorage quota exceeded. Clearing all queries"),l.clearStorage()}},{key:"getResponseFromStorage",value:function(){var e=this.getStorageId(this.config.persistenceLabelResponse);if(e)return this.storage.get(e)}},{key:"getPersistentConfig",value:function(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:(0,b.A)(this.config.plugins,function(e){return e.dynamicConfig})}}},{key:"storePluginConfig",value:function(e,t){this.config.plugins[e].dynamicConfig=t,this.storeConfig(),this.emit("change",this)}},{key:"storeConfig",value:function(){var e=this.getStorageId(this.config.persistenceLabelConfig);e&&this.storage.set(e,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"storeResponse",value:function(){var e=this.getStorageId(this.config.persistenceLabelResponse);if(e&&this.results){var t=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);t&&!t.error?this.storage.set(e,t,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(e)}}},{key:"setResponse",value:function(e,t){e&&(this.hideLoading(),this.results=new pt(e,t),this.draw(),this.storeResponse())}},{key:"initializePlugins",value:function(){for(var e in this.config.plugins)this.config.plugins[e]&&(l.plugins[e]?this.plugins[e]=new l.plugins[e](this):console.warn("Wanted to initialize plugin "+e+" but could not find a matching registered plugin"))}}],[{key:"registerPlugin",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l.plugins[e]=t,l.defaults.plugins[e]=n?{enabled:!0}:{enabled:!1}}},{key:"clearStorage",value:function(){new _.wc(l.storageNamespace).removeNamespace()}}])}(l.EventEmitter);zt.defaults={persistenceId:function(e){var t="",n=e.rootEl;for(n.id&&(t=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(t=n.id);break}return"yasr_"+t},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["table","response"],defaultPlugin:"table"},zt.plugins={},zt.Dependencies={},zt.storageNamespace="triply",zt.registerPlugin("table",kt),zt.registerPlugin("boolean",Nt),zt.registerPlugin("response",Rt),zt.registerPlugin("error",Pt);const Ut=zt})(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})());
3
+ //# sourceMappingURL=yasr.min.js.map